joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5266e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x570a10
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.00568f2c
mov edi, dword [eax + 0xc]
xor ebp, ebp
cmp edi, ebp
jne 0x526713
xor al, al
jmp 0x52683f
mov ebx, dword [esp + 0x28]
push 0xf1
and ebx, 0xffff
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, ebp
jne 0x526735
xor al, al
jmp 0x52683f
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebp
jne 0x526748
xor al, al
jmp 0x52683f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp edi, ebp
jne 0x52675c
xor al, al
jmp 0x52683f
xor eax, eax
xor ecx, ecx
mov ax, word [edi + 2]
push ebp
mov dword [esi + 0x14], eax
xor eax, eax
mov ax, word [edi + 4]
mov edx, dword [esi + 0x14]
mov dword [esi + 0x18], eax
mov cx, word [edi + 6]
push ecx
push 5
push eax
push edx
lea ecx, [esi + 0x1c]
call fcn.0055d200
test eax, eax
jne 0x526790
xor al, al
jmp 0x52683f
mov eax, dword [esi + 0x34]
push eax
mov eax, dword [esi + 0x20]
push eax
call dword [sym.imp.COMCTL32.dll_ImageList_SetBkColor]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], 0x90c794
mov dword [esp + 0x20], ebp
call fcn.00568f2c
mov eax, dword [eax + 0xc]
push ebx
push eax
call dword [sym.imp.USER32.dll_LoadBitmapA]
push eax
lea ecx, [esp + 0x14]
call fcn.00565d81
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + 0x20]
lea eax, [esp + 0x10]
push 0xc0c0c0
neg eax
sbb eax, eax
and eax, edx
push eax
push ecx
call dword [sym.imp.COMCTL32.dll_ImageList_AddMasked]
lea ecx, [esp + 0x10]
call fcn.00565dd8
xor ecx, ecx
lea ebx, [edi + 8]
cmp word [edi + 6], cx
jbe 0x526824
mov ax, word [ebx]
test ax, ax
je 0x526816
mov edx, ecx
inc ecx
mov dword [esp + 0x28], ecx
push eax
push edx
mov ecx, esi
call fcn.00526860
mov ecx, dword [esp + 0x28]
xor edx, edx
inc ebp
mov dx, word [edi + 6]
add ebx, 2
cmp ebp, edx
jl 0x5267fa
mov dword [esp + 0x10], method.CGdiObject.virtual_0
lea ecx, [esp + 0x10]
mov dword [esp + 0x20], 1
call fcn.00565dd8
mov al, 1
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 4

Function at 0x526d60
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x50
push esi
mov esi, dword [esp + 0x58]
push edi
push eax
mov ecx, esi
call fcn.00567431
mov edi, eax
mov eax, dword [esi]
test eax, eax
je 0x526da6
lea ecx, [esp + 8]
push 0x50
push ecx
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea edx, [esp + 8]
push edx
call fcn.0053c4c8
mov ecx, dword [esp + 0x68]
add esp, 4
pop edi
mov dword [ecx], eax
pop esi
add esp, 0x50
ret 0xc
mov edx, dword [esp + 0x64]
lea ecx, [esp + 8]
mov eax, dword [edx]
push eax
push 0xa07230
push ecx
call fcn.0053e950
add esp, 0xc
lea edx, [esp + 8]
push edx
push edi
call dword [sym.imp.USER32.dll_SetWindowTextA]
pop edi
pop esi
add esp, 0x50
ret 0xc
Function at 0x52d960
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5710b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov al, byte [esp + 0x30]
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov byte [esp + 8], al
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov edx, dword [esp + 0x38]
lea ecx, [esp + 8]
push ecx
push edx
mov ecx, esi
mov dword [esp + 0x38], ebx
call fcn.0052da70
test al, al
jne 0x52d9f7
mov ecx, dword [esp + 0xc]
cmp ecx, ebx
je 0x52d9e2
mov al, byte [ecx - 1]
cmp al, bl
je 0x52d9d8
cmp al, 0xff
je 0x52d9d8
dec al
pop esi
mov byte [ecx - 1], al
xor al, al
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret 4
dec ecx
push ecx
call fcn.0055eccb
add esp, 4
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret 4
lea eax, [esp + 8]
lea ecx, [esp + 0x18]
push eax
call fcn.00528aa0
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], 1
push ecx
mov ecx, esi
call fcn.0052e7f0
mov ecx, eax
call fcn.00528fc0
lea ecx, [esp + 0x18]
mov byte [esp + 0x30], bl
call fcn.00528df0
mov ecx, dword [esp + 0xc]
cmp ecx, ebx
je 0x52da4e
mov al, byte [ecx - 1]
cmp al, bl
je 0x52da44
cmp al, 0xff
je 0x52da44
dec al
mov byte [ecx - 1], al
jmp 0x52da4e
dec ecx
push ecx
call fcn.0055eccb
add esp, 4
mov ecx, dword [esp + 0x28]
pop esi
mov al, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 4
Function at 0x52e5d0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x57119b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov al, byte [esp + 0x34]
push ebx
xor ebx, ebx
push esi
push edi
mov esi, ecx
mov byte [esp + 0x18], al
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x34], ebx
mov edx, dword [ecx]
mov dword [esp + 0xc], edx
mov edx, dword [0x90c80c]
mov eax, dword [ecx + 4]
push edx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x40]
mov ecx, dword [ecx + 8]
push ebx
mov dword [esp + 0x1c], ecx
push eax
lea ecx, [esp + 0x24]
call fcn.0052a750
mov eax, dword [esi + 0x5c]
mov ecx, dword [esp + 0x44]
add esi, 0x30
cmp eax, ebx
mov dword [esp + 0x28], ecx
je 0x52e6c5
mov eax, dword [esi + 0x1c]
mov edx, dword [esi + 0x18]
cmp eax, edx
je 0x52e6c5
lea ecx, [eax + 0x20]
cmp ecx, edx
jne 0x52e685
mov dword [esp + 0x40], eax
mov dword [esi + 0x1c], ecx
mov dword [esp + 0x3c], eax
cmp eax, ebx
mov byte [esp + 0x34], 2
je 0x52e678
lea edx, [esp + 0xc]
mov ecx, eax
push edx
call fcn.00531710
mov ecx, esi
mov byte [esp + 0x34], bl
call fcn.00530160
jmp 0x52e6f0
mov edi, eax
mov dword [esi + 0x1c], ecx
mov dword [esp + 0x40], edi
mov dword [esp + 0x3c], edi
cmp edi, ebx
mov byte [esp + 0x34], 3
je 0x52e6f0
mov ecx, dword [esp + 0xc]
mov dword [eax], ecx
mov edx, dword [esp + 0x10]
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x18]
mov dword [eax + 8], ecx
push edx
lea ecx, [edi + 0xc]
call fcn.0052ecb0
mov eax, dword [esp + 0x28]
mov dword [edi + 0x1c], eax
jmp 0x52e6f0
mov ecx, esi
call fcn.00530160
mov ecx, dword [esi + 0x1c]
mov dword [esp + 0x40], ecx
mov dword [esp + 0x3c], ecx
lea edx, [ecx + 0x20]
mov dword [esi + 0x1c], edx
cmp ecx, ebx
mov byte [esp + 0x34], 1
je 0x52e6f0
lea eax, [esp + 0xc]
push eax
call fcn.00531710
mov edx, dword [esi + 0x2c]
mov eax, dword [esp + 0x1c]
inc edx
cmp eax, ebx
mov dword [esi + 0x2c], edx
je 0x52e71c
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x52e713
cmp al, 0xff
je 0x52e713
dec al
mov byte [ecx], al
jmp 0x52e71c
push ecx
call fcn.0055eccb
add esp, 4
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x2c
ret 0xc
Function at 0x533860
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5713e3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.0055a82b
lea ecx, [esp + 0xc]
mov dword [esi + 0x34], eax
call fcn.0055a400
mov edi, dword [0xa62ff0]
lea ecx, [esp + 8]
call fcn.0055a400
mov eax, dword [edi + 4]
cmp eax, 0xffffffff
jae 0x5338ac
inc eax
mov dword [edi + 4], eax
lea ecx, [esp + 8]
call fcn.0055a49c
lea ecx, [esp + 0xc]
call fcn.0055a49c
lea eax, [esi + 4]
lea ecx, [esi + 0x14]
lea edx, [esi + 0x18]
mov dword [esi + 0xc], eax
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x20], edx
lea eax, [esi + 8]
lea ecx, [esi + 0x24]
lea edx, [esi + 0x28]
xor edi, edi
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
mov dword [esi + 0x10], eax
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x30], edx
mov dword [eax], edi
mov eax, dword [esi + 0x20]
push edi
push edi
mov dword [eax], edi
mov ecx, dword [esi + 0x30]
push edi
mov dword [esp + 0x28], edi
mov dword [ecx], edi
mov ecx, esi
call fcn.00533970
mov cl, byte [esp + 0x24]
xor eax, eax
test cl, 1
mov dword [esi], 0x90c82c
jne 0x53391a
mov eax, 4
test cl, 2
jne 0x533921
or al, 2
mov edx, dword [esi + 0xc]
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], 0x20
mov dword [esi + 0x44], eax
mov dword [edx], edi
mov eax, dword [esi + 0x1c]
mov dword [eax], edi
mov ecx, dword [esi + 0x2c]
mov dword [ecx], edi
mov edx, dword [esi + 0x10]
mov dword [edx], edi
mov eax, dword [esi + 0x20]
mov dword [eax], edi
mov ecx, dword [esi + 0x30]
mov eax, esi
mov dword [ecx], edi
mov ecx, dword [esp + 0x14]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret 4

Function at 0x5362a0
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push ebx
push ebp
xor ecx, ecx
mov ebp, dword [eax + 4]
mov eax, dword [eax]
mov dword [esp + 8], 0
mov cx, word [eax + 0x14]
cmp word [eax + 6], 0
lea ebx, [ecx + eax + 0x18]
jbe 0x536361
push esi
push edi
add ebx, 0x10
cmp dword [ebx], 0
jne 0x53630b
mov edx, dword [esp + 0x1c]
mov esi, dword [edx + 0x38]
test esi, esi
jle 0x53633f
mov eax, dword [ebx - 4]
push 4
push 0x1000
add eax, ebp
push esi
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, esi
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebx - 8], edi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
jmp 0x53633f
mov ecx, dword [ebx - 4]
mov eax, dword [ebx]
push 4
push 0x1000
add ecx, ebp
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [ebx]
mov esi, dword [ebx + 4]
mov edi, dword [esp + 0x18]
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 ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
inc eax
add ebx, 0x28
mov edx, dword [ecx]
xor ecx, ecx
mov dword [esp + 0x10], eax
mov cx, word [edx + 6]
cmp eax, ecx
jl 0x5362ce
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x536370
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
xor ecx, ecx
push ebp
mov ebx, dword [eax]
xor ebp, ebp
mov cx, word [ebx + 0x14]
cmp word [ebx + 6], bp
lea eax, [ecx + ebx + 0x18]
jbe 0x536429
push esi
push edi
lea edi, [eax + 0x24]
mov eax, dword [edi]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x5363c7
mov edx, dword [edi - 0x14]
mov eax, dword [edi - 0x1c]
push 0x4000
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x53640f
lea ecx, [edx + ecx*2]
test eax, 0x4000000
lea edx, [esi + ecx*2]
mov esi, dword [edx*4 + 0xa07804]
je 0x5363e1
or esi, 0x200
mov edx, dword [edi - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x5363fc
test al, 0x40
je 0x5363f3
mov ecx, dword [ebx + 0x20]
jmp 0x5363fa
test al, 0x80
je 0x53640f
mov ecx, dword [ebx + 0x24]
test ecx, ecx
jbe 0x53640f
mov ecx, dword [edi - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [esp + 0x18]
xor eax, eax
inc ebp
add edi, 0x28
mov ebx, dword [edx]
mov ax, word [ebx + 6]
cmp ebp, eax
jl 0x536394
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x536830
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0xa0
push ebx
push ebp
mov ebp, dword [esp + 0xac]
push esi
push edi
push ebp
call sub.RASAPI32.dll_RasHangUpA
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x28
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0xa0
call esi
mov edi, eax
call esi
sub eax, edi
cmp eax, 0xbb8
jae 0x536896
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push ebp
call sub.RASAPI32.dll_RasGetConnectStatusA
cmp eax, 6
je 0x536896
push 0
call ebx
call esi
sub eax, edi
cmp eax, 0xbb8
jb 0x536877
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret
Function at 0x537430
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x537479
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x5378f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x571780
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.005374a0
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.00537520
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.00537520
lea ecx, [esi + 0xc]
call fcn.0055eeec
lea ecx, [esi + 0x10]
call fcn.0055eeec
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.00538ab0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.00538ab0
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.00538ab0
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.0055ef61
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.0055ef61
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x561341
Capabilities:
Get graphical window text

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

Function at 0x562b38
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 0x562b7a
call fcn.00568f2c
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x562b7a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x562b71
xor eax, eax
jmp 0x562b82
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00562b88
pop edi
pop esi
pop ebx
ret 4

Function at 0x56945c
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 0x56948a
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x5694a8
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.005693c2
jmp 0x5694a8
mov eax, dword [esi + 0x14]
test eax, eax
je 0x5694a8
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.005693c2
test edi, edi
mov eax, edi
jne 0x569492
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x403e4a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x403e59
pop dword [ebp - 0x18]
mov eax, 0x403e59
sub dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0x6856220
add dword [ebp - 0x28], 0x47cce32b
mov dword [ebp - 0x24], 0x8019aa2
sub dword [ebp - 0x24], 0xd5ce4e5d
mov dword [ebp - 0x20], 0x20758ced
add dword [ebp - 0x20], 0x2bd6b741
mov dword [ebp - 0x1c], 0xd2ca8cd2
add dword [ebp - 0x1c], 0x2d35732e
lea eax, [ebp - 0x28]
push eax
mov eax, 0x20021e0e
add eax, 0xe03e5256
add eax, dword [ebp - 0x18]
call dword [eax]
mov dword [ebp - 0x28], 0x496a11f6
add dword [ebp - 0x28], 0x2b085760
mov dword [ebp - 0x24], 0xa79ae5b5
add dword [ebp - 0x24], 0x99d17bc0
mov dword [ebp - 0x20], 0xbe47bc4a
sub dword [ebp - 0x20], 0x5ad84fde
mov dword [ebp - 0x1c], 0xbd0cc62c
add dword [ebp - 0x1c], 0x42f339d4
lea ebx, [ebp - 0x28]
push ebx
push eax
mov eax, 0xdeb61bc3
sub eax, 0xde75ab1b
add eax, dword [ebp - 0x18]
call dword [eax]
push 0x40
push 0x1000
push 0x3c9b9
push 0
call eax
mov ecx, 0x5f71
xor edi, edi
add edi, eax
mov ebx, 0xd134c2b9
add ebx, 0x2f0c3d47
add ebx, dword [ebp - 0x18]
mov edx, 0x24de96e4
sub dword [ebp - 0x10], 0xaa3fb292
mov esi, dword [ebx]
sub dword [ebp - 8], 0x490ad78b
xor esi, edx
xor dword [ebp - 4], 0xcf3219b2
mov dword [edi], esi
add edi, 0x224bff90
sub edi, 0x224bff8c
add ebx, 0x10269aa1
add ebx, 0xefd96563
loop 0x403f6c
add eax, 0x17097
mov ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x18]
call ebx
leave
ret
Function at 0x402090
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x408064
call sym._EnterCriticalSection_4
mov ebx, dword [0x40805c]
sub esp, 4
test ebx, ebx
je 0x4020db
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x4020d4
test esi, esi
je 0x4020d4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4020b0
mov dword [esp], 0x408064
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x4022c0
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x402310
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x4023e8
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x40234e
cmp eax, 4
jne 0x402370
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x40235e
cmp edx, 4
je 0x40235e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.004022c0
Function at 0x401000
Capabilities:
Resolve function by hash

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
lea eax, [ebp - 0x214]
mov ebx, 0x61
add bx, 0x14
mov word [eax], bx
sub bx, 2
mov word [eax + 2], bx
sub bx, 0xe
mov word [eax + 4], bx
add bx, 0xd
mov word [eax + 6], bx
sub bx, 0x3f
mov word [eax + 8], bx
dec bx
mov word [eax + 0xa], bx
sub bx, 4
mov word [eax + 0xc], bx
add bx, 0x36
mov word [eax + 0xe], bx
add bx, 8
mov word [eax + 0x10], bx
mov word [eax + 0x12], bx
mov word [eax + 0x14], 0
push eax
push 0xec0e4ea4
push 0x6a4abc5b
call fcn.00401238
call eax
lea eax, [ebp - 0x214]
mov ebx, 0x61
add bx, 0x12
mov word [eax], bx
sub bx, 0xb
mov word [eax + 2], bx
sub bx, 3
mov word [eax + 4], bx
add bx, 7
mov word [eax + 6], bx
mov word [eax + 8], bx
sub bx, 0x39
mov word [eax + 0xa], bx
dec bx
mov word [eax + 0xc], bx
sub bx, 4
mov word [eax + 0xe], bx
add bx, 0x36
mov word [eax + 0x10], bx
add bx, 8
mov word [eax + 0x12], bx
mov word [eax + 0x14], bx
mov word [eax + 0x16], 0
push eax
push 0xec0e4ea4
push 0x6a4abc5b
call fcn.00401238
call eax
lea eax, [ebp - 0x214]
mov ebx, 0x61
add bx, 0x12
mov word [eax], bx
sub bx, 0xb
mov word [eax + 2], bx
add bx, 4
mov word [eax + 4], bx
add bx, 0xb
mov word [eax + 6], bx
sub bx, 0x16
mov word [eax + 8], bx
add bx, 0xf
mov word [eax + 0xa], bx
sub bx, 7
mov word [eax + 0xc], bx
sub bx, 0x3b
mov word [eax + 0xe], bx
add bx, 0x36
mov word [eax + 0x10], bx
add bx, 8
mov word [eax + 0x12], bx
mov word [eax + 0x14], bx
mov word [eax + 0x16], 0
push eax
push 0xec0e4ea4
push 0x6a4abc5b
call fcn.00401238
call eax
lea eax, [ebp - 0x214]
mov ebx, 0x61
add bx, 0x16
mov word [eax], bx
sub bx, 0xe
mov word [eax + 2], bx
add bx, 5
mov word [eax + 4], bx
sub bx, 5
mov word [eax + 6], bx
add bx, 5
mov word [eax + 8], bx
sub bx, 9
mov word [eax + 0xa], bx
add bx, 0xf
mov word [eax + 0xc], bx
sub bx, 0x46
mov word [eax + 0xe], bx
add bx, 0x36
mov word [eax + 0x10], bx
add bx, 8
mov word [eax + 0x12], bx
mov word [eax + 0x14], bx
mov word [eax + 0x16], 0
push eax
push 0xec0e4ea4
push 0x6a4abc5b
call fcn.00401238
call eax
push 0x1204a
push 0xd289
push 0x4017d5
call fcn.0040132c
test eax, eax
je 0x401223
mov dword [ebp - 0xa], eax
mov dword [ebp - 6], 0x1204a
push dword [ebp - 0xa]
call fcn.004013c5
push 0xa80eecae
push 0x6a4abc5b
call fcn.00401238
call eax
push dword [ebp - 0xa]
push 0
push eax
push 0x10c32616
push 0x6a4abc5b
call fcn.00401238
call eax
push 0
push 0x73e2d87e
push 0x6a4abc5b
call fcn.00401238
call eax
leave
ret
Function at 0x401238
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, 3
shl eax, 4
mov eax, dword fs:[eax]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
xor edx, edx
mov eax, dword [ebp - 0x18]
movzx ecx, word [eax + 0x24]
test ecx, ecx
je 0x401315
mov esi, dword [eax + 0x28]
xor eax, eax
cld
lodsb al, byte [esi]
ror edx, 0xd
add edx, eax
cmp al, 0x61
jl 0x401279
sub edx, 0x20
dec ecx
test ecx, ecx
jne 0x40126c
cmp edx, dword [ebp + 8]
jne 0x401315
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
add eax, dword [eax + 0x3c]
mov eax, dword [eax + 0x78]
add eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x20]
add eax, dword [ebp - 0x14]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x24]
add eax, dword [ebp - 0x14]
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x18]
cmp eax, dword [ebp - 4]
je 0x40130f
xor edx, edx
mov esi, dword [ebp - 0xc]
mov esi, dword [esi]
add esi, dword [ebp - 0x14]
xor eax, eax
cld
lodsb al, byte [esi]
test al, al
je 0x4012e2
ror edx, 0xd
add edx, eax
jmp 0x4012d6
cmp edx, dword [ebp + 0xc]
jne 0x401302
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x1c]
add eax, dword [ebp - 0x14]
mov ebx, dword [ebp - 8]
movzx ebx, word [ebx]
lea eax, [eax + ebx*4]
mov eax, dword [eax]
add eax, dword [ebp - 0x14]
leave
ret 8
add dword [ebp - 0xc], 4
add dword [ebp - 8], 2
inc dword [ebp - 4]
jmp 0x4012be
xor eax, eax
leave
ret 8
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
cmp eax, dword [ebp - 0x1c]
jne 0x401255
xor eax, eax
leave
ret 8

Function at 0x40132c
Capabilities:
Resolve function by hash

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], 0
push 0xa80eecae
push 0x6a4abc5b
call fcn.00401238
call eax
push dword [ebp + 0x10]
push 0
push eax
push 0x3e192526
push 0x3cfa685d
call fcn.00401238
call eax
test eax, eax
je 0x4013be
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp + 0x10]
push dword [ebp - 8]
push 2
push 0xfd46a728
push 0x3cfa685d
call fcn.00401238
call eax
test eax, eax
je 0x4013be
push 0xa80eecae
push 0x6a4abc5b
call fcn.00401238
call eax
push dword [ebp - 8]
push 0
push eax
push 0x10c32616
push 0x6a4abc5b
call fcn.00401238
call eax
mov dword [ebp - 8], 0
mov eax, dword [ebp - 8]
leave
ret 0xc