joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a6bf0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x549d08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x204
push ebx
push esi
mov esi, ecx
push edi
mov edi, 0x6ca218
or ecx, 0xffffffff
xor eax, eax
mov dword [ebp - 0x10], esp
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea ebx, [esi + 4]
mov edi, ecx
push 1
push edi
mov ecx, ebx
mov dword [ebp - 0x18], esi
mov byte [ebp - 0x11], 1
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], edi
call fcn.004a7b20
test al, al
je 0x4a6c72
mov eax, dword [ebx + 4]
mov ecx, edi
mov edi, eax
mov eax, ecx
mov esi, 0x6ca218
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 0x18]
mov dword [ebx + 8], eax
mov ebx, dword [ebx + 4]
mov byte [ebx + eax], 0
add ebx, eax
lea ecx, [ebp - 0x210]
push ecx
push 0x202
call sub.WS2_32.dll_WSAStartup
test eax, eax
je 0x4a6c9c
lea edx, [ebp - 0x30]
push 0x64be20
push edx
mov dword [ebp - 0x30], 4
call fcn.00512662
push 0
mov ebx, 2
push 1
push ebx
call sub.WS2_32.dll_socket
cmp eax, 0xffffffff
mov dword [esi + 0x58], eax
jne 0x4a6cc8
lea eax, [ebp - 0x2c]
push 0x64be20
push eax
mov dword [ebp - 0x2c], 1
call fcn.00512662
mov eax, dword [esi + 0x20]
test eax, eax
jne 0x4a6d43
mov ecx, dword [ebp + 0xc]
mov word [ebp - 0x40], bx
push ecx
call sub.WS2_32.dll_htons
mov edi, dword [ebp + 8]
mov word [ebp - 0x3e], ax
push edi
call sub.WS2_32.dll_inet_addr
cmp eax, 0xffffffff
mov dword [ebp - 0x3c], eax
jne 0x4a6d05
push edi
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x4a6d2e
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
mov dword [ebp - 0x3c], ecx
mov ecx, dword [esi + 0x58]
lea eax, [ebp - 0x40]
push 0x10
push eax
push ecx
call sub.WS2_32.dll_connect
cmp eax, 0xffffffff
jne 0x4a7049
lea edx, [ebp - 0x28]
push 0x64be20
push edx
mov dword [ebp - 0x28], ebx
call fcn.00512662
lea edx, [ebp - 0x20]
push 0x64be20
push edx
mov dword [ebp - 0x20], 3
call fcn.00512662
lea ecx, [ebp - 0x80]
call fcn.004af270
mov edx, dword [esi + 0x34]
lea eax, [esi + 0x48]
lea ecx, [esi + 0x38]
push eax
push ecx
push edx
sub esp, 0x10
lea eax, [esi + 0x24]
mov ecx, esp
mov dword [ebp - 0x1c], esp
push eax
mov byte [ebp - 4], 1
call fcn.004a78b0
mov ecx, dword [esi + 0x20]
push ecx
lea ecx, [ebp - 0x80]
call fcn.004af380
mov edx, dword [ebp + 0xc]
lea eax, [ebp + 0xf]
push edx
mov edx, dword [ebp + 8]
sub esp, 0x10
mov ecx, esp
mov dword [ebp + 0xc], esp
push eax
push edx
call fcn.004a79d0
mov eax, dword [esi + 0x58]
lea ecx, [ebp - 0x80]
push eax
call fcn.004af580
test eax, eax
jne 0x4a6db2
lea ecx, [ebp - 0x24]
push 0x64be20
push ecx
mov dword [ebp - 0x24], ebx
call fcn.00512662
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0
call fcn.004af2e0
jmp 0x4a7049
mov al, byte [ebp - 0x11]
mov ecx, dword [ebp - 0xc]
mov byte [esi + 0x14], al
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4a75c0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x549d48
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], esp
mov al, byte [ecx + 0x14]
mov dword [ebp - 4], 0
test al, al
jne 0x4a7660
lea ebx, [ecx + 4]
mov edi, 0x661d50
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 1
mov esi, ecx
mov ecx, ebx
push esi
mov dword [ebp - 0x18], esi
call fcn.004a7b20
test al, al
je 0x4a763a
mov edi, dword [ebx + 4]
mov ecx, esi
mov eax, ecx
mov esi, 0x661d50
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebx + 8], eax
mov ebx, dword [ebx + 4]
add ebx, eax
mov byte [ebx], 0
push 1
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call fcn.004aed00
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp + 0xc]
mov bl, 1
test eax, eax
mov byte [ebp - 4], bl
jne 0x4a7671
mov eax, 0x626df8
mov edx, dword [ebp + 0x10]
push 0
push edx
push eax
mov eax, dword [ecx + 0x58]
push eax
call sub.WS2_32.dll_send
cmp eax, 0xffffffff
jne 0x4a77b5
lea ecx, [ebp - 0x1c]
push 0x64be20
push ecx
mov dword [ebp - 0x1c], 1
call fcn.00512662
mov eax, dword [ebp - 0x20]
mov byte [ebp - 0x11], 0
dec eax
jne 0x4a76f4
mov edi, 0x661d64
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [ebp - 0x18]
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea ebx, [edx + 4]
mov esi, ecx
push 1
push esi
mov ecx, ebx
mov dword [ebp - 0x18], esi
call fcn.004a7b20
test al, al
je 0x4a76f4
mov edi, dword [ebx + 4]
mov ecx, esi
mov eax, ecx
mov esi, 0x661d64
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebx + 8], eax
mov ebx, dword [ebx + 4]
add ebx, eax
mov byte [ebx], 0
mov eax, 0x4a77b2
ret
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x4a77d8
mov al, byte [ecx - 1]
test al, al
je 0x4a77ce
cmp al, 0xff
je 0x4a77ce
dec al
mov byte [ecx - 1], al
jmp 0x4a77d8
dec ecx
push ecx
call fcn.00535101
add esp, 4
mov ecx, dword [ebp - 0xc]
pop edi
mov al, bl
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4a77f0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
push ebx
push esi
mov esi, ecx
mov eax, 0x10624dd3
mov ecx, dword [esp + 0x118]
xor bl, bl
imul ecx
sar edx, 6
mov eax, edx
mov dword [esp + 0xc], ecx
shr eax, 0x1f
add edx, eax
mov eax, dword [esi + 0x58]
lea ecx, [esp + 8]
mov dword [esp + 8], edx
push ecx
mov dword [esp + 0x18], eax
push 0
lea edx, [esp + 0x18]
push 0
inc eax
push edx
push eax
mov dword [esp + 0x24], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x4a7852
pop esi
xor al, al
pop ebx
add esp, 0x10c
ret 4
test eax, eax
jle 0x4a786a
mov ecx, dword [esi + 0x58]
lea eax, [esp + 0x10]
push eax
push ecx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
mov al, 1
jne 0x4a786c
mov al, bl
pop esi
pop ebx
add esp, 0x10c
ret 4
Function at 0x4af670
Capabilities:
Connect socket
Resolve dns

Disassembly:
sub esp, 0x10
push esi
mov esi, ecx
mov word [esp + 4], 2
mov ax, word [esi + 0x18]
push eax
call sub.WS2_32.dll_htons
mov word [esp + 6], ax
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x4af698
mov eax, 0x626fa4
push eax
call sub.WS2_32.dll_inet_addr
cmp eax, 0xffffffff
mov dword [esp + 8], eax
jne 0x4af6c8
mov esi, dword [esi + 0xc]
test esi, esi
jne 0x4af6b3
mov esi, 0x626fa4
push esi
call sub.WS2_32.dll_gethostbyname
test eax, eax
je 0x4af6ea
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
mov dword [esp + 8], eax
mov edx, dword [esp + 0x18]
lea ecx, [esp + 4]
push 0x10
push ecx
push edx
call sub.WS2_32.dll_connect
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop esi
add esp, 0x10
ret 4
xor eax, eax
pop esi
add esp, 0x10
ret 4
Function at 0x4b80c0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x54aac0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push ebp
mov ebp, ecx
push esi
push edi
lea ecx, [esp + 0x10]
call fcn.004b8490
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], 0
call fcn.004b8490
mov eax, dword [esp + 0x48]
lea ecx, [esp + 0x10]
push eax
mov byte [esp + 0x3c], 1
call fcn.004b8500
lea ecx, [esp + 0x10]
call fcn.00442880
cmp eax, 1
jae 0x4b8168
mov ebx, dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0
push 0
call ebx
mov edi, eax
test edi, edi
je 0x4b81d3
lea ecx, [edi + 1]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4b81d3
push esi
push edi
call ebx
push esi
lea ecx, [esp + 0x14]
call fcn.004b8500
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea ecx, [esp + 0x10]
call fcn.00442880
cmp eax, 1
jb 0x4b81d3
lea edx, [esp + 0x10]
mov ecx, ebp
push edx
call fcn.004b7f60
test eax, eax
je 0x4b81d3
lea eax, [esp + 0x10]
mov ecx, ebp
push eax
call fcn.004b8240
mov edi, dword [esp + 0x44]
xor esi, esi
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x24]
call fcn.004b8560
push edi
lea ecx, [esp + 0x24]
call fcn.004b8580
push esi
lea ecx, [esp + 0x24]
call fcn.004b8620
push str..tmp
lea ecx, [esp + 0x24]
call fcn.004b8580
lea edx, [esp + 0x20]
mov ecx, ebp
push edx
call fcn.004b7f40
test eax, eax
je 0x4b8209
inc esi
cmp esi, 0x7a0a1f00
jb 0x4b818a
lea ecx, [esp + 0x20]
mov byte [esp + 0x38], 0
call fcn.004b84b0
lea ecx, [esp + 0x10]
mov dword [esp + 0x38], 0xffffffff
call fcn.004b84b0
xor eax, eax
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 0xc
mov ecx, dword [esp + 0x40]
lea eax, [esp + 0x20]
push eax
call fcn.004b8560
lea ecx, [esp + 0x20]
mov byte [esp + 0x38], 0
call fcn.004b84b0
lea ecx, [esp + 0x10]
mov dword [esp + 0x38], 0xffffffff
call fcn.004b84b0
mov eax, 1
jmp 0x4b81f4
Function at 0x4b8990
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x54ab78
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0xc]
call fcn.004b8490
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0xc]
push eax
mov dword [esp + 0x28], 0
call fcn.004b8500
push 0
mov ecx, esi
call fcn.004b8910
mov ebx, dword [esp + 0x2c]
cmp ebx, 1
jb 0x4b8ac8
lea ecx, [esp + 0xc]
call fcn.00442880
cmp eax, 1
jae 0x4b8a17
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xffffffff
call fcn.004b84b0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc
mov eax, dword [esp + 0x34]
lea edi, [esi + 0xc]
test eax, eax
jne 0x4b8a64
push 0
lea ecx, [esp + 0x10]
call fcn.0044e520
push eax
push edi
mov ecx, 0x6d0274
call fcn.004b80c0
test eax, eax
jne 0x4b8a6c
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xffffffff
call fcn.004b84b0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc
push eax
mov ecx, edi
call fcn.004b8500
push edi
mov ecx, 0x6d0274
call fcn.004b8020
push 0
push 2
push 2
push 0
push 3
push 0xc0000000
mov ecx, edi
call fcn.00442870
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi], eax
je 0x4b8ac8
push 0
push ebx
push 0
push 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
test eax, eax
mov dword [esi + 4], eax
je 0x4b8ac8
push 0
push 0
push 0
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [esi + 8], eax
jne 0x4b8af8
push 1
mov ecx, esi
call fcn.004b8910
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xffffffff
call fcn.004b84b0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc
lea ecx, [esp + 0xc]
mov dword [esi + 0x1c], ebx
mov dword [esp + 0x24], 0xffffffff
call fcn.004b84b0
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc

Function at 0x4b9470
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
mov ecx, 0x41
xor eax, eax
push edi
lea edi, [esp + 4]
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp + 4]
push ecx
mov ecx, dword [esp + 0x110]
call fcn.004b8500
pop edi
add esp, 0x104
ret 4
Function at 0x4b9c40
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x4b9c73
push esi
call fcn.004beb40
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x4b9c6c
mov dword [esi + 0x14], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x4b9cf9
mov eax, dword [esi + 0x1b8]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4b9ce2
mov eax, dword [esi + 8]
test eax, eax
je 0x4b9c97
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b8]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x4b9cde
cmp eax, 2
je 0x4b9ce2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4b9c8a
cmp eax, 3
je 0x4b9cbd
cmp eax, 1
jne 0x4b9c8a
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 0x4b9c8a
mov edx, dword [esi + 0x144]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4b9c8a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.004b9d30
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4b9d19
mov ecx, dword [esi]
push esi
mov dword [ecx + 0x14], 0x15
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
call dword [ecx]
add esp, 4
push esi
call fcn.004b9d30
add esp, 4
pop esi
ret

Function at 0x4ea5c0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x4ea5cb
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x4ea6ce
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x627f90]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x627f90]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x627f90]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x627f90]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x627f90]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x627f90]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x627f90]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x627f90]
xor eax, edx
inc ecx
dec edi
jne 0x4ea5e6
pop edi
test esi, esi
je 0x4ea6f0
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x627f90]
xor eax, edx
inc ecx
dec esi
jne 0x4ea6d2
pop esi
pop ebx
not eax
ret
Function at 0x52a950
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x54c140
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov al, byte [esp + 0x3c]
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov byte [esp + 0x10], al
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov ecx, dword [esp + 0x44]
push ebx
mov dword [esp + 0x40], ebx
mov byte [esp + 0x28], al
mov edx, dword [ecx]
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], edx
call fcn.0051f8d7
mov eax, dword [0x6405a0]
lea ecx, [esp + 0x10]
push eax
push ebx
push ecx
lea ecx, [esp + 0x30]
call fcn.0051f809
lea edx, [esp + 0x20]
lea eax, [esp + 8]
push edx
push eax
mov ecx, esi
mov byte [esp + 0x44], 1
call fcn.0052b440
mov esi, dword [eax]
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x28]
cmp eax, ebx
mov dword [esp + 0xc], ecx
je 0x52a9f7
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x52a9ee
cmp al, 0xff
je 0x52a9ee
dec al
mov byte [ecx], al
jmp 0x52a9f7
push ecx
call fcn.00535101
add esp, 4
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], ebx
cmp eax, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
je 0x52aa28
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x52aa1f
cmp al, 0xff
je 0x52aa1f
dec al
mov byte [ecx], al
jmp 0x52aa28
push ecx
call fcn.00535101
add esp, 4
mov ecx, dword [esp + 0x34]
lea eax, [esi + 0x10]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret 4
Function at 0x5377f1
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x537829
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.0053583e
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00535816
jmp 0x537835
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x538fec
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 0x53902e
call fcn.0053f7e0
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x53902e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x539025
xor eax, eax
jmp 0x539036
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0053903c
pop edi
pop esi
pop ebx
ret 4

Function at 0x53fd10
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 0x53fd3e
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x53fd5c
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0053fc76
jmp 0x53fd5c
mov eax, dword [esi + 0x14]
test eax, eax
je 0x53fd5c
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0053fc76
test edi, edi
mov eax, edi
jne 0x53fd46
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x404b44
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov edi, dword [ebp + 8]
mov edi, dword [edi]
push edi
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
pop edi
mov esi, ecx
not esi
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov edx, dword [eax + 0xc]
lea eax, [eax + 0x10]
push dword [eax]
xor eax, eax
push edx
mov ecx, dword [edx + 0x30]
movzx ebx, byte [eax + edi]
movzx edx, byte [ecx + eax*2]
sub ebx, edx
cmp ebx, 0
je 0x404b8b
cmp ebx, 0x20
je 0x404b8b
cmp ebx, 0xffffffe0
je 0x404b8b
jne 0x404b94
add eax, 1
cmp esi, eax
je 0x404ba1
jne 0x404b70
pop edx
mov edx, dword [edx]
xor eax, eax
pop ebx
cmp ebx, edx
push ebx
je 0x404ba5
jne 0x404b6c
pop edx
mov eax, dword [edx + 0x18]
leave
ret 4

Function at 0x404bb9
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov ebx, dword [ebp + 8]
cmp ebx, 0
je 0x404bfe
mov eax, dword [ebx + 0x3c]
add eax, ebx
mov edx, dword [eax + 0x78]
add edx, ebx
mov ecx, dword [edx + 0x18]
mov eax, dword [edx + 0x20]
push ecx
push ecx
push eax
xor eax, eax
or ecx, 0xffffffff
mov edi, dword [ebp + 0xc]
mov edi, dword [edi]
repne scasb al, byte es:[edi]
not ecx
pop eax
push ecx
mov edi, dword [ebp + 0xc]
mov edi, dword [edi]
mov esi, dword [eax + ebx]
add esi, ebx
repe cmpsb byte [esi], byte es:[edi]
pop ecx
je 0x404c04
add eax, 4
pop esi
dec esi
push esi
jne 0x404be6
xor eax, eax
leave
ret 8
pop esi
pop ecx
sub ecx, esi
mov eax, dword [edx + 0x24]
lea eax, [eax + ecx*2]
movzx eax, word [eax + ebx]
mov ecx, dword [edx + 0x1c]
lea eax, [ecx + eax*4]
mov eax, dword [eax + ebx]
add eax, ebx
leave
ret 8
Function at 0x42d26b
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 8], 0
jge 0x42d28d
mov eax, 0xfffffffd
jmp 0x42d36d
mov ebx, dword [0x6eb804]
add ebx, 0x1c
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 0
je 0x42d33b
mov ebx, dword [0x6eb804]
add ebx, 4
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 6
jne 0x42d2dc
mov ebx, dword [0x6eb804]
add ebx, 8
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0xc]
cmp dword [ebx], 2
jne 0x42d2dc
mov eax, 1
jmp 0x42d2e1
mov eax, 0
test eax, eax
je 0x42d30d
mov eax, dword [ebp]
add eax, 0x80
mov ecx, 0x20
push dword [eax]
sub eax, 4
loop 0x42d2f6
mov eax, dword [ebp + 8]
call dword fs:[0xc0]
nop
nop
leave
ret 4
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0xffff
shr ecx, 0x10
and ecx, 0xffff
mov edx, dword [ebp]
lea edx, [edx + 8]
call dword fs:[0xc0]
nop
nop
nop
nop
nop
leave
ret 4
mov ebx, dword [0x6eb804]
add ebx, 0x1c
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
cmp dword [ebx], 0
jne 0x42d363
mov eax, dword [ebp + 8]
mov edx, dword [ebp]
lea edx, [edx + 8]
int 0x2e
nop
leave
ret 4
mov eax, 0
jmp 0x42d36d
mov esp, ebp
pop ebp
ret 4

Function at 0x42d574
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov dword [ebp + 8], 0x42d627
mov eax, dword [ebp + 8]
leave
sub esp, 0x60
pushfd
pushal
push dword [esp + 0x84]
push 0
push eax
fnsave dword [esp + 0x30]
wait
push dword fs:[0]
mov dword fs:[0], esp
mov eax, 1
jmp dword [esp + 0xc]

Function at 0x42dfa6
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
push 0
push dword [ebp - 4]
call fcn.0042d574
test eax, eax
je 0x42dfe9
xor eax, eax
xchg dword [ebp + 8], eax
cmp eax, 0xffff
jle 0x42dfe9
cmp word [eax], 0x5a4d
jne 0x42dfe9
add eax, dword [eax + 0x3c]
cmp dword [eax], 0x4550
jne 0x42dfe9
mov dword [ebp + 8], eax
mov dword [ebp - 4], 0
push 0
push dword [ebp - 4]
call fcn.0042d646
mov eax, dword [ebp + 8]
jmp 0x42e002
mov esp, ebp
pop ebp
ret 4
Function at 0x4aaa33
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
push 8
call fcn.00528dbb
add esp, 4
mov dword [ebp - 0xc], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
push 0x10
call fcn.00528dbb
add esp, 4
mov dword [ebp - 0x10], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
push 0x10
call fcn.00528dbb
add esp, 4
mov dword [ebp - 0x14], eax
mov ebx, eax
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0xc], 0
push 0
mov ebx, 0x52c680
call fcn.00528dc7
add esp, 4
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 3
je 0x4aaaec
mov eax, 0
jmp 0x4aac30
cmp dword [ebp + 0xc], 0
jne 0x4aab22
mov dword [ebp - 0x18], esp
mov eax, 0x57
call fcn.00528dcd
cmp dword [ebp - 0x18], esp
je 0x4aab1f
push 0xa0
push 0x40a37c0
push 6
call fcn.00528dc1
add esp, 0xc
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], esp
lea eax, [ebp - 8]
push eax
push 0x28
push dword [ebp - 4]
mov eax, 0x74
call fcn.00528dcd
cmp dword [ebp - 0x18], esp
je 0x4aab57
push 0xb6
push 0x40a37c0
push 6
call fcn.00528dc1
add esp, 0xc
mov dword [ebp - 0x18], esp
push dword [ebp - 0xc]
push str.SeDebugPrivilege
push 0x604bbc
mov eax, 0x75
call fcn.00528dcd
cmp dword [ebp - 0x18], esp
je 0x4aab8d
push 0xe0
push 0x40a37c0
push 6
call fcn.00528dc1
add esp, 0xc
mov ebx, dword [ebp - 0x10]
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x18]
mov dword [ebx], 1
mov ebx, dword [ebp - 0x10]
add ebx, 4
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x18]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x10]
add ebx, 8
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0xc]
add ebx, 4
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x18]
mov dword [ebx], eax
mov ebx, dword [ebp - 0x10]
add ebx, 0xc
mov dword [ebp - 0x18], ebx
mov ebx, dword [ebp - 0x18]
mov dword [ebx], 2
mov dword [ebp - 0x18], esp
mov eax, 0
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x14]
push 0x1c
push dword [ebp - 0x10]
push 0
push dword [ebp - 8]
mov eax, 0x76
call fcn.00528dcd
cmp dword [ebp - 0x18], esp
je 0x4aac2b
push 0x1e6
push 0x40a37c0
push 6
call fcn.00528dc1
add esp, 0xc
jmp 0x4aac30
push eax
mov ebx, dword [ebp - 0xc]
push ebx
call fcn.00528db5
add esp, 4
mov ebx, dword [ebp - 0x10]
push ebx
call fcn.00528db5
add esp, 4
mov ebx, dword [ebp - 0x14]
push ebx
call fcn.00528db5
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 8