joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4276d1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
and eax, 0x3f
push ebx
mov ebx, dword [ebp + 0xc]
sar edx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [edx*4 + 0x43d5b8]
mov dword [ebp - 8], edx
mov edx, dword [eax + edi + 0x18]
mov dword [ebp - 0x18], edx
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x427715
push 0xa
pop esi
cmp word [ebx], si
jne 0x427715
or byte [eax + edi + 0x28], 4
jmp 0x42771a
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + edx*2]
mov eax, ebx
mov dword [ebp - 0x10], edx
mov esi, ebx
cmp ebx, edx
jae 0x427885
movzx edx, word [eax]
mov ecx, edx
mov dword [ebp - 0xc], ecx
movzx ecx, cx
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 8]
cmp edx, 0x1a
je 0x42785d
lea ebx, [eax + 2]
mov dword [ebp - 4], ebx
push 0xd
pop ebx
cmp dx, bx
mov ebx, dword [ebp + 0xc]
je 0x427767
mov ebx, dword [ebp - 0x14]
mov edx, esi
mov eax, dword [ebp - 4]
movzx ebx, bx
mov dword [ebp - 4], ebx
jmp 0x427791
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jae 0x4277b0
push 0xa
pop ebx
cmp word [edx], bx
jne 0x42777e
push ebx
add eax, 4
pop edx
jmp 0x427786
mov eax, edx
mov edx, dword [ebp - 0xc]
movzx edx, dx
movzx edx, dx
mov dword [ebp - 4], edx
mov edx, esi
mov dword [ebp - 0x14], esi
mov ecx, dword [ebp - 4]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], 2
mov word [esi], cx
mov esi, dword [ebp - 0xc]
add esi, edx
cmp eax, dword [ebp - 0x10]
jb 0x42772c
jmp 0x427885
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x427858
cmp dword [ebp - 0x14], 0
je 0x427858
mov eax, dword [ebp - 8]
push 0xa
mov eax, dword [eax*4 + 0x43d5b8]
test byte [eax + edi + 0x28], 0x48
pop eax
je 0x427834
mov dx, word [ebp - 4]
cmp dx, ax
jne 0x4277fc
mov word [esi], ax
jmp 0x427882
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebp - 8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov eax, dword [eax*4 + 0x43d5b8]
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x43d5b8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x43d5b8]
pop ecx
mov byte [eax + edi + 0x2c], cl
jmp 0x427882
cmp word [ebp - 4], ax
jne 0x42783e
cmp esi, ebx
je 0x4277f4
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00420a10
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x427885
push 0xd
pop eax
jmp 0x4277f4
mov eax, ecx
and ecx, 0x3f
sar eax, 6
imul ecx, ecx, 0x38
mov edi, dword [eax*4 + 0x43d5b8]
mov al, byte [edi + ecx + 0x28]
test al, 0x40
jne 0x42787f
or al, 2
mov byte [edi + ecx + 0x28], al
jmp 0x427885
mov word [esi], dx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x429fd0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x429ffd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x429ffd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40893b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0xa4]
sub esp, 0x124
mov eax, dword [0x44b074]
xor eax, ebp
mov dword [ebp + 0xa0], eax
mov eax, dword [ebp + 0xac]
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push edi
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x7c]
push eax
xor ebx, ebx
mov edi, 0x20019
push edi
push ebx
push 0x442940
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x6c], 3
mov dword [ebp - 0x78], 0x104
mov dword [ebp - 0x74], 1
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x70], ebx
call esi
test eax, eax
jne 0x408aae
push dword [ebp - 0x80]
lea eax, [ebp - 0x64]
push 0x442990
push 0x103
push eax
call fcn.0040ddf4
add esp, 0x10
lea eax, [ebp - 0x68]
push eax
push edi
push ebx
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 0x7c]
call esi
test eax, eax
jne 0x408aa5
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 4
pop eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x74]
push eax
push ebx
push 0x4429a0
push dword [ebp - 0x68]
call esi
test eax, eax
jne 0x408a9c
push 0x104
xor edi, edi
lea eax, [ebp - 0x64]
push ebx
inc edi
push eax
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x78], 0x103
call fcn.0041e7c0
add esp, 0xc
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x74]
push eax
push ebx
push 0x4429b0
push dword [ebp - 0x68]
call esi
test eax, eax
jne 0x408a9c
cmp dword [ebp - 0x70], edi
jne 0x408a8c
mov esi, 0x4429c0
push esi
call fcn.00421280
push eax
lea eax, [ebp - 0x64]
push esi
push eax
call fcn.00422420
add esp, 0x10
test eax, eax
jne 0x408a66
mov dword [ebp - 0x6c], ebx
jmp 0x408a9c
cmp dword [ebp - 0x70], edi
jne 0x408a8c
push esi
call fcn.00421280
push eax
lea eax, [ebp - 0x64]
push esi
push eax
call fcn.00422420
add esp, 0x10
test eax, eax
je 0x408a8c
mov dword [ebp - 0x6c], 2
jmp 0x408a9c
xor eax, eax
cmp dword [ebp - 0x70], 2
setne al
lea eax, [eax + eax + 1]
mov dword [ebp - 0x6c], eax
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0xa0]
mov eax, dword [ebp - 0x6c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041e8c8
add ebp, 0xa4
leave
ret
Function at 0x408f67
Capabilities:
Get common file path
Get startup folder

Disassembly:
push 0x230
mov eax, 0x43cdcd
call fcn.004399e8
xor ebx, ebx
mov dword [ebp - 0x21c], ebx
mov dword [edi + 0x18], 7
mov dword [edi + 0x14], ebx
mov dword [ebp - 0x220], edi
mov word [edi + 4], bx
push 0x208
xor esi, esi
lea eax, [ebp - 0x218]
push ebx
mov dword [ebp - 4], ebx
inc esi
push eax
mov dword [ebp - 0x21c], esi
call fcn.0041e7c0
mov al, byte [ebp + 8]
add esp, 0xc
neg al
push esi
sbb eax, eax
and eax, 0xfffffff7
add eax, 0x23
push eax
lea eax, [ebp - 0x218]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x409037
lea eax, [ebp - 0x218]
lea ecx, [ebp - 0x23c]
call fcn.0040944c
push 0xffffffffffffffff
mov dword [ebp - 4], esi
push ebx
mov esi, edi
call fcn.004098b5
push ebx
push 1
lea esi, [ebp - 0x23c]
mov byte [ebp - 4], bl
call fcn.004097e6
cmp byte [ebp + 8], bl
je 0x40900f
push 0x4429cc
jmp 0x409014
push 0x4429f4
push edi
call fcn.00409487
mov ecx, edi
call fcn.0040903f
test al, al
jne 0x40902c
mov ecx, edi
call fcn.0040910b
push 0x442a18
push edi
call fcn.00409487
mov eax, edi
call fcn.00439a6b
ret

Function at 0x409e83
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x409e96
push 0x80004005
call fcn.004019b8
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
add eax, eax
push eax
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
push 1
push 0
push dword [ebp + 0x10]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop ebp
ret 0xc

Function at 0x409efa
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x44b074]
xor eax, ebp
mov dword [ebp + 0x9c], eax
push esi
mov esi, 0x11c
push esi
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.0041e7c0
add esp, 0xc
lea eax, [ebp - 0x80]
mov dword [ebp - 0x80], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push eax
call esi
test eax, eax
jne 0x409f4e
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x114
call esi
test eax, eax
je 0x409f5f
cmp dword [ebp - 0x7c], 6
jne 0x409f5f
cmp dword [ebp - 0x78], 0
jne 0x409f5f
xor eax, eax
inc eax
jmp 0x409f61
xor eax, eax
mov ecx, dword [ebp + 0x9c]
xor ecx, ebp
pop esi
call fcn.0041e8c8
add ebp, 0xa0
leave
ret

Function at 0x409f77
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x44b074]
xor eax, ebp
mov dword [ebp + 0x9c], eax
push esi
mov esi, 0x11c
push esi
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.0041e7c0
add esp, 0xc
lea eax, [ebp - 0x80]
mov dword [ebp - 0x80], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push eax
call esi
test eax, eax
jne 0x409fcb
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x114
call esi
test eax, eax
je 0x409fd9
cmp dword [ebp - 0x7c], 6
jne 0x409fd9
xor eax, eax
inc eax
cmp dword [ebp - 0x78], eax
jae 0x409fdb
xor eax, eax
mov ecx, dword [ebp + 0x9c]
xor ecx, ebp
pop esi
call fcn.0041e8c8
add ebp, 0xa0
leave
ret
Function at 0x4171f0
Capabilities:
Check if file exists

Disassembly:
push 0x24
mov eax, 0x43c778
call fcn.0043997f
lea ecx, [ebp - 0x14]
call fcn.0041594d
and dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
push 0x443be4
push ecx
mov ecx, eax
call fcn.004038bf
pop ecx
pop ecx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.004019a0
push dword [ebp - 0x10]
call fcn.00415897
test eax, eax
pop ecx
jne 0x417252
push dword [ebp - 0x10]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x417252
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004019a0
xor al, al
jmp 0x41728f
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x30]
call fcn.0040944c
mov byte [ebp - 4], 3
call fcn.0043aab0
lea ecx, [ebp - 0x30]
mov ebx, eax
call fcn.0043acc0
push 0
push 1
lea esi, [ebp - 0x30]
mov edi, eax
call fcn.004097e6
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004019a0
cmp edi, 1
sete al
call fcn.00439a57
ret

Function at 0x417295
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43dda0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x44b074]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
lea ecx, [esp + 0x10]
call fcn.0041594d
and dword [esp + 0x20], 0
lea ecx, [esp + 0xc]
push 0x443be4
push ecx
mov ecx, eax
call fcn.004038bf
pop ecx
pop ecx
mov byte [esp + 0x20], 2
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
call fcn.004019a0
mov esi, dword [0x44e24c]
call fcn.0043aab0
and dword [eax + 4], 0
push 0x44e248
mov dword [eax], 0x3f6
mov dword [eax + 0x10], esi
call fcn.0043aab0
mov edi, eax
call fcn.0041946f
call fcn.0043aab0
mov edi, eax
call fcn.0043ac50
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
call fcn.004019a0
xor eax, eax
inc eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40280d
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x110], eax
lea eax, [ebp - 0x10c]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4028e2
push edi
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x114]
push eax
push esi
push esi
push dword [ebp - 0x10c]
mov edi, 0x104
mov dword [ebp - 0x118], edi
mov dword [ebp - 0x114], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4028d1
cmp dword [ebp - 0x114], 2
mov byte [ebp - 5], al
lea eax, [ebp - 0x108]
jne 0x4028bb
push edi
push dword [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
dec eax
lea ecx, [edi - 1]
cmp ecx, eax
sbb esi, esi
inc esi
jmp 0x4028d1
push eax
push edi
push dword [ebp - 0x110]
call fcn.004027aa
xor ecx, ecx
test eax, eax
setge cl
mov esi, ecx
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
jmp 0x4028e4
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00402120
leave
ret 4
Function at 0x404140
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x32c
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
call fcn.004040d0
add esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x404234
cmp dword [ebp - 8], 0xfffffffe
je 0x404234
cmp dword [ebp - 8], 0xfffffffd
je 0x404234
cmp dword [ebp - 8], 0xfffffffc
jne 0x40418a
mov dword [ebp - 8], 0x70
cmp dword [ebp - 8], 0xfffffffb
jne 0x404197
mov dword [ebp - 8], 0xe
cmp dword [ebp - 8], 0xffffffff
jne 0x4041a6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4041b1
jmp 0x404234
push 0
push 0x190
lea ecx, [ebp - 0x328]
push ecx
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx edx, ax
push edx
mov eax, dword [ebp - 8]
push eax
push 0
push 0x1200
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
test eax, eax
jne 0x4041e9
mov ecx, dword [0x40ee84]
mov dword [ebp - 4], ecx
jmp 0x4041f2
lea edx, [ebp - 0x328]
mov dword [ebp - 4], edx
cmp dword [0x40ee40], 0
je 0x404208
mov eax, dword [0x40ee68]
mov dword [ebp - 0x32c], eax
jmp 0x404212
mov dword [ebp - 0x32c], 0x41fb40
push 0x30
mov ecx, dword [ebp - 0x32c]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [0x40ee7c]
push eax
mov ecx, dword [0x41efb4]
push ecx
call fcn.004080e0
add esp, 0x14
mov esp, ebp
pop ebp
ret
Function at 0x404bf0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], 1
mov eax, dword [ebp + 0x18]
shl eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp + 8], 0
je 0x404c2a
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp + 0x14]
push edx
lea eax, [ebp - 4]
push eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x404c36
cmp dword [ebp - 4], 1
je 0x404c4c
mov eax, dword [ebp + 0x18]
shl eax, 1
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0x14]
push edx
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov esp, ebp
pop ebp
ret

Function at 0x404c50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], 1
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 4
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
je 0x404c97
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 4]
push edx
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x404ca3
cmp dword [ebp - 4], 4
je 0x404ca9
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x405540
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 8], 1
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
push 0x40ed74
call fcn.00404b80
add esp, 8
test eax, eax
jne 0x405584
mov ecx, dword [ebp + 8]
add ecx, 6
push ecx
call fcn.00404a90
add esp, 4
mov dword [ebp + 8], eax
mov dword [ebp - 8], 0
jmp 0x4055b4
mov edx, dword [ebp + 8]
push edx
push 0x40ed7c
call fcn.00404b80
add esp, 8
test eax, eax
jne 0x4055ad
mov eax, dword [ebp + 8]
add eax, 4
push eax
call fcn.00404a90
add esp, 4
mov dword [ebp + 8], eax
jmp 0x4055b4
xor eax, eax
jmp 0x405745
mov ecx, dword [ebp + 8]
movzx edx, word [ecx]
test edx, edx
jne 0x4055c5
xor eax, eax
jmp 0x405745
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [0x41efb4]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [ebp + 8]
push edx
push 0x41fb40
call fcn.00404e30
add esp, 8
add eax, 2
mov dword [ebp - 0xc], eax
cmp dword [ebp - 8], 0
jne 0x40566c
mov eax, dword [ebp - 0xc]
movzx ecx, word [eax]
test ecx, ecx
jne 0x405604
xor eax, eax
jmp 0x405745
mov edx, dword [ebp - 0xc]
push edx
call fcn.00404a90
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx ecx, word [eax]
cmp ecx, 0x22
je 0x405625
xor eax, eax
jmp 0x405745
mov edx, dword [ebp - 0xc]
add edx, 2
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
movzx ecx, word [eax]
test ecx, ecx
je 0x40565f
mov edx, dword [ebp - 0xc]
movzx eax, word [edx]
cmp eax, 0x22
je 0x40565f
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
mov ax, word [edx]
mov word [ecx*2 + 0x41f760], ax
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
jmp 0x405625
xor edx, edx
mov eax, dword [ebp - 4]
mov word [eax*2 + 0x41f760], dx
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
push 0x41fb40
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x41ff9c], eax
cmp dword [0x41ff9c], 0xffffffff
jne 0x405710
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
sub ecx, 2
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 0x79
ja case.0x4056b9.1
mov edx, dword [ebp - 0x14]
movzx eax, byte [edx + 0x40575c]
jmp dword [eax*4 + 0x40574c]
mov ecx, dword [0x40eec0]
mov dword [ebp - 0x10], ecx
jmp 0x4056e9
mov edx, dword [0x40ee5c]
mov dword [ebp - 0x10], edx
jmp 0x4056e9
mov eax, dword [0x40ee88]
mov dword [ebp - 0x10], eax
jmp 0x4056e9
mov ecx, dword [0x40ee58]
mov dword [ebp - 0x10], ecx
push 0x30
push 0x41fb40
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [0x40ee7c]
push eax
mov ecx, dword [0x41efb4]
push ecx
call fcn.004080e0
add esp, 0x14
mov eax, 1
jmp 0x405745
mov edx, dword [0x41efa0]
push edx
push 0x41fb40
call fcn.004068e0
add esp, 8
cmp dword [ebp - 8], 0
je 0x405736
push 1
call fcn.00404140
add esp, 4
jmp 0x405740
push 2
call fcn.00404140
add esp, 4
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x4057e0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
push str._.SETUP
call fcn.00404b80
add esp, 8
test eax, eax
jne 0x405842
mov dword [0x41efc4], 1
push 0
mov ecx, dword [0x41efb4]
push ecx
call dword [sym.imp.USER32.dll_GetSystemMenu]
mov dword [0x41fac0], eax
push str.SlipUpAcc
mov edx, dword [0x41ff94]
push edx
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
mov dword [0x41fe00], eax
mov eax, dword [ebp + 8]
add eax, 0xe
mov dword [ebp + 8], eax
jmp 0x405849
xor eax, eax
jmp 0x4059e2
push 0xfd0000
push 0xfffffffffffffff0
mov ecx, dword [0x41efb4]
push ecx
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov edx, dword [ebp + 8]
push edx
call fcn.00404a90
add esp, 4
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
test ecx, ecx
je 0x4059ce
mov edx, dword [ebp + 8]
push edx
push 0x41fb40
call fcn.00404e30
add esp, 8
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
push 0x41fb40
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x41ff9c], eax
cmp dword [0x41ff9c], 0xffffffff
jne 0x4059ad
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 2
je 0x40590f
cmp dword [ebp - 0xc], 5
je 0x4058e4
cmp dword [ebp - 0xc], 0x7b
je 0x40595f
jmp 0x405987
push 0x31
push 0x41fb40
mov ecx, dword [0x40eec0]
push ecx
mov edx, dword [0x40ee7c]
push edx
mov eax, dword [0x41efb4]
push eax
call fcn.004080e0
add esp, 0x14
mov dword [ebp - 4], eax
jmp 0x4059ad
push 0x33
push 0x41fb40
mov ecx, dword [0x40ee5c]
push ecx
mov edx, dword [0x40ee7c]
push edx
mov eax, dword [0x41efb4]
push eax
call fcn.004080e0
add esp, 0x14
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 6
jne 0x40595d
push 0
push 0x80
push 4
push 0
push 3
push 0xc0000000
push 0x41fb40
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x41ff9c], eax
jmp 0x4059ad
push 0x31
push 0x41fb40
mov ecx, dword [0x40ee88]
push ecx
mov edx, dword [0x40ee7c]
push edx
mov eax, dword [0x41efb4]
push eax
call fcn.004080e0
add esp, 0x14
mov dword [ebp - 4], eax
jmp 0x4059ad
push 0x31
push 0x41fb40
mov ecx, dword [0x40ee58]
push ecx
mov edx, dword [0x40ee7c]
push edx
mov eax, dword [0x41efb4]
push eax
call fcn.004080e0
add esp, 0x14
mov dword [ebp - 4], eax
cmp dword [0x41ff9c], 0xffffffff
jne 0x4059ba
xor eax, eax
jmp 0x4059e2
mov ecx, dword [0x41efa0]
push ecx
push 0x41fb40
call fcn.004068e0
add esp, 8
cmp dword [ebp - 4], 2
jne 0x4059dd
mov eax, 2
jmp 0x4059e2
mov eax, 6
mov esp, ebp
pop ebp
ret
Function at 0x4062a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x18]
add eax, 1
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4062ca
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x406333
mov dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0xfde9
je 0x4062e9
cmp dword [ebp + 0xc], 0xfde8
je 0x4062e9
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
push edx
push 0
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x4063a0
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov dword [ebp - 4], 0x30
push 0
push pe_nt_image_headers32
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx ecx, ax
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0
push 0x1200
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
mov dword [ebp - 0x20c], eax
cmp dword [ebp - 0x20c], 0
je 0x40640b
mov edx, dword [ebp - 4]
push edx
mov eax, dword [0x40ee7c]
push eax
lea ecx, [ebp - 0x208]
push ecx
mov edx, dword [0x41efb4]
push edx
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x40642f
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [0x40ee58]
push edx
mov eax, dword [0x40ee7c]
push eax
mov ecx, dword [0x41efb4]
push ecx
call fcn.004080e0
add esp, 0x14
mov esp, ebp
pop ebp
ret