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

Disassembly:
push 0xffffffffffffffff
push 0x4078cc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x310
push ebx
push esi
push edi
mov edi, dword [esp + 0x32c]
mov esi, ecx
push str.default
mov ecx, edi
mov bl, 1
mov dword [esp + 0x1c], pe_nt_image_headers32
call fcn.004069d8
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x1c]
push 0x40a72c
push eax
mov dword [esp + 0x32c], 0
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x14]
push 0
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.HTTP_shellopencommand
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x404f63
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x18]
lea eax, [esp + 0x11c]
push edx
push eax
push 0
push 0
push 0x40aabc
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x404f63
lea edx, [esp + 0x11c]
lea ecx, [esp + 0xc]
push edx
call fcn.004069d8
lea eax, [esp + 0xc]
mov ecx, edi
push eax
call fcn.00406ae0
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::MakeLower
push str.iexplore
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::Find
test eax, eax
setge bl
test bl, bl
jne 0x404f58
push str.ybrowser
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::Find
test eax, eax
setge bl
test bl, bl
je 0x404e96
lea edi, [esi + 0x90]
push 0x40a6f8
mov ecx, edi
call sub.MFC42.DLL_CString::Find
cmp eax, 0xffffffff
jne 0x404f58
push 0x40a6f8
lea ecx, [esp + 0x14]
push edi
push ecx
call sub.MFC42.DLL_operator_1
push eax
mov ecx, edi
mov byte [esp + 0x328], 1
call fcn.00406ae0
push eax
lea ecx, [esi + 0x84]
call fcn.00406ae0
mov byte [esp + 0x324], 0
lea ecx, [esp + 0x10]
jmp 0x404f53
push str.firefox
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::Find
test eax, eax
setge bl
test bl, bl
je 0x404f02
lea edi, [esi + 0x90]
push 0x40a6ec
mov ecx, edi
call sub.MFC42.DLL_CString::Find
cmp eax, 0xffffffff
jne 0x404f58
push 0x40a6ec
lea edx, [esp + 0x14]
push edi
push edx
call sub.MFC42.DLL_operator_1
push eax
mov ecx, edi
mov byte [esp + 0x328], 2
call fcn.00406ae0
push eax
lea ecx, [esi + 0x84]
call fcn.00406ae0
mov byte [esp + 0x324], 0
lea ecx, [esp + 0x10]
jmp 0x404f53
lea edi, [esi + 0x90]
push 0x40a6e8
mov ecx, edi
mov bl, 1
call sub.MFC42.DLL_CString::Find
cmp eax, 0xffffffff
jne 0x404f58
push 0x40a6e8
lea eax, [esp + 0x14]
push edi
push eax
call sub.MFC42.DLL_operator_1
push eax
mov ecx, edi
mov byte [esp + 0x328], 3
call fcn.00406ae0
push eax
lea ecx, [esi + 0x84]
call fcn.00406ae0
mov byte [esp + 0x324], 0
lea ecx, [esp + 0x10]
call fcn.004069cc
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0xc]
mov dword [esp + 0x324], 0xffffffff
call fcn.004069cc
mov ecx, dword [esp + 0x31c]
pop edi
mov al, bl
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x31c
ret 4
Function at 0x406150
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x407b0f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call sub.MFC42.DLL_CString::CString
push 0x40aabc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 1
call sub.MFC42.DLL_CString::CString_1
mov eax, dword [esi + 0xb8]
mov byte [esp + 0x28], 2
mov eax, dword [eax - 8]
lea edi, [eax - 1]
test edi, edi
jl 0x4061c5
mov ecx, dword [esi + 0xb8]
mov dl, 0xa4
mov al, byte [edi + ecx]
lea ecx, [esp + 0xc]
sub dl, al
push edx
call sub.MFC42.DLL_CString::operator_2
sub edi, 2
jns 0x4061a9
push 0x40a940
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::operator
mov edi, dword [esp + 0x34]
push 0x2e
mov ecx, edi
call sub.MFC42.DLL_CString::ReverseFind
push eax
lea eax, [esp + 0x1c]
push 0
push eax
mov ecx, edi
call sub.MFC42.DLL_CString::Mid_1
mov edi, eax
push 2
lea ecx, [esp + 0x18]
push 2
push ecx
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], 3
call sub.MFC42.DLL_CString::Mid_1
mov ebp, eax
push 1
lea edx, [esp + 0x38]
push 0
push edx
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], 4
call sub.MFC42.DLL_CString::Mid_1
mov ecx, dword [edi]
mov edx, dword [ebp]
mov eax, dword [eax]
push ecx
mov ecx, dword [esi + 0xec]
push edx
push eax
push ecx
lea edx, [esp + 0x20]
push str._s_scnt_s_s.exe
push edx
mov byte [esp + 0x40], 5
call sub.MFC42.DLL_CString::Format
add esp, 0x18
lea ecx, [esp + 0x34]
mov byte [esp + 0x28], 4
call fcn.004069cc
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 3
call fcn.004069cc
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 2
call fcn.004069cc
mov esi, dword [esp + 0x30]
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov dword [esp + 0x1c], 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 1
call fcn.004069cc
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 0
call fcn.004069cc
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x20
ret 8
Function at 0x4062c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x407b5f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
push edi
mov edi, ecx
mov dword [esp + 0x1c], 0
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov dword [esp + 0x28], 1
call sub.MFC42.DLL_CString::CString
mov eax, dword [edi + 0xb8]
push 0x40a040
push eax
mov byte [esp + 0x30], 2
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x40632c
push 0x40a954
lea ecx, [esp + 0xc]
call fcn.004069d8
jmp 0x40635a
mov eax, dword [edi + 0xb8]
xor esi, esi
mov ecx, dword [eax - 8]
test ecx, ecx
jle 0x40635a
mov al, byte [eax + esi]
mov cl, 0xa3
sub cl, al
push ecx
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::operator_2
mov eax, dword [edi + 0xb8]
add esi, 2
cmp esi, dword [eax - 8]
jl 0x40633b
push 1
lea edx, [esp + 0x1c]
push 2
push edx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Mid_1
mov esi, eax
mov edi, dword [esp + 0x34]
push 0x2e
mov ecx, edi
mov byte [esp + 0x2c], 3
call sub.MFC42.DLL_CString::ReverseFind
push eax
lea eax, [esp + 0x18]
push 0
push eax
mov ecx, edi
call sub.MFC42.DLL_CString::Mid_1
mov edi, eax
push 2
lea ecx, [esp + 0x14]
push 0
push ecx
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], 4
call sub.MFC42.DLL_CString::Mid_1
mov edx, dword [esi]
mov ecx, dword [edi]
push edx
mov edx, dword [eax]
push ecx
push edx
lea eax, [esp + 0x18]
push str._s_sw64_s.exe
push eax
mov byte [esp + 0x3c], 5
call sub.MFC42.DLL_CString::Format
add esp, 0x14
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 4
call fcn.004069cc
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 3
call fcn.004069cc
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], 2
call fcn.004069cc
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_2
mov dword [esp + 0x1c], 1
lea ecx, [esp + 8]
mov byte [esp + 0x28], 1
call fcn.004069cc
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 0
call fcn.004069cc
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret 8
Function at 0x406440
Capabilities:
Create shortcut via ishelllink

Disassembly:
sub esp, 0x210
push ebp
mov ebp, ecx
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jl 0x4065d1
lea eax, [esp + 4]
push esi
push eax
push 0x4085d4
push 1
push 0
push 0x4085e4
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
jl 0x40658f
mov eax, dword [esp + 8]
push edi
mov edi, dword [esp + 0x220]
mov ecx, dword [eax]
push edi
push eax
call dword [ecx + 0x50]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x228]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x1c]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x22c]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x2c]
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
push 0x4085f4
mov edx, dword [eax]
push eax
call dword [edx]
mov esi, eax
test esi, esi
jl 0x406549
push ebx
mov ebx, dword [esp + 0x228]
lea edx, [esp + 0x18]
push 0x104
push edx
push 0xffffffffffffffff
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x18]
push 1
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov esi, eax
push esi
push ebx
push edi
push str.Crt_lnk_4_:_s_s__X_
push 0x40aab0
call sub.MFC42.DLL_CString::Format
add esp, 0x14
mov ecx, ebp
push 0x40aab0
call fcn.00405830
mov eax, dword [esp + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0x10]
pop ebx
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
pop edi
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, esi
pop esi
pop ebp
add esp, 0x210
ret 0x10
mov edx, dword [esp + 0x224]
push esi
push edx
push edi
push str.Crt_lnk_2_:_s_s__X_
push 0x40aab0
call sub.MFC42.DLL_CString::Format
add esp, 0x14
mov ecx, ebp
push 0x40aab0
call fcn.00405830
mov eax, dword [esp + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
pop edi
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, esi
pop esi
pop ebp
add esp, 0x210
ret 0x10
mov edx, dword [esp + 0x220]
mov eax, dword [esp + 0x21c]
push esi
push edx
push eax
push str.Crt_lnk_3_:_s_s__X_
push 0x40aab0
call sub.MFC42.DLL_CString::Format
add esp, 0x14
mov ecx, ebp
push 0x40aab0
call fcn.00405830
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, esi
pop esi
pop ebp
add esp, 0x210
ret 0x10
mov eax, dword [esp + 8]
pop ebp
add esp, 0x210
ret 0x10
Function at 0x4065e0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x407b80
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x108
push esi
mov ecx, dword [esp + 0x120]
mov edx, dword [esp + 0x11c]
lea eax, [esp + 4]
mov dword [esp + 0x114], 1
push eax
push 1
push 0
push ecx
push edx
mov dword [esp + 0x1c], 0xff
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x40666a
mov edx, dword [esp + 0x124]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
mov eax, dword [esp + 8]
push ecx
push esi
push esi
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
test esi, esi
jne 0x40666a
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x12c]
call fcn.004069d8
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x120]
mov byte [esp + 0x114], 0
call fcn.004069cc
lea ecx, [esp + 0x124]
mov dword [esp + 0x114], 0xffffffff
call fcn.004069cc
mov ecx, dword [esp + 0x10c]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x114
ret 0x10

Function at 0x4066c0
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x20
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp], eax
mov eax, dword [esp + 0x24]
test eax, eax
jbe 0x406744
push ebx
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
push esi
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
push edi
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
push 0x3e8
call ebp
push 1
push 0
push 0
lea eax, [esp + 0x20]
push 0
push eax
call esi
test eax, eax
je 0x40672c
lea ecx, [esp + 0x14]
push ecx
call edi
lea edx, [esp + 0x14]
push edx
call ebx
push 1
push 0
push 0
lea eax, [esp + 0x20]
push 0
push eax
call esi
test eax, eax
jne 0x40670b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x34]
sub eax, edx
cmp eax, ecx
jb 0x4066f1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4

Function at 0x406750
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov esi, 0x102
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x38]
test eax, eax
jbe 0x4067f2
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
mov eax, dword [esp + 0x34]
push 0xbb8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebp, eax
cmp ebp, 0x102
jne 0x4067e6
push 1
push 0
push 0
lea ecx, [esp + 0x20]
push 0
push ecx
call esi
test eax, eax
je 0x4067d2
lea edx, [esp + 0x14]
push edx
call edi
lea eax, [esp + 0x14]
push eax
call ebx
push 1
push 0
push 0
lea ecx, [esp + 0x20]
push 0
push ecx
call esi
test eax, eax
jne 0x4067b1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x38]
sub eax, edx
cmp eax, ecx
jb 0x406784
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 8
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 8
Function at 0x406800
Capabilities:
Initialize iwebbrowser2

Disassembly:
mov al, byte [0x40a03c]
sub esp, 0x10
test al, al
je 0x406849
call sub.MFC42.DLL_AfxOleInit
test eax, eax
jl 0x406849
push 0x40aab8
push 0x408614
push 5
push 0
push 0x408604
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x406842
mov dword [0x40aab8], 0
add esp, 0x10
ret 4
mov byte [0x40a03c], 0
mov eax, dword [0x40aab8]
test eax, eax
je 0x4068a3
mov ecx, dword [esp + 0x14]
push esi
call sub.MFC42.DLL_CString::AllocSysString
mov esi, eax
mov eax, dword [0x40aab8]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x30]
lea edx, [esp + 4]
push edx
call dword [sym.imp.OLEAUT32.dll_VariantClear]
lea edx, [esp + 4]
mov eax, dword [0x40aab8]
push edx
lea edx, [esp + 8]
push edx
lea edx, [esp + 0xc]
push edx
lea edx, [esp + 0x10]
mov word [esp + 0x10], 0
mov ecx, dword [eax]
push edx
push esi
push eax
call dword [ecx + 0x2c]
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
pop esi
add esp, 0x10
ret 4
Function at 0x40693d
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4160d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
cmp byte [ebx + 0x30], 0
jne 0x4069cb
push 0x104
lea eax, [ebp - 0x210]
push eax
mov byte [ebx + 0x30], 1
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x4069cb
push esi
push edi
lea edi, [ebp - 0x210]
dec edi
dec edi
mov ax, word [edi + 2]
inc edi
inc edi
test ax, ax
jne 0x40697f
push 6
pop ecx
lea eax, [ebp - 0x210]
mov esi, 0x4014d0
push eax
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop edi
pop esi
cmp eax, 0xffffffff
je 0x4069cb
push 0x4014ac
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebx + 0x2c], eax
test eax, eax
je 0x4069cb
push 0x401490
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x41712c], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00407fb3
leave
ret
Function at 0x4094b4
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x4160d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0xc]
push edi
xor esi, esi
push eax
mov dword [ebp - 0xc], esi
call fcn.00409a70
pop ecx
test eax, eax
je 0x4094e9
push esi
push esi
push esi
push esi
push esi
call fcn.0040c94b
add esp, 0x14
push 4
pop eax
call fcn.0040eb80
mov dword [ebp - 0x14], esp
push 0x1c
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x409605
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x58]
dec edi
neg edi
sbb edi, edi
and edi, 0x103
inc edi
cmp dword [ebp - 0xc], 2
mov dword [ebp - 8], esi
jne 0x40957e
mov dword [ebp - 0x10], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x401644
call esi
test eax, eax
jne 0x409555
push 0x401628
call esi
test eax, eax
je 0x40957e
push 0x401610
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40957e
and dword [ebp - 0x10], 0
lea ecx, [ebp - 0x10]
push ecx
call eax
cmp eax, 1
jne 0x40957e
mov eax, dword [ebp - 0x10]
test eax, eax
jbe 0x40957e
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
lea esi, [ebx - 1]
push esi
push dword [ebp - 8]
call fcn.00409488
add esp, 0xc
test eax, eax
jl 0x409605
not esi
and dword [ebp - 8], esi
je 0x4095b0
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp - 8]
call fcn.00409488
add esp, 0xc
test eax, eax
jl 0x409605
lea eax, [ebx + ebx]
cmp dword [ebp - 8], eax
jae 0x4095bb
mov dword [ebp - 8], eax
lea esi, [ebx - 1]
not esi
and esi, dword [ebp - 0x14]
sub esi, dword [ebp - 8]
cmp dword [ebp - 0xc], 1
jne 0x4095cf
push 0x11
pop ebx
mov eax, dword [ebp - 0x18]
add ebx, eax
cmp esi, ebx
jb 0x409605
push 4
push 0x1000
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x409605
lea eax, [ebp - 0x1c]
push eax
push edi
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x409605
xor eax, eax
inc eax
jmp 0x409607
xor eax, eax
lea esp, [ebp - 0x68]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00407fb3
leave
ret
Function at 0x40a17a
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
mov edi, edi
push ebx
push esi
push edi
push 0x4016ac
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
xor ebx, ebx
cmp edi, ebx
je 0x40a1cc
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401718
push edi
call esi
push 0x40170c
push edi
mov dword [0x4172a4], eax
call esi
push 0x401700
push edi
mov dword [0x4172a8], eax
call esi
push 0x4016f8
push edi
mov dword [0x4172ac], eax
call esi
mov dword [0x4172b0], eax
mov esi, dword [sym.imp.KERNEL32.dll_TlsSetValue]
cmp dword [0x4172a4], ebx
je 0x40a1f2
cmp dword [0x4172a8], ebx
je 0x40a1f2
cmp dword [0x4172ac], ebx
je 0x40a1f2
cmp dword [0x4172b0], ebx
jne 0x40a216
mov eax, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [0x4172a8], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsFree]
mov dword [0x4172a4], 0x409dcb
mov dword [0x4172ac], esi
mov dword [0x4172b0], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x41616c], eax
cmp eax, 0xffffffff
je 0x40a289
push dword [0x4172a8]
push eax
call esi
test eax, eax
je 0x40a289
call fcn.00409c86
push dword [0x4172a4]
call fcn.00409ccd
push dword [0x4172a8]
mov dword [0x4172a4], eax
call fcn.00409ccd
push dword [0x4172ac]
mov dword [0x4172a8], eax
call fcn.00409ccd
push dword [0x4172b0]
mov dword [0x4172ac], eax
call fcn.00409ccd
add esp, 0x10
mov dword [0x4172b0], eax
call fcn.0040d8bc
test eax, eax
jne 0x40a28f
call fcn.00409e08
xor eax, eax
pop edi
pop esi
pop ebx
ret
push fcn.00409fb7
push dword [0x4172a4]
call fcn.00409d53
pop ecx
call eax
mov dword [0x416170], eax
cmp eax, 0xffffffff
je 0x40a284
push 0x214
push 1
call fcn.0040ef9d
mov esi, eax
pop ecx
pop ecx
cmp esi, ebx
je 0x40a284
push esi
push dword [0x416170]
push dword [0x4172ac]
call fcn.00409d53
pop ecx
call eax
test eax, eax
jne 0x40a2e2
push esi
call fcn.00408ab7
pop ecx
jmp 0x40a284
push ebx
push esi
call fcn.00409e4a
or dword [esi + 4], 0xffffffff
pop ecx
xor eax, eax
pop ecx
inc eax
jmp 0x40a28b
Function at 0x40e5bf
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor ebx, ebx
xor esi, esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], esi
cmp edi, dword [esi*8 + 0x416a70]
je 0x40e5e5
inc esi
mov dword [ebp - 4], esi
cmp esi, 0x17
jb 0x40e5d3
cmp esi, 0x17
jae 0x40e73f
push 3
call fcn.00411631
pop ecx
cmp eax, 1
je 0x40e709
push 3
call fcn.00411631
pop ecx
test eax, eax
jne 0x40e618
cmp dword [0x417254], 1
je 0x40e709
cmp edi, 0xfc
je 0x40e73f
push 0x401dc4
mov edi, 0x314
push edi
mov esi, 0x417888
push esi
call fcn.0040ebb0
add esp, 0xc
test eax, eax
je 0x40e64e
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040c94b
add esp, 0x14
mov byte [0x4179a5], bl
push 0x104
mov ebx, 0x4178a1
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40e691
push 0x401dac
push 0x2fb
push ebx
call fcn.0040ebb0
add esp, 0xc
test eax, eax
je 0x40e691
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0040c94b
add esp, 0x14
push ebx
push edi
push esi
call fcn.0040ff0b
add esp, 0xc
xor ebx, ebx
test eax, eax
je 0x40e6af
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040c94b
add esp, 0x14
push 0x401da8
push edi
push esi
call fcn.0040ff0b
add esp, 0xc
test eax, eax
je 0x40e6cf
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040c94b
add esp, 0x14
mov eax, dword [ebp - 4]
push dword [eax*8 + 0x416a74]
push edi
push esi
call fcn.0040ff0b
add esp, 0xc
test eax, eax
je 0x40e6f4
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040c94b
add esp, 0x14
push 0x12010
push 0x401d80
push esi
call fcn.0041148a
add esp, 0xc
jmp 0x40e73f
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edi, eax
cmp edi, ebx
je 0x40e73f
cmp edi, 0xffffffff
je 0x40e73f
mov edx, dword [esi*8 + 0x416a74]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40e728
push ebx
lea eax, [ebp - 8]
push eax
sub ecx, esi
push ecx
push edx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41148a
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00409d45
xor ebx, ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
cmp dword [0x417bdc], ebx
jne 0x411563
push ebx
push ebx
push 0x402a28
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov edi, eax
cmp edi, ebx
jne 0x4114ce
xor eax, eax
jmp 0x411627
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402a1c
push edi
call esi
cmp eax, ebx
je 0x4114c7
push eax
call fcn.00409ccd
mov dword [esp], 0x402a0c
push edi
mov dword [0x417bdc], eax
call esi
push eax
call fcn.00409ccd
mov dword [esp], 0x4029f8
push edi
mov dword [0x417be0], eax
call esi
push eax
call fcn.00409ccd
mov dword [0x417be4], eax
lea eax, [ebp - 8]
push eax
call fcn.00409a70
pop ecx
pop ecx
test eax, eax
je 0x411531
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040c94b
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x411563
push 0x4029dc
push edi
call esi
push eax
call fcn.00409ccd
pop ecx
mov dword [0x417bec], eax
cmp eax, ebx
je 0x411563
push 0x4029c4
push edi
call esi
push eax
call fcn.00409ccd
pop ecx
mov dword [0x417be8], eax
mov eax, dword [0x417be8]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x4115dc
cmp dword [0x417bec], esi
je 0x4115dc
push eax
call fcn.00409d53
pop ecx
call eax
cmp eax, ebx
je 0x4115a9
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x417bec]
call fcn.00409d53
pop ecx
call eax
test eax, eax
je 0x4115a9
test byte [ebp - 0x18], 1
jne 0x4115dc
lea eax, [ebp - 0xc]
push eax
call fcn.00409ab1
pop ecx
test eax, eax
je 0x4115c4
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040c94b
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x4115d3
or dword [ebp + 0x10], 0x200000
jmp 0x41160d
or dword [ebp + 0x10], 0x40000
jmp 0x41160d
mov eax, dword [0x417be0]
cmp eax, esi
je 0x41160d
push eax
call fcn.00409d53
pop ecx
call eax
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x41160d
mov eax, dword [0x417be4]
cmp eax, esi
je 0x41160d
push dword [ebp - 4]
push eax
call fcn.00409d53
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x417bdc]
call fcn.00409d53
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret