joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100daea0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x100daecd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100daecd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x40226a
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push edi
mov byte [ebp - 0x104], 0
mov ecx, 0x3f
xor eax, eax
lea edi, [ebp - 0x103]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 4], 0
mov eax, 0x4021d6
sub eax, 0x401cf5
mov dword [ebp - 4], eax
push 8
push 0x408008
lea ecx, [ebp - 0x104]
push ecx
call fcn.00406350
add esp, 0xc
mov edx, dword [ebp - 4]
push edx
push 0x401cf5
lea eax, [ebp - 0x104]
push eax
call fcn.00406464
add esp, 0xc
push 0x100
push 0
lea ecx, [ebp - 0x104]
push ecx
call fcn.00406890
add esp, 0xc
call fcn.00401d3d
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x406464
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
jmp 0x40648a
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp + 0x10]
jge 0x40654c
mov edx, dword [ebp - 0xc]
add edx, 1
and edx, 0x800000ff
jns 0x4064ac
dec edx
or edx, 0xffffff00
inc edx
mov dword [ebp - 0xc], edx
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0xc]
xor ecx, ecx
mov cl, byte [eax]
mov edx, dword [ebp - 0x10]
add edx, ecx
and edx, 0x800000ff
jns 0x4064ce
dec edx
or edx, 0xffffff00
inc edx
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0xc]
mov cl, byte [eax]
mov byte [ebp - 4], cl
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x10]
mov cl, byte [eax]
mov byte [edx], cl
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x10]
mov al, byte [ebp - 4]
mov byte [edx], al
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0xc]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0x10]
xor ecx, ecx
mov cl, byte [eax]
add edx, ecx
and edx, 0x800000ff
jns 0x40651d
dec edx
or edx, 0xffffff00
inc edx
mov dword [ebp - 8], edx
mov edx, dword [ebp + 8]
add edx, dword [ebp - 8]
mov al, byte [edx]
mov byte [ebp - 4], al
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x14]
xor edx, edx
mov dl, byte [ecx]
mov eax, dword [ebp - 4]
and eax, 0xff
xor edx, eax
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x14]
mov byte [ecx], dl
jmp 0x406481
mov esp, ebp
pop ebp
ret
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41d004]
jne 0x40100a
repz ret
jmp fcn.00401459

Function at 0x408155
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00405748
and dword [ebp - 4], 0
cmp dword [0x41f258], 0
mov ebx, eax
jne 0x408206
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4082b7
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4082b7
push eax
call fcn.004056d6
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x41f258], eax
call esi
push eax
call fcn.004056d6
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x41f25c], eax
call esi
push eax
call fcn.004056d6
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x41f260], eax
call esi
push eax
call fcn.004056d6
pop ecx
mov dword [0x41f268], eax
test eax, eax
je 0x408206
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004056d6
pop ecx
mov dword [0x41f264], eax
mov eax, dword [0x41f264]
cmp eax, ebx
je 0x40825e
cmp dword [0x41f268], ebx
je 0x40825e
push eax
call fcn.00405751
push dword [0x41f268]
mov esi, eax
call fcn.00405751
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40825e
test edi, edi
je 0x40825e
call esi
test eax, eax
je 0x408255
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x408255
test byte [ebp - 0xc], 1
jne 0x40825e
or dword [ebp + 0x10], 0x200000
jmp 0x408297
mov eax, dword [0x41f25c]
cmp eax, ebx
je 0x408297
push eax
call fcn.00405751
pop ecx
test eax, eax
je 0x408297
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x408297
mov eax, dword [0x41f260]
cmp eax, ebx
je 0x408297
push eax
call fcn.00405751
pop ecx
test eax, eax
je 0x408297
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x41f258]
call fcn.00405751
pop ecx
test eax, eax
je 0x4082b7
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4082b9
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4196f4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
cmp edi, 0x19f
jne 0x419715
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push ebx
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
xor esi, esi
cmp edi, ebx
jle 0x419737
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], ebx
call fcn.004196e5
mov eax, dword [ebp + 8]
add eax, esi
pop ecx
mov cl, byte [ebp - 4]
xor byte [eax], cl
inc esi
cmp esi, edi
jl 0x41971b
pop esi
pop ebx
cmp edi, 0x2d
jne 0x41974f
or dword [0x4a8664], 0xffffffff
mov dword [0x4a8660], 0xa62e7790
leave
ret
Function at 0x402718
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x40a00c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4027b0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402790
xor eax, eax
push ebp
push 0x402789
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4027cc
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402790
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x40a00c]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x40a00c], ax
mov esp, ebp
pop ebp
ret

Function at 0x402e80
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x40b034], 0
je 0x402ee1
cmp word [0x40b208], 0xd7b2
jne 0x402ea9
cmp dword [0x40b210], 0
jbe 0x402ea9
mov eax, 0x40b204
call dword [0x40b220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x40a054
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x402f08
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x40a018], 0
jne 0x402efd
push 0
push 0x40a04c
push 0x40a054
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4035ec
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x403652
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.0040315c
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.0040260c
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x40363c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403659
lea eax, [ebp - 0x10]
call fcn.00402ffc
ret

Function at 0x403e08
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov dword [esp], edx
mov ebx, eax
push 0
push 0
push 0
push 0
push 0x403e98
call sub.wininet.dll_InternetOpenA
mov edi, eax
push 0
push 0
push 0
push 0
mov eax, ebx
call fcn.00403374
push eax
push edi
call sub.wininet.dll_InternetOpenUrlA
mov ebx, eax
mov dword [esp + 4], 0x400
lea eax, [esp + 8]
push eax
lea eax, [esp + 8]
push eax
push esi
push 5
push ebx
call sub.wininet.dll_HttpQueryInfoA
mov eax, ebp
call fcn.00402438
mov esi, eax
lea eax, [esp + 0xc]
push eax
push ebp
push esi
push ebx
call sub.wininet.dll_InternetReadFile
push ebx
call sub.wininet.dll_InternetCloseHandle
push edi
call sub.wininet.dll_InternetCloseHandle
mov edx, dword [esp]
mov eax, esi
call fcn.00403df4
mov eax, esi
call fcn.00402458
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x403e9c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403364
xor eax, eax
push ebp
push 0x403f2c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00402ffc
mov eax, dword [ebp - 4]
call fcn.00403174
mov ebx, eax
test bx, bx
jbe 0x403f0e
mov di, 1
movzx eax, di
mov edx, dword [ebp - 4]
movzx eax, byte [edx + eax - 1]
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
mov dx, word [ebp - 6]
xor dx, 0x54
call fcn.0040311c
mov edx, dword [ebp - 0xc]
mov eax, esi
call fcn.0040317c
inc edi
dec bx
jne 0x403edf
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403f33
lea eax, [ebp - 0xc]
call fcn.00402ffc
lea eax, [ebp - 4]
call fcn.00402ffc
ret

Function at 0x403ffc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
add esp, 0xfffffef4
mov dword [esp + 4], 0xff
mov dword [esp + 8], 7
push esp
push 0x40406c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyA
push esp
push 0x404078
mov eax, dword [esp + 8]
push eax
call sub.advapi32.dll_RegOpenKeyA
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x10]
push eax
push 0
push 0x404084
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
lea ebx, [esp + 0xc]
mov eax, dword [esp]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov eax, ebx
add esp, 0x10c
pop ebx
ret

Function at 0x404090
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffef8
mov ebx, eax
push esp
push 0x104
call sub.kernel32.dll_GetTempPathA
test eax, eax
je 0x4040c6
cmp byte [esp + eax - 1], 0x5c
je 0x4040b8
mov byte [esp + eax], 0x5c
mov byte [esp + eax + 1], 0
mov eax, ebx
mov edx, esp
mov ecx, 0x105
call fcn.0040315c
add esp, 0x108
pop ebx
ret

Function at 0x4040d0
Capabilities:
Set registry value

Disassembly:
push ebx
push ecx
mov ebx, eax
push esp
push 0x404120
push 0x80000001
call sub.advapi32.dll_RegOpenKeyA
push esp
push 0x40412c
mov eax, dword [esp + 8]
push eax
call sub.advapi32.dll_RegOpenKeyA
push 0xff
push ebx
push 1
push 0
push 0x404138
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_RegSetValueExA
mov bl, 1
mov eax, dword [esp]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov eax, ebx
pop edx
pop ebx
ret
Function at 0x404408
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ecx
mov dword [esp], 7
push 0
lea eax, [esp + 4]
push eax
call sub.wininet.dll_InternetGetConnectedState
cmp eax, 1
sbb eax, eax
inc eax
pop edx
ret

Function at 0x4044d8
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4045c0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00402ffc
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push ebx
call sub.kernel32.dll_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4045a5
push 2
push 0
push 0xfffffffffffffffc
push ebx
call sub.kernel32.dll_SetFilePointer
push 0
lea eax, [ebp - 4]
push eax
push 4
lea eax, [ebp - 8]
push eax
push ebx
call sub.kernel32.dll_ReadFile
xor dword [ebp - 8], 0x4d617a69
push 0
push ebx
call sub.kernel32.dll_GetFileSize
cmp eax, dword [ebp - 8]
jb 0x4045a5
push 2
push 0
mov eax, dword [ebp - 8]
neg eax
push eax
push ebx
call sub.kernel32.dll_SetFilePointer
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.004034a4
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 8]
push eax
lea eax, [ebp - 0xc]
call fcn.004033cc
push eax
push ebx
call sub.kernel32.dll_ReadFile
push ebx
call sub.kernel32.dll_CloseHandle
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.004045d0
mov eax, esi
mov edx, dword [ebp - 0xc]
call fcn.00403050
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4045c7
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00403020
ret

Function at 0x4045d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403364
xor eax, eax
push ebp
push 0x404660
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00402ffc
mov eax, dword [ebp - 4]
call fcn.00403174
mov ebx, eax
test bx, bx
jbe 0x404642
mov di, 1
movzx eax, di
mov edx, dword [ebp - 4]
movzx eax, byte [edx + eax - 1]
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
mov dx, word [ebp - 6]
xor dx, 0xc
call fcn.0040311c
mov edx, dword [ebp - 0xc]
mov eax, esi
call fcn.0040317c
inc edi
dec bx
jne 0x404613
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404667
lea eax, [ebp - 0xc]
call fcn.00402ffc
lea eax, [ebp - 4]
call fcn.00402ffc
ret
Function at 0x404670
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x104], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x404734
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
sub eax, 1
jb 0x4046a3
je 0x4046b6
dec eax
je 0x4046c9
jmp 0x4046da
push pe_nt_image_headers32
lea eax, [ebp - 0x100]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
jmp 0x4046da
push pe_nt_image_headers32
lea eax, [ebp - 0x100]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
jmp 0x4046da
lea eax, [ebp - 0x100]
push eax
push pe_nt_image_headers32
call sub.kernel32.dll_GetTempPathA
cmp ebx, 2
jne 0x4046f3
mov eax, esi
lea edx, [ebp - 0x100]
mov ecx, pe_nt_image_headers32
call fcn.0040315c
jmp 0x40471b
lea eax, [ebp - 0x104]
lea edx, [ebp - 0x100]
mov ecx, pe_nt_image_headers32
call fcn.0040315c
mov edx, dword [ebp - 0x104]
mov eax, esi
mov ecx, 0x40474c
call fcn.004031c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40473b
lea eax, [ebp - 0x104]
call fcn.00402ffc
ret

Function at 0x4048b0
Capabilities:
Get graphical window text

Disassembly:
push ebx
add esp, 0xfffffef8
mov ebx, edx
mov edx, esp
push edx
push 0x104
push 0xd
push eax
call sub.user32.dll_SendMessageA
mov byte [esp + eax], 0
mov eax, ebx
mov edx, esp
mov ecx, 0x105
call fcn.0040315c
add esp, 0x108
pop ebx
ret

Function at 0x404908
Capabilities:
Move file

Disassembly:
push ebx
push esi
add esp, 0xfffffdf4
mov esi, edx
mov ebx, eax
call fcn.004048e4
test al, al
je 0x40496c
push 0x104
lea eax, [esp + 4]
push eax
mov eax, ebx
call fcn.00403374
push eax
call sub.kernel32.dll_GetShortPathNameA
push 0x104
lea eax, [esp + 0x109]
push eax
mov eax, esi
call fcn.00403374
push eax
call sub.kernel32.dll_GetShortPathNameA
push 0x40498c
lea eax, [esp + 0x109]
push eax
lea eax, [esp + 8]
push eax
push 0x404998
call sub.kernel32.dll_WritePrivateProfileStringA
jmp 0x404983
push 5
mov eax, ebx
call fcn.00403374
push eax
mov eax, esi
call fcn.00403374
push eax
call sub.kernel32.dll_MoveFileExA
add esp, 0x20c
pop esi
pop ebx
ret

Function at 0x405470
Capabilities:
Set global application hook

Disassembly:
push 0
mov eax, dword [0x40b650]
push eax
mov eax, 0x405450
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x40a0e0], eax
ret

Function at 0x40566c
Capabilities:
Set global application hook

Disassembly:
push 0
mov eax, dword [0x40b650]
push eax
mov eax, 0x40564c
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x40b70c], eax
cmp dword [0x40b70c], 0
setne al
neg al
sbb eax, eax
ret
Function at 0x405a38
Capabilities:
Resolve dns

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, eax
mov eax, ebx
call fcn.00403374
push eax
call sub.wsock32.dll_gethostbyname
mov ebx, eax
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 4
call fcn.004025ec
test ebx, ebx
je 0x405a83
mov eax, ebx
mov edx, dword [eax + 0xc]
mov edx, dword [edx]
mov cl, byte [edx]
mov byte [esp + 4], cl
mov cl, byte [edx + 1]
mov byte [esp + 5], cl
mov cl, byte [edx + 2]
mov byte [esp + 6], cl
mov al, byte [edx + 3]
mov byte [esp + 7], al
mov eax, dword [esp + 4]
mov dword [esp], eax
mov eax, dword [esp]
pop ecx
pop edx
pop ebx
ret

Function at 0x405a94
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe58
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403364
xor eax, eax
push ebp
push 0x405b38
push dword fs:[eax]
mov dword fs:[eax], esp
xor esi, esi
lea eax, [ebp - 0x198]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov ebx, eax
cmp ebx, 0xffffffff
je 0x405b22
mov eax, dword [ebp - 4]
call fcn.00405a38
mov dword [ebp - 0x1a4], eax
mov word [ebp - 0x1a8], 2
push edi
call sub.wsock32.dll_htons
mov word [ebp - 0x1a6], ax
push 0x10
lea eax, [ebp - 0x1a8]
push eax
push ebx
call sub.wsock32.dll_connect
test eax, eax
jne 0x405b22
mov eax, dword [ebp - 8]
mov dword [eax], ebx
or esi, 0xffffffff
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405b3f
lea eax, [ebp - 4]
call fcn.00402ffc
ret

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffff8
push ebx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00403364
xor eax, eax
push ebp
push 0x405bc5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00403374
mov edx, eax
lea eax, [ebp - 0x1005]
call fcn.004057bc
push 4
lea eax, [ebp - 0x1005]
call fcn.004057e4
push eax
lea eax, [ebp - 0x1005]
push eax
push ebx
call sub.wsock32.dll_send
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405bcc
lea eax, [ebp - 4]
call fcn.00402ffc
ret

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

Disassembly:
push ebx
add esp, 0xfffffbfc
mov ebx, edx
push 0
push 0x400
lea edx, [esp + 8]
push edx
push eax
call sub.wsock32.dll_recv
mov edx, ebx
mov eax, esp
call fcn.004057a8
add esp, 0x404
pop ebx
ret
Function at 0x406264
Capabilities:
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbcc
push ebx
xor ecx, ecx
mov dword [ebp - 0x434], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00403364
xor eax, eax
push ebp
push 0x40645b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
push 0
push 0x406468
call sub.wininet.dll_InternetOpenA
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x406426
push dword fs:[edx]
mov dword fs:[edx], esp
cmp dword [ebp - 8], 0
je 0x40640f
lea ecx, [ebp - 0x20]
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.00406158
push 0
push 0
push 3
push 0
push 0
push 0x50
mov eax, dword [ebp - 0x1c]
call fcn.00403374
push eax
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_InternetConnectA
mov dword [ebp - 0xc], eax
mov eax, 0x406470
mov dword [ebp - 0x24], eax
push 0
push 0x80000000
lea eax, [ebp - 0x24]
push eax
push 0
push 0x40647c
mov eax, dword [ebp - 0x20]
call fcn.00403374
push eax
push 0x406488
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_HttpOpenRequestA
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
call fcn.00403174
push eax
mov eax, dword [ebp - 4]
call fcn.00403374
push eax
push 0x2f
push 0x406490
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_HttpSendRequestA
xor eax, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 0x400
mov eax, dword [ebp - 0x28]
call fcn.00402438
mov ebx, eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x28]
push eax
push ebx
push 5
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_HttpQueryInfoA
cmp eax, 1
sbb eax, eax
inc eax
cmp al, 1
jne 0x40640f
xor eax, eax
push ebp
push 0x406408
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x14], 0x400
lea eax, [ebp - 0x14]
push eax
push 0x400
lea eax, [ebp - 0x42e]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetReadFile
cmp dword [ebp - 0x14], 0
je 0x4063e8
mov eax, dword [ebp - 0x14]
mov byte [ebp + eax - 0x42e], 0
lea eax, [ebp - 0x434]
lea edx, [ebp - 0x42e]
mov ecx, 0x402
call fcn.0040315c
mov edx, dword [ebp - 0x434]
lea eax, [ebp - 0x18]
call fcn.0040317c
jmp 0x406391
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40640f
mov eax, dword [ebp - 0x10]
push eax
call sub.wininet.dll_InternetCloseHandle
mov eax, dword [ebp - 0xc]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40642d
mov eax, dword [ebp - 8]
push eax
call sub.wininet.dll_InternetCloseHandle
ret
Function at 0x4064f8
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403364
xor eax, eax
push ebp
push 0x40656b
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x48]
mov edx, 0x44
call fcn.00403b9c
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0x4000000
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00403374
push eax
push 0
call sub.kernel32.dll_CreateProcessA
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406572
lea eax, [ebp - 4]
call fcn.00402ffc
ret
Function at 0x4070fc
Capabilities:
Hash data with md5

Disassembly:
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
xor edx, edx
mov dword [eax + 0x10], edx
xor edx, edx
mov dword [eax + 0x14], edx
add eax, 0x18
mov edx, 0x40
call fcn.00403b9c
ret

Function at 0x407400
Capabilities:
Accept command line arguments
Read .ini file

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [0x40a27c]
xor eax, eax
push ebp
push 0x407517
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, 1
call sub.kernel32.dll_GetCommandLineA_1
mov edx, eax
lea eax, [ebp - 8]
call fcn.0040312c
mov eax, dword [ebp - 8]
lea edx, [ebp - 4]
call fcn.0040732c
mov edx, dword [ebp - 4]
mov eax, edi
call fcn.00403050
cmp dword [edi], 0
je 0x4074fc
mov esi, 2
mov eax, 0x11
call fcn.00402438
mov ebx, eax
lea eax, [ebp - 0xc]
call fcn.004049a0
lea eax, [ebp - 0xc]
mov edx, 0x407530
call fcn.0040317c
mov eax, dword [ebp - 0xc]
call fcn.00403374
push eax
push 0x11
push ebx
push 0x407540
mov eax, dword [edi]
call fcn.00403374
push eax
push 0x407544
call sub.kernel32.dll_GetPrivateProfileStringA
mov eax, dword [0x40a270]
mov edx, ebx
call fcn.0040312c
lea edx, [ebp - 0x10]
mov eax, dword [0x40a270]
mov eax, dword [eax]
call fcn.00404860
mov edx, dword [ebp - 0x10]
mov eax, dword [0x40a270]
call fcn.00403050
mov eax, ebx
call fcn.00402458
mov eax, dword [0x40a270]
cmp dword [eax], 0
je 0x4074fc
mov eax, dword [edi]
call fcn.004047f8
test al, al
je 0x4074fc
mov eax, dword [edi]
call fcn.00403174
cmp eax, 4
jle 0x4074fc
mov eax, dword [edi]
call fcn.00403174
cmp eax, 0xc
jge 0x4074fc
mov esi, 3
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40751e
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00403020
ret