joyce8/EMBER2024-capa huggingface dataset:
Function at 0x616b20
Capabilities:
Get number of processors
Resolve function by parsing pe exports

Disassembly:
inc edi
inc edx
cmp byte [ecx + 0x33], al
dec ebx
dec edi
cmp al, byte [ebx + 0x535804c4]
add esp, 4
pop eax
push ebx
push edi
add esp, 4
jmp 0x6166b7
pop ebx
jmp 0x6168eb
push ecx
or ecx, 0x9202
or ecx, 0x78ca
call 0x616905
add byte [esi], dh
xor eax, 0x503f3e3d
dec ebp
add esp, 4
pop ecx
push eax
and eax, 0x1b05
add eax, 0x17f33
sub eax, 0x2e8d
pop eax
mov dword [ebp - 0xa5c], 0
add byte [eax], al
invalid
push edx
and edx, 0xd01b
or edx, 0x9277
jmp 0x61693a
pop edx
push edx
push edx
add esp, 4
or edx, 0xb42f
pop edx
push ebx
push eax
add esp, 4
or ebx, 0x10477
and ebx, 0xd007
pop ebx
mov byte [ebp - 0x804], 0x45
mov byte [ebp - 0x803], 0x78
mov byte [ebp - 0x802], 0x69
mov byte [ebp - 0x801], 0x74
mov byte [ebp - 0x800], 0x50
mov byte [ebp - 0x7ff], 0x72
mov byte [ebp - 0x7fe], 0x6f
mov byte [ebp - 0x7fd], 0x63
mov byte [ebp - 0x7fc], 0x65
mov byte [ebp - 0x7fb], 0x73
mov byte [ebp - 0x7fa], 0x73
mov byte [ebp - 0x7f9], 0
push ecx
push ebx
add esp, 4
or ecx, 0x2258
sub ecx, 0x5fa3
sub ecx, 0xa953
pop ecx
push ecx
push eax
add esp, 4
xor ecx, 0x16f40
pop ecx
push esi
add esi, 0x2b67
and esi, 0x55ec
pop esi
mov ecx, 0x6b
mov word [ebp - 0x1628], cx
mov edx, 0x65
mov word [ebp - 0x1626], dx
mov eax, 0x72
mov word [ebp - 0x1624], ax
mov ecx, 0x6e
mov word [ebp - 0x1622], cx
mov edx, 0x65
mov word [ebp - 0x1620], dx
mov eax, 0x6c
mov word [ebp - 0x161e], ax
mov ecx, 0x33
mov word [ebp - 0x161c], cx
mov edx, 0x32
mov word [ebp - 0x161a], dx
mov eax, 0x2e
mov word [ebp - 0x1618], ax
mov ecx, 0x64
mov word [ebp - 0x1616], cx
mov edx, 0x6c
mov word [ebp - 0x1614], dx
mov eax, 0x6c
mov word [ebp - 0x1612], ax
xor ecx, ecx
mov word [ebp - 0x1610], cx
push eax
push edx
add esp, 4
and eax, 0x17c5a
and eax, 0xdb6b
call 0x616a97
add byte [edi], bh
cmp eax, 0x4b333a4a
cmp al, 0x3e
add esp, 4
jmp 0x616aa1
pop eax
push ebx
sub ebx, 0xf0ed
pop ebx
push edi
push esi
add esp, 4
sub edi, 0xbf23
jmp 0x616aba
and edi, 0x7934
pop edi
push eax
or eax, 0x16d51
call 0x616ad8
add byte [edx], dh
cmp eax, 0x4b32493c
inc eax
inc esp
dec ecx
inc edi
add esp, 4
pop eax
mov edx, dword fs:[0x18]
mov dword [ebp - 0x1890], edx
mov eax, dword [ebp - 0x1890]
mov ecx, dword [eax + 0x30]
mov dword [ebp - 0x1894], ecx
mov edx, dword [ebp - 0x1894]
mov dword [ebp - 0x14d4], edx
push ebx
or ebx, 0x141b6
and ebx, 0xcd42
call 0x616b20
add byte [esi], bh
cmp eax, 0x363f4747
push eax
aaa
inc edi
add esp, 4
or ebx, 0x9470
pop ebx
push eax
push eax
add esp, 4
and eax, 0x117e0
pop eax
cmp dword [ebp - 0x14d4], 0
jne 0x616b4e
mov dword [ebp - 0x2e0], 0
jmp 0x616e0a
mov eax, dword [ebp - 0x14d4]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0xc20], edx
push edi
push eax
add esp, 4
xor edi, 0xada3
or edi, 0xeda3
and edi, 0x139b
pop edi
push ebx
or ebx, 0x4816
and ebx, 0x468a
xor ebx, 0x695
and ebx, 0x163de
pop ebx
cmp dword [ebp - 0xc20], 0
jne 0x616baa
mov dword [ebp - 0x2e0], 0
jmp 0x616e0a
mov eax, dword [ebp - 0xc20]
mov dword [ebp - 0x4d4], eax
Function at 0x6170bb
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push eax
sub eax, 0x7d34
call fcn.006170bb
add byte [esi + 0x38], al
dec ebp
xor eax, 0x83364a41
add esp, 4
jmp 0x6170c4
cmp eax, dword [ecx + 0x4e]
cmp eax, 0x83575158
les eax, [ebx + ebp*8]
push es
cmp eax, 0x473a4538
dec ebp
add esp, 4
jmp 0x6170c4
pop eax
push ecx
push edi
add esp, 4
jmp 0x6170d2
or ecx, 0x1251e
pop ecx
mov ecx, dword [ebp - 0xc24]
mov dx, word [ecx]
mov word [ebp - 0xf82], dx
mov eax, dword [ebp - 0xc24]
add eax, 2
mov dword [ebp - 0xc24], eax
mov cx, word [ebp - 0xf82]
mov word [ebp - 0x1fc], cx
mov edx, dword [ebp - 0xc28]
mov ax, word [edx]
mov word [ebp - 0xf84], ax
mov ecx, dword [ebp - 0xc28]
add ecx, 2
mov dword [ebp - 0xc28], ecx
mov dx, word [ebp - 0xf84]
mov word [ebp - 0x104], dx
push ebx
push esi
add esp, 4
jmp 0x617140
jmp 0x617148
xor ebx, 0xa238
pop ebx
push ebx
jmp 0x617156
sub ebx, 0xee1a
pop ebx
push ebx
add ebx, 0x22d7
pop ebx
movzx eax, word [ebp - 0x104]
test eax, eax
jne 0x617188
movzx ecx, word [ebp - 0x1fc]
movzx edx, word [ebp - 0x104]
sub ecx, edx
mov dword [ebp - 0x14e4], ecx
jmp 0x6171eb
movzx eax, word [ebp - 0x1fc]
movzx ecx, word [ebp - 0x104]
cmp eax, ecx
je 0x6170a7
movzx edx, word [ebp - 0x1fc]
xor edx, 0x20
movzx eax, word [ebp - 0x104]
cmp edx, eax
je 0x6170a7
movzx ecx, word [ebp - 0x1fc]
movzx edx, word [ebp - 0x104]
cmp ecx, edx
jge 0x6171d5
mov dword [ebp - 0x14e0], 0xffffffff
jmp 0x6171df
mov dword [ebp - 0x14e0], 1
mov eax, dword [ebp - 0x14e0]
mov dword [ebp - 0x14e4], eax
cmp dword [ebp - 0x14e4], 0
jne 0x617234
push edx
and edx, 0xcbaf
add edx, 0xd13d
pop edx
push edi
call 0x617210
add byte [eax + 0x40], cl
dec edi
inc esi
aas
inc esi
dec edi
add esp, 4
jmp 0x617219
xor edi, 0x2801
add edi, 0x52c4
pop edi
mov ecx, dword [ebp - 0x4d8]
mov dword [ebp - 0x6ec], ecx
jmp 0x61729c
push ebx
sub ebx, 0x14167
pop ebx
push edx
push eax
add esp, 4
or edx, 0x6e7
add edx, 0x16e2e
pop edx
push edx
push ecx
add esp, 4
add edx, 0x90f4
add edx, 0x1018d
or edx, 0x2db1
pop edx
mov edx, dword [ebp - 0x4d8]
mov eax, dword [edx]
mov dword [ebp - 0x4d8], eax
mov ecx, dword [ebp - 0x4d8]
cmp ecx, dword [ebp - 0xc2c]
je 0x617292
mov edx, dword [ebp - 0x4d8]
cmp dword [edx + 0x30], 0
jne 0x617048
mov dword [ebp - 0x6ec], 0
Function at 0x617210
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push eax
sub eax, 0x7d34
call fcn.006170bb
add byte [esi + 0x38], al
dec ebp
xor eax, 0x83364a41
add esp, 4
jmp 0x6170c4
cmp eax, dword [ecx + 0x4e]
cmp eax, 0x83575158
les eax, [ebx + ebp*8]
push es
cmp eax, 0x473a4538
dec ebp
add esp, 4
jmp 0x6170c4
pop eax
push ecx
push edi
add esp, 4
jmp 0x6170d2
or ecx, 0x1251e
pop ecx
mov ecx, dword [ebp - 0xc24]
mov dx, word [ecx]
mov word [ebp - 0xf82], dx
mov eax, dword [ebp - 0xc24]
add eax, 2
mov dword [ebp - 0xc24], eax
mov cx, word [ebp - 0xf82]
mov word [ebp - 0x1fc], cx
mov edx, dword [ebp - 0xc28]
mov ax, word [edx]
mov word [ebp - 0xf84], ax
mov ecx, dword [ebp - 0xc28]
add ecx, 2
mov dword [ebp - 0xc28], ecx
mov dx, word [ebp - 0xf84]
mov word [ebp - 0x104], dx
push ebx
push esi
add esp, 4
jmp 0x617140
jmp 0x617148
xor ebx, 0xa238
pop ebx
push ebx
jmp 0x617156
sub ebx, 0xee1a
pop ebx
push ebx
add ebx, 0x22d7
pop ebx
movzx eax, word [ebp - 0x104]
test eax, eax
jne 0x617188
movzx ecx, word [ebp - 0x1fc]
movzx edx, word [ebp - 0x104]
sub ecx, edx
mov dword [ebp - 0x14e4], ecx
jmp 0x6171eb
movzx eax, word [ebp - 0x1fc]
movzx ecx, word [ebp - 0x104]
cmp eax, ecx
je 0x6170a7
movzx edx, word [ebp - 0x1fc]
xor edx, 0x20
movzx eax, word [ebp - 0x104]
cmp edx, eax
je 0x6170a7
movzx ecx, word [ebp - 0x1fc]
movzx edx, word [ebp - 0x104]
cmp ecx, edx
jge 0x6171d5
mov dword [ebp - 0x14e0], 0xffffffff
jmp 0x6171df
mov dword [ebp - 0x14e0], 1
mov eax, dword [ebp - 0x14e0]
mov dword [ebp - 0x14e4], eax
cmp dword [ebp - 0x14e4], 0
jne 0x617234
push edx
and edx, 0xcbaf
add edx, 0xd13d
pop edx
push edi
call 0x617210
add byte [eax + 0x40], cl
dec edi
inc esi
aas
inc esi
dec edi
add esp, 4
jmp 0x617219
xor edi, 0x2801
add edi, 0x52c4
pop edi
mov ecx, dword [ebp - 0x4d8]
mov dword [ebp - 0x6ec], ecx
jmp 0x61729c
push ebx
sub ebx, 0x14167
pop ebx
push edx
push eax
add esp, 4
or edx, 0x6e7
add edx, 0x16e2e
pop edx
push edx
push ecx
add esp, 4
add edx, 0x90f4
add edx, 0x1018d
or edx, 0x2db1
pop edx
mov edx, dword [ebp - 0x4d8]
mov eax, dword [edx]
mov dword [ebp - 0x4d8], eax
mov ecx, dword [ebp - 0x4d8]
cmp ecx, dword [ebp - 0xc2c]
je 0x617292
mov edx, dword [ebp - 0x4d8]
cmp dword [edx + 0x30], 0
jne 0x617048
mov dword [ebp - 0x6ec], 0
Function at 0x870058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.008701a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x87007e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x87006a
add dl, dl
jne 0x870089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8700dc
xor eax, eax
add dl, dl
jne 0x870096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x87017d
add dl, dl
jne 0x8700a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8700b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8700bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8700c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x8700d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x870075
mov eax, 1
add dl, dl
jne 0x8700ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8700f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8700e1
sub eax, ebx
mov ebx, 1
jne 0x870128
mov ecx, 1
add dl, dl
jne 0x87010e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x870119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x870105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x870075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x87013f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x87014a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x870136
cmp eax, 0x7d00
jae 0x87016d
cmp eax, 0x500
jb 0x870168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x870075
cmp eax, 0x7f
ja 0x870170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x870075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x87019e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x870075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x401080
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4010ec
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [ebp + 8]
mov esi, eax
mov dword [ecx], esi
test esi, esi
je 0x4010e4
push esi
call fcn.004104b4
mov edx, dword [ebp + 0xc]
add esp, 4
mov dword [edx], eax
test eax, eax
je 0x4010e4
push ebx
lea ecx, [ebp - 4]
push ecx
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4010e4
cmp dword [ebp - 4], esi
jne 0x4010e4
mov ebx, 1
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop edi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403aef
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x274
mov eax, dword [0x42fec8]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x800
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x234], eax
mov esi, ecx
lea eax, [ebp - 0xc]
jne 0x403b87
push 0x42682c
push 4
push eax
call fcn.00412937
push eax
call fcn.00403682
add esp, 0x10
push ebx
push edi
call fcn.00412e3a
mov edi, dword [eax]
call fcn.00412e3a
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x234]
lea eax, [ebp - 0x230]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.00412dd7
add esp, 0x18
mov dword [ebp - 0x234], eax
call fcn.00412e3a
cmp dword [eax], ebx
je 0x403b9e
call fcn.00412e3a
push dword [eax]
call fcn.0040388c
pop ecx
jmp 0x403ba5
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x403b32
jmp 0x403c2c
call fcn.00412e3a
mov dword [eax], edi
cmp dword [ebp - 0x234], 0xffffffff
je 0x403c28
cmp dword [ebp - 0x234], esi
jae 0x403c28
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push 0x3c
mov esi, eax
lea eax, [ebp - 0x270]
push ebx
push eax
mov dword [ebp - 0x274], 0x40
call fcn.00412e90
add esp, 0xc
push 0x42658c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
je 0x403c17
push str.FindActCtxSectionStringW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x403c17
lea ecx, [ebp - 0x274]
push ecx
push esi
push 2
push ebx
push ebx
call eax
test eax, eax
je 0x403c17
push ebx
push ebx
push esi
jmp 0x403c20
push ebx
push ebx
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x403c2a
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0041028a
leave
ret

Function at 0x41028a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42fec8]
jne 0x410294
repz ret
jmp fcn.00414f00
Function at 0x41eec8
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00415078
and dword [ebp - 4], 0
cmp dword [0x433b58], 0
mov ebx, eax
jne 0x41ef79
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x41f02a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x41f02a
push eax
call fcn.00415006
mov dword [esp], 0x429e60
push edi
mov dword [0x433b58], eax
call esi
push eax
call fcn.00415006
mov dword [esp], 0x429e4c
push edi
mov dword [0x433b5c], eax
call esi
push eax
call fcn.00415006
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x433b60], eax
call esi
push eax
call fcn.00415006
pop ecx
mov dword [0x433b68], eax
test eax, eax
je 0x41ef79
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00415006
pop ecx
mov dword [0x433b64], eax
mov eax, dword [0x433b64]
cmp eax, ebx
je 0x41efd1
cmp dword [0x433b68], ebx
je 0x41efd1
push eax
call fcn.00415081
push dword [0x433b68]
mov esi, eax
call fcn.00415081
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x41efd1
test edi, edi
je 0x41efd1
call esi
test eax, eax
je 0x41efc8
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41efc8
test byte [ebp - 0xc], 1
jne 0x41efd1
or dword [ebp + 0x10], 0x200000
jmp 0x41f00a
mov eax, dword [0x433b5c]
cmp eax, ebx
je 0x41f00a
push eax
call fcn.00415081
pop ecx
test eax, eax
je 0x41f00a
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x41f00a
mov eax, dword [0x433b60]
cmp eax, ebx
je 0x41f00a
push eax
call fcn.00415081
pop ecx
test eax, eax
je 0x41f00a
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x433b58]
call fcn.00415081
pop ecx
test eax, eax
je 0x41f02a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41f02c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
je 0x430072
nop
nop
nop
nop
mov ebx, 0x408ecc
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x50a448e5
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
loop 0x430060
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4300d2
nop
mov ebx, 0x42e1d0
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x7d9429b3
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x41bef0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x433b50
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
mov eax, dword [0x43b040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], 0
mov ecx, esi
mov dword [ebp - 4], 1
call dword [sym.imp.sfml_graphics_2.dll_public:_void___thiscall_sf::Texture::constructor_void_]
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x10], 1
push eax
lea ecx, [ebp + 0xc]
call dword [sym.imp.sfml_system_2.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_sf::String::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___void_]
lea eax, [ebp - 0x3c]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x2c]
xorps xmm0, xmm0
push eax
mov ecx, esi
movups xmmword [ebp - 0x3c], xmm0
call dword [sym.imp.sfml_graphics_2.dll_public:_bool___thiscall_sf::Texture::loadFromFile_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_sf::Rect_int__const__]
mov ecx, dword [ebp - 0x18]
mov bl, al
cmp ecx, 0xf
jbe 0x41bf9a
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x41bf90
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x41bf90
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0043103e
add esp, 8
test bl, bl
jne 0x41bfa6
push 3
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
lea ecx, [ebp + 0xc]
call dword [sym.imp.sfml_system_2.dll_public:_void___thiscall_sf::String::destructor_void_]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x431608
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x431647
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x431647
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x431647
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x431647
cmp dword [ecx + 0x74], 0xe
jbe 0x431647
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x404000
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x404036
mov dword [0x446040], eax
mov edx, 0x403fe0
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.0040cae0
test eax, eax
sete al
movzx eax, al
mov dword [0x43e0d0], eax
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
sete al
movzx eax, al
mov dword [0x43e0d0], eax
leave
ret

Function at 0x404120
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp - 0xc]
sub esp, 0x68
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x40]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov dword [ebp - 4], edi
mov dword [ebp - 0x28], sym.unk_21
mov dword [ebp - 0x24], 0x43cbc4
mov dword [ebp - 0x1c], 0x4041e0
mov dword [ebp - 0x18], esp
mov dword [esp], eax
call fcn.0040d050
cmp dword [0x43e0d0], 0
mov dword [ebp - 0x44], 0x446050
je 0x4041c0
jl 0x404200
mov dword [ebp - 0x3c], 1
mov eax, dword [0x446040]
mov dword [ebp - 0x4c], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x4c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x50]
sub esp, 4
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x54]
sub esp, 4
test eax, eax
mov dword [ebp - 0x48], eax
je 0x4042a3
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x44], eax
lea esi, [esi]
lea eax, [ebp - 0x40]
mov dword [esp], eax
call fcn.0040d130
mov eax, dword [ebp - 0x44]
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov edx, dword [0x446660]
mov eax, 0xffffffff
test edx, edx
je 0x40421a
mov eax, dword [0x43e0d4]
test eax, eax
je 0x40425a
xor eax, eax
test eax, eax
jne 0x404250
mov edi, dword [0x43e0d0]
test edi, edi
js 0x404250
mov dword [ebp - 0x44], 0x446050
mov ebx, dword [0x43e0d0]
test ebx, ebx
je 0x4041c0
jmp 0x40416e
xor esi, esi
mov dword [0x43e0d0], esi
jmp 0x404228
mov dword [esp], 0x43e0d8
mov dword [ebp - 0x3c], 1
call sub.KERNEL32.dll_InterlockedIncrement
sub esp, 4
test eax, eax
je 0x4042e1
mov eax, dword [0x43e0d4]
test eax, eax
jne 0x404218
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0x3c], 1
call eax
sub esp, 4
mov eax, dword [0x43e0d4]
test eax, eax
je 0x40427d
jmp 0x404218
mov dword [esp], 8
call sub.msvcrt.dll_malloc
mov dword [ebp - 0x48], eax
test eax, eax
je 0x4042d5
mov dword [esp + 4], eax
mov eax, dword [0x446040]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
xor edx, edx
test eax, eax
je 0x40430a
test edx, edx
je 0x4042f5
mov dword [ebp - 0x3c], 1
call fcn.00403b80
call fcn.00404000
mov eax, 1
mov dword [0x43e0d4], eax
jmp 0x404218
mov eax, dword [ebp - 0x48]
mov dword [eax], 0
mov dword [eax + 4], 0
jmp 0x4041b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
jmp 0x4042d1
Function at 0x409950
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
lea esi, [esi]
lea edi, [edi]
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.00409930
mov dword [esp], eax
mov dword [esp + 8], esi
mov dword [esp + 4], edi
call sub.msvcrt.dll__read
cmp eax, 0xffffffff
mov ebx, eax
jne 0x40999c
call sub.msvcrt.dll__errno
cmp dword [eax], 4
je 0x409970
add esp, 0x1c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x40c980
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov eax, 0x10
mov ebp, esp
push ebx
sub esp, 0x64
and esp, 0xfffffff0
call fcn.0040daa0
call fcn.0040cbe0
call sub.KERNEL32.dll_GetCommandLineA
mov ebx, eax
lea eax, [ebp - 0x58]
mov dword [esp], eax
call sub.KERNEL32.dll_GetStartupInfoA
sub esp, 4
test ebx, ebx
jne 0x40c9b8
jmp 0x40ca56
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
sete al
cmp cl, 9
sete dl
or eax, edx
test al, 1
jne 0x40c9b7
cmp cl, 0x22
je 0x40ca10
cmp cl, 0x20
setne al
xor edx, edx
cmp cl, 9
setne dl
test eax, edx
je 0x40ca30
lea esi, [esi]
lea edi, [edi]
test cl, cl
je 0x40ca30
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
setne al
xor edx, edx
cmp cl, 9
setne dl
test eax, edx
jne 0x40c9f0
jmp 0x40ca30
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x22
setne al
xor edx, edx
test cl, cl
setne dl
test eax, edx
jne 0x40ca10
cmp cl, 0x22
je 0x40ca92
lea esi, [esi]
cmp cl, 0x20
sete al
cmp cl, 9
sete dl
jmp 0x40ca50
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
sete dl
cmp cl, 9
sete al
or eax, edx
test al, 1
jne 0x40ca40
mov dword [esp], 0
call sub.KERNEL32.dll_GetModuleHandleA
sub esp, 4
test byte [ebp - 0x2c], 1
mov edx, 0xa
je 0x40ca74
movzx edx, word [ebp - 0x28]
mov dword [esp + 8], ebx
xor ebx, ebx
mov dword [esp + 4], ebx
mov dword [esp + 0xc], edx
mov dword [esp], eax
call sym.unk_9
sub esp, 0x10
mov ebx, dword [ebp - 4]
leave
ret
inc ebx
movzx ecx, byte [ebx]
jmp 0x40ca30

Function at 0x40cf40
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov ebx, dword [0x4466c0]
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x40cf80
mov dword [ebx + 0x2c], eax
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x2c]
mov dword [esp], eax
call fcn.0040cae0
test eax, eax
sete al
movzx eax, al
mov dword [ebx + 0x30], eax
add esp, 0x14
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
sete al
movzx eax, al
mov dword [ebx + 0x30], eax
add esp, 0x14
pop ebx
pop ebp
ret