joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4547c0
Capabilities:
Check os version
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x484fd0
mov eax, dword fs:[0]
push eax
sub esp, 0x138
mov eax, dword [0x4a7ff8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
cmp dword [0x4ad980], 0
mov dword [0x4adb98], 1
je 0x45490b
lea eax, [ebp - 0x128]
push eax
mov dword [ebp - 0x128], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x45489a
cmp dword [ebp - 0x118], 2
jne 0x45489a
mov eax, dword [ebp - 0x124]
cmp eax, 6
ja 0x454842
jne 0x45489a
cmp dword [ebp - 0x120], 1
jbe 0x45489a
push str.Imm32.dll
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x45489a
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.ImmDisableIME
push esi
call ebx
mov edi, eax
test edi, edi
je 0x454893
push str.ImmIsIME
push esi
call ebx
mov ebx, eax
test ebx, ebx
je 0x45488f
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
test eax, eax
je 0x45488f
push eax
call ebx
test eax, eax
je 0x454893
push 0xffffffffffffffff
call edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push dword [0x4ad980]
call dword [sym.imp.MMFS2.dll_Ordinal_14]
push 0
mov dword [0x4ad980], 0
mov dword [0x4ad988], 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov esi, dword [sym.imp.USER32.dll_PeekMessageW]
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x144]
push eax
call esi
test eax, eax
je 0x45490b
mov edi, dword [sym.imp.USER32.dll_GetMessageW]
push 0
push 0
push 0
lea eax, [ebp - 0x144]
push eax
call edi
test eax, eax
je 0x45490b
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x144]
push eax
call esi
test eax, eax
jne 0x4548e3
mov eax, dword [0x4adb14]
test eax, eax
je 0x454925
push eax
call dword [sym.imp.MMFS2.dll_Ordinal_4]
mov dword [0x4adb14], 0
mov eax, dword [0x4ad990]
test eax, eax
je 0x45493f
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov dword [0x4ad990], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0046c986
mov esp, ebp
pop ebp
ret
Function at 0x457570
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push 0
lea eax, [ebp - 8]
push eax
mov esi, ecx
push 1
cmp dword [esi + 0x1f6], 0
lea eax, [ebp - 1]
mov ebx, edx
push eax
push ebx
setne byte [ebp - 1]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x45764d
cmp byte [ebp - 1], 0
push edi
je 0x45763f
mov esi, dword [esi + 0x1f6]
mov edi, dword [0x4ad9ac]
cmp edi, esi
je 0x457626
test esi, esi
jne 0x4575c5
xor ecx, ecx
jmp 0x4575cb
mov ecx, dword [esi + 0x1d8]
cmp dword [0x4ad9b0], ecx
je 0x4575ef
mov dword [0x4ad9b4], 0
test ecx, ecx
je 0x4575e9
mov eax, dword [ecx + 0x7c]
mov dword [0x4ad9b4], eax
mov dword [0x4ad9b0], ecx
mov dword [0x4ad9ac], esi
test esi, esi
je 0x45760c
mov eax, dword [esi + 0x1d0]
mov dword [0x4ad98c], eax
mov eax, dword [esi + 0x1d4]
jmp 0x457618
mov dword [0x4ad98c], 0
xor eax, eax
push eax
mov dword [0x4ad984], eax
call dword [sym.imp.MMFS2.dll_Ordinal_831]
mov esi, edi
mov ecx, ebx
call fcn.004475f0
mov ecx, esi
mov edi, eax
call fcn.004029b0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, 1
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x457660
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
push edi
lea ecx, [ebp - 0x10]
push ecx
push 1
lea ecx, [ebp - 1]
mov eax, edx
push ecx
push eax
mov dword [ebp - 0xc], eax
mov byte [ebp - 1], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4576e9
cmp byte [ebp - 1], 0
je 0x4576e4
push dword [ebx + 0x1fe]
mov edx, dword [ebx + 0x44]
push edi
mov ecx, ebx
call fcn.00456ac0
mov ecx, dword [ebx + 0x1f6]
add esp, 8
test ecx, ecx
je 0x4576e9
call fcn.004029b0
mov ecx, dword [ebx + 0x1f6]
xor edx, edx
mov esi, eax
call fcn.004057a0
mov ecx, dword [ebp - 0xc]
lea edx, [ebp - 8]
mov dword [ebp - 8], edi
call fcn.004491e0
mov ecx, esi
mov edi, eax
call fcn.004029b0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, 1
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4622d0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4a7ff8]
xor eax, ebp
mov dword [ebp - 4], eax
push 6
lea eax, [ebp - 0xc]
push eax
movzx eax, word [ebp + 8]
push 0x1004
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x462318
push 0xa
lea eax, [ebp - 0xc]
push 0
push eax
call fcn.00470832
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046c986
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.0046c986
mov esp, ebp
pop ebp
ret

Function at 0x4685d0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push edi
test ebx, ebx
je 0x46866e
mov edi, dword [ebp + 8]
test edi, edi
je 0x46866e
push 0x40
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x46866e
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x46866e
push esi
mov esi, dword [edi + 0x3c]
push pe_nt_image_headers32
add esi, edi
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x46865d
cmp dword [esi], 0x4550
jne 0x46865d
mov eax, dword [esi + 0x80]
test eax, eax
je 0x468667
lea esi, [eax + edi]
mov eax, dword [esi + 0xc]
test eax, eax
je 0x46864e
add eax, edi
push ebx
push eax
call fcn.0046f1f1
add esp, 8
test eax, eax
je 0x46864e
mov eax, dword [esi + 0x20]
add esi, 0x14
test eax, eax
jne 0x468634
xor eax, eax
cmp dword [esi + 0xc], eax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
push 1
push 0x57
call dword [sym.imp.USER32.dll_SetLastErrorEx]
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
push 1
push 0x57
call dword [sym.imp.USER32.dll_SetLastErrorEx]
pop edi
xor eax, eax
pop ebx
pop ebp
ret

Function at 0x468a10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4aca38]
push edi
test eax, eax
je 0x468a89
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 0xc]
jge 0x468a89
mov eax, dword [eax + 0x10]
mov edi, dword [eax + ecx*4]
test edi, edi
je 0x468a89
push esi
mov esi, dword [ebp + 0xc]
push 5
push dword [ebp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x468a71
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x468a71
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x468a71
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push eax
push esi
call dword [sym.imp.USER32.dll_CreateDialogIndirectParamA]
pop esi
pop edi
pop ebp
ret 0x18
push dword [ebp + 0x1c]
mov eax, dword [edi + 0x54]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
call eax
pop esi
pop edi
pop ebp
ret 0x18
xor eax, eax
pop edi
pop ebp
ret 0x18
Function at 0x468a90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4aca38]
push edi
test eax, eax
je 0x468b09
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 0xc]
jge 0x468b09
mov eax, dword [eax + 0x10]
mov edi, dword [eax + ecx*4]
test edi, edi
je 0x468b09
push esi
mov esi, dword [ebp + 0xc]
push 5
push dword [ebp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x468af1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x468af1
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x468af1
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push eax
push esi
call dword [sym.imp.USER32.dll_CreateDialogIndirectParamW]
pop esi
pop edi
pop ebp
ret 0x18
push dword [ebp + 0x1c]
mov eax, dword [edi + 0x58]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
call eax
pop esi
pop edi
pop ebp
ret 0x18
xor eax, eax
pop edi
pop ebp
ret 0x18

Function at 0x468b10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4aca38]
push edi
test eax, eax
je 0x468b89
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 0xc]
jge 0x468b89
mov eax, dword [eax + 0x10]
mov edi, dword [eax + ecx*4]
test edi, edi
je 0x468b89
push esi
mov esi, dword [ebp + 0xc]
push 5
push dword [ebp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x468b71
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x468b71
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x468b71
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push eax
push esi
call dword [sym.imp.USER32.dll_DialogBoxIndirectParamA]
pop esi
pop edi
pop ebp
ret 0x18
push dword [ebp + 0x1c]
mov eax, dword [edi + 0x4c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
call eax
pop esi
pop edi
pop ebp
ret 0x18
xor eax, eax
pop edi
pop ebp
ret 0x18

Function at 0x468b90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4aca38]
push edi
test eax, eax
je 0x468c09
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 0xc]
jge 0x468c09
mov eax, dword [eax + 0x10]
mov edi, dword [eax + ecx*4]
test edi, edi
je 0x468c09
push esi
mov esi, dword [ebp + 0xc]
push 5
push dword [ebp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x468bf1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x468bf1
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x468bf1
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push eax
push esi
call dword [sym.imp.USER32.dll_DialogBoxIndirectParamW]
pop esi
pop edi
pop ebp
ret 0x18
push dword [ebp + 0x1c]
mov eax, dword [edi + 0x50]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
call eax
pop esi
pop edi
pop ebp
ret 0x18
xor eax, eax
pop edi
pop ebp
ret 0x18
Function at 0x468e90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4aca38]
push edi
test eax, eax
je 0x468ef4
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 0xc]
jge 0x468ef4
mov eax, dword [eax + 0x10]
mov edi, dword [eax + ecx*4]
test edi, edi
je 0x468ef4
push esi
mov esi, dword [ebp + 0xc]
push 4
push dword [ebp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x468ee5
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x468ee5
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x468ee5
push eax
call dword [sym.imp.USER32.dll_LoadMenuIndirectW]
test eax, eax
jne 0x468eee
push dword [ebp + 0x10]
mov eax, dword [edi + 0x3c]
push esi
call eax
pop esi
pop edi
pop ebp
ret 0xc
xor eax, eax
pop edi
pop ebp
ret 0xc

Function at 0x468f00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4aca38]
push edi
test eax, eax
je 0x468f64
mov ecx, dword [ebp + 8]
cmp ecx, dword [eax + 0xc]
jge 0x468f64
mov eax, dword [eax + 0x10]
mov edi, dword [eax + ecx*4]
test edi, edi
je 0x468f64
push esi
mov esi, dword [ebp + 0xc]
push 4
push dword [ebp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x468f55
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x468f55
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x468f55
push eax
call dword [sym.imp.USER32.dll_LoadMenuIndirectW]
test eax, eax
jne 0x468f5e
push dword [ebp + 0x10]
mov eax, dword [edi + 0x40]
push esi
call eax
pop esi
pop edi
pop ebp
ret 0xc
xor eax, eax
pop edi
pop ebp
ret 0xc
Function at 0x479064
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4a7ff8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.004718cf
mov dword [ebp - 0x14], eax
cmp dword [0x4ad7d8], edi
jne 0x479155
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x4790e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x479235
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x479235
push 0x488d50
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x479235
push eax
call ebx
push 0x488d5c
push esi
mov dword [0x4ad7d8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x4ad7dc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x4ad7e0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4ad7e8], eax
test eax, eax
je 0x479152
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4ad7e4], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x47917a
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x47916d
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x47918f
push 4
pop eax
jmp 0x479237
cmp dword [ebp - 0x14], edi
je 0x47918f
push dword [0x4ad7d8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x479174
mov eax, dword [0x4ad7e4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x4791ed
cmp dword [0x4ad7e8], esi
je 0x4791ed
push eax
call ebx
push dword [0x4ad7e8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4791ed
test eax, eax
je 0x4791ed
call ecx
test eax, eax
je 0x4791e2
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4791e2
test byte [ebp - 8], 1
jne 0x4791ed
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x47921d
mov eax, dword [0x4ad7dc]
cmp eax, esi
je 0x47921a
push eax
call ebx
test eax, eax
je 0x47921a
call eax
mov edi, eax
test edi, edi
je 0x47921a
mov eax, dword [0x4ad7e0]
cmp eax, esi
je 0x47921a
push eax
call ebx
test eax, eax
je 0x47921a
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x4ad7d8]
call ebx
test eax, eax
je 0x479235
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x479237
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046c986
leave
ret
Function at 0x40396e
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x40398f
jl 0x403986
test edi, edi
jne 0x40398f
xor eax, eax
xor edx, edx
jmp 0x403a50
cmp dword [ebx + 0x38], 0
je 0x4039a4
push eax
push edi
push dword [ebp + 8]
call fcn.00403a56
jmp 0x403a50
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x4039eb
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x4039eb
cmp eax, edi
jb 0x4039c5
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.00405d20
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x4039f1
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x403a45
mov ecx, ebx
call fcn.00403050
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x403a30
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0040a01e
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x403a45
jmp 0x403a03
test edx, edx
je 0x403a45
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0040a01e
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x4054ff
Capabilities:
Parse pe header

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

Function at 0x4102b3
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x420330
push 0x420328
push str.FlsAlloc
push 0x1f
call fcn.0041011e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4102e7
push dword [ebp + 8]
mov ecx, esi
call dword [0x41d140]
call esi
jmp 0x4102ed
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x410331
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x420340
push 0x420338
push str.FlsGetValue
push 0x21
call fcn.0041011e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x410368
push dword [ebp + 8]
mov ecx, esi
call dword [0x41d140]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x410370
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x420348
push 0x420340
push str.FlsSetValue
push 0x22
call fcn.0041011e
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4103aa
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x41d140]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x411c9f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00405670
mov eax, dword [0x427040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.004108e6
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x411ce1
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x411e3d
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0041c360
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x428970]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00412c9c
mov ecx, dword [esi*4 + 0x428970]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x411e36
cmp eax, dword [ecx + edi + 0x24]
jne 0x411e36
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x411e36
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00412c9c
add esp, 0x14
test edx, edx
jl 0x411e36
jg 0x411dac
test eax, eax
jb 0x411e36
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x411e36
jl 0x411dc6
cmp dword [ebp - 0x1008], eax
ja 0x411e36
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x411de4
test ebx, ebx
je 0x411e1d
cmp ecx, edi
jae 0x411e1d
mov al, byte [ecx]
cmp al, 0xd
jne 0x411dfe
lea eax, [edi - 1]
cmp ecx, eax
jae 0x411e0a
cmp byte [ecx + 1], 0xa
jne 0x411e0a
inc ecx
jmp 0x411e0a
movzx eax, al
movsx eax, byte [eax + 0x4272f8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x411de4
cmp edx, ebx
jne 0x411de4
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x411e3b
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004048d2
leave
ret
Function at 0x412134
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 + 0x428970]
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 0x412174
cmp byte [ebx], 0xa
jne 0x412174
or byte [edi + eax + 0x28], 4
jmp 0x412179
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 0x412278
mov dl, byte [eax]
cmp dl, 0x1a
je 0x41225b
inc eax
cmp dl, 0xd
je 0x4121a5
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x4121cb
cmp eax, ecx
jae 0x4121d9
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 0x41218d
jmp 0x412278
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 0x412256
cmp dword [ebp - 0x10], 0
je 0x412256
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x428970]
test byte [eax + edi + 0x28], 0x48
je 0x412230
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41221b
mov byte [esi], dl
jmp 0x41222c
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x428970]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x412278
cmp byte [ebp - 1], 0xa
jne 0x41223f
cmp esi, ebx
jne 0x41223f
mov byte [esi], 0xa
jmp 0x412277
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00412cba
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x412278
mov byte [esi], 0xd
jmp 0x412277
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x428970]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x412275
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x412278
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret