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

Disassembly:
push 0xffffffffffffffff
push 0x4973f7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x7c
mov eax, dword [0x4bdc98]
xor eax, esp
push ebp
mov ebp, dword [esp + 0x98]
push esi
mov esi, dword [esp + 0x94]
push edi
mov edi, dword [esp + 0x9c]
mov dword [esp + 0x84], eax
lea eax, [esp + 0x30]
push 8
push eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], 0
call fcn.00432bb0
push 1
lea ecx, [esp + 0x3c]
push ecx
push ebp
lea edx, [esp + 0x60]
push edi
push edx
mov dword [esp + 0xac], 1
call fcn.00432940
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x50]
push ecx
lea edx, [esp + 0x38]
push edx
mov byte [esp + 0xb8], 2
call fcn.00401f80
push eax
lea eax, [esp + 0x94]
push eax
mov byte [esp + 0xc0], 3
call fcn.00431ed0
add esp, 0x30
lea ecx, [esp + 0x14]
mov byte [esp + 0x90], 5
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 + 0x68]
push ecx
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 + 0x68]
mov dword [esp + 0xc], 1
mov byte [esp + 0x90], 2
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 + 0x4c]
mov byte [esp + 0x90], 1
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 + 0x30]
mov byte [esp + 0x90], 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 + 0x88]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x7c]
pop ebp
xor ecx, esp
call fcn.00491e29
add esp, 0x88
ret

Function at 0x433370
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x497491
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
xor ebx, ebx
mov dword [esp + 4], ebx
push esi
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
push eax
push ecx
push edx
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x34], 1
call fcn.004330e0
mov esi, dword [esp + 0x3c]
add esp, 0x10
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call fcn.00433010
lea ecx, [esp + 0xc]
mov dword [esp + 8], 1
mov byte [esp + 0x24], bl
call fcn.0040f520
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret
Function at 0x435510
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x20
mov eax, dword [0x4bdc98]
xor eax, esp
mov dword [esp + 0x1c], eax
lea eax, [esp]
push eax
call fcn.00435440
mov eax, dword [esp + 0x1c]
add esp, 4
cmp eax, 8
mov eax, dword [esp + 4]
jae 0x43553b
lea eax, [esp + 4]
push esi
push eax
push 0xe
push str.UpdateCycle
push str.UpdateStrategy
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
lea ecx, [esp + 4]
mov esi, eax
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 [esp + 0x20]
mov eax, esi
pop esi
xor ecx, esp
call fcn.00491e29
add esp, 0x20
ret

Function at 0x435690
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x49783c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24c
mov eax, dword [0x4bdc98]
xor eax, ebp
push esi
mov esi, dword [ebp + 8]
mov dword [esp + 0x248], eax
lea eax, [esp + 0x20]
push edi
push eax
call fcn.00435440
add esp, 4
xor eax, eax
mov ecx, 0x81
lea edi, [esp + 0x44]
mov dword [esp + 0x40], 0
rep stosd dword es:[edi], eax
cmp dword [esp + 0x3c], 8
mov eax, dword [esp + 0x28]
mov dword [esp + 0x25c], 0
jae 0x435700
lea eax, [esp + 0x28]
push eax
push 0x104
lea ecx, [esp + 0x48]
push ecx
push 0
push str.LastLaunchTime
push str.UpdateRecord
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x1a]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x1e]
push edx
lea eax, [esp + 0x1e]
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x58]
push str._04d__02d__02d__02d:_02d:_02d
push edx
call dword [sym.imp.MSVCR71.dll_swscanf]
add esp, 0x20
test eax, eax
jne 0x435769
push eax
call dword [sym.imp.MSVCR71.dll__time64]
push esi
mov dword [esi], eax
mov dword [esi + 4], edx
call fcn.00435570
add esp, 8
jmp 0x4357a1
movzx eax, word [esp + 0x16]
movzx ecx, word [esp + 0x14]
movzx edx, word [esp + 0x12]
push 0xffffffffffffffff
push 0
push eax
movzx eax, word [esp + 0x1a]
push ecx
movzx ecx, word [esp + 0x1c]
push edx
push eax
push ecx
lea ecx, [esp + 0x38]
call fcn.00435330
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov dword [esi], edx
mov dword [esi + 4], eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x25c], 0xffffffff
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 [esp + 0x254]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x24c]
pop edi
xor ecx, ebp
pop esi
call fcn.00491e29
mov esp, ebp
pop ebp
ret
Function at 0x435b80
Capabilities:
Encode data using base64

Disassembly:
mov ecx, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0xc]
test ebp, ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
je 0x435c3c
mov esi, dword [esp + 0x10]
jmp 0x435ba0
test edi, edi
je 0x435c43
movzx eax, byte [esi]
shr eax, 2
mov dl, byte [eax + 0x4a5768]
mov byte [ecx], dl
inc ecx
dec edi
je 0x435c43
dec ebp
je 0x435bca
movzx eax, byte [esi + 1]
shr eax, 4
jmp 0x435bcc
xor eax, eax
xor edx, edx
mov dl, byte [esi]
shl edx, 4
add edx, eax
and edx, 0x3f
mov al, byte [edx + 0x4a5768]
mov byte [ecx], al
inc ecx
dec edi
je 0x435c43
test ebp, ebp
je 0x435c09
dec ebp
je 0x435bf4
movzx eax, byte [esi + 2]
shr eax, 6
jmp 0x435bf6
xor eax, eax
xor edx, edx
mov dl, byte [esi + 1]
lea eax, [eax + edx*4]
and eax, 0x3f
mov al, byte [eax + 0x4a5768]
jmp 0x435c0b
mov al, 0x3d
mov byte [ecx], al
inc ecx
dec edi
je 0x435c43
test ebp, ebp
je 0x435c25
xor edx, edx
mov dl, byte [esi + 2]
and edx, 0x3f
mov al, byte [edx + 0x4a5768]
jmp 0x435c27
mov al, 0x3d
mov byte [ecx], al
inc ecx
dec edi
je 0x435c43
test ebp, ebp
je 0x435c3c
dec ebp
je 0x435c3c
add esi, 3
jmp 0x435ba0
test edi, edi
je 0x435c43
mov byte [ecx], 0
pop edi
pop esi
pop ebp
ret

Function at 0x435cb0
Capabilities:
Decode data using base64 via dword translation table

Disassembly:
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x10]
cmp ebp, 2
push esi
mov esi, dword [ebx]
jb 0x435d8e
mov edx, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x1c]
nop
movzx eax, byte [edx]
mov cl, byte [eax + 0x4a5668]
test cl, cl
jl 0x435d8d
movzx eax, byte [edx + 1]
mov al, byte [eax + 0x4a5668]
test al, al
jl 0x435d8d
test esi, esi
je 0x435d03
sar al, 4
shl cl, 2
or al, cl
mov byte [edi], al
inc edi
dec esi
cmp ebp, 2
je 0x435d8d
mov al, byte [edx + 2]
cmp al, 0x3d
jne 0x435d20
cmp ebp, 4
jne 0x435d8d
cmp byte [edx + 3], 0x3d
jne 0x435d8d
jmp 0x435d7e
movzx ecx, al
mov al, byte [ecx + 0x4a5668]
test al, al
jl 0x435d8d
test esi, esi
je 0x435d47
movzx ecx, byte [edx + 1]
mov cl, byte [ecx + 0x4a5668]
shl cl, 4
sar al, 2
or cl, al
mov byte [edi], cl
inc edi
dec esi
cmp ebp, 3
je 0x435d8d
mov al, byte [edx + 3]
cmp al, 0x3d
jne 0x435d5a
cmp ebp, 4
jne 0x435d8d
jmp 0x435d7e
movzx eax, al
mov al, byte [eax + 0x4a5668]
test al, al
jl 0x435d8d
test esi, esi
je 0x435d7e
movzx ecx, byte [edx + 2]
mov cl, byte [ecx + 0x4a5668]
shl cl, 6
or cl, al
mov byte [edi], cl
inc edi
dec esi
sub ebp, 4
add edx, 4
cmp ebp, 2
jae 0x435cd0
pop edi
mov ecx, dword [ebx]
sub ecx, esi
pop esi
test ebp, ebp
pop ebp
mov dword [ebx], ecx
sete al
pop ebx
ret
Function at 0x436ad0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x4a57b4
push eax
mov esi, ecx
xor bl, bl
call dword [sym.imp.MSVCR71.dll_fopen]
mov edi, eax
add esp, 8
test edi, edi
je 0x436b24
mov eax, dword [esi + 0x18]
test eax, eax
je 0x436b18
cmp dword [esi + 0x1c], 0x10
jb 0x436b02
mov esi, dword [esi + 8]
jmp 0x436b05
add esi, 8
push edi
push 1
push eax
push esi
call dword [sym.imp.MSVCR71.dll_fwrite]
add esp, 0x10
cmp eax, 1
jne 0x436b1a
mov bl, 1
push edi
call dword [sym.imp.MSVCR71.dll_fclose]
add esp, 4
pop edi
pop esi
mov al, bl
pop ebx
ret 4

Function at 0x438d20
Capabilities:
Read file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
push esi
push 0x4a515c
push eax
mov dword [esp + 0x10], ecx
xor bl, bl
call dword [sym.imp.MSVCR71.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x438da4
push ebp
push edi
mov edi, dword [sym.imp.MSVCR71.dll_fseek]
push 2
push 0
push esi
call edi
push esi
call dword [sym.imp.MSVCR71.dll_ftell]
push 0
push 0
push esi
mov ebp, eax
call edi
lea ecx, [ebp + 1]
push ecx
call sub.MFC71U.DLL_CWordArray::CWordArray
push esi
push 1
mov edi, eax
push ebp
push edi
call dword [sym.imp.MSVCR71.dll_fread]
add esp, 0x30
cmp eax, 1
jne 0x438d8e
mov ecx, dword [esp + 0x10]
push edi
mov byte [edi + ebp], bl
call fcn.00438bf0
mov bl, al
push esi
call dword [sym.imp.MSVCR71.dll_fclose]
push edi
call sub.MFC71U.DLL_CNoTrackObject::operator_new
add esp, 8
test bl, bl
pop edi
pop ebp
jne 0x438daf
mov ecx, dword [esp + 8]
push 0
call fcn.00438bf0
pop esi
mov al, bl
pop ebx
pop ecx
ret 4

Function at 0x439eb0
Capabilities:
Create thread
Resume thread

Disassembly:
sub esp, 8
push esi
mov esi, ecx
mov eax, dword [esi + 0x8c]
test eax, eax
je 0x439f1f
mov eax, dword [esi + 0x80]
test eax, eax
je 0x439f26
mov eax, dword [esi + 0xc4]
test eax, eax
je 0x439f26
mov ecx, dword [esi + 0xc8]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 1
jbe 0x439f26
lea eax, [esp + 8]
push eax
push 4
push esi
push 0x439b70
push 0
push 0
call dword [sym.imp.MSVCR71.dll__beginthreadex]
add esp, 0x18
test eax, eax
mov dword [esi + 0xa8], eax
je 0x439f1f
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
pop esi
add esp, 8
ret
mov eax, dword [esi + 0xb0]
test eax, eax
je 0x439f1f
mov ecx, dword [eax]
push edi
lea edx, [esp + 0xc]
push edx
push eax
call dword [ecx + 0x18]
mov eax, dword [esi + 0xb0]
mov ecx, dword [eax]
lea edx, [esp + 8]
push edx
push eax
call dword [ecx + 0x1c]
mov ecx, dword [esp + 8]
mov eax, dword [esi + 0xb0]
mov edx, dword [eax]
push 0
mov edi, ecx
neg edi
push edi
mov edi, dword [esp + 0x14]
push edi
push ecx
mov ecx, dword [esi + 0x68]
push 0
push ecx
mov ecx, dword [esi + 0x64]
push ecx
mov ecx, dword [esi + 0x90]
push 0
push 0
push ecx
push eax
call dword [edx + 0x20]
test eax, eax
pop edi
jne 0x439f1f
mov edx, dword [esi + 0x20]
push eax
push eax
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, 1
pop esi
add esp, 8
ret
Function at 0x43a6b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push esi
mov dword [esp + 4], ecx
call sub.MFC71U.DLL_AfxGetModuleShortFileName
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov eax, dword [eax + 0xc]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x43a784
call sub.MFC71U.DLL_AfxGetModuleShortFileName
mov eax, dword [eax + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [esp + 0x10], eax
je 0x43a784
push ebx
push ebp
call sub.MFC71U.DLL_AfxGetModuleShortFileName
mov eax, dword [eax + 0xc]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebp, eax
push ebp
push 0x22
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
jne 0x43a71f
pop ebp
pop ebx
pop esi
pop ecx
ret 8
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x43a773
test edi, edi
je 0x43a773
mov ecx, ebp
mov edx, ecx
shr ecx, 2
mov esi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, dword [esp + 0x10]
push ebp
push ebx
call fcn.0043a350
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop ebp
pop ebx
mov eax, esi
pop esi
pop ecx
ret 8
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop ebp
pop ebx
xor eax, eax
pop esi
pop ecx
ret 8
xor eax, eax
pop esi
pop ecx
ret 8

Function at 0x43aae0
Capabilities:
Find taskbar

Disassembly:
sub esp, 0x10
push 0
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x43ab1f
push 0
push str.TrayNotifyWnd
push 0
push eax
call dword [sym.imp.USER32.dll_FindWindowExW]
test eax, eax
je 0x43ab1f
mov ecx, dword [esp + 0x14]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, 1
add esp, 0x10
ret 4
push 0
lea edx, [esp + 4]
push edx
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 8]
lea edx, [ecx - 0x64]
mov dword [eax], edx
mov edx, dword [esp + 0xc]
mov dword [eax + 4], edx
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov eax, 1
add esp, 0x10
ret 4
Function at 0x43c260
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x43c26b
xor eax, eax
ret
push ebp
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x18]
cmp edi, 8
not esi
jb 0x43c363
mov ebp, edi
shr ebp, 3
xor edx, edx
mov dl, byte [ecx]
mov eax, esi
shr eax, 8
sub edi, 8
xor edx, esi
and edx, 0xff
mov esi, dword [edx*4 + 0x4a70e0]
xor edx, edx
mov dl, byte [ecx + 1]
xor eax, esi
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x4a70e0]
xor edx, edx
mov dl, byte [ecx + 1]
shr eax, 8
xor eax, esi
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x4a70e0]
xor edx, edx
mov dl, byte [ecx + 1]
shr eax, 8
xor eax, esi
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x4a70e0]
xor edx, edx
mov dl, byte [ecx + 1]
shr eax, 8
xor eax, esi
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x4a70e0]
shr eax, 8
xor eax, esi
xor edx, edx
mov dl, byte [ecx + 1]
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x4a70e0]
shr eax, 8
xor eax, esi
xor edx, edx
mov dl, byte [ecx + 1]
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x4a70e0]
shr eax, 8
xor eax, esi
xor edx, edx
mov dl, byte [ecx + 1]
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x4a70e0]
shr eax, 8
xor eax, esi
inc ecx
dec ebp
mov esi, eax
jne 0x43c286
test edi, edi
je 0x43c382
xor eax, eax
mov al, byte [ecx]
xor eax, esi
and eax, 0xff
mov ebp, dword [eax*4 + 0x4a70e0]
shr esi, 8
xor esi, ebp
inc ecx
dec edi
jne 0x43c367
pop edi
mov eax, esi
pop esi
not eax
pop ebp
ret

Function at 0x43c390
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov edx, dword [esp + 4]
mov ecx, dword [edx]
xor eax, eax
mov al, byte [esp + 8]
push esi
xor eax, ecx
and eax, 0xff
mov eax, dword [eax*4 + 0x4a70e0]
shr ecx, 8
xor eax, ecx
mov ecx, dword [edx + 4]
mov dword [edx], eax
and eax, 0xff
add eax, ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
mov esi, dword [eax*4 + 0x4a70e0]
shr ecx, 8
xor ecx, esi
mov dword [edx + 8], ecx
pop esi
ret

Function at 0x43c3f0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push esi
mov esi, dword [esp + 8]
mov edx, dword [esi + 8]
mov eax, edx
and eax, 0xfffd
or eax, 2
mov ecx, eax
xor ecx, 1
imul ecx, eax
mov al, byte [esp + 0xc]
shr ecx, 8
xor al, cl
xor ecx, ecx
push edi
mov edi, dword [esi]
mov cl, al
xor ecx, edi
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4a70e0]
shr edi, 8
xor ecx, edi
mov edi, dword [esi + 4]
mov dword [esi], ecx
and ecx, 0xff
add ecx, edi
imul ecx, ecx, 0x8088405
inc ecx
mov dword [esi + 4], ecx
shr ecx, 0x18
xor ecx, edx
and ecx, 0xff
mov edi, dword [ecx*4 + 0x4a70e0]
shr edx, 8
xor edx, edi
pop edi
mov dword [esi + 8], edx
pop esi
ret
Function at 0x43c880
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0x14]
mov cl, byte [ebx]
push ebp
mov ebp, dword [esp + 0x10]
mov eax, ebp
imul eax, dword [esp + 0x14]
test cl, cl
je 0x43c8c1
mov edx, dword [esp + 0xc]
push 0
lea ecx, [esp + 0x14]
push ecx
push eax
mov eax, dword [ebx + 4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x43c8b6
mov byte [ebx + 8], 1
mov eax, dword [esp + 0x10]
xor edx, edx
div ebp
pop ebp
pop ebx
ret
mov edx, dword [ebx + 0x1c]
mov ecx, dword [ebx + 0x18]
push esi
lea esi, [edx + eax]
cmp esi, ecx
push edi
jbe 0x43c8d4
sub ecx, edx
mov eax, ecx
mov esi, dword [ebx + 0x14]
mov edi, dword [esp + 0x14]
add esi, edx
mov ecx, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 0x1c]
pop edi
add ecx, eax
pop esi
xor edx, edx
div ebp
pop ebp
mov dword [ebx + 0x1c], ecx
pop ebx
ret

Function at 0x43da20
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x41c
mov eax, dword [0x4bdc98]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
xor eax, ebp
test esi, esi
mov dword [esp + 0x420], eax
push edi
mov dword [esp + 0xc], esi
je 0x43da60
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x43da60
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor eax, eax
mov ax, word [ebx]
test ax, ax
je 0x43db18
mov ecx, ebx
mov edx, ebx
cmp ax, 0x2f
je 0x43da7e
cmp ax, 0x5c
jne 0x43da80
mov ecx, edx
mov ax, word [edx + 2]
add edx, 2
test ax, ax
jne 0x43da72
cmp ecx, ebx
je 0x43dad2
sub ecx, ebx
sar ecx, 1
shl ecx, 1
mov eax, ecx
mov edx, ecx
shr ecx, 2
mov esi, ebx
lea edi, [esp + 0x218]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0xc]
mov word [esp + eax + 0x218], 0
lea eax, [esp + 0x218]
push eax
push ecx
call fcn.0043da20
mov esi, dword [esp + 0x14]
add esp, 8
test esi, esi
mov word [esp + 0x10], 0
je 0x43daec
lea edx, [esp + 0x10]
push esi
push edx
call dword [sym.imp.MSVCR71.dll_wcscpy]
add esp, 8
lea eax, [esp + 0x10]
push ebx
push eax
call dword [sym.imp.MSVCR71.dll_wcscat]
add esp, 8
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x43db18
push 0
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [esp + 0x424]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00491e29
mov esp, ebp
pop ebp
ret
Function at 0x43f500
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 8
push ebx
push edi
mov edi, dword [esp + 0x14]
xor ebx, ebx
cmp edi, ebx
je 0x43f514
cmp dword [edi + 0x18], ebx
jne 0x43f51f
pop edi
mov eax, 0xffffff9a
pop ebx
add esp, 8
ret
cmp dword [edi + 0x7c], ebx
je 0x43f52d
push edi
call fcn.0043d2f0
add esp, 4
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x14]
push edx
push edi
call fcn.0043d0f0
add esp, 0x10
test eax, eax
je 0x43f554
pop edi
mov eax, 0xffffff99
pop ebx
add esp, 8
ret
push ebp
mov ebp, dword [sym.imp.MSVCR71.dll_malloc]
push esi
push 0x84
call ebp
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x43f597
push 0x4000
call ebp
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
add esp, 4
cmp eax, ebx
mov dword [esi], eax
mov dword [esi + 0x44], ecx
mov dword [esi + 0x48], edx
mov dword [esi + 0x4c], ebx
jne 0x43f5a4
push esi
call dword [sym.imp.MSVCR71.dll_free]
add esp, 4
pop esi
pop ebp
pop edi
mov eax, 0xffffff98
pop ebx
add esp, 8
ret
mov dword [esi + 0x40], ebx
mov edx, dword [edi + 0x34]
mov ecx, dword [edi + 0x3c]
xor eax, eax
cmp edx, ebx
mov dword [esi + 0x54], ecx
mov dword [esi + 0x50], ebx
mov edx, dword [edi + 0x34]
sete al
mov dword [esi + 0x64], edx
mov ecx, dword [edi]
mov dword [esi + 0x60], ecx
mov edx, dword [edi + 0xc]
mov dword [esi + 0x68], edx
mov dword [esi + 0x18], ebx
cmp eax, ebx
jne 0x43f5f2
lea eax, [esi + 4]
push eax
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
call fcn.0043c670
add esp, 4
test eax, eax
jne 0x43f5f2
mov dword [esi + 0x40], 1
mov ecx, dword [edi + 0x40]
mov dword [esi + 0x58], ecx
mov edx, dword [edi + 0x44]
mov dword [esi + 0x5c], edx
mov al, byte [edi + 0x30]
and al, 1
mov byte [esi + 0x6c], al
mov ecx, dword [edi + 0x30]
shr ecx, 3
test cl, 1
je 0x43f61c
mov dl, byte [edi + 0x39]
mov byte [esi + 0x80], dl
jmp 0x43f625
mov al, byte [edi + 0x3f]
mov byte [esi + 0x80], al
mov cl, byte [esi + 0x6c]
mov ebp, dword [esp + 0x20]
neg cl
lea ebx, [esi + 0x70]
mov dword [ebx], 0x12345678
mov dword [esi + 0x74], 0x23456789
mov dword [esi + 0x78], 0x34567890
sbb ecx, ecx
and ecx, 0xc
test ebp, ebp
mov dword [esi + 0x7c], ecx
je 0x43f667
xor eax, eax
mov al, byte [ebp]
test al, al
je 0x43f667
push eax
push ebx
call fcn.0043c390
add esp, 8
inc ebp
jne 0x43f651
mov edx, dword [edi + 0x78]
mov eax, dword [esp + 0x14]
lea ecx, [edx + eax + 0x1e]
mov dword [esi + 0x3c], ecx
mov dword [esi + 8], 0
mov dword [edi + 0x7c], esi
pop esi
pop ebp
pop edi
xor eax, eax
pop ebx
add esp, 8
ret
Function at 0x43f950
Capabilities:
Get common file path

Disassembly:
push edi
mov edi, ecx
cmp dword [edi], 0
jne 0x43fa14
cmp dword [edi + 4], 0xffffffff
jne 0x43fa14
push esi
lea esi, [edi + 0x244]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push esi
call dword [sym.imp.MSVCR71.dll_wcslen]
mov ax, word [edi + eax*2 + 0x242]
add esp, 4
cmp ax, 0x5c
je 0x43f9a6
cmp ax, 0x2f
je 0x43f9a6
push 0x4a1130
push esi
call dword [sym.imp.MSVCR71.dll_wcscat]
add esp, 8
mov esi, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x18]
cmp ebx, 1
jne 0x43f9d1
push 1
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x43f9d1
pop ebx
pop esi
mov eax, 0x2000000
pop edi
ret 0xc
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
push ebx
push ecx
push esi
call fcn.0043c730
add esp, 0x10
test eax, eax
jne 0x43f9f3
mov eax, dword [esp + 0x18]
pop ebx
pop esi
pop edi
ret 0xc
push eax
call fcn.0043f300
add esp, 4
xor edx, edx
test eax, eax
setne dl
pop ebx
mov dword [edi], eax
pop esi
pop edi
dec edx
and edx, 0x200
mov eax, edx
ret 0xc
mov eax, 0x1000000
pop edi
ret 0xc