joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b4e5
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
push esp
pop ebp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004041e5
xor ebx, ebx
cmp dword [0x434898], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x40b5ba
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x40b525
sub eax, eax
jmp 0x40b67e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x40b51e
push eax
call fcn.00404182
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x434898], eax
call esi
push eax
call fcn.00404182
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x43489c], eax
call esi
push eax
call fcn.00404182
mov dword [0x4348a0], eax
lea eax, [ebp - 8]
push eax
call fcn.004067af
or eax, eax
pop ecx
pop ecx
je 0x40b588
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00403c3f
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x40b5ba
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00404182
cmp eax, ebx
pop ecx
mov dword [0x4348a8], eax
je 0x40b5ba
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404182
pop ecx
mov dword [0x4348a4], eax
mov eax, dword [0x4348a4]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x40b633
cmp dword [0x4348a8], esi
je 0x40b633
push eax
call fcn.004041ee
pop ecx
call eax
cmp eax, ebx
je 0x40b600
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x4348a8]
call fcn.004041ee
pop ecx
call eax
or eax, eax
je 0x40b600
test byte [ebp - 0x18], 1
jne 0x40b633
lea eax, [ebp - 0xc]
push eax
call fcn.004067e6
or eax, eax
pop ecx
je 0x40b61b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00403c3f
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x40b62a
or dword [ebp + 0x10], 0x200000
jmp 0x40b664
or dword [ebp + 0x10], 0x40000
jmp 0x40b664
mov eax, dword [0x43489c]
cmp eax, esi
je 0x40b664
push eax
call fcn.004041ee
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40b664
mov eax, dword [0x4348a0]
cmp eax, esi
je 0x40b664
push dword [ebp - 4]
push eax
call fcn.004041ee
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x434898]
call fcn.004041ee
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x408f6c
nop
mov ecx, 0x2d3a565d
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42e3d0
nop
mov ecx, 0xc5c62c8
nop
nop
nop
test eax, eax
nop
nop
je 0x430084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x402711
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
lea eax, [ebp + 8]
push dword [ebp + 0xc]
push ecx
mov ecx, esp
push eax
call fcn.00443ca7
lea eax, [ebp + 0xc]
push eax
call fcn.00402426
add esp, 0xc
lea ecx, [ebp + 8]
push eax
call fcn.0044401f
lea ecx, [ebp + 0xc]
call fcn.00443f32
mov esi, 0x476344
lea ecx, [ebp + 8]
push esi
call fcn.0043c6de
cmp eax, 0xffffffff
je 0x4027f1
push esi
lea ecx, [ebp + 8]
call fcn.0043c6de
inc eax
lea ecx, [ebp + 8]
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.0043c4e4
push esi
lea ecx, [ebp + 0xc]
call fcn.0043c6de
push eax
lea eax, [ebp - 8]
push eax
lea ecx, [ebp + 0xc]
call fcn.0043c619
push eax
lea ecx, [ebp + 0xc]
call fcn.0044401f
lea ecx, [ebp - 8]
call fcn.00443f32
push dword [ebp + 0xc]
call fcn.0042c5b8
pop ecx
push eax
lea ecx, [ebp - 4]
call fcn.00443fa0
lea eax, [ebp + 0xc]
push esi
push eax
lea eax, [ebp - 0xc]
push esi
push eax
call fcn.004441ef
push eax
lea eax, [ebp - 8]
push eax
call fcn.0044417b
push dword [ebp - 4]
lea ecx, [ebp + 8]
push dword [eax]
call fcn.0043c330
lea ecx, [ebp - 8]
call fcn.00443f32
lea ecx, [ebp - 0xc]
call fcn.00443f32
lea ecx, [ebp - 4]
call fcn.00443f32
lea ecx, [ebp + 0xc]
call fcn.00443f32
push 5
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_WinExec]
cmp eax, 0x20
ja 0x40284f
cmp byte [ebp + 0x10], 0
je 0x402841
push ecx
lea eax, [ebp + 0x10]
mov esi, esp
push str.Custom_alert:_could_execute_command
push 1
push eax
call fcn.00401d41
pop ecx
pop ecx
push eax
push esi
call fcn.0044417b
push ecx
mov ecx, esp
push str.errors.log
call fcn.00443fa0
call fcn.00401c51
pop ecx
pop ecx
lea ecx, [ebp + 0x10]
call fcn.00443f32
jmp 0x40284f
push 0xffffffffffffffff
push 0x30
push 0x9d
call fcn.0044bb32
lea ecx, [ebp + 8]
call fcn.00443f32
pop esi
leave
ret
Function at 0x402a5d
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x47a4b0]
and dword [ebp - 8], 0
push ebx
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 8]
push edi
push eax
push 0
call sub.iphlpapi.dll_GetAdaptersInfo
cmp eax, 0x6f
jne 0x402bb4
push dword [ebp - 8]
call fcn.0042c69e
mov esi, eax
pop ecx
lea eax, [ebp - 8]
mov dword [ebp - 0x10], esi
push eax
push esi
call sub.iphlpapi.dll_GetAdaptersInfo
test eax, eax
jne 0x402ba5
test esi, esi
je 0x402bb4
mov ebx, 0x864
cmp ebx, 0x88c
jge 0x402ba5
push 0x47c1d0
lea ecx, [ebp - 4]
call fcn.0044406f
xor edi, edi
cmp dword [esi + 0x190], edi
jbe 0x402b08
movzx eax, byte [esi + edi + 0x194]
push eax
lea eax, [ebp - 0xc]
push str._02X_
push eax
call fcn.0043ca64
add esp, 0xc
lea eax, [ebp - 0xc]
lea ecx, [ebp - 4]
push eax
call fcn.004442fe
inc edi
cmp edi, dword [esi + 0x190]
jb 0x402ad9
mov eax, dword [ebp - 4]
push 0x47634c
lea ecx, [ebp - 4]
mov eax, dword [eax - 8]
dec eax
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0043c619
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0044417b
push eax
lea ecx, [ebp - 4]
call fcn.0044401f
lea ecx, [ebp - 0x14]
call fcn.00443f32
lea ecx, [ebp - 0x18]
call fcn.00443f32
lea edi, [esi + 0x1ac]
test edi, edi
je 0x402b84
lea eax, [edi + 4]
lea ecx, [ebp - 4]
push eax
call fcn.004442c2
push 0x476348
lea ecx, [ebp - 4]
call fcn.004442c2
lea eax, [edi + 0x14]
lea ecx, [ebp - 4]
push eax
call fcn.004442c2
push 0x47622c
lea ecx, [ebp - 4]
call fcn.004442c2
mov edi, dword [edi]
jmp 0x402b4a
call fcn.004580ae
mov eax, dword [eax + 4]
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebx + eax]
call fcn.0044401f
mov esi, dword [esi]
add ebx, 4
test esi, esi
jne 0x402ab6
cmp dword [ebp - 0x10], 0
je 0x402bb4
push dword [ebp - 0x10]
call fcn.0042c656
pop ecx
lea ecx, [ebp - 4]
call fcn.00443f32
lea ecx, [ebp - 0xc]
call fcn.00443f32
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4039a7
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
xor ebx, ebx
push 0x47c1d0
lea ecx, [ebp - 4]
mov dword [ebp - 8], ebx
call fcn.00443fa0
lea eax, [ebp + 0x14]
lea ecx, [ebp + 0x10]
push eax
mov eax, 0x47621c
push eax
push ecx
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x1c]
push str.SOFTWAREDigital_RiverSoftwarePassport_
push eax
call fcn.004441ef
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.0044417b
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00444115
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0044417b
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00444115
lea ecx, [ebp - 0x10]
call fcn.00443f32
lea ecx, [ebp - 0x14]
call fcn.00443f32
lea ecx, [ebp - 0x18]
call fcn.00443f32
lea ecx, [ebp - 0x1c]
call fcn.00443f32
lea eax, [ebp - 8]
mov edi, 0x20019
mov esi, dword [sym.imp.advapi32.dll_RegOpenKeyExA]
push eax
push edi
push ebx
push dword [ebp - 0xc]
push 0x80000002
call esi
cmp eax, ebx
je 0x403a5e
lea eax, [ebp - 8]
push eax
push edi
push ebx
push dword [ebp - 0xc]
push 0x80000001
call esi
cmp eax, ebx
jne 0x403a97
mov esi, 0x400
lea ecx, [ebp - 4]
push esi
call fcn.00444316
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], esi
push ecx
push eax
push ebx
push ebx
push str.BuyURL
push dword [ebp - 8]
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
push 0xffffffffffffffff
lea ecx, [ebp - 4]
call fcn.00444365
push dword [ebp - 8]
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
pop edi
pop esi
cmp dword [eax - 8], ebx
pop ebx
jne 0x403aaf
push 0xb0
lea ecx, [ebp - 4]
call fcn.00444497
mov ecx, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
call fcn.00443ca7
lea ecx, [ebp - 0xc]
call fcn.00443f32
lea ecx, [ebp - 4]
call fcn.00443f32
lea ecx, [ebp + 0xc]
call fcn.00443f32
lea ecx, [ebp + 0x10]
call fcn.00443f32
lea ecx, [ebp + 0x14]
call fcn.00443f32
mov eax, dword [ebp + 8]
leave
ret

Function at 0x40cd02
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
lea eax, [ebp + 0xc]
push esi
push eax
push 1
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x40cd5b
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x104
push eax
lea eax, [ebp - 0x104]
push eax
push esi
push dword [ebp + 0xc]
call dword [sym.imp.advapi32.dll_RegQueryValueA]
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.kernel32.dll_lstrcpy]
push dword [ebp + 0xc]
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret 0xc
Function at 0x40cdf5
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
push edi
xor ebx, ebx
push dword [ebp + 0xc]
mov dword [ebp - 8], ecx
push ebx
push ebx
push dword [ebp + 8]
push str.open
push ebx
call dword [sym.imp.shell32.dll_ShellExecuteA]
cmp eax, 0x20
mov dword [ebp - 4], eax
ja 0x40cee2
mov ecx, dword [ebp - 8]
lea eax, [ebp - 0x210]
push eax
mov edi, 0x80000000
push str..htm
push edi
call fcn.0040cd02
test eax, eax
jne 0x40cee2
mov esi, dword [sym.imp.kernel32.dll_lstrcat]
lea eax, [ebp - 0x210]
push str._shellopencommand
push eax
call esi
mov ecx, dword [ebp - 8]
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x210]
push eax
push edi
call fcn.0040cd02
test eax, eax
jne 0x40cee2
lea eax, [ebp - 0x210]
push str.__1_
push eax
call fcn.0042cd10
mov edi, eax
pop ecx
cmp edi, ebx
pop ecx
jne 0x40cebf
lea eax, [ebp - 0x210]
push 0x476a38
push eax
call fcn.0042cc90
mov edi, eax
pop ecx
cmp edi, ebx
pop ecx
jne 0x40cebf
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.kernel32.dll_lstrlen]
lea edi, [ebp + eax - 0x211]
jmp 0x40cec1
mov byte [edi], bl
push 0x47622c
push edi
call esi
push dword [ebp + 8]
push edi
call esi
push dword [ebp + 0xc]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.kernel32.dll_WinExec]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x41fc10
Capabilities:
Send icmp echo request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [ebp + 0x20]
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x18]
xor ebx, ebx
push ecx
mov dword [esi], ebx
mov dword [edi], ebx
mov dword [eax], ebx
lea eax, [ebp + 8]
mov ecx, esp
push eax
call fcn.00443ca7
call fcn.00401526
mov dword [ebp + 0x18], eax
pop ecx
mov byte [ebp + 0x13], bl
xor eax, eax
mov cl, al
add cl, 0x41
mov byte [ebp + eax - 0x24], cl
inc eax
cmp eax, 0x20
jl 0x41fc44
call sub.iphlpapi.dll_IcmpCreateFile
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x41fcc6
push dword [ebp + 0xc]
lea ecx, [ebp - 0x64]
push 0x40
push ecx
push ebx
lea ecx, [ebp - 0x24]
push 0x20
push ecx
push dword [ebp + 0x18]
push eax
call sub.iphlpapi.dll_IcmpSendEcho
test eax, eax
je 0x41fcb6
mov eax, dword [ebp - 0x60]
push dword [ebp - 0x64]
mov dword [esi], eax
lea eax, [ebp + 0x18]
push eax
call fcn.004014ef
pop ecx
pop ecx
mov ecx, dword [ebp + 0x1c]
push eax
call fcn.0044401f
lea ecx, [ebp + 0x18]
call fcn.00443f32
mov ecx, dword [ebp + 0x20]
mov eax, dword [ebp - 0x5c]
mov dword [ecx], eax
mov eax, dword [esi]
mov dword [edi], eax
cmp dword [esi], ebx
jne 0x41fcbe
mov byte [ebp + 0x13], 1
jmp 0x41fcbe
call dword [sym.imp.ntdll.dll_RtlGetLastWin32Error]
mov dword [edi], eax
push dword [ebp - 4]
call sub.iphlpapi.dll_IcmpCloseHandle
push dword [edi]
lea eax, [ebp + 0x20]
push eax
call fcn.0041fa3a
pop ecx
pop ecx
mov ecx, dword [ebp + 0x14]
push eax
call fcn.0044401f
lea ecx, [ebp + 0x20]
call fcn.00443f32
lea ecx, [ebp + 8]
call fcn.00443f32
mov al, byte [ebp + 0x13]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4268de
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x47a4b0]
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 8], ebx
mov dword [ebp - 4], eax
je 0x426900
push 1
pop esi
jmp 0x4269ad
push ebx
lea edi, [esi + 0x18]
push 0x3f
push 1
push ebx
mov ecx, edi
call fcn.0045fc1e
test eax, eax
jne 0x426928
push str.Unable_to_create_the_socket.
lea ecx, [esi + 4]
call fcn.0044406f
xor esi, esi
jmp 0x4269ad
push dword [esi + 0xc]
mov eax, dword [esi + 0x14]
mov ecx, edi
push eax
call fcn.0045fd76
test eax, eax
jne 0x426949
push str.Unable_to_connect_to_srv
lea ecx, [esi + 4]
call fcn.0044406f
jmp 0x426999
push 1
mov ecx, esi
call fcn.00426e59
test eax, eax
jne 0x42695d
push str.Srv_didnt_respond
jmp 0x42693f
lea eax, [ebp - 0x68]
push 0x50
push eax
call dword [sym.imp.ws2_32.dll_gethostname]
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 4]
push str.HELO__s_r_n
push eax
call fcn.0043ca64
mov eax, dword [ebp - 4]
mov edx, dword [edi]
add esp, 0xc
mov ecx, edi
push ebx
push dword [eax - 8]
push eax
call dword [edx + 0x18]
push ebx
mov ecx, esi
call fcn.00426e59
test eax, eax
jne 0x4269a5
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x10]
jmp 0x426921
push 1
pop eax
mov dword [esi + 8], eax
mov esi, eax
lea ecx, [ebp - 4]
call fcn.00443f32
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x426f08
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, dword [0x47a4b0]
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov dword [esi], eax
mov eax, dword [0x47a4b0]
lea edi, [esi + 4]
push str..1.3.6.1.2.1.
mov dword [edi], eax
mov eax, dword [0x47a4b0]
mov dword [esi + 8], eax
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
call fcn.0044406f
push 0x47c1d0
mov ecx, edi
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov byte [esi + 0xc], bl
call fcn.0044406f
mov byte [esi + 0xd], bl
call fcn.004580ae
mov eax, dword [eax + 4]
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
push str.SnmpMgrOpen
push dword [eax + 0x88c]
call edi
mov dword [esi + 0x30], eax
call fcn.004580ae
mov eax, dword [eax + 4]
push str.SnmpMgrClose
push dword [eax + 0x88c]
call edi
mov dword [esi + 0x34], eax
call fcn.004580ae
mov eax, dword [eax + 4]
push str.SnmpMgrRequest
push dword [eax + 0x88c]
call edi
mov dword [esi + 0x38], eax
call fcn.004580ae
mov eax, dword [eax + 4]
push str.SnmpMgrStrToOid
push dword [eax + 0x88c]
call edi
mov dword [esi + 0x4c], eax
call fcn.004580ae
mov eax, dword [eax + 4]
push str.SnmpMgrOidToStr
push dword [eax + 0x88c]
call edi
mov dword [esi + 0x48], eax
call fcn.004580ae
mov eax, dword [eax + 4]
push str.SnmpUtilVarBindListFree
push dword [eax + 0x890]
call edi
mov dword [esi + 0x3c], eax
call fcn.004580ae
mov eax, dword [eax + 4]
push str.SnmpUtilMemReAlloc
push dword [eax + 0x890]
call edi
mov dword [esi + 0x40], eax
call fcn.004580ae
mov eax, dword [eax + 4]
push str.SnmpUtilMemFree
push dword [eax + 0x890]
call edi
mov dword [esi + 0x44], eax
mov eax, esi
pop edi
pop esi
pop ebx
ret

Function at 0x4279e9
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push esi
push 0
push 1
mov esi, ecx
push 2
call dword [sym.imp.ws2_32.dll_socket]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov dword [esi], eax
mov eax, ecx
pop esi
ret

Function at 0x427a06
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push 0x10
lea eax, [ebp - 0x10]
push 0
mov esi, ecx
push eax
call fcn.0042cf00
add esp, 0xc
mov word [ebp - 0x10], 2
push dword [ebp + 0xc]
call dword [sym.imp.ws2_32.dll_htons]
push dword [ebp + 8]
mov word [ebp - 0xe], ax
call dword [sym.imp.ws2_32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [ebp - 0xc], eax
jne 0x427a5a
push dword [ebp + 8]
call dword [sym.imp.ws2_32.dll_gethostbyname]
test eax, eax
je 0x427a6c
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push 0x10
push eax
mov ecx, esi
call fcn.00427a7b
pop esi
leave
ret 8
push 0x2726
call dword [sym.imp.ws2_32.dll_WSASetLastError]
xor eax, eax
jmp 0x427a67

Function at 0x427a7b
Capabilities:
Connect socket

Disassembly:
push dword [esp + 8]
push dword [esp + 8]
push dword [ecx]
call dword [sym.imp.ws2_32.dll_connect]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret 8
Function at 0x427a98
Capabilities:
Send data
Send data on socket

Disassembly:
push 0
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [ecx]
call dword [sym.imp.ws2_32.dll_send]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret 8

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

Disassembly:
push 0
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [ecx]
call dword [sym.imp.ws2_32.dll_recv]
ret 8

Function at 0x427ae2
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [ecx]
and dword [ebp - 4], 0
mov dword [ebp - 0x108], eax
lea eax, [ebp - 8]
push eax
push 0
lea eax, [ebp - 0x10c]
push 0
push eax
push 0
mov dword [ebp - 8], 2
mov dword [ebp - 0x10c], 1
call dword [sym.imp.ws2_32.dll_select]
cmp eax, 0xffffffff
jne 0x427b28
xor eax, eax
jmp 0x427b37
xor ecx, ecx
push 1
test eax, eax
mov eax, dword [ebp + 8]
setne cl
mov dword [eax], ecx
pop eax
leave
ret 4

Function at 0x42b625
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push esi
xor esi, esi
push eax
push 0x20019
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push 0x80000000
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
test eax, eax
jne 0x42b67d
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x104
push eax
push dword [ebp + 8]
push esi
push esi
push 0x47c1d0
push dword [ebp - 4]
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
test eax, eax
jne 0x42b670
push 1
pop esi
push dword [ebp - 4]
call dword [sym.imp.advapi32.dll_RegCloseKey]
mov eax, esi
jmp 0x42b67f
xor eax, eax
pop esi
leave
ret 4
Function at 0x434d55
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x47bb08
cmp edx, dword [eax]
je 0x434d77
add eax, 8
inc ecx
cmp eax, 0x47bb98
jl 0x434d68
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x47bb08]
jne 0x434ea5
mov eax, dword [0x47edd8]
cmp eax, 1
je 0x434e7f
test eax, eax
jne 0x434da8
cmp dword [0x47b068], 1
je 0x434e7f
cmp edx, 0xfc
je 0x434ea5
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
test eax, eax
jne 0x434ddf
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0042cd90
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0042ce80
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x434e22
lea eax, [ebp - 0x1a4]
push eax
call fcn.0042ce80
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4763c0
push edi
call fcn.0042cf60
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0042cd90
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0042cda0
lea eax, [ebp - 0xa0]
push 0x46e140
push eax
call fcn.0042cda0
push dword [esi + 0x47bb0c]
lea eax, [ebp - 0xa0]
push eax
call fcn.0042cda0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004377d6
add esp, 0x2c
pop edi
jmp 0x434ea5
lea eax, [ebp + 8]
lea esi, [esi + 0x47bb0c]
push 0
push eax
push dword [esi]
call fcn.0042ce80
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.kernel32.dll_GetStdHandle]
push eax
call dword [sym.imp.kernel32.dll_WriteFile]
pop esi
leave
ret
Function at 0x43bb90
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.gdi32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.user32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.0042c920
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x43bc5b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.user32.dll_GetWindowTextA]
test eax, eax
je 0x43bc5b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x43bc0e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x43bc19
or bh, 8
and edi, 0x8000000
je 0x43bc34
mov eax, dword [0x48053c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.gdi32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.user32.dll_DrawTextA]
test edi, edi
je 0x43bc5b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.gdi32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43c030
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.kernel32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x43c05b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.kernel32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x43c07f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x43c09a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.user32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.gdi32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.user32.dll_ReleaseDC]
push ebp
call dword [sym.imp.kernel32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20