joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001fc00
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x1001fc3a
mov eax, dword [0x1004fa30]
mov dword [esi + 4], 0
mov dword [esi], 0
test eax, eax
je 0x1001fc2d
dec dword [eax + 0x36c]
push ecx
call edi
add esp, 4
mov dword [esi + 8], 0
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x1001fc6b
mov eax, dword [0x1004fa30]
mov dword [esi + 0x10], 0
mov dword [esi + 0xc], 0
test eax, eax
je 0x1001fc5e
dec dword [eax + 0x36c]
push ecx
call edi
add esp, 4
mov dword [esi + 0x14], 0
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x1001fc9c
mov eax, dword [0x1004fa30]
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
test eax, eax
je 0x1001fc8f
dec dword [eax + 0x36c]
push ecx
call edi
add esp, 4
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x1001fce9
mov eax, dword [0x1004fa30]
mov dword [esi + 0x40], 0
mov dword [esi + 0x3c], 0
test eax, eax
je 0x1001fcdc
dec dword [eax + 0x36c]
push ecx
call edi
add esp, 4
mov dword [esi + 0x44], 0
mov ecx, dword [esi + 0x50]
test ecx, ecx
je 0x1001fd1a
mov eax, dword [0x1004fa30]
mov dword [esi + 0x4c], 0
mov dword [esi + 0x48], 0
test eax, eax
je 0x1001fd0d
dec dword [eax + 0x36c]
push ecx
call edi
add esp, 4
mov dword [esi + 0x50], 0
mov ecx, dword [esi + 0x5c]
test ecx, ecx
je 0x1001fd4b
mov eax, dword [0x1004fa30]
mov dword [esi + 0x58], 0
mov dword [esi + 0x54], 0
test eax, eax
je 0x1001fd3e
dec dword [eax + 0x36c]
push ecx
call edi
add esp, 4
mov dword [esi + 0x5c], 0
pop edi
lea ecx, [esi + 0x78]
pop esi
jmp fcn.100223e0
Function at 0x100361f0
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1004f040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
mov esi, ecx
push ebx
push 4
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
mov dword [ebp - 0x24], edi
cmp edi, 0xffffffff
je 0x10036303
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x100362fc
mov ebx, 1
nop dword [eax]
cmp dword [ebp - 0x20], 0x10
jb 0x100362bf
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x14], eax
jne 0x100362bf
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x18], eax
je 0x100362bf
mov edx, dword [esi]
test edx, edx
jne 0x10036288
push 0x200
push edx
push dword [0x1004fa3c]
mov dword [esi + 4], 0x80
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0x100362e4
lea edi, [esi + 8]
jmp 0x100362b2
mov eax, dword [esi + 4]
lea edi, [esi + 8]
cmp dword [edi], eax
jb 0x100362b2
add eax, eax
mov dword [esi + 4], eax
shl eax, 2
push eax
push edx
push 0
push dword [0x1004fa3c]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0x10036316
mov dword [esi], edx
mov ecx, dword [edi]
mov eax, dword [ebp - 0x18]
mov dword [edx + ecx*4], eax
inc dword [edi]
mov edi, dword [ebp - 0x24]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x10036240
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x100362fc
mov eax, dword [esi]
xor ebx, ebx
test eax, eax
je 0x100362fc
push eax
push ebx
push dword [0x1004fa3c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100416c0
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x24]
jmp 0x100362e4

Function at 0x10036320
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
mov dword [ebp - 4], edx
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
call fcn.100361f0
test eax, eax
jne 0x10036351
mov eax, 9
pop edi
mov esp, ebp
pop ebp
ret
cmp dword [edi], 0
je 0x100363a2
push esi
xor esi, esi
cmp dword [edi + 8], esi
jbe 0x1003639a
push ebx
nop
mov eax, dword [edi]
push dword [eax + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0x10036393
push ebx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [ebp + 8]
mov edx, dword [ebp - 4]
mov ecx, ebx
call fcn.10036080
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [edi + 8]
jb 0x10036360
pop ebx
pop esi
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x100363b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1004f040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
imul esi, ecx, 0x2c
push edi
add esi, dword [0x1004fef0]
mov eax, dword [esi]
mov cl, byte [esi + 0x14]
and cl, 1
lea edi, [eax - 5]
cmove edi, eax
movzx eax, cl
lea ebx, [eax*2 + 5]
lea eax, [ebp - 8]
push eax
push 0x40
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1003640c
pop edi
pop esi
mov eax, 0xa
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100416c0
mov esp, ebp
pop ebp
ret
mov byte [edi], 0xe9
mov eax, dword [esi + 4]
sub eax, edi
sub eax, 5
mov dword [edi + 1], eax
test byte [esi + 0x14], 1
je 0x10036427
mov eax, dword [esi]
mov word [eax], 0xf9eb
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
or byte [esi + 0x14], 6
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100416c0
mov esp, ebp
pop ebp
ret

Function at 0x10036460
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [0x1004fef8]
sub esp, 0x10
push esi
xor esi, esi
test ecx, ecx
je 0x1003648d
mov eax, dword [0x1004fef0]
add eax, 0x14
nop dword [eax + eax]
test byte [eax], 2
je 0x10036494
inc esi
add eax, 0x2c
cmp esi, ecx
jb 0x10036480
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
cmp esi, 0xffffffff
je 0x1003648d
push ebx
push 1
or edx, 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.10036320
mov ebx, eax
mov dword [ebp - 4], eax
add esp, 4
test ebx, ebx
jne 0x1003654f
mov ecx, dword [0x1004fef8]
push edi
cmp esi, ecx
jae 0x100364fa
imul edi, esi, 0x2c
nop word [eax + eax]
mov eax, dword [0x1004fef0]
test byte [edi + eax + 0x14], 2
jne 0x100364ef
mov ecx, esi
call fcn.100363b0
mov ebx, eax
test ebx, ebx
jne 0x100364f7
mov ecx, dword [0x1004fef8]
inc esi
add edi, 0x2c
cmp esi, ecx
jb 0x100364d0
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x1003654c
xor esi, esi
cmp dword [ebp - 8], esi
jbe 0x1003653d
mov ebx, eax
nop word [eax + eax]
push dword [ebx + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x10036531
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [ebp - 8]
jb 0x10036510
mov ebx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
push eax
push 0
push dword [0x1004fa3c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, ebx
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100379a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1004f040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [0x1004febc]
lea eax, [ebp - 8]
push eax
push 0x40
push 2
push esi
mov ebx, edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x100379e3
mov ax, word [ebx]
mov word [esi], ax
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 2
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.100416c0
mov esp, ebp
pop ebp
ret

Function at 0x10037a70
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1004f040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push str.x_x_x____x____x
mov edx, 0x1004f29c
mov ecx, str.Game.exe
call fcn.100378d0
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
add esp, 4
mov esi, eax
lea eax, [ebp - 8]
push eax
push 0x40
push 0xb
lea ecx, [esi + 0x11]
push esi
mov dword [0x1004fae8], ecx
call edi
mov eax, 0x10037a40
mov byte [esi], 0xe9
sub eax, esi
sub eax, 5
mov dword [esi + 1], eax
mov eax, 0x90909090
mov dword [esi + 5], eax
mov word [esi + 9], ax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
push 0xb
push esi
call edi
push str.xx____x____xx____xx____xx____xxx
mov edx, 0x1004f334
mov ecx, str.Game.exe
call fcn.100378d0
add esp, 4
mov esi, eax
lea eax, [ebp - 8]
push eax
push 0x40
push 6
lea ecx, [esi + 6]
push esi
mov dword [0x1004fb30], ecx
call edi
mov eax, 0x10037a60
mov byte [esi], 0xe9
sub eax, esi
sub eax, 5
mov dword [esi + 1], eax
lea eax, [ebp - 0xc]
push eax
mov byte [esi + 5], 0x90
push dword [ebp - 8]
push 6
push esi
call edi
push str.xxxxxxxx_x_xx
mov edx, 0x1004f358
mov ecx, str.Game.exe
call fcn.100378d0
add esp, 4
mov esi, eax
lea eax, [ebp - 8]
push eax
push 0x40
push 6
lea ecx, [esi + 6]
push esi
mov dword [0x1004fb0c], ecx
call edi
mov eax, 0x10037a00
mov byte [esi], 0xe9
sub eax, esi
sub eax, 5
mov dword [esi + 1], eax
lea eax, [ebp - 0xc]
push eax
mov byte [esi + 5], 0x90
push dword [ebp - 8]
push 6
push esi
call edi
push str.xxxxxx
mov edx, 0x1004f31c
mov ecx, str.Game.exe
call fcn.100378d0
add esp, 4
mov esi, eax
lea eax, [ebp - 8]
push eax
push 0x40
push 6
lea ecx, [esi + 6]
push esi
mov dword [0x1004fb04], ecx
call edi
mov eax, 0x10037a20
mov byte [esi], 0xe9
sub eax, esi
sub eax, 5
mov dword [esi + 1], eax
lea eax, [ebp - 0xc]
push eax
mov byte [esi + 5], 0x90
push dword [ebp - 8]
push 6
push esi
call edi
push str.xxxx_xx__xxxxxxxxxxxx
mov edx, 0x1004f368
mov ecx, str.d3dx9_26.dll
call fcn.100378d0
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
mov dword [0x1004febc], eax
pop edi
pop esi
call fcn.100416c0
mov esp, ebp
pop ebp
ret
Function at 0x1003ee30
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.1003efe0
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x1003eefd
mov edx, dword [ebp - 4]
cmp edx, dword [section..data]
jb 0x1003ee7a
mov eax, dword [ebp - 4]
cmp eax, dword [0x1004f004]
ja 0x1003ee7a
mov ecx, dword [ebp - 4]
sub ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1003ee4a
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x1003eea0
jmp 0x1003eefd
cmp dword [ebp - 0x14], 0x10000
jne 0x1003eee3
cmp dword [ebp - 0x18], 0x10000
jb 0x1003eee3
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1003eed6
mov eax, dword [ebp - 8]
jmp 0x1003eeff
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1003eef8
mov ecx, dword [ebp - 0x20]
sub ecx, 0x10000
push ecx
call fcn.1003efe0
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1003ee4a
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x1003ef10
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.1003f010
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x1003efd5
mov edx, dword [ebp - 4]
cmp edx, dword [section..data]
jb 0x1003ef55
mov eax, dword [ebp - 4]
cmp eax, dword [0x1004f004]
ja 0x1003ef55
mov ecx, dword [ebp - 4]
add ecx, 0x8000000
mov dword [ebp - 4], ecx
jmp 0x1003ef25
push 0x1c
push 0
lea edx, [ebp - 0x24]
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x1003ef7b
jmp 0x1003efd5
cmp dword [ebp - 0x14], 0x10000
jne 0x1003efbe
cmp dword [ebp - 0x18], 0x10000
jb 0x1003efbe
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1003efb1
mov eax, dword [ebp - 8]
jmp 0x1003efd7
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1003efd0
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp - 0x18]
push ecx
call fcn.1003f010
add esp, 4
mov dword [ebp - 4], eax
jmp 0x1003ef25
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x40da4e
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x18], 0
and dword [eax + 0x14], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
ret 4
Function at 0x98a68c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x98a6b3
call fcn.0092cbf8
mov dword [eax], esi
call fcn.0092cbe5
push 0x16
pop esi
mov dword [eax], esi
call fcn.0092d83a
mov eax, esi
jmp 0x98a708
test dword [ebp + 0xc], 0xfffffff9
jne 0x98a699
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x98a6e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0092cc0b
pop ecx
call fcn.0092cbe5
mov eax, dword [eax]
jmp 0x98a708
test al, 0x10
jne 0x98a706
test al, 1
je 0x98a706
test byte [ebp + 0xc], 2
je 0x98a706
call fcn.0092cbf8
mov dword [eax], 5
call fcn.0092cbe5
mov dword [eax], 0xd
jmp 0x98a6d7
xor eax, eax
pop esi
pop ebp
ret

Function at 0x10001d24
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x10005080
cmp edx, dword [eax]
je 0x10001d46
add eax, 8
inc ecx
cmp eax, 0x10005110
jl 0x10001d37
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x10005080]
jne 0x10001e74
mov eax, dword [0x100053a0]
cmp eax, 1
je 0x10001e4e
test eax, eax
jne 0x10001d77
cmp dword [0x100053a4], 1
je 0x10001e4e
cmp edx, 0xfc
je 0x10001e74
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10001dae
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.100020f0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.100021e0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x10001df1
lea eax, [ebp - 0x1a4]
push eax
call fcn.100021e0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x100043ac
push edi
call fcn.10003260
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.100020f0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.10002100
lea eax, [ebp - 0xa0]
push 0x1000438c
push eax
call fcn.10002100
push dword [esi + 0x10005084]
lea eax, [ebp - 0xa0]
push eax
call fcn.10002100
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.100031ce
add esp, 0x2c
pop edi
jmp 0x10001e74
lea eax, [ebp + 8]
lea esi, [esi + 0x10005084]
push 0
push eax
push dword [esi]
call fcn.100021e0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [0x10004090]
pop esi
leave
ret
Function at 0x401ac0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x407044
call sub.KERNEL32.dll_EnterCriticalSection
mov ebx, dword [0x40703c]
sub esp, 4
test ebx, ebx
je 0x401b0b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
mov esi, eax
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x401b04
test esi, esi
je 0x401b04
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401ae0
mov dword [esp], 0x407044
call sub.KERNEL32.dll_LeaveCriticalSection
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x401cf0
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
lea esi, [esp + 0x24]
lea ebx, [eax + 0x40]
mov dword [esp + 4], 1
mov dword [esp + 0xc], ebx
mov dword [esp], str.Mingw_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x401d40
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, edx
push esi
mov esi, ecx
push ebx
mov ebx, eax
sub esp, 0x3c
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x401e14
mov eax, dword [esp + 0x28]
cmp eax, 0x40
je 0x401d7e
cmp eax, 4
jne 0x401da0
test esi, esi
je 0x401d92
xor eax, eax
movzx ecx, byte [edi + eax]
mov byte [ebx + eax], cl
add eax, 1
cmp eax, esi
jb 0x401d84
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x20]
lea ebp, [esp + 0x10]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
mov ecx, dword [esp + 0x28]
test esi, esi
je 0x401ddf
xor edx, edx
movzx eax, byte [edi + edx]
mov byte [ebx + edx], al
add edx, 1
cmp edx, esi
jb 0x401dd1
cmp ecx, 0x40
je 0x401d92
cmp ecx, 4
je 0x401d92
mov eax, dword [esp + 0x10]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
add esp, 0x3c
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.00401cf0
lea esi, [esi]
Function at 0x2415a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push edi
push esi
je 0x24180d
jne 0x24180d
je 0x2411e6
jne 0x2412ed
add byte [eax], al
add byte [eax], al
Function at 0x243620
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x23c
mov edi, dword [ebp + 0xc]
je 0x2437a8
jne 0x2437a8
Function at 0x244860
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push edi
push esi
je 0x2448b6
jne 0x2448b6
jmp 0x3e9083b2
inc ebp
cmp ebp, dword [esi + edi + 0x18]
jb 0x2448d7
xor eax, eax
jmp 0x244890
mov eax, dword [esp]
je 0x24487c
jne 0x24487c
jmp 0x6830ff8f
movzx ecx, word [eax + ebp*2]
xor eax, eax
cmp dword [esi + edi + 0x14], ecx
jb 0x244890
mov eax, dword [esi + edi + 0x1c]
je 0x2448f9
jne 0x2448f9
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [esi + edi + 0x24]
mov ebx, dword [esi + edi + 0x20]
xor ebp, ebp
je 0x24491b
jne 0x24491b
je 0x2424da
jne 0x24140a
push eax
mov edx, dword [esp + 0x1c]
xor eax, eax
mov ecx, dword [edx]
cmp dword [ecx + 0x7c], 0
je 0x244890
je 0x244938
jne 0x244938
je 0x24369f
jne 0x242cb7
je 0x1cf4d66
mov eax, dword [ebx + ebp*4]
add eax, esi
push eax
push dword [esp + 0x24]
mov eax, dword [esp + 0x20]
call dword [eax + 0x24]
je 0x244907
invalid
jne 0x244907
je 0x24268a
jne 0x242922
jmp 0x3b2558a
lea ecx, [esi + ecx*4]
add esi, dword [eax + ecx]
mov eax, esi
je 0x244890
jne 0x244890
je 0x84340990
test eax, eax
je 0x244874
invalid
je 0x244869
jne 0x244869
add eax, esi
add ebx, esi
mov dword [esp], eax
nop word cs:[eax + eax]
nop dword [eax]
je 0x2448d7
jne 0x2448d7
add byte [eax], al
add byte [eax], al
mov esi, dword [edx + 4]
mov edi, dword [ecx + 0x78]
cmp dword [edi + esi + 0x18], 0
je 0x244890
cmp dword [esi + edi + 0x14], 0
je 0x244890
je 0x24489c
jne 0x24489c
push ebp
push ebx
je 0x244a05
jne 0x244a05
je 0x2c8a3b
mov dword [eax + 8], 0
mov dword [eax + 0x10], 0
mov ebx, ecx
push dword [esp + 0x20]
push dword [esp + 0x20]
push eax
je 0x2449d8
add byte [eax], al
add bh, al
inc eax
adc byte [eax], al
add byte [eax], al
add byte [ecx + 0x2474ffcb], cl
and bh, bh
je 0x2449ab
and byte [eax + 0x74], dl
dec ebp
jne 0x2449d8
je 0x2413d2
jne 0x24363b
add byte [eax], al
add byte [eax], al
test edi, edi
je 0x2449fb
push 0x8000
push 0
push edi
call dword [ebx + 0xc]
je 0x2449fb
or al, 0x74
dec ebp
jne 0x2449fb
jmp 0x8160a740
mov ebx, dword [ebp + 0x3c]
cmp dword [ebp + ebx], 0x4550
jne 0x2449fb
mov edi, dword [esp + 0x14]
add ebx, ebp
push 4
je 0x2449ca
jne 0x2449ca
push 0x3000
push 0x14
push 0
je 0x244a1c
jne 0x244a1c
jmp 0xec67322d
push ecx
call fcn.00243620
add esp, 0x10
test eax, eax
je 0x2449f0
mov esi, edi
mov dword [edi + 0x10], 1
jmp 0x2449fb
je 0x24499d
jne 0x24499d
pop ebx
pop ebp
ret
mov eax, esi
pop esi
pop edi
je 0x2449f4
jne 0x2449f4
je 0x6cafa060
push edi
push esi
mov ebp, dword [esp + 0x18]
and al, 0x18
xor esi, esi
movzx eax, word [ebp]
cmp eax, 0x5a4d
jne 0x2449fb
je 0x2449b1
jne 0x2449b1
call dword [edi]
mov ecx, edi
mov dword [eax + 4], ebp
mov dword [eax], ebx
mov edi, eax
mov dword [eax + 0xc], 0
je 0x244970
jne 0x244970
nop word [eax + eax]
ret
Function at 0x247f80
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, 0x1400
call fcn.00284b40
mov eax, dword [esp + 0x1418]
movdqa xmm4, xmmword [0x28a290]
movdqa xmm6, xmmword [0x28a2a0]
mov esi, 0xfffffc00
pxor xmm2, xmm2
nop
movdqa xmm3, xmm4
movdqa xmm7, xmmword [0x28a2c0]
movdqa xmm0, xmm4
movdqa xmm1, xmm4
movdqa xmm5, xmm4
pand xmm3, xmm6
psrld xmm0, 6
pand xmm1, xmmword [0x28a320]
pcmpeqd xmm3, xmm2
pand xmm3, xmmword [0x28a2b0]
pcmpeqd xmm1, xmm2
pand xmm1, xmmword [0x28a330]
pxor xmm0, xmm3
movdqa xmm3, xmm4
pand xmm3, xmm7
movdqa xmm7, xmmword [0x28a2e0]
pcmpeqd xmm3, xmm2
pand xmm3, xmmword [0x28a2d0]
pand xmm5, xmm7
movdqa xmm7, xmmword [0x28a350]
pcmpeqd xmm5, xmm2
pand xmm5, xmmword [0x28a2f0]
pxor xmm3, xmm0
pand xmm0, xmm6
pcmpeqd xmm0, xmm2
pxor xmm1, xmm5
movdqa xmm5, xmm4
pand xmm5, xmmword [0x28a340]
pcmpeqd xmm5, xmm2
pand xmm5, xmm7
pxor xmm5, xmm1
movdqa xmm1, xmm4
paddd xmm4, xmmword [0x28a2e0]
pand xmm1, xmmword [str._b_b_b_b]
pxor xmm5, xmm3
pand xmm3, xmmword [0x28a2c0]
pcmpeqd xmm1, xmm2
pcmpeqd xmm3, xmm2
pand xmm1, xmmword [0x28a310]
pand xmm3, xmm7
pxor xmm5, xmm1
movdqa xmm1, xmm0
pand xmm0, xmmword [0x28a370]
pandn xmm1, xmmword [0x28a360]
psrld xmm5, 2
por xmm0, xmm1
pxor xmm0, xmm5
pxor xmm0, xmm3
movdqu xmmword [esp + esi + 0x400], xmm0
add esi, 0x10
jne 0x247fb0
mov esi, eax
mov eax, 0xfffffc00
shr esi, 2
nop word [eax + eax]
mov ebx, dword [esp + eax + 0x400]
movzx ecx, bl
shr ebx, 8
xor ebx, dword [esp + ecx*4]
movzx ecx, bl
shr ebx, 8
xor ebx, dword [esp + ecx*4]
movzx ecx, bl
shr ebx, 8
xor ebx, dword [esp + ecx*4]
mov dword [esp + eax + 0x800], ebx
add eax, 4
jne 0x2480d0
mov eax, dword [esp]
mov edi, dword [esp + 0x400]
xor ebp, ebp
mov ebx, eax
shr ebx, 8
nop
mov ecx, eax
xor ecx, ebp
movzx ecx, cl
mov ecx, dword [esp + ecx*4]
xor ecx, ebx
movzx edx, cl
shr ecx, 8
xor ecx, dword [esp + edx*4]
movzx edx, cl
shr ecx, 8
mov edx, dword [esp + edx*4]
xor edx, edi
xor edx, ecx
mov dword [esp + ebp*4 + 0x800], edx
inc ebp
cmp ebp, 0x100
jne 0x248110
movzx eax, al
Function at 0x249d30
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
je 0x249fb2
jne 0x249fb2
jmp 0x4b1869b

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

Disassembly:
push ebp
mov ebp, esp
je 0x24b0ab
jne 0x24b0ab
je 0x2493c2
jne 0x24a2d9
add byte [eax], al
add byte [eax], al
push ebx
push edi
push esi
je 0x24b126
jne 0x24b126
add byte [eax], al
add byte [eax], al