joyce8/EMBER2024-capa huggingface dataset:
Function at 0x420284
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov word [ebp - 4], cx
mov byte [ebp - 1], dl
xor eax, eax
push ebp
push 0x4d989f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x4202bf
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x4202d8
lea eax, [ebp - 0x10]
mov edx, dword [0x4f6348]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x4202eb
lea eax, [ebp - 0x10]
mov edx, dword [0x4f6348]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x4202f7
adc edx, 0
mov edx, dword [edx*4 + 0x4f5178]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x420471
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x40
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420464
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x420464
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406ddc
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0x18
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420464
mov eax, edi
cmp dword [eax], 0x4550
jne 0x420464
add eax, 4
mov dword [ebp - 0xc], eax
cmp byte [ebp - 1], 0
je 0x420402
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x8664
jne 0x420402
mov eax, edi
call fcn.00403288
mov eax, 0xf0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xf0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420402
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420402
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
cmp byte [ebp - 1], 0
jne 0x420464
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x14c
jb 0x420464
mov eax, dword [ebp - 0xc]
cmp word [eax], 0x150
ja 0x420464
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 8]
push eax
push 0xe0
push edi
push esi
call fcn.00406d7c
test eax, eax
je 0x420464
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 4]
jne 0x420464
mov eax, dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x420489
inc ebx
cmp ebx, 0x19
jne 0x4202b1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d98a6
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x438860
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x22000]
push edi
or ebp, 0xffffffff
jmp 0x438882
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x438889
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x438878
mov eax, 1
add ebx, ebx
jne 0x43889b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x438890
jne 0x4388ac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x438890
xor ecx, ecx
sub eax, 3
jb 0x4388c0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x438932
mov ebp, eax
add ebx, ebx
jne 0x4388cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4388d8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4388fc
inc ecx
add ebx, ebx
jne 0x4388e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4388dd
jne 0x4388f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4388dd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x43891c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x43890d
jmp 0x43887e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x43891c
add edi, ecx
jmp 0x43887e
pop esi
mov edi, esi
mov ecx, 0xe0e
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x43893a
cmp byte [edi], 0xa
jne 0x43893a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x43893f
lea edi, [esi + 0x36000]
mov eax, dword [edi]
or eax, eax
je 0x4389b7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x3820c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x382ac]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x43896c
mov ecx, edi
jns 0x43899b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x382b0]
or eax, eax
je 0x4389b1
mov dword [ebx], eax
add ebx, 4
jmp 0x438989
call dword [esi + 0x382b4]
popal
jmp 0x41be59
Function at 0x401ab0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x48a9d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebp
push esi
mov esi, ecx
push edi
push 0
push 0x18
lea edi, [esi + 0xc28]
push 0x217
push 0x258
mov ecx, edi
call fcn.0045cfe0
lea eax, [esp + 0x1c]
push eax
call fcn.0045e700
add esp, 4
push 0x4a10c0
lea ecx, [esp + 0x1c]
push eax
push ecx
mov dword [esp + 0x44], 0
call sub.MFC42.DLL_operator_2
mov eax, dword [eax]
lea ebp, [esi + 0xc70]
push eax
mov ecx, ebp
mov byte [esp + 0x3c], 1
call fcn.0045cb20
lea ecx, [esp + 0x18]
mov byte [esp + 0x38], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov edx, dword [edi]
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push 0
push 0
push 0
push ebp
mov ecx, edi
call dword [edx + 0xc]
add esi, 0xc8c
push 0x4d
push 0x35
mov ecx, esi
call fcn.0040fe20
lea eax, [esp + 0x20]
mov ecx, esi
push eax
mov dword [esp + 0x24], 0x17
mov dword [esp + 0x28], 0x1d
mov dword [esp + 0x2c], 0x1a9
mov dword [esp + 0x30], 0x200
call fcn.0040fd60
push 0x16
push 0x2c
mov ecx, esi
call fcn.0040fe40
lea ecx, [esp + 0xc]
push ecx
call fcn.0045e700
add esp, 4
lea edx, [esp + 0xc]
push 0x4a10a8
lea eax, [esp + 0x18]
push edx
push eax
mov dword [esp + 0x44], 2
call sub.MFC42.DLL_operator_2
lea ecx, [esp + 0xc]
push 0x4a1090
lea edx, [esp + 0x14]
push ecx
mov byte [esp + 0x40], 3
push edx
call sub.MFC42.DLL_operator_2
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push eax
push ecx
mov ecx, esi
mov byte [esp + 0x40], 4
call fcn.0040fcd0
lea ecx, [esp + 0x10]
mov byte [esp + 0x38], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x38], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov dword [esp + 0x38], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x30]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x30
ret
Function at 0x4091e0
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x400
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 5]
mov byte [esp + 4], 0
lea edx, [esp + 4]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x40c]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x410]
push eax
push ecx
push 0x3ff
push 0x400
push edx
call dword [0x4a1070]
add esp, 0x14
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
pop edi
add esp, 0x400
ret
Function at 0x40aa70
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x400
push ebx
push esi
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
mov edx, dword [esp + 0x41c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x410]
lea ecx, [esp + 0xc]
push eax
mov eax, dword [esp + 0x41c]
push 0x400
push ecx
mov ecx, dword [esp + 0x420]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov al, byte [esp + 0xc]
xor edi, edi
xor esi, esi
lea edx, [esp + 0xc]
test al, al
lea ecx, [esp + 0xc]
je 0x40aaf6
cmp al, 0x20
je 0x40aae7
cmp al, 9
je 0x40aae7
test edi, edi
jne 0x40aaee
mov edi, 1
mov edx, ecx
jmp 0x40aaee
cmp edi, 1
jne 0x40aaee
mov esi, ecx
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x40aad2
mov ebx, dword [esp + 0x420]
test edx, edx
mov byte [ebx], 0
je 0x40ab65
test esi, esi
jne 0x40ab3f
test ebx, ebx
je 0x40ab65
mov esi, dword [esp + 0x424]
test esi, esi
jle 0x40ab65
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, esi
jae 0x40ab65
push edx
push esi
push ebx
call dword [0x4a1084]
add esp, 0xc
pop edi
pop esi
pop ebx
add esp, 0x400
ret 0x18
sub esi, edx
test ebx, ebx
je 0x40ab65
test esi, esi
jle 0x40ab65
mov eax, dword [esp + 0x424]
cmp eax, esi
jle 0x40ab65
push esi
push edx
push eax
push ebx
call dword [0x4a1080]
add esp, 0x10
mov byte [esi + ebx], 0
pop edi
pop esi
pop ebx
add esp, 0x400
ret 0x18
Function at 0x40ab80
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x108
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
mov ebx, dword [esp + 0x11c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push ebx
lea eax, [esp + 0x18]
push 0x104
push eax
push 0
push 0x4a166c
push 0x4a1660
mov dword [esp + 0x28], esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edx, [esp + 0x14]
lea ecx, [esp + 0x14]
test edx, edx
je 0x40abed
mov al, byte [esp + 0x14]
test al, al
je 0x40abed
cmp al, 0x20
je 0x40abe5
cmp al, 9
jne 0x40ac30
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x40abdd
mov esi, dword [esp + 0x120]
test esi, esi
je 0x40ac23
mov edx, dword [esp + 0x124]
test edx, edx
jle 0x40ac23
test ebx, ebx
je 0x40ac23
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, edx
jae 0x40ac23
push ebx
push edx
push esi
call dword [0x4a1084]
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret 0xc
lea eax, [esp + 0x14]
push 0x3a
push eax
call dword [sym.imp.MSVCRT.dll__mbschr]
add esp, 8
test eax, eax
jne 0x40acf6
cmp byte [esp + 0x14], 0x5c
je 0x40acf6
test ebx, ebx
je 0x40ac23
mov edi, dword [esp + 0x120]
test edi, edi
je 0x40ac23
mov ebp, dword [esp + 0x124]
test ebp, ebp
jle 0x40ac23
mov esi, dword [sym.imp.MSVCRT.dll__mbsrchr]
push 0x5c
push ebx
call esi
add esp, 8
test eax, eax
jne 0x40ac87
push 0x2f
push ebx
call esi
add esp, 8
test eax, eax
mov byte [edi], 0
je 0x40acae
sub eax, ebx
inc eax
mov esi, eax
test esi, esi
jle 0x40acd9
cmp ebp, esi
jle 0x40acd9
push esi
push ebx
push ebp
push edi
call dword [0x4a1080]
add esp, 0x10
mov byte [esi + edi], 0
jmp 0x40acd9
mov esi, dword [esp + 0x10]
push ebp
push ebx
mov ecx, esi
call fcn.0040afc0
test eax, eax
je 0x40accb
push ebx
push ebp
push edi
call dword [0x4a1084]
add esp, 0xc
push 0x4a1640
push ebp
push edi
mov ecx, esi
call fcn.0040b070
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
push ebp
push edi
call fcn.0040b070
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret 0xc
mov edx, dword [esp + 0x124]
mov eax, dword [esp + 0x120]
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
mov ecx, esi
call fcn.0040ab80
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret 0xc
Function at 0x40d770
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 4]
push ebx
push ebp
xor ebp, ebp
cmp eax, ebp
push esi
je 0x40d801
mov ebx, dword [esp + 0x14]
cmp ebx, ebp
je 0x40d801
cmp byte [ebx], 0
je 0x40d801
cmp dword [esp + 0x18], ebp
je 0x40d801
mov esi, dword [esp + 0x1c]
cmp esi, ebp
je 0x40d801
push edi
push esi
mov dword [esp + 0x1c], ebp
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
lea eax, [esp + 0x20]
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
push ecx
push ebp
push 2
push ebp
push ebp
push ebp
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40d7e9
mov ecx, dword [esp + 0x18]
inc edi
push edi
push esi
push 1
push eax
mov eax, dword [esp + 0x2c]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x40d7e9
mov ebp, 1
mov eax, dword [esp + 0x18]
pop edi
test eax, eax
je 0x40d7f9
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebp
pop esi
pop ebp
pop ebx
ret 0x10
push 0x80070057
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
pop ebp
xor eax, eax
pop ebx
ret 0x10

Function at 0x40ee80
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x48b58f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
lea ecx, [esp + 4]
mov dword [esp + 8], 0
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [esp + 0x24]
lea ecx, [esp + 4]
mov dword [esp + 0x14], 1
mov eax, dword [eax]
push eax
push 0xa
push 0xa
call sub.MFC42.DLL_CString::GetBuffer
mov ecx, dword [esp + 0x28]
push eax
push 0x4a89a8
push ecx
push 0x4a1e3c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0xffffffffffffffff
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::ReleaseBuffer
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::MakeLower
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::TrimLeft
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::TrimRight
mov esi, dword [esp + 0x1c]
lea edx, [esp + 4]
push edx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_1
mov dword [esp + 8], 1
lea ecx, [esp + 4]
mov byte [esp + 0x14], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret 0xc
Function at 0x40f5a0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
push esi
mov esi, ecx
mov edx, 1
push edi
mov dword [esi], 0
mov dword [esi + 4], 0
mov byte [esi + 0xc], dl
mov byte [esi + 0xd], dl
mov dword [esi + 0x10], 0
mov byte [esi + 0xe], 0
mov al, byte [0x4a89a8]
mov ecx, 0x40
mov byte [esp + 8], al
xor eax, eax
lea edi, [esp + 9]
push edx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0xc]
push 5
push ecx
push 0
stosb byte es:[edi], al
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea edx, [esp + 8]
push 0x4a1ef0
push edx
lea eax, [esi + 0x14]
push 0x4a14ac
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x10
mov dword [esi], 0
pop edi
pop esi
add esp, 0x104
ret

Function at 0x40f720
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x48b69b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4d4
mov eax, dword [esp + 0x4e4]
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0xc]
push eax
push ecx
mov ecx, esi
call fcn.0040f9d0
mov ecx, 0x4a8ad8
mov dword [esp + 0x4e8], 0
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0040b710
mov ecx, dword [0x4ad170]
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test ecx, ecx
je 0x40f802
mov edx, dword [0x4abda4]
push edx
call fcn.004334d0
test eax, eax
je 0x40f802
test byte [eax + 0x20], 0x80
je 0x40f7c7
mov eax, dword [esp + 0xc]
push eax
push 0
push 0x4a1f2c
push 0x4a1f1c
call ebx
mov ecx, dword [esp + 0xc]
mov dword [esi], eax
push ecx
push 0
push 0x4a1f0c
push 0x4a1f1c
call ebx
mov dword [esi + 4], eax
mov edx, dword [esi]
mov ecx, 0x12c
xor eax, eax
lea edi, [esp + 0x30]
rep stosd dword es:[edi], eax
mov eax, dword [0x4ac914]
mov dword [esp + 0x30], edx
mov byte [esp + 0x29], al
mov eax, dword [0x4a8c88]
lea edx, [esp + 0x28]
mov byte [esp + 0x28], 7
mov dword [esp + 0x2c], 0x24
mov ecx, dword [eax]
push edx
push 0x2c
push eax
call dword [ecx + 0xc]
mov ecx, dword [0x4ac920]
test ecx, ecx
je 0x40f81c
call fcn.00416200
mov ecx, dword [0x4ac920]
call fcn.004140f0
mov eax, dword [esp + 0xc]
push eax
push 1
push 0x4a1f04
push 0x4a1f1c
call ebx
test eax, eax
mov dword [esi + 8], eax
je 0x40f89b
mov edx, dword [0x4ad1e0]
test edx, edx
je 0x40f89b
xor ecx, ecx
xor eax, eax
mov dword [esp + 0x10], ecx
lea edi, [esp + 0x10]
mov dword [esp + 0x14], ecx
push 0
mov dword [esp + 0x1c], ecx
mov ecx, 6
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x1c], 0x18
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 0x2715
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], 0x32
mov dword [esp + 0x28], 0x2710
mov eax, dword [edx]
push 0
push ecx
mov ecx, edx
call dword [eax + 8]
lea ecx, [esp + 0xc]
mov dword [esp + 0x4e8], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x4e0]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x4e0
ret 4
Function at 0x40f9d0
Capabilities:
Create directory
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x48b70b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x114
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x19]
mov byte [esp + 0x18], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, 1
lea eax, [esp + 0x18]
push edi
push 0x1a
push eax
push 0
mov dword [esp + 0x24], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_2
push 0x4a1ed4
lea ecx, [esp + 0xc]
mov dword [esp + 0x128], edi
call sub.MFC42.DLL_CString::operator_2
mov edx, dword [esp + 8]
mov esi, dword [sym.imp.MSVCRT.dll__mkdir]
push edx
call esi
add esp, 4
lea ecx, [esp + 8]
push 0x4a1ecc
call sub.MFC42.DLL_CString::operator_2
mov eax, dword [esp + 8]
push eax
call esi
add esp, 4
lea ecx, [esp + 8]
push 0x4a1ec0
call sub.MFC42.DLL_CString::operator_2
mov ecx, dword [esp + 8]
push ecx
call esi
add esp, 4
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_3
mov eax, dword [0x4a1708]
mov byte [esp + 0x124], 2
test eax, eax
je 0x40fad5
lea edx, [esp + 8]
push 0x4a1ea8
lea eax, [esp + 0x14]
push edx
push eax
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x128], 3
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x10]
mov byte [esp + 0x124], 2
call sub.MFC42.DLL_CString::CString
jmp 0x40faf4
mov ecx, dword [esp + 0x130]
mov edx, dword [esp + 8]
push ecx
push edx
lea eax, [esp + 0x14]
push 0x4a1eb4
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x10
mov esi, dword [esp + 0x12c]
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_1
mov dword [esp + 0x14], edi
lea ecx, [esp + 0xc]
mov byte [esp + 0x124], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov byte [esp + 0x124], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x11c]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x120
ret 8
Function at 0x411700
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x48bdc8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push esi
lea eax, [esp + 4]
push edi
mov edi, ecx
push eax
call fcn.0045e700
add esp, 4
lea ecx, [esp + 0xc]
mov dword [esp + 0x40], 0
call sub.MFC42.DLL_CString::CString_3
push 1
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push 0x4a1fa4
mov byte [esp + 0x4c], 1
call sub.MFC42.DLL_CString::CString_2
push ecx
mov byte [esp + 0x4c], 2
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0x4a20c0
call sub.MFC42.DLL_CString::CString_2
push ecx
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x34], esp
push 0x4a20b0
push edx
push ecx
mov byte [esp + 0x5c], 3
call sub.MFC42.DLL_operator_2
lea eax, [esp + 0x1c]
mov ecx, edi
push eax
mov byte [esp + 0x54], 1
call fcn.00416030
lea ecx, [esp + 8]
push 0x4a2098
lea edx, [esp + 0x1c]
push ecx
push edx
call sub.MFC42.DLL_operator_2
lea esi, [edi + 0xd0]
push 0x69
push 0x10e
mov ecx, esi
mov byte [esp + 0x48], 4
call fcn.0040fe20
lea eax, [esp + 0x28]
mov ecx, esi
push eax
mov dword [esp + 0x2c], 0xea
mov dword [esp + 0x30], 0x45
mov dword [esp + 0x34], 0x2fc
mov dword [esp + 0x38], 0x292
call fcn.0040fd60
push 0x1a
push 0x39
mov ecx, esi
call fcn.0040fe40
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0xc]
push ecx
push edx
mov ecx, esi
call fcn.0040fcd0
lea eax, [esp + 8]
push 0x4a10a8
lea ecx, [esp + 0x18]
push eax
push ecx
call sub.MFC42.DLL_operator_2
mov byte [esp + 0x40], 5
push 0x4a1090
lea edx, [esp + 0xc]
lea eax, [esp + 0x14]
push edx
push eax
call sub.MFC42.DLL_operator_2
lea esi, [edi + 0x4b0]
push 0x57
push 0xd1
mov ecx, esi
mov byte [esp + 0x48], 6
call fcn.0040fe20
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], 0xb2
push ecx
mov ecx, esi
mov dword [esp + 0x30], 0x38
mov dword [esp + 0x34], 0x249
mov dword [esp + 0x38], 0x206
call fcn.0040fd60
push 0x15
push 0x2c
mov ecx, esi
call fcn.0040fe40
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
push edx
push eax
mov ecx, esi
call fcn.0040fcd0
lea ecx, [esp + 0x10]
mov byte [esp + 0x40], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x40], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x40], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x40], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov dword [esp + 0x40], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x38]
pop edi
mov dword fs:[0], ecx
pop esi
add esp, 0x3c
ret
Function at 0x4157a0
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
push edi
mov ecx, 0x24
xor eax, eax
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
lea eax, [esp + 4]
mov dword [esp + 4], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 0x14]
pop edi
sub eax, 0
je 0x41588b
dec eax
je 0x415840
dec eax
je 0x4157e7
mov eax, 0xa
add esp, 0x94
ret
mov eax, dword [esp + 4]
cmp eax, 4
ja 0x4157f9
xor eax, eax
add esp, 0x94
ret
cmp eax, 5
jne 0x415834
mov eax, dword [esp + 8]
test eax, eax
jne 0x415812
mov eax, 1
add esp, 0x94
ret
cmp eax, 1
jne 0x415823
mov eax, 2
add esp, 0x94
ret
cmp eax, 2
jne 0x415834
mov eax, 3
add esp, 0x94
ret
mov eax, 4
add esp, 0x94
ret
cmp dword [esp + 4], 4
jne 0x4157db
mov eax, dword [esp + 8]
test eax, eax
jne 0x41585b
mov eax, 5
add esp, 0x94
ret
cmp eax, 0xa
jne 0x415876
mov dl, byte [esp + 0x15]
xor eax, eax
cmp dl, 0x41
setne al
add eax, 6
add esp, 0x94
ret
cmp eax, 0x5a
jne 0x4157db
mov eax, 8
add esp, 0x94
ret
mov eax, 9
add esp, 0x94
ret