joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4085a7
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x41c098]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
mov dword [ebp - 0x18], eax
push esi
push edi
xor esi, esi
mov dword [ebp - 0x20], ebx
mov eax, dword [ebx + 0x1cc]
mov edi, dword [ebx + 0x104]
mov dword [ebp - 0x28], eax
mov eax, dword [ebx + 0x1d0]
mov dword [ebp - 0x24], eax
mov eax, dword [ebx + 0x1d8]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x10]
add eax, 6
lea edi, [eax + edi*2]
mov dword [ebp - 0x1c], edi
cmp dword [ebx + 0x140], esi
je 0x408677
lea eax, [ebp - 0x14]
push eax
push dword [ebx + 0x148]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov esi, dword [sym.imp.USER32.dll_EnableWindow]
push 1
push dword [ebx + 0x148]
call esi
push 0xd
xor eax, eax
push eax
push eax
push edi
push dword [ebx + 0x6c]
push eax
push dword [ebx + 0x148]
push dword [ebp - 0x18]
call dword [sym.imp.USER32.dll_DeferWindowPos]
push 1
push dword [ebx + 0x15c]
call esi
mov ecx, dword [ebx + 0x6c]
xor edx, edx
mov eax, dword [ebp - 0xc]
sub ecx, dword [ebp - 0x14]
add eax, 6
push 0xd
push edx
push edx
push edi
add eax, ecx
push eax
push edx
push dword [ebx + 0x15c]
push dword [ebp - 0x18]
call dword [sym.imp.USER32.dll_DeferWindowPos]
imul eax, dword [ebx + 0xfc], 0xe
add eax, 4
add edi, eax
mov dword [ebp - 0x1c], edi
jmp 0x4086a9
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push esi
push dword [ebx + 0x15c]
call edi
push esi
push dword [ebx + 0x15c]
mov esi, dword [sym.imp.USER32.dll_EnableWindow]
call esi
push 0
push dword [ebx + 0x148]
call edi
push 0
push dword [ebx + 0x148]
call esi
mov eax, dword [ebp - 0x20]
mov ebx, dword [ebp + 0xc]
mov edi, ebx
mov esi, dword [ebp - 0x28]
sub edi, esi
mov ecx, dword [ebp - 0x24]
sub edi, ecx
mov edx, dword [ebp - 0x2c]
sub edi, edx
push 0xd
mov dword [eax + 0x1d0], ecx
xor ecx, ecx
push ecx
push ecx
push dword [ebp - 0x1c]
mov dword [eax + 0x1cc], esi
push esi
push ecx
mov dword [eax + 0x1d4], edi
mov dword [eax + 0x1d8], edx
push dword [eax + 0x170]
push dword [ebp - 0x18]
call dword [sym.imp.USER32.dll_DeferWindowPos]
add esi, dword [ebp - 0x24]
xor eax, eax
push 0xd
push eax
push eax
push dword [ebp - 0x1c]
push esi
push eax
mov eax, dword [ebp - 0x20]
push dword [eax + 0x184]
push dword [ebp - 0x18]
call dword [sym.imp.USER32.dll_DeferWindowPos]
push 0xd
xor ecx, ecx
lea eax, [esi + edi]
mov esi, dword [ebp - 0x20]
mov edi, dword [ebp - 0x18]
push ecx
push ecx
push dword [ebp - 0x1c]
push eax
push ecx
push dword [esi + 0x198]
push edi
call dword [sym.imp.USER32.dll_DeferWindowPos]
mov eax, dword [esi + 0xfc]
add eax, dword [esi + 0xc0]
mov ecx, dword [ebp - 0x1c]
add ecx, eax
mov eax, dword [ebp + 0x14]
push 0xc
sub eax, ecx
push eax
lea eax, [ebx - 1]
push eax
push ecx
push 0
push 0
push dword [esi + 0x1b8]
push edi
call dword [sym.imp.USER32.dll_DeferWindowPos]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004158e5
mov esp, ebp
pop ebp
ret 0x10
Function at 0x409dda
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
push 9
xor eax, eax
lea edi, [ebp - 0x2c]
pop ecx
xor ebx, ebx
mov esi, 0x421720
rep stosd dword es:[edi], eax
or dword [ebp - 0xc], 0xffffffff
or dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
cmp dword [0x421720], eax
je 0x409e45
mov edi, dword [ebp + 8]
mov eax, dword [edi]
lea ecx, [ebp - 4]
push ecx
push ebx
push 0x10
push ebx
push dword [esi]
push edi
call dword [eax + 0x10]
test eax, eax
jne 0x409e3e
lea eax, [ebp - 0x2c]
push eax
push esi
push dword [ebp - 4]
call fcn.0040a6dc
test eax, eax
jne 0x409e9f
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov dword [ebp - 4], ebx
add esi, 0x10
cmp dword [esi], ebx
jne 0x409e0d
mov esi, dword [ebp + 0xc]
lea ecx, [ebp - 8]
mov edi, dword [ebp - 0x2c]
push ecx
push 2
push dword [ebp - 0x20]
mov eax, dword [esi]
push edi
push esi
call dword [eax + 0x34]
test eax, eax
jne 0x409e9f
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x24]
add edx, 4
test edi, edi
je 0x409e85
mov eax, dword [edx]
xor eax, dword [ecx]
movzx eax, ax
xor eax, dword [edx]
lea edx, [edx + 4]
mov dword [ecx], eax
lea ecx, [ecx + 0x10]
sub edi, 1
jne 0x409e6c
mov ecx, dword [ebp - 0x24]
cmp dword [ebp - 0x2c], ebx
je 0x409e95
mov eax, dword [esi]
push ebx
push ecx
push dword [ebp - 0x2c]
push esi
call dword [eax + 0x20]
lea eax, [ebp - 0x2c]
push eax
push esi
call fcn.00409c75
push dword [ebp - 8]
call sub.OLMAPI32.dll_Ordinal_17
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
test ecx, ecx
je 0x409eb7
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
lea eax, [ebp - 0x2c]
push eax
call fcn.00409b60
mov esp, ebp
pop ebp
ret 8
Function at 0x40be92
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x41c098]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x10
pop ecx
mov esi, str.SoftwarePoliciesMicrosoftOffice16.0CommonLanguageResources
and dword [ebp - 0xa0], 0
lea edi, [ebp - 0x8c]
mov eax, dword [0x421764]
mov ebx, dword [ebp + 8]
rep movsd dword es:[edi], dword [esi]
push 0xe
pop ecx
movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x48]
mov esi, str.SoftwareMicrosoftOffice16.0CommonLanguageResources
rep movsd dword es:[edi], dword [esi]
lea edi, [ebp - 0x10]
mov esi, str.UILanguage
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
cmp eax, 0xffffffff
jne 0x40c007
push 4
pop esi
lea eax, [ebp - 0x94]
mov dword [ebp - 0x90], esi
push eax
push 1
push 0
lea eax, [ebp - 0x8c]
mov dword [ebp - 0x98], esi
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x40bf71
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0x90]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x94]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40bf64
cmp dword [ebp - 0x90], esi
jne 0x40bf64
mov eax, dword [ebp - 0x9c]
mov esi, dword [ebp - 0xa0]
mov dword [ebx], eax
jmp 0x40bf67
xor esi, esi
inc esi
push dword [ebp - 0x94]
call edi
jmp 0x40bf74
xor esi, esi
inc esi
test esi, esi
je 0x40bffe
push 4
pop esi
lea eax, [ebp - 0x94]
mov dword [ebp - 0x90], esi
push eax
push 1
push 0
lea eax, [ebp - 0x48]
mov dword [ebp - 0x98], esi
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40bff6
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0x90]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x94]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40bfe4
cmp dword [ebp - 0x90], esi
jne 0x40bfe4
mov eax, dword [ebp - 0x9c]
jmp 0x40bfea
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
push dword [ebp - 0x94]
mov dword [ebx], eax
call edi
jmp 0x40bffe
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
mov dword [ebx], eax
mov eax, dword [ebx]
mov dword [0x421764], eax
jmp 0x40c009
mov dword [ebx], eax
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004158e5
mov esp, ebp
pop ebp
ret 4

Function at 0x40e6c5
Capabilities:
Allocate thread local storage

Disassembly:
push esi
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x40e6eb
cmp al, 3
ja 0x40e6eb
cmp esi, 2
ja 0x40e6eb
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov esi, eax
jmp 0x40e6dc
mov eax, esi
pop esi
ret
Function at 0x40f813
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push edi
mov edi, dword [ecx + 0x24]
xor esi, esi
test edi, edi
jne 0x40f828
cmp dword [ecx + 0x28], esi
jne 0x40f828
xor eax, eax
inc eax
jmp 0x40f880
push ebx
mov ebx, dword [ecx + 0x28]
test edi, edi
je 0x40f857
call fcn.004118f1
push 5
mov ebx, eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40f853
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
jne 0x40f857
xor eax, eax
jmp 0x40f87f
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
test byte [eax], 1
jne 0x40f869
cmp word [eax + 0xa], si
je 0x40f86f
cmp word [eax + 0xc], si
jne 0x40f872
xor esi, esi
inc esi
test edi, edi
je 0x40f87d
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
pop edi
pop esi
ret

Function at 0x40fcdd
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
inc edi
cmp dword [ebp + 8], 0
je 0x40fd99
call fcn.004118f1
push 0xf0
push dword [ebp + 8]
mov esi, eax
push esi
call fcn.0040e658
test eax, eax
je 0x40fd99
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0xc], ebx
test ebx, ebx
je 0x40fd99
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, dword [ebp - 4]
mov esi, eax
movzx eax, word [esi]
test ax, ax
je 0x40fd8b
mov edx, dword [esi + 4]
mov ecx, eax
movzx eax, word [esi + 2]
add esi, 8
mov dword [ebp - 8], edx
mov edx, 0x401
cmp ax, dx
jne 0x40fd58
mov eax, 0x180
jmp 0x40fd6b
mov dword [ebp + 8], 0x403
mov edx, 0x143
cmp ax, word [ebp + 8]
cmove eax, edx
push esi
push 0
movzx eax, ax
push eax
push ecx
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
xor ecx, ecx
cmp eax, 0xffffffff
cmove edi, ecx
add esi, dword [ebp - 8]
test edi, edi
jne 0x40fd30
mov ebx, dword [ebp - 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
test edi, edi
je 0x40fdb1
mov eax, dword [ebp - 4]
push 0
push 0
push 0
push 0
push 0x364
push dword [eax + 4]
call fcn.004104fa
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4128d9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor esi, esi
mov edi, esi
call fcn.004118f1
push 5
push dword [ebp + 8]
mov ebx, eax
push ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 8], eax
test eax, eax
je 0x41295c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x41295c
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 8], eax
test eax, eax
je 0x412955
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [0x425a54]
mov edi, eax
push edi
test ecx, ecx
je 0x41293b
call ecx
jmp 0x412942
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
pop ecx
mov esi, eax
test esi, esi
je 0x412955
push edi
push dword [ebp - 8]
push esi
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x412965
mov dword [eax], edi
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4158f2
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
xor eax, eax
push ebx
mov ebx, 0xbb40e64e
cmp dword [0x41c098], eax
je 0x415914
cmp dword [0x41c098], ebx
jne 0x4159a8
push edi
push eax
push eax
push 1
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov edi, dword [ebp - 8]
xor edi, dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor edi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edi, eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 0x10]
xor eax, dword [ebp - 0x14]
xor edi, eax
lea eax, [ebp - 4]
push eax
push 0x40
push 4
push 0x41c098
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
test edi, edi
push eax
push dword [ebp - 4]
cmovne ebx, edi
mov edi, 0x41c098
push 4
push edi
mov dword [0x41c098], ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 4
push edi
call sub.KERNEL32.dll_WerRegisterMemoryBlock
mov eax, dword [0x41c098]
not eax
mov dword [0x4219c8], eax
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x415be3
Capabilities:
Terminate process

Disassembly:
push 0x14
push 0x41efa8
call fcn.00415fa6
push 1
call fcn.00415c66
pop ecx
test al, al
jne 0x415a8c
push 7
call fcn.00416335
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.00415c31
mov byte [ebp - 0x24], al
mov eax, dword [0x425ae0]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x415a85
test eax, eax
jne 0x415af6
mov dword [0x425ae0], ecx
push 0x41a360
push 0x41a34c
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x415ad9
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x415bdd
push 0x41a348
push 0x41a324
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
pop ecx
pop ecx
mov dword [0x425ae0], 2
jmp 0x415afb
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.00415dc3
pop ecx
call fcn.00416329
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x415b2b
push esi
call fcn.00415d36
pop ecx
test al, al
je 0x415b2b
push edi
push 2
push edi
mov esi, dword [esi]
mov ecx, esi
call fcn.00416564
call esi
call fcn.0041632f
mov esi, eax
cmp dword [esi], edi
je 0x415b49
push esi
call fcn.00415d36
pop ecx
test al, al
je 0x415b49
push dword [esi]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__register_thread_local_exe_atexit_callback
pop ecx
push edi
call sub.VCRUNTIME140.dll___telemetry_main_invoke_trigger
pop ecx
call fcn.0041644a
movzx eax, ax
push eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__get_narrow_winmain_command_line
push eax
push edi
push 0x400000
call main
mov esi, eax
push edi
call sub.VCRUNTIME140.dll___telemetry_main_return_trigger
pop ecx
call fcn.0041647d
test al, al
jne 0x415b82
push esi
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
test bl, bl
jne 0x415b8b
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
push edi
push 1
call fcn.00415de0
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x415bdd
call fcn.00415fec
ret
call fcn.004158f2
jmp 0x415a6d

Function at 0x417056
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x41c098]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x210]
push edi
mov edi, dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], 0x208
push eax
push 0
push 2
push esi
push str.SoftwareMicrosoftOffice16.0CommonFilesPaths
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x4170bf
cmp dword [ebp - 0x210], 4
jb 0x4170bf
test edi, edi
lea eax, [ebp - 0x20c]
cmovne esi, edi
push esi
push eax
call fcn.00417179
jmp 0x4170c1
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004158e5
mov esp, ebp
pop ebp
ret 8
Function at 0x4170d3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x41c098]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], 0x208
push eax
push 0
push 2
push str.CommonFilesDir
push str.SoftwareMicrosoftWindowsCurrentVersion
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
jne 0x417166
mov ecx, dword [ebp - 0x210]
cmp ecx, 4
jb 0x417166
shr ecx, 1
push 0xffffffffffffffff
cmp word [ebp + ecx*2 - 0x210], 0x5c
sete al
lea eax, [eax*2 + str.Microsoft_SharedOffice16_]
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncat_s]
add esp, 0x10
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00417179
jmp 0x417168
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004158e5
mov esp, ebp
pop ebp
ret 4
Function at 0x10003c40
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x10004de0
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov eax, dword [0x100248cc]
mov ecx, dword [0x10023c78]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x10003d34
push 0x1002489c
call fcn.10005c78
add esp, 4
test eax, eax
jne 0x10003d94
cmp dword [0x100248c8], 0x7fffffff
je 0x10003d9b
mov dword [ebp - 0x10], 0
push 4
call fcn.10004ec0
add esp, 4
mov dword [eax], fcn.10003890
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x10], 2
push ecx
push 0
mov dword [ebp - 0x28], eax
push eax
push 0x10004b30
push 0
push 0
call fcn.10009b85
add esp, 0x18
mov dword [ebp - 0x24], eax
test eax, eax
je 0x10003dac
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x10003dbd
push ecx
push eax
call fcn.10005dd3
add esp, 8
test eax, eax
jne 0x10003dce
push 0x1002489c
call fcn.10005c89
add esp, 4
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
xor eax, eax
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x100248cc
call fcn.10004f2f
add esp, 4
cmp dword [0x100248cc], 0xffffffff
jne 0x10003c8e
xorps xmm0, xmm0
movups xmmword [0x100248bc], xmm0
movups xmmword [0x100248ac], xmm0
movups xmmword [0x1002489c], xmm0
push 2
push 0x1002489c
call fcn.10005c59
add esp, 8
push 0x10003e40
call fcn.10004fe4
add esp, 4
push 0x100248cc
call fcn.10004f7e
add esp, 4
jmp 0x10003c8e
push 5
call fcn.10005635
mov dword [0x100248c8], 0x7ffffffe
push 6
call fcn.10005635
mov dword [ebp - 0x20], 0
push 6
call fcn.10005635
add esp, 4
mov dword [ebp - 0x10], 1
push 1
call fcn.10005635
add esp, 4
mov dword [ebp - 0x10], 1
push 1
call fcn.10005635
add esp, 4
nop
push ebp
sub esp, 0x18
add ebp, 0xc
push dword [ebp - 0x28]
call fcn.10004ef0
add esp, 0x1c
pop ebp
ret

Function at 0x1000c100
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1000c12d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1000c12d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401cc0
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 sym._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 sym._vfprintf
call sym._abort
jmp dbg.mark_section_writable

Function at 0x401d20
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x405050]
test esi, esi
jle 0x401e0d
mov edi, dword [0x405054]
xor ebx, ebx
lea edx, [edi + 4]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x401d54
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x401e06
add ebx, 1
add edx, 0xc
cmp ebx, esi
jne 0x401d40
mov dword [esp], eax
mov ebx, eax
call dbg.__mingw_GetSectionForAddress
test eax, eax
mov edi, eax
je 0x401e4a
lea ebx, [esi + esi*2]
mov esi, dword [0x405054]
shl ebx, 2
add esi, ebx
mov dword [esi + 8], eax
mov dword [esi], 0
call dbg._GetPEImageBase
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 [0x405054]
mov eax, dword [eax + ebx + 4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x401e2a
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x401dff
sub eax, 0x40
and eax, 0xffffffbf
je 0x401dff
mov eax, dword [esp + 0x20]
add ebx, dword [0x405054]
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 0x401e14
add dword [0x405050], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
xor esi, esi
jmp 0x401d5e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
mov eax, dword [0x405054]
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 dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, [esi]
Function at 0x402310
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x405408
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x405400]
sub esp, 4
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
je 0x402365
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 0x40235e
test esi, esi
je 0x40235e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402340
mov dword [esp], 0x405408
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x402580
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push ebx
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
add edx, dword [edx + 0x3c]
movzx esi, word [edx + 6]
movzx eax, word [edx + 0x14]
test esi, esi
lea eax, [edx + eax + 0x18]
je 0x4025b8
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp edx, ebx
ja 0x4025ae
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x4025ba
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x4025a0
xor eax, eax
pop ebx
pop esi
ret