joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406e68
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x5c
mov eax, dword [0x4fa5ac]
xor eax, esp
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x64]
push ebx
push ebp
mov ebp, dword [esp + 0x68]
push esi
mov esi, ecx
xor ecx, ecx
push edi
mov dword [esp + 0x10], eax
mov word [esp + 0x50], cx
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x50]
mov ebx, 7
xor edi, edi
xor edx, edx
push ecx
mov ecx, esi
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x68], edi
mov dword [esp + 0x50], ebx
mov dword [esp + 0x4c], edi
mov word [esp + 0x3c], dx
call fcn.00406970
mov dword [esi + 4], eax
cmp eax, edi
jne 0x406f01
mov esi, 8
cmp dword [esp + 0x48], esi
jb 0x406ec5
mov edx, dword [esp + 0x34]
push edx
call fcn.004390ba
add esp, 4
xor eax, eax
mov dword [esp + 0x48], ebx
mov dword [esp + 0x44], edi
mov word [esp + 0x34], ax
cmp dword [esp + 0x64], esi
jb 0x406ee7
mov ecx, dword [esp + 0x50]
push ecx
call fcn.004390ba
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 9
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.00439589
add esp, 0x5c
ret 8
call fcn.00408560
mov edi, eax
mov ebx, dword [edi]
lea edx, [esp + 0x4c]
push edx
lea eax, [esp + 0x18]
push eax
add ebx, 0xc
call fcn.00408230
mov edx, dword [ebx]
add esp, 8
push eax
push str.BlueSky_VERSION
mov ecx, edi
call edx
cmp dword [esp + 0x2c], 0x10
jb 0x406f3f
mov eax, dword [esp + 0x18]
push eax
call fcn.004390ba
add esp, 4
mov edx, dword [esi]
mov edx, dword [edx + 8]
lea eax, [esp + 0x30]
push eax
mov ecx, esi
call edx
mov eax, dword [esi + 4]
push str.ChromeMain
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
jne 0x406fc8
mov edx, dword [edi]
mov eax, dword [edx]
push 1
mov ecx, edi
call eax
mov esi, 8
cmp dword [esp + 0x48], esi
jb 0x406f84
mov ecx, dword [esp + 0x34]
push ecx
call fcn.004390ba
add esp, 4
xor edx, edx
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], 0
mov word [esp + 0x34], dx
cmp dword [esp + 0x64], esi
jb 0x406fae
mov eax, dword [esp + 0x50]
push eax
call fcn.004390ba
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 7
pop ebx
mov ecx, dword [esp + 0x58]
xor ecx, esp
call fcn.00439589
add esp, 0x5c
ret 8
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ecx, dword [esp + 0x10]
push eax
push ecx
push ebp
call ebx
mov edx, dword [esi]
mov edx, dword [edx + 0xc]
add esp, 0xc
lea ecx, [esp + 0x30]
push ecx
push eax
mov ecx, esi
call edx
mov ebx, eax
mov eax, dword [edi]
mov edx, dword [eax]
push 1
mov ecx, edi
call edx
mov esi, 8
cmp dword [esp + 0x48], esi
jb 0x40700d
mov eax, dword [esp + 0x34]
push eax
call fcn.004390ba
add esp, 4
xor ecx, ecx
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], 0
mov word [esp + 0x34], cx
cmp dword [esp + 0x64], esi
jb 0x407037
mov edx, dword [esp + 0x50]
push edx
call fcn.004390ba
add esp, 4
mov ecx, dword [esp + 0x68]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.00439589
add esp, 0x5c
ret 8
Function at 0x407c50
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov eax, 0x10a4
call fcn.00439d30
mov eax, dword [0x4fa5ac]
xor eax, esp
mov dword [esp + 0x10a0], eax
mov eax, dword [esp + 0x10ac]
push ebx
xor ebx, ebx
push esi
mov dword [esp + 8], ebx
cmp dword [0x4fc768], 1
push edi
mov edi, dword [esp + 0x10b4]
mov esi, ecx
mov dword [esp + 0x10], eax
jne 0x407cc9
call fcn.00408d70
cmp eax, 3
jg 0x407cc9
cmp dword [esp + 0x10], ebx
jne 0x407cc9
push 3
push 0x9a
push str..win_registry.cc
lea ecx, [esp + 0x24]
mov ebx, 1
call fcn.0040d230
add eax, 4
push str.Check_failed:_value.
push eax
call fcn.004025f0
add esp, 8
test bl, 1
je 0x407cd7
lea ecx, [esp + 0x18]
call fcn.0040cc70
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esi]
lea edx, [esp + 0xb0]
push edx
lea eax, [esp + 0x1c]
push eax
push 0
push edi
push ecx
mov dword [esp + 0x2c], 1
mov dword [esp + 0x24], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x407d41
mov eax, dword [esp + 0x14]
cmp eax, 1
jne 0x407d5d
lea eax, [esp + 0xac]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407d20
mov ecx, dword [esp + 0x10]
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0xb0]
push edx
call fcn.00402040
mov eax, esi
mov ecx, dword [esp + 0x10ac]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00439589
add esp, 0x10a4
ret 8
cmp eax, 2
jne 0x407da6
push 0x400
lea eax, [esp + 0x8b0]
push eax
lea ecx, [esp + 0xb4]
push ecx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [esp + 0xc], eax
test eax, eax
je 0x407d9f
cmp eax, 0x400
ja 0x407d9f
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x8ac]
push edx
call fcn.00402460
jmp 0x407d41
mov eax, 0xea
jmp 0x407d43
mov eax, 0x3f4
jmp 0x407d43

Function at 0x407db0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xa0
push ebx
xor ebx, ebx
push ebp
mov ebp, dword [esp + 0xb0]
mov dword [esp + 8], ebx
cmp dword [0x4fc768], 1
push esi
mov esi, ecx
jne 0x407e08
call fcn.00408d70
cmp eax, 3
jg 0x407e08
test ebp, ebp
jne 0x407e08
push 3
push 0xb8
push str..win_registry.cc
lea ecx, [esp + 0x24]
lea ebx, [ebp + 1]
call fcn.0040d230
add eax, 4
push str.Check_failed:_value.
push eax
call fcn.004025f0
add esp, 8
test bl, 1
je 0x407e16
lea ecx, [esp + 0x18]
call fcn.0040cc70
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0xb4]
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esi]
lea edx, [esp + 0x1c]
push edx
push 0
push eax
push ecx
mov dword [esp + 0x2c], 4
mov dword [esp + 0x28], 4
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x407e81
mov ecx, dword [esp + 0x14]
cmp ecx, 4
je 0x407e62
cmp ecx, 3
jne 0x407e7c
cmp dword [esp + 0x10], 4
jne 0x407e7c
mov edx, dword [esp + 0xc]
pop esi
mov dword [ebp], edx
pop ebp
pop ebx
add esp, 0xa0
ret 8
mov eax, 0x3f4
pop esi
pop ebp
pop ebx
add esp, 0xa0
ret 8
Function at 0x4089b0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x40
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x54]
mov dword [esp + 0x10], edi
test edi, edi
jne 0x4089c9
mov dword [esp + 0x14], edi
jmp 0x4089dd
mov eax, edi
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4089d0
sub eax, edx
mov dword [esp + 0x14], eax
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x38]
push ecx
call fcn.00408280
mov ebp, 8
add esp, 8
cmp dword [eax + 0x18], ebp
jb 0x4089fe
mov eax, dword [eax + 4]
jmp 0x408a01
add eax, 4
mov ebx, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push 0
push 0
push eax
call ebx
mov esi, eax
cmp dword [esp + 0x4c], ebp
jb 0x408a23
mov edx, dword [esp + 0x38]
push edx
call fcn.004390ba
add esp, 4
test esi, esi
jne 0x408a33
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x40
ret 8
cmp dword [esp + 0x58], 0
je 0x408b28
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004383d6
add esp, 4
mov ebp, eax
mov dword [esp + 0x10], edi
test edi, edi
jne 0x408a69
mov dword [esp + 0x14], edi
jmp 0x408a7d
mov eax, edi
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408a70
sub eax, edx
mov dword [esp + 0x14], eax
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x38]
push ecx
call fcn.00408280
mov edi, 8
add esp, 8
cmp dword [eax + 0x18], edi
jb 0x408a9e
mov eax, dword [eax + 4]
jmp 0x408aa1
add eax, 4
push esi
push ebp
push eax
call ebx
cmp dword [esp + 0x4c], edi
jb 0x408ab9
mov edx, dword [esp + 0x38]
push edx
call fcn.004390ba
add esp, 4
push ebp
lea ecx, [esp + 0x38]
call fcn.00402420
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.00408230
mov ecx, dword [esp + 0x60]
add esp, 8
push 0xffffffffffffffff
push 0
push eax
call fcn.00401c40
cmp dword [esp + 0x30], 0x10
jb 0x408af7
mov edx, dword [esp + 0x1c]
push edx
call fcn.004390ba
add esp, 4
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], 0
mov byte [esp + 0x1c], 0
cmp dword [esp + 0x4c], edi
jb 0x408b1f
mov eax, dword [esp + 0x38]
push eax
call fcn.004390ba
add esp, 4
push ebp
call fcn.0043961a
add esp, 4
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x40
ret 8
Function at 0x40a110
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x284
mov eax, dword [0x4fa5ac]
xor eax, esp
mov dword [esp + 0x280], eax
push esi
mov esi, dword [esp + 0x28c]
cmp dword [esi + 0x14], 0
je 0x40a260
cmp byte [0x4fc77f], 0
je 0x40a260
push 0x104
lea eax, [esp + 0x80]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x7c]
push 0x5c
push ecx
call fcn.00439850
add esp, 8
test eax, eax
je 0x40a171
xor edx, edx
mov word [eax + 2], dx
push str.debug_message.exe
lea eax, [esp + 0x80]
push 0x104
push eax
call fcn.0043ac7d
add esp, 0xc
cmp dword [esi + 0x18], 0x10
jb 0x40a19a
mov ecx, dword [esi + 4]
mov dword [esp + 4], ecx
jmp 0x40a1a1
lea edx, [esi + 4]
mov dword [esp + 4], edx
mov eax, dword [esi + 0x14]
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0x64]
push edx
mov dword [esp + 0x10], eax
call fcn.00408280
add esp, 8
cmp dword [esp + 0x74], 0
je 0x40a257
push 0x44
lea eax, [esp + 0x20]
push 0
push eax
call fcn.004395a0
mov eax, dword [esp + 0x70]
add esp, 0xc
cmp dword [esp + 0x78], 8
mov dword [esp + 0x1c], 0x44
jae 0x40a1ed
lea eax, [esp + 0x64]
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x20]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
lea eax, [esp + 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40a239
mov ecx, dword [esp + 0xc]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0xc]
push eax
call esi
jmp 0x40a257
push 0x40010
push 0x4a68fc
push 0
lea ecx, [esp + 0x6c]
call fcn.0040d820
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [esp + 0x60]
call fcn.00437940
mov ecx, dword [esp + 0x284]
pop esi
xor ecx, esp
call fcn.00439589
add esp, 0x284
ret
Function at 0x40fca0
Capabilities:
Accept command line arguments

Disassembly:
mov ecx, dword [0x4fc7a8]
sub esp, 0x1c
push esi
mov esi, ecx
test ecx, ecx
je 0x40fcbe
call fcn.0040f490
push esi
call fcn.004390ba
add esp, 4
push 0x70
call fcn.00439524
add esp, 4
test eax, eax
je 0x40fcda
mov ecx, eax
call fcn.0040f810
mov dword [0x4fc7a8], eax
jmp 0x40fce4
mov dword [0x4fc7a8], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor ecx, ecx
mov word [esp + 8], cx
mov ecx, eax
mov dword [esp + 0x1c], 7
mov dword [esp + 0x18], 0
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x40fd06
sub ecx, esi
sar ecx, 1
push ecx
push eax
lea ecx, [esp + 0xc]
call fcn.00402040
mov ecx, dword [0x4fc7a8]
lea edx, [esp + 4]
push edx
call fcn.0040f9f0
cmp dword [esp + 0x1c], 8
pop esi
jb 0x40fd45
mov eax, dword [esp + 4]
push eax
call fcn.004390ba
add esp, 4
add esp, 0x1c
ret

Function at 0x40fca9
Capabilities:
Accept command line arguments

Disassembly:
mov ecx, dword [0x4fc7a8]
sub esp, 0x1c
push esi
mov esi, ecx
test ecx, ecx
je 0x40fcbe
call fcn.0040f490
push esi
call fcn.004390ba
add esp, 4
push 0x70
call fcn.00439524
add esp, 4
test eax, eax
je 0x40fcda
mov ecx, eax
call fcn.0040f810
mov dword [0x4fc7a8], eax
jmp 0x40fce4
mov dword [0x4fc7a8], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor ecx, ecx
mov word [esp + 8], cx
mov ecx, eax
mov dword [esp + 0x1c], 7
mov dword [esp + 0x18], 0
lea esi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x40fd06
sub ecx, esi
sar ecx, 1
push ecx
push eax
lea ecx, [esp + 0xc]
call fcn.00402040
mov ecx, dword [0x4fc7a8]
lea edx, [esp + 4]
push edx
call fcn.0040f9f0
cmp dword [esp + 0x1c], 8
pop esi
jb 0x40fd45
mov eax, dword [esp + 4]
push eax
call fcn.004390ba
add esp, 4
add esp, 0x1c
ret

Function at 0x411a60
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
ret
Function at 0x411d10
Capabilities:
Check os version
Get system information on windows

Disassembly:
sub esp, 0x148
mov eax, dword [0x4fa5ac]
xor eax, esp
mov dword [esp + 0x144], eax
push esi
mov esi, ecx
push edi
mov dword [esi], 0
mov dword [esi + 0x18], 3
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push str.IsWow64Process
push 0x4a3904
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x411d7c
lea ecx, [esp + 8]
push ecx
push edi
mov dword [esp + 0x10], 0
call eax
test eax, eax
jne 0x411d73
mov eax, 2
jmp 0x411d7c
xor eax, eax
cmp dword [esp + 8], eax
setne al
push 0x118
lea edx, [esp + 0x38]
push 0
push edx
mov dword [esi + 0x24], eax
mov dword [esp + 0x3c], 0x11c
call fcn.004395a0
add esp, 0xc
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
cmp eax, 5
jne 0x411dd1
test ecx, ecx
jle 0x411dff
xor eax, eax
cmp ecx, 1
setne al
inc eax
mov dword [esi], eax
jmp 0x411dff
cmp eax, 6
jne 0x411df7
cmp byte [esp + 0x14a], 1
jne 0x411def
xor edx, edx
test ecx, ecx
setne dl
lea edx, [edx + edx + 3]
mov dword [esi], edx
jmp 0x411dff
mov dword [esi], 4
jmp 0x411dff
jle 0x411dff
mov dword [esi], 5
movzx eax, word [esp + 0x144]
movzx ecx, word [esp + 0x146]
mov dword [esi + 0x10], eax
xor eax, eax
lea edx, [esp + 0xc]
push edx
mov dword [esi + 0x14], ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx eax, word [esp + 0xc]
test eax, eax
je 0x411e6f
cmp eax, 6
je 0x411e66
cmp eax, 9
jne 0x411e76
mov dword [esi + 0x18], 1
jmp 0x411e76
mov dword [esi + 0x18], 2
jmp 0x411e76
mov dword [esi + 0x18], 0
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x28]
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], ecx
mov ecx, dword [esp + 0x14c]
pop edi
mov eax, esi
pop esi
xor ecx, esp
call fcn.00439589
add esp, 0x148
ret
Function at 0x412860
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x19c
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1ac]
xor ebx, ebx
mov ebp, ecx
mov dword [esp + 0xc], ebx
test esi, esi
jne 0x412881
mov esi, 0x4a3981
push edi
mov edi, dword [esp + 0x1c0]
test edi, edi
jne 0x412892
mov edi, 0x4a3981
mov eax, dword [esp + 0x1b8]
sub eax, 0
je 0x41290d
sub eax, 1
je 0x412909
sub eax, 1
je 0x412905
cmp dword [0x4fc768], 1
jne 0x4128f4
call fcn.00408d70
cmp eax, 3
jg 0x4128f4
push 3
push 0x44
push str..debug_trace_event_win.cc
lea ecx, [esp + 0x124]
mov ebx, 1
call fcn.0040d230
push str.Unknown_event_type
add eax, 4
push str.Check_failed:_false.
push eax
call fcn.004025f0
add esp, 8
push eax
call fcn.004025f0
add esp, 8
test bl, 1
je 0x412905
lea ecx, [esp + 0x118]
call fcn.0040cc70
mov bl, 0x12
jmp 0x41290f
mov bl, 0x11
jmp 0x41290f
mov bl, 0x10
push 0x80
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.004395a0
mov edx, dword [0x4a6dc0]
mov eax, dword [0x4a6dc4]
mov ecx, 0x80
mov word [esp + 0x24], cx
mov ecx, dword [0x4a6dc8]
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x1c0]
mov dword [esp + 0x3c], edx
mov edx, dword [0x4a6dcc]
mov byte [esp + 0x28], bl
inc ecx
add esp, 0xc
mov ebx, 4
mov dword [esp + 0x34], eax
mov dword [esp + 0x3c], edx
mov byte [esp + 0x1d], bl
mov dword [esp + 0x44], 0x120000
cmp ecx, 0xffffffff
ja 0x412985
mov eax, esi
cdq
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], edx
mov dword [esp + 0x50], ecx
mov ecx, dword [esp + 0x1c4]
lea eax, [esp + 0x1bc]
cdq
inc ecx
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], edx
mov dword [esp + 0x60], ebx
cmp ecx, 0xffffffff
ja 0x4129b5
mov eax, edi
cdq
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], edx
mov dword [esp + 0x70], ecx
test byte [ebp + 0x28], 1
pop edi
je 0x412a15
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x98]
push ecx
push 0x20
push 0
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_RtlCaptureStackBackTrace]
movzx ecx, ax
add ecx, ecx
lea eax, [esp + 0x10]
cdq
add ecx, ecx
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], edx
mov dword [esp + 0x7c], ebx
cmp ecx, 0xffffffff
ja 0x412a15
lea eax, [esp + 0x94]
cdq
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], edx
mov dword [esp + 0x8c], ecx
lea edx, [esp + 0x14]
push edx
mov ecx, ebp
call fcn.00415cf0
pop esi
pop ebp
pop ebx
add esp, 0x19c
ret 0x18

Function at 0x413070
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x18], 8
jb 0x41308f
mov eax, dword [eax + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
ret
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
ret
Function at 0x4131a0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x264
mov eax, dword [0x4fa5ac]
xor eax, esp
mov dword [esp + 0x260], eax
push esi
mov esi, dword [esp + 0x26c]
lea eax, [esp + 0x58]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x102
ja 0x413242
lea ecx, [esp + 0x58]
push ecx
lea ecx, [esp + 8]
call fcn.00402420
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x44]
call fcn.00410230
mov ecx, eax
call fcn.00410510
push eax
mov ecx, esi
call fcn.00410380
lea ecx, [esp + 0x20]
call fcn.00437940
lea ecx, [esp + 0x3c]
call fcn.00437940
cmp dword [esp + 0x1c], 8
jb 0x41322a
mov ecx, dword [esp + 8]
push ecx
call fcn.004390ba
add esp, 4
mov al, 1
pop esi
mov ecx, dword [esp + 0x260]
xor ecx, esp
call fcn.00439589
add esp, 0x264
ret
mov ecx, dword [esp + 0x264]
pop esi
xor ecx, esp
xor al, al
call fcn.00439589
add esp, 0x264
ret

Function at 0x413260
Capabilities:
Get common file path

Disassembly:
sub esp, 0x260
mov eax, dword [0x4fa5ac]
xor eax, esp
mov dword [esp + 0x25c], eax
push esi
mov esi, dword [esp + 0x268]
lea ecx, [esp + 0x58]
push ecx
xor eax, eax
push 0x104
mov word [esp + 0x60], ax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x41330c
cmp eax, 0x104
ja 0x41330c
lea edx, [esp + 0x58]
push edx
lea ecx, [esp + 0x40]
call fcn.00402420
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0x40]
push ecx
lea ecx, [esp + 0x28]
call fcn.00410230
mov ecx, eax
call fcn.00410510
push eax
mov ecx, esi
call fcn.00410380
lea ecx, [esp + 4]
call fcn.00437940
lea ecx, [esp + 0x20]
call fcn.00437940
cmp dword [esp + 0x54], 8
jb 0x4132f4
mov edx, dword [esp + 0x40]
push edx
call fcn.004390ba
add esp, 4
mov al, 1
pop esi
mov ecx, dword [esp + 0x25c]
xor ecx, esp
call fcn.00439589
add esp, 0x260
ret
mov ecx, dword [esp + 0x260]
pop esi
xor ecx, esp
xor al, al
call fcn.00439589
add esp, 0x260
ret
Function at 0x413330
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
push edi
call fcn.00411f50
cmp eax, 1
jle 0x413431
mov eax, dword [esp + 0x2c]
xor esi, esi
push esi
push 0x8000000
push 3
push esi
push 7
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
lea ecx, [esp + 0x10]
mov ebp, eax
mov dword [esp + 0x10], esi
call fcn.00410870
cmp ebp, 0xffffffff
je 0x41337c
mov dword [esp + 0x10], ebp
jmp 0x413380
mov ebp, dword [esp + 0x10]
cmp ebp, esi
jne 0x413397
lea ecx, [esp + 0x10]
call fcn.00410870
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x18
ret
mov eax, dword [esp + 0x34]
mov dword [esp + 0x1c], eax
cmp eax, 0x100000
mov dword [esp + 0x18], 0x100000
lea eax, [esp + 0x18]
jb 0x4133b6
lea eax, [esp + 0x1c]
mov ebx, dword [eax]
push 4
push 0x1000
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
cmp edi, esi
je 0x413384
push esi
lea ecx, [esp + 0x18]
push ecx
push ebx
push edi
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
call ebp
test eax, eax
je 0x413410
mov ecx, dword [esp + 0x14]
test ecx, ecx
jbe 0x413410
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4133fa
cmp esi, eax
sbb eax, eax
neg eax
je 0x413410
mov eax, dword [esp + 0x10]
push 0
lea edx, [esp + 0x18]
push edx
push ebx
push edi
push eax
add esi, ecx
call ebp
test eax, eax
jne 0x4133e2
push 0x8000
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
lea ecx, [esp + 0x10]
call fcn.00410870
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x18
ret
mov ecx, dword [esp + 0x2c]
push 9
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
je 0x41338d
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], 0x4a6e70
mov dword [esp + 0x24], esi
call fcn.0041bcf0
mov ecx, dword [esp + 0x30]
test ecx, ecx
jne 0x41346a
mov ecx, dword [eax + 0x50]
xor eax, eax
test ecx, ecx
jbe 0x41347d
mov edi, dword [esp + 0x34]
mov dl, byte [eax + esi]
add eax, edi
cmp eax, ecx
jb 0x413474
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x18
ret
Function at 0x4179c0
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x10004
call fcn.00439d30
mov eax, dword [0x4fa5ac]
xor eax, esp
mov dword [esp + 0x10000], eax
mov eax, dword [esp + 0x10008]
push esi
push edi
mov edi, dword [esp + 0x10014]
push 0x4a70e8
push eax
call fcn.004130b0
mov esi, eax
add esp, 8
test esi, esi
jne 0x417a15
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x10000]
xor ecx, esp
call fcn.00439589
add esp, 0x10004
ret
push esi
push 0x10000
lea eax, [esp + 0x10]
push 1
push eax
call fcn.0043d896
add esp, 0x10
test eax, eax
jbe 0x417a5a
mov edi, edi
test edi, edi
je 0x417a41
push eax
lea ecx, [esp + 0xc]
push ecx
mov ecx, edi
call fcn.004073b0
push esi
push 0x10000
lea edx, [esp + 0x10]
push 1
push edx
call fcn.0043d896
add esp, 0x10
test eax, eax
ja 0x417a30
push esi
call fcn.0043cadc
mov ecx, dword [esp + 0x1000c]
add esp, 4
pop edi
pop esi
xor ecx, esp
mov al, 1
call fcn.00439589
add esp, 0x10004
ret