joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40388a
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x403872
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x403890
movzx eax, ax
lea eax, [eax + eax*4]
or byte [ebx + 0x104c78c], 0
add dword [eax], eax
invalid
ror byte [ebp - 0x73747ffc], 0xc7
add al, 1
add dword [eax], eax
invalid
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x4038ee
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x4038d5
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x4038de
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x4038e8
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x4038ca
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x403854
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x40393b
dec eax
je 0x403932
sub eax, 3
je 0x403929
mov dword [ebp - 4], 0x40
jmp 0x403958
mov dword [ebp - 4], 4
jmp 0x40393e
mov dword [ebp - 4], 0x20
jmp 0x40393e
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x40398a
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x40390a
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.0040319b
lodsb al, byte [esi]
fcmovbe st(0), st(4)
jle 0x40397e
push dword [ebp + 0x14]
jne 0x403995
push 1
push esi
call edi
mov eax, esi
jmp 0x403996
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
rcr byte [edi + 0x5e], 0x5b
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403e91
Capabilities:
Contain obfuscated stackstrings

Disassembly:
or al, 8
jne 0x404021
and byte [ebp - 0x6b8], 0
and byte [ebp - 0x6b7], 0
mov byte [ebp - 0x6b6], 0x9b
and byte [ebp - 0x6b5], 0
mov byte [ebp - 0x6b4], 0x33
mov byte [ebp - 0x6b3], 0x16
mov byte [ebp - 0x6b2], 0xd
mov byte [ebp - 0x6b1], 0x10
mov byte [ebp - 0x6b0], 1
mov byte [ebp - 0x6af], 0x34
mov byte [ebp - 0x6ae], 0x16
mov byte [ebp - 0x6ad], 0xb
mov byte [ebp - 0x6ac], 7
mov byte [ebp - 0x6ab], 1
mov byte [ebp - 0x6aa], 0x17
mov byte [ebp - 0x6a9], 0x17
mov byte [ebp - 0x6a8], 0x29
mov byte [ebp - 0x6a7], 1
mov byte [ebp - 0x6a6], 9
mov byte [ebp - 0x6a5], 0xb
mov byte [ebp - 0x6a4], 0x16
mov byte [ebp - 0x6a3], 0x1d
mov byte [ebp - 0x6a2], 0x64
lea eax, [ebp - 0x6b8]
push eax
call fcn.004031ab
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]

Function at 0x404f0a
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov eax, dword [ebp - 0x338]
lea eax, [ebp + eax - 0x230]
push eax
call fcn.0040310c
add esp, 0xc
jmp 0x405113
Function at 0x4065b6
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov dword [ecx + 4], eax
mov dword [ecx + 0xc], eax
mov dword [ecx], vtable.CMD5.1.0
mov dword [ecx + 8], vtable.CMD5.0
mov dword [ecx + 0x20], eax
mov dword [ecx + 0x24], eax
mov eax, ecx
mov dword [ecx + 0x10], 0x67452301
mov dword [ecx + 0x14], 0xefcdab89
mov dword [ecx + 0x18], 0x98badcfe
mov dword [ecx + 0x1c], 0x10325476
ret

Function at 0x408395
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0xc
push ebx
push esi
push edi
mov edi, edx
mov esi, ecx
movzx ebx, word [esi + 2]
movzx eax, word [edi + 2]
cmp bx, ax
jae 0x4083b4
or eax, 0xffffffff
jmp 0x408490
jbe 0x4083be
xor eax, eax
inc eax
jmp 0x408490
movzx edx, word [edi + 4]
push ebp
movzx ebp, word [esi + 6]
cmp edx, 6
ja 0x408449
movzx eax, word [esi + 4]
mov ecx, ebp
sub ecx, eax
lea eax, [edx + 6]
add eax, ecx
cdq
push 7
pop ecx
idiv ecx
movzx eax, word [edi + 6]
imul eax, eax, 7
inc edx
movzx ecx, dx
add eax, ecx
mov dword [esp + 0x18], eax
add eax, 0xfffffff9
mov dword [esp + 0x14], eax
cmp ebx, 2
jne 0x40842a
movzx ecx, word [esi]
test cl, 3
jne 0x40842a
xor edx, edx
mov dword [esp + 0x10], 0x64
mov eax, ecx
div dword [esp + 0x10]
test edx, edx
jne 0x408425
mov eax, ecx
mov ecx, 0x190
div ecx
test edx, edx
jne 0x40842a
push 0xc
pop ecx
jmp 0x40842c
xor ecx, ecx
push 0xfffffffffffffff2
pop edx
lea eax, [ecx + ebx]
mov ecx, dword [esp + 0x14]
cmp ecx, dword [eax*4 + 0x435674]
push 0xfffffffffffffff9
pop ebx
cmovle edx, ebx
add edx, dword [esp + 0x18]
jmp 0x40844d
movzx edx, word [edi + 6]
movzx ecx, word [edi + 8]
imul eax, edx, 0x18
add ecx, eax
movzx eax, word [edi + 0xa]
imul ecx, ecx, 0x3c
add ecx, eax
movzx eax, bp
imul edx, ecx, 0x3c
imul ecx, eax, 0x18
movzx eax, word [esi + 8]
pop ebp
add ecx, eax
movzx eax, word [esi + 0xa]
imul ecx, ecx, 0x3c
add ecx, eax
movzx eax, word [esi + 0xc]
imul ecx, ecx, 0x3c
add ecx, eax
xor eax, eax
cmp ecx, edx
setg al
or esi, 0xffffffff
cmp ecx, edx
cmovl eax, esi
pop edi
pop esi
pop ebx
add esp, 0xc
ret

Function at 0x409833
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push esi
mov esi, 0x11c
lea eax, [ebp - 0x11c]
push esi
push 0
push eax
call fcn.00417080
add esp, 0xc
mov dword [ebp - 0x11c], esi
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x118], 6
pop esi
sbb eax, eax
inc eax
leave
ret
Function at 0x409874
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [ebp + 0x2c]
xorps xmm0, xmm0
mov dword [ebp - 0x34], eax
mov eax, 0x43a6e0
push esi
xor esi, esi
mov dword [ebp - 0x3c], 0x3c
cmp dword [ebp + 0x30], esi
mov dword [ebp - 0x38], 0x440
cmove eax, esi
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x28], edx
movups xmmword [ebp - 0x1c], xmm0
movzx eax, word [eax + 0x30]
mov dword [ebp - 0x20], eax
xor eax, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
pop esi
test eax, eax
je 0x4098de
mov edx, dword [ebp + 0x24]
mov ecx, dword [ebp - 4]
mov dword [edx], ecx
leave
ret

Function at 0x4098e0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push esi
push edi
push 0x44
pop edi
push edi
lea eax, [ebp - 0x5c]
mov esi, ecx
push 0
push eax
mov ebx, edx
mov dword [ebp - 4], esi
call fcn.00417080
mov dword [ebp - 0x5c], edi
lea eax, [ebp - 0x18]
push 0x10
xor edi, edi
push 0
inc edi
push eax
mov word [ebp - 0x2c], di
call fcn.00417080
and dword [ebp - 0x18], 0
add esp, 0x18
call fcn.00409833
test eax, eax
je 0x40994c
push dword [ebp + 0x14]
lea eax, [ebp - 0x18]
mov edx, ebx
push dword [ebp + 0x10]
push ecx
push eax
lea eax, [ebp - 0x5c]
mov ecx, esi
push eax
push dword [ebp + 8]
sub esp, 0x14
call fcn.00409874
add esp, 0x2c
jmp 0x4099f1
push esi
call fcn.0041c04e
push ebx
mov esi, eax
call fcn.0041c04e
add esi, eax
pop ecx
pop ecx
lea eax, [esi*2 + 4]
call fcn.0042b7d0
mov esi, esp
push dword [ebp - 4]
mov dword [ebp - 8], esi
push esi
call fcn.0041c074
push 0x43a568
push esi
call fcn.0041cfb8
push ebx
push esi
call fcn.0041cfb8
mov esi, dword [ebp + 8]
add esp, 0x18
xor ebx, ebx
test esi, esi
je 0x4099a5
cmp word [esi], bx
je 0x4099a5
push esi
call fcn.0041c04e
pop ecx
lea edi, [eax + 1]
lea eax, [edi + edi]
call fcn.0042b7d0
mov edi, esp
test esi, esi
je 0x4099be
push esi
push edi
call fcn.0041c074
pop ecx
pop ecx
jmp 0x4099c3
xor eax, eax
mov word [edi], ax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x5c]
push eax
xor eax, eax
test esi, esi
cmovne eax, edi
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 8]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp dword [ebp - 0x14], 0
je 0x4099f1
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x18]
lea esp, [ebp - 0x68]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a405
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2008
call fcn.0042ba40
push esi
push edi
push 0xc
mov edi, ecx
call fcn.004163bc
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
push dword [edi + 0xc]
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push str.R_03d
push eax
call fcn.0040a4f4
add esp, 0x10
lea ecx, [edi + 0x24]
call fcn.00407e15
push eax
push 0x1000
lea eax, [ebp - 0x2008]
mov esi, 0x43a728
push eax
push esi
lea ecx, [ebp - 8]
call fcn.00407e15
push eax
lea ecx, [edi + 0x20]
call fcn.00407e15
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x2008]
push esi
push eax
call fcn.0041c10e
mov esi, dword [ebp + 8]
pop ecx
pop ecx
test eax, eax
jne 0x40a498
mov eax, dword [ebp - 4]
mov edx, esi
add eax, 8
push eax
call fcn.004014be
pop ecx
jmp 0x40a4c0
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x2008]
push eax
add ecx, 8
call fcn.00407f81
push ecx
mov ecx, dword [ebp - 4]
mov edx, 0x43a730
push 0x43a5f4
lea ecx, [ecx + 8]
call fcn.004081ec
mov eax, dword [ebp - 4]
push esi
add eax, 4
push 0x43a734
push eax
call fcn.0040831f
mov eax, dword [ebp - 4]
lea ecx, [edi + 4]
add esp, 0xc
mov dword [eax], esi
lea eax, [ebp - 4]
push eax
call fcn.00407cf9
lea ecx, [ebp - 8]
call fcn.00407dfc
pop edi
pop esi
leave
ret 4

Function at 0x40f843
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push esi
push dword [esp + 8]
mov esi, ecx
push dword [esi + 0x478]
call fcn.0040f921
mov dword [esi + 0x478], eax
movzx eax, al
add eax, dword [esi + 0x47c]
imul eax, eax, 0x8088405
inc eax
mov dword [esi + 0x47c], eax
shr eax, 0x18
push eax
push dword [esi + 0x480]
call fcn.0040f921
mov dword [esi + 0x480], eax
pop esi
ret 4

Function at 0x410524
Capabilities:
Hash data using djb2

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, 0x43544c
push edi
cmp dword [eax], 0
mov edi, 0x1505
cmovne esi, dword [eax]
movzx eax, word [esi]
test ax, ax
je 0x41055e
push eax
call fcn.0041d432
imul edi, edi, 0x21
lea esi, [esi + 2]
pop ecx
movzx ecx, ax
add edi, ecx
movzx ecx, word [esi]
mov eax, ecx
test cx, cx
jne 0x410542
mov eax, edi
pop edi
pop esi
ret 4
Function at 0x4155a7
Capabilities:
Create process on windows
Get common file path
Query or enumerate registry value

Disassembly:
mov eax, 0x2644
call fcn.0042ba40
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, ecx
xor ebp, ebp
push ebp
push 0x3eb
push dword [ebx + 0xc]
call edi
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call esi
push ebp
push 0x3ed
push dword [ebx + 0xc]
call edi
push eax
call esi
mov esi, 0x104
mov dword [esp + 0x14], ebp
cmp dword [ebx + 0x868], ebp
jne 0x41566e
lea eax, [ebx + 0x42c]
push eax
lea eax, [esp + 0x654]
push str.SoftwareMicrosoftWindowsCurrentVersionApp_Paths_s.exe
push eax
call fcn.0040977b
add esp, 0xc
lea eax, [esp + 0x14]
push eax
push 0x20019
push ebp
lea eax, [esp + 0x65c]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41566e
lea eax, [esp + 0x18]
mov dword [esp + 0x18], esi
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x24]
push eax
push ebp
push ebp
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x415664
mov edx, dword [ebx + 4]
lea ecx, [esp + 0x20]
add edx, 0x18
push ebp
call fcn.0040564d
pop ecx
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edi, [ebx + 0x636]
cmp word [edi], bp
je 0x41576e
push 0x20a
lea eax, [esp + 0x24]
push ebp
push eax
call fcn.00417080
add esp, 0xc
lea eax, [esp + 0x20]
push esi
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x230]
call 0x404308
lea ecx, [esp + 0x230]
call fcn.00403dda
lea eax, [esp + 0x230]
push edi
push eax
call fcn.0041cfb8
mov eax, dword [ebx + 4]
lea ecx, [esp + 0x28]
push ebp
push dword [eax + 8]
call fcn.00415b67
add esp, 0x10
cmp eax, 1
jne 0x4156ef
push 0x8918
call fcn.004163bc
pop ecx
mov ecx, eax
call fcn.0040c9b3
jmp 0x415701
push 0x320
call fcn.004163bc
pop ecx
mov ecx, eax
call fcn.0040da4c
mov esi, eax
test esi, esi
je 0x41576e
mov eax, dword [ebx + 4]
mov ecx, esi
mov edx, dword [esi]
push ebp
push dword [eax + 8]
lea eax, [esp + 0x28]
push ebp
push eax
call dword [edx + 4]
test eax, eax
jne 0x415766
mov eax, dword [esi]
lea ecx, [esp + 0x230]
push ebp
push ebp
push ebp
push ebp
push ebp
push ecx
push edi
mov ecx, esi
call dword [eax + 0x1c]
test eax, eax
jne 0x415766
lea eax, [esp + 0x440]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 1
lea eax, [esp + 0x444]
push eax
push ebp
lea eax, [esp + 0x23c]
push eax
push ebp
push ebp
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2644
ret
Function at 0x415e3b
Capabilities:
Create process on windows
Get common file path

Disassembly:
sub esp, 0xc50
lea eax, [esp + 0x214]
push ebx
push ebp
push esi
push edi
push eax
lea eax, [esp + 0xa58]
mov edi, edx
push eax
lea edx, [esp + 0x850]
mov ebx, ecx
call fcn.00405612
pop ecx
lea ecx, [esp + 0x228]
call fcn.0040733b
mov ebp, dword [esp + 0xc68]
pop ecx
mov ecx, dword [ebp + 4]
and ecx, 0x10
test eax, eax
je 0x415ec8
test ecx, ecx
jne 0x415e90
xor eax, eax
inc eax
jmp 0x415fbc
lea eax, [esp + 0x430]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 1
lea eax, [esp + 0x434]
xor esi, esi
push eax
push esi
push ebx
push esi
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor ecx, ecx
cmp eax, 0x20
setg cl
mov eax, ecx
jmp 0x415fbc
push 0x104
lea eax, [esp + 0x1c]
xor esi, esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push ecx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x644]
call fcn.0040474f
pop ecx
pop ecx
test eax, eax
je 0x415f07
lea eax, [esp + 0x63c]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.0041c074
pop ecx
pop ecx
lea eax, [esp + 0x18]
push eax
push str.ZIP_SOURCE
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push edi
lea ecx, [esp + 0x18]
call fcn.00407de7
cmp dword [ebp + 0x222], esi
jbe 0x415f41
lea eax, [esp + 0x18]
push eax
push edi
lea eax, [esp + 0x1c]
push str._s__ZIP_SOURCE__s_
push eax
call fcn.0040831f
add esp, 0x10
mov eax, dword [0x43fdcc]
test eax, eax
je 0x415f4c
mov esi, dword [eax]
push esi
push ecx
lea eax, [esp + 0x850]
push eax
lea ecx, [esp + 0x20]
call fcn.00407e15
mov edx, eax
mov ecx, ebx
call fcn.004099fc
add esp, 0xc
mov esi, eax
cmp dword [esp + 0xc68], 0
je 0x415fa5
mov edi, 0x103
mov dword [esp + 0x10], edi
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
neg eax
push 0x3e8
sbb eax, eax
and dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esp + 0x10], edi
je 0x415f80
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x14]
call fcn.00407dfc
xor eax, eax
test esi, esi
setne al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc50
ret

Function at 0x415fc7
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [ebp - 0x700]
inc eax
mov dword [ebp - 0x700], eax
cmp dword [ebp - 0x700], 5
jge 0x4045f1
mov eax, dword [ebp - 0x700]
movsx eax, byte [ebp + eax - 0x394]
movsx ecx, byte [ebp - 0x24]
xor eax, ecx
mov ecx, dword [ebp - 0x700]
mov byte [ebp + ecx - 0x394], al
mov eax, dword [ebp - 0x700]
movsx eax, byte [ebp + eax - 0x394]
not eax
mov ecx, dword [ebp - 0x700]
mov byte [ebp + ecx - 0x394], al
jmp 0x40459b
call fcn.0040319b
invalid
push esi
push str.INSTALL.INI
push 0
push str.GARDETEMP
push str.INSTALL
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp eax, 1
jne 0x415fe8
pop esi
ret
mov ecx, esi
pop esi
jmp 0x4045d8
Function at 0x426ede
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00426b9e
Function at 0x402211
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov eax, 0x1008c
call fcn.00410440
sub esp, eax
mov eax, dword [ebp + 0x10]
mov word [ebp - 0x1004c], ax
mov dword [ebp - 0x10068], 0x4a5320
mov dword [ebp - 0x10064], 0x4a5f34
lea eax, [ebp - 0x10060]
lea ebx, [ebp - 0x18]
mov dword [eax], ebx
mov edx, 0x402391
mov dword [eax + 4], edx
mov dword [eax + 8], esp
lea eax, [ebp - 0x10080]
mov dword [esp], eax
call fcn.00410e60
lea eax, [ebp - 0x49]
mov ecx, eax
call fcn.0045ee20
lea eax, [ebp - 0x49]
mov dword [esp + 4], eax
mov dword [esp], 0x4aa502
mov dword [ebp - 0x1007c], 1
mov ecx, dword [ebp + 8]
call fcn.00490960
sub esp, 8
lea eax, [ebp - 0x49]
mov ecx, eax
call fcn.0045ee50
lea eax, [ebp - 0x10048]
mov dword [esp + 4], eax
mov dword [esp], 0x7fff
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov dword [ebp - 0x1007c], 2
call eax
sub esp, 8
lea eax, [ebp - 0x10048]
mov dword [esp], eax
mov dword [ebp - 0x1007c], 2
mov ecx, dword [ebp + 8]
call fcn.0048f310
sub esp, 4
mov dword [esp], 0x4aa598
mov ecx, dword [ebp + 8]
call fcn.00491110
sub esp, 4
movzx edx, word [ebp - 0x1004c]
lea eax, [ebp - 0x48]
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00401f81
lea eax, [ebp - 0x48]
mov dword [esp], eax
mov dword [ebp - 0x1007c], 3
mov ecx, dword [ebp + 8]
call fcn.00491160
sub esp, 4
lea eax, [ebp - 0x48]
mov ecx, eax
call fcn.00490fc0
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
mov dword [ebp - 0x1007c], 2
mov ecx, dword [ebp + 8]
call fcn.00491160
sub esp, 4
lea eax, [ebp - 0x30]
mov edx, dword [ebp + 8]
mov dword [esp], edx
mov ecx, eax
call fcn.00490a00
sub esp, 4
lea eax, [ebp - 0x30]
mov dword [esp], eax
mov dword [ebp - 0x1007c], 4
call fcn.00401f10
mov byte [ebp - 0x10084], al
lea eax, [ebp - 0x30]
mov ecx, eax
call fcn.00490fc0
cmp byte [ebp - 0x10084], 0
je 0x402448
jmp 0x4022c1
nop
lea eax, [ebp - 0x10080]
mov dword [esp], eax
call fcn.00410ef0
mov eax, dword [ebp + 8]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x40f830
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
lea ebx, [esp + 0x24]
mov dword [esp], str.Mingw_w64_runtime_failure:_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
jmp fcn.0040f890

Function at 0x40f890
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x4b53a0]
test esi, esi
jle 0x40f97d
mov edi, dword [0x4b53a4]
xor ebx, ebx
lea edx, [edi + 4]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x40f8c4
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x40f976
add ebx, 1
add edx, 0xc
cmp ebx, esi
jne 0x40f8b0
mov dword [esp], eax
mov ebx, eax
call fcn.004101b0
test eax, eax
mov edi, eax
je 0x40f9ba
lea ebx, [esi + esi*2]
mov esi, dword [0x4b53a4]
shl ebx, 2
add esi, ebx
mov dword [esi + 8], eax
mov dword [esi], 0
call fcn.004102e0
add eax, dword [edi + 0xc]
mov dword [esi + 4], eax
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov eax, dword [0x4b53a4]
mov eax, dword [eax + ebx + 4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x40f99a
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x40f96f
sub eax, 0x40
and eax, 0xffffffbf
je 0x40f96f
mov eax, dword [esp + 0x20]
add ebx, dword [0x4b53a4]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
je 0x40f984
add dword [0x4b53a0], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
xor esi, esi
jmp 0x40f8ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.0040f830
mov eax, dword [0x4b53a4]
mov eax, dword [eax + ebx + 4]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.0040f830
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.0040f830
lea esi, [esi]
Function at 0x40fe20
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x4b53b8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x4b53b0]
sub esp, 4
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
je 0x40fe75
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x40fe6e
test esi, esi
je 0x40fe6e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x40fe50
mov dword [esp], 0x4b53b8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x4107d0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
sub esp, 4
mov eax, ebx
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x410810
Capabilities:
Set thread local storage value

Disassembly:
sub esp, 0x1c
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
je 0x410835
xor eax, eax
add esp, 0x1c
ret
add esp, 0x1c
jmp dword [sym.imp.KERNEL32.dll_GetLastError]

Function at 0x410ba0
Capabilities:
Allocate thread local storage

Disassembly:
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x410bd4
mov dword [esp + 4], 0
mov dword [esp], eax
mov dword [0x4b53d4], eax
call fcn.0041b8a0
test eax, eax
sete al
movzx eax, al
mov dword [0x4a8020], eax
add esp, 0x1c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x410bc3