joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412920
Capabilities:
Get common file path

Disassembly:
push 0x2fc
mov eax, 0x45f142
call fcn.0043c548
mov ebx, ecx
mov esi, dword [ebp + 8]
xor edi, edi
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x260], edx
cmp dword [esi + 0x10], edi
jne 0x41296b
push str.File_path_must_not_be_empty
lea ecx, [ebp - 0x270]
call fcn.00410744
push 0x487d10
lea eax, [ebp - 0x270]
push eax
call fcn.00440ad9
mov dword [ebp - 0x25c], edi
mov dword [ebp - 0x258], edi
mov dword [ebp - 0x254], edi
push ecx
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x22c]
push eax
mov edx, esi
mov byte [ebp - 4], 1
call fcn.00412c2c
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x25c]
call fcn.00413b05
lea ecx, [ebp - 0x22c]
call fcn.00408971
push 0x20a
lea eax, [ebp - 0x220]
mov dword [ebp - 4], edi
push edi
push eax
call fcn.0043e920
add esp, 0xc
lea eax, [ebp - 0x220]
push eax
push edi
push edi
push 0x28
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edi, eax
test edi, edi
jns 0x412a6d
push ecx
push ecx
lea ecx, [ebp - 0x308]
call fcn.00409102
mov edx, str.GFE::Feedback::Builder::AddFile:_SHGetFolderPath_failed_with
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x308]
call fcn.0040c870
push edi
lea ecx, [ebp - 0x308]
call fcn.0040bd70
lea eax, [ebp - 0x238]
push eax
lea ecx, [ebp - 0x308]
call fcn.0040620b
mov byte [ebp - 4], 6
lea edx, [ebp - 0x238]
cmp dword [ebp - 0x224], 8
push 2
cmovae edx, dword [ebp - 0x238]
pop ecx
call fcn.0041dcb0
xor edx, edx
lea ecx, [ebp - 0x238]
push edx
push 1
call fcn.00408a5c
lea ecx, [ebp - 0x308]
call fcn.00402673
lea ecx, [ebp - 0x25c]
call fcn.00408971
call fcn.0043c495
ret 0x10
push esi
lea ecx, [ebp - 0x250]
call fcn.0040635c
lea edx, [ebp - 0x220]
mov byte [ebp - 4], 7
mov ecx, esi
call fcn.00413f1b
test al, al
je 0x412ac5
lea esi, [ebp - 0x220]
xor edx, edx
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
cmp ax, dx
jne 0x412a99
sub esi, ecx
mov edi, str._USERPROFILE_
push edi
sar esi, 1
call fcn.004012d2
pop ecx
push eax
push edi
push esi
xor eax, eax
lea ecx, [ebp - 0x250]
push eax
call fcn.0040be98
push dword [ebp - 0x260]
mov eax, dword [ebp - 0x258]
mov ecx, ebx
sub eax, dword [ebp - 0x25c]
push eax
push dword [ebp - 0x25c]
lea eax, [ebp - 0x250]
push eax
call fcn.00412ffd
xor eax, eax
lea ecx, [ebp - 0x250]
push eax
push 1
call fcn.00408a5c
jmp 0x412a5a
Function at 0x41d758
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push 0x3c
mov eax, 0x4606a0
call fcn.0043c4da
xor ebx, ebx
cmp dword [ecx + 0x10], ebx
jne 0x41d772
xor al, al
jmp 0x41d8af
mov eax, dword [0x47aadc]
push 8
mov dword [ebp - 0x18], eax
mov ax, word [0x47aae0]
pop edi
mov dword [ebp - 0x3c], 0x5c
mov word [ebp - 0x14], ax
cmp dword [ecx + 0x14], edi
jb 0x41d797
mov edx, dword [ecx]
jmp 0x41d799
mov edx, ecx
mov eax, dword [ecx + 0x10]
lea eax, [edx + eax*2]
cmp dword [ecx + 0x14], edi
jb 0x41d7a6
mov ecx, dword [ecx]
mov byte [ebp - 0x34], bl
push dword [ebp - 0x34]
mov dword [ebp - 0x48], ebx
push eax
push ecx
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
call fcn.0041db29
xor eax, eax
mov dword [ebp - 4], ebx
mov word [ebp - 0x36], ax
lea ecx, [ebp - 0x48]
lea eax, [ebp - 0x36]
push eax
call fcn.0041d976
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], ebx
push eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x48]
call fcn.00448511
add esp, 0xc
lea ecx, [ebp - 0x30]
mov esi, eax
push 0x47509c
call fcn.004062f0
mov byte [ebp - 4], 1
jmp 0x41d88f
push esi
call fcn.004012d2
pop ecx
push eax
push esi
lea ecx, [ebp - 0x30]
call fcn.0040a414
cmp dword [ebp - 0x20], 0
jbe 0x41d865
cmp dword [ebp - 0x1c], edi
lea eax, [ebp - 0x30]
cmovae eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
lea eax, [ebp - 0x30]
je 0x41d852
cmp dword [ebp - 0x1c], edi
cmovae eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41d84c
shr eax, 4
and al, 1
jmp 0x41d84e
mov al, bl
test al, al
jmp 0x41d863
cmp dword [ebp - 0x1c], edi
push ebx
cmovae eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x41d899
lea eax, [ebp - 0x3c]
push eax
call fcn.004012d2
pop ecx
push eax
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x30]
call fcn.0040a414
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x18]
push eax
push ebx
call fcn.00448511
add esp, 0xc
mov esi, eax
test esi, esi
jne 0x41d802
mov bl, 1
push 0
push 1
lea ecx, [ebp - 0x30]
call fcn.00408a5c
lea ecx, [ebp - 0x48]
call fcn.004102ff
mov al, bl
call fcn.0043c484
ret
Function at 0x41ebe0
Capabilities:
Read http header

