joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4022d0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x3f0
mov eax, dword [0x4292b4]
xor eax, esp
mov dword [esp + 0x3ec], eax
mov eax, dword [esp + 0x3f8]
push esi
mov esi, dword [esp + 0x3f8]
push eax
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x423494
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea ecx, [esp + 0x14]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
pop esi
jne 0x402345
mov dword [0x42b0e0], 8
mov ecx, dword [esp + 0x3ec]
xor ecx, esp
call fcn.0040ffc4
add esp, 0x3f0
ret

Function at 0x402360
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x3f0
mov eax, dword [0x4292b4]
xor eax, esp
mov dword [esp + 0x3ec], eax
mov eax, dword [esp + 0x3f8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebp
mov ebp, dword [esp + 0x3fc]
push esi
push edi
push eax
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x18], 0
call ebx
push 0x423494
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
lea eax, [edi + 1]
push eax
call fcn.00412634
add esp, 4
lea ecx, [esp + 0x14]
mov esi, eax
push ecx
push esi
call ebx
xor eax, eax
test edi, edi
jle 0x4023e4
mov dl, byte [eax + esi]
not dl
mov byte [eax + esi], dl
add eax, 1
cmp eax, edi
jl 0x4023d5
push 0
lea eax, [esp + 0x14]
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
pop edi
pop esi
pop ebp
pop ebx
jne 0x402406
mov dword [0x42b0e0], 8
mov ecx, dword [esp + 0x3ec]
xor ecx, esp
call fcn.0040ffc4
add esp, 0x3f0
ret

Function at 0x402420
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
xor eax, eax
mov ax, word [ebp + 0x10]
jecxz 0x402449
xor ebx, ebx
mov bl, al
mov al, ah
xor bl, byte [esi]
xor ah, ah
inc esi
xor ax, word [ebx*2 + section..data]
loop 0x402436
mov dword [ebp - 4], eax
mov ax, word [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404980
Capabilities:
Delete directory
Delete file
Set current directory

Disassembly:
sub esp, 0x110
mov eax, dword [0x4292b4]
xor eax, esp
mov dword [esp + 0x10c], eax
mov eax, dword [esp + 0x114]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov dword [esp + 4], eax
mov eax, dword [eax + 0x14]
push edi
add eax, 0x4ba
push eax
call ebx
lea edi, [esp + 0x10]
call fcn.004048a0
test eax, eax
je 0x404a5f
push ebp
push esi
mov esi, edi
sub esi, 1
mov dword [esp + 0x14], esi
jmp 0x4049d4
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebp, eax
add ebp, esi
xor edi, edi
cmp byte [ebp], 0x5c
jne 0x404a11
push 0x4234e4
call ebx
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov esi, eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax + 0x14]
add ecx, 0x4ba
push ecx
call ebx
jmp 0x404a2f
lea edx, [esp + 0x18]
push edx
call fcn.0040e520
add esp, 4
test eax, eax
je 0x404a4c
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, eax
test esi, esi
jne 0x404a4c
push esi
call fcn.00402210
add esp, 4
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
add edi, 1
cmp edi, 0x40
jl 0x4049e5
lea edi, [esp + 0x18]
call fcn.004048a0
test eax, eax
jne 0x4049d0
pop esi
pop ebp
mov ecx, dword [esp + 0x114]
pop edi
pop ebx
xor ecx, esp
call fcn.0040ffc4
add esp, 0x110
ret
Function at 0x406c20
Capabilities:
Create directory
Get common file path
Set current directory

Disassembly:
sub esp, 0x20c
mov eax, dword [0x4292b4]
xor eax, esp
mov dword [esp + 0x208], eax
push ebx
mov ebx, dword [esp + 0x218]
push ebx
call fcn.0040e110
add esp, 4
test eax, eax
je 0x406c64
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.0040ffc4
add esp, 0x20c
ret
push ebp
push esi
push edi
lea eax, [esp + 0x114]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
cmp byte [ebx + 1], 0x3a
lea eax, [ebx + 1]
mov esi, ebx
lea edi, [esp + 0x10]
jne 0x406cae
mov cl, byte [ebx]
mov esi, eax
mov dl, byte [esi]
add esi, 1
cmp byte [esi], 0x5c
mov byte [esp + 0x10], cl
mov byte [esp + 0x11], dl
lea edi, [esp + 0x12]
jne 0x406ccc
mov byte [esp + 0x12], 0x5c
lea edi, [esp + 0x13]
jmp 0x406cc9
cmp byte [ebx], 0x5c
jne 0x406cbe
mov byte [esp + 0x10], 0x5c
lea edi, [esp + 0x11]
mov esi, eax
cmp byte [esi], 0x5c
jne 0x406ccc
mov byte [edi], 0x5c
add edi, 1
add esi, 1
mov ebp, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
cmp byte [esi], 0x5c
jne 0x406ce5
push esi
push ebx
call fcn.00412f51
add esp, 8
test eax, eax
je 0x406ceb
mov al, byte [esi]
test al, al
jne 0x406d4f
push 0
lea eax, [esp + 0x14]
push eax
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [esp + 0x10]
push ecx
mov edi, eax
call ebp
test eax, eax
je 0x406d5c
test edi, edi
je 0x406d3b
lea edx, [esp + 0x10]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [esp + 0x10]
push eax
call fcn.0040e080
mov edx, dword [esp + 0x224]
lea ecx, [esp + 0x14]
push ecx
push edx
call fcn.00405f60
add esp, 0xc
cmp byte [esi], 0
je 0x406d5e
cmp byte [esi + 1], 0
je 0x406d5e
add esi, 1
lea edi, [esp + 0x10]
jmp 0x406cd2
mov byte [edi], al
add edi, 1
add esi, 1
jmp 0x406cd2
xor edi, edi
lea eax, [esp + 0x114]
push eax
call ebp
mov ecx, dword [esp + 0x218]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040ffc4
add esp, 0x20c
ret
Function at 0x4071e0
Capabilities:
Delete file

Disassembly:
sub esp, 0x528
mov eax, dword [0x4292b4]
xor eax, esp
mov dword [esp + 0x524], eax
mov ecx, dword [esp + 0x540]
mov eax, dword [esp + 0x52c]
mov edx, dword [esp + 0x544]
push ebx
mov ebx, dword [esp + 0x538]
push ebp
mov ebp, dword [esp + 0x538]
push esi
mov esi, dword [esp + 0x544]
mov dword [esp + 0x18], ecx
push edi
mov edi, dword [esp + 0x54c]
lea ecx, [esp + 0x20]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x558]
mov dword [esp + 0x10], edx
push ecx
xor ecx, ecx
mov edx, ebp
mov dword [esp + 0x1c], eax
call fcn.0040e5b0
lea edx, [esp + 0x24]
push edx
call fcn.0040e080
add esp, 8
call fcn.0040eda0
test eax, eax
je 0x40733b
test dword [0x42ee40], 0x40000
je 0x40733b
lea eax, [esp + 0x228]
push eax
mov ecx, 0x19
mov edx, ebp
call fcn.0040e5b0
lea ecx, [esp + 0x22c]
push ecx
call fcn.0040e080
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
push edx
mov edx, dword [esp + 0x20]
push eax
lea ecx, [esp + 0x238]
push ecx
mov ecx, dword [esp + 0x30]
push edx
call fcn.00406f30
mov ebp, eax
add esp, 0x18
test ebp, ebp
je 0x407337
push edi
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x12c]
push str._s_s.lnk
push ecx
call edi
push 0
lea edx, [esp + 0x444]
push edx
lea eax, [esp + 0x13c]
push eax
call fcn.0040dd00
add esp, 0x1c
test eax, eax
je 0x407337
push esi
push ebx
lea ecx, [esp + 0x334]
push str._s_s
push ecx
call edi
add esp, 0x10
lea edx, [esp + 0x32c]
push edx
lea eax, [esp + 0x434]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x407337
lea ecx, [esp + 0x124]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, ebp
jmp 0x40735b
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
push edx
mov edx, dword [esp + 0x18]
push eax
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x28]
push edx
call fcn.00406f30
add esp, 0x10
mov ecx, dword [esp + 0x534]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040ffc4
add esp, 0x528
ret

Function at 0x407630
Capabilities:
Write file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
push edi
push 0
push 0x80
push 2
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40765b
xor eax, eax
pop edi
pop ecx
ret
push ebx
push esi
mov esi, dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push 0
lea ecx, [esp + 0x10]
push ecx
push esi
mov ebx, eax
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, ebx
pop ebx
pop edi
pop ecx
ret
Function at 0x408070
Capabilities:
Delete file
Set current directory

Disassembly:
sub esp, 0x118
mov eax, dword [0x4292b4]
xor eax, esp
mov dword [esp + 0x114], eax
cmp dword [esp + 0x120], 1
push edi
mov edi, dword [esp + 0x120]
jne 0x4081eb
push ebx
push 0x42ba82
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov ecx, dword [0x42b11c]
lea eax, [esp + 0xc]
push eax
push ecx
call fcn.00403a40
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x4080ff
mov edx, dword [0x42b48c]
push 0x7d0
push str.Now_installing_files.
push 0xa
push edx
call dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [esp + 0x1c]
push str.Now_installing_files.
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 8
push 0x30
push 0x42ba40
lea ecx, [esp + 0x24]
push ecx
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
mov edx, dword [esp + 0x10]
push ebp
push esi
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test byte [0x42ee40], 0x10
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
je 0x408132
mov esi, 0x64
push edi
call fcn.00407720
add esp, 4
push 0x64
call ebp
sub esi, 1
jne 0x408120
test ebx, ebx
je 0x4081e8
test byte [0x42ee40], 8
je 0x4081e8
push str..exe
push 0x42bc8a
call fcn.0040e7d0
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x4081e8
mov ebx, dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x10]
push eax
push ecx
call ebx
cmp dword [esp + 0x10], 0x103
je 0x4081b1
test byte [0x42ee40], 0x10
je 0x4081c0
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push 0x42bc8a
call esi
cmp eax, 0xffffffff
jne 0x4081cd
push edi
call fcn.00407720
add esp, 4
push 0x64
call ebp
jmp 0x408174
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4081e8
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
push 0x42bc8a
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [esp + 0x14]
push eax
call esi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x118]
pop edi
xor ecx, esp
call fcn.0040ffc4
add esp, 0x118
ret

Function at 0x408c50
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x10c
mov eax, dword [0x4292b4]
xor eax, esp
mov dword [esp + 0x108], eax
push esi
xor esi, esi
cmp byte [0x42bb86], 0
je 0x408cf5
push ebp
push edi
push 0x105
lea eax, [esp + 0x10]
push eax
push 0x3e8
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea ecx, [esp + 0xc]
push ecx
call fcn.0040e080
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
add esp, 4
push 0x42bb86
call edi
lea edx, [esp + 0xc]
push edx
mov ebp, eax
call edi
cmp eax, ebp
jl 0x408ce2
lea eax, [esp + 0xc]
push eax
call edi
push 0x42bb86
lea esi, [esp + eax + 0x10]
call edi
sub esi, eax
push 0x42bb86
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
mov esi, eax
neg esi
sbb esi, esi
neg esi
push esi
push 4
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
pop edi
pop ebp
mov ecx, dword [esp + 0x10c]
pop esi
xor ecx, esp
call fcn.0040ffc4
add esp, 0x10c
ret
Function at 0x40a8d0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4223b8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4292b4]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push esi
mov eax, dword [0x4292b4]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
xor ebx, ebx
cmp byte [0x42caae], bl
je 0x40aa06
call fcn.0040e540
test eax, eax
je 0x40aa06
mov eax, 0x42caae
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x20], ebx
mov byte [esp + 0x10], bl
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x40a933
sub eax, edx
push eax
push 0x42caae
lea ecx, [esp + 0x14]
call fcn.00403680
mov dword [esp + 0x34], ebx
push 7
push str._n_nURL
lea ecx, [esp + 0x14]
call fcn.0040a3a0
mov eax, 0x42cbb2
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x40a970
sub eax, edx
push eax
push 0x42cbb2
lea ecx, [esp + 0x14]
call fcn.0040a3a0
cmp dword [esp + 0x24], 0x10
mov eax, dword [esp + 0x10]
jae 0x40a999
lea eax, [esp + 0x10]
mov esi, dword [sym.imp.USER32.dll_MessageBoxA]
push 0x34
push 0x42ba40
push eax
push edi
call esi
cmp eax, 6
jne 0x40a9da
push 1
push ebx
push ebx
push 0x42cbb2
push ebx
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
ja 0x40a9da
push 0x30
push 0x42ba40
push 2
call fcn.00401020
add esp, 4
push eax
push edi
call esi
mov dword [esp + 0x34], 0xffffffff
cmp dword [esp + 0x24], 0x10
jb 0x40a9f6
mov eax, dword [esp + 0x10]
push eax
call fcn.004120ca
add esp, 4
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x20], ebx
mov byte [esp + 0x10], bl
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0040ffc4
add esp, 0x2c
ret
Function at 0x40dc10
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push esi
push edi
mov edi, dword [esp + 0x1c]
lea eax, [esp + 0x1c]
push eax
push 0x20019
push 0
push ecx
mov esi, 1
push edx
mov dword [esp + 0x1c], esi
mov byte [edi], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40dc49
pop edi
xor eax, eax
pop esi
pop ecx
ret
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x20]
push edi
lea ecx, [esp + 0x10]
push ecx
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40dc6c
xor esi, esi
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ecx
ret

Function at 0x40dc80
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 8]
sub esp, 8
push edi
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 8]
push ecx
push 0
push 0x20006
push 0
push 0
push 0
push edx
push eax
mov edi, 1
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x40dcbb
xor eax, eax
pop edi
add esp, 8
ret
push esi
mov esi, dword [esp + 0x20]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 8]
add eax, 1
push eax
push esi
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
pop esi
je 0x40dce7
xor edi, edi
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
add esp, 8
ret
Function at 0x40de00
Capabilities:
Create shortcut via ishelllink

Disassembly:
sub esp, 0x11c
mov eax, dword [0x4292b4]
xor eax, esp
mov dword [esp + 0x118], eax
mov eax, dword [esp + 0x120]
mov ecx, dword [esp + 0x134]
push ebx
mov ebx, dword [esp + 0x128]
push ebp
mov ebp, dword [esp + 0x138]
push esi
push edi
mov edi, dword [esp + 0x138]
lea edx, [esp + 0x10]
push edx
push 0x423bf0
push 1
xor esi, esi
push esi
push 0x423c10
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], ecx
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x40df97
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push 0x423c00
push eax
mov eax, dword [ecx]
call eax
test eax, eax
jl 0x40df8b
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x50]
push ebx
push eax
call edx
test edi, edi
je 0x40dea5
cmp byte [edi], 0
je 0x40dea5
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x2c]
push edi
push eax
call edx
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebx
lea eax, [esp + 0x24]
push eax
call esi
lea ecx, [esp + 0x20]
push ecx
call fcn.0040e030
add esp, 4
test eax, eax
je 0x40dee5
lea edx, [esp + 0x20]
push edx
mov byte [eax], 0
call fcn.0040e0c0
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
add esp, 4
lea edx, [esp + 0x20]
push edx
push eax
mov eax, dword [ecx + 0x24]
call eax
test ebp, ebp
je 0x40defc
cmp byte [ebp], 0
je 0x40defc
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x1c]
push ebp
push eax
call edx
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40df48
cmp byte [eax], 0
je 0x40df48
push eax
lea eax, [esp + 0x24]
push eax
call esi
lea ecx, [esp + 0x20]
push 0x2c
push ecx
call fcn.004125d2
add esp, 8
xor ecx, ecx
test eax, eax
je 0x40df36
mov byte [eax], cl
add eax, 1
push eax
call fcn.00412ea6
add esp, 4
mov ecx, eax
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
mov edx, dword [edx + 0x44]
push ecx
lea ecx, [esp + 0x24]
push ecx
push eax
call edx
mov eax, dword [esp + 0x1c]
push 0x104
push 0x43e010
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x18]
push 1
push 0x43e010
push eax
call edx
xor ecx, ecx
test eax, eax
mov eax, dword [esp + 0x14]
mov edx, dword [eax]
setge cl
push eax
mov eax, dword [edx + 8]
mov esi, ecx
call eax
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov ecx, dword [esp + 0x128]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040ffc4
add esp, 0x11c
ret

Function at 0x40e110
Capabilities:
Get common file path
Set current directory

Disassembly:
sub esp, 0x108
mov eax, dword [0x4292b4]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
mov esi, dword [esp + 0x110]
push edi
lea eax, [esp + 8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
call esi
lea ecx, [esp + 8]
push ecx
mov edi, eax
call esi
mov ecx, dword [esp + 0x10c]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.0040ffc4
add esp, 0x108
ret
Function at 0x40e520
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40e53a
test al, 0x10
jne 0x40e53a
mov eax, 1
ret
xor eax, eax
ret

Function at 0x40e540
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
mov eax, dword [0x4292b4]
xor eax, esp
mov dword [esp + 0x104], eax
push 0x104
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp]
push ecx
call fcn.0040e080
add esp, 4
push str.url.dll
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp]
push eax
call fcn.0040e520
mov ecx, dword [esp + 0x108]
add esp, 4
xor ecx, esp
call fcn.0040ffc4
add esp, 0x108
ret

Function at 0x40e5f0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x10c
mov eax, dword [0x4292b4]
xor eax, esp
mov dword [esp + 0x108], eax
mov eax, dword [esp + 0x118]
push ebx
push ebp
mov ebp, dword [esp + 0x118]
push esi
push edi
push str.shfolder.dll
mov dword [esp + 0x14], eax
xor edi, edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, dword [esp + 0x124]
mov ebx, eax
test ebx, ebx
je 0x40e663
push str.SHGetFolderPathA
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40e658
lea ecx, [esp + 0x14]
push ecx
push edi
push edi
push esi
push ebp
call eax
xor edx, edx
test eax, eax
setge dl
mov edi, edx
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test edi, edi
jne 0x40e6b9
lea eax, [esp + 0x14]
push eax
mov ecx, esi
mov edx, ebp
call fcn.0040e5b0
mov edi, eax
add esp, 4
test edi, edi
jne 0x40e6b9
cmp esi, 0x24
je 0x40e68e
cmp esi, 0x25
je 0x40e68e
cmp esi, 0x26
je 0x40e68e
cmp esi, 0x2b
jne 0x40e6b5
push str.shell32.dll
call fcn.0040dfc0
add esp, 4
cmp eax, 0x50000
jb 0x40e6e4
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
mov edx, ebp
call fcn.0040e5b0
add esp, 4
mov edi, eax
test edi, edi
je 0x40e6c9
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [esp + 0x118]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040ffc4
add esp, 0x10c
ret
cmp esi, 0x26
je 0x40e722
cmp esi, 0x2b
je 0x40e722
cmp esi, 0x24
jne 0x40e708
push 0x104
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edi, [esi - 0x23]
jmp 0x40e6b9
cmp esi, 0x25
jne 0x40e757
push 0x104
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edi, [esi - 0x24]
jmp 0x40e6b9
push 0x104
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.Program_Files
lea edx, [esp + 0x1b]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp esi, 0x2b
jne 0x40e757
push str.Common_Files
lea eax, [esp + 0x1b]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov edi, 1
jmp 0x40e6b9
Function at 0x40e800
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x15c
mov eax, dword [0x4292b4]
xor eax, esp
mov dword [esp + 0x158], eax
push ebx
mov ebx, dword [esp + 0x168]
push esi
mov esi, dword [esp + 0x168]
push edi
mov edi, dword [esp + 0x174]
push str..exe
push esi
call fcn.0040e7d0
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x40e880
mov edi, 1
push edi
push 0
push 0
push esi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
ja 0x40e95a
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x158]
xor ecx, esp
call fcn.0040ffc4
add esp, 0x15c
ret
push esi
lea eax, [esp + 0x65]
push eax
mov byte [esp + 0x68], 0x22
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x423afc
lea ecx, [esp + 0x64]
push ecx
call esi
test ebx, ebx
je 0x40e8af
push ebx
lea edx, [esp + 0x64]
push edx
call esi
push 0x44
lea eax, [esp + 0x20]
push 0
push eax
call fcn.00412050
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x20]
push edx
push 0
push 0
push 0x4000020
push 0
push 0
push 0
lea eax, [esp + 0x80]
push eax
push 0
mov dword [esp + 0x44], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test edi, edi
mov esi, eax
je 0x40e92c
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [edi], ecx
mov ecx, dword [esp + 0x18]
mov dword [edi + 4], edx
mov dword [edi + 8], eax
mov dword [edi + 0xc], ecx
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [esp + 0x158]
xor ecx, esp
call fcn.0040ffc4
add esp, 0x15c
ret
mov edx, dword [esp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
mov eax, dword [esp + 0x10]
push eax
call edi
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [esp + 0x158]
xor ecx, esp
call fcn.0040ffc4
add esp, 0x15c
ret
mov ecx, dword [esp + 0x164]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040ffc4
add esp, 0x15c
ret

Function at 0x40f030
Capabilities:
Check os version

Disassembly:
sub esp, 0x98
mov eax, dword [0x4292b4]
xor eax, esp
mov dword [esp + 0x94], eax
cmp dword [0x43e238], 0
jne 0x40f0c4
push 0x94
lea eax, [esp + 4]
push 0
push eax
call fcn.00412050
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x40f08c
mov ecx, dword [esp + 0x94]
xor ecx, esp
call fcn.0040ffc4
add esp, 0x98
ret
mov eax, dword [esp + 0xc]
shr eax, 0x10
mov edx, 1
cmp dword [esp + 0x10], edx
movzx ecx, ah
movzx eax, al
jne 0x40f0be
cmp ecx, 4
jne 0x40f0b4
cmp eax, 0xa
mov dword [0x43e234], edx
jb 0x40f0be
mov dword [0x43e234], 0
mov dword [0x43e238], edx
mov ecx, dword [esp + 0x94]
mov eax, dword [0x43e234]
xor ecx, esp
call fcn.0040ffc4
add esp, 0x98
ret