joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b990
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov eax, dword [0x59ece0]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 4]
mov edx, dword [ecx]
push eax
push edx
lea eax, [esp + 0x34]
push eax
mov dword [esp + 0x24], ecx
call fcn.00409150
mov eax, dword [edi]
lea ecx, [esp + 0x10]
push ecx
xor esi, esi
push esi
lea edx, [esp + 0x1c]
push edx
push esi
push ebx
push eax
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, esi
jl 0x40bb0f
mov ecx, dword [esp + 0x10]
cmp ecx, esi
je 0x40bb0f
cmp dword [esp + 0x14], 7
je 0x40ba1c
mov eax, 0x3f4
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.0049d4b1
mov esp, ebp
pop ebp
ret 8
shr ecx, 1
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
push ecx
lea esi, [esp + 0x20]
call fcn.0040bce0
mov esi, dword [esp + 0x1c]
mov edx, dword [edi]
lea ecx, [esp + 0x10]
push ecx
push esi
push 0
push 0
push ebx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
js 0x40bb00
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x40bb00
shr ecx, 1
lea edi, [esi + ecx*2]
mov eax, esi
cmp esi, edi
jae 0x40bae1
mov ebx, 8
cmp word [eax], 0
je 0x40bae1
mov esi, eax
cmp eax, edi
je 0x40ba8d
mov edi, edi
cmp word [esi], 0
je 0x40ba8d
add esi, 2
cmp esi, edi
jne 0x40ba80
xor ecx, ecx
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], 0
mov word [esp + 0x30], cx
cmp eax, esi
je 0x40bab9
mov edx, esi
sub edx, eax
sar edx, 1
push edx
push eax
lea ecx, [esp + 0x38]
call fcn.00405c50
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x30]
push eax
call fcn.00408ec0
cmp dword [esp + 0x44], ebx
jb 0x40bada
mov ecx, dword [esp + 0x30]
push ecx
call fcn.0049d0c3
add esp, 4
lea eax, [esi + 2]
cmp eax, edi
jb 0x40ba72
lea esi, [esp + 0x1c]
call fcn.0040bcb0
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.0049d4b1
mov esp, ebp
pop ebp
ret 8
test esi, esi
je 0x40bb0d
push esi
call fcn.0049d0c3
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x4c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0049d4b1
mov esp, ebp
pop ebp
ret 8

Function at 0x40bb30
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
push esi
mov esi, dword [ebp + 0xc]
mov eax, esi
push edi
mov dword [esp + 0xc], 0
lea edi, [eax + 2]
jmp 0x40bb50
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x40bb50
mov edx, dword [ebp + 8]
sub eax, edi
sar eax, 1
lea eax, [eax + eax + 2]
push eax
mov eax, dword [ecx]
push esi
push 1
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x40bb80
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 8
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
push esi
push 0x20019
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40bbca
push eax
push eax
push eax
push eax
push eax
push eax
push eax
lea edx, [ebp + 0xc]
push edx
push eax
push eax
push eax
mov dword [ebp + 0xc], eax
mov eax, dword [esi]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov ecx, dword [esi]
test eax, eax
je 0x40bbdf
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov word [esi + 8], ax
mov dword [esi], 0
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
dec eax
mov dword [esi + 4], eax
test ecx, ecx
je 0x40bc13
test eax, eax
js 0x40bc13
lea edx, [ebp - 8]
push edx
push 0
push 0
push 0
lea edx, [ebp + 0xc]
push edx
lea edx, [esi + 8]
push edx
push eax
push ecx
mov dword [ebp + 0xc], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x40bc19
xor eax, eax
mov word [esi + 8], ax
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x40c060
Capabilities:
Check if file exists
Create process on windows
Get common file path
Get program files directory
Initialize iwebbrowser2
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44c
mov eax, dword [0x59ece0]
xor eax, esp
mov dword [esp + 0x448], eax
push esi
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x42]
push ecx
mov word [esp + 0x44], ax
call fcn.0049d850
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x256]
push eax
mov dword [esp + 0x28], 1
mov dword [esp + 0x2c], 0x208
mov word [esp + 0x258], dx
call fcn.0049d850
add esp, 0x18
push 0
push 0x26
lea ecx, [esp + 0x248]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edx, [esp + 0x240]
push edx
lea eax, [esp + 0x3c]
push str._sInternet_Exploreriexplore.exe
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0xc
lea ecx, [esp + 0x38]
push ecx
call esi
test eax, eax
jne 0x40c136
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x18]
push ecx
push 0x597794
push 0x5972b8
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea edx, [esp + 0x38]
push edx
call esi
test eax, eax
jne 0x40c136
mov word [esp + 0x38], ax
lea eax, [esp + 0x38]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40c140
sub eax, edx
sar eax, 1
je 0x40c189
push 0xa
push 0
push str.http:__chrome.360.cn_
lea ecx, [esp + 0x44]
push ecx
push str.open
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, 1
pop esi
mov ecx, dword [esp + 0x448]
xor ecx, esp
call fcn.0049d4b1
mov esp, ebp
pop ebp
ret
lea edx, [esp + 8]
push edx
push 0x524140
push 0x15
push 0
push 0x524130
mov dword [esp + 0x1c], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jns 0x40c1c3
xor eax, eax
pop esi
mov ecx, dword [esp + 0x448]
xor ecx, esp
call fcn.0049d4b1
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 8]
test eax, eax
je 0x40c254
lea edx, [esp + 0xc]
mov dword [esp + 0xc], 0
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x94]
call eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40c203
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov ecx, dword [esp + 0xc]
push 1
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
push str.http:__chrome.360.cn_
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
xor edx, edx
mov word [esp + 0x18], dx
lea edx, [esp + 0x18]
push edx
push edx
mov esi, eax
push edx
push edx
mov eax, 8
mov word [esp + 0x38], ax
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x38]
mov dword [esp + 0x40], esi
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0xd0]
call eax
mov eax, dword [esp + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
push esi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov ecx, dword [esp + 0x44c]
pop esi
xor ecx, esp
mov eax, 1
call fcn.0049d4b1
mov esp, ebp
pop ebp
ret
Function at 0x40c270
Capabilities:
Check if file exists
Get common file path
Get program files directory
Initialize iwebbrowser2
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x59ece0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.0049d850
xor edx, edx
push 0x206
push edx
lea eax, [ebp - 0x412]
push eax
mov dword [ebp - 0x41c], 1
mov dword [ebp - 0x420], 0x208
mov word [ebp - 0x414], dx
call fcn.0049d850
add esp, 0x18
push 0
push 0x26
lea ecx, [ebp - 0x414]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edx, [ebp - 0x414]
push edx
lea eax, [ebp - 0x20c]
push str._sInternet_Exploreriexplore.exe
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0xc
lea ecx, [ebp - 0x20c]
push ecx
call esi
test eax, eax
jne 0x40c351
lea edx, [ebp - 0x420]
push edx
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x41c]
push ecx
push 0x597794
push 0x5972b8
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
lea edx, [ebp - 0x20c]
push edx
call esi
test eax, eax
jne 0x40c351
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20c]
lea edx, [eax + 2]
pop esi
jmp 0x40c360
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40c360
sub eax, edx
sar eax, 1
jne 0x40c3ac
lea ecx, [ebp - 0x418]
push ecx
push 0x524140
push 0x15
push 0
push 0x524130
mov dword [ebp - 0x418], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x40c3bf
mov eax, dword [ebp - 0x418]
test eax, eax
je 0x40c3bf
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049d4b1
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.0049d4b1
mov esp, ebp
pop ebp
ret

Function at 0x40cbe0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x59ece0]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
xor edi, edi
cmp dword [0x623cc0], edi
je 0x40cc0c
xor al, al
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049d4b1
mov esp, ebp
pop ebp
ret
push 0x24
call fcn.0049d431
add esp, 4
cmp eax, edi
je 0x40cc29
push edi
mov ecx, eax
call fcn.0040ca90
mov dword [0x623cc0], eax
jmp 0x40cc2f
mov dword [0x623cc0], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
xor ecx, ecx
mov word [ebp - 0x20], cx
mov ecx, eax
mov dword [ebp - 0xc], 7
mov dword [ebp - 0x10], edi
lea esi, [ecx + 2]
jmp 0x40cc50
mov dx, word [ecx]
add ecx, 2
cmp dx, di
jne 0x40cc50
sub ecx, esi
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x20]
call fcn.00405c50
mov edi, dword [0x623cc0]
lea ecx, [ebp - 0x20]
call fcn.0040db30
cmp dword [ebp - 0xc], 8
pop esi
jb 0x40cc8a
mov edx, dword [ebp - 0x20]
push edx
call fcn.0049d0c3
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov al, 1
pop edi
call fcn.0049d4b1
mov esp, ebp
pop ebp
ret
Function at 0x40db30
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x28
mov eax, dword [0x59ece0]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push esi
mov esi, ecx
lea ecx, [esp + 0x10]
xor ebx, ebx
mov dword [esp + 0xc], ebx
push ecx
xor eax, eax
push 3
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], ebx
mov word [esp + 0x18], ax
call fcn.004129c0
add esp, 8
cmp dword [esp + 0x20], ebx
jne 0x40db84
cmp dword [esp + 0x24], 8
jb 0x40dbd0
mov edx, dword [esp + 0x10]
push edx
jmp 0x40dbc8
mov eax, dword [esp + 0x10]
mov dword [esp + 0xc], ebx
mov ebx, 8
cmp dword [esp + 0x24], ebx
jae 0x40db9b
lea eax, [esp + 0x10]
lea ecx, [esp + 0xc]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edx, dword [esp + 0xc]
mov esi, eax
push edx
push edi
mov ecx, esi
call fcn.0040cdc0
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [esp + 0x24], ebx
jb 0x40dbd0
mov eax, dword [esp + 0x10]
push eax
call fcn.0049d0c3
add esp, 4
mov ecx, dword [esp + 0x2c]
pop esi
pop ebx
xor ecx, esp
call fcn.0049d4b1
mov esp, ebp
pop ebp
ret
Function at 0x40f920
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x17c
mov eax, dword [0x59ece0]
xor eax, esp
mov dword [esp + 0x178], eax
mov ecx, dword [ebp + 8]
xor eax, eax
push esi
mov esi, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x170], eax
mov dword [esp + 0x174], eax
push ecx
mov ecx, dword [ebp + 0xc]
lea eax, [esp + 0xc]
mov dword [esp + 0x20], 0x67452301
mov dword [esp + 0x24], 0xefcdab89
mov dword [esp + 0x28], 0x98badcfe
mov dword [esp + 0x2c], 0x10325476
mov dword [esp + 0x30], 0xc3d2e1f0
call fcn.0040f370
call fcn.0040f290
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov dword [esi], eax
mov eax, dword [esp + 0x28]
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esi + 8], edx
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], ecx
mov ecx, dword [esp + 0x17c]
pop esi
xor ecx, esp
call fcn.0049d4b1
mov esp, ebp
pop ebp
ret
Function at 0x410cf0
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
test dword [0x623d2c], 0xfffffffe
push esi
mov dword [esp + 4], 0
jne 0x410d70
push 0
push 1
push 0x623d2c
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x410d47
cmp dword [0x623d2c], 1
jne 0x410d70
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov edi, edi
push 0
call esi
cmp dword [0x623d2c], 1
je 0x410d30
mov eax, dword [0x623d2c]
pop esi
mov esp, ebp
pop ebp
ret
mov dword [0x623d30], 0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x623d30], eax
cmp eax, 0xffffffff
jne 0x410d66
call fcn.00415ae0
mov dword [0x623d2c], 0x623d30
mov eax, dword [0x623d2c]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x411da0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x59ece0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x40], eax
test esi, esi
jne 0x411dc3
xor edi, edi
jmp 0x411dd3
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x411dc8
sub eax, edx
mov edi, eax
xor ecx, ecx
mov word [ebp - 0x20], cx
push esi
lea ecx, [ebp - 0x20]
mov eax, edi
mov dword [ebp - 0xc], 7
mov dword [ebp - 0x10], 0
call fcn.0041e070
push edi
push esi
lea edi, [ebp - 0x20]
call fcn.00412440
mov eax, dword [ebp - 0x20]
mov edi, 8
add esp, 0xc
cmp dword [ebp - 0xc], edi
jae 0x411e0f
lea eax, [ebp - 0x20]
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ebx, eax
cmp dword [ebp - 0xc], edi
jb 0x411e2d
mov edx, dword [ebp - 0x20]
push edx
call fcn.0049d0c3
add esp, 4
test ebx, ebx
jne 0x411e46
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049d4b1
mov esp, ebp
pop ebp
ret 4
cmp dword [ebp - 0x40], 0
je 0x411f88
xor ecx, ecx
mov eax, ebx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0049ca06
add esp, 4
mov dword [ebp - 0x44], eax
test esi, esi
jne 0x411e76
xor edi, edi
jmp 0x411e8b
mov eax, esi
lea edx, [eax + 1]
jmp 0x411e80
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x411e80
sub eax, edx
mov edi, eax
xor eax, eax
mov word [ebp - 0x20], ax
push esi
lea ecx, [ebp - 0x20]
mov eax, edi
mov dword [ebp - 0xc], 7
mov dword [ebp - 0x10], 0
call fcn.0041e070
push edi
push esi
lea edi, [ebp - 0x20]
call fcn.00412440
mov eax, dword [ebp - 0x20]
mov esi, 8
add esp, 0xc
cmp dword [ebp - 0xc], esi
jae 0x411ec6
mov eax, edi
push ebx
mov ebx, dword [ebp - 0x44]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp dword [ebp - 0xc], esi
jb 0x411ee3
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.0049d0c3
add esp, 4
xor edi, edi
xor edx, edx
mov eax, ebx
mov word [ebp - 0x3c], dx
mov dword [ebp - 0x28], 7
mov dword [ebp - 0x2c], edi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x411f00
sub eax, edx
sar eax, 1
push eax
push ebx
lea ecx, [ebp - 0x3c]
call fcn.00405c50
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0xc], 0xf
mov dword [ebp - 0x10], edi
mov byte [ebp - 0x20], 0
cmp dword [ebp - 0x28], esi
jae 0x411f32
lea eax, [ebp - 0x3c]
mov ecx, dword [ebp - 0x2c]
push ecx
push eax
lea esi, [ebp - 0x20]
call fcn.00412220
mov ecx, dword [ebp - 0x40]
add esp, 8
mov edx, esi
push edx
call fcn.00402600
cmp dword [ebp - 0xc], 0x10
jb 0x411f5f
mov eax, dword [ebp - 0x20]
push eax
call fcn.0049d0c3
add esp, 4
cmp dword [ebp - 0x28], 8
mov dword [ebp - 0xc], 0xf
mov dword [ebp - 0x10], edi
mov byte [ebp - 0x20], 0
jb 0x411f7f
mov ecx, dword [ebp - 0x3c]
push ecx
call fcn.0049d0c3
add esp, 4
push ebx
call fcn.0049d97d
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.0049d4b1
mov esp, ebp
pop ebp
ret 4
Function at 0x4120d0
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x59ece0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
test edi, edi
jne 0x4120ed
xor esi, esi
jmp 0x4120fd
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4120f2
sub eax, edx
mov esi, eax
xor eax, eax
mov word [ebp - 0x20], ax
push edi
lea ecx, [ebp - 0x20]
mov eax, esi
mov dword [ebp - 0xc], 7
mov dword [ebp - 0x10], 0
call fcn.0041e070
push esi
push edi
lea edi, [ebp - 0x20]
call fcn.00412440
mov eax, dword [ebp - 0x20]
mov esi, 8
add esp, 0xc
cmp dword [ebp - 0xc], esi
jae 0x412138
mov eax, edi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
test eax, eax
setne bl
cmp dword [ebp - 0xc], esi
jb 0x412157
mov ecx, dword [ebp - 0x20]
push ecx
call fcn.0049d0c3
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0049d4b1
mov esp, ebp
pop ebp
ret

Function at 0x415d40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [0x626530]
push 0x10
push 1
xor bl, bl
push edi
mov dword [esp + 0x28], 0
mov byte [esp + 0x1f], bl
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x415e18
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ebx, eax
push edi
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x415e21
test esi, esi
je 0x415e21
push esi
call fcn.0049ca06
add esp, 4
push esi
mov edi, eax
push ebx
push edi
call fcn.0049d0d0
xor esi, esi
add esp, 0xc
cmp edi, esi
je 0x415dfc
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
push ecx
push 0x597548
push edi
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x415dfc
mov eax, dword [esp + 0x14]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 8]
mov dword [ecx], edx
mov ecx, dword [ebp + 0xc]
cmp ecx, esi
je 0x415df8
mov edx, dword [eax + 0xc]
mov dword [ecx], edx
mov bl, 1
jmp 0x415e00
mov bl, byte [esp + 0x13]
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp edi, esi
je 0x415e18
push edi
call fcn.0049d97d
add esp, 4
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x415f20
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x150
mov eax, dword [0x59ece0]
xor eax, esp
mov dword [esp + 0x14c], eax
push ebx
xor ebx, ebx
mov dword [esp + 4], ebx
push edi
mov dword [esi], ebx
mov dword [esi + 0x18], 3
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push str.IsWow64Process
push str.kernel32.dll
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
jne 0x415f72
xor eax, eax
jmp 0x415f92
lea ecx, [esp + 8]
push ecx
push edi
mov dword [esp + 0x10], ebx
call eax
test eax, eax
jne 0x415f89
mov eax, 2
jmp 0x415f92
xor eax, eax
cmp dword [esp + 8], ebx
setne al
mov dword [esi + 0x24], eax
push 0x118
lea edx, [esp + 0x38]
push ebx
mov dword [esi + 0x3c], 0xf
mov dword [esi + 0x38], ebx
mov byte [esi + 0x28], bl
push edx
mov dword [esp + 0x3c], 0x11c
call fcn.0049d850
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 0x415ff3
cmp ecx, ebx
jle 0x41601f
xor eax, eax
cmp ecx, 1
setne al
inc eax
mov dword [esi], eax
jmp 0x41601f
cmp eax, 6
jne 0x416017
sub ecx, ebx
je 0x41600f
dec ecx
je 0x416007
mov dword [esi], 5
jmp 0x41601f
mov dword [esi], 4
jmp 0x41601f
mov dword [esi], 3
jmp 0x41601f
jle 0x41601f
mov dword [esi], 6
movzx ecx, word [esp + 0x144]
movzx edx, word [esp + 0x146]
xor eax, eax
mov dword [esp + 0x10], eax
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
lea eax, [esp + 0xc]
push eax
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], edx
mov dword [esp + 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx eax, word [esp + 0xc]
cmp eax, ebx
je 0x41608b
cmp eax, 6
je 0x416082
cmp eax, 9
jne 0x41608e
mov dword [esi + 0x18], 1
jmp 0x41608e
mov dword [esi + 0x18], 2
jmp 0x41608e
mov dword [esi + 0x18], ebx
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x28]
mov dword [esi + 0x1c], ecx
mov ecx, dword [esp + 0x154]
pop edi
pop ebx
xor ecx, esp
mov dword [esi + 0x20], edx
mov eax, esi
call fcn.0049d4b1
mov esp, ebp
pop ebp
ret
Function at 0x418900
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push esi
lea esi, [ecx + 4]
push eax
push esi
mov dword [esp + 0xc], 0
call fcn.00418bd0
add esp, 8
test al, al
jne 0x41896d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
je 0x418963
cmp eax, 0x21
je 0x418963
cmp eax, 5
jne 0x418940
mov eax, 0x3e8
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x14], 8
jb 0x418948
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
sete cl
lea eax, [ecx + ecx + 0x3e9]
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 0x3ea
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x418bd0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10008
call fcn.004a2a90
mov eax, dword [0x59ece0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0x598320
push eax
call fcn.0040a320
mov esi, eax
add esp, 8
test esi, esi
jne 0x418c15
xor al, al
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049d4b1
mov esp, ebp
pop ebp
ret
push esi
push 0x10000
lea eax, [ebp - 0x10008]
push 1
push eax
call fcn.004a1199
add esp, 0x10
test eax, eax
je 0x418c5e
test edi, edi
je 0x418c43
push eax
lea ecx, [ebp - 0x10008]
push ecx
mov ecx, edi
call fcn.004049e0
push esi
push 0x10000
lea edx, [ebp - 0x10008]
push 1
push edx
call fcn.004a1199
add esp, 0x10
test eax, eax
jne 0x418c30
push esi
call fcn.004a1688
mov ecx, dword [ebp - 4]
add esp, 4
pop edi
xor ecx, ebp
mov al, 1
pop esi
call fcn.0049d4b1
mov esp, ebp
pop ebp
ret