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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov eax, dword [0x5f931c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
sub eax, 0x80
je 0x4de033
sub eax, 0x40
je 0x4de02b
sub eax, 0x40
je 0x4de023
mov eax, 0xfffff800
jmp 0x4de129
mov dword [edi], 0xe
jmp 0x4de039
mov dword [edi], 0xc
jmp 0x4de039
mov dword [edi], 0xa
push esi
push dword [ebp + 0x10]
lea eax, [ebp - 0x11c]
push ecx
lea esi, [edi + 8]
push eax
mov dword [edi + 4], esi
call fcn.004de136
add esp, 0xc
test eax, eax
jne 0x4de128
mov edx, dword [ebp - 0x11c]
shl edx, 4
add edx, dword [ebp - 0x118]
push 4
pop ecx
mov eax, dword [edx]
add edx, ecx
mov dword [esi], eax
add esi, ecx
mov eax, dword [edx]
add edx, ecx
mov dword [esi], eax
add esi, ecx
mov eax, dword [edx]
add edx, ecx
mov dword [esi], eax
add esi, ecx
mov eax, dword [edx]
sub edx, 0x1c
mov dword [esi], eax
add esi, ecx
mov edi, dword [edi]
dec edi
test edi, edi
jle 0x4de0f6
push ebx
mov ebx, ecx
movzx eax, byte [edx + 3]
push 4
movzx ecx, byte [eax + 0x601dd0]
movzx eax, byte [edx + 2]
mov ecx, dword [ecx*4 + 0x603bd0]
movzx eax, byte [eax + 0x601dd0]
xor ecx, dword [eax*4 + 0x6037d0]
movzx eax, byte [edx + 1]
movzx eax, byte [eax + 0x601dd0]
xor ecx, dword [eax*4 + 0x6033d0]
movzx eax, byte [edx]
movzx eax, byte [eax + 0x601dd0]
xor ecx, dword [eax*4 + 0x602fd0]
mov dword [esi], ecx
pop ecx
add esi, ecx
add edx, ecx
sub ebx, 1
jne 0x4de098
dec edi
sub edx, 0x20
test edi, edi
jg 0x4de096
pop ebx
mov eax, dword [edx]
add edx, ecx
mov dword [esi], eax
add esi, ecx
push 0x118
push 0
mov eax, dword [edx]
mov dword [esi], eax
mov eax, dword [edx + ecx]
mov dword [esi + ecx], eax
mov eax, dword [edx + ecx + 4]
mov dword [esi + ecx + 4], eax
lea eax, [ebp - 0x11c]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.005364e2
leave
ret
Function at 0x4dec26
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0x10]
push edi
test edx, edx
je 0x4dec62
mov edi, dword [ebp + 8]
xor eax, eax
mov byte [edx], al
test edi, edi
je 0x4dec62
push esi
mov esi, eax
cmp dword [ebp + 0xc], eax
jle 0x4dec59
movzx ecx, byte [esi + edi]
movzx eax, al
xor ecx, eax
inc esi
mov al, byte [ecx + 0x57a638]
cmp esi, dword [ebp + 0xc]
jl 0x4dec44
xor al, 0x55
mov byte [edx], al
mov al, 1
pop esi
jmp 0x4dec64
xor al, al
pop edi
pop ebp
ret

Function at 0x4dec67
Capabilities:
Get user security identifier

Disassembly:
push 0x30
mov eax, 0x558474
call fcn.0053655e
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x28]
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x34], eax
mov edi, 0x80
push ebx
xor eax, eax
mov dword [ebp - 0x3c], esi
push edi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.004116df
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], edi
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
lea eax, [ebp - 0x30]
mov dword [ebp - 4], ebx
push eax
push dword [ebp - 0x34]
mov dword [ebp - 0x30], edi
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov esi, eax
test esi, esi
jne 0x4ded23
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x4ded21
cmp dword [ebp - 0x30], edi
ja 0x4ded26
cmp dword [ebp - 0x2c], 0x80
jbe 0x4decfa
push ebx
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x28]
call fcn.0041dae5
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x2c]
push ecx
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x30]
push eax
push dword [ebp - 0x34]
push dword [ebp - 0x3c]
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov esi, eax
test esi, esi
setne bl
lea ecx, [ebp - 0x28]
call fcn.0040257a
mov al, bl
call fcn.00536508
ret

Function at 0x4def4a
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x5f931c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
xor eax, eax
push esi
mov esi, dword [ebp + 0xc]
push edi
push 8
pop ecx
lea edi, [ebp - 0x24]
mov dword [ebp - 0x84], 0x10
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x4defc4
push 0x44
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.004dec67
add esp, 0xc
test al, al
je 0x4defc4
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.004debc1
pop ecx
pop ecx
push eax
mov ecx, ebx
call fcn.004035f6
lea ecx, [ebp - 0x80]
call fcn.0040257a
and dword [esi], 0
push esi
call fcn.004defe6
pop ecx
test al, al
jne 0x4defd5
and dword [esi], 0
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005364e2
leave
ret
Function at 0x4df1dd
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x4df204
push esi
or esi, 0xffffffff
cmp edi, 0xffffffff
cmovb esi, edi
push esi
push ebx
call sub.ADVAPI32.dll_SystemFunction036
add ebx, esi
sub edi, esi
jne 0x4df1ed
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4df208
Capabilities:
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push 0x30
mov eax, 0x558521
call fcn.0053655e
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x38]
mov edi, dword [ebp + 0xc]
xor ebx, ebx
push 0xf0000000
push 1
push ebx
push ebx
push eax
mov dword [ebp - 0x34], esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x4df251
mov dword [esi + 0x10], ebx
mov ecx, esi
push ebx
mov dword [esi + 0x14], 0xf
push 0x14
mov byte [esi], bl
call fcn.00406b8a
jmp 0x4df323
lea eax, [ebp - 0x30]
push eax
push ebx
push ebx
push 0x8004
push dword [ebp - 0x38]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x4df236
cmp dword [edi + 0x14], 0x10
mov eax, dword [edi + 0x10]
jb 0x4df274
mov edi, dword [edi]
push ebx
push eax
push edi
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x4df236
mov edi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
lea eax, [ebp - 0x3c]
push 4
pop ecx
push ebx
push eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], ebx
push eax
push ecx
push dword [ebp - 0x30]
mov dword [ebp - 0x3c], ecx
call edi
test eax, eax
je 0x4df236
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], bl
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x28]
inc eax
mov dword [ebp - 4], ebx
push eax
call fcn.004083fa
push ebx
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x28]
call fcn.0040847e
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x2c]
push ebx
push ecx
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push 2
push dword [ebp - 0x30]
call edi
mov dword [esi + 0x10], ebx
mov ecx, esi
test eax, eax
jne 0x4df303
push ebx
mov dword [esi + 0x14], 0xf
push 0x14
mov byte [esi], bl
call fcn.00406b8a
jmp 0x4df31b
cmp dword [ebp - 0x2c], 0x14
jne 0x4df2f0
mov byte [ebp - 0x34], bl
lea eax, [ebp - 0x28]
push dword [ebp - 0x34]
mov dword [esi + 0x14], ebx
push eax
call fcn.0040247d
lea ecx, [ebp - 0x28]
call fcn.00402554
mov eax, esi
call fcn.00536508
ret

Function at 0x4dfd10
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
and dword [eax], 0
and dword [eax + 4], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
pop ebp
ret
Function at 0x4e104e
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
and dword [eax], 0
and dword [eax + 4], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
mov dword [eax + 0x18], 0xc3d2e1f0
pop ebp
ret