Disassembly:
push 0x178
mov eax, 0x460a9e
call fcn.0043c4da
mov eax, edx
mov dword [ebp - 0xe4], eax
mov edi, ecx
mov dword [ebp - 0xdc], edi
mov ecx, dword [ebp + 8]
xor edx, edx
push edx
mov dword [ebp - 0xe8], ecx
lea ecx, [ebp - 0xe0]
push ecx
push edx
push edx
push 0x16
push eax
mov dword [ebp - 0xec], edx
mov dword [ebp - 0xe0], edx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [ebp - 0xdc], ebx
test esi, esi
jne 0x41ecc3
cmp ebx, 0x7a
je 0x41ecc3
lea ecx, [ebp - 0x184]
call fcn.00406224
and dword [ebp - 4], esi
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0xdc]
push ecx
push str.WinHttpQueryHeaders_failed_with
mov ecx, eax
call fcn.0040b27d
mov ecx, eax
call fcn.0040b23a
mov ecx, eax
call fcn.0040620b
push 1
sub esp, 0x18
mov byte [ebp - 4], 1
mov ecx, esp
push dword [ebp - 0xe8]
call fcn.0040635c
movzx eax, bx
or eax, 0x80070000
test ebx, ebx
push 0x9a
cmovle eax, ebx
push ecx
push eax
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0xd8]
call fcn.0041e773
push 0x487db8
lea eax, [ebp - 0xd8]
push eax
call fcn.00440ad9
mov eax, dword [ebp - 0xe0]
lea ecx, [ebp - 0x1c]
shr eax, 1
push eax
call fcn.0041b83a
xor ebx, ebx
mov dword [ebp - 4], 2
mov esi, dword [ebp - 0x1c]
lea eax, [ebp - 0xe0]
push ebx
push eax
push esi
push ebx
push 0x16
push dword [ebp - 0xe4]
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x41ed70
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea ecx, [ebp - 0x184]
mov dword [ebp - 0xdc], esi
call fcn.00406224
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
push ecx
lea ecx, [ebp - 0xdc]
push ecx
push str.WinHttpQueryHeaders_failed_with
mov ecx, eax
call fcn.0040b27d
mov ecx, eax
call fcn.0040b23a
mov ecx, eax
call fcn.0040620b
push 1
sub esp, 0x18
mov byte [ebp - 4], 4
mov ecx, esp
push dword [ebp - 0xe8]
call fcn.0040635c
movzx eax, si
or eax, 0x80070000
test esi, esi
push 0xac
cmovle eax, esi
push ecx
push eax
lea eax, [ebp - 0x40]
jmp 0x41eca6
mov ecx, dword [ebp - 0x18]
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], ebx
mov word [edi], ax
cmp esi, ecx
je 0x41ed93
sub ecx, esi
sar ecx, 1
push ecx
push esi
mov ecx, edi
call fcn.00408ab3
lea ecx, [ebp - 0x1c]
call fcn.004102ff
mov eax, edi
call fcn.0043c484
ret
Function at 0x41eda3
Capabilities:
Set http header

Disassembly:
push 0x198
mov eax, 0x460b16
call fcn.0043c4da
mov edi, edx
mov ebx, ecx
cmp dword [edi + 4], 0
je 0x41efd2
xor edx, edx
mov dword [ebp - 0x14], 7
xor eax, eax
mov dword [ebp - 0x18], edx
mov word [ebp - 0x28], ax
and dword [ebp - 4], eax
mov eax, dword [edi]
mov ecx, dword [eax]
mov dword [ebp - 0x10c], ecx
cmp ecx, eax
je 0x41ee74
lea esi, [ecx + 0x10]
push 0x47ac5c
mov edx, esi
lea ecx, [ebp - 0x58]
call fcn.0040b18c
lea ecx, [esi + 0x18]
mov byte [ebp - 4], 1
push ecx
mov edx, eax
lea ecx, [ebp - 0x70]
call fcn.00418039
push 0x47313c
mov edx, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
call fcn.0040b204
add esp, 0xc
push 0xffffffffffffffff
xor esi, esi
mov byte [ebp - 4], 3
push esi
push eax
lea ecx, [ebp - 0x28]
call fcn.0040a4b8
push esi
push 1
lea ecx, [ebp - 0x40]
call fcn.00408a5c
push esi
push 1
lea ecx, [ebp - 0x70]
call fcn.00408a5c
push esi
push 1
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0
call fcn.00408a5c
lea ecx, [ebp - 0x10c]
call fcn.00405df8
mov ecx, dword [ebp - 0x10c]
cmp ecx, dword [edi]
jne 0x41ede7
mov edx, dword [ebp - 0x18]
xor esi, esi
lea eax, [edx - 2]
push esi
push eax
lea ecx, [ebp - 0x28]
call fcn.0041800b
push ecx
push ecx
lea ecx, [ebp - 0x108]
call fcn.00409102
mov edx, str.HTTP_request
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x108]
call fcn.0040c870
push fcn.004023d0
lea ecx, [ebp - 0x108]
call fcn.0040be57
push ebx
lea ecx, [ebp - 0x108]
call fcn.00420ac0
mov edx, str.:_request_headers:
lea ecx, [ebp - 0x108]
call fcn.0040c870
lea edx, [ebp - 0x28]
lea ecx, [ebp - 0x108]
call fcn.0040ca40
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x108]
call fcn.0040620b
mov byte [ebp - 4], 5
lea edx, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
push 4
cmovae edx, dword [ebp - 0x40]
pop ecx
call fcn.0041dcb0
push esi
push 1
lea ecx, [ebp - 0x40]
call fcn.00408a5c
lea ecx, [ebp - 0x108]
mov byte [ebp - 4], 0
call fcn.00402673
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0x20000000
cmovae eax, dword [ebp - 0x28]
push 0xffffffffffffffff
push eax
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x41efc6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea ecx, [ebp - 0x1a4]
mov dword [ebp - 0x10c], esi
call fcn.00406224
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 6
push ecx
lea ecx, [ebp - 0x10c]
push ecx
push str.WinHttpAddRequestHeaders_failed_with
mov ecx, eax
call fcn.0040b27d
mov ecx, eax
call fcn.0040b23a
mov ecx, eax
call fcn.0040620b
push 1
sub esp, 0x18
mov byte [ebp - 4], 7
mov ecx, esp
call fcn.00406349
movzx eax, si
or eax, 0x80070000
test esi, esi
push 0xdb
push ecx
cmovle eax, esi
lea ecx, [ebp - 0x108]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.0041e773
push 0x487db8
lea eax, [ebp - 0x108]
push eax
call fcn.00440ad9
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00408a5c
call fcn.0043c484
ret
Function at 0x4224f8
Capabilities:
Delete directory
Delete file

Disassembly:
push 0x40
mov eax, 0x4613d0
call fcn.0043c4da
mov edi, ecx
xor esi, esi
cmp dword [edi], esi
push 0x3e
push str.src_filesystem_object.cpp
setne cl
call fcn.00421241
mov eax, dword [edi]
pop ecx
pop ecx
sub eax, 1
je 0x4225e4
sub eax, 1
jne 0x4225cd
push 0x4705fc
lea ecx, [ebp - 0x28]
call fcn.004062f0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], esi
push eax
lea edx, [edi + 4]
lea ecx, [ebp - 0x4c]
call fcn.00421cd7
pop ecx
push esi
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.00408a5c
mov esi, dword [ebp - 0x4c]
jmp 0x42256d
mov ecx, esi
call fcn.004224f8
add esi, 0x40
cmp esi, dword [ebp - 0x48]
jne 0x422563
lea eax, [ebp - 0x40]
push eax
lea ecx, [edi + 4]
call fcn.0042238c
cmp dword [eax + 0x14], 8
jb 0x422586
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ebx, eax
lea ecx, [ebp - 0x40]
neg ebx
sbb bl, bl
xor esi, esi
push esi
push 1
call fcn.00408a5c
add bl, 1
je 0x4225c5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x54
movzx ecx, ax
mov edx, str.src_filesystem_object.cpp
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
call fcn.0040d728
lea ecx, [ebp - 0x4c]
call fcn.0040612a
push 0x24
lea eax, [edi + 0x1c]
mov dword [edi], esi
push esi
push eax
call fcn.0043e920
add esp, 0xc
call fcn.0043c484
ret
lea eax, [ebp - 0x28]
push eax
lea ecx, [edi + 4]
call fcn.0042238c
cmp dword [eax + 0x14], 8
jb 0x4225f8
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ebx, eax
lea ecx, [ebp - 0x28]
push esi
neg ebx
push 1
sbb bl, bl
call fcn.00408a5c
add bl, 1
je 0x4225cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x46
jmp 0x4225ad
Function at 0x422fbb
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x461659
mov eax, dword fs:[0]
push eax
mov eax, 0x827c
call fcn.0043cbe0
mov eax, dword [0x489e88]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x8154], ebx
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x814c], eax
cmp dword [ebx], eax
push 0x234
push str.srcwindows_registry.cpp
setne cl
mov dword [ebp - 0x8158], esi
call fcn.00421241
pop ecx
pop ecx
xor ecx, ecx
lea eax, [ebp - 0x8144]
push ecx
push ecx
push ecx
push ecx
push eax
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push dword [ebx]
mov dword [ebp - 0x8144], ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov edi, eax
mov dword [ebp - 0x8148], edi
test edi, edi
je 0x4230c5
lea ecx, [ebp - 0x81f0]
call fcn.00406224
lea ecx, [ebp - 0x8040]
xor ebx, ebx
push ecx
lea ecx, [ebp - 0x8148]
inc ebx
push ecx
push str.RegQueryInfoKey_failed_with
mov ecx, eax
mov dword [ebp - 4], ebx
call fcn.0040b27d
mov ecx, eax
call fcn.0040b266
mov ecx, eax
call fcn.0040620b
push ebx
movzx eax, di
lea ecx, [ebp - 0x80c0]
or eax, 0x80070000
mov byte [ebp - 4], 2
push 0x24a
test edi, edi
push str.srcwindows_registry.cpp
cmovle eax, edi
push eax
lea eax, [ebp - 0x8040]
push eax
call fcn.00422738
push 0x487c98
lea eax, [ebp - 0x80c0]
push eax
call fcn.00440ad9
xor ecx, ecx
mov dword [esi], ecx
mov dword [esi + 4], ecx
mov dword [esi + 8], ecx
mov dword [ebp - 4], ecx
mov ebx, ecx
mov dword [ebp - 0x814c], 1
cmp dword [ebp - 0x8144], ebx
jbe 0x42317b
push ecx
push ecx
xor eax, eax
mov dword [ebp - 0x8150], 0x4000
push ecx
mov word [ebp - 0x8010], ax
lea eax, [ebp - 0x8150]
push ecx
push eax
lea eax, [ebp - 0x8010]
push eax
mov eax, dword [ebp - 0x8154]
push ebx
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov edi, eax
mov dword [ebp - 0x8148], edi
cmp edi, 0x103
je 0x42317b
test edi, edi
jne 0x42319b
lea eax, [ebp - 0x8010]
push eax
lea ecx, [ebp - 0x8028]
call fcn.004062f0
lea eax, [ebp - 0x8028]
mov dword [ebp - 4], 5
push eax
mov ecx, esi
call fcn.0040f409
xor eax, eax
lea ecx, [ebp - 0x8028]
push eax
push 1
mov byte [ebp - 4], al
call fcn.00408a5c
inc ebx
push edi
pop ecx
cmp ebx, dword [ebp - 0x8144]
jb 0x4230ea
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043b9f3
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 0x8288]
call fcn.00406224
lea ecx, [ebp - 0x8028]
mov dword [ebp - 4], 3
push ecx
lea ecx, [ebp - 0x8148]
push ecx
push str.RegEnumValueW_failed_with
mov ecx, eax
call fcn.0040b27d
mov ecx, eax
call fcn.0040b266
mov ecx, eax
call fcn.0040620b
push 1
movzx eax, di
lea ecx, [ebp - 0x8140]
or eax, 0x80070000
mov byte [ebp - 4], 4
push 0x26d
test edi, edi
push str.srcwindows_registry.cpp
cmovle eax, edi
push eax
lea eax, [ebp - 0x8028]
push eax
call fcn.00422738
push 0x487c98
lea eax, [ebp - 0x8140]
jmp 0x4230bf
Function at 0x423d21
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [ecx + 0x14], 8
jb 0x423d29
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x423d38
xor al, al
ret
shr eax, 4
not eax
and eax, 1
ret

Function at 0x424480
Capabilities:
Read file on windows

Disassembly:
push 0x424
mov eax, 0x4618eb
call fcn.0043c548
mov esi, ecx
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [edi + 0x14], 8
mov dword [edi + 0x10], ebx
jb 0x4244a6
mov eax, dword [edi]
jmp 0x4244a8
mov eax, edi
xor ecx, ecx
mov word [eax], cx
lea ecx, [ebp - 0x430]
push ebx
call fcn.004242f4
mov byte [ebp - 4], 1
cmp dword [esi + 0x14], 8
jb 0x4244c5
mov esi, dword [esi]
push 0x47bf78
push esi
call fcn.00448641
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4244fb
mov esi, dword [ebp - 0x430]
test esi, esi
je 0x4244f3
mov ecx, esi
call fcn.004242ca
push 0xc
push esi
call fcn.0043beef
pop ecx
pop ecx
xor al, al
call fcn.0043c495
ret
push esi
call fcn.004489bd
pop ecx
push esi
test eax, eax
jne 0x424541
push 0x400
lea eax, [ebp - 0x414]
push 1
push eax
call fcn.00448bb4
add esp, 0x10
test eax, eax
je 0x4244fb
mov ecx, dword [ebp - 0x430]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.00424007
test al, al
jne 0x4244fb
push esi
call fcn.0044199c
pop ecx
jmp 0x4244d8
call fcn.0044199c
pop ecx
lea eax, [ebp - 0x42c]
push eax
lea ecx, [ebp - 0x430]
call fcn.004243b9
push eax
mov ecx, edi
call fcn.0040627a
push ebx
push 1
lea ecx, [ebp - 0x42c]
call fcn.00408a5c
mov esi, dword [ebp - 0x430]
test esi, esi
je 0x42458a
mov ecx, esi
call fcn.004242ca
push 0xc
push esi
call fcn.0043beef
pop ecx
pop ecx
mov al, 1
jmp 0x4244f5
Function at 0x424a1b
Capabilities:
Check os version
Get system information on windows

Disassembly:
push 0x29c
mov eax, 0x461a06
call fcn.0043c4da
mov esi, 0x114
lea eax, [ebp - 0x154]
push esi
xor edi, edi
push edi
push eax
call fcn.0043e920
add esp, 0xc
mov dword [ebp - 0x154], esi
lea eax, [ebp - 0x154]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x424ac8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ecx
push ecx
lea ecx, [ebp - 0x2a8]
mov esi, eax
call fcn.00409102
mov edx, str.GetVersionEx_failed__err_
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x2a8]
call fcn.0040c870
push esi
lea ecx, [ebp - 0x2a8]
call fcn.00406c40
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x2a8]
call fcn.0040620b
mov byte [ebp - 4], 1
lea edx, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae edx, dword [ebp - 0x28]
xor ecx, ecx
call fcn.0041dcb0
push edi
push 1
lea ecx, [ebp - 0x28]
call fcn.00408a5c
lea ecx, [ebp - 0x2a8]
jmp 0x424ca5
push 0x24
lea eax, [ebp - 0x178]
push edi
push eax
call fcn.0043e920
add esp, 0xc
lea eax, [ebp - 0x178]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov eax, dword [ebp - 0x150]
push 2
pop esi
cmp eax, 4
jne 0x424b09
cmp dword [ebp - 0x144], 1
jne 0x424c1d
xor eax, eax
jmp 0x424cad
cmp eax, 5
jne 0x424b52
mov eax, dword [ebp - 0x14c]
test eax, eax
jne 0x424b1e
inc eax
jmp 0x424cad
cmp eax, 1
jne 0x424b2b
push 2
pop eax
jmp 0x424cad
cmp eax, esi
jne 0x424c1d
cmp word [ebp - 0x178], 9
je 0x424b4e
cmp word [ebp - 0x178], 6
je 0x424b4e
mov eax, esi
jmp 0x424cad
push 3
jmp 0x424b25
push 6
pop edx
cmp eax, edx
jne 0x424bef
mov ecx, dword [ebp - 0x14c]
test ecx, ecx
jne 0x424b85
cmp word [ebp - 0x178], 9
je 0x424b7e
cmp word [ebp - 0x178], dx
je 0x424b7e
push 5
jmp 0x424b25
mov eax, edx
jmp 0x424cad
cmp ecx, 1
jne 0x424ba5
cmp word [ebp - 0x178], 9
je 0x424ba1
cmp word [ebp - 0x178], dx
je 0x424ba1
push 7
jmp 0x424b25
push 8
jmp 0x424b25
cmp ecx, esi
jne 0x424bc9
push 9
pop eax
cmp word [ebp - 0x178], ax
je 0x424bc2
cmp word [ebp - 0x178], dx
jne 0x424cad
push 0xa
jmp 0x424b25
cmp ecx, 3
jne 0x424c1d
cmp word [ebp - 0x178], 9
je 0x424be8
cmp word [ebp - 0x178], dx
je 0x424be8
push 0xb
jmp 0x424b25
push 0xc
jmp 0x424b25
cmp eax, 0xa
jne 0x424c1d
cmp dword [ebp - 0x14c], edi
jne 0x424c1d
cmp word [ebp - 0x178], 9
je 0x424c16
cmp word [ebp - 0x178], dx
je 0x424c16
push 0xd
jmp 0x424b25
push 0xe
jmp 0x424b25
push ecx
push ecx
lea ecx, [ebp - 0x210]
call fcn.00409102
mov edx, str.Unknown_version:_major
mov dword [ebp - 4], esi
lea ecx, [ebp - 0x210]
call fcn.0040c870
push dword [ebp - 0x150]
lea ecx, [ebp - 0x210]
call fcn.00406c40
mov edx, str.__minor
lea ecx, [ebp - 0x210]
call fcn.0040c870
push dword [ebp - 0x14c]
lea ecx, [ebp - 0x210]
call fcn.00406c40
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x210]
call fcn.0040620b
mov byte [ebp - 4], 3
lea edx, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
cmovae edx, dword [ebp - 0x40]
xor ecx, ecx
call fcn.0041dcb0
push edi
push 1
lea ecx, [ebp - 0x40]
call fcn.00408a5c
lea ecx, [ebp - 0x210]
call fcn.00402673
or eax, 0xffffffff
call fcn.0043c484
ret
Function at 0x436660
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
mov dword [ebp - 0xc], 0
cmp dword [ebp + 8], 0
je 0x436776
push 0
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
add edx, 2
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x10]
mov cx, word [eax]
mov word [ebp - 2], cx
add dword [ebp - 0x10], 2
cmp word [ebp - 2], 0
jne 0x436696
mov edx, dword [ebp - 0x10]
sub edx, dword [ebp - 0x1c]
sar edx, 1
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 8]
lea edx, [ecx + eax + 1]
shl edx, 1
push edx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4366db
xor eax, eax
jmp 0x436779
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
movzx ecx, word [eax + edx*2 - 2]
cmp ecx, 0x5c
je 0x436714
mov edx, 0x5c
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov word [ecx + eax*2], dx
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov dword [ebp - 0x18], 0
jmp 0x436726
mov eax, dword [ebp - 0x18]
add eax, 1
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
add edx, 2
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x14]
mov cx, word [eax]
mov word [ebp - 4], cx
add dword [ebp - 0x14], 2
cmp word [ebp - 4], 0
jne 0x436735
mov edx, dword [ebp - 0x14]
sub edx, dword [ebp - 0x24]
sar edx, 1
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0x28]
jae 0x436776
mov ecx, dword [ebp - 8]
add ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp + 8]
mov ax, word [esi + eax*2]
mov word [edx + ecx*2], ax
jmp 0x43671d
mov eax, dword [ebp - 0xc]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x436780
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004389b0
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4367d7
mov edx, dword [ebp - 4]
push edx
call fcn.00437260
add esp, 4
test eax, eax
jne 0x4367d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 2
jne 0x4367c6
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x437260
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 0x50
cmp dword [ebp - 4], 0xffffffff
je 0x437291
mov ecx, dword [ebp - 4]
and ecx, dword [ebp - 0xc]
jne 0x437291
mov dword [ebp - 8], 1
jmp 0x437298
mov dword [ebp - 8], 0
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x4392f0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp + 0x2c]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00439090
add esp, 0xc
test eax, eax
jne 0x439317
xor eax, eax
jmp 0x439345
mov eax, dword [ebp + 0x30]
push eax
mov ecx, dword [ebp + 0x28]
push ecx
mov edx, dword [ebp + 0x24]
push edx
mov eax, dword [ebp + 0x20]
push eax
mov ecx, dword [ebp + 0x1c]
push ecx
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
pop ebp
ret

Function at 0x439d70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
shl ecx, 1
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x439de2
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x439dd1
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp - 0xc]
jae 0x439de2
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret