joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403a30
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x43c650]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x10c]
push eax
push 1
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x403aa4
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x114]
push eax
push esi
push str.Zoomit
push dword [ebp - 0x10c]
mov dword [ebp - 0x110], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x10c]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor eax, eax
test esi, esi
sete al
xor ecx, ebp
pop esi
call fcn.0040aae0
mov esp, ebp
pop ebp
ret

Function at 0x409160
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x43c650]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
lea edx, [ebp - 0x18]
push edx
push 0x20019
push 0
push eax
push dword [ecx + 4]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4091f0
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
test edi, edi
je 0x4091e5
jmp 0x4091a0
push esi
push 0x4339b8
lea eax, [ebp - 0x14]
push 0x10
push eax
mov dword [ebp - 0x1c], 4
call fcn.0040aac4
add esp, 0x10
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
push 0
push 0
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4091e0
mov ax, word [ebp - 0x20]
mov word [ebx + esi*2], ax
inc esi
cmp esi, edi
jb 0x4091a0
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040aae0
mov esp, ebp
pop ebp
ret 0xc

Function at 0x409210
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x43c650]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
lea edx, [ebp - 0x18]
push edx
push 0x20019
push 0
push eax
push dword [ecx + 4]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x409294
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor esi, esi
test ebx, ebx
je 0x409289
jmp 0x409250
push esi
push 0x4339b8
lea eax, [ebp - 0x14]
push 0x10
push eax
mov dword [ebp - 0x1c], 4
call fcn.0040aac4
add esp, 0x10
lea eax, [ebp - 0x1c]
push eax
push edi
push 0
push 0
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
inc esi
add edi, 4
cmp esi, ebx
jb 0x409250
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0040aae0
mov esp, ebp
pop ebp
ret 0xc
Function at 0x448b10
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1a000]
push edi
or ebp, 0xffffffff
jmp 0x448b32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x448b39
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x448b28
mov eax, 1
add ebx, ebx
jne 0x448b4b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x448b5c
jne 0x448b6c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x448b6c
dec eax
add ebx, ebx
jne 0x448b68
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x448b40
xor ecx, ecx
sub eax, 3
jb 0x448b84
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x448bf6
sar eax, 1
mov ebp, eax
jmp 0x448b8f
add ebx, ebx
jne 0x448b8f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x448b9c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x448bc0
inc ecx
add ebx, ebx
jne 0x448bac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x448ba1
jne 0x448bbd
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x448ba1
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x448be0
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x448bd1
jmp 0x448b2e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x448be0
add edi, ecx
jmp 0x448b2e
pop esi
mov edi, esi
mov ecx, 0x921
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x448bfe
cmp byte [edi], 7
jne 0x448bfe
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 eax, ebx
loop 0x448c03
lea edi, [esi + 0x46000]
mov eax, dword [edi]
or eax, eax
je 0x448c7b
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x48990]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x48a08]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x448c30
mov ecx, edi
jns 0x448c5f
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 + 0x48a0c]
or eax, eax
je 0x448c75
mov dword [ebx], eax
add ebx, 4
jmp 0x448c4d
call dword [esi + 0x48a10]
popal
jmp 0x4150a0

Function at 0x62445d
Capabilities:
Encode data using xor

Disassembly:
and byte [ebp + 0x260903b2], dl
adc edx, esp
push cs
lodsb al, byte [esi]
shl dword [ebp + 0x4bb29452], 0x32
sub eax, 0x56427b61
mov edx, 0xa1091167
cmp dword [ebx + ecx*4 + 0x3c], ebx
rol byte [ebx + eax*8], 1
adc eax, 0x2f320a30
cmp ch, 0x1f
inc ecx
pop edi
adc cl, byte [esi - 0xc8dba81]
and dword [ebp + edi*8 - 0x42068b38], ebx
invalid
Function at 0x411bb0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c4bb8
mov eax, dword fs:[0]
push eax
sub esp, 0x1a4
mov eax, dword [0x641490]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1a8], ecx
mov ecx, dword [ebp - 0x1a8]
call fcn.00475d9e
push 0
mov ecx, dword [ebp - 0x1a8]
call fcn.00412d70
mov dword [ebp - 0x1ac], eax
cmp dword [ebp - 0x1ac], 0
je 0x411c7b
push 4
lea ecx, [ebp - 0x14]
call fcn.00408300
lea ecx, [ebp - 0x14]
call fcn.004138b0
mov dword [ebp - 4], 0
push 0x65
lea ecx, [ebp - 0x14]
call fcn.004133b0
mov dword [ebp - 0x1b0], eax
lea ecx, [ebp - 0x14]
call fcn.00412d40
movzx eax, al
test eax, eax
jne 0x411c6c
push 0
push 0
push 0x800
mov ecx, dword [ebp - 0x1ac]
call fcn.00412dc0
lea ecx, [ebp - 0x14]
call fcn.00405b60
push eax
push 0x10
push 0
mov ecx, dword [ebp - 0x1ac]
call fcn.00412dc0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004138f0
push 1
mov ecx, dword [ebp - 0x1a8]
mov edx, dword [ecx + 0xbc]
push edx
mov ecx, dword [ebp - 0x1a8]
call fcn.00412d10
push 0
mov eax, dword [ebp - 0x1a8]
mov ecx, dword [eax + 0xbc]
push ecx
mov ecx, dword [ebp - 0x1a8]
call fcn.00412d10
lea edx, [ebp - 0x1a4]
push edx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ecx, dword [ebp - 0x1a8]
call fcn.00411a60
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00587de5
mov esp, ebp
pop ebp
ret

Function at 0x413090
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4130b4
xor eax, eax
jmp 0x413134
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4130cb
xor eax, eax
jmp 0x413134
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0x10]
and eax, 0xf
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x413117
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jae 0x413117
mov edx, dword [ebp - 4]
movzx eax, word [edx]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
jmp 0x4130ee
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jb 0x413123
xor eax, eax
jmp 0x413134
mov edx, dword [ebp - 4]
movzx eax, word [edx]
test eax, eax
jne 0x413131
xor eax, eax
jmp 0x413134
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x424450
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c6138
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x641490]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0xc
lea ecx, [ebp - 0x1c]
call fcn.00408300
lea ecx, [ebp - 0x1c]
call fcn.00409ed0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x1c]
push eax
call fcn.00451d50
add esp, 4
lea ecx, [ebp - 0x1c]
call fcn.0040b890
test eax, eax
jne 0x4244bc
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0040b810
jmp 0x4244f8
cmp dword [0x6426f4], 1
jne 0x4244ca
call fcn.00423c80
cmp dword [0x650f78], 0
je 0x4244e2
mov ecx, dword [0x650f78]
push ecx
call fcn.00422670
add esp, 4
push 0
call fcn.00589464
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0040b810
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00587de5
mov esp, ebp
pop ebp
ret
Function at 0x426fe0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c66b3
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x641490]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x94], 0
push 0x613cf6
lea ecx, [ebp - 0x58]
call fcn.00406610
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [ebp - 0x98], eax
mov eax, dword [ebp - 0x98]
push eax
lea ecx, [ebp - 0x70]
push ecx
call fcn.0042ff80
add esp, 8
mov byte [ebp - 4], 1
push 0xc
lea ecx, [ebp - 0x28]
call fcn.00408300
lea ecx, [ebp - 0x28]
call fcn.00409ed0
mov byte [ebp - 4], 2
push 0x6147a8
lea ecx, [ebp - 0x88]
call fcn.00406610
mov byte [ebp - 4], 3
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x88]
push eax
lea ecx, [ebp - 0x70]
push ecx
call fcn.0042fa10
add esp, 0xc
push 0xc
lea ecx, [ebp - 0x1c]
call fcn.00408300
lea ecx, [ebp - 0x1c]
call fcn.00409ed0
mov byte [ebp - 4], 4
mov dword [ebp - 0x8c], 0
jmp 0x4270be
mov edx, dword [ebp - 0x8c]
add edx, 1
mov dword [ebp - 0x8c], edx
lea ecx, [ebp - 0x28]
call fcn.0041cf10
cmp dword [ebp - 0x8c], eax
jae 0x427137
mov eax, dword [ebp - 0x8c]
push eax
lea ecx, [ebp - 0x28]
call fcn.00409f20
push eax
lea ecx, [ebp - 0x40]
call fcn.00406580
mov byte [ebp - 4], 5
push 0x613cf7
lea ecx, [ebp - 0x40]
push ecx
call fcn.0041ea70
add esp, 8
movzx edx, al
test edx, edx
je 0x427126
push 0x6147ac
lea eax, [ebp - 0x40]
push eax
call fcn.0041ea70
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x427126
lea edx, [ebp - 0x40]
push edx
lea ecx, [ebp - 0x1c]
call fcn.0041cf30
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x40]
call fcn.004066a0
jmp 0x4270af
mov dword [ebp - 0x90], 0
jmp 0x427152
mov eax, dword [ebp - 0x90]
add eax, 1
mov dword [ebp - 0x90], eax
lea ecx, [ebp - 0x1c]
call fcn.0041cf10
cmp dword [ebp - 0x90], eax
jae 0x427164
jmp 0x427143
lea ecx, [ebp - 0x1c]
call fcn.0041cf10
cmp eax, 2
jb 0x427184
push 1
lea ecx, [ebp - 0x1c]
call fcn.00409f20
push eax
lea ecx, [ebp - 0x58]
call fcn.004070c0
lea ecx, [ebp - 0x58]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00406650
mov edx, dword [ebp - 0x94]
or edx, 1
mov dword [ebp - 0x94], edx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1c]
call fcn.00409f00
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x88]
call fcn.004066a0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.00409f00
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x70]
call fcn.004066a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.004066a0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00587de5
mov esp, ebp
pop ebp
ret
Function at 0x436bf0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c76bb
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x641490]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24c], 0
push 0x104
lea eax, [ebp - 0x218]
push eax
push 0x614b78
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov dword [ebp - 0x250], eax
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x230]
push edx
call fcn.0042ff80
add esp, 8
mov dword [ebp - 4], 0
push 0x613df6
lea eax, [ebp - 0x230]
push eax
call fcn.0040a120
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x436c8c
push 0x614b88
lea ecx, [ebp - 0x230]
call fcn.00408b30
jmp 0x436cb7
lea ecx, [ebp - 0x230]
call fcn.00406720
push eax
call fcn.0043cea0
add esp, 4
movzx edx, al
test edx, edx
jne 0x436cb7
push 0x614b8c
lea ecx, [ebp - 0x230]
call fcn.00408b30
push 1
push 0
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x230]
call fcn.004304b0
lea ecx, [ebp - 0x248]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00406650
mov edx, dword [ebp - 0x24c]
or edx, 1
mov dword [ebp - 0x24c], edx
lea ecx, [ebp - 0x248]
call fcn.004066a0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.004066a0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00587de5
mov esp, ebp
pop ebp
ret
Function at 0x43cc50
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0xc], 0
cmp dword [ebp + 8], 0
jne 0x43cc6a
xor eax, eax
jmp 0x43cd59
mov eax, dword [ebp + 8]
push eax
call fcn.00589e2a
add esp, 4
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x14]
mov cl, byte [eax]
mov byte [ebp - 1], cl
add dword [ebp - 0x14], 1
cmp byte [ebp - 1], 0
jne 0x43cc88
mov edx, dword [ebp - 0x14]
sub edx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0xc], 0
jmp 0x43ccbb
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp - 0x20]
jge 0x43cd24
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0xc]
movsx ecx, byte [eax]
cmp ecx, 0x5c
je 0x43ccdf
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0xc]
movsx eax, byte [edx]
cmp eax, 0x2f
jne 0x43cd22
mov ecx, dword [ebp - 8]
add ecx, dword [ebp - 0xc]
mov byte [ecx], 0
push 0
mov edx, dword [ebp - 8]
push edx
call fcn.00589e7a
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x43cd19
mov eax, dword [ebp - 8]
push eax
call fcn.00589eda
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x43cd19
or eax, 0xffffffff
jmp 0x43cd59
mov ecx, dword [ebp - 8]
add ecx, dword [ebp - 0xc]
mov byte [ecx], 0x2f
jmp 0x43ccb2
push 0
mov edx, dword [ebp - 8]
push edx
call fcn.00589e7a
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x43cd4a
mov eax, dword [ebp - 8]
push eax
call fcn.00589eda
add esp, 4
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.00588624
add esp, 4
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x43cea0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x43cebb
xor al, al
jmp 0x43cec9
mov ecx, dword [ebp - 4]
and ecx, 0x10
je 0x43cec7
mov al, 1
jmp 0x43cec9
xor al, al
mov esp, ebp
pop ebp
ret
Function at 0x440510
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c8168
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x641490]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp - 0x30]
cmp dword [eax + 0x40], 0
je 0x440550
mov ecx, dword [ebp - 0x30]
movzx edx, byte [ecx + 0x45]
test edx, edx
jne 0x44055c
mov al, 1
jmp 0x4406ff
mov dword [ebp - 0x54], 8
call fcn.00404f80
push eax
mov eax, dword [ebp - 0x30]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x30]
mov eax, dword [edx + 0xc]
call eax
mov dword [ebp - 0x40], eax
call fcn.00404f80
mov dword [ebp - 0x44], eax
lea ecx, [ebp - 0x40]
push ecx
lea edx, [ebp - 0x44]
push edx
call fcn.00404f50
add esp, 8
movzx eax, al
test eax, eax
je 0x44059f
xor al, al
jmp 0x4406ff
push 0
push 8
lea ecx, [ebp - 0x28]
call fcn.00407080
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 0x58]
push edx
lea ecx, [ebp - 0x28]
call fcn.0040f6b0
mov ecx, eax
call fcn.0040b9e0
mov esi, eax
lea ecx, [ebp - 0x28]
call fcn.00406b40
add esi, eax
push esi
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x28]
call fcn.0040f6b0
mov ecx, eax
call fcn.0040b9e0
push eax
mov ecx, dword [ebp - 0x30]
add ecx, 0x48
push ecx
mov edx, dword [ebp - 0x30]
mov ecx, dword [edx + 0x40]
call fcn.00440aa0
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x44061a
cmp dword [ebp - 0x3c], 1
je 0x440621
cmp dword [ebp - 0x3c], 3
je 0x4406bb
jmp 0x4406d3
mov eax, dword [ebp - 0x30]
mov byte [eax + 0x45], 0
lea ecx, [ebp - 0x4c]
push ecx
lea ecx, [ebp - 0x28]
call fcn.0040f6b0
mov ecx, eax
call fcn.0040b9e0
mov edx, dword [ebp - 0x2c]
sub edx, eax
mov dword [ebp - 0x38], edx
je 0x440684
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0x50]
push ecx
mov edx, dword [ebp - 0x38]
push edx
push 1
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x28]
call fcn.0040f6b0
mov ecx, eax
call fcn.0040b9e0
push eax
call fcn.0058ab9f
add esp, 0x10
cmp dword [ebp - 0x38], eax
je 0x440684
mov byte [ebp - 0x34], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004066a0
mov al, byte [ebp - 0x34]
jmp 0x4406ff
mov ecx, dword [ebp - 0x30]
movzx edx, byte [ecx + 0x45]
test edx, edx
jne 0x4406a7
mov byte [ebp - 0x31], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004066a0
mov al, byte [ebp - 0x31]
jmp 0x4406ff
cmp dword [ebp - 0x38], 0
jne 0x4406b9
push 0
push 8
lea ecx, [ebp - 0x28]
call fcn.00434440
jmp 0x4406eb
mov byte [ebp - 0x33], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004066a0
mov al, byte [ebp - 0x33]
jmp 0x4406ff
mov byte [ebp - 0x32], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004066a0
mov al, byte [ebp - 0x32]
jmp 0x4406ff
jmp 0x4405b2
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00587de5
mov esp, ebp
pop ebp
ret
Function at 0x442ea0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c8430
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x641490]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0x20]
call fcn.00427d70
mov byte [ebp - 0x25], 0
lea ecx, [ebp + 8]
call fcn.00406720
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x442f8c
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp - 0x2c]
cmp dword [ecx + edx*4], 0
je 0x442f8a
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp - 0x2c]
mov eax, dword [ecx + edx*4]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov edx, dword [eax]
mov dword [ebp - 0x24], edx
mov ecx, dword [eax + 4]
mov dword [ebp - 0x20], ecx
mov edx, dword [eax + 8]
mov dword [ebp - 0x1c], edx
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x18], ecx
mov edx, dword [eax + 0x10]
mov dword [ebp - 0x14], edx
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x48]
call fcn.00406610
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
push ecx
mov ecx, dword [ebp + 0x20]
call fcn.00431840
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.004066a0
mov byte [ebp - 0x25], 1
xor edx, edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x2c]
add eax, 1
mov dword [ebp - 0x2c], eax
jmp 0x442efe
jmp 0x442f90
mov byte [ebp - 0x25], 0
mov cl, byte [ebp - 0x25]
mov byte [ebp - 0x26], cl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004066a0
mov al, byte [ebp - 0x26]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00587de5
mov esp, ebp
pop ebp
ret
Function at 0x4454a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c86b3
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x641490]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 8], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x10
call fcn.004065e0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
mov byte [ecx + 0x2a], 0
mov edx, dword [ebp - 0x10]
mov dword [edx], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 4], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 8], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0xc], 0xffffffff
lea eax, [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x10
call fcn.004070c0
mov ecx, dword [ebp - 0x10]
mov dx, word [ebp + 0x20]
mov word [ecx + 0x28], dx
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x2a], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x2c], 0x1f40
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x30], 0x1f40
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x34], 0xf
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x38], 0xf
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x3c], 0x1388
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x40], 0x12c
mov ecx, dword [ebp - 0x10]
mov byte [ecx + 0x44], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004066a0
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 0x1c