Function at 0x4e13fc
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x5f931c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x28], eax
push edi
cmp esi, 0x40
jle 0x4e1444
push dword [ebp + 0x14]
lea ecx, [ebp - 0x24]
push ecx
push esi
push eax
call fcn.004e1124
add esp, 0x10
cmp dword [ebp + 0x14], 0
push 0x20
pop esi
push 0x1c
pop eax
cmovne esi, eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x28], eax
push 0x40
lea eax, [ebx + 0x68]
push 0x36
push eax
call sub.VCRUNTIME140.dll_memset
push 0x40
lea edi, [ebx + 0xa8]
push 0x5c
push edi
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
test esi, esi
jle 0x4e147b
mov ecx, dword [ebp - 0x28]
mov al, byte [ecx]
xor byte [edi - 0x40], al
mov al, byte [ecx]
xor byte [edi], al
inc ecx
inc edi
sub esi, 1
jne 0x4e146b
push dword [ebp + 0x14]
push ebx
call fcn.004e39b7
push 0x40
lea eax, [ebx + 0x68]
push eax
push ebx
call fcn.004e3a7d
push 0x20
lea eax, [ebp - 0x24]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov ecx, dword [ebp - 4]
add esp, 0x20
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.005364e2
leave
ret
Function at 0x4e39b7
Capabilities:
Hash data using sha224
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov edx, 0x367cd507
mov ecx, dword [ebp + 0xc]
push ebx
push esi
and dword [eax], 0
mov ebx, 0xa54ff53a
and dword [eax + 4], 0
mov esi, 0x9b05688c
test ecx, ecx
mov dword [ebp - 4], 0xc1059ed8
mov eax, 0xbb67ae85
mov ecx, 0x5be0cd19
cmovne eax, edx
mov edx, 0x3070dd17
mov dword [ebp - 8], eax
mov eax, 0x3c6ef372
cmovne eax, edx
mov edx, 0x510e527f
mov dword [ebp - 0xc], eax
mov eax, 0xf70e5939
cmovne ebx, eax
mov eax, 0x64f98fa7
push edi
mov edi, 0x1f83d9ab
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp + 0xc]
cmovne edi, eax
mov eax, 0x68581511
cmovne esi, eax
mov eax, 0xffc00b31
cmovne edx, eax
test ebx, ebx
mov ebx, dword [ebp + 8]
mov eax, 0xbefa4fa4
cmovne ecx, eax
mov eax, 0x6a09e667
cmovne eax, dword [ebp - 4]
mov dword [ebx + 8], eax
mov eax, dword [ebp - 8]
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebx + 0x10], eax
mov eax, dword [ebp + 8]
mov ebx, dword [ebp - 0x10]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x18], edx
mov dword [eax + 0x1c], esi
mov dword [eax + 0x20], edi
pop edi
mov dword [eax + 0x24], ecx
mov ecx, dword [ebp + 0xc]
pop esi
mov dword [eax + 0xe8], ecx
pop ebx
leave
ret
Function at 0x519fbb
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
push 0
push 0x14
and dword [edi], 0
call fcn.00511540
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x519fdc
push 7
pop eax
jmp 0x51a053
cmp dword [0x5f87dc], 0
push ebx
mov ebx, dword [ebp + 0x10]
je 0x51a02a
mov eax, dword [0x5f88e0]
test eax, eax
je 0x519ffc
push 0xc8
call eax
pop ecx
jmp 0x519ffe
xor eax, eax
test eax, eax
jne 0x51a02a
mov eax, dword [ebp + 0xc]
mov dword [esi + 8], eax
lea eax, [esi + 4]
push eax
push 0
push esi
push 0x51a0ae
push 0
push 0
mov dword [esi + 0xc], ebx
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x51a037
push 0x14
push 0
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp dword [esi + 8], 0
jne 0x51a04e
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push ebx
mov dword [esi + 4], eax
call dword [ebp + 0xc]
pop ecx
mov dword [esi + 0x10], eax
mov dword [edi], esi
xor eax, eax
pop ebx
pop edi
pop esi
pop ebp
ret
Function at 0x532db8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov edi, dword [ebp + 0x10]
mov edx, dword [esi + 8]
test edi, edi
jle 0x532de8
mov eax, dword [ebp + 0xc]
mov ecx, dword [esi]
mov al, byte [ebx + eax]
xor byte [ecx + edx], al
lea eax, [edx + 1]
xor edx, edx
cmp eax, dword [esi + 4]
cmovl edx, eax
inc ebx
cmp ebx, edi
jl 0x532dcd
add dword [esi + 0xc], edi
pop edi
mov dword [esi + 8], edx
pop esi
pop ebx
pop ebp
ret

Function at 0x503b8c
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x505076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x505298], eax
mov dword [0x505220], 0x503376
mov dword [0x50521c], 2
jmp 0x503bbc
mov dword [0x505224], 0
mov dword [0x505228], 0
mov dword [0x505218], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x50522c], eax
mov dword [0x505240], 0x50408c
mov dword [0x505238], 0xf
mov dword [0x50506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x505230], eax
mov dword [0x505244], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x505234], eax
push 0x505218
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x50506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.wait
push str.aroka
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x505290], eax
push 5
push dword [0x505290]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x505290]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x503c8f
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x503cbc
push 0x505248
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x503c8f
mov eax, dword [0x505250]
jmp 0x503cc9
call 0x502c0d
ret
Function at 0x401150
Capabilities:
Get http content length

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx + 8]
sub esp, 8
test eax, eax
je 0x40118c
push 0
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 4]
push edx
push 0x20000005
push eax
mov dword [ebp - 4], 0
mov dword [ebp - 8], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
neg eax
sbb eax, eax
and eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x401ba0
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x640e98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x401c72
cmp dword [esi + 0x24], 0
jne 0x401be4
mov eax, dword [ebp + 8]
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi], eax
jmp 0x401c6f
mov eax, dword [esi + 0x2c]
sub eax, 0x10
push edi
push eax
call fcn.004011f0
add eax, 0x10
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 1
push 1
push 0x66e128
lea ecx, [ebp - 0x10]
call fcn.00401710
mov eax, dword [esi + 0x30]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.00401710
mov edi, dword [ebp - 0x10]
cmp dword [edi - 4], 1
jle 0x401c38
mov ecx, dword [edi - 0xc]
push ecx
lea ecx, [ebp - 0x10]
call fcn.00401370
mov edi, dword [ebp - 0x10]
mov edx, dword [ebp + 8]
push 0
push 0
push edi
push 3
push edx
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi], eax
mov dword [ebp - 4], 0xffffffff
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
pop edi
test edx, edx
jg 0x401c6f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esi], 0
setne cl
movzx edx, cl
push edx
mov ecx, esi
call fcn.00401000
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x401ca0
Capabilities:
Connect to http server

Disassembly:
push ebp
mov ebp, esp
push esi
push str.RSDN_HTTP_Reader
mov esi, ecx
call fcn.00401ba0
test al, al
je 0x401cf6
cmp dword [esi + 4], 0
jne 0x401cfa
mov eax, dword [ebp + 8]
test eax, eax
jne 0x401ccd
mov eax, dword [esi + 0x14]
test eax, eax
jne 0x401ccd
mov eax, 0x66e12c
movzx ecx, byte [esi + 0x10]
mov edx, dword [esi]
push 1
push 0
push 3
neg ecx
push 0
sbb ecx, ecx
push 0
and ecx, 0x16b
add ecx, 0x50
push ecx
push eax
push edx
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [esi + 4], eax
cmp dword [esi + 4], 0
setne al
movzx ecx, al
push ecx
mov ecx, esi
call fcn.00401000
pop esi
pop ebp
ret 4

Function at 0x402370
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov esi, dword [eax + 0xc]
push edi
mov edi, ecx
test esi, esi
je 0x4023af
cmp esi, dword [edi + 0x24]
jne 0x4023af
mov edx, dword [esi]
mov eax, dword [edx + 0x10]
mov ecx, esi
call eax
test eax, eax
je 0x4023a8
mov edx, dword [esi]
mov eax, dword [edx + 0x10]
mov ecx, esi
call eax
mov ecx, dword [eax + 4]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [edi + 0x24], 0
pop edi
xor eax, eax
pop esi
pop ebp
ret 4
Function at 0x4023c0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov ecx, dword [esi + 0x24]
push edi
mov edi, dword [ebp + 8]
cmp edi, ecx
je 0x40249a
test ecx, ecx
je 0x4023fb
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
test eax, eax
je 0x4023fb
mov ecx, dword [esi + 0x24]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
mov ecx, dword [esi + 0x24]
mov edx, dword [eax]
mov edx, dword [edx + 4]
push ecx
mov ecx, eax
call edx
mov ecx, dword [esi + 0x24]
push ebx
test ecx, ecx
je 0x40241d
test edi, edi
je 0x40241d
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
mov ebx, eax
mov eax, dword [edi]
mov edx, dword [eax + 0x10]
mov ecx, edi
call edx
cmp ebx, eax
je 0x402469
mov ecx, dword [esi + 0x24]
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
test ecx, ecx
je 0x402447
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
test eax, eax
je 0x402447
mov ecx, dword [esi + 0x24]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
mov eax, dword [eax + 4]
push 0
push eax
call ebx
test edi, edi
je 0x402488
mov edx, dword [edi]
mov eax, dword [edx + 0x10]
mov ecx, edi
call eax
test eax, eax
je 0x402469
mov edx, dword [edi]
mov eax, dword [edx + 0x10]
mov ecx, edi
call eax
mov ecx, dword [eax + 4]
push 5
push ecx
call ebx
mov edx, dword [edi]
mov eax, dword [edx + 0x10]
mov ecx, edi
call eax
test eax, eax
je 0x402488
mov edx, dword [edi]
mov eax, dword [edx + 0x10]
mov ecx, edi
call eax
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx]
push edi
call eax
mov eax, dword [esi + 0x24]
mov edx, dword [esi]
mov edx, dword [edx + 0x20]
push eax
push edi
mov ecx, esi
call edx
mov dword [esi + 0x24], edi
pop ebx
pop edi
pop esi
pop ebp
ret 4
Function at 0x402d40
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x640fa1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x208
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov edi, ecx
mov dword [ebp - 0x10], ebx
test esi, esi
jne 0x402d84
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
mov ecx, esi
call edx
test eax, eax
je 0x402db8
mov eax, dword [esi]
mov edx, dword [eax + 0xc]
lea ecx, [ebp - 0x14]
push ecx
mov ecx, esi
call edx
mov dword [ebp - 4], 0
mov ebx, 1
mov dword [ebp - 0x10], ebx
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
mov byte [ebp + 0xb], bl
je 0x402dbc
mov byte [ebp + 0xb], 0
or ecx, 0xffffffff
mov dword [ebp - 4], ecx
test bl, 1
je 0x402dec
and ebx, 0xfffffffe
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x402dec
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [ebp + 0xb], 0
je 0x402e21
mov edx, dword [esi]
mov eax, dword [edx + 0x10]
mov ecx, esi
call eax
mov edx, dword [eax + 4]
push 0xff
lea ecx, [ebp - 0x214]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [esi]
mov edx, dword [eax + 4]
lea ecx, [ebp - 0x214]
push ecx
mov ecx, esi
call edx
mov edx, dword [ebp + 0x10]
mov ecx, dword [edi + 0x20]
mov eax, dword [ecx]
mov eax, dword [eax]
push edx
mov edx, dword [ebp + 0xc]
push edx
push esi
call eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4036b0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
xor eax, eax
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov eax, 2
mov word [ebx], ax
movzx eax, word [ecx]
push esi
xor esi, esi
push edi
test ax, ax
je 0x4036f1
jmp 0x4036e0
cmp ax, 0x3a
je 0x4036f1
movzx eax, word [ecx + esi*2 + 2]
inc esi
test ax, ax
jne 0x4036e0
xor edx, edx
cmp dx, word [ecx + esi*2]
jne 0x4036fe
mov eax, dword [ebp + 0xc]
jmp 0x40370b
lea ecx, [ecx + esi*2 + 2]
push ecx
call fcn.006115cb
add esp, 4
push eax
call dword [sym.imp.WS2_32.dll_htons]
lea edx, [esi + 1]
push edx
mov word [ebx + 2], ax
call fcn.00611521
mov edi, eax
add esp, 4
xor eax, eax
test edi, edi
je 0x403777
mov byte [edi + esi], al
test esi, esi
jle 0x40373f
mov ecx, dword [ebp + 8]
mov dl, byte [ecx + eax*2]
mov byte [edi + eax], dl
inc eax
cmp eax, esi
jl 0x403731
push edi
call dword [sym.imp.WS2_32.dll_inet_addr]
push edi
mov dword [ebx + 4], eax
call fcn.0061056f
add esp, 4
cmp dword [ebx + 4], 0xffffffff
jne 0x403772
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x403768
pop edi
pop esi
pop ebx
pop ebp
ret
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
mov dword [ebx + 4], edx
mov eax, 1
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x403b80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x403b9b
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x403bd2
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x403bce
jmp 0x403bc0
cmp esi, eax
jae 0x403bd2
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x403bc0
cmp esi, eax
jb 0x403bd9
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x404180
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Get socket status
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_closesocket]
push esi
push edi
mov esi, ecx
or edi, 0xffffffff
mov dword [ebp - 8], 0xfa0
cmp dword [esi + 0x48], edi
je 0x4041b1
call fcn.00403690
mov eax, dword [esi + 0x48]
push eax
call ebx
mov dword [esi + 0x48], edi
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 0x48], eax
cmp eax, edi
je 0x4041ee
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea ecx, [ebp - 8]
push ecx
push 0x1006
push 0xffff
push eax
call edi
test eax, eax
je 0x4041f7
mov edx, dword [esi + 0x48]
push edx
call ebx
mov dword [esi + 0x48], 0xffffffff
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0x48]
push 4
lea eax, [ebp - 8]
push eax
push 0x1005
push 0xffff
push ecx
call edi
test eax, eax
jne 0x4041e1
mov ecx, dword [esi + 0x48]
mov edi, dword [sym.imp.WS2_32.dll_ioctlsocket]
lea eax, [ebp - 4]
push eax
push 0x8004667e
push ecx
xor bl, bl
mov dword [ebp - 4], 1
call edi
test eax, eax
jne 0x4041ee
mov eax, dword [esi + 0x48]
push 0x10
lea edx, [esi + 0x4c]
push edx
push eax
call dword [sym.imp.WS2_32.dll_connect]
mov ecx, dword [esi + 0x48]
lea edx, [ebp - 0x10]
push edx
push 0
mov dword [ebp - 0x110], ecx
lea ecx, [ebp - 0x114]
push ecx
mov eax, 1
push 0
push eax
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 0
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x40427d
mov bl, 1
mov eax, dword [esi + 0x48]
lea edx, [ebp - 4]
push edx
push 0x8004667e
push eax
mov dword [ebp - 4], 0
call edi
test eax, eax
jne 0x4041ee
pop edi
test bl, bl
pop esi
setne al
pop ebx
mov esp, ebp
pop ebp
ret