joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004c320
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100934d8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
mov eax, dword [0x100f2050]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [sym.libprotobuf.dll_int_google::protobuf::internal::empty_string_once_init_]
cmp eax, 2
je 0x1004c384
mov dword [ebp - 0x18], vtable.google::protobuf::internal::FunctionClosure0.0
mov dword [ebp - 0x14], sym.libprotobuf.dll_void___cdecl_google::protobuf::internal::InitEmptyString_void_
mov byte [ebp - 0x10], 0
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0
push eax
push sym.libprotobuf.dll_int_google::protobuf::internal::empty_string_once_init_
call sym.libprotobuf.dll_void___cdecl_google::protobuf::GoogleOnceInitImpl_int___class_google::protobuf::Closure__
add esp, 8
lea ecx, [ebp - 0x18]
call sym.libprotobuf.dll_public_virtual:_void___thiscall_google::protobuf::internal::FunctionClosure0::destructor_void_
mov dword [esi + 0xc], 0
mov eax, dword [sym.libprotobuf.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__const_google::protobuf::internal::empty_string_]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 1
mov dword [esi + 0x24], 1
mov eax, dword [sym.libprotobuf.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__const_google::protobuf::internal::empty_string_]
mov dword [esi + 0x1c], eax
mov eax, dword [sym.libprotobuf.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__const_google::protobuf::internal::empty_string_]
mov dword [esi + 0x20], eax
mov eax, dword [sym.libprotobuf.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__const_google::protobuf::internal::empty_string_]
mov dword [esi + 0x2c], eax
mov dword [esi + 0x28], 0
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1004c860
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10093628
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
mov eax, dword [0x100f2050]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [sym.libprotobuf.dll_int_google::protobuf::internal::empty_string_once_init_]
cmp eax, 2
je 0x1004c8c4
mov dword [ebp - 0x18], vtable.google::protobuf::internal::FunctionClosure0.0
mov dword [ebp - 0x14], sym.libprotobuf.dll_void___cdecl_google::protobuf::internal::InitEmptyString_void_
mov byte [ebp - 0x10], 0
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0
push eax
push sym.libprotobuf.dll_int_google::protobuf::internal::empty_string_once_init_
call sym.libprotobuf.dll_void___cdecl_google::protobuf::GoogleOnceInitImpl_int___class_google::protobuf::Closure__
add esp, 8
lea ecx, [ebp - 0x18]
call sym.libprotobuf.dll_public_virtual:_void___thiscall_google::protobuf::internal::FunctionClosure0::destructor_void_
mov dword [esi + 0xc], 0
mov eax, dword [sym.libprotobuf.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__const_google::protobuf::internal::empty_string_]
mov dword [esi + 0x30], eax
mov eax, dword [sym.libprotobuf.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__const_google::protobuf::internal::empty_string_]
mov dword [esi + 0x34], eax
mov dword [esi + 8], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1004c900
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10093658
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
mov eax, dword [0x100f2050]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [sym.libprotobuf.dll_int_google::protobuf::internal::empty_string_once_init_]
cmp eax, 2
je 0x1004c964
mov dword [ebp - 0x18], vtable.google::protobuf::internal::FunctionClosure0.0
mov dword [ebp - 0x14], sym.libprotobuf.dll_void___cdecl_google::protobuf::internal::InitEmptyString_void_
mov byte [ebp - 0x10], 0
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0
push eax
push sym.libprotobuf.dll_int_google::protobuf::internal::empty_string_once_init_
call sym.libprotobuf.dll_void___cdecl_google::protobuf::GoogleOnceInitImpl_int___class_google::protobuf::Closure__
add esp, 8
lea ecx, [ebp - 0x18]
call sym.libprotobuf.dll_public_virtual:_void___thiscall_google::protobuf::internal::FunctionClosure0::destructor_void_
mov dword [esi + 0xc], 0
xorps xmm0, xmm0
mov eax, dword [sym.libprotobuf.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__const_google::protobuf::internal::empty_string_]
mov dword [esi + 0x20], eax
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
movsd qword [esi + 0x38], xmm0
mov eax, dword [sym.libprotobuf.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__const_google::protobuf::internal::empty_string_]
mov dword [esi + 0x40], eax
mov eax, dword [sym.libprotobuf.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__const_google::protobuf::internal::empty_string_]
mov dword [esi + 0x44], eax
mov dword [esi + 8], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100578c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100946ab
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x100f2050]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov byte [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [ebp - 0x10], edi
push 0x10
lfence
call fcn.1008b17c
mov esi, eax
mov dword [esi], esi
mov dword [esi + 4], esi
mov dword [edi + 8], esi
mov dword [ebp - 0x14], 0x3fffffff
mov dword [ebp - 4], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [ebp - 0x14], 0x7fffffff
push 0x40
lfence
call fcn.1008b17c
mov dword [edi + 0x10], eax
add esp, 8
lea ecx, [eax + 0x40]
mov dword [edi + 0x18], ecx
mov dword [eax], esi
mov dword [eax + 4], esi
mov dword [eax + 8], esi
mov dword [eax + 0xc], esi
mov dword [eax + 0x10], esi
mov dword [eax + 0x14], esi
mov dword [eax + 0x18], esi
mov dword [eax + 0x1c], esi
mov dword [eax + 0x20], esi
mov dword [eax + 0x24], esi
mov dword [eax + 0x28], esi
mov dword [eax + 0x2c], esi
mov dword [eax + 0x30], esi
mov dword [eax + 0x34], esi
mov dword [eax + 0x38], esi
mov dword [eax + 0x3c], esi
mov eax, edi
mov dword [edi + 0x14], ecx
mov dword [edi + 0x1c], 7
mov dword [edi + 0x20], 8
mov dword [edi + 4], 0x3f800000
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10072460
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100963f9
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x100f2050]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x40], eax
cmp byte [edi + 9], bl
je 0x100724d1
push 0x8a
push str.C:Projects_sw_toolsprotobufprotobuf_2.6.1_srcgoogleprotobufiozero_copy_stream_impl.cc
push 3
lea ecx, [ebp - 0x34]
call sym.libprotobuf.dll_public:_void___thiscall_google::protobuf::internal::LogMessage::constructor_enum_google::protobuf::LogLevel__char_const___int_
mov dword [ebp - 4], ebx
mov ecx, eax
mov ebx, 1
push str.CHECK_failed:__is_closed_:
mov dword [ebp - 0x3c], ebx
call sym.libprotobuf.dll_public:_class_google::protobuf::internal::LogMessage____thiscall_google::protobuf::internal::LogMessage::operator___char_const__
push eax
lea ecx, [ebp - 0x35]
call sym.libprotobuf.dll_public:_void___thiscall_google::protobuf::internal::LogFinisher::operator_class_google::protobuf::internal::LogMessage__
test bl, 1
je 0x100724de
lea ecx, [ebp - 0x34]
call sym.libprotobuf.dll_public:_void___thiscall_google::protobuf::internal::LogMessage::destructor_void_
mov ebx, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
push dword [ebp + 0xc]
push dword [ebp - 0x40]
push dword [edi + 4]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
mov esi, eax
add esp, 0xc
test esi, esi
jns 0x1007250a
call ebx
cmp dword [eax], 4
je 0x100724e4
call ebx
mov eax, dword [eax]
mov dword [edi + 0xc], eax
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1008b1d6
mov esp, ebp
pop ebp
ret 8

Function at 0x10073d81
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x10073dbc

Function at 0x10073e00
Capabilities:
Resolve function by parsing pe exports

Disassembly:
cmp eax, 0x45ffffff
dec esi
fadd st(0)
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x3c]
add esi, edi
push esi
mov ebx, dword [esi + 0x78]
push ebx
call fcn.10073d81
pop ecx
test eax, eax
pop ecx
je 0x10073ecc
push edi
push esi
push ebx
call fcn.10073dc1
mov esi, dword [esi + 0x78]
xor ecx, ecx
add esp, 0xc
cmp esi, ecx
je 0x10073ecc
mov ebx, dword [esi + edi + 0x24]
mov eax, dword [esi + edi + 0x20]
mov edx, dword [ebp + 0xc]
add esi, edi
add ebx, edi
add eax, edi
mov edi, dword [esi + 0x1c]
mov dword [ebp - 0x18], eax
add edi, dword [ebp + 8]
shr edx, 0x10
test dx, dx
je 0x10073edb
mov dword [ebp - 4], ecx
mov eax, dword [esi + 0x10]
mov edx, edi
cmp dword [ebp + 0xc], eax
jne 0x10073eea
cmp dword [edx], 0
jne 0x10073ef9
mov ebx, dword [esi + 0x14]
inc ecx
inc eax
add edx, 4
dec ebx
cmp ecx, ebx
jbe 0x10073ee0
jmp 0x10073ecc
mov eax, dword [edi + ecx*4]
shl eax, 6
Function at 0x10075ce0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
invalid
je 0x10075d15
lea eax, [ebp - 0x714]
push eax
call fcn.10073d51
pop ecx
push eax
push dword [ebp - 0x3a4]
push dword [ebp + 0x14]
call fcn.10073d06
add esp, 0xc
mov dword [ebp - 0x37c], eax
cmp dword [ebp - 0x37c], 0
jne 0x10075d15
jmp 0x100756d4
cmp dword [ebp - 0x37c], 0
je 0x10075d23
jmp 0x10075de1
push 0
push 0
push 2
push 0
push 2
push 0x40000000
push dword [ebp - 0x3a0]
call dword [ebp - 0x3c8]
mov dword [ebp - 0x380], eax
call fcn.10073d41
mov al, 0x93
xchg edi, eax
jmp 0x10075cd1
cmp dword [ebp - 0x37c], 0
jne 0x10075e94
mov eax, dword [ebp - 0x748]
mov dword [ebp - 0x7ec], eax
mov eax, dword [ebp - 0x38c]
push dword [ebp + 0x1c]
push dword [ebp - 0xc]
push dword [ebp - 0x540]
push dword [ebp - 0x684]
push dword [ebp - 0x688]
push dword [ebp - 0x3ac]
push dword [ebp - 0x400]
push dword [ebp - 0x54c]
push dword [ebp - 0x678]
lea eax, [ebp - 0x334]
push eax
push dword [ebp - 4]
invalid
invalid
Function at 0x412ed0
Capabilities:
Terminate process

Disassembly:
call fcn.00413815
jmp 0x412eda
push 0x58
push 0x419330
call fcn.004138c8
xor ebx, ebx
mov dword [ebp - 0x20], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, ebx
mov edx, 0x41e22c
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x412f2c
cmp eax, esi
jne 0x412f1f
xor esi, esi
inc esi
mov edi, esi
jmp 0x412f2f
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x412f03
xor esi, esi
inc esi
cmp dword [0x41e230], esi
jne 0x412f41
push 0x1f
call fcn.004b1000
pop ecx
jmp 0x412f7b
cmp dword [0x41e230], ebx
jne 0x412f75
mov dword [0x41e230], esi
push 0x401024
push 0x401018
call fcn.004130b9
pop ecx
pop ecx
test eax, eax
je 0x412f7b
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x4130a9
mov dword [0x41decc], esi
cmp dword [0x41e230], esi
jne 0x412f9e
push 0x401014
push section..text
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x41e230], 2
test edi, edi
jne 0x412fab
xor eax, eax
mov ecx, 0x41e22c
xchg dword [ecx], eax
cmp dword [0x41e23c], 0
je 0x412fd7
push 0x41e23c
call fcn.00413720
pop ecx
test eax, eax
je 0x412fd7
push ebx
push 2
push ebx
mov esi, dword [0x41e23c]
mov ecx, esi
call dword [0x41f2f0]
call esi
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x1c], esi
mov edi, dword [ebp - 0x20]
mov cl, byte [esi]
cmp cl, 0x20
ja 0x413035
test cl, cl
je 0x413004
test edi, edi
jne 0x413035
test cl, cl
je 0x413004
cmp cl, 0x20
ja 0x413004
inc esi
mov dword [ebp - 0x1c], esi
mov cl, byte [esi]
jmp 0x412ff3
test byte [ebp - 0x3c], 1
je 0x413010
movzx eax, word [ebp - 0x38]
jmp 0x413013
push 0xa
pop eax
push eax
push esi
push ebx
push 0x400000
call main
mov dword [0x41dec8], eax
cmp dword [0x41dee0], 0
jne 0x41308e
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cl, 0x22
jne 0x413046
xor eax, eax
test edi, edi
sete al
mov edi, eax
mov dword [ebp - 0x20], edi
movzx eax, cl
push eax
call dword [sym.imp.msvcrt.dll__ismbblead]
pop ecx
test eax, eax
je 0x413059
inc esi
mov dword [ebp - 0x1c], esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x412fe4
cmp dword [0x41decc], 0
jne 0x4130a2
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x41dec8]
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x413604
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x419370
call fcn.004138c8
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x413664
cmp eax, 0xffffffff
je 0x413664
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x41365d
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x41365d
cmp edx, 0x10000000
jae 0x41365d
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x41365a
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4012c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4012db
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401312
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x40130e
jmp 0x401300
cmp esi, eax
jae 0x401312
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401300
cmp esi, eax
jb 0x401319
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x404c2e
Capabilities:
Query environment variable

Disassembly:
push 0x214
mov eax, 0x5336a9
call fcn.0050a549
mov eax, dword [ebp + 8]
xor ebx, ebx
mov edi, ecx
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], ebx
cmp edi, ebx
je 0x404d15
cmp word [edi], bx
je 0x404d15
mov esi, 0x104
push esi
lea eax, [ebp - 0x218]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x404c8a
push edi
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.00509fcf
add esp, 0xc
lea edi, [ebp - 0x218]
call fcn.00408c82
mov esi, dword [ebp - 0x220]
mov eax, edi
push eax
call fcn.00404bd9
mov dword [ebp - 0x21c], eax
cmp eax, ebx
jne 0x404d15
push 0x40
call fcn.00412216
mov edi, eax
pop ecx
mov dword [ebp - 0x21c], edi
mov dword [ebp - 4], ebx
cmp edi, ebx
je 0x404cf1
lea ecx, [edi + 4]
lea eax, [ebp - 0x218]
mov byte [edi], 1
call fcn.00403140
mov byte [ebp - 4], 1
mov dword [edi + 0x20], ebx
xor eax, eax
mov dword [edi + 0x38], 7
mov dword [edi + 0x34], ebx
mov word [edi + 0x24], ax
mov byte [ebp - 4], bl
jmp 0x404cf3
xor edi, edi
or dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x21c], edi
cmp edi, ebx
je 0x404d15
mov esi, dword [ebp - 0x220]
add esi, 0x50
lea ecx, [ebp - 0x21c]
call fcn.00403d67
mov eax, dword [ebp - 0x21c]
call fcn.0050a5cc
ret 4
Function at 0x405d8f
Capabilities:
Write file on windows

Disassembly:
push 0x3c
mov eax, 0x5335c8
call fcn.0050a549
and dword [ebp - 0x30], 0
mov esi, edx
mov eax, dword [esi + 0x2fc]
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ecx
test eax, eax
jle 0x405e77
cmp ecx, 0xffffffff
je 0x405e77
mov eax, str.____Queued_Lines_End_____r_n
lea ecx, [ebp - 0x2c]
call fcn.00403140
mov dword [ebp - 4], 1
lea edi, [esi + 0x2ec]
mov ebx, eax
call fcn.0040774e
or dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x2c]
call fcn.00402b60
xor ebx, ebx
jmp 0x405e68
lea eax, [ebp - 0x48]
push eax
mov ecx, edi
call fcn.00407b5f
mov ecx, dword [eax]
cmp ecx, ebx
jne 0x405e04
xor ecx, ecx
jmp 0x405e06
mov ecx, dword [ecx]
mov eax, dword [eax + 8]
mov edx, dword [ecx + 8]
cmp edx, eax
ja 0x405e12
sub eax, edx
mov ecx, dword [ecx + 4]
mov eax, dword [ecx + eax*4]
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
jb 0x405e23
mov eax, dword [eax]
push ebx
lea edx, [ebp - 0x3c]
push edx
add ecx, ecx
push ecx
push eax
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x405e3f
mov eax, dword [ebp - 0x3c]
add dword [ebp - 0x30], eax
cmp dword [edi + 0x10], ebx
je 0x405e68
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 4]
mov esi, dword [ecx + eax*4]
call fcn.00402b60
inc dword [edi + 0xc]
mov eax, dword [edi + 0xc]
cmp dword [edi + 8], eax
ja 0x405e60
mov dword [edi + 0xc], ebx
dec dword [edi + 0x10]
jne 0x405e68
mov dword [edi + 0xc], ebx
mov eax, dword [ebp - 0x34]
cmp dword [eax + 0x2fc], ebx
ja 0x405def
mov eax, dword [ebp - 0x30]
call fcn.0050a5cc
ret
Function at 0x4067db
Capabilities:
Print debug messages

Disassembly:
push 0x24
mov eax, 0x533a72
call fcn.0050a549
mov eax, dword [ebp + 0x10]
and dword [ebp - 0x1c], 0
mov dword [ebp - 0x30], eax
xor eax, eax
mov ebx, ecx
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
and dword [ebp - 4], eax
push dword [ebp + 0xc]
lea edx, [ebp - 0x2c]
push dword [ebp + 8]
push dword [edi + 0x10]
call fcn.004064d4
test dword [ebp + 8], 0x8000000
jne 0x406826
test dword [edi + 0x10], 0x80000
je 0x406859
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x406832
lea eax, [ebp - 0x2c]
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push eax
call esi
mov ecx, ebx
call fcn.004059c9
cmp dword [eax + 0x14], 8
jb 0x40684a
mov eax, dword [eax]
push eax
call esi
push dword [ebp - 0x30]
call esi
push 0x563bb4
call esi
mov eax, edi
call fcn.00408eda
push eax
call fcn.0050ac49
pop ecx
test eax, eax
je 0x406884
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x406877
lea eax, [ebp - 0x2c]
push dword [ebp - 0x30]
mov edx, edi
push eax
mov ecx, ebx
call fcn.00405e80
test dword [edi + 0x10], 0x10000000
je 0x40689a
add ebx, 0xa0
push ebx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
or dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x2c]
call fcn.00402b60
call fcn.0050a5cc
ret 0xc

Function at 0x4068ae
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push ebx
push esi
push dword [ebp + 0xc]
xor esi, esi
push esi
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
cmp ebx, esi
je 0x406924
lea eax, [ebp + 0xc]
push eax
push 0x400
lea eax, [ebp - 0x400]
push eax
push ebx
call dword [sym.imp.PSAPI.DLL_EnumProcessModules]
test eax, eax
je 0x40691d
test dword [ebp + 0xc], 0xfffffffc
jbe 0x40691d
push edi
mov edi, dword [ebp + 8]
add edi, 0xd4
push 0x104
push edi
push dword [ebp + esi*4 - 0x400]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov eax, dword [ebp + 0xc]
inc esi
shr eax, 2
cmp esi, eax
jb 0x4068fe
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebx
leave
ret 8
Function at 0x406bc5
Capabilities:
Get common file path

Disassembly:
push 0x254
mov eax, 0x533cd3
call fcn.0050a549
xor ebx, ebx
mov esi, ecx
mov dword [ebp - 0x260], esi
cmp edi, ebx
je 0x406e0c
mov eax, dword [edi + 0x14]
cmp eax, ebx
je 0x406bf1
mov al, byte [eax]
jmp 0x406bf4
mov al, byte [edi + 0x18]
cmp al, bl
je 0x406e0c
mov eax, edi
call fcn.00408eda
push 7
mov dword [ebp - 0x258], eax
pop eax
xor ecx, ecx
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x228], ebx
mov word [ebp - 0x238], cx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x240], eax
xor eax, eax
mov dword [ebp - 0x244], ebx
mov word [ebp - 0x254], ax
mov byte [ebp - 4], 1
push dword [ebp - 0x258]
call dword [sym.imp.SHLWAPI.dll_PathIsFileSpecW]
add esi, 0xd4
test eax, eax
je 0x406c7f
push esi
push ebx
push ebx
push 0x8023
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp - 0x238]
push eax
mov eax, esi
call fcn.00403110
lea eax, [ebp - 0x254]
push eax
mov eax, dword [ebp - 0x258]
jmp 0x406cb6
push dword [ebp - 0x258]
push 0x104
push esi
call fcn.00509fcf
add esp, 0xc
push esi
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
lea ecx, [ebp - 0x254]
push ecx
call fcn.00403110
push esi
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x238]
push eax
mov eax, esi
call fcn.00403110
test dword [edi + 0x10], 0x20000
je 0x406d29
cmp dword [ebp - 0x240], 8
mov ecx, dword [ebp - 0x254]
jae 0x406cd9
lea ecx, [ebp - 0x254]
cmp dword [ebp - 0x224], 8
mov eax, dword [ebp - 0x238]
jae 0x406cee
lea eax, [ebp - 0x238]
push esi
push ebx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
cmp eax, ebx
jbe 0x406d29
push 0x104
lea eax, [ebp - 0x21c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, ebx
jbe 0x406d29
mov eax, dword [edi + 0x14]
cmp eax, ebx
je 0x406d29
add eax, 4
push eax
lea eax, [ebp - 0x21c]
call fcn.00403110
mov eax, edi
call fcn.00408eda
push eax
mov dword [ebp - 0x258], eax
call fcn.0050ac49
pop ecx
test eax, eax
je 0x406db1
test dword [edi + 0x10], 0x10000
push ebx
push 0x80
je 0x406d54
push 2
jmp 0x406d56
push 4
push ebx
push ebx
push 0x40000000
push dword [ebp - 0x258]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x25c], eax
cmp eax, 0xffffffff
je 0x406db1
lea eax, [ebp - 0x258]
push eax
push esi
push 0x104
push ebx
push dword [ebp - 0x258]
push ebx
call dword [sym.imp.KERNEL32.dll_SearchPathW]
cmp eax, ebx
jbe 0x406da5
mov eax, dword [edi + 0x14]
cmp eax, ebx
je 0x406da5
add eax, 4
push eax
mov eax, esi
call fcn.00403110
push dword [ebp - 0x25c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test dword [edi + 0xc], 0x40000000
je 0x406de1
mov ecx, dword [ebp - 0x260]
push edi
call fcn.0040692a
test dword [edi + 0x10], 0x100000
je 0x406de1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push dword [ebp - 0x260]
call fcn.004068ae
mov eax, dword [edi + 0x14]
cmp eax, ebx
je 0x406dec
mov byte [eax], bl
jmp 0x406def
mov byte [edi + 0x18], bl
mov byte [ebp - 4], bl
lea esi, [ebp - 0x254]
call fcn.00402b60
or dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x238]
call fcn.00402b60
call fcn.0050a5cc
ret