joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b4a0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x414b6c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call sub.MFC71U.DLL_CDialog::CDialog
xor ebx, ebx
mov dword [esi], 0x4188c0
mov dword [esp + 0x1c], ebx
mov dword [esi + 0x74], ebx
lea edi, [esi + 0x80]
mov ecx, edi
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_2]
lea ecx, [esi + 0x84]
mov byte [esp + 0x1c], 2
call fcn.00408ae0
lea ecx, [esi + 0x134]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_2]
lea ecx, [esi + 0x138]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_2]
lea ebp, [esi + 0x140]
mov ecx, ebp
mov byte [esp + 0x1c], 5
call sub.MFC71U.DLL_CWnd::CWnd
mov dword [ebp], 0x417c68
mov ebp, dword [esp + 0x24]
push ebp
mov ecx, edi
mov byte [esp + 0x20], 6
mov dword [esi + 0x78], ebx
mov byte [esi + 0x7c], bl
mov byte [esi + 0x7d], bl
mov byte [esi + 0x13c], bl
mov dword [esi + 0x194], 0x40
mov byte [esi + 0x198], bl
mov dword [esi + 0x19c], ebx
call dword [0x4163c8]
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0x2c]
push eax
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x28]
push ecx
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push edx
push eax
mov dword [esp + 0x48], ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, ebx
jne 0x40b5e0
mov ecx, dword [esi + 0x74]
xor eax, eax
cmp ecx, ebx
je 0x40b598
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esi + 0x74], ebx
cmp eax, ebx
mov ecx, dword [esp + 0x24]
mov dword [esi + 0x74], ecx
jne 0x40b5e0
lea edx, [esp + 0x28]
push edx
mov edx, dword [esi + 0x74]
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x2c]
push ecx
push ebx
push ebp
mov edi, 4
push edx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [esp + 0x24], edi
jne 0x40b5e0
cmp eax, ebx
jne 0x40b5e0
mov eax, dword [esp + 0x2c]
mov dword [esi + 0x78], eax
mov eax, dword [esi + 0x78]
cmp eax, ebx
je 0x40b5f1
cmp eax, 2
je 0x40b5f1
mov ebx, 1
mov eax, dword [esp + 0x30]
mov ecx, eax
shr ecx, 1
and cl, 1
and al, 1
mov byte [esi + 0x7d], al
pop edi
mov byte [esi + 0x7c], bl
mov byte [esi + 0x13c], cl
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x194], 1
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x10
Function at 0x40b630
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x414b9a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
mov ebp, ecx
mov dword [esp + 4], 0
mov al, byte [ebp + 0x7c]
test al, al
jne 0x40b79d
mov al, byte [ebp + 0x13c]
test al, al
push ebx
mov ebx, dword [esp + 0x1c]
je 0x40b714
push esi
push edi
lea esi, [ebp + 0x138]
push ebx
mov ecx, esi
call dword [0x4163c8]
push 0x418a20
push 0x4177d0
mov ecx, esi
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::Replace]
lea edi, [ebp + 0x134]
push esi
mov ecx, edi
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::operator]
push str._br_
push 0x4177d0
mov ecx, edi
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::Replace]
push 0x4177d0
push str._br_
mov ecx, esi
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::Replace]
push 0x4177d0
mov ecx, esi
call dword [0x4160f8]
push 0
push 0x3c
mov ecx, esi
call dword [sym.imp.MFC71U.DLL_CWnd::FilterToolTipMessage]
mov edi, eax
test edi, edi
jl 0x40b712
push edi
push 0x3e
mov ecx, esi
call dword [sym.imp.MFC71U.DLL_CWnd::FilterToolTipMessage]
cmp eax, edi
jle 0x40b700
sub eax, edi
inc eax
push eax
push edi
mov ecx, esi
call dword [sym.imp.MFC71U.DLL_CMDIFrameWnd::DelayUpdateFrameMenu]
push 0
push 0x3c
mov ecx, esi
call dword [sym.imp.MFC71U.DLL_CWnd::FilterToolTipMessage]
mov edi, eax
test edi, edi
jge 0x40b6e4
pop edi
pop esi
push ebp
call sub.MFC71U.DLL_AfxHelpEnabled
mov al, byte [ebp + 0x13c]
test al, al
je 0x40b72c
lea eax, [ebp + 0x138]
jmp 0x40b747
push ebx
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC71U.DLL_ATL::CStringT::CStringT_1]
mov dword [esp + 0x14], 0
mov dword [esp + 8], 1
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov eax, dword [eax]
push ecx
push edx
push eax
call sub.MFC71U.DLL_AfxMessageBox
mov dword [ebp + 0x78], eax
test byte [esp + 8], 1
pop ebx
je 0x40b76e
lea ecx, [esp + 0x18]
call dword [sym.imp.MFC71U.DLL_ATL::CSimpleStringT::CSimpleStringT]
mov al, byte [ebp + 0x7c]
test al, al
mov eax, dword [ebp + 0x78]
je 0x40b7a0
cmp eax, 2
je 0x40b79d
mov ecx, dword [ebp + 0x80]
mov edx, dword [ebp + 0x74]
push 4
mov dword [esp + 0x24], eax
lea eax, [esp + 0x24]
push eax
push 4
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp + 0x78]
mov ecx, dword [esp + 8]
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0xc
Function at 0x40c040
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x414be8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov edi, dword [esp + 0x1c]
mov eax, dword [edi]
mov dword [esi], eax
mov ecx, dword [edi + 4]
mov dword [esi + 4], ecx
mov edx, dword [edi + 8]
mov dword [esi + 8], edx
mov eax, dword [edi + 0xc]
mov dword [esi + 0xc], eax
mov ecx, dword [edi + 0x10]
lea edx, [edi + 0x14]
mov dword [esi + 0x10], ecx
push edx
lea ecx, [esi + 0x14]
mov dword [esp + 0xc], esi
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const__]
lea eax, [edi + 0x30]
push eax
lea ecx, [esi + 0x30]
mov dword [esp + 0x18], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const__]
add edi, 0x4c
push edi
lea ecx, [esi + 0x4c]
mov byte [esp + 0x18], 1
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_class_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int___const__]
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x40f4c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x414e98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
lea ecx, [esi + 0x14]
mov dword [esp + 8], esi
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_void_]
xor edi, edi
lea ecx, [esi + 0x30]
mov dword [esp + 0x14], edi
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_void_]
lea ecx, [esi + 0x4c]
mov byte [esp + 0x14], 1
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_unsigned_short_int__struct_std::char_traits_unsigned_short_int___class_std::allocator_unsigned_short_int__::constructor_void_]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0xc]
mov dword [esi + 4], edi
mov dword [esi + 0x10], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi], eax
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x40f782
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ecx], 0xffffffff
mov eax, dword [0x4205bc]
mov dword [ebp - 4], eax
je 0x40f7c0
call fcn.0040f6a6
push 7
lea ecx, [ebp - 0x14]
push ecx
movzx eax, ax
push 0x1004
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x40f7c0
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.MSVCR71.dll__wtoi]
pop ecx
jmp 0x40f7c2
xor eax, eax
mov ecx, dword [ebp - 4]
call fcn.00413187
leave
ret

Function at 0x40f93f
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4205bc]
push edi
push 0
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
jne 0x40f96d
mov edi, dword [ebp + 8]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp + 8]
jmp 0x40f9f8
push esi
push edi
call dword [sym.imp.MSVCR71.dll_malloc]
mov esi, eax
test esi, esi
pop ecx
jne 0x40f988
mov edi, dword [ebp + 8]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp + 8]
jmp 0x40f9f7
push esi
push edi
push 0
push dword [ebp + 0xc]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40f9af
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x416990
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
jne 0x40f9c4
push esi
call dword [sym.imp.MSVCR71.dll_free]
mov edi, dword [ebp + 8]
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp + 8]
jmp 0x40f9f6
mov eax, dword [ebp - 0x14]
movzx ecx, word [eax + 0x14]
push ecx
movzx ecx, word [eax + 0x16]
push ecx
movzx ecx, word [eax + 0x10]
movzx eax, word [eax + 0x12]
push ecx
push eax
lea ecx, [ebp - 0x10]
call fcn.0040f856
push esi
call dword [sym.imp.MSVCR71.dll_free]
mov eax, dword [ebp + 8]
lea esi, [ebp - 0x10]
mov edi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
pop ecx
pop esi
mov ecx, dword [ebp - 4]
pop edi
call fcn.00413187
leave
ret
Function at 0x412f4c
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x74
push 0x41ad70
call fcn.004132d8
xor edi, edi
mov dword [ebp - 0x20], edi
push edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call ebx
cmp word [eax], 0x5a4d
jne 0x412f8c
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x412f8c
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x412fa4
cmp eax, 0x20b
je 0x412f91
mov dword [ebp - 0x1c], edi
jmp 0x412fb8
cmp dword [ecx + 0x84], 0xe
jbe 0x412f8c
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x412fb2
cmp dword [ecx + 0x74], 0xe
jbe 0x412f8c
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 2
call dword [sym.imp.MSVCR71.dll___set_app_type]
pop ecx
or dword [0x4209f8], 0xffffffff
or dword [0x4209fc], 0xffffffff
call dword [sym.imp.MSVCR71.dll___p__fmode]
mov ecx, dword [0x420994]
mov dword [eax], ecx
call dword [sym.imp.MSVCR71.dll___p__commode]
mov ecx, dword [0x420990]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCR71.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x4209f4], eax
call fcn.00413342
call fcn.004133e2
cmp dword [0x4205d8], edi
jne 0x413018
push fcn.004133e2
call dword [sym.imp.MSVCR71.dll___setusermatherr]
pop ecx
call fcn.004133d0
push 0x420038
push 0x420034
call sub.MSVCR71.dll__initterm
push 0x413386
call fcn.004131d2
mov eax, dword [0x42098c]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x420988]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCR71.dll___wgetmainargs]
add esp, 0x20
mov dword [ebp - 0x3c], eax
cmp eax, edi
jge 0x41306c
push 8
call sub.MSVCR71.dll__amsg_exit
pop ecx
push 0x420030
push section..data
call sub.MSVCR71.dll__initterm
pop ecx
pop ecx
mov eax, dword [sym.imp.MSVCR71.dll__wcmdln]
mov esi, dword [eax]
cmp esi, edi
jne 0x413096
or dword [ebp - 4], 0xffffffff
mov eax, 0xff
jmp 0x413150
mov dword [ebp - 0x24], esi
mov ax, word [esi]
cmp ax, 0x20
ja 0x413105
cmp ax, di
je 0x4130ac
cmp dword [ebp - 0x20], edi
jne 0x413105
mov ax, word [esi]
cmp ax, di
je 0x4130c1
cmp ax, 0x20
ja 0x4130c1
inc esi
inc esi
mov dword [ebp - 0x24], esi
jmp 0x4130ac
mov dword [ebp - 0x58], edi
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
test byte [ebp - 0x58], 1
je 0x4130dd
movzx eax, word [ebp - 0x54]
jmp 0x4130e0
push 0xa
pop eax
push eax
push esi
push edi
push edi
call ebx
push eax
call fcn.00413ab8
mov esi, eax
mov dword [ebp - 0x40], esi
cmp dword [ebp - 0x1c], edi
jne 0x4130fd
push esi
call dword [sym.imp.MSVCR71.dll_exit]
call dword [sym.imp.MSVCR71.dll__cexit]
jmp 0x41314a
cmp ax, 0x22
jne 0x413116
xor eax, eax
cmp dword [ebp - 0x20], edi
sete al
mov dword [ebp - 0x20], eax
inc esi
inc esi
jmp 0x413096
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.00413313
ret
Function at 0x4062bf
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
push edi
xor edi, edi
call dword [sym.imp.USER32.dll_GetFocus]
mov ebp, dword [esp + 0x3c]
mov ebx, eax
and dword [esp + 0x10], edi
push str.PB_WindowID
push ebp
call dword [sym.imp.USER32.dll_GetPropW]
mov esi, eax
push 9
pop eax
test esi, esi
je 0x406355
lea eax, [esp + 0x14]
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
test eax, eax
je 0x406352
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x14], eax
jne 0x406352
lea eax, [esi - 1]
push eax
push dword [0x42fbec]
call fcn.00402eb3
mov edi, eax
mov dword [esp + 0x10], 1
xor eax, eax
push 9
cmp dword [edi + 0x10], eax
jle 0x406354
mov ecx, dword [edi + 4]
add ecx, 4
pop esi
cmp word [ecx - 2], si
jne 0x406342
mov edx, 0xfa01
cmp word [ecx], dx
je 0x40634d
inc eax
add ecx, 6
cmp eax, dword [edi + 0x10]
jl 0x406332
jmp 0x406352
and dword [esp + 0x10], 0
push 9
pop eax
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
test ebx, ebx
je 0x4063fb
push eax
call esi
test al, al
jns 0x4063fb
push 0x11
call esi
test al, al
js 0x4063fb
push 0x10
call esi
test al, al
js 0x4063fb
push 0x12
call esi
test al, al
js 0x4063fb
push 0x10
lea eax, [esp + 0x1c]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetClassNameW]
cmp dword [esp + 0x10], 0
jne 0x4063fb
push 5
lea eax, [esp + 0x1c]
push str.RichE
push eax
call fcn.0040d5b6
add esp, 0xc
test eax, eax
je 0x4063cf
push 4
lea eax, [esp + 0x1c]
push str.RICHE
push eax
call fcn.0040d5b6
add esp, 0xc
test eax, eax
jne 0x4063e6
push 0
push 0
push 0x44e
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, 0x800
je 0x40643c
lea eax, [esp + 0x18]
push str.Scintilla
push eax
call fcn.0040d576
pop ecx
pop ecx
test eax, eax
je 0x40643c
test ebp, ebp
je 0x40641f
push 0x11
call esi
test al, al
js 0x406417
push 0x10
call esi
test al, al
js 0x406417
push 0x12
call esi
test al, al
jns 0x40641f
push 1
push ebp
call fcn.00406560
test ebx, ebx
je 0x406433
push str.PB_Hotkey
push ebx
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
jne 0x40643c
test edi, edi
je 0x40643c
mov eax, dword [edi + 8]
jmp 0x40643e
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4
Function at 0x407668
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040ef90
mov eax, dword [0x42f220]
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.0040c824
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4076aa
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x407806
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0040eee0
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 + 0x42ffa8]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0040ea61
mov ecx, dword [esi*4 + 0x42ffa8]
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 0x4077ff
cmp eax, dword [ecx + edi + 0x24]
jne 0x4077ff
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 0x4077ff
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0040ea61
add esp, 0x14
test edx, edx
jl 0x4077ff
jg 0x407775
test eax, eax
jb 0x4077ff
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4077ff
jl 0x40778f
cmp dword [ebp - 0x1008], eax
ja 0x4077ff
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4077ad
test ebx, ebx
je 0x4077e6
cmp ecx, edi
jae 0x4077e6
mov al, byte [ecx]
cmp al, 0xd
jne 0x4077c7
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4077d3
cmp byte [ecx + 1], 0xa
jne 0x4077d3
inc ecx
jmp 0x4077d3
movzx eax, al
movsx eax, byte [eax + 0x42f230]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4077ad
cmp edx, ebx
jne 0x4077ad
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x407804
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040c99c
leave
ret

Function at 0x40968e
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4231e0
push 0x4231d8
push str.FlsAlloc
push 0x1f
call fcn.00409aa5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4096c2
push dword [ebp + 8]
mov ecx, esi
call dword [0x42d798]
call esi
jmp 0x4096c8
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40970c
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4231f0
push 0x4231e8
push str.FlsGetValue
push 0x21
call fcn.00409aa5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x409743
push dword [ebp + 8]
mov ecx, esi
call dword [0x42d798]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x40974b
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4231f8
push 0x4231f0
push str.FlsSetValue
push 0x22
call fcn.00409aa5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x409785
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x42d798]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x40e562
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 + 0x42ffa8]
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 0x40e5a2
cmp byte [ebx], 0xa
jne 0x40e5a2
or byte [edi + eax + 0x28], 4
jmp 0x40e5a7
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 0x40e6a6
mov dl, byte [eax]
cmp dl, 0x1a
je 0x40e689
inc eax
cmp dl, 0xd
je 0x40e5d3
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x40e5f9
cmp eax, ecx
jae 0x40e607
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 0x40e5bb
jmp 0x40e6a6
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 0x40e684
cmp dword [ebp - 0x10], 0
je 0x40e684
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x42ffa8]
test byte [eax + edi + 0x28], 0x48
je 0x40e65e
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x40e649
mov byte [esi], dl
jmp 0x40e65a
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x42ffa8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x40e6a6
cmp byte [ebp - 1], 0xa
jne 0x40e66d
cmp esi, ebx
jne 0x40e66d
mov byte [esi], 0xa
jmp 0x40e6a5
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0040ea03
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x40e6a6
mov byte [esi], 0xd
jmp 0x40e6a5
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x42ffa8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x40e6a3
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x40e6a6
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x40e6af
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 + 0x42ffa8]
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 0x40e6f5
cmp word [ebx], dx
jne 0x40e6f5
or byte [eax + edi + 0x28], 4
jmp 0x40e6fa
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 0x40e85d
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 0x40e83d
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x40e73b
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x40e771
cmp eax, edx
jae 0x40e77f
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 0x40e716
jmp 0x40e85d
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 0x40e838
cmp dword [ebp - 0x18], 0
je 0x40e838
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x42ffa8]
test byte [eax + edi + 0x28], 0x48
je 0x40e80e
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 0x40e7d2
mov word [esi], cx
jmp 0x40e809
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x42ffa8]
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 + 0x42ffa8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x42ffa8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x40e85d
pop eax
cmp word [ebp - 4], ax
jne 0x40e81e
cmp esi, ebx
jne 0x40e81e
mov word [esi], ax
jmp 0x40e85a
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0040ea03
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x40e85d
push 0xd
pop eax
jmp 0x40e819
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x42ffa8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x40e857
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x40e85d
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x40faed
Capabilities:
Parse pe header

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