joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404220
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, edx
not ebx
mov esi, ecx
mov eax, ebx
test edi, edi
je 0x404281
mov cl, byte [esi]
lea esi, [esi + 1]
dec edi
cmp cl, 0x23
jne 0x404264
cmp edi, 2
jb 0x404264
cmp byte [esi], cl
jne 0x404264
cmp byte [esi + 1], cl
jne 0x404264
mov eax, ebx
movzx ecx, cl
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x44c558]
jmp 0x404235
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x44c558]
test edi, edi
jne 0x404235
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
mov cl, byte [esi]
inc esi
test cl, cl
je 0x4042b0
cmp cl, 0x23
jne 0x404297
cmp byte [esi], cl
jne 0x404297
cmp byte [esi + 1], cl
cmove eax, ebx
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
mov cl, byte [esi]
inc esi
xor eax, dword [edx*4 + 0x44c558]
test cl, cl
jne 0x404288
pop edi
pop esi
not eax
pop ebx
pop ebp
ret

Function at 0x404450
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
jne 0x404475
push 0x645
push str.C:Usersp6280DesktopImGui_Loader_Base_masterimguiimgui.cpp
push str.filename__mode
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
add esp, 0xc
mov edi, dword [ebp + 8]
test edi, edi
je 0x404482
mov dword [edi], 0
mov edx, 0x44a5a0
mov ecx, esi
call fcn.004042c0
mov esi, eax
test esi, esi
je 0x404572
mov ebx, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
push esi
call ebx
add esp, 4
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x404568
push 2
push 0
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x404568
push esi
call ebx
mov ebx, eax
add esp, 4
mov dword [ebp + 8], ebx
cmp ebx, 0xffffffff
je 0x404568
push 0
push dword [ebp - 4]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x404568
mov eax, dword [0x4883e0]
test eax, eax
je 0x4044fc
inc dword [eax + 0x374]
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x404568
push esi
push dword [ebp + 8]
push 1
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
push esi
cmp eax, dword [ebp + 8]
je 0x40454d
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, dword [0x4883e0]
add esp, 4
test eax, eax
je 0x40453a
dec dword [eax + 0x374]
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
test edi, edi
je 0x40455f
mov eax, dword [ebp + 8]
mov dword [edi], eax
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406710
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
cmp dword [esi + 0xfc], 0
jg 0x406738
push 0x6d2
push str.C:Usersp6280DesktopImGui_Loader_Base_masterimguiimgui.h
push str.Size___0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
add esp, 0xc
mov ecx, dword [esi + 0xfc]
mov edi, 4
mov eax, dword [esi + 0x104]
lea esi, [ebp + 8]
mov eax, dword [eax + ecx*4 - 4]
not eax
movzx ecx, byte [esi]
lea esi, [esi + 1]
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x44c558]
sub edi, 1
jne 0x406752
mov ecx, dword [0x4883e0]
not eax
pop edi
pop esi
cmp dword [ecx + 0x1c84], eax
jne 0x406784
mov dword [ecx + 0x1c88], eax
cmp dword [ecx + 0x1cbc], eax
jne 0x406793
mov byte [ecx + 0x1cc0], 1
pop ebp
ret 4
Function at 0x412690
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x455040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x4883e0]
push ebx
mov dword [ebp - 8], ecx
mov ebx, dword [eax + 0x1c48]
cmp dword [ebx + 0xfc], 0
jg 0x4126d0
push 0x6d2
push str.C:Usersp6280DesktopImGui_Loader_Base_masterimguiimgui.h
push str.Size___0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
add esp, 0xc
mov ecx, dword [ebx + 0xfc]
mov eax, dword [ebx + 0x104]
push esi
push edi
lea esi, [ebp - 8]
mov edi, 4
mov eax, dword [eax + ecx*4 - 4]
not eax
nop dword [eax]
movzx ecx, byte [esi]
lea esi, [esi + 1]
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x44c558]
sub edi, 1
jne 0x4126f0
not eax
lea ecx, [ebx + 0xfc]
pop edi
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
pop esi
push eax
call fcn.00425960
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004444ab
mov esp, ebp
pop ebp
ret

Function at 0x413710
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x455040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [0x4883e0]
mov ebx, edx
cmp byte [edi + 0x1f5d], 0
jne 0x413764
cmp byte [edi + 0x1f5e], 0
jne 0x413764
push dword [edi + 0x2f80]
lea eax, [ebp - 0x14]
push str.Tooltip__02d
push 0x10
push eax
call fcn.004041e0
add esp, 0x10
test bl, 1
je 0x413885
jmp 0x4137fc
movss xmm1, dword [edi + 0x164c]
lea eax, [ebp - 0x14]
movaps xmm0, xmm1
mulss xmm1, dword [0x452d98]
mulss xmm0, dword [0x452da4]
addss xmm1, dword [edi + 0xe8]
addss xmm0, dword [edi + 0xe4]
mov dword [edi + 0x1cec], 0
mov dword [edi + 0x1cf0], 0
movss dword [edi + 0x1ce8], xmm1
mov dword [edi + 0x1cd4], 1
movss dword [edi + 0x1ce4], xmm0
mov byte [edi + 0x1d0c], 1
movss xmm0, dword [edi + 0x16a8]
mulss xmm0, dword [0x452cfc]
or dword [edi + 0x1cd0], 0x41
movss dword [edi + 0x1d28], xmm0
push dword [edi + 0x2f80]
push str.Tooltip__02d
push 0x10
push eax
call fcn.004041e0
add esp, 0x10
mov al, byte [ebp - 0x14]
lea esi, [ebp - 0x13]
or edx, 0xffffffff
test al, al
je 0x413837
or ebx, 0xffffffff
nop dword [eax]
cmp al, 0x23
jne 0x41381e
cmp byte [esi], al
jne 0x41381e
cmp byte [esi + 1], al
cmove edx, ebx
movzx ecx, dl
movzx eax, al
xor ecx, eax
shr edx, 8
mov al, byte [esi]
inc esi
xor edx, dword [ecx*4 + 0x44c558]
test al, al
jne 0x413810
mov ecx, dword [0x4883e0]
not edx
push edx
lea ecx, [ecx + 0x1c30]
call fcn.004046e0
test eax, eax
je 0x413885
cmp byte [eax + 0xc3], 0
je 0x413885
mov byte [eax + 0xca], 1
mov byte [eax + 0xe4], 1
lea eax, [ebp - 0x14]
inc dword [edi + 0x2f80]
push dword [edi + 0x2f80]
push str.Tooltip__02d
push 0x10
push eax
call fcn.004041e0
add esp, 0x10
push 0x22c0347
xor edx, edx
lea ecx, [ebp - 0x14]
call fcn.0040e1c0
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004444ab
mov esp, ebp
pop ebp
ret
Function at 0x4187b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
cmp dword [edi + 0x3030], 0
lea esi, [edi + 0x3034]
je 0x418832
mov ecx, dword [esi + 4]
test ecx, ecx
jns 0x4187ec
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
xor ecx, ecx
test eax, eax
cmovg ecx, eax
push ecx
mov ecx, esi
call fcn.00426830
push dword [ebp + 8]
mov ecx, esi
mov dword [esi], 0
push ebx
call fcn.00404940
mov edx, dword [esi]
mov ecx, 0x4883e8
push dword [edi + 0x3030]
lea eax, [edx - 1]
neg edx
sbb edx, edx
and edx, eax
mov eax, dword [edi + 0x303c]
test eax, eax
push edx
cmovne ecx, eax
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp + 8]
mov ecx, esi
push ebx
call fcn.00404940
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x418d00
Capabilities:
Hash data with crc32

Disassembly:
push esi
push edi
mov edi, ecx
or ecx, 0xffffffff
mov al, byte [edi]
lea esi, [edi + 1]
test al, al
je 0x418d3c
push ebx
or ebx, 0xffffffff
cmp al, 0x23
jne 0x418d22
cmp byte [esi], al
jne 0x418d22
cmp byte [esi + 1], al
cmove ecx, ebx
movzx edx, cl
movzx eax, al
xor edx, eax
shr ecx, 8
mov al, byte [esi]
inc esi
xor ecx, dword [edx*4 + 0x44c558]
test al, al
jne 0x418d14
pop ebx
not ecx
call fcn.00418c40
test eax, eax
jne 0x418d50
mov ecx, edi
pop edi
pop esi
jmp fcn.00418b60
pop edi
pop esi
ret
Function at 0x41c930
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x455040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x20], esi
push edi
test eax, eax
jle 0x41cac6
lea ebx, [edx + 0x18]
nop word [eax + eax]
mov edx, dword [ebx - 0x18]
test edx, edx
je 0x41cab7
mov ecx, esi
call fcn.0041c2b0
mov edi, eax
mov eax, dword [ebx - 0x14]
mov dword [ebp - 0x1c], edi
test eax, eax
je 0x41c98e
push eax
lea ecx, [esi + 0x2fb8]
call fcn.004046e0
mov ecx, eax
jmp 0x41c990
xor ecx, ecx
mov dword [edi + 0x10], ecx
movsx eax, word [ebx]
movd xmm1, eax
movsx eax, word [ebx + 2]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [edi + 0x2c], xmm1
movss dword [edi + 0x30], xmm0
movsx eax, word [ebx + 4]
movd xmm1, eax
movsx eax, word [ebx + 6]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [edi + 0x34], xmm1
movss dword [edi + 0x38], xmm0
movsx eax, word [ebx + 8]
movd xmm1, eax
movsx eax, word [ebx + 0xa]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
mov eax, dword [edi + 0x90]
cvtdq2ps xmm0, xmm0
and eax, 0xfffffe49
or eax, 0x49
mov dword [edi + 0x90], eax
movss dword [edi + 0x3c], xmm1
movss dword [edi + 0x40], xmm0
test ecx, ecx
je 0x41ca1e
cmp dword [ecx + 0x14], 0
jne 0x41ca15
mov dword [ecx + 0x14], edi
jmp 0x41ca1e
cmp dword [ecx + 0x18], 0
jne 0x41ca1e
mov dword [ecx + 0x18], edi
mov eax, dword [ebx - 0xc]
mov ecx, edi
mov dword [edi + 0x88], eax
movsx eax, byte [ebx - 8]
mov dword [edi + 0x44], eax
mov eax, dword [ebx - 4]
and eax, 0x61fc20
or dword [edi + 8], eax
mov eax, dword [edi + 0x10]
test eax, eax
je 0x41ca4b
mov ecx, eax
mov eax, dword [ecx + 0x10]
test eax, eax
jne 0x41ca42
push dword [ecx]
lea eax, [ebp - 0x18]
push str.DockNode__02X
push 0x14
push eax
call fcn.004041e0
mov al, byte [ebp - 0x18]
lea esi, [ebp - 0x17]
add esp, 0x10
or edx, 0xffffffff
test al, al
je 0x41ca9a
or edi, 0xffffffff
cmp al, 0x23
jne 0x41ca7e
cmp byte [esi], al
jne 0x41ca7e
cmp byte [esi + 1], al
cmove edx, edi
movzx ecx, dl
movzx eax, al
xor ecx, eax
shr edx, 8
mov al, byte [esi]
inc esi
xor edx, dword [ecx*4 + 0x44c558]
test al, al
jne 0x41ca70
mov edi, dword [ebp - 0x1c]
mov ecx, dword [0x4883e0]
not edx
push edx
lea ecx, [ecx + 0x1c30]
call fcn.004046e0
mov esi, dword [ebp - 0x20]
mov dword [edi + 0x68], eax
mov eax, dword [ebp + 8]
add ebx, 0x24
sub eax, 1
mov dword [ebp + 8], eax
jne 0x41c960
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004444ab
mov esp, ebp
pop ebp
ret
Function at 0x42e940
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 0x42e97a
mov eax, dword [0x4883e0]
mov dword [esi + 4], 0
mov dword [esi], 0
test eax, eax
je 0x42e96d
dec dword [eax + 0x374]
push ecx
call edi
add esp, 4
mov dword [esi + 8], 0
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x42e9ab
mov eax, dword [0x4883e0]
mov dword [esi + 0x10], 0
mov dword [esi + 0xc], 0
test eax, eax
je 0x42e99e
dec dword [eax + 0x374]
push ecx
call edi
add esp, 4
mov dword [esi + 0x14], 0
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x42e9dc
mov eax, dword [0x4883e0]
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
test eax, eax
je 0x42e9cf
dec dword [eax + 0x374]
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 0x42ea29
mov eax, dword [0x4883e0]
mov dword [esi + 0x40], 0
mov dword [esi + 0x3c], 0
test eax, eax
je 0x42ea1c
dec dword [eax + 0x374]
push ecx
call edi
add esp, 4
mov dword [esi + 0x44], 0
mov ecx, dword [esi + 0x50]
test ecx, ecx
je 0x42ea5a
mov eax, dword [0x4883e0]
mov dword [esi + 0x4c], 0
mov dword [esi + 0x48], 0
test eax, eax
je 0x42ea4d
dec dword [eax + 0x374]
push ecx
call edi
add esp, 4
mov dword [esi + 0x50], 0
mov ecx, dword [esi + 0x5c]
test ecx, ecx
je 0x42ea8b
mov eax, dword [0x4883e0]
mov dword [esi + 0x58], 0
mov dword [esi + 0x54], 0
test eax, eax
je 0x42ea7e
dec dword [eax + 0x374]
push ecx
call edi
add esp, 4
mov dword [esi + 0x5c], 0
pop edi
lea ecx, [esi + 0x78]
pop esi
jmp fcn.00431490
Function at 0x441050
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
mov ebx, edx
je 0x4410e4
test dword [ecx + 0xc], 0x100000
jne 0x441083
push 0x1d03
push str.C:Usersp6280DesktopImGui_Loader_Base_masterimguiimgui_widgets.cpp
push str.tab_bar__Flags__ImGuiTabBarFlags_DockNode
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
add esp, 0xc
mov cl, byte [ebx]
lea esi, [ebx + 1]
or eax, 0xffffffff
test cl, cl
je 0x4410ba
or edi, 0xffffffff
cmp cl, 0x23
jne 0x4410a1
cmp byte [esi], cl
jne 0x4410a1
cmp byte [esi + 1], cl
cmove eax, edi
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
mov cl, byte [esi]
inc esi
xor eax, dword [edx*4 + 0x44c558]
test cl, cl
jne 0x441092
mov ecx, dword [0x4883e0]
not eax
cmp dword [ecx + 0x1c84], eax
jne 0x4410d0
mov dword [ecx + 0x1c88], eax
cmp dword [ecx + 0x1cbc], eax
jne 0x441150
pop edi
pop esi
mov byte [ecx + 0x1cc0], 1
pop ebx
pop ebp
ret
mov esi, dword [0x4883e0]
mov edi, dword [esi + 0x1c48]
cmp dword [edi + 0xfc], 0
jg 0x441117
push 0x6d2
push str.C:Usersp6280DesktopImGui_Loader_Base_masterimguiimgui.h
push str.Size___0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov esi, dword [0x4883e0]
add esp, 0xc
mov ecx, dword [edi + 0xfc]
xor edx, edx
mov eax, dword [edi + 0x104]
push dword [eax + ecx*4 - 4]
mov ecx, ebx
call fcn.00404220
add esp, 4
cmp dword [esi + 0x1c84], eax
jne 0x441141
mov dword [esi + 0x1c88], eax
cmp dword [esi + 0x1cbc], eax
jne 0x441150
mov byte [esi + 0x1cc0], 1
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x445066
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4450a5
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4450a5
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4450a5
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4450a5
cmp dword [ecx + 0x74], 0xe
jbe 0x4450a5
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x401620
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x428004]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push ecx
mov edx, str.GlobalCTERA_PCBACKUP_VSS
lea ecx, [esp + 8]
call fcn.00401e10
add esp, 4
lea eax, [esp + 4]
cmp dword [esp + 0x18], 0x10
cmovae eax, dword [esp + 4]
push eax
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
jne 0x401675
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
sete bl
jmp 0x40167e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov bl, 1
mov ecx, dword [esp + 0x18]
cmp ecx, 0x10
jb 0x4016b0
mov edx, dword [esp + 4]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4016a6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4016c2
push ecx
push edx
call fcn.0040316e
add esp, 8
mov ecx, dword [esp + 0x1c]
mov al, bl
pop ebx
xor ecx, esp
call fcn.0040300e
mov esp, ebp
pop ebp
ret
call fcn.00409ec3
int3
Function at 0x403890
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4038cf
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4038cf
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4038cf
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4038cf
cmp dword [ecx + 0x74], 0xe
jbe 0x4038cf
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x411add
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x422828
push 0x422820
push str.FlsAlloc
push 0x1f
call fcn.0041199c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x411b11
push dword [ebp + 8]
mov ecx, esi
call dword [0x420150]
call esi
jmp 0x411b17
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x411b5b
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x422838
push 0x422830
push str.FlsGetValue
push 0x21
call fcn.0041199c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x411b92
push dword [ebp + 8]
mov ecx, esi
call dword [0x420150]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x411b9a
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x422840
push 0x422838
push str.FlsSetValue
push 0x22
call fcn.0041199c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x411bd4
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x420150]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x41668b
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x416728
push ebx
push esi
call fcn.00416654
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.004165e8
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4166d5
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x416727
push edi
push eax
call fcn.00413124
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4166f5
call fcn.0041182f
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x416726
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004165e8
add esp, 0x20
test eax, eax
jne 0x416714
push edi
call fcn.0041182f
jmp 0x41671c
push ebx
call fcn.0041182f
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x418fc8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x428ff8]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x419008
cmp byte [ebx], 0xa
jne 0x419008
or byte [edi + eax + 0x28], 4
jmp 0x41900d
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x41910c
mov dl, byte [eax]
cmp dl, 0x1a
je 0x4190ef
inc eax
cmp dl, 0xd
je 0x419039
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x41905f
cmp eax, ecx
jae 0x41906d
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x419021
jmp 0x41910c
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4190ea
cmp dword [ebp - 0x10], 0
je 0x4190ea
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x428ff8]
test byte [eax + edi + 0x28], 0x48
je 0x4190c4
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4190af
mov byte [esi], dl
jmp 0x4190c0
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x428ff8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41910c
cmp byte [ebp - 1], 0xa
jne 0x4190d3
cmp esi, ebx
jne 0x4190d3
mov byte [esi], 0xa
jmp 0x41910b
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00418f38
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41910c
mov byte [esi], 0xd
jmp 0x41910b
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x428ff8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x419109
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41910c
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x419115
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x428ff8]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41915b
cmp word [ebx], dx
jne 0x41915b
or byte [eax + edi + 0x28], 4
jmp 0x419160
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x4192c3
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x4192a3
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x4191a1
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4191d7
cmp eax, edx
jae 0x4191e5
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x41917c
jmp 0x4192c3
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41929e
cmp dword [ebp - 0x18], 0
je 0x41929e
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x428ff8]
test byte [eax + edi + 0x28], 0x48
je 0x419274
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x419238
mov word [esi], cx
jmp 0x41926f
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x428ff8]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x428ff8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x428ff8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x4192c3
pop eax
cmp word [ebp - 4], ax
jne 0x419284
cmp esi, ebx
jne 0x419284
mov word [esi], ax
jmp 0x4192c0
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00418f38
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4192c3
push 0xd
pop eax
jmp 0x41927f
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x428ff8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x4192bd
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x4192c3
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret