joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406180
Capabilities:
Access peb ldr_data
Enumerate pe sections
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x40f8a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 0
push 0x2e
lea ecx, [esp + 0x1c]
call fcn.004076d0
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x30]
push 1
push 0x2e
push eax
mov ecx, edi
mov dword [esp + 0x34], 0
call fcn.00406880
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov dword [esi + 4], ecx
mov dx, word [eax + 4]
mov word [esi + 8], dx
mov cx, word [eax + 6]
mov word [esi + 0xa], cx
mov dx, word [eax + 8]
mov word [esi + 0xc], dx
mov cx, word [eax + 0xa]
mov word [esi + 0xe], cx
mov dx, word [eax + 0xc]
mov word [esi + 0x10], dx
mov cx, word [eax + 0xe]
mov word [esi + 0x12], cx
mov edx, dword [eax + 0x10]
mov dword [esi + 0x14], edx
mov ecx, dword [eax + 0x14]
mov dword [esi + 0x18], ecx
mov edx, dword [eax + 0x18]
mov dword [esi + 0x1c], edx
mov cx, word [eax + 0x20]
mov dx, word [eax + 0x22]
mov bx, word [eax + 0x1c]
mov bp, word [eax + 0x1e]
mov word [esp + 0x30], cx
mov word [esi + 0x20], dx
mov cx, word [eax + 0x24]
mov word [esi + 0x22], cx
mov edx, dword [eax + 0x26]
mov dword [esi + 0x24], edx
mov eax, dword [eax + 0x2a]
lea ecx, [esp + 0x14]
mov dword [esi + 0x28], eax
call fcn.00407710
mov edx, dword [esi + 4]
mov ecx, 0x415518
cmp edx, dword [ecx]
je 0x40626c
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0xffffffff
call fcn.00407700
xor al, al
jmp 0x406304
mov ecx, edi
call fcn.00406c60
and ebx, 0xffff
push 0
push ebx
lea ecx, [esi + 0x38]
mov dword [esp + 0x18], eax
call fcn.00407740
mov ecx, dword [edi + 0x1c]
mov eax, dword [esi + 0x3c]
push ebx
push eax
mov edx, dword [ecx]
call dword [edx + 0x3c]
test bp, bp
je 0x4062ba
mov ebx, ebp
push 0
and ebx, 0xffff
lea ecx, [esi + 0x2c]
push ebx
call fcn.00407740
mov ecx, dword [edi + 0x1c]
mov eax, dword [esi + 0x30]
push ebx
push eax
mov edx, dword [ecx]
call dword [edx + 0x3c]
mov ebx, dword [esp + 0x30]
test bx, bx
je 0x4062e1
and ebx, 0xffff
push 0
push ebx
lea ecx, [esi + 0x44]
call fcn.00407740
mov ecx, dword [edi + 0x1c]
mov esi, dword [esi + 0x48]
push ebx
push esi
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ecx, edi
call fcn.00406c60
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
cmp eax, ecx
lea ecx, [esp + 0x14]
sete bl
call fcn.00407700
mov al, bl
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 4
Function at 0x406e90
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40fabe
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [esp + 0x30]
push ebx
xor ebx, ebx
push esi
test eax, eax
mov esi, ecx
mov dword [esp + 8], ebx
jne 0x406ed6
mov ecx, dword [esi + 0x1c]
lea edx, [esp + 0x18]
push edx
mov eax, dword [ecx]
call dword [eax + 0x20]
mov ebx, 1
mov dword [esp + 8], ebx
mov eax, dword [eax]
mov dword [esp + 0x28], ebx
push eax
lea ecx, [esp + 0x10]
call fcn.0040e972
test bl, 1
mov dword [esp + 0x28], 3
je 0x406efd
and ebx, 0xfffffffe
lea ecx, [esp + 0x18]
mov dword [esp + 8], ebx
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x14]
push eax
push ecx
call fcn.00405240
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push edx
push eax
mov byte [esp + 0x38], 4
call fcn.00405310
add esp, 0x10
lea ecx, [esp + 0x38]
mov byte [esp + 0x28], 5
call sub.MFC42.DLL_CString::CString_3
mov al, byte [esp + 0x34]
mov byte [esp + 0x28], 6
test al, al
je 0x406f4e
push 0x41557c
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CString::operator_1
jmp 0x406f64
mov ecx, dword [esi + 0x4c]
lea edx, [esp + 0x38]
push ecx
push str._.3d
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x20]
push ecx
push edx
call sub.MFC42.DLL_operator_2
push 0x415570
push eax
lea eax, [esp + 0x3c]
mov byte [esp + 0x30], 7
push eax
call sub.MFC42.DLL_operator
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0x38]
push ecx
push eax
push esi
mov byte [esp + 0x34], 8
call sub.MFC42.DLL_operator_2
or ebx, 2
mov dword [esp + 8], ebx
lea ecx, [esp + 0x34]
mov byte [esp + 0x28], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x28], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x38]
mov byte [esp + 0x28], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 0xc
Function at 0x4072c0
Capabilities:
Get disk size

Disassembly:
push 0xffffffffffffffff
push 0x40fb38
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov ecx, dword [ecx + 0x1c]
lea edx, [esp + 4]
push ebx
push edx
mov eax, dword [ecx]
call dword [eax + 0x20]
mov eax, dword [eax]
mov dword [esp + 0x24], 0
push eax
lea eax, [esp + 8]
push eax
call fcn.00405cb0
mov eax, dword [eax]
add esp, 8
lea ecx, [esp + 0x18]
lea edx, [esp + 0x14]
push ecx
push edx
lea ecx, [esp + 0x18]
lea edx, [esp + 0x14]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
lea ecx, [esp + 4]
sete bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov dword [esp + 0x24], 0xffffffff
call sub.MFC42.DLL_CString::CString
test bl, bl
pop ebx
je 0x407350
xor eax, eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x18]
imul eax, dword [esp + 0xc]
imul eax, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x4079c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40fbd8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
mov esi, ecx
call fcn.00407b60
mov ecx, dword [esi + 0x2c]
mov dword [esi + 0x30], eax
push 0
push eax
mov ecx, dword [ecx + 0x1c]
mov edx, dword [ecx]
call dword [edx + 0x30]
push 0
push 0x16
lea ecx, [esp + 0xc]
call fcn.004076d0
mov eax, dword [esi + 0x2c]
push 0x16
mov dword [esp + 0x1c], 0
mov ecx, dword [eax + 0x1c]
mov eax, dword [esp + 0xc]
push eax
mov edx, dword [ecx]
call dword [edx + 0x3c]
cmp eax, 0x16
je 0x407a26
push 0xffffffffffffff9b
mov ecx, esi
call fcn.00407ca0
mov eax, dword [esp + 8]
push edi
mov ecx, dword [eax]
mov dword [esi + 4], ecx
mov dx, word [eax + 4]
mov word [esi + 8], dx
mov cx, word [eax + 6]
mov word [esi + 0xa], cx
mov dx, word [eax + 8]
mov word [esi + 0xc], dx
mov cx, word [eax + 0xa]
mov word [esi + 0xe], cx
mov edx, dword [eax + 0xc]
mov dword [esi + 0x10], edx
mov ecx, dword [eax + 0x10]
mov dword [esi + 0x14], ecx
mov di, word [eax + 0x14]
lea ecx, [esp + 8]
call fcn.00407710
mov dx, word [esi + 8]
mov ecx, dword [esi + 0x2c]
push edx
call fcn.00407370
mov ecx, dword [esi + 0x2c]
call fcn.00406a30
test eax, eax
jne 0x407a9a
mov eax, dword [esi + 0x14]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0x30]
add eax, edx
cmp ecx, eax
jae 0x407a9a
push 0xffffffffffffff9b
mov ecx, esi
call fcn.00407ca0
test di, di
je 0x407acd
and edi, 0xffff
push 0
push edi
lea ecx, [esi + 0x18]
call fcn.00407740
mov ecx, dword [esi + 0x2c]
mov eax, dword [esi + 0x1c]
push edi
push eax
mov ecx, dword [ecx + 0x1c]
mov edx, dword [ecx]
call dword [edx + 0x3c]
cmp eax, edi
je 0x407acd
push 0xffffffffffffff9b
mov ecx, esi
call fcn.00407ca0
mov ecx, dword [esi + 0x2c]
call fcn.00406a30
test eax, eax
pop edi
je 0x407ade
xor eax, eax
jmp 0x407aeb
mov eax, dword [esi + 0x30]
mov edx, dword [esi + 0x14]
mov ecx, dword [esi + 0x10]
sub eax, edx
sub eax, ecx
mov dword [esi + 0x34], eax
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x407afb
cmp word [esi + 0xe], ax
jne 0x407b06
cmp word [esi + 0xe], 0
jne 0x407b0f
test eax, eax
je 0x407b0f
push 0xffffffffffffff9b
mov ecx, esi
call fcn.00407ca0
mov ecx, dword [esi + 0x2c]
xor eax, eax
mov ax, word [esi + 0xa]
mov byte [esi + 0x3c], 1
push eax
call fcn.00406a50
mov eax, dword [esi + 0x10]
test eax, eax
je 0x407b30
mov ecx, esi
call fcn.00407d00
lea ecx, [esp + 4]
mov dword [esp + 0x18], 0xffffffff
call fcn.00407700
mov ecx, dword [esp + 0x10]
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x4096f0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x4096ff
xor eax, eax
pop esi
ret 0xc
mov eax, dword [0x415648]
test eax, eax
je 0x40970d
call fcn.00409690
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
cmp edx, 8
push ebx
not eax
jb 0x40980f
push edi
mov edi, edx
shr edi, 3
mov ecx, eax
xor ebx, ebx
mov bl, byte [esi]
and ecx, 0xff
xor ecx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [ecx*4 + 0x416b0c]
sub edx, 8
xor eax, ebx
inc esi
mov ecx, eax
xor ebx, ebx
mov bl, byte [esi]
and ecx, 0xff
xor ecx, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov ecx, dword [ecx*4 + 0x416b0c]
shr eax, 8
xor ecx, eax
inc esi
mov eax, ecx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov eax, dword [eax*4 + 0x416b0c]
shr ecx, 8
xor eax, ecx
inc esi
mov ecx, eax
and ecx, 0xff
xor ecx, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov ecx, dword [ecx*4 + 0x416b0c]
shr eax, 8
xor ecx, eax
inc esi
mov eax, ecx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov eax, dword [eax*4 + 0x416b0c]
shr ecx, 8
xor eax, ecx
inc esi
mov ecx, eax
and ecx, 0xff
xor ecx, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov ecx, dword [ecx*4 + 0x416b0c]
shr eax, 8
xor ecx, eax
inc esi
mov eax, ecx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov eax, dword [eax*4 + 0x416b0c]
shr ecx, 8
xor eax, ecx
inc esi
mov ecx, eax
and ecx, 0xff
xor ecx, ebx
shr eax, 8
mov ecx, dword [ecx*4 + 0x416b0c]
xor eax, ecx
inc esi
dec edi
jne 0x409727
pop edi
test edx, edx
je 0x409831
mov ecx, eax
xor ebx, ebx
mov bl, byte [esi]
and ecx, 0xff
xor ecx, ebx
shr eax, 8
mov ecx, dword [ecx*4 + 0x416b0c]
xor eax, ecx
inc esi
dec edx
jne 0x409813
pop ebx
pop esi
not eax
ret 0xc
Function at 0x41155d
Capabilities:
Check for software breakpoints

Disassembly:
ret
lea ecx, [ebx + 7]
not al
push 0xffffffffffffffff
push dword [ecx + 0x35]
cmp ah, 0xcc
lea esi, [ecx - 7]
cmp edi, 0xfcc4ce39
xchg ah, ah
inc ah
pop edx
add ecx, dword [edx + ebx + 0x78]
add esi, dword [ecx + 0x19]
pop edx
jmp 0x41180b
and ch, al
dec ch
cwde
push dword [edi + eax*4]
add dword [esp], ebx
pop esi
add ch, 0xbc
mov eax, dword [esp - 8]
xchg ecx, ecx
xchg edx, ecx
lea ecx, [0x537c8d59]
jmp eax
inc edx
lodsd eax, dword [esi]
lea edi, [eax + ebx + 5]
cld
mov edi, edi
nop
cmp dword [ecx + 0x11], edx
je 0x41146a
xor eax, eax
cld
imul eax, eax, 0xf
push eax
lea edx, [edx]
movzx eax, byte [edi - 5]
neg eax
mov cl, cl
lea edi, [edi - 0xe]
sub esi, edx
add esi, edx
mov cl, cl
sub edi, 0xfffffff1
add dword [esp], eax
cld
nop
mov ebx, ebx
cmp byte [edi - 5], 0xa
pop eax
ja 0x411821
nop
mov edi, edi
stc
mov eax, 0xd8f879da
stc
clc
xor dword [esp - 4], eax
mov eax, dword [esp + 4]
wait
xor dword [esp - 4], eax
jne 0x41180b
mov edi, edi
mov edx, edx
sub ecx, 0xffffffed
add esp, 8
push dword [ecx + 2]
pop edi
add edi, ebx
nop
add edx, edx
add edx, ebx
mov esi, dword [ecx + 0xa]
mov ax, word [edx + esi]
jmp 0x411739
Function at 0x401d90
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41e109
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
push edi
mov edi, dword [esp + 0x20]
mov ecx, edi
mov dword [esp + 8], 0
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::GetManager]
push eax
lea ecx, [esp + 0x24]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_3]
mov edx, dword [esp + 0x24]
test edx, edx
mov dword [esp + 0x14], 0
jne 0x401ddb
xor eax, eax
jmp 0x401de9
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401de0
sub eax, esi
mov ecx, dword [edi]
push eax
mov eax, dword [ecx - 0xc]
push edx
push eax
push ecx
lea ecx, [esp + 0x30]
push ecx
call dword [sym.imp.MFC71.DLL_ATL::CSimpleStringT::Concatenate]
mov esi, dword [esp + 0x30]
add esp, 0x14
lea edx, [esp + 0x20]
push edx
mov ecx, esi
call dword [0x4201f0]
lea ecx, [esp + 0x20]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x4023e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41e163
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [esp + 0x34]
push esi
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 8], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov ecx, dword [esp + 0x3c]
push ecx
mov ecx, eax
mov dword [esp + 0x30], 1
call dword [0x42036c]
mov esi, dword [esp + 0x34]
push eax
mov ecx, esi
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [esp + 8]
mov dword [esp + 4], 1
mov byte [esp + 0x2c], 0
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 ecx, dword [esp + 0x24]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret

Function at 0x402ae0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x41e1cc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10c
mov eax, dword [0x428230]
mov dword [esp + 0x108], eax
push esi
lea eax, [esp + 8]
push eax
xor esi, esi
push 0x104
mov dword [esp + 0xc], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea ecx, [esp + 8]
push ecx
lea ecx, [esp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_4]
push 0x4209d8
mov dword [esp + 0x11c], esi
mov esi, dword [esp + 0x124]
push eax
push esi
call fcn.00401d90
add esp, 0xc
lea ecx, [esp + 4]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, dword [esp + 0x110]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x10c]
mov eax, esi
pop esi
call fcn.0041d44e
add esp, 0x118
ret
Function at 0x404a80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41e422
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
mov eax, dword [0x428230]
push esi
mov dword [esp + 0x24], eax
mov esi, ecx
lea ecx, [esp + 8]
mov dword [esp + 0x30], 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_]
push esi
lea ecx, [esp + 0xc]
mov byte [esp + 0x34], 1
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::swap_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char____]
mov ecx, esi
call fcn.00407e70
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x404ae1
push 0x5c
lea ecx, [esp + 0xc]
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_]
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0xc]
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_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
sub esp, 0x1c
lea edx, [esp + 0x24]
mov ecx, esp
mov dword [esp + 0x20], esp
push edx
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov ecx, esi
call fcn.00404a00
lea ecx, [esp + 8]
mov byte [esp + 0x30], 0
call dword [sym.imp.MSVCP71.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x38]
mov dword [esp + 0x30], 0xffffffff
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 ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x24]
call fcn.0041d44e
pop esi
add esp, 0x30
ret 0x1c

Function at 0x404ff0
Capabilities:
Move file

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [eax + 0x18]
mov ecx, 0x10
cmp edx, ecx
jb 0x405005
mov edx, dword [eax + 4]
jmp 0x405008
lea edx, [eax + 4]
mov eax, dword [esp + 8]
cmp dword [eax + 0x18], ecx
jb 0x405016
mov eax, dword [eax + 4]
jmp 0x405019
add eax, 4
test edx, edx
push ebx
je 0x40504d
mov bl, byte [edx]
xor ecx, ecx
test bl, bl
setne cl
test cl, cl
je 0x40504d
test eax, eax
je 0x40504d
mov bl, byte [eax]
xor ecx, ecx
test bl, bl
setne cl
test cl, cl
je 0x40504d
push eax
push edx
call sub.MSVCR71.dll_rename
add esp, 8
neg eax
sbb eax, eax
inc eax
pop ebx
ret
xor eax, eax
pop ebx
ret
Function at 0x406270
Capabilities:
Get common file path

Disassembly:
sub esp, 0x110
mov eax, dword [0x428230]
mov dword [esp + 0x10c], eax
lea eax, [esp + 8]
push eax
push 0x104
mov byte [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
jne 0x4062ba
push 0x4229f8
lea ecx, [esp + 4]
push ecx
mov dword [esp + 8], 0x4208f0
mov dword [esp + 0xc], str.get_current_directory_error
call sub.MSVCR71.dll__CxxThrowException
mov al, byte [esp + 8]
test al, al
jne 0x4062e5
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4062f9
mov ecx, esi
call fcn.00407e70
mov eax, esi
mov ecx, dword [esp + 0x10c]
call fcn.0041d44e
add esp, 0x110
ret
mov byte [esp], 0
mov edx, dword [esp]
push edx
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.00405750
mov ecx, dword [esp + 0x10c]
mov eax, esi
call fcn.0041d44e
add esp, 0x110
ret
Function at 0x4072f0
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x148
mov eax, dword [0x428230]
push esi
mov dword [esp + 0x148], eax
lea eax, [esp + 4]
push edi
push eax
call fcn.004173f0
mov ecx, dword [eax]
add esp, 4
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea ecx, [esp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov byte [esp + 0x40], 0
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0x41]
rep stosd dword es:[edi], eax
push 0
push 0x1a
lea edx, [esp + 0x48]
stosw word es:[edi], ax
push edx
push 0
stosb byte es:[edi], al
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
cmp eax, 1
jne 0x4073e5
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_4]
push str._nsb_launcher.log
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x14]
push edx
call fcn.00401d90
push eax
lea eax, [esp + 0x28]
push eax
call fcn.004071b0
add esp, 0x14
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
push 1
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x18]
call fcn.00416aa0
mov edx, dword [ebp + 0x10]
push edx
lea ecx, [esp + 0x10]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_4]
lea eax, [esp + 0xc]
push eax
call fcn.00406310
add esp, 4
dec al
neg al
lea ecx, [esp + 0xc]
sbb eax, eax
mov esi, eax
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
lea ecx, [esp + 0x10]
call fcn.00416af0
lea ecx, [esp + 0x18]
call fcn.004070f0
jmp 0x407408
mov ecx, dword [ebp + 0x10]
push ecx
lea ecx, [esp + 0xc]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT_4]
lea edx, [esp + 8]
push edx
call fcn.00406310
add esp, 4
dec al
neg al
sbb eax, eax
mov esi, eax
lea ecx, [esp + 8]
call dword [sym.imp.MFC71.DLL_ATL::CStringT::CStringT]
mov ecx, dword [esp + 0x14c]
mov eax, esi
call fcn.0041d44e
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x409f40
Capabilities:
Hash data with md5

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x58]
xor eax, eax
xor ebx, ebx
mov dword [edi + 0x10], ebx
mov ecx, edi
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov edx, dword [edi + 0x10]
push edx
call sub.MFC71.DLL_operator_delete_1
mov dword [edi + 0x10], ebx
add esp, 4
pop edi
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov byte [esi + 0x6c], 1
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
mov eax, esi
pop esi
pop ebx
ret

Function at 0x40ae60
Capabilities:
Create directory

Disassembly:
mov eax, esi
call fcn.0040a630
test al, al
je 0x40ae71
mov eax, 1
ret
cmp dword [esi + 0x18], 0x10
jb 0x40ae8a
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.MSVCR71.dll__mkdir]
add esp, 4
neg eax
sbb eax, eax
inc eax
ret
lea eax, [esi + 4]
push eax
call dword [sym.imp.MSVCR71.dll__mkdir]
add esp, 4
neg eax
sbb eax, eax
inc eax
ret
Function at 0x40d010
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41e8b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebp
xor ebp, ebp
push esi
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x1c], 0x420b14
mov eax, dword [esp + 0x4c]
push eax
mov esi, ecx
lea eax, [esp + 0xc]
mov dword [esp + 0x48], ebp
call fcn.0040ac80
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
add esp, 4
cmp esi, eax
jae 0x40d0bf
push ebx
or ebx, 0xffffffff
mov al, byte [esi]
cmp al, 0x25
jne 0x40d0a6
inc esi
lea eax, [esp + 0xc]
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], 0xa
mov dword [esp + 0x30], esi
mov dword [esp + 0x38], esi
call fcn.00407540
mov ecx, eax
mov eax, edi
call fcn.0040b770
mov esi, dword [esp + 0x30]
jmp 0x40d0b1
push eax
push edi
call dword [sym.imp.MSVCP71.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::operator___struct_std::char_traits_char___class_std::basic_ostream_char__struct_std::char_traits_char_____char_]
add esp, 8
mov eax, dword [esp + 0x34]
inc esi
cmp esi, eax
mov dword [esp + 0x30], esi
jb 0x40d067
pop ebx
mov ecx, dword [esp + 0x3c]
pop esi
xor eax, eax
pop ebp
mov dword fs:[0], ecx
add esp, 0x40
ret

Function at 0x40d0e0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41e8b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebp
xor ebp, ebp
push esi
mov dword [esp + 0x20], ebp
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x1c], 0x420b14
mov eax, dword [esp + 0x4c]
push eax
mov esi, ecx
lea eax, [esp + 0xc]
mov dword [esp + 0x48], ebp
call fcn.0040ac80
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0x34]
add esp, 4
cmp esi, eax
jae 0x40d18b
push ebx
or ebx, 0xffffffff
mov al, byte [esi]
cmp al, 0x25
jne 0x40d174
inc esi
lea eax, [esp + 0xc]
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], 0xa
mov dword [esp + 0x30], esi
mov dword [esp + 0x38], esi
call fcn.00407540
mov ecx, edi
call fcn.0040b890
mov esi, dword [esp + 0x30]
jmp 0x40d17d
push eax
mov ecx, edi
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_]
mov eax, dword [esp + 0x34]
inc esi
cmp esi, eax
mov dword [esp + 0x30], esi
jb 0x40d137
pop ebx
mov ecx, dword [esp + 0x3c]
mov eax, dword [edi + 0x14]
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x40
ret