joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401898
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
mov dword [ebp - 4], eax
push dword [ebp + 8]
call fcn.004019a0
mov dword [ebp - 0xc], eax
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call sub.kernel32.dll_WriteFile
mov eax, dword [ebp - 8]
leave
ret 4

Function at 0x401900
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push dword [ebp + 8]
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x40192c
xor eax, eax
leave
ret 0xc
push 0
push dword [ebp - 4]
call sub.kernel32.dll_GetFileSize
mov dword [ebp - 8], eax
add dword [ebp - 8], 0x20
push dword [ebp - 8]
push 0x40
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 0xc], eax
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push dword [ebp - 4]
call sub.kernel32.dll_ReadFile
push dword [ebp - 4]
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x10]
mov dword [eax], ecx
mov eax, 1
leave
ret 0xc
Function at 0x443c57
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
test esi, esi
jne 0x443c70
call fcn.00426bc4
mov esi, dword [eax + 0xc]
push 0x5867a8
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x443cc6
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x443cc5
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
test eax, eax
jne 0x443ca6
xor esi, esi
jmp 0x443cbc
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 8]
push eax
push dword [ebp - 4]
call fcn.00443cce
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4c8aa8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov dword [ebp - 4], ebx
test byte [esi + 4], 1
je 0x4c8ac2
mov edi, dword [esi + 0xc]
jmp 0x4c8b02
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4c8adb
call fcn.004230dc
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4c8af0
call fcn.004230dc
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4c8b02
call fcn.004230dc
call fcn.00426bc4
cmp dword [eax + 0x3c], 0
je 0x4c8b17
push edi
mov ecx, ebx
call fcn.004c813c
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004c8cf4
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x4c8b40
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x4c8b4c
mov edi, ebx
mov dword [eax + 0x88], ebx
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4c93fa
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.0042796c
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x4c9436
call fcn.004c961c
mov dword [esi + 0xc], 1
jmp 0x4c943b
call fcn.004c961c
cmp dword [esi], 0
je 0x4c9484
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x4c945e
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.00411149
jmp 0x4c946f
push 0xff
mov ecx, esi
call fcn.00402ab0
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.00404250
jmp 0x4c94a8
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x4c94a8
push dword [esi]
push dword [ebp - 4]
call fcn.00432742
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4c9571
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.004c961c
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x4c95b9
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00411149
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00404250
jmp 0x4c95c4
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.00432742
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x40408c
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x4110a0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x40
lea eax, [ebp - 0x84]
push eax
push 0x401440
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x4040bd
xor al, al
jmp 0x4040ec
movzx eax, word [ebp - 0x84]
lea edx, [ebp - 0x84]
test eax, eax
je 0x4040ea
mov ecx, dword [0x41197c]
and eax, 0x1f
lea edx, [edx + 2]
bts ecx, eax
movzx eax, word [edx]
test eax, eax
jne 0x4040d4
mov dword [0x41197c], ecx
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040ead0
leave
ret
Function at 0x4056a5
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 8], edx
xor edx, edx
mov dword [ebp - 4], edi
push 0xc
mov esi, edx
mov ecx, edx
mov ebx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ebx
movzx eax, word [ebx + 4]
mov dword [ebp - 0xc], eax
pop ebx
test eax, eax
je 0x40571c
mov eax, dword [edi + 0x18]
mov edi, dword [ebp + 8]
cmp dword [eax], edi
mov edi, dword [ebp - 4]
jne 0x405714
cmp dword [ebp + 0xc], edx
je 0x405703
cmp dword [edi + 0x20], edx
je 0x405703
test byte [eax + 4], 1
jne 0x405714
imul esi, ecx, 0xc
lea edi, [ebp - 0x20]
add esi, dword [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jmp 0x405726
mov esi, eax
lea edi, [ebp - 0x20]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor esi, esi
inc esi
test byte [eax + 4], 1
jne 0x40571c
inc ecx
add eax, ebx
cmp ecx, dword [ebp - 0xc]
jb 0x4056db
mov eax, edx
test esi, esi
je 0x4057e7
cmp dword [ebp + 0xc], edx
je 0x405733
mov eax, dword [ebp - 4]
cmp dword [eax + 0x20], edx
jne 0x405736
push 8
pop ebx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebx + eax]
test al, 4
je 0x405749
and ecx, 0xffffcfff
test al, 2
je 0x405753
and ecx, 0xfffff3ff
test al, 1
je 0x40575d
and ecx, 0xfffffcff
test al, 8
je 0x40576c
and ecx, 0xc0ffffff
mov dword [ebp - 0xc], edx
jmp 0x405772
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x20], edx
je 0x4057e5
mov ebx, ecx
mov edi, ecx
shr ebx, 0xc
mov esi, ecx
shr edi, 0xa
mov eax, ebx
shr esi, 8
or eax, edi
or eax, esi
test al, 3
jne 0x40579d
test ecx, 0x3f000000
jne 0x40579d
test cl, 2
je 0x4057e5
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
mov dword [eax + 0xc], edx
mov eax, ecx
mov edx, dword [ebp - 8]
shr eax, 0x1e
mov dword [edx + 8], eax
mov eax, ecx
shr eax, 0x18
and al, 0x3f
shr ecx, 1
mov byte [edx + 4], al
and ecx, 1
mov eax, edx
mov dword [eax + 0x14], ecx
and ebx, 3
je 0x4057ce
mov dword [eax], ebx
jmp 0x4057de
and edi, 3
je 0x4057d7
mov dword [eax], edi
jmp 0x4057de
and esi, 3
je 0x4057de
mov dword [eax], esi
xor eax, eax
inc eax
xor edx, edx
jmp 0x4057e7
mov eax, edx
mov edi, dword [ebp - 0x10]
mov esi, edx
mov ecx, dword [ebp - 4]
movzx edi, word [edi + 6]
mov ecx, dword [ecx + 0x1c]
test edi, edi
je 0x40580e
mov ebx, dword [ebp + 8]
cmp dword [ecx], ebx
je 0x40580b
inc esi
add ecx, 0x10
cmp esi, edi
jb 0x4057fd
jmp 0x40580e
xor edx, edx
inc edx
mov ecx, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov dword [ecx + 0x10], edx
leave
ret
Function at 0x405f48
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
mov eax, dword [0x4110a0]
xor eax, esp
mov dword [esp + 0x218], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
mov dword [esp + 0x14], eax
push ecx
mov esi, 0x104
mov dword [eax], edi
mov edx, esi
mov dword [eax + 4], edi
lea ecx, [esp + 0x1c]
call fcn.00403380
push 0x401784
mov edx, esi
lea ecx, [esp + 0x1c]
call fcn.00403400
lea eax, [esp + 0x18]
push eax
push edi
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
mov esi, eax
test esi, esi
jne 0x405fcb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x406003
push ecx
mov ecx, dword [ebp + 4]
mov edx, 0xc9
call fcn.00404d05
pop ecx
mov edi, eax
jmp 0x406003
lea edx, [esp + 0x10]
mov dword [esp + 0x10], edi
mov ecx, esi
call fcn.00405e31
mov ebx, eax
test ebx, ebx
jns 0x405ff5
push ebx
push ecx
mov ecx, dword [ebp + 4]
mov edx, 0xcf
call fcn.00404ce5
pop ecx
pop ecx
mov edi, ebx
jmp 0x406003
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
cdq
mov dword [ecx], eax
mov dword [ecx + 4], edx
test esi, esi
je 0x40600d
push esi
call fcn.00405cc0
mov ecx, dword [esp + 0x224]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040ead0
mov esp, ebp
pop ebp
ret
Function at 0x40a162
Capabilities:
Print debug messages
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x870
mov eax, dword [0x4110a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 0x86c], edx
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
mov edi, eax
cmp dword [0x4110d8], 0xffffffff
jne 0x40a235
lea eax, [ebp - 0x868]
mov dword [0x4110d8], ebx
push eax
push ecx
push ecx
mov edx, 0x4019c8
mov dword [ebp - 0x868], ebx
call fcn.0040363b
add esp, 0xc
test eax, eax
jne 0x40a235
lea eax, [ebp - 0x858]
mov dword [ebp - 0x860], 0x28
mov dword [ebp - 0x864], eax
lea eax, [ebp - 0x870]
push eax
lea eax, [ebp - 0x858]
mov dword [ebp - 0x870], 0x50
push eax
push ebx
push ebx
push 0x401a24
push dword [ebp - 0x868]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40a214
mov eax, dword [ebp - 0x864]
mov eax, dword [eax]
and eax, 3
mov dword [0x4110d8], eax
push dword [ebp - 0x868]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x860], 0x28
jle 0x40a235
push dword [ebp - 0x864]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp dword [0x4119e4], ebx
je 0x40a2db
cmp dword [ebp - 0x86c], ebx
je 0x40a2db
mov eax, 0x20006
mov dword [ebp - 0x868], ebx
cmp byte [0x411f04], bl
jne 0x40a26d
cmp byte [0x411bf1], bl
je 0x40a26d
mov eax, 0x20106
push ebx
lea ecx, [ebp - 0x868]
push ecx
push ebx
push eax
push ebx
push ebx
push ebx
push 0x401a30
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40a2db
push 4
lea eax, [ebp - 0x86c]
push eax
push 4
push ebx
push 0x401aa0
push dword [ebp - 0x868]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax*2 + 2]
push eax
push esi
push 1
push ebx
push 0x401ab4
push dword [ebp - 0x868]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x868]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test dword [0x4110d8], 3
je 0x40a34a
push 0x802
lea eax, [ebp - 0x808]
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x808]
push esi
cmp dword [ebp - 0x86c], ebx
je 0x40a326
push dword [ebp - 0x86c]
push 0x401ad8
push 0x401
push eax
call fcn.004034b5
add esp, 0x14
jmp 0x40a339
push 0x401afc
push 0x401
push eax
call fcn.004034b5
add esp, 0x10
test eax, eax
js 0x40a34a
lea eax, [ebp - 0x808]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040ead0
leave
ret
Function at 0x40e820
Capabilities:
Access peb ldr_data

