joyce8/EMBER2024-capa huggingface dataset:
Function at 0x601d80
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
test edi, edi
je 0x601e4f
xor ebx, ebx
cmp dword [edi + 0x24], ebx
sete bl
cmp dword [edi + 8], 0
je 0x601e43
mov esi, dword [edi + 0x10]
test esi, esi
jne 0x601daa
xor eax, eax
jmp 0x601deb
cmp dword [esi + 0x18], 0
jne 0x601de4
cmp dword [esi + 0x10], 0
jne 0x601dc1
mov eax, dword [esi + 0x24]
push 1
push esi
call eax
add esp, 8
cmp dword [esi + 0x10], 0
mov dword [esi + 0x18], 1
mov dword [esi + 0x14], 1
je 0x601ddc
mov eax, dword [esi]
mov dword [esi + 4], eax
jmp 0x601de1
mov eax, dword [esi + 4]
mov dword [esi], eax
mov dword [esi + 8], eax
mov eax, dword [esi + 0x1c]
neg eax
sbb eax, eax
mov esi, dword [edi + 0xc]
or ebx, eax
test esi, esi
jne 0x601df8
xor ecx, ecx
jmp 0x601e39
cmp dword [esi + 0x18], 0
jne 0x601e32
cmp dword [esi + 0x10], 0
jne 0x601e0f
mov eax, dword [esi + 0x24]
push 1
push esi
call eax
add esp, 8
cmp dword [esi + 0x10], 0
mov dword [esi + 0x18], 1
mov dword [esi + 0x14], 1
je 0x601e2a
mov eax, dword [esi]
mov dword [esi + 4], eax
jmp 0x601e2f
mov eax, dword [esi + 4]
mov dword [esi], eax
mov dword [esi + 8], eax
mov ecx, dword [esi + 0x1c]
neg ecx
sbb ecx, ecx
mov eax, dword [edi + 8]
mov eax, dword [eax + 0x1c]
or eax, ecx
or ebx, eax
mov edx, ebx
mov ecx, edi
pop edi
pop esi
pop ebx
jmp fcn.00601e60
pop edi
pop esi
pop ebx
ret
Function at 0x601e60
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
sub esp, 0x524
mov eax, dword [0x6a6040]
xor eax, esp
mov dword [esp + 0x51c], eax
push ebx
push ebp
mov ebx, ecx
mov ebp, edx
mov dword [esp + 0xc], ebx
push esi
push edi
test ebx, ebx
je 0x602059
mov edi, dword [ebx + 8]
test edi, edi
je 0x601ebd
mov esi, dword [edi + 0x28]
push dword [esi + 8]
mov dword [esi + 0x2c], 0
call fcn.00614130
add esp, 4
push esi
call fcn.00614130
add esp, 4
push edi
call fcn.00614130
add esp, 4
mov dword [ebx + 8], 0
mov edi, dword [ebx + 0xc]
test edi, edi
je 0x601ef2
mov esi, dword [edi + 0x28]
push dword [esi + 8]
mov dword [esi + 0x2c], 0
call fcn.00614130
add esp, 4
push esi
call fcn.00614130
add esp, 4
push edi
call fcn.00614130
add esp, 4
mov dword [ebx + 0xc], 0
mov edi, dword [ebx + 0x10]
test edi, edi
je 0x601f27
mov esi, dword [edi + 0x28]
push dword [esi + 8]
mov dword [esi + 0x2c], 0
call fcn.00614130
add esp, 4
push esi
call fcn.00614130
add esp, 4
push edi
call fcn.00614130
add esp, 4
mov dword [ebx + 0x10], 0
lea ecx, [ebx + 0x18]
call fcn.00600da0
test ebp, ebp
je 0x602059
mov edi, dword [ebx + 0x1c]
cmp edi, 0xffffffff
je 0x602052
mov eax, dword [0x6b0b50]
sub eax, 0
je 0x602072
sub eax, 3
je 0x601f8a
sub eax, 2
jne 0x602072
imul esi, edi, 0x2c
push dword [esi + 0x6af550]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test eax, eax
je 0x602052
push dword [esi + 0x6af550]
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
test eax, eax
je 0x602052
imul ebp, edi, 0x2c
mov eax, dword [ebp + 0x6af554]
dec eax
cmp eax, 5
ja case.0x601f9d.1
jmp dword [eax*4 + 0x60207c]
push 1
push dword [ebp + 0x6af550]
call dword [sym.imp.WS2_32.dll_shutdown]
test eax, eax
jne 0x60203f
mov esi, dword [ebp + 0x6af550]
xor ecx, ecx
mov dword [esp + 0x20], ecx
lea ebx, [esi + 1]
nop dword [eax]
xor eax, eax
test ecx, ecx
je 0x601fe1
cmp dword [esp + eax*4 + 0x24], esi
je 0x601fe1
inc eax
cmp eax, ecx
jb 0x601fd6
cmp eax, ecx
jne 0x601ff2
cmp ecx, 0x40
jae 0x601ff2
mov dword [esp + eax*4 + 0x24], esi
inc dword [esp + 0x20]
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 2
push eax
push 0
push 0
lea eax, [esp + 0x2c]
mov dword [esp + 0x28], 0
push eax
push ebx
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x60203b
push 0
push 0x400
lea eax, [esp + 0x130]
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x60203b
mov ecx, dword [esp + 0x20]
jmp 0x601fd0
mov ebx, dword [esp + 0x14]
push dword [ebp + 0x6af550]
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, edi
call fcn.00602720
mov dword [ebx + 0x1c], 0xffffffff
mov ecx, dword [esp + 0x52c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00606a47
add esp, 0x524
ret
push 0x6a
call fcn.00613bb8
nop dword [eax]
dec ebx
and byte [eax], ah
dec ebx
and byte [eax], ah
movsb byte es:[edi], byte [esi]
pop ds
pushal
add byte [edi + ebx + 0x204b0060], ah
pushal
add byte [ebx + 0x20], cl
pushal
add ah, cl
int3
Function at 0x601fa4
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
sub esp, 0x524
mov eax, dword [0x6a6040]
xor eax, esp
mov dword [esp + 0x51c], eax
push ebx
push ebp
mov ebx, ecx
mov ebp, edx
mov dword [esp + 0xc], ebx
push esi
push edi
test ebx, ebx
je 0x602059
mov edi, dword [ebx + 8]
test edi, edi
je 0x601ebd
mov esi, dword [edi + 0x28]
push dword [esi + 8]
mov dword [esi + 0x2c], 0
call fcn.00614130
add esp, 4
push esi
call fcn.00614130
add esp, 4
push edi
call fcn.00614130
add esp, 4
mov dword [ebx + 8], 0
mov edi, dword [ebx + 0xc]
test edi, edi
je 0x601ef2
mov esi, dword [edi + 0x28]
push dword [esi + 8]
mov dword [esi + 0x2c], 0
call fcn.00614130
add esp, 4
push esi
call fcn.00614130
add esp, 4
push edi
call fcn.00614130
add esp, 4
mov dword [ebx + 0xc], 0
mov edi, dword [ebx + 0x10]
test edi, edi
je 0x601f27
mov esi, dword [edi + 0x28]
push dword [esi + 8]
mov dword [esi + 0x2c], 0
call fcn.00614130
add esp, 4
push esi
call fcn.00614130
add esp, 4
push edi
call fcn.00614130
add esp, 4
mov dword [ebx + 0x10], 0
lea ecx, [ebx + 0x18]
call fcn.00600da0
test ebp, ebp
je 0x602059
mov edi, dword [ebx + 0x1c]
cmp edi, 0xffffffff
je 0x602052
mov eax, dword [0x6b0b50]
sub eax, 0
je 0x602072
sub eax, 3
je 0x601f8a
sub eax, 2
jne 0x602072
imul esi, edi, 0x2c
push dword [esi + 0x6af550]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test eax, eax
je 0x602052
push dword [esi + 0x6af550]
call dword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
test eax, eax
je 0x602052
imul ebp, edi, 0x2c
mov eax, dword [ebp + 0x6af554]
dec eax
cmp eax, 5
ja case.0x601f9d.1
jmp dword [eax*4 + 0x60207c]
push 1
push dword [ebp + 0x6af550]
call dword [sym.imp.WS2_32.dll_shutdown]
test eax, eax
jne 0x60203f
mov esi, dword [ebp + 0x6af550]
xor ecx, ecx
mov dword [esp + 0x20], ecx
lea ebx, [esi + 1]
nop dword [eax]
xor eax, eax
test ecx, ecx
je 0x601fe1
cmp dword [esp + eax*4 + 0x24], esi
je 0x601fe1
inc eax
cmp eax, ecx
jb 0x601fd6
cmp eax, ecx
jne 0x601ff2
cmp ecx, 0x40
jae 0x601ff2
mov dword [esp + eax*4 + 0x24], esi
inc dword [esp + 0x20]
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 2
push eax
push 0
push 0
lea eax, [esp + 0x2c]
mov dword [esp + 0x28], 0
push eax
push ebx
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x60203b
push 0
push 0x400
lea eax, [esp + 0x130]
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x60203b
mov ecx, dword [esp + 0x20]
jmp 0x601fd0
mov ebx, dword [esp + 0x14]
push dword [ebp + 0x6af550]
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, edi
call fcn.00602720
mov dword [ebx + 0x1c], 0xffffffff
mov ecx, dword [esp + 0x52c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00606a47
add esp, 0x524
ret
push 0x6a
call fcn.00613bb8
nop dword [eax]
dec ebx
and byte [eax], ah
dec ebx
and byte [eax], ah
movsb byte es:[edi], byte [esi]
pop ds
pushal
add byte [edi + ebx + 0x204b0060], ah
pushal
add byte [ebx + 0x20], cl
pushal
add ah, cl
int3
Function at 0x6024e0
Capabilities:
Create thread
Initialize winsock library

Disassembly:
sub esp, 0x1a4
mov eax, dword [0x6a6040]
xor eax, esp
mov dword [esp + 0x19c], eax
cmp byte [0x6ac736], 0
push esi
push edi
jne 0x602668
push 0x6af530
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea eax, [esp + 0x10]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x602681
cmp dword [0x6a759c], 0xffffffff
jne 0x602570
push 1
push eax
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [0x6a759c], eax
cmp eax, 0xffffffff
jne 0x602570
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._H2_OS_LibInit_Failed_CreateIoCompletionPort___ERROR:__d__H2__r_n_r_n
call fcn.005e0760
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
mov ecx, dword [esp + 0x19c]
xor ecx, esp
call fcn.00606a47
add esp, 0x1a4
ret
push str._FCGI_SHUTDOWN_EVENT_
call fcn.006159de
add esp, 4
test eax, eax
je 0x60259f
push eax
call fcn.00615b24
add esp, 4
push eax
push 0
push 0x6024b0
call fcn.00614000
add esp, 0xc
cmp eax, 0xffffffff
je 0x602556
cmp dword [0x6a7594], 0xffffffff
jne 0x6025c7
push str._FCGI_MUTEX_
call fcn.006159de
add esp, 4
test eax, eax
je 0x6025c7
push eax
call fcn.00615b24
add esp, 4
mov dword [0x6a7594], eax
mov esi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0xfffffffffffffff5
call esi
cmp eax, 0xffffffff
jne 0x602661
push 0xfffffffffffffff4
call esi
cmp eax, 0xffffffff
jne 0x602661
push 0xfffffffffffffff6
call esi
cmp eax, 0xffffffff
je 0x602661
push 0xfffffffffffffff6
mov dword [esp + 0x10], 0
call esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edi, eax
push 2
push 1
push 0
push 0x6a7584
call esi
push eax
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x602556
push dword [0x6a7584]
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_SetStdHandle]
test eax, eax
je 0x602556
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0
lea eax, [esp + 0x14]
push eax
push dword [0x6a7584]
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
neg eax
sbb eax, eax
and eax, 2
add eax, 3
mov dword [0x6b0b50], eax
mov byte [0x6ac736], 1
mov ecx, dword [esp + 0x1a4]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.00606a47
add esp, 0x1a4
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Error_starting_Windows_Sockets.__Error:__d
push 2
call fcn.006137ee
add esp, 4
push eax
call fcn.005bac00
add esp, 0xc
push 0x6f
call fcn.00613bb8
int3
Function at 0x603ab0
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x647ee7
mov eax, dword fs:[0]
push eax
sub esp, 0xc20
mov eax, dword [0x6a6040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0xc24], esi
mov dword [ebp - 0xc28], esi
mov dword [ebp - 0xc2c], 0
mov dword [esi], 0
xor eax, eax
mov dword [ebp - 4], 0
mov word [ebp - 0xc20], ax
lea eax, [ebp - 0xc20]
push eax
push 0
push 0
push 0x26
push 0
mov dword [ebp - 0xc2c], 1
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x603b7c
lea edx, [ebp - 0xc20]
lea ecx, [ebp - 0xc24]
call fcn.004b7ca0
mov ecx, dword [esi]
or edi, 0xffffffff
mov edx, dword [eax]
cmp ecx, edx
je 0x603b65
mov dword [esi], edx
mov dword [eax], 0
test ecx, ecx
je 0x603b65
mov eax, edi
lock xadd dword [ecx], eax
dec eax
jne 0x603b65
push ecx
call fcn.005a47b0
mov ecx, dword [ebp - 0xc24]
test ecx, ecx
je 0x603b7c
lock xadd dword [ecx], edi
dec edi
jne 0x603b7c
push ecx
call fcn.005a47b0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00606a47
mov esp, ebp
pop ebp
ret

Function at 0x603ba0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x647f2d
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x6a6040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ecx, eax
test ecx, ecx
jne 0x603bf8
mov esi, dword [0x6aefbc]
test esi, esi
je 0x603bed
lock inc dword [esi]
mov dword [ebp - 0x10], esi
mov edi, esi
mov ebx, esi
jmp 0x603c4e
xor esi, esi
xor edi, edi
mov dword [ebp - 0x10], esi
xor ebx, ebx
jmp 0x603c4e
call fcn.005b4610
cmp eax, 0x3ffffffa
jle 0x603c1a
mov esi, dword [0x6aefbc]
mov edi, esi
test esi, esi
je 0x603bed
lock inc dword [esi]
mov dword [ebp - 0x10], esi
mov ebx, edi
jmp 0x603c4e
push 0
add eax, eax
push eax
push ecx
lea ecx, [ebp - 0x18]
call fcn.005a5770
mov esi, dword [eax]
mov edi, esi
mov dword [eax], 0
mov ebx, esi
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x10], esi
test ecx, ecx
je 0x603c4e
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
jne 0x603c4e
push ecx
call fcn.005a47b0
mov ecx, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
push 0
mov dword [ebp - 4], 3
call fcn.005b47f0
add esp, 4
test edi, edi
je 0x603c7b
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
jne 0x603c7b
push ecx
mov ecx, esi
call fcn.005a47b0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x605090
Capabilities:
Get number of processors
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x647ff5
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x6a6040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
xor esi, esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], 0x64
mov byte [ebp - 4], 1
lea ebx, [ecx + 0x18]
test byte [ecx + 0x30], 3
jne 0x605113
mov edi, dword [ebp + 8]
xor edx, edx
mov eax, edi
div dword [ecx + 0x28]
mov eax, dword [ecx + 0x2c]
mov ecx, dword [eax + edx*4]
test ecx, ecx
je 0x605113
nop dword [eax]
cmp dword [ecx + 4], edi
je 0x6050fd
mov ecx, dword [ecx]
test ecx, ecx
jne 0x6050f0
jmp 0x605113
mov eax, dword [ecx + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x605113
lock inc dword [eax]
mov esi, dword [ecx + 0xc]
mov dword [ebp - 0x14], esi
mov eax, dword [ebp + 0xc]
or edi, 0xffffffff
cmp eax, esi
je 0x60513f
test eax, eax
je 0x605127
lock inc dword [eax]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
test esi, esi
je 0x60513f
mov eax, edi
lock xadd dword [esi], eax
dec eax
jne 0x60513f
push ecx
mov ecx, esi
call fcn.005a47b0
push ecx
lea eax, [ebp - 0x18]
mov ecx, ebx
push eax
lea eax, [ebp + 8]
push eax
call fcn.00605c10
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x605165
mov eax, edi
lock xadd dword [ecx], eax
dec eax
jne 0x605165
push ecx
call fcn.005a47b0
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x605179
lock xadd dword [ecx], edi
dec edi
jne 0x605179
push ecx
call fcn.005a47b0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x6078ad
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x6078ec
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x6078ec
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x6078ec
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x6078ec
cmp dword [ecx + 0x74], 0xe
jbe 0x6078ec
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x612b15
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x6a6040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x64cfd8
push esi
call fcn.0061bcef
pop ecx
pop ecx
test eax, eax
jne 0x612b43
xor al, al
jmp 0x612bc0
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.00612837
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x612b7d
push dword [ebp - 0x210]
call fcn.00614130
xor al, al
jmp 0x612bbe
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x612b83
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x612ba3
push edx
call fcn.00612a4c
pop ecx
test al, al
je 0x612b6e
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x612bb1
mov bl, 1
push dword [ebp - 0x210]
call fcn.00614130
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00606a47
leave
ret
Function at 0x61da6a
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x18
mov eax, dword [eax + 0xc]
nop
shr eax, 3
test al, 1
je 0x61da84
mov al, 1
leave
ret
mov eax, dword [ebp + 8]
push ebx
push esi
mov eax, dword [eax + 0xc]
nop
test al, 0xc0
mov eax, dword [ebp + 8]
je 0x61da9b
mov ecx, dword [eax]
cmp ecx, dword [eax + 4]
je 0x61daf3
mov eax, dword [eax + 0x10]
nop
push eax
call fcn.0061c4b5
mov esi, eax
pop ecx
cmp esi, 0xffffffff
je 0x61daf3
xor ebx, ebx
lea eax, [ebp - 0x10]
inc ebx
xorps xmm0, xmm0
push ebx
push eax
movlpd qword [ebp - 8], xmm0
push dword [ebp - 4]
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x61daf3
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x61daf3
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x18]
jne 0x61daed
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
je 0x61daef
xor bl, bl
mov al, bl
jmp 0x61daf5
xor al, al
pop esi
pop ebx
leave
ret
Function at 0x620540
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x6205dd
push ebx
push esi
call fcn.00620509
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0061a52d
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x62058a
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x6205dc
push edi
push eax
call fcn.006174f0
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x6205aa
call fcn.006174a0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x6205db
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0061a52d
add esp, 0x20
test eax, eax
jne 0x6205c9
push edi
call fcn.006174a0
jmp 0x6205d1
push ebx
call fcn.006174a0
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x6205e0
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x6205f1
pop esi
ret
push ebx
push edi
push esi
call fcn.00620509
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.006174f0
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x620619
push ebx
push esi
push edi
call fcn.00609db0
add esp, 0xc
push 0
call fcn.006174a0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x620d70
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0062088c

Function at 0x624038
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x6a6040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x62407b
call fcn.006147bf
mov dword [eax], 0xf
call fcn.006147d4
mov dword [eax], 0xd
call fcn.0061744f
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00606a47
leave
ret
test eax, eax
jne 0x624082
inc eax
jmp 0x62406f
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x62406d
xor eax, eax
cmp ecx, 1
setne al
jmp 0x62406f
Function at 0x62441f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov edx, dword [ebp + 8]
mov ecx, edx
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, edx
sar ecx, 6
and eax, 0x3f
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x6abc60]
mov dword [ebp - 0x18], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x624461
cmp byte [ebx], 0xa
jne 0x624461
or byte [edi + eax + 0x28], 4
jmp 0x624466
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x624569
mov cl, byte [eax]
cmp cl, 0x1a
je 0x624544
lea ebx, [eax + 1]
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 0xc]
cmp cl, 0xd
je 0x624495
mov eax, dword [ebp - 8]
jmp 0x6244b5
mov edx, dword [ebp - 0x10]
cmp dword [ebp - 8], edx
mov edx, dword [ebp + 8]
jae 0x6244d1
mov ebx, dword [ebp - 8]
cmp byte [ebx], 0xa
jne 0x6244af
add eax, 2
mov cl, 0xa
jmp 0x6244b2
mov eax, dword [ebp - 8]
mov ebx, dword [ebp + 0xc]
mov byte [esi], cl
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], esi
mov esi, dword [ebp - 0xc]
add esi, dword [ebp - 8]
cmp eax, dword [ebp - 0x10]
jb 0x624477
jmp 0x624569
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x62453f
cmp dword [ebp - 0x10], 0
je 0x62453f
mov edx, dword [ebp - 0x18]
mov eax, dword [edx*4 + 0x6abc60]
test byte [eax + edi + 0x28], 0x48
je 0x62451e
mov cl, byte [ebp - 1]
cmp cl, 0xa
jne 0x62450e
mov byte [esi], 0xa
jmp 0x624568
mov byte [esi], 0xd
mov eax, dword [edx*4 + 0x6abc60]
mov byte [eax + edi + 0x2a], cl
jmp 0x624568
cmp byte [ebp - 1], 0xa
jne 0x624528
cmp esi, ebx
je 0x624509
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0062438f
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x624569
mov byte [esi], 0xd
jmp 0x624568
mov eax, edx
and edx, 0x3f
sar eax, 6
imul edx, edx, 0x38
mov edi, dword [eax*4 + 0x6abc60]
mov al, byte [edi + edx + 0x28]
test al, 0x40
jne 0x624566
or al, 2
mov byte [edi + edx + 0x28], al
jmp 0x624569
mov byte [esi], cl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret