joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401748
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4386b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], 0x8040201
mov dword [ebp - 0xc], 0x80402010
mov word [ebp - 8], 0x361b
xor ecx, ecx
mov edx, edi
mov eax, dword [ebp + 0xc]
xor esi, esi
add eax, ecx
mov bl, byte [eax]
mov byte [edx + esi], bl
push 4
pop ebx
inc esi
add eax, ebx
cmp esi, ebx
jl 0x40177c
inc ecx
add edx, ebx
cmp ecx, ebx
jl 0x401775
lea eax, [ebp - 0x10]
lea esi, [edi + 0x10]
dec eax
mov dword [ebp - 0x18], 1
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], eax
xor edi, edi
mov dword [ebp - 0x1c], edi
xor edx, edx
lea ecx, [esi - 0xd]
test edi, edi
je 0x4017ba
mov al, byte [edi + ecx + 0xc]
jmp 0x4017bc
mov al, byte [ecx]
mov byte [ebp + edx - 0x14], al
inc edx
add ecx, ebx
cmp edx, ebx
jl 0x4017b0
test edi, edi
jne 0x401822
mov dl, byte [ebp - 0x14]
xor esi, esi
inc esi
lea eax, [ebp - 0x14]
xor ecx, ecx
sub esi, eax
lea eax, [ebp + ecx - 0x14]
lea edi, [esi + eax]
and edi, reloc.WS2_32.dll_closesocket
jns 0x4017ec
dec edi
or edi, 0xfffffffc
inc edi
movzx edi, byte [ebp + edi - 0x14]
mov ebx, dword [ebp + 8]
mov bl, byte [edi + ebx + 4]
inc ecx
mov byte [eax], bl
cmp ecx, 3
jl 0x4017d8
mov ecx, dword [ebp + 8]
mov esi, dword [ebp - 0x20]
mov edi, dword [ebp - 0x1c]
movzx eax, dl
mov al, byte [eax + ecx + 4]
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 0x11], al
mov eax, dword [ebp - 0x24]
mov al, byte [eax + ecx]
xor byte [ebp - 0x14], al
push 4
pop ebx
xor ecx, ecx
lea eax, [esi + edi]
mov dl, byte [ebp + ecx - 0x14]
xor dl, byte [eax - 0x10]
inc ecx
mov byte [eax], dl
add eax, ebx
cmp ecx, ebx
jl 0x401827
inc edi
mov dword [ebp - 0x1c], edi
cmp edi, ebx
jl 0x4017ab
inc dword [ebp - 0x18]
add esi, 0x10
cmp dword [ebp - 0x18], 0xa
mov dword [ebp - 0x20], esi
jle 0x4017a6
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00411f09
leave
ret 8

Function at 0x40196e
Capabilities:
Encode data using xor

Disassembly:
push ebx
push edi
mov edi, eax
xor ecx, ecx
sub edi, esi
push 4
lea eax, [ecx + esi]
pop edx
mov bl, byte [edi + eax]
xor byte [eax], bl
add eax, 4
dec edx
jne 0x40197c
inc ecx
cmp ecx, 4
jl 0x401976
pop edi
pop ebx
ret
Function at 0x402104
Capabilities:
Encode data using xor
Encrypt data using aes

Disassembly:
push esi
mov esi, ecx
test esi, esi
je 0x402274
test eax, eax
je 0x402274
mov dword [eax + 0xf0], 0xa
push ebx
push edi
mov edi, dword [esi]
mov ebx, edi
ror ebx, 8
mov edx, 0xff00ff00
and ebx, edx
rol edi, 8
mov ecx, 0xff00ff
and edi, ecx
or ebx, edi
mov dword [eax], ebx
mov edi, dword [esi + 4]
mov ebx, edi
ror ebx, 8
and ebx, edx
rol edi, 8
and edi, ecx
or ebx, edi
mov dword [eax + 4], ebx
mov edi, dword [esi + 8]
mov ebx, edi
ror ebx, 8
and ebx, edx
rol edi, 8
and edi, ecx
or ebx, edi
mov dword [eax + 8], ebx
mov esi, dword [esi + 0xc]
mov edi, esi
ror edi, 8
and edi, edx
rol esi, 8
and esi, ecx
or edi, esi
mov dword [eax + 0xc], edi
mov esi, edi
shr edi, 8
mov ecx, esi
shr ecx, 0x10
mov edx, 0xff
and ecx, edx
mov ecx, dword [ecx*4 + 0x430cb8]
and edi, edx
mov edi, dword [edi*4 + 0x4310b8]
and edi, 0xff0000
xor ecx, 0x1000000
and ecx, 0xff000000
xor ecx, edi
mov edi, esi
shr edi, 0x18
movzx edi, byte [edi*4 + 0x4308b8]
xor ecx, edi
mov edi, esi
and edi, edx
mov edi, dword [edi*4 + 0x4304b8]
and edi, 0xff00
xor ecx, edi
xor ecx, dword [eax]
mov edi, dword [eax + 4]
xor edi, ecx
mov dword [eax + 0x10], ecx
mov ecx, dword [eax + 8]
xor ecx, edi
mov dword [eax + 0x18], ecx
xor ecx, esi
mov dword [eax + 0x14], edi
mov dword [eax + 0x1c], ecx
add eax, 4
mov edi, 0x4325bc
mov esi, dword [eax + 0x18]
add eax, 0x10
mov ecx, esi
shr ecx, 8
mov ebx, esi
and ecx, edx
mov ecx, dword [ecx*4 + 0x4310b8]
shr ebx, 0x10
and ebx, edx
mov ebx, dword [ebx*4 + 0x430cb8]
and ecx, 0xff0000
and ebx, 0xff000000
xor ecx, ebx
mov ebx, esi
and esi, edx
mov esi, dword [esi*4 + 0x4304b8]
shr ebx, 0x18
movzx ebx, byte [ebx*4 + 0x4308b8]
xor ecx, ebx
and esi, 0xff00
xor ecx, esi
xor ecx, dword [eax - 4]
xor ecx, dword [edi]
add edi, 4
mov dword [eax + 0xc], ecx
mov esi, dword [eax]
xor esi, ecx
mov dword [eax + 0x10], esi
mov ecx, dword [eax + 4]
xor ecx, esi
mov dword [eax + 0x14], ecx
mov esi, dword [eax + 8]
xor esi, ecx
mov dword [eax + 0x18], esi
cmp edi, 0x4325e0
jne 0x4021f4
pop edi
pop ebx
xor eax, eax
pop esi
ret
or eax, 0xffffffff
pop esi
ret
Function at 0x4027c3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4386b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
and dword [ebx], 0
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x10]
mov esi, edx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], eax
test edi, edi
je 0x4028e7
test esi, esi
je 0x4028e7
test ecx, ecx
jbe 0x4028e7
cmp dword [ebp - 0x14], 0
je 0x4028e7
test eax, eax
je 0x4028e7
cmp ecx, 0x10
jb 0x402872
mov ecx, dword [ebp - 8]
sub ecx, edi
mov dword [ebp - 0x10], ecx
mov ecx, esi
mov eax, edi
sub ecx, edi
mov dword [ebp - 8], 0x10
mov edx, dword [ebp - 0x10]
mov dl, byte [edx + eax]
xor dl, byte [eax]
mov byte [ecx + eax], dl
inc eax
dec dword [ebp - 8]
jne 0x402835
push dword [ebp - 0x14]
push esi
push esi
call fcn.00402279
add esp, 0xc
test eax, eax
jne 0x4028e2
push 0x10
pop eax
sub dword [ebp - 0xc], eax
add dword [ebx], eax
mov dword [ebp - 8], esi
add edi, eax
add esi, eax
cmp dword [ebp - 0xc], eax
jae 0x402820
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x4028cf
mov edx, dword [ebp - 8]
sub edx, edi
mov dword [ebp - 0xc], esi
sub dword [ebp - 0xc], edi
mov eax, edi
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x10]
mov dl, byte [eax + edx]
xor dl, byte [eax]
mov edi, dword [ebp - 0xc]
mov byte [eax + edi], dl
inc eax
dec dword [ebp - 0x18]
jne 0x402889
cmp ecx, 0x10
jae 0x4028b8
mov edx, dword [ebp - 8]
push 0x10
pop eax
sub edx, esi
lea edi, [esi + ecx]
sub eax, ecx
mov cl, byte [edx + edi]
mov byte [edi], cl
inc edi
dec eax
jne 0x4028af
push dword [ebp - 0x14]
push esi
push esi
call fcn.00402279
add esp, 0xc
test eax, eax
jne 0x4028e2
add dword [ebx], 0x10
mov dword [ebp - 8], esi
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0x1c]
mov eax, dword [ebp + 8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebx], eax
xor eax, eax
jmp 0x4028ea
push 0xfffffffffffffffd
pop eax
jmp 0x4028ea
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00411f09
leave
ret
Function at 0x403be5
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x4386b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x220]
push eax
xor edi, edi
push edi
lea eax, [ebp - 0x108]
push eax
mov esi, ecx
lea eax, [ebp - 0x20c]
push eax
xor ebx, ebx
lea eax, [esi + 1]
inc ebx
push eax
mov dword [ebp - 0x208], esi
mov dword [ebp - 0x20c], ebx
mov dword [ebp - 0x104], esi
mov dword [ebp - 0x108], ebx
mov dword [ebp - 0x220], edi
mov dword [ebp - 0x21c], edi
call dword [sym.imp.WS2_32.dll_select]
mov dword [ebp - 0x214], eax
cmp eax, edi
jle 0x403ce6
mov edi, dword [sym.imp.WS2_32.dll___WSAFDIsSet]
lea eax, [ebp - 0x108]
push eax
push esi
call edi
mov dword [ebp - 0x210], eax
lea eax, [ebp - 0x20c]
push eax
push esi
call edi
cmp dword [ebp - 0x210], 0
je 0x403ce1
test eax, eax
jne 0x403ce1
mov byte [ebp - 0x210], al
lea edi, [ebp - 0x20f]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x210]
push eax
push 0x1007
push 0xffff
push esi
mov dword [ebp - 0x218], 4
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x403ce1
mov edi, 0x430417
lea esi, [ebp - 0x210]
mov ecx, ebx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x403cd5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x403ce1
mov eax, dword [ebp - 0x214]
jmp 0x403cea
push 0xfffffffffffffffe
pop eax
jmp 0x403cea
neg eax
sbb eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00411f09
leave
ret
Function at 0x403cf9
Capabilities:
Receive data
Receive data on socket

Disassembly:
push 0x30
mov eax, 0x42b54d
call fcn.0041533e
mov eax, dword [ebp + 8]
mov esi, ecx
push str._________AHttpSocket::readHttpHead_____________
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], esi
call fcn.004125f1
cmp dword [esi], 0
pop ecx
mov ebx, 0x400
jne 0x403d40
mov eax, dword [edi]
test eax, eax
je 0x403d35
push eax
call fcn.00411fba
and dword [edi], 0
pop ecx
push ebx
mov dword [esi], ebx
call fcn.0041117c
pop ecx
mov dword [edi], eax
push ebx
call fcn.0041117c
push dword [esi]
mov dword [ebp - 0x34], eax
push 0
push dword [edi]
call fcn.00417670
push ebx
xor ebx, ebx
push ebx
push dword [ebp - 0x34]
call fcn.00417670
add esp, 0x1c
and dword [esi], ebx
mov byte [ebp - 0x2d], 1
mov byte [ebp - 0x2e], bl
mov esi, dword [ebp - 0x38]
call fcn.0040498f
test al, al
je 0x403db5
push 0
push 1
lea eax, [ebp - 0x2e]
push eax
mov eax, esi
push dword [eax + 0x2c]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x403dab
js 0x403db1
mov eax, dword [ebp - 0x34]
mov cl, byte [ebp - 0x2e]
mov byte [ebx + eax], cl
inc ebx
cmp byte [ebx + eax - 2], 0xd
jne 0x403d6c
cmp byte [ebx + eax - 1], 0xa
jne 0x403d6c
jmp 0x403db5
mov byte [ebp - 0x2d], 1
jmp 0x403db5
mov byte [ebp - 0x2d], 0
mov eax, dword [ebp - 0x34]
mov byte [ebx + eax], 0
mov eax, dword [edi]
and dword [ebp - 0x1c], 0
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
call fcn.00402b7d
and dword [ebp - 4], 0
lea esi, [ebx + 1]
push esi
call fcn.0041117c
mov ecx, dword [ebp - 0x38]
mov dword [ecx + 0x38], eax
mov eax, dword [ebp - 0x3c]
push esi
mov dword [eax], ebx
push 0
push dword [edi]
call fcn.00417670
push ebx
push dword [ebp - 0x34]
push dword [edi]
call fcn.00414b90
push dword [ebp - 0x34]
call fcn.00411fc5
add esp, 0x20
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00402b9e
mov al, byte [ebp - 0x2d]
call fcn.00415388
ret 4
Function at 0x403f37
Capabilities:
Receive data
Receive data on socket

Disassembly:
push 0x24
mov eax, 0x42b371
call fcn.0041533e
push str._________AHttpSocket::readHttpHead_____________
mov esi, ecx
call fcn.004125f1
mov eax, dword [esi + 0x38]
xor edi, edi
pop ecx
cmp eax, edi
je 0x403f63
push eax
call fcn.00411fba
pop ecx
mov dword [esi + 0x38], edi
push 0x19000
call fcn.0041117c
pop ecx
mov ebx, eax
mov byte [ebp - 0x2e], 1
mov byte [ebp - 0x2f], 0
mov byte [ebp - 0x2d], 0
cmp edi, 0x2800
jge 0x403fda
call fcn.0040498f
test al, al
je 0x403fda
push 0
push 1
lea eax, [ebp - 0x2f]
push eax
push dword [esi + 0x2c]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x403fd6
mov al, byte [ebp - 0x2f]
mov byte [edi + ebx], al
inc edi
cmp edi, 4
jl 0x403fce
cmp byte [edi + ebx - 4], 0xd
jne 0x403fce
cmp byte [edi + ebx - 3], 0xa
jne 0x403fce
cmp byte [edi + ebx - 2], 0xd
jne 0x403fce
cmp byte [edi + ebx - 1], 0xa
jne 0x403fce
mov byte [ebp - 0x2d], 1
cmp byte [ebp - 0x2d], 0
je 0x403f7c
jmp 0x403fda
mov byte [ebp - 0x2e], 0
mov byte [edi + ebx], 0
and dword [ebp - 0x1c], 0
push ebx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
call fcn.00402b7d
and dword [ebp - 4], 0
lea eax, [edi + 1]
push eax
call fcn.0041117c
lea ecx, [edi + 1]
push ecx
push 0
push eax
mov dword [esi + 0x38], eax
call fcn.00417670
push edi
push ebx
push dword [esi + 0x38]
call fcn.00414b90
add esp, 0x1c
push dword [esi + 0x38]
call fcn.00404403
push eax
push str._________m_szResultHead________len___d
call fcn.004125f1
pop ecx
pop ecx
push dword [esi + 0x38]
call fcn.00404403
mov dword [esi + 0x10], eax
test ebx, ebx
je 0x40404a
push ebx
call fcn.00411fba
pop ecx
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00402b9e
mov al, byte [ebp - 0x2e]
call fcn.00415388
ret

Function at 0x404327
Capabilities:
Send data
Send data on socket
Send http request

Disassembly:
push esi
push edi
mov esi, eax
push dword [esi + 0x34]
push str._______________________m_szHead__n__s
call fcn.004125f1
push dword [esi + 0x34]
push str._____________n_baotou__n__s
call fcn.004125f1
mov ecx, dword [esi + 0x34]
mov eax, ecx
add esp, 0x10
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x404350
push 0
sub eax, edi
push eax
push ecx
push dword [esi + 0x2c]
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
mov eax, dword [esi + 0x34]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40436e
sub eax, ecx
push eax
push str._____________n_chanff__n__d
call fcn.004125f1
pop ecx
pop ecx
test edi, edi
jns 0x40439c
push str._____________n______________AHttpSocket::sendMsg_failed_________
call fcn.004125f1
pop ecx
call fcn.004043a2
xor al, al
jmp 0x40439f
setne al
pop edi
pop esi
ret
Function at 0x4043b8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, eax
xor ebx, ebx
mov byte [ebp - 1], 1
cmp dword [esi + 0x58], ebx
jne 0x4043f9
push 1
call fcn.00404968
push 1
call fcn.00404941
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esi + 0x5c]
push eax
push ebx
push esi
push 0x403879
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x58], eax
jmp 0x4043fc
mov byte [ebp - 1], bl
mov al, byte [ebp - 1]
pop esi
pop ebx
leave
ret
Function at 0x4049be
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
mov esi, ecx
cmp dword [esi + 0x6c], 5
je 0x4049d4
xor al, al
jmp 0x404b86
cmp dword [esi + 0x2c], 0xffffffff
mov byte [ebp - 1], 0
je 0x404b78
push ebx
mov ebx, dword [esi + 0x10]
push edi
mov eax, 0x400
xor edi, edi
mov byte [ebp - 1], 1
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], eax
test ebx, ebx
jg 0x404a06
mov dword [ebp - 0xc], 0x19000
mov ebx, dword [ebp - 0xc]
cmp ebx, eax
jge 0x404a0d
mov dword [ebp - 8], ebx
push dword [ebp - 8]
call fcn.0041117c
push ebx
mov dword [ebp - 0x10], eax
call fcn.0041117c
pop ecx
pop ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
jmp 0x404ae2
push dword [ebp - 8]
push 0
push dword [ebp - 0x10]
call fcn.00417670
add esp, 0xc
push 0
push dword [ebp - 8]
push dword [ebp - 0x10]
push dword [esi + 0x2c]
call dword [sym.imp.WS2_32.dll_recv]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x404af1
test ebx, ebx
je 0x404afe
push ebx
push dword [ebp - 0x10]
add edi, ebx
push dword [ebp - 0x14]
call fcn.00414b90
add dword [ebp - 0x14], ebx
add esp, 0xc
inc dword [esi + 0x60]
mov eax, dword [esi + 0x60]
push 0x64
xor edx, edx
pop ecx
div ecx
test edx, edx
jne 0x404a8c
push edx
mov eax, esi
call fcn.0040477e
mov eax, dword [ebp - 0xc]
sub eax, edi
mov dword [esi + 0x48], eax
mov eax, edi
mov dword [ebp - 8], eax
fild dword [ebp - 8]
mov dword [esi + 0x40], edi
test eax, eax
jns 0x404aa9
fadd qword [0x4336d8]
mov eax, dword [esi + 0x10]
fild dword [esi + 0x10]
test eax, eax
jns 0x404ab9
fadd qword [0x4336d8]
fdivp st(1)
fmul qword [0x433718]
call fcn.0042aa66
mov dword [esi + 0x44], eax
cmp edi, dword [ebp - 0xc]
jge 0x404afe
mov ecx, dword [ebp - 0xc]
mov eax, 0x400
sub ecx, edi
mov dword [ebp - 8], eax
cmp ecx, eax
jg 0x404ae2
mov dword [ebp - 8], ecx
call fcn.0040498f
test al, al
jne 0x404a2b
jmp 0x404b05
mov dword [esi + 0x68], 1
mov byte [ebp - 1], 0
jmp 0x404b05
mov dword [esi + 0x68], 3
and dword [esi + 0x48], 0
cmp dword [ebp - 0x10], 0
mov dword [esi + 0x44], 0x64
mov dword [esi + 0x10], edi
je 0x404b22
push dword [ebp - 0x10]
call fcn.00411fba
pop ecx
mov eax, dword [esi + 0xc]
test eax, eax
je 0x404b34
push eax
call fcn.00411fba
and dword [esi + 0xc], 0
pop ecx
lea eax, [edi + 1]
push eax
call fcn.0041117c
lea ecx, [edi + 1]
push ecx
push 0
push eax
mov dword [esi + 0xc], eax
call fcn.00417670
push edi
push dword [ebp - 0x18]
push dword [esi + 0xc]
call fcn.00414b90
add esp, 0x1c
push 0
mov eax, esi
call fcn.0040477e
cmp dword [ebp - 0x18], 0
je 0x404b73
push dword [ebp - 0x18]
call fcn.00411fba
pop ecx
mov dword [esi + 0x10], edi
pop edi
pop ebx
push str.__________
call fcn.004125f1
mov al, byte [ebp - 1]
pop ecx
pop esi
leave
ret

Function at 0x4050b6
Capabilities:
Hash data with md5

Disassembly:
xor ecx, ecx
mov byte [eax + 0x68], cl
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret
Function at 0x406079
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x10
mov eax, 0x42abb9
call fcn.004152d5
mov edi, ecx
xor esi, esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], esi
mov ecx, dword [edi + 0x14]
cmp ecx, esi
je 0x4060bb
mov eax, ecx
lea ebx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4060a1
sub eax, ebx
je 0x4060bb
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
cmp ebx, esi
jne 0x4060bd
jmp 0x4060f9
xor ebx, ebx
lea esi, [ebp - 0x1c]
call fcn.0040677a
push dword [edi + 0xc]
call fcn.0040663e
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [edi + 0xc]
push dword [edi + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x406109
call dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
je 0x4060f9
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea esi, [ebp - 0x1c]
call fcn.0040677a
xor eax, eax
call fcn.00415374
ret
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
push ebx
mov dword [edi + 8], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4060ee
cmp dword [edi + 8], 0
jbe 0x4060ee
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push dword [edi + 8]
mov esi, eax
call fcn.0041117c
push dword [edi + 8]
mov dword [edi + 4], eax
push esi
push eax
call fcn.00414b90
add esp, 0x10
test ebx, ebx
je 0x406152
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea esi, [ebp - 0x1c]
call fcn.0040677a
xor eax, eax
inc eax
jmp 0x406103
Function at 0x406c85
Capabilities:
Get common file path

Disassembly:
push 0x140
mov eax, 0x42aed0
call fcn.0041533e
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x113]
push ebx
push eax
mov byte [ebp - 0x114], bl
call fcn.00417670
add esp, 0xc
push 1
push 0x1a
lea eax, [ebp - 0x114]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x406d7e
push 0xf
pop esi
push 0x14
push str.config_systemprofile
lea ecx, [ebp - 0x130]
mov dword [ebp - 0x11c], esi
mov dword [ebp - 0x120], ebx
mov byte [ebp - 0x130], bl
call fcn.00402be2
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x114]
mov dword [ebp - 0x138], esi
mov dword [ebp - 0x13c], ebx
mov byte [ebp - 0x14c], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x406d10
sub eax, edx
push eax
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x14c]
call fcn.00402be2
cmp dword [ebp - 0x11c], 0x10
mov eax, dword [ebp - 0x130]
jae 0x406d41
lea eax, [ebp - 0x130]
push dword [ebp - 0x120]
push eax
lea eax, [ebp - 0x14c]
push eax
xor eax, eax
call fcn.004032e7
cmp eax, 0xffffffff
je 0x406d62
mov byte [0x43ace4], 1
push ebx
push 1
lea ecx, [ebp - 0x14c]
call fcn.00402b9e
push ebx
push 1
lea ecx, [ebp - 0x130]
call fcn.00402b9e
mov al, byte [0x43ace4]
call fcn.00415388
ret

Function at 0x406d89
Capabilities:
Enumerate processes

Disassembly:
push 0x244
mov eax, 0x42ad55
call fcn.0041533e
mov eax, dword [ebp + 8]
xor edi, edi
push 0x228
mov dword [ebp - 0x250], eax
lea eax, [ebp - 0x238]
push edi
push eax
mov esi, ecx
mov dword [ebp - 0x23c], edi
call fcn.00417670
add esp, 0xc
push edi
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
mov dword [ebp - 0x24c], ebx
cmp ebx, 0xffffffff
jne 0x406ddd
xor eax, eax
jmp 0x406e7e
mov dword [ebp - 0x23c], 0x22c
mov dword [ebp - 0x244], edi
mov dword [ebp - 0x248], edi
mov dword [ebp - 0x240], edi
push esi
lea esi, [ebp - 0x248]
mov dword [ebp - 4], edi
call fcn.0040663e
lea eax, [ebp - 0x23c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x406e6a
mov ecx, dword [ebp - 0x244]
lea eax, [ebp - 0x218]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x406e4c
cmp dx, di
je 0x406e48
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x406e4c
add eax, 4
add ecx, 4
cmp dx, di
jne 0x406e26
xor eax, eax
jmp 0x406e51
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
je 0x406e86
lea eax, [ebp - 0x23c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x406e1a
xor edi, edi
inc edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [ebp - 0x248]
call fcn.0040677a
mov eax, edi
call fcn.00415388
ret 4
push dword [ebp - 0x234]
push edi
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push dword [ebp - 0x250]
push 0xf01ff
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov ebx, eax
cmp ebx, edi
jne 0x406eb6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x24c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea esi, [ebp - 0x248]
call fcn.0040677a
mov eax, ebx
jmp 0x406e7e
Function at 0x407092
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
mov esi, eax
push edi
xor edi, edi
lea eax, [ebp - 0x24]
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x24], edi
test eax, eax
je 0x407104
push str.GetNativeSystemInfo
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x4070fa
lea ecx, [ebp - 0x24]
push ecx
call eax
jmp 0x407104
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp word [ebp - 0x24], 9
je 0x40711b
cmp word [ebp - 0x24], 6
je 0x40711b
mov dword [esi + 8], 0x432e90
jmp 0x407122
mov dword [esi + 8], 0x432e8c
call fcn.004067b4
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x4072a3
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [esi + 0x10]
push ebx
push edi
lea edx, [eax + 1]
xor ebx, ebx
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4072b2
sub eax, edx
lea edi, [eax + 1]
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x4072cf
push eax
call fcn.00411fba
pop ecx
mov dword [esi + 8], ebx
push edi
call fcn.0041117c
push edi
push ebx
push eax
mov dword [esi + 8], eax
call fcn.00417670
add esp, 0x10
xor eax, eax
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
cmp edi, ebx
jle 0x407330
mov ecx, dword [esi + 0x10]
mov cl, byte [ecx + eax]
cmp cl, 0x3a
je 0x407330
mov edx, dword [esi + 8]
mov byte [eax + edx], cl
mov ecx, dword [esi + 0x10]
mov dl, byte [ecx + eax]
cmp dl, 0x2e
jne 0x407310
inc dword [ebp - 8]
jmp 0x40732b
xor ebx, ebx
cmp dword [ebp - 4], 1
je 0x40732b
cmp dl, bl
jge 0x407328
mov dword [ebp - 4], 1
cmp dl, 0x39
jg 0x40732b
mov dword [ebp - 4], ebx
inc eax
cmp eax, edi
jl 0x4072f2
mov ecx, dword [esi + 8]
mov eax, ecx
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x407338
sub eax, edi
cmp eax, 1
ja 0x40734d
cmp ecx, ebx
je 0x4073c1
push ecx
jmp 0x4073b8
cmp dword [ebp - 8], 3
jne 0x40735c
cmp dword [ebp - 4], ebx
jne 0x40735c
mov al, 1
jmp 0x4073c3
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp eax, ebx
je 0x4073b0
mov edi, dword [eax + 0xc]
cmp dword [edi], ebx
je 0x4073b0
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x40737f
push eax
call fcn.00411fba
pop ecx
mov dword [esi + 8], ebx
mov eax, dword [edi]
push dword [eax]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov edi, eax
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x40738e
sub eax, ecx
inc eax
push eax
call fcn.0041117c
pop ecx
mov dword [esi + 8], eax
mov edx, edi
mov cl, byte [edx]
inc edx
mov byte [eax], cl
inc eax
cmp cl, bl
jne 0x4073a4
jmp 0x407358
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x4073c1
push eax
call fcn.00411fba
pop ecx
mov dword [esi + 8], ebx
xor al, al
pop edi
pop ebx
leave
ret