joyce8/EMBER2024-capa huggingface dataset:
Function at 0x416780
Capabilities:
Get common file path
Get file attributes
Set current directory
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x41e3a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x230
push ebp
push edi
mov eax, dword [esp + 0x248]
push 0
push eax
mov dword [esp + 0x248], 1
call dword [sym.imp.MSVCRT.dll__access]
or ebp, 0xffffffff
add esp, 8
cmp eax, ebp
je 0x416802
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x135]
mov byte [esp + 0x134], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x134]
push ecx
push 0x104
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edx, dword [esp + 0x24c]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x416842
lea ecx, [esp + 0x248]
mov byte [esp + 0x240], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24c]
mov dword [esp + 0x240], ebp
call sub.MFC42.DLL_CString::CString
pop edi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x230]
mov dword fs:[0], ecx
add esp, 0x23c
ret
mov eax, dword [esp + 0x248]
push ebx
push esi
push 2
push 0
push eax
call fcn.00416630
lea ecx, [esp + 0x1c]
mov esi, eax
push ecx
push ebp
push esi
call fcn.004166a0
mov eax, dword [esp + 0x28]
add esp, 0x18
xor edi, edi
mov ebx, eax
test eax, eax
jle 0x4168b8
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea edx, [esp + 0x10]
push edx
push edi
push esi
call fcn.004166a0
push 2
lea eax, [esp + 0x24]
push 0
push eax
push edi
push esi
call fcn.004166e0
add esp, 0x20
lea ecx, [esp + 0x14]
push ecx
call ebp
test al, 1
je 0x4168b0
and al, 0xfe
lea edx, [esp + 0x14]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
inc edi
cmp edi, ebx
jl 0x416878
or ebp, 0xffffffff
push esi
call fcn.00416730
add esp, 4
lea eax, [esp + 0x13c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea ecx, [esp + 0x250]
mov byte [esp + 0x248], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x254]
mov dword [esp + 0x248], ebp
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x240]
pop esi
pop ebx
pop edi
mov eax, 1
pop ebp
mov dword fs:[0], ecx
add esp, 0x23c
ret

Function at 0x416950
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov dword [ecx], 0x67452301
mov byte [ecx + 0x68], al
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 4], 0xefcdab89
mov dword [ecx + 8], 0x98badcfe
mov dword [ecx + 0xc], 0x10325476
ret
Function at 0x4178c0
Capabilities:
Encrypt data using blowfish

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0x4c
push ebx
push ebp
mov ebp, ecx
mov ebx, dword [esp + 0x5c]
mov ecx, dword [eax]
cmp ebx, 1
mov dword [ebp], ecx
mov edx, dword [eax + 4]
mov dword [ebp + 4], edx
mov ecx, dword [eax]
mov dword [ebp + 8], ecx
mov edx, dword [eax + 4]
mov dword [ebp + 0xc], edx
jae 0x417910
lea eax, [esp + 0x60]
lea ecx, [esp + 0x10]
push eax
mov dword [esp + 0x64], str.Incorrect_key_length
call dword [sym.imp.MSVCRT.dll_public:_void___thiscall_exception::constructor_char_const__const_const__]
lea ecx, [esp + 0x10]
push 0x424748
push ecx
call sub.MSVCRT.dll__CxxThrowException
cmp ebx, 0x38
jbe 0x41791a
mov ebx, 0x38
mov ecx, ebx
push esi
mov esi, dword [esp + 0x5c]
mov edx, ecx
push edi
lea edi, [esp + 0x24]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [ebp + 0x10]
and ecx, 3
xor eax, eax
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x12
mov esi, 0x421cb4
mov edi, edx
mov dword [esp + 0x64], 0x12
rep movsd dword es:[edi], dword [esi]
lea edi, [ebp + 0x58]
mov ecx, 0x400
mov esi, 0x421cfc
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x24]
mov esi, edx
xor edx, edx
mov dword [esp + 0x68], 4
mov edi, edx
xor edx, edx
mov dl, byte [ecx]
shl edi, 8
or edx, edi
inc ecx
inc eax
cmp eax, ebx
jne 0x417985
xor eax, eax
lea ecx, [esp + 0x24]
mov edi, dword [esp + 0x68]
dec edi
mov dword [esp + 0x68], edi
jne 0x41796e
mov edi, dword [esi]
add esi, 4
xor edi, edx
mov edx, dword [esp + 0x64]
mov dword [esi - 4], edi
dec edx
mov dword [esp + 0x64], edx
jne 0x417964
xor edi, edi
lea esi, [ebp + 0x10]
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
lea eax, [esp + 0x10]
mov ecx, ebp
push eax
call fcn.00417a30
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [esi], ecx
add esi, 4
inc edi
mov dword [esi], edx
inc edi
add esi, 4
cmp edi, 0x12
jb 0x4179b2
lea eax, [ebp + 0x58]
mov dword [esp + 0x68], 4
mov ebx, eax
xor edi, edi
mov esi, ebx
lea eax, [esp + 0x10]
mov ecx, ebp
push eax
call fcn.00417a30
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [esi], ecx
add esi, 4
inc edi
mov dword [esi], edx
inc edi
add esi, 4
cmp edi, 0x100
jl 0x4179e8
mov eax, dword [esp + 0x68]
add ebx, 0x400
dec eax
mov dword [esp + 0x68], eax
jne 0x4179e4
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret 0xc
Function at 0x41b230
Capabilities:
Set socket configuration

Disassembly:
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp]
push 4
push eax
push 4
push 0xffff
push ecx
mov dword [esp + 0x14], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x41b26b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.0041b220
add esp, 4
or eax, 0xffffffff
pop ecx
ret
xor eax, eax
pop ecx
ret

Function at 0x41b390
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x10
mov edx, dword [esp + 0x1c]
xor ecx, ecx
xor eax, eax
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 8], edx
push eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
push eax
lea edx, [esp + 0xc]
lea eax, [esp + 8]
mov dword [esp + 0x14], ecx
push edx
mov edx, dword [esp + 0x20]
push eax
lea ecx, [esp + 0x18]
push 1
push ecx
push edx
call dword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
jne 0x41b3e1
mov eax, dword [esp]
add esp, 0x10
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
neg eax
add esp, 0x10
ret

Function at 0x41b560
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0xc
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
xor eax, eax
mov dword [esp], 0
mov dword [esp + 4], eax
mov dword [esp + 4], ecx
push eax
push eax
mov dword [esp + 0x10], eax
push eax
lea eax, [esp + 0xc]
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x14]
push 1
push ecx
push edx
call dword [sym.imp.WS2_32.dll_WSASend]
test eax, eax
jne 0x41b5ab
mov eax, dword [esp]
add esp, 0xc
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
neg eax
add esp, 0xc
ret
Function at 0x41b760
Capabilities:
Connect socket

Disassembly:
sub esp, 0x30
push ebx
push ebp
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
test eax, eax
mov dword [esp + 8], eax
jne 0x41b793
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0041b220
add esp, 4
or eax, 0xffffffff
pop ebp
pop ebx
add esp, 0x30
ret
mov ebx, dword [esp + 0x3c]
mov ebp, dword [sym.imp.WS2_32.dll_WSAEventSelect]
push 0x10
push eax
push ebx
call ebp
cmp eax, 0xffffffff
jne 0x41b7cb
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.0041b220
add esp, 4
or eax, 0xffffffff
pop ebp
pop ebx
add esp, 0x30
ret
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
push esi
push edi
push 0
push 0
push 0
push 0
push ecx
push edx
push ebx
call dword [sym.imp.WS2_32.dll_WSAConnect]
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
call edi
cmp esi, 0xffffffff
jne 0x41b863
cmp eax, 0x2733
jne 0x41b863
mov eax, dword [esp + 0x50]
push 1
push eax
lea ecx, [esp + 0x18]
push 1
push ecx
push 1
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
test eax, eax
je 0x41b825
call edi
push eax
call fcn.0041b220
add esp, 4
or esi, esi
jmp 0x41b863
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push eax
push ebx
call dword [sym.imp.WS2_32.dll_WSAEnumNetworkEvents]
cmp eax, 0xffffffff
jne 0x41b84b
call edi
push eax
call fcn.0041b220
add esp, 4
or esi, 0xffffffff
jmp 0x41b863
mov eax, dword [esp + 0x28]
test eax, eax
je 0x41b861
push eax
call fcn.0041b220
add esp, 4
or esi, 0xffffffff
jmp 0x41b863
xor esi, esi
mov ecx, dword [esp + 0x10]
push 0
push ecx
push ebx
call ebp
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret

Function at 0x41b8c0
Capabilities:
Create thread
Resolve dns

Disassembly:
sub esp, 0x9c
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_inet_addr]
push esi
push edi
mov edi, dword [esp + 0xac]
push edi
call ebx
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x41b984
mov eax, dword [esp + 0xb0]
test eax, eax
je 0x41b95b
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x41b95b
cmp dword [esp + 0x24], 2
jne 0x41b95b
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], 0
push ecx
push 0
push edi
push 0x41b890
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
je 0x41b95b
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea edx, [esp + 0xc]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x41b95b
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
add esp, 0x9c
ret
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x41b973
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x9c
ret
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
push edx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
call ebx
pop edi
pop esi
pop ebx
add esp, 0x9c
ret
Function at 0x50c620
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x9000]
push edi
jmp 0x50c63a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x50c641
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x50c630
mov eax, 1
add ebx, ebx
jne 0x50c653
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x50c648
jne 0x50c664
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x50c648
xor ecx, ecx
sub eax, 3
jb 0x50c678
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x50c6ea
mov ebp, eax
add ebx, ebx
jne 0x50c683
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x50c690
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x50c6b4
inc ecx
add ebx, ebx
jne 0x50c6a0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x50c695
jne 0x50c6b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x50c695
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x50c6d4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x50c6c5
jmp 0x50c636
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x50c6d4
add edi, ecx
jmp 0x50c636
pop esi
lea edi, [esi + 0xa000]
mov eax, dword [edi]
or eax, eax
je 0x50c733
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xeacc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xeb24]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x50c6f1
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xeb2c]
or eax, eax
je 0x50c72d
mov dword [ebx], eax
add ebx, 4
jmp 0x50c70e
call dword [esi + 0xeb28]
mov ebp, dword [esi + 0xeb30]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x50c767
sub esp, 0xffffff80
jmp section.UPX0

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401080
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Initialize winsock library
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
sub esp, 0x5a4
lea eax, [esp + 0x414]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x4010aa
push str.Error_at_WSAStartup___n
call fcn.00402382
add esp, 4
push ebx
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4010e5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Error_at_socket__:__ld_n
call fcn.00402382
add esp, 8
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 1
pop ebx
add esp, 0x5a4
ret
push str.58.192.142.134
mov word [esp + 8], 2
call dword [sym.imp.WS2_32.dll_inet_addr]
mov ecx, dword [esp + 0x5b0]
mov dword [esp + 8], eax
push ecx
call dword [sym.imp.WS2_32.dll_htons]
lea edx, [esp + 4]
push 0x10
push edx
push ebx
mov word [esp + 0x12], ax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x40113e
push str.Failed_to_connect._n
call fcn.00402382
add esp, 4
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
pop ebx
add esp, 0x5a4
ret
mov al, byte [0x40f584]
push esi
push edi
mov byte [esp + 0x1c], al
mov edx, dword [esp + 0x5b4]
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x1d]
rep stosd dword es:[edi], eax
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push eax
push ecx
push edx
push ebx
call dword [sym.imp.WS2_32.dll_send]
push eax
push str.Bytes_Sent:__ld_n
call fcn.00402382
add esp, 8
lea ecx, [esp + 0x1c]
push 0
push 0x400
push ecx
push ebx
call dword [sym.imp.WS2_32.dll_recv]
mov byte [esp + eax + 0x1d], 0
lea edi, [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov edx, ecx
mov esi, edi
mov edi, 0x40f128
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x5a4
ret

Function at 0x4011d0
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x405cbe
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x405cde
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004072a8
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x405cff
test byte [esp + 8], 2
je 0x405cff
mov dword [0x40f5a4], 0xd
mov dword [0x40f5a8], 5
jmp 0x405cda
xor eax, eax
ret
Function at 0x409d80
Capabilities:
Acquire debug privileges
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47510c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1f8
push ebx
push esi
push edi
mov dword [ebp - 0x19c], 0
mov ecx, 0x63
xor eax, eax
lea edi, [ebp - 0x198]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x1a0], 0x190
mov dword [ebp - 0x1a4], 0
mov dword [ebp - 0x1a8], 0
push 0
push 0x1121fc8
lea ecx, [ebp - 0x1b4]
call fcn.0043293e
mov dword [ebp - 4], 0
push 0xffffffffffffffff
lea ecx, [ebp - 0x1b4]
call fcn.00432965
push str.SeDebugPrivilege
call fcn.004096b0
add esp, 4
lea eax, [ebp - 0x1a4]
push eax
mov ecx, dword [ebp - 0x1a0]
push ecx
lea edx, [ebp - 0x19c]
push edx
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x409ebb
call fcn.00409750
mov dword [ebp - 0x1b8], eax
cmp dword [ebp - 0x1b8], 0
je 0x409ebb
mov eax, dword [ebp - 0x1a4]
shr eax, 2
mov dword [ebp - 0x1a8], eax
mov dword [ebp - 0x1bc], 0
jmp 0x409e6b
mov ecx, dword [ebp - 0x1bc]
add ecx, 1
mov dword [ebp - 0x1bc], ecx
cmp dword [ebp - 0x1bc], 0x64
jae 0x409eac
mov edx, dword [ebp - 0x1bc]
cmp edx, dword [ebp - 0x1a8]
jae 0x409eac
mov eax, dword [ebp - 0x1bc]
imul eax, eax, 0x1001c
mov ecx, dword [ebp + 8]
add ecx, eax
push ecx
mov edx, dword [ebp - 0x1bc]
mov eax, dword [ebp + edx*4 - 0x19c]
push eax
call fcn.004097e0
add esp, 8
jmp 0x409e5c
mov ecx, dword [ebp - 0x1b8]
push ecx
call fcn.004097b0
add esp, 4
lea ecx, [ebp - 0x1b4]
call fcn.0043297a
mov edx, 0x64
cmp edx, dword [ebp - 0x1a8]
sbb eax, eax
neg eax
test eax, eax
je 0x409ee5
mov dword [ebp - 0x1c4], 0x64
jmp 0x409ef1
mov ecx, dword [ebp - 0x1a8]
mov dword [ebp - 0x1c4], ecx
mov edx, dword [ebp - 0x1c4]
mov dword [ebp - 0x1c0], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1b4]
call fcn.00409f30
mov eax, dword [ebp - 0x1c0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40b420
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x28], eax
mov edx, dword [ebp - 4]
cmp dword [edx + 0x28], 0
jne 0x40b44d
xor al, al
jmp 0x40b59a
push str.CreateToolhelp32Snapshot
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40b486
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x30], 2
xor al, al
jmp 0x40b59a
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov dword [edx + 0x10], eax
push str.Process32First
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40b4c8
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, dword [ebp - 4]
mov dword [edx + 0x30], 2
xor al, al
jmp 0x40b59a
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov dword [eax + 0x14], ecx
push str.Process32Next
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40b50a
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 4]
mov dword [eax + 0x30], 2
xor al, al
jmp 0x40b59a
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [ecx + 0x18], edx
push str.Module32First
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40b549
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x30], 2
xor al, al
jmp 0x40b59a
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov dword [edx + 0x1c], eax
push str.Module32Next
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40b588
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, dword [ebp - 4]
mov dword [edx + 0x30], 2
xor al, al
jmp 0x40b59a
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov dword [eax + 0x20], ecx
mov edx, dword [ebp - 4]
mov byte [edx + 0x2d], 1
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x413940
Capabilities:
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x475af5
push eax
mov eax, 0x200c
mov dword fs:[0], esp
call fcn.0043f4d0
push ebx
xor ebx, ebx
push esi
mov dword [esp + 0xc], ebx
mov dword [esp + 0x201c], 1
mov eax, dword [0x497e8c]
mov dword [esp + 8], eax
mov ecx, dword [esp + 0x2034]
mov byte [esp + 0x201c], 5
mov eax, dword [ecx - 8]
test eax, eax
jne 0x4139a9
lea edx, [esp + 0x10]
push edx
call fcn.00413840
mov ebx, 1
add esp, 4
mov dword [esp + 0xc], ebx
jmp 0x4139b0
lea eax, [esp + 0x2034]
mov eax, dword [eax]
mov ecx, dword [esp + 0x2030]
mov edx, dword [esp + 0x202c]
push eax
lea eax, [esp + 0x18]
push 0x2000
push eax
mov eax, dword [esp + 0x2034]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test bl, 1
je 0x4139f0
and ebx, 0xfffffffe
lea ecx, [esp + 0x10]
mov dword [esp + 0xc], ebx
call fcn.0045ecd5
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0xc]
call fcn.0045ee5e
mov esi, dword [esp + 0x2024]
lea edx, [esp + 8]
push edx
mov ecx, esi
call fcn.0045ea4a
or ebx, 2
mov dword [esp + 0xc], ebx
lea ecx, [esp + 8]
mov byte [esp + 0x201c], 4
call fcn.0045ecd5
lea ecx, [esp + 0x2028]
mov byte [esp + 0x201c], 3
call fcn.0045ecd5
lea ecx, [esp + 0x202c]
mov byte [esp + 0x201c], 2
call fcn.0045ecd5
lea ecx, [esp + 0x2030]
mov byte [esp + 0x201c], 1
call fcn.0045ecd5
lea ecx, [esp + 0x2034]
mov byte [esp + 0x201c], 0
call fcn.0045ecd5
mov ecx, dword [esp + 0x2014]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x2018
ret
Function at 0x41c050
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4765df
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
mov dword [esp + 0x18], 0
lea eax, [esp + 0x30]
lea ecx, [esp + 8]
push eax
mov dword [esp + 0x28], 1
call fcn.0045ea4a
push 0x47a9b8
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 2
call fcn.0045ed43
mov ecx, dword [esp + 8]
mov esi, 2
mov bl, 3
mov eax, dword [ecx - 8]
mov byte [esp + 0x24], bl
cmp eax, esi
jl 0x41c11e
push 0x492e7c
lea ecx, [esp + 0x10]
call fcn.0045f0b1
lea edx, [esp + 0x10]
push esi
push edx
lea ecx, [esp + 0x10]
call fcn.00454695
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 4
call fcn.0045f0ed
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], bl
call fcn.0045ecd5
lea eax, [esp + 0x14]
push esi
push eax
lea ecx, [esp + 0x10]
call fcn.00454560
push eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 5
call fcn.0045ee0e
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], bl
call fcn.0045ecd5
mov ecx, dword [esp + 8]
cmp dword [ecx - 8], esi
jge 0x41c0b1
mov esi, dword [esp + 0x2c]
lea edx, [esp + 0xc]
push edx
mov ecx, esi
call fcn.0045ea4a
mov dword [esp + 0x18], 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 2
call fcn.0045ecd5
lea ecx, [esp + 8]
mov byte [esp + 0x24], 1
call fcn.0045ecd5
lea ecx, [esp + 0x30]
mov byte [esp + 0x24], 0
call fcn.0045ecd5
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret

Function at 0x41d250
Capabilities:
Get disk size

Disassembly:
push 0xffffffffffffffff
push 0x4766d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
mov eax, dword [esp + 0x34]
push ebx
push eax
lea ecx, [esp + 0x3c]
call fcn.0045ed43
xor ebx, ebx
push 0x47ad04
push 0x47ad00
lea ecx, [esp + 0x40]
mov dword [esp + 0x38], ebx
call fcn.004543ac
push 0x492fe8
lea ecx, [esp + 0x3c]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebx
call fcn.00454785
cmp eax, 0xffffffff
je 0x41d2d9
add eax, 2
lea ecx, [esp + 4]
push eax
push ecx
lea ecx, [esp + 0x40]
call fcn.00454695
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x34], 1
call fcn.0045ee0e
lea ecx, [esp + 4]
mov byte [esp + 0x30], bl
call fcn.0045ecd5
lea edx, [esp + 0x18]
lea eax, [esp + 0x20]
push edx
mov edx, dword [esp + 0x3c]
lea ecx, [esp + 0x14]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x41d329
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov dword [esp + 8], eax
mov dword [esp + 0xc], ebx
fild qword [esp + 8]
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebx
fmul qword [0x47b958]
fild qword [esp + 8]
faddp st(1)
fmul qword [0x47b950]
fstp qword [esp + 8]
lea ecx, [esp + 0x38]
mov dword [esp + 0x30], 0xffffffff
call fcn.0045ecd5
mov ecx, dword [esp + 0x28]
pop ebx
fld qword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x30
ret