joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4011ac
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str.CAgentDataWindow::OnGetHandleOfThunder___Enter
call esi
call dword [sym.imp.USER32.dll_InSendMessage]
test eax, eax
je 0x401238
push str.CAgentDataWindow::OnGetHandleOfThunder___InSendMessage
call esi
push dword [ebp + 0xc]
push 0
push 0x40
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
mov dword [ebp + 0xc], eax
je 0x401231
push edi
push str.CAgentDataWindow::OnGetHandleOfThunder___open_ie_process_success.
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
and dword [ebp - 4], 0
push 2
push 0
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
call edi
push eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push dword [ebp + 0xc]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
pop edi
je 0x40122a
push str.CAgentDataWindow::OnGetHandleOfThunder___DuplicateHandle_success.
call esi
mov eax, dword [ebp - 4]
jmp 0x401241
push str.CAgentDataWindow::OnGetHandleOfThunder___DuplicateHandle_fail.
jmp 0x401236
push str.CAgentDataWindow::OnGetHandleOfThunder___open_ie_process_fail.
call esi
push str.CAgentDataWindow::OnGetHandleOfThunder___InSendMessage_return_zero
call esi
xor eax, eax
pop esi
leave
ret 0x10

Function at 0x40135d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401372
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x401384
xor eax, eax
jmp 0x4013b6
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x4013a8
cmp esi, eax
jae 0x401380
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x40139a
cmp esi, eax
jae 0x401380
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop ebp
ret
Function at 0x4049c4
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x4aa647
call fcn.0049f0d0
sub esp, 0x44
mov eax, dword [0x4f0dd0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
mov dword [ebp - 0x20], ecx
xor esi, esi
lea ecx, [ebp + 8]
mov dword [ebp - 4], esi
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x404ad7
mov dword [ebp - 0x14], esi
push esi
push esi
push 0x80
push 3
push 1
push 1
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
lea ecx, [ebp - 0x14]
call fcn.00401506
cmp eax, esi
je 0x404a3d
cmp dword [ebp - 0x14], esi
je 0x404ad7
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x404ad7
push ebx
xor ebx, ebx
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x48], esi
push 4
push 2
push esi
push esi
push esi
push dword [ebp - 0x14]
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 2
call fcn.0040153c
cmp eax, esi
jne 0x404abe
cmp dword [ebp - 0x50], esi
je 0x404abe
mov ecx, dword [ebp - 0x20]
push edi
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x50]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
call fcn.0040401b
mov edi, dword [ebp - 0x18]
cmp edi, esi
mov ebx, eax
je 0x404abd
cmp ebx, esi
je 0x404ab7
mov eax, dword [edi]
push edi
call dword [eax + 4]
mov eax, dword [ebp - 0x20]
push edi
push dword [ebp - 0x1c]
push 0x1401
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [edi]
push edi
call dword [eax + 8]
pop edi
lea ecx, [ebp - 0x50]
call fcn.004015e9
cmp dword [ebp - 0x14], esi
je 0x404ad4
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, ebx
pop ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0049f127
leave
ret 0x1c
Function at 0x404aff
Capabilities:
Delete registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
lea eax, [ebp - 8]
push eax
push 0xf003f
xor ebx, ebx
push ebx
push str.SOFTWAREThunder_NetworkThunderOem_thunder_backwnd
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x18], ecx
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x404c80
cmp dword [ebp - 8], ebx
je 0x404c80
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebp - 0xc]
push eax
push ebx
mov edi, str.ThunderAgent.TaskList2.Unicode
push edi
push dword [ebp - 8]
mov dword [ebp - 0xc], 3
mov dword [ebp - 4], ebx
call esi
test eax, eax
jne 0x404bc5
cmp dword [ebp - 4], ebx
je 0x404bc5
push dword [ebp - 4]
call fcn.0049ecdd
pop ecx
lea ecx, [ebp - 4]
push ecx
push eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
push eax
push ebx
push edi
push dword [ebp - 8]
call esi
test eax, eax
je 0x404b93
push edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp dword [ebp - 0x10], ebx
je 0x404bc5
mov edi, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x10]
mov ecx, edi
mov dword [ebp - 0x14], ebx
call fcn.00403696
jmp 0x404c45
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebp - 0xc]
push eax
push ebx
mov edi, str.ThunderAgent.TaskList2
push edi
push dword [ebp - 8]
mov dword [ebp - 4], ebx
call esi
test eax, eax
jne 0x404c73
cmp dword [ebp - 4], ebx
je 0x404c73
push dword [ebp - 4]
call fcn.0049ecdd
pop ecx
lea ecx, [ebp - 4]
push ecx
push eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
push eax
push ebx
push edi
push dword [ebp - 8]
call esi
test eax, eax
je 0x404c18
push edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp dword [ebp - 0x10], ebx
je 0x404c73
mov edi, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x10]
mov ecx, edi
mov dword [ebp - 0x14], ebx
call fcn.0040401b
push dword [ebp - 0x10]
call sub.MSVCR71.dll_void___cdecl_operator_delete___void__
mov esi, dword [ebp - 0x14]
cmp esi, ebx
pop ecx
je 0x404c73
mov eax, dword [esi]
push esi
call dword [eax + 4]
push esi
push dword [ebp - 0x18]
push 0x1401
push dword [edi + 4]
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [esi]
push esi
call dword [eax + 8]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
jmp 0x404c86
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop ebx
leave
ret
Function at 0x404ce2
Capabilities:
Read file via mapping

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0xe0
mov eax, dword [0x4f0dd0]
push ebx
mov ebx, dword [ebp + 0x78]
push esi
push edi
xor eax, ebp
mov dword [ebp + 0x68], eax
mov eax, dword [ebp + 0x7c]
push 0x31
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], ecx
pop ecx
push dword [ebp + 0x74]
xor eax, eax
xor esi, esi
mov word [ebp - 0x60], si
lea edi, [ebp - 0x5e]
rep stosd dword es:[edi], eax
push str.ThunderAgent.Unicode
stosw word es:[edi], ax
lea eax, [ebp - 0x60]
push str._s_TaskData__08x
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x60]
push eax
push esi
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
cmp eax, esi
mov dword [ebp - 0x6c], eax
je 0x404d87
push esi
push esi
push esi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
cmp edi, esi
je 0x404d7e
push dword [ebp - 0x68]
mov ecx, dword [ebp - 0x64]
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x70]
push eax
push ebx
push edi
call fcn.00403696
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x6c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0x68]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049f127
add ebp, 0x6c
leave
ret 0xc

Function at 0x404d9d
Capabilities:
Read file via mapping

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0xe0
mov eax, dword [0x4f0dd0]
push ebx
mov ebx, dword [ebp + 0x78]
push esi
push edi
xor eax, ebp
mov dword [ebp + 0x68], eax
mov eax, dword [ebp + 0x7c]
push 0x31
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], ecx
pop ecx
push dword [ebp + 0x74]
xor eax, eax
xor esi, esi
mov word [ebp - 0x60], si
lea edi, [ebp - 0x5e]
rep stosd dword es:[edi], eax
push str.ThunderAgent
stosw word es:[edi], ax
lea eax, [ebp - 0x60]
push str._s_TaskData__08x
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x60]
push eax
push esi
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
cmp eax, esi
mov dword [ebp - 0x6c], eax
je 0x404e42
push esi
push esi
push esi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
cmp edi, esi
je 0x404e39
push dword [ebp - 0x68]
mov ecx, dword [ebp - 0x64]
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x70]
push eax
push ebx
push edi
call fcn.0040401b
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x6c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0x68]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049f127
add ebp, 0x6c
leave
ret 0xc
Function at 0x404e58
Capabilities:
Read file via mapping

Disassembly:
push ebp
lea ebp, [esp - 0x50]
sub esp, 0xf4
mov eax, dword [0x4f0dd0]
xor eax, ebp
and word [ebp - 0x7c], 0
mov dword [ebp + 0x4c], eax
mov eax, dword [ebp + 0x64]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp + 0x68]
mov dword [ebp - 0x88], eax
mov eax, dword [ebp + 0x6c]
mov dword [ebp - 0x84], eax
mov eax, dword [ebp + 0x70]
push ebx
mov ebx, dword [ebp + 0x60]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp + 0x74]
push esi
mov esi, dword [ebp + 0x5c]
push edi
mov dword [ebp - 0x98], eax
mov eax, dword [ebp + 0x78]
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp + 0x7c]
push 0x31
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0x94], ecx
pop ecx
push dword [ebp + 0x58]
xor eax, eax
lea edi, [ebp - 0x7a]
rep stosd dword es:[edi], eax
push str.ThunderAgent.Unicode
stosw word es:[edi], ax
lea eax, [ebp - 0x7c]
push str._s_TaskData__08x
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x7c]
push eax
xor edi, edi
push edi
push 4
mov dword [ebp - 0x80], edi
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
cmp eax, edi
mov dword [ebp - 0x9c], eax
je 0x404f62
push edi
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
je 0x404f56
push dword [ebp - 0xa0]
mov ecx, dword [ebp - 0x94]
push dword [ebp - 0xa4]
push dword [ebp - 0x98]
push dword [ebp - 0x90]
push dword [ebp - 0x84]
push dword [ebp - 0x88]
push dword [ebp - 0x8c]
push ebx
push esi
push edi
call fcn.0040303c
push edi
mov dword [ebp - 0x80], eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x9c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0x4c]
mov eax, dword [ebp - 0x80]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049f127
add ebp, 0x50
leave
ret 0x28
Function at 0x407b3b
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x4aa903
call fcn.0049f0d0
push ecx
push ebx
push esi
xor ebx, ebx
mov esi, ecx
inc ebx
push edi
mov dword [ebp - 0x10], esi
mov dword [esi + 0xc], ebx
xor edi, edi
lea ecx, [esi + 0x14]
mov dword [ebp - 4], edi
mov dword [esi], vtable.xl::xml::basic_xml_element_char_.0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
lea ecx, [esi + 0x30]
mov byte [ebp - 4], bl
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
lea ecx, [esi + 0x4c]
mov byte [ebp - 4], 2
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
mov dword [esi + 0x6c], edi
mov dword [esi + 0x70], edi
mov dword [esi + 0x74], edi
lea eax, [esi + 0x80]
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
push dword [ebp + 8]
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 5
mov dword [esi + 8], ebx
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x78], edi
mov dword [esi + 0x90], edi
mov dword [esi + 0x7c], eax
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8

Function at 0x4083dd
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x4aa980
call fcn.0049f0d0
sub esp, 0x20
mov eax, dword [0x4f0dd0]
push esi
xor eax, ebp
push edi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
push 0x4b8670
push eax
mov edi, ecx
call dword [sym.imp.MSVCR71.dll__wfopen]
mov esi, eax
test esi, esi
pop ecx
pop ecx
jne 0x408413
xor al, al
jmp 0x408461
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
and dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
push eax
mov ecx, edi
call fcn.00408320
push esi
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP71.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::size_void_const]
push eax
push 1
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP71.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
call dword [sym.imp.MSVCR71.dll_fwrite]
push esi
call dword [sym.imp.MSVCR71.dll_fclose]
or dword [ebp - 4], 0xffffffff
add esp, 0x14
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop edi
xor ecx, ebp
pop esi
call fcn.0049f127
leave
ret 4
Function at 0x409138
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x4aaa96
call fcn.0049f0d0
mov eax, 0x4010
call fcn.0049f1f0
mov eax, dword [0x4f0dd0]
push ebx
push esi
xor eax, ebp
push edi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov edi, ecx
push 0x4b8894
push eax
mov dword [ebp - 0x4018], edi
mov dword [ebp - 0x401c], eax
mov byte [ebp - 0x4011], 1
call dword [sym.imp.MSVCR71.dll__wfopen]
mov esi, eax
xor ebx, ebx
cmp esi, ebx
pop ecx
pop ecx
jne 0x40918e
xor al, al
jmp 0x40923e
push ebx
add edi, 4
push ebx
mov ecx, edi
call fcn.004090e2
test byte [esi + 0xc], 0x10
jne 0x4091e4
cmp byte [ebp - 0x4011], bl
je 0x409230
push esi
push 0x4000
lea eax, [ebp - 0x4010]
push 1
push eax
call dword [sym.imp.MSVCR71.dll_fread]
add esp, 0x10
push ebx
push eax
lea eax, [ebp - 0x4010]
push eax
mov ecx, edi
call fcn.00436a5e
test byte [esi + 0xc], 0x10
mov byte [ebp - 0x4011], al
je 0x4091a0
cmp al, bl
je 0x409230
mov edi, dword [ebp - 0x4018]
cmp dword [edi + 0x18], ebx
je 0x409230
push 0x48
call fcn.0049ecb8
pop ecx
mov dword [ebp - 0x4018], eax
cmp eax, ebx
mov dword [ebp - 4], ebx
je 0x40920d
mov ecx, eax
call fcn.004066d0
mov ebx, eax
push dword [ebp - 0x401c]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebx + 0x10]
call dword [sym.imp.MSVCP71.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
mov ecx, dword [edi + 0x18]
push ebx
call fcn.00407066
mov ecx, ebx
call fcn.004063b8
push esi
call dword [sym.imp.MSVCR71.dll_fclose]
mov al, byte [ebp - 0x4011]
pop ecx
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
xor ecx, ebp
pop ebx
call fcn.0049f127
leave
ret 4
Function at 0x409b7c
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push edi
xor edi, edi
push edi
push 0x8000080
push 3
push edi
push 1
push Ordinal_1
push dword [ebp + 8]
mov dword [ebx], edi
mov dword [esi], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp + 0xc], eax
jne 0x409bb3
or eax, eax
jmp 0x409bf2
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 1
mov dword [esi], eax
jb 0x409be4
push eax
call fcn.0049ecdd
cmp eax, edi
pop ecx
mov dword [ebx], eax
je 0x409be4
push edi
lea ecx, [ebp + 0x10]
push ecx
push dword [esi]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x409be7
or edi, 0xffffffff
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x409d92
Capabilities:
Enumerate files on windows

Disassembly:
mov eax, 0x4aaba3
call fcn.0049f0d0
sub esp, 0x274
mov eax, dword [0x4f0dd0]
push esi
mov esi, dword [ebp + 0x24]
xor eax, ebp
mov dword [ebp - 0x10], eax
push edi
mov dword [ebp - 0x280], ecx
and dword [ebp - 4], 0
push 0x4b898c
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00406b0a
add esp, 0xc
lea ecx, [ebp - 0x27c]
push ecx
mov ecx, eax
mov byte [ebp - 4], 1
call dword [sym.imp.MSVCP71.dll_public:_wchar_t_const____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::c_str_void_const]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
lea ecx, [ebp - 0x2c]
mov edi, eax
mov byte [ebp - 4], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
cmp edi, 0xffffffff
je 0x409e76
lea eax, [ebp - 0x250]
push eax
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
lea eax, [ebp - 0x2c]
push 0x4b8988
push eax
mov byte [ebp - 4], 2
call dword [sym.imp.MSVCP71.dll_bool___cdecl_std::operator_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___wchar_t_const__]
test al, al
pop ecx
pop ecx
jne 0x409e50
lea eax, [ebp - 0x2c]
push 0x4b8980
push eax
call dword [sym.imp.MSVCP71.dll_bool___cdecl_std::operator_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___wchar_t_const__]
test al, al
pop ecx
pop ecx
jne 0x409e50
test esi, esi
je 0x409e50
mov ecx, dword [ebp - 0x280]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp + 8]
push eax
call esi
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea eax, [ebp - 0x27c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x409dfe
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop edi
xor ecx, ebp
pop esi
call fcn.0049f127
leave
ret 0x20
Function at 0x40fb5d
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x4f0dd0]
xor eax, ebp
mov dword [ebp + 0x94], eax
push 0x114
lea eax, [ebp - 0x80]
push 0
push eax
call sub.MSVCR71.dll_memset
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x7c], 6
mov ecx, dword [ebp + 0x94]
sbb eax, eax
xor ecx, ebp
inc eax
call fcn.0049f127
add ebp, 0x98
leave
ret

Function at 0x40fbfe
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push 0x40
lea eax, [ebp - 0x50]
push 0
push eax
call sub.MSVCR71.dll_memset
add esp, 0xc
lea eax, [ebp - 0x50]
push eax
mov dword [ebp - 0x50], 0x40
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x48]
and dword [ebp - 8], 0
mov dword [ebp - 4], eax
and dword [ebp - 4], 0x80000000
and eax, 0x7fffffff
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], ecx
fild qword [ebp - 0x10]
fild qword [ebp - 8]
fchs
faddp st(1)
fmul qword [0x4ba8a0]
fmul qword [0x4ba8a0]
fadd qword [0x4ba898]
fcomp qword [0x4ba890]
fnstsw ax
test ah, 5
jp 0x40fc71
push 0x28
jmp 0x40fc73
push 0x50
pop eax
leave
ret

Function at 0x4103c1
Capabilities:
Create thread
Resume thread

Disassembly:
mov eax, 0x4abb87
call fcn.0049f0d0
push ecx
push ecx
push esi
push edi
push 0x44
mov edi, ecx
call fcn.0049ecb8
pop ecx
mov ecx, eax
mov dword [ebp - 0x14], ecx
and dword [ebp - 4], 0
test ecx, ecx
je 0x4103f0
push edi
call fcn.0041033d
mov esi, eax
jmp 0x4103f2
xor esi, esi
or dword [ebp - 4], 0xffffffff
and dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
push 4
push esi
push 0x41029e
push 0
push 0
mov dword [ebp - 0x14], esi
call dword [sym.imp.MSVCR71.dll__beginthreadex]
add esp, 0x18
test eax, eax
jne 0x410433
test esi, esi
je 0x41042c
mov ecx, esi
call fcn.004101b5
push esi
call sub.MSVCR71.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, 0x80004005
jmp 0x410453
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esi + 8], eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [edi + 4]
call fcn.00410216
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x4105e4
Capabilities:
Print debug messages
Terminate process

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push Ordinal_1
call dword [sym.imp.KERNEL32.dll_SetThreadExecutionState]
cmp dword [esp + 8], 0
je 0x410612
push dword [esp + 0xc]
mov ecx, 0x4f4060
call fcn.0041185e
test eax, eax
jne 0x410621
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
ret