Disassembly:
push esi
push ebx
push edx
sub esi, esi
add esi, 0x30
mov ebx, dword fs:[esi]
push ecx
mov ecx, dword [ebx + 8]
dec ebx
mov edx, dword [ebx + 0xd]
lea esi, [edx]
add esi, 0xc
mov ebx, dword [esi]
push edi
mov esi, dword [ebx + 0x18]
test esi, esi
je 0x40e868
mov edx, ebx
add edx, 0x30
mov edx, dword [edx]
mov edi, dword [edx]
and edi, 0xdf00df
mov edx, dword [edx + 0xb]
add edx, edi
shr edx, 1
sub edx, 0x192299a5
cmp edx, 0
je 0x40e86e
mov edx, dword [ebx]
lea ebx, [edx]
jmp 0x40e83b
call fcn.0040e971
call fcn.0040e932
push eax
call fcn.0040e927
mov ebx, edi
mov eax, dword [ebx]
add eax, esi
mov ebx, dword [eax + 0xb]
add ebx, ebx
sub ebx, 0xe8c6ca
cmp ebx, 0
jne 0x40e896
jmp 0x40e89b
add edi, 4
jmp 0x40e87e
mov ebx, edx
add ebx, 0x20
mov ebx, dword [ebx]
sub edi, esi
sub edi, ebx
shr edi, 1
mov ebx, dword [edx + 0x24]
add ebx, edi
add ebx, esi
mov edi, dword [ebx]
shl edi, 0x10
shr edi, 0xe
mov ebx, dword [edx + 0x1c]
add ebx, esi
add ebx, edi
mov edi, dword [ebx]
add edi, esi
mov ebx, 0x95000
push esi
mov edx, 0x7c000
lea eax, [0x40]
push ecx
add edx, ecx
push ebx
push esp
push eax
push ebx
push edx
call edi
pop ebx
pop ecx
push eax
mov esi, 0x347c0
lea ebx, [0x9a000]
add esi, ecx
add ebx, ecx
mov edx, 0x2854
call fcn.0040e93d
lea esi, [0x1abc]
mov edx, 0x1b0a4
mov ebx, 0x7c000
add ebx, ecx
lea edi, [0xf]
imul esi, edi
add esi, 0x4bc
add esi, ecx
call fcn.0040e93d
jmp 0x40e977
nop
ret
lea edx, [0xc0]
mov esi, 0x10000000
lea ebx, [0x7c000]
add ebx, ecx
mov edi, 0x15
imul edx, edi
add edx, 0x40
sub ebx, edx
lea edx, [ebx]
sub edx, esi
lea esi, [0x375c0]
add esi, ecx
mov edi, dword [esi]
xor edi, 0xdcfe3799
dec edi
test edi, edi
je 0x40e9c0
add edi, ebx
mov eax, dword [edi]
add eax, edx
mov dword [edi], eax
add esi, 4
jmp 0x40e9a6
lea ebx, [0x1fe7]
lea esi, [0x1728]
add esi, ecx
add esi, 0x7d88c
add esi, ebx
push esi
lea edx, [edi]
test edi, edi
jmp 0x40e961

Function at 0x40f2d4
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x40fb00
call fcn.0040f598
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x40f334
cmp eax, 0xffffffff
je 0x40f334
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x40f32d
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x40f32d
cmp edx, 0x10000000
jae 0x40f32d
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x40f32a
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40f3a0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40f3de
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x40f3d6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x40f3e0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x40f3c6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x40f4b0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x40f4e1
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40f4e1
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x40f4e1
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x1002ce50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
pushal
call 0x1002ce5f
pop dword [ebp - 4]
mov eax, 0xcadfa42e
sub eax, 0xbadcd5cf
sub dword [ebp - 4], eax
mov dword [ebp - 0x14], 0x18c7601a
add dword [ebp - 0x14], 0x358ae531
mov dword [ebp - 0x10], 0x5e754b59
add dword [ebp - 0x10], 0xd3be00ec
mov dword [ebp - 0xc], 0x42a9e4a7
sub dword [ebp - 0xc], 0xf65da079
mov dword [ebp - 8], 0x44917174
sub dword [ebp - 8], 0x44917174
lea eax, [ebp - 0x14]
push eax
mov eax, 0xa13faf8a
add eax, 0x6ec470aa
add eax, dword [ebp - 4]
call dword [eax]
mov dword [ebp - 0x14], 0xb7343b07
sub dword [ebp - 0x14], 0x42c1d1b1
mov dword [ebp - 0x10], 0x9d3723c7
add dword [ebp - 0x10], 0xa4353dae
mov dword [ebp - 0xc], 0xc3fc31ca
add dword [ebp - 0xc], 0x9f733aa2
mov dword [ebp - 8], 0x1fc84f59
add dword [ebp - 8], 0xe037b0a7
lea ebx, [ebp - 0x14]
push ebx
push eax
mov eax, 0xea312d0c
sub eax, 0xda2d0cc0
add eax, dword [ebp - 4]
call dword [eax]
push 0x40
push 0x1000
push 0x47143
push 0
call eax
mov ecx, 0xb3faf982
add ecx, 0x4c054e02
xor edx, edx
add edx, eax
mov ebx, 0x9fb187b
sub ebx, 0xf9f59a7b
add ebx, dword [ebp - 4]
mov edi, 0x15cb6eef
mov esi, dword [ebx]
xor esi, edi
mov dword [edx], esi
add edx, 0x1d6af26d
add edx, 0xe2950d97
add ebx, 0x433ea376
sub ebx, 0x433ea372
loop 0x1002cf7d
add eax, 0xdd3ab960
add eax, 0x22c65783
xor ebx, ebx
add ebx, eax
add eax, 0xecce619b
sub eax, 0xecce6196
mov ecx, 0x10000000
add ecx, dword [ebp - 4]
call ebx
leave
ret
Function at 0x100346a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x100512d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x100346d0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003af70
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x10034700
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, eax
cmp eax, edx
jae 0x10034700
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
pop esi
mov byte [eax], bl
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003af70
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
push edi
je 0x100347fa
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x10034729
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x1003475d
push dword [esi + 0x4c]
movsx eax, bl
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003af70
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x28], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x27]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
test eax, eax
js 0x100347fa
cmp eax, 1
jle 0x100347bb
cmp eax, 3
jne 0x100347fa
push dword [esi + 0x4c]
push dword [ebp - 0x28]
call fcn.1002ce50
add esp, 8
or ecx, 0xffffffff
test al, al
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003af70
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x100347d9
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x100347fa
lea eax, [ebp - 0x28]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
je 0x100347fa
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003af70
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003af70
mov esp, ebp
pop ebp
ret 4
Function at 0x100396b0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100412f8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x100512d4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x1005128c]
cmp eax, 0xffffffff
jne 0x100396e6
xor ebx, ebx
jmp 0x100396ef
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov ebx, eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], 0
test ebx, ebx
je 0x1003972f
mov eax, dword [ebx + 0x18]
mov esi, dword [ebx + 0xc]
test eax, eax
jne 0x1003976e
test esi, esi
jne 0x10039772
push 0x10038230
push 0x10052ad8
call fcn.1002ce50
mov eax, dword [0x1005128c]
add esp, 8
cmp eax, 0xffffffff
je 0x1003972f
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov dword [ebp - 4], 1
test ebx, ebx
je 0x1003975c
or eax, 0xffffffff
lock xadd dword [ebx + 4], eax
jne 0x1003975c
mov eax, dword [ebx]
mov ecx, ebx
push 0
call dword [eax]
push ebx
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x100397b4
mov eax, dword [esi + 4]
mov dword [ebx + 0xc], eax
mov ecx, dword [esi]
test ecx, ecx
je 0x1003979d
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [esi]
mov ecx, edi
push 0
mov eax, dword [edi]
call dword [eax]
push edi
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
push esi
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov esi, dword [ebx + 0xc]
test esi, esi
jne 0x10039772
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x10039700
nop
mov esi, dword [ebx + 0x14]
mov esi, dword [esi]
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x100397d9
mov edx, dword [esi + 0x1c]
test edx, edx
je 0x100397d9
mov eax, dword [ecx]
push edx
call dword [eax + 4]
push esi
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebx + 0x14]
call fcn.1002ce50
mov eax, dword [ebx + 0x18]
test eax, eax
jne 0x100397c0
jmp 0x10039700
Function at 0x401a4e
Capabilities:
Get number of processors

Disassembly:
mov ecx, 0x504748
jmp 0x401a42
mov eax, 0x4c4d1c
call fcn.00494188
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.00401b5b
mov eax, dword [0x500100]
lea ecx, [esi + 0xa0]
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ecx], eax
mov eax, dword [0x500100]
mov dword [esi + 0xa8], eax
push 1
mov dword [esi], 0x4cc9b4
pop eax
mov ebx, 0x504744
mov dword [esi + 0x1c], eax
push 0xa
mov dword [esi + 0x20], eax
or dword [esi + 0x28], 0xffffffff
or dword [esi + 0x24], 0xffffffff
pop edx
mov dword [esi + 0x30], edi
push ebx
mov byte [ebp - 4], 2
mov dword [esi + 0x2c], edi
mov dword [esi + 0x34], 2
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], eax
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], 5
mov dword [esi + 0x60], eax
mov dword [esi + 0x64], edx
mov dword [esi + 0x68], eax
mov dword [esi + 0x6c], edx
mov dword [esi + 0x70], eax
mov dword [esi + 0x74], eax
mov dword [esi + 0x78], 0x3e8
mov dword [esi + 0x7c], eax
mov dword [esi + 0x80], eax
mov dword [esi + 0x84], eax
mov dword [esi + 0x88], edi
mov dword [esi + 0x8c], 0xc0
mov dword [esi + 0x90], 0x6c
mov dword [esi + 0x94], edi
mov dword [esi + 0x98], edi
mov dword [esi + 0x9c], edi
call fcn.004b4118
push ebx
lea ecx, [esi + 0xa8]
mov dword [esi + 0xa4], edi
call fcn.004b4118
mov ecx, dword [ebp - 0xc]
push 0x64
pop eax
mov dword [esi + 0xb4], edi
mov dword [esi + 0xac], eax
mov dword [esi + 0xb0], eax
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret