joyce8/EMBER2024-capa huggingface dataset:
Function at 0x483900
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x483933
push esi
call fcn.00491c50
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x48392c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x4839b9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4839a2
mov eax, dword [esi + 8]
test eax, eax
je 0x483957
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x48399e
cmp eax, 2
je 0x4839a2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x48394a
cmp eax, 3
je 0x48397d
cmp eax, 1
jne 0x48394a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x48394a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x48394a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.004839e0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4839c8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.004839e0
add esp, 4
pop esi
ret

Function at 0x484250
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x484271
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x484271
mov eax, dword [eax + 0x44]
test eax, eax
je 0x484271
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4a1720
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
xor ecx, ecx
push esi
push edi
mov eax, dword [ebp]
mov edi, dword [ebp + 4]
mov dword [esp + 0x24], edi
mov dword [esp + 0x10], 0
mov cx, word [eax + 0x14]
cmp word [eax + 6], 0
lea ebx, [ecx + eax + 0x18]
jbe 0x4a1823
add ebx, 0x10
mov eax, dword [ebx]
test eax, eax
jne 0x4a17a6
mov edx, dword [esp + 0x20]
mov esi, dword [edx + 0x38]
test esi, esi
jle 0x4a1806
mov eax, dword [ebp + 0x34]
mov edx, dword [ebx - 4]
push eax
mov ecx, edi
push 4
push 0x1000
add ecx, edx
push esi
push ecx
call dword [ebp + 0x1c]
add esp, 0x14
test eax, eax
je 0x4a182e
mov eax, dword [ebx - 4]
mov ecx, esi
mov edx, ecx
add edi, eax
xor eax, eax
mov dword [ebx - 8], edi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
jmp 0x4a1802
mov ecx, dword [ebx + 4]
mov edx, dword [esp + 0x1c]
add ecx, eax
push ecx
push edx
call fcn.004a1700
add esp, 8
test eax, eax
je 0x4a182e
mov eax, dword [ebp + 0x34]
mov ecx, dword [ebx]
push eax
mov eax, dword [ebx - 4]
mov edx, edi
push 4
push 0x1000
add edx, eax
push ecx
push edx
call dword [ebp + 0x1c]
add esp, 0x14
test eax, eax
je 0x4a182e
mov ecx, dword [ebx - 4]
mov esi, dword [ebx + 4]
mov eax, edi
mov edi, dword [esp + 0x18]
add eax, ecx
mov ecx, dword [ebx]
mov edx, ecx
add esi, edi
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebx - 8], eax
mov edi, dword [esp + 0x24]
mov ecx, dword [ebp]
mov eax, dword [esp + 0x10]
xor edx, edx
inc eax
mov dx, word [ecx + 6]
add ebx, 0x28
cmp eax, edx
mov dword [esp + 0x10], eax
jl 0x4a1753
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x4a1840
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x2c]
xor ecx, ecx
mov eax, dword [edi]
mov cx, word [eax + 0x14]
lea esi, [ecx + eax + 0x18]
mov ecx, dword [edi + 0x3c]
push ecx
mov eax, dword [esi + 8]
push eax
mov dword [esp + 0x1c], eax
call fcn.004a1990
push esi
push edi
mov dword [esp + 0x28], eax
call fcn.004a19a0
mov ecx, dword [edi]
mov dword [esp + 0x2c], eax
mov edx, dword [esi + 0x24]
mov eax, 1
add esp, 0x10
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], 0
add esi, 0x28
cmp word [ecx + 6], ax
mov dword [esp + 0x10], eax
jbe 0x4a195b
mov ecx, dword [edi + 0x3c]
mov eax, dword [esi + 8]
push ecx
push eax
mov dword [esp + 0x34], eax
call fcn.004a1990
push esi
push edi
mov ebx, eax
call fcn.004a19a0
mov edx, dword [esp + 0x24]
mov ebp, eax
mov eax, dword [esp + 0x28]
add esp, 0x10
cmp eax, ebx
je 0x4a1905
mov eax, dword [esp + 0x1c]
add eax, edx
cmp eax, ebx
ja 0x4a1905
lea ecx, [esp + 0x14]
push ecx
push edi
call fcn.004a19d0
add esp, 8
test eax, eax
je 0x4a197b
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], edx
mov dword [esp + 0x1c], ebp
mov eax, dword [esi + 0x24]
mov dword [esp + 0x20], eax
jmp 0x4a193a
mov eax, dword [esi + 0x24]
mov ecx, dword [esp + 0x20]
test eax, 0x2000000
je 0x4a1923
test ecx, 0x2000000
je 0x4a1923
or ecx, eax
mov dword [esp + 0x20], ecx
jmp 0x4a192e
or eax, ecx
and eax, 0xfdffffff
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x2c]
sub ebp, edx
add ebp, eax
mov dword [esp + 0x1c], ebp
mov ecx, dword [edi]
mov eax, dword [esp + 0x10]
xor edx, edx
inc eax
mov dx, word [ecx + 6]
add esi, 0x28
cmp eax, edx
mov dword [esp + 0x10], eax
jl 0x4a18a1
mov eax, 1
mov dword [esp + 0x24], eax
lea eax, [esp + 0x14]
push eax
push edi
call fcn.004a19d0
add esp, 8
neg eax
pop edi
pop esi
sbb eax, eax
pop ebp
neg eax
pop ebx
add esp, 0x18
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret

Function at 0x4a95a0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x9eb0d4]
xor edx, edx
cmp eax, edx
jne 0x4a95c6
xor eax, eax
mov byte [eax + 0x9eafd4], al
inc eax
cmp eax, 0x100
jl 0x4a95ae
mov dword [0x9eb0d4], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x9eafd4
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4a9657
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x4a962a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x4a95f8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x4a9660
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x4a96b3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x4a969a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4b0030
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4dc5fe
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.004b0950
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x9b46ac
call fcn.004ce576
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x4b00c3
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004ce576
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x4b00bc
push 0
mov ecx, eax
call fcn.004a71d0
mov dword [esi + 0xc], eax
jmp 0x4b00c5
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x4b00c5
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x4d0c03
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4d0c3b
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004cec90
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004cec68
jmp 0x4d0c47
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4d22f6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4d2338
call fcn.004d7dad
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4d2338
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4d232f
xor eax, eax
jmp 0x4d2340
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004d2346
pop edi
pop esi
pop ebx
ret 4
Function at 0x4d82dd
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4d830b
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4d8329
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004d8243
jmp 0x4d8329
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4d8329
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004d8243
test edi, edi
mov eax, edi
jne 0x4d8313
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4c4740
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x79000]
push edi
or ebp, 0xffffffff
jmp 0x4c4762
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4c4769
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4c4758
mov eax, 1
add ebx, ebx
jne 0x4c477b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4c478c
jne 0x4c47ab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4c47ab
dec eax
add ebx, ebx
jne 0x4c4798
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4c4770
add ebx, ebx
jne 0x4c47a7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4c47fd
xor ecx, ecx
sub eax, 3
jb 0x4c47c3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4c4832
sar eax, 1
mov ebp, eax
jmp 0x4c47ce
add ebx, ebx
jne 0x4c47ce
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4c479c
inc ecx
add ebx, ebx
jne 0x4c47dc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4c479c
add ebx, ebx
jne 0x4c47e9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4c47de
jne 0x4c47fa
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4c47de
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4c481c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4c480e
jmp 0x4c475e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4c481c
add edi, ecx
jmp 0x4c475e
pop esi
mov edi, esi
mov ecx, 0x3887
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4c483a
cmp byte [edi], 0x11
jne 0x4c483a
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 0x4c483f
lea edi, [esi + 0xc0000]
mov eax, dword [edi]
or eax, eax
je 0x4c48b7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xc82d4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xc8428]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4c486c
mov ecx, edi
jns 0x4c489b
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 + 0xc842c]
or eax, eax
je 0x4c48b1
mov dword [ebx], eax
add ebx, 4
jmp 0x4c4889
call dword [esi + 0xc843c]
mov ebp, dword [esi + 0xc8430]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
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 0x4c48eb
sub esp, 0xffffff80
jmp 0x417520
Function at 0x406c30
Capabilities:
Read clipboard data

Disassembly:
sub esp, 0x20c
push esi
mov esi, dword [esp + 0x218]
push edi
test esi, esi
je 0x406c49
mov dword [esi], 0
mov edi, dword [esp + 0x218]
lea eax, [edi - 0xc000]
cmp eax, 0x3fff
ja 0x406d29
push 0x104
lea eax, [esp + 0xc]
push eax
push edi
call dword [sym.imp.USER32.dll_GetClipboardFormatNameW]
push 0xb
lea eax, [esp + 0xc]
push str.Link_Source
push eax
call fcn.0049ee82
add esp, 0xc
test eax, eax
je 0x406d1c
lea eax, [esp + 8]
push str.ObjectLink
push eax
call fcn.0049ed01
add esp, 8
test eax, eax
je 0x406d1c
lea eax, [esp + 8]
push str.OwnerLink
push eax
call fcn.0049ed01
add esp, 8
test eax, eax
je 0x406d1c
lea eax, [esp + 8]
push str.Native
push eax
call fcn.0049ed01
add esp, 8
test eax, eax
je 0x406d1c
lea eax, [esp + 8]
push str.Embed_Source
push eax
call fcn.0049ed01
add esp, 8
test eax, eax
je 0x406d1c
lea eax, [esp + 8]
push str.MSDEVColumnSelect
push eax
call fcn.0049ed01
add esp, 8
test eax, eax
je 0x406d12
lea eax, [esp + 8]
push str.MSDEVLineSelect
push eax
call fcn.0049ed01
add esp, 8
test eax, eax
jne 0x406d30
test esi, esi
je 0x406d1c
mov dword [esi], 1
pop edi
xor eax, eax
pop esi
add esp, 0x20c
ret 8
xor eax, eax
mov word [esp + 8], ax
push edi
call dword [sym.imp.USER32.dll_GetClipboardData]
pop edi
pop esi
add esp, 0x20c
ret 8

Function at 0x406d50
Capabilities:
Check for time delay via gettickcount
Open clipboard

Disassembly:
cmp dword [0x4e9678], 0
push ebx
push esi
push edi
jne 0x406dd8
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call esi
push dword [0x4e7ccc]
mov edi, dword [sym.imp.USER32.dll_OpenClipboard]
mov ebx, eax
call edi
test eax, eax
jne 0x406dce
nop dword [eax + eax]
mov eax, dword [0x4e3808]
cmp eax, 0xffffffff
je 0x406d9f
test eax, eax
je 0x406de1
call esi
mov ecx, dword [0x4e3808]
add ecx, ebx
sub ecx, eax
cmp ecx, 5
jle 0x406de1
mov edx, 1
mov dword [0x4e37f0], 0
mov ecx, 0x8000012f
call fcn.004015e0
push dword [0x4e7ccc]
mov dword [0x4e37f0], 1
call edi
test eax, eax
je 0x406d80
mov dword [0x4e9678], 1
mov eax, 1
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x407431
Capabilities:
Resolve dns

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x1c]
push esi
push edi
push ecx
and dword [ebp], 0
mov dword [esp + 0x14], edx
mov byte [ebx], 0
call dword [sym.imp.WSOCK32.dll_gethostbyname]
mov esi, eax
test esi, esi
je 0x4074af
cmp word [esi + 8], 2
jne 0x407491
push 4
pop eax
cmp word [esi + 0xa], ax
jne 0x407491
mov edi, dword [esi + 0xc]
jmp 0x40748b
push dword [eax]
mov edx, dword [esp + 0x1c]
push dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
call fcn.004073ca
mov dword [ebp], eax
test eax, eax
je 0x4074aa
lea ebp, [eax + 0x1c]
add edi, 4
mov eax, dword [edi]
test eax, eax
jne 0x40746b
push 0x400
push dword [esi]
push 0x401
push ebx
call fcn.004a3ac7
add esp, 0x10
xor eax, eax
jmp 0x4074d6
push 8
pop eax
jmp 0x4074d6
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov ecx, 0x2af9
sub eax, ecx
je 0x4074d4
sub eax, 1
je 0x4074cd
sub eax, 1
jne 0x4074d4
lea eax, [ecx + 2]
jmp 0x4074d6
mov eax, 0x2afa
jmp 0x4074d6
mov eax, ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x10

Function at 0x407b02
Capabilities:
Get common file path

Disassembly:
sub esp, 0x230
cmp dword [0x4e7c90], 0
mov ax, cx
mov word [esp + 2], ax
mov dword [esp + 4], str.getaddrinfo
mov dword [esp + 8], 0x40761f
mov dword [esp + 0xc], str.getnameinfo
mov dword [esp + 0x10], 0x407932
mov dword [esp + 0x14], str.freeaddrinfo
mov dword [esp + 0x18], 0x4075e4
je 0x407b51
movzx eax, ax
jmp 0x407c5f
push 0x104
lea eax, [esp + 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x407c50
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x138]
mov ebx, 0x10c
push eax
lea eax, [esp + 0x30]
push ebx
push eax
call fcn.004a39b6
push str.ws2_32
lea eax, [esp + 0x3c]
push ebx
push eax
call fcn.004a4839
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea eax, [esp + 0x44]
add esp, 0x18
push eax
call edi
mov ebp, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov esi, eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
test esi, esi
je 0x407bc9
push str.getaddrinfo
push esi
call ebx
test eax, eax
jne 0x407c0d
push esi
call ebp
lea eax, [esp + 0x138]
mov esi, 0x10c
push eax
lea eax, [esp + 0x30]
push esi
push eax
call fcn.004a39b6
push str.wship6
lea eax, [esp + 0x3c]
push esi
push eax
call fcn.004a4839
add esp, 0x18
lea eax, [esp + 0x2c]
push eax
call edi
mov esi, eax
test esi, esi
je 0x407c4c
push str.getaddrinfo
push esi
call ebx
test eax, eax
je 0x407c49
xor edi, edi
lea eax, [esp + 0x14]
mov ebx, edi
push dword [eax + ebx*8]
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esp + ebx*8 + 0x18], eax
test eax, eax
je 0x407c49
inc ebx
lea eax, [esp + 0x14]
cmp ebx, 3
jl 0x407c15
test esi, esi
je 0x407c4c
mov eax, dword [esp + edi + 0x18]
mov dword [edi + 0x4e68fc], eax
add edi, 8
cmp edi, 0x18
jl 0x407c35
jmp 0x407c4c
push esi
call ebp
pop edi
pop esi
pop ebp
pop ebx
movzx eax, word [esp + 2]
mov dword [0x4e7c90], 1
mov eax, dword [eax*8 + 0x4e68fc]
add esp, 0x230
ret
Function at 0x40a8f6
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
push 0xa
mov edx, dword [edi + 0x3c]
mov ecx, edx
mov eax, dword [edi + 0x34]
sub ecx, ebx
mov dword [esp + 0x14], ecx
mov byte [edx + eax], 0
lea eax, [esp + 0x18]
push eax
lea eax, [ecx + 0x26]
push eax
call fcn.004a386c
lea eax, [esp + 0x20]
push 0
push eax
call fcn.0049cec0
push str.__xml_version_1.0__encoding_UTF_8___
push 0x4d0bbc
lea esi, [eax + 1]
push esi
call fcn.0040bdfe
add esp, 0x20
add esi, eax
lea eax, [esp + 0x14]
sub esi, eax
push 0
push esi
mov esi, dword [sym.imp.WSOCK32.dll_send]
push eax
push dword [edi + 0x10]
call esi
cmp eax, 0xffffffff
je 0x40a986
mov eax, dword [esp + 0x10]
push 0
inc eax
push eax
mov eax, dword [edi + 0x34]
add eax, ebx
push eax
push dword [edi + 0x10]
call esi
cmp eax, 0xffffffff
je 0x40a986
mov dword [edi + 0x3c], ebx
xor eax, eax
jmp 0x40a990
mov ecx, str.An_internal_error_has_occurred_in_the_debugger_engine._nContinue_running_the_script_without_the_debugger_
call fcn.0040acd2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40ad19
Capabilities:
Encode data using base64

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
mov ebx, ecx
xor esi, esi
mov dword [esp + 0x10], ebx
mov ebp, edx
cmp edi, 0xffffffff
jne 0x40ad3a
push ebp
call fcn.004a3920
pop ecx
mov edi, eax
cmp edi, 2
jbe 0x40adc3
lea eax, [ebx + 2]
xor edx, edx
mov dword [esp + 0x18], eax
lea eax, [edi - 3]
push 3
pop ecx
div ecx
mov ebx, dword [esp + 0x18]
lea edx, [eax + 1]
mov esi, edx
shl esi, 2
movzx eax, byte [ebp]
sub edi, 3
movzx ecx, byte [ebp + 1]
shl eax, 8
or ecx, eax
movzx eax, byte [ebp + 2]
shl ecx, 8
add ebp, 3
or ecx, eax
mov eax, ecx
shr eax, 0x12
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebx - 2], al
mov eax, ecx
shr eax, 0xc
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebx - 1], al
mov eax, ecx
shr eax, 6
and ecx, 0x3f
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebx], al
lea ebx, [ebx + 4]
mov al, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebx - 3], al
sub edx, 1
jne 0x40ad60
mov ebx, dword [esp + 0x10]
test edi, edi
je 0x40ae1d
movzx ecx, byte [ebp]
shl ecx, 0x10
cmp edi, 1
jbe 0x40addc
movzx eax, byte [ebp + 1]
shl eax, 8
or ecx, eax
mov eax, ecx
shr eax, 0x12
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + ebx], al
mov eax, ecx
shr eax, 0xc
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + ebx + 1], al
cmp edi, 1
jbe 0x40ae0f
shr ecx, 6
and ecx, 0x3f
mov al, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
jmp 0x40ae11
mov al, 0x3d
mov byte [esi + ebx + 2], al
mov byte [esi + ebx + 3], 0x3d
add esi, 4
pop edi
mov byte [esi + ebx], 0
mov eax, esi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x40c520
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4b671d
push eax
mov dword fs:[0], esp
sub esp, 0x38
mov eax, dword [0x4e8ef4]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
test eax, eax
je 0x40c560
push str.stdout
push esi
mov ecx, 0x4e8ea8
call fcn.0040a7ec
mov eax, dword [0x4e8ef4]
cmp eax, 2
je 0x40c6e6
mov eax, dword [0x4e97fc]
mov dword [ebp - 0x44], vtable.TextStream.0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0xffffffff
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
cmp eax, 0xffffffff
je 0x40c5b9
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x34], eax
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetCPInfo]
test eax, eax
jne 0x40c5b9
mov byte [ebp - 0x2a], al
mov dword [ebp - 0x44], vtable.TextFile.0
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x44]
push dword [edi + 0x6d8]
push 2
push dword [ebp + 0x10]
call fcn.0047ec00
push dword [ebp + 0xc]
lea ecx, [ebp - 0x44]
push esi
call fcn.0047f410
mov edx, dword [ebp - 0x3c]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
test edx, edx
je 0x40c633
cmp dword [ebp - 0x18], 0
jne 0x40c633
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 0x10]
cmp eax, fcn.0047f850
jne 0x40c625
push 0
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
push edx
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call edi
jmp 0x40c62e
push edx
push dword [ebp - 0x14]
lea ecx, [ebp - 0x44]
call eax
xor edx, edx
mov dword [ebp - 0x3c], edx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov word [ebp - 0x1c], ax
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 8]
cmp eax, fcn.0047f7f0
jne 0x40c671
mov ecx, dword [ebp - 0x10]
cmp ecx, 0xffffffff
je 0x40c67c
mov eax, dword [ebp - 0x40]
and eax, 0x10000003
cmp eax, 0x10000000
je 0x40c669
push ecx
call esi
mov edx, dword [ebp - 0x3c]
or ecx, 0xffffffff
mov dword [ebp - 0x10], ecx
jmp 0x40c67c
lea ecx, [ebp - 0x44]
call eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x44], vtable.TextFile.0
test edx, edx
je 0x40c6ab
cmp dword [ebp - 0x18], 0
jne 0x40c6ab
push 0
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
push edx
push dword [ebp - 0x14]
push ecx
call edi
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x3c], 0
xor eax, eax
mov word [ebp - 0x1c], ax
cmp ecx, 0xffffffff
je 0x40c6cf
mov eax, dword [ebp - 0x40]
and eax, 0x10000003
cmp eax, 0x10000000
je 0x40c6c8
push ecx
call esi
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x44], vtable.TextStream.0
test eax, eax
je 0x40c6e6
push eax
call fcn.0049ee02
add esp, 4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc