joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4170f0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x214
mov eax, dword [0x4da6bc]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
mov ebx, ecx
push esi
lea esi, [ebx + 4]
push edi
mov ecx, esi
mov dword [esp + 0x10], ebx
call fcn.00416310
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x1e]
push ecx
mov word [esp + 0x20], ax
call fcn.0049e9f0
xor edi, edi
add esp, 0xc
cmp dword [ebx + 0x20], edi
mov dword [esp + 0xc], edi
jle 0x4171f0
push ebp
mov ebp, dword [ebx + 0x1c]
cmp edi, 0xffffffff
jne 0x417150
mov eax, 0x4bb238
jmp 0x41716e
push edi
push 0x4bb238
push 0x4b9960
push 0x4dbb10
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
mov eax, 0x4dbb10
push ebp
push 0x104
lea edx, [esp + 0x20]
push edx
push 0
push eax
push 0x4bb24c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
test eax, eax
jbe 0x4171e1
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x4171e1
mov ebx, dword [esi + 4]
mov ecx, esi
call fcn.004164f0
mov edi, dword [esi + 0x10]
mov ebp, dword [edi]
test edi, edi
je 0x4171ba
lea ecx, [esp + 0x18]
push ecx
lea ecx, [edi + 8]
call fcn.0040cf30
mov dword [esi + 0x10], ebp
mov dword [edi + 4], ebx
mov dword [edi], 0
mov eax, dword [esi + 4]
inc dword [esi + 8]
test eax, eax
je 0x4171d4
mov dword [eax], edi
jmp 0x4171d6
mov dword [esi], edi
mov ebx, dword [esp + 0x14]
mov dword [esi + 4], edi
mov edi, dword [esp + 0x10]
inc edi
cmp edi, dword [ebx + 0x20]
mov dword [esp + 0x10], edi
jl 0x417141
pop ebp
mov ecx, ebx
call fcn.00416e20
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0049e9d2
add esp, 0x214
ret

Function at 0x4173c0
Capabilities:
Query or enumerate registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [edi]
add eax, eax
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x10]
push esi
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x18]
push eax
push 0
mov dword [edi], 0
mov eax, dword [ecx]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x417436
mov eax, dword [esp + 0x10]
cmp eax, 1
je 0x417405
cmp eax, 2
jne 0x417421
mov eax, dword [esp + 0x14]
test esi, esi
je 0x417430
test eax, eax
je 0x41742b
test al, 1
jne 0x417421
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x417430
pop edi
mov eax, 0xd
pop esi
ret 0xc
xor edx, edx
mov word [esi], dx
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop edi
pop esi
ret 0xc
Function at 0x419c70
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
push edi
test ecx, ecx
je 0x419c84
lea esi, [ecx - 0x28]
mov dword [esp + 0x10], esi
jmp 0x419c90
mov dword [esp + 0x10], 0
mov esi, dword [esp + 0x10]
cmp dword [esp + 0x48], 0
mov dword [esp + 0x14], 1
je 0x419d2d
mov eax, dword [esp + 0x3c]
mov ecx, dword [esi + 8]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov ebx, dword [esp + 0x40]
mov edi, eax
push edi
mov ecx, ebx
or ebp, 0xffffffff
call fcn.00402060
test eax, eax
je 0x419d11
lea edx, [edi + 1]
push edx
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov edx, dword [ebx]
mov ebp, eax
test edx, edx
jne 0x419ce8
xor eax, eax
jmp 0x419d01
mov eax, edx
lea esi, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x419cf0
sub eax, esi
sar eax, 1
js 0x419d23
cmp eax, dword [edx - 8]
jg 0x419d23
mov dword [edx - 0xc], eax
mov ecx, dword [ebx]
xor edx, edx
mov word [ecx + eax*2], dx
cmp ebp, edi
jge 0x419d85
mov esi, dword [esp + 0x10]
mov dword [esp + 0x14], 0
jmp 0x419d4b
push 0x80070057
call fcn.00401000
mov eax, dword [esp + 0x40]
mov eax, dword [eax]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esi + 8]
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x419dba
push 0xffffffffffffffff
add esi, 0x28
call dword [sym.imp.USER32.dll_MessageBeep]
test esi, esi
je 0x419d5f
lea eax, [esi - 0x28]
jmp 0x419d61
xor eax, eax
mov ecx, dword [esp + 0x3c]
mov edx, dword [eax + 8]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 0x18
cmp dword [esp + 0x4c], 0
je 0x419dba
mov eax, dword [ebx]
mov ecx, dword [eax - 0xc]
cmp ecx, dword [esp + 0x50]
jle 0x419dba
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x3c]
lea edx, [esp + 0x18]
push edx
push eax
push ecx
mov ecx, dword [esp + 0x1c]
add ecx, 0x28
call fcn.00419670
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 0x18
Function at 0x41cfc0
Capabilities:
Persist via default file association registry key
Set registry value

Disassembly:
sub esp, 0x21c
mov eax, dword [0x4da6bc]
xor eax, esp
mov dword [esp + 0x218], eax
mov edx, dword [esp + 0x22c]
mov eax, dword [esp + 0x220]
mov ecx, dword [esp + 0x224]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x234]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov dword [esp + 0x14], edx
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x244]
push eax
push SysReAllocStringLen
mov dword [esp + 0x24], ecx
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
call ebx
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueW]
inc eax
push eax
mov eax, dword [esp + 0x14]
push esi
push 1
push 0x4bad64
push eax
call ebp
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0x10]
push edx
push esi
push SysReAllocStringLen
call edi
mov eax, dword [esp + 0x18]
push eax
call ebx
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
inc eax
push eax
push ecx
push 1
push 0x4bad64
push edx
call ebp
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
lea ecx, [esp + 0x24]
push str._sDefaultIcon
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x24]
push eax
push SysReAllocStringLen
call edi
mov ecx, dword [esp + 0x14]
push ecx
call ebx
mov edx, dword [esp + 0x14]
inc eax
push eax
mov eax, dword [esp + 0x14]
push edx
push 1
push 0x4bad64
push eax
call ebp
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
lea edx, [esp + 0x24]
push str._sShell
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x24]
push ecx
push SysReAllocStringLen
call edi
push str.Open
call ebx
mov edx, dword [esp + 0x10]
inc eax
push eax
push str.Open
push 1
push 0x4bad64
push edx
call ebp
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
lea ecx, [esp + 0x24]
push str._sShellOpenCommand
push ecx
call esi
add esp, 0xc
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x24]
push eax
push SysReAllocStringLen
call edi
mov ecx, dword [esp + 0x1c]
push ecx
lea edx, [esp + 0x24]
push 0x4bb728
push edx
call esi
add esp, 0xc
lea eax, [esp + 0x20]
push eax
call ebx
mov edx, dword [esp + 0x10]
inc eax
push eax
lea ecx, [esp + 0x24]
push ecx
push 1
push 0x4bad64
push edx
call ebp
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x228]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0049e9d2
add esp, 0x21c
ret
Function at 0x41d190
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x90
mov eax, dword [0x4da6bc]
xor eax, esp
mov dword [esp + 0x8c], eax
push ebx
mov ebx, dword [esp + 0x9c]
push esi
mov esi, dword [esp + 0x9c]
mov dword [esp + 0x10], esi
test ebx, ebx
je 0x41d293
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x41d293
lea eax, [esp + 8]
push eax
push 0x10008
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41d298
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov eax, dword [esp + 0xc]
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x2c]
push edx
push 0
push eax
mov dword [esp + 0x30], 0x40
call edi
mov esi, eax
cmp esi, 0x103
je 0x41d260
test esi, esi
jne 0x41d26e
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x18]
push ecx
push edx
call fcn.0041d190
mov esi, eax
add esp, 8
test esi, esi
je 0x41d1f2
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [esp + 0x8c]
xor ecx, esp
call fcn.0049e9d2
add esp, 0x90
ret
mov eax, dword [esp + 0x14]
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [esp + 0x8c]
xor ecx, esp
call fcn.0049e9d2
add esp, 0x90
ret
mov eax, 0x3f2
mov ecx, dword [esp + 0x94]
pop esi
pop ebx
xor ecx, esp
call fcn.0049e9d2
add esp, 0x90
ret

Function at 0x41d2b0
Capabilities:
Set registry value

Disassembly:
push ecx
mov ecx, dword [esp + 8]
lea eax, [esp]
push eax
push ecx
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x41d2eb
mov edx, dword [esp]
push 1
push 0x4bad64
push 1
push 0x4bad64
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0xc]
push ecx
push SysReAllocStringLen
call fcn.0041d190
add esp, 0xc
ret
Function at 0x41d3a0
Capabilities:
Set registry value

Disassembly:
sub esp, 0xc
push esi
push edi
lea eax, [esp + 8]
push eax
push 0x2001f
push 0
push str.SoftwareEverEdit
push reloc.OLEAUT32.dll_SysReAllocString
mov esi, ecx
mov dword [esp + 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41d3e4
mov esi, dword [esi + 0x20]
mov edi, dword [esp + 8]
test esi, esi
jne 0x41d43a
push 0x80004005
call fcn.00401000
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x10]
push edx
push 0
push 0x2001f
push 0
push 0
push 0
push str.SoftwareEverEdit
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x30], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x41d462
mov esi, dword [esi + 0x20]
mov edi, dword [esp + 0xc]
test esi, esi
jne 0x41d42c
push 0x80004005
call fcn.00401000
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
jmp 0x41d446
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [eax + eax + 2]
push ecx
push esi
push 1
push 0
push str.FileAssoc
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test edi, edi
je 0x41d462
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
add esp, 0xc
ret
Function at 0x41d770
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
push edi
test ecx, ecx
je 0x41d784
lea esi, [ecx - 0x20]
mov dword [esp + 0x10], esi
jmp 0x41d790
mov dword [esp + 0x10], 0
mov esi, dword [esp + 0x10]
cmp dword [esp + 0x48], 0
mov dword [esp + 0x14], 1
je 0x41d82d
mov eax, dword [esp + 0x3c]
mov ecx, dword [esi + 4]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov ebx, dword [esp + 0x40]
mov edi, eax
push edi
mov ecx, ebx
or ebp, 0xffffffff
call fcn.00402060
test eax, eax
je 0x41d811
lea edx, [edi + 1]
push edx
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov edx, dword [ebx]
mov ebp, eax
test edx, edx
jne 0x41d7e8
xor eax, eax
jmp 0x41d801
mov eax, edx
lea esi, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41d7f0
sub eax, esi
sar eax, 1
js 0x41d823
cmp eax, dword [edx - 8]
jg 0x41d823
mov dword [edx - 0xc], eax
mov ecx, dword [ebx]
xor edx, edx
mov word [ecx + eax*2], dx
cmp ebp, edi
jge 0x41d885
mov esi, dword [esp + 0x10]
mov dword [esp + 0x14], 0
jmp 0x41d84b
push 0x80070057
call fcn.00401000
mov eax, dword [esp + 0x40]
mov eax, dword [eax]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esi + 4]
push eax
push ecx
push edx
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov dword [esp + 0x14], eax
test eax, eax
jne 0x41d8ba
push 0xffffffffffffffff
add esi, 0x20
call dword [sym.imp.USER32.dll_MessageBeep]
test esi, esi
je 0x41d85f
lea eax, [esi - 0x20]
jmp 0x41d861
xor eax, eax
mov ecx, dword [esp + 0x3c]
mov edx, dword [eax + 4]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 0x18
cmp dword [esp + 0x4c], 0
je 0x41d8ba
mov eax, dword [ebx]
mov ecx, dword [eax - 0xc]
cmp ecx, dword [esp + 0x50]
jle 0x41d8ba
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x3c]
lea edx, [esp + 0x18]
push edx
push eax
push ecx
mov ecx, dword [esp + 0x1c]
add ecx, 0x20
call fcn.0041d580
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 0x18
Function at 0x428280
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x1c
mov eax, dword [0x4da6bc]
xor eax, esp
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x2c]
push ebx
push ebp
push esi
mov esi, ecx
cmp dword [esi + 0xc8], 2
push edi
mov dword [esp + 0x14], eax
jne 0x4282c3
mov edi, dword [esi + 4]
call fcn.00428220
test al, al
je 0x4282c3
push 0x4bbe50
push edi
call dword [sym.imp.UxTheme.dll_OpenThemeData]
mov dword [esi + 0xc0], eax
call fcn.00403350
push 0xffffffffffffffff
xor ebx, ebx
push ebx
lea ecx, [esp + 0x1b]
push ecx
mov edi, eax
push str.Bottom
push 0x4bbe38
mov ecx, edi
mov byte [esp + 0x27], bl
call fcn.00403f90
cmp byte [esp + 0x13], bl
je 0x428311
mov edx, dword [esi + 4]
push 0xfffffffffffffff0
push edx
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ecx, eax
or ecx, 2
cmp eax, ecx
je 0x428311
mov eax, dword [esi + 4]
push ecx
push 0xfffffffffffffff0
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x1b]
push ecx
push str.ShowIcon
push 0x4bbe38
mov ecx, edi
mov byte [esp + 0x27], bl
call fcn.00403f90
movzx ebp, byte [esp + 0x13]
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x1b]
push edx
push str.ShowMark
push 0x4bbe38
mov ecx, edi
mov byte [esp + 0x27], bl
call fcn.00403f90
movzx eax, byte [esp + 0x13]
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x1b]
push ecx
push str.FixedWidth
push 0x4bbe38
mov ecx, edi
mov dword [esi + 0xd0], eax
mov byte [esp + 0x27], bl
call fcn.00403f90
movzx edx, byte [esp + 0x13]
push edi
push 0xbc614e
push str.Style
push 0x4bbe38
mov dword [esi + 0xcc], edx
mov dword [esi + 0xc8], ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [esi + 0xc8], eax
cmp eax, 0xbc614e
jne 0x4283b2
mov dword [esi + 0xc8], ebx
mov eax, 0xaaaa
mov edx, eax
mov ecx, 0x5555
mov word [esp + 0x18], ax
mov eax, ecx
mov word [esp + 0x1a], cx
mov ecx, edx
mov word [esp + 0x1c], dx
mov edx, eax
mov word [esp + 0x1e], ax
mov eax, ecx
mov word [esp + 0x20], cx
mov ecx, edx
mov word [esp + 0x22], dx
lea edx, [esp + 0x18]
push edx
push 1
push 1
push 8
push 8
mov dword [esi + 0xd4], ebp
mov word [esp + 0x38], ax
mov word [esp + 0x3a], cx
call dword [sym.imp.GDI32.dll_CreateBitmap]
mov edi, eax
push edi
call dword [sym.imp.GDI32.dll_CreatePatternBrush]
mov ebp, eax
mov eax, dword [esi + 0xc4]
cmp eax, ebx
je 0x428429
cmp eax, ebp
je 0x428429
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [esp + 0x14]
mov dword [esi + 0xc4], ebp
mov dword [eax], ebx
cmp edi, ebx
je 0x428440
push edi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
mov eax, 1
call fcn.0049e9d2
add esp, 0x1c
ret 0x10
Function at 0x429c10
Capabilities:
Encode data using xor

Disassembly:
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
mov esi, edi
sar esi, 5
inc esi
cmp edi, esi
mov ebp, edi
jl 0x429c58
mov eax, dword [esp + 0x10]
push ebx
lea ebx, [eax + edi*2 - 2]
lea esp, [esp]
movzx ecx, word [ebx]
push ecx
call fcn.004a09c7
mov edx, edi
shl edx, 5
mov ecx, edi
add eax, edx
shr ecx, 2
add eax, ecx
xor edi, eax
lea eax, [esi + esi]
sub ebp, esi
add esp, 4
sub ebx, eax
cmp ebp, esi
jge 0x429c30
pop ebx
mov eax, edi
pop edi
pop esi
and eax, 0x7f
pop ebp
ret 8

Function at 0x42ab30
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov edx, dword [esp + 0x18]
push ebx
push ebp
mov ebp, dword [esp + 0x24]
cmp edx, ebp
push esi
mov esi, dword [esp + 0x2c]
push edi
mov edi, dword [esp + 0x18]
mov dword [esp + 0x10], ecx
mov eax, edx
jge 0x42ab85
nop
movzx ecx, byte [esi + eax*2]
xor cl, byte [edi + 0x2c]
inc eax
and cl, 0x1f
xor byte [esi + eax*2 - 2], cl
mov cl, byte [esi + eax*2 - 2]
mov bl, byte [edi + 0x31]
and cl, 0x7f
shl bl, 7
or cl, bl
mov byte [esi + eax*2 - 2], cl
movzx ecx, byte [esi + eax*2 - 1]
xor cl, byte [edi + 0x28]
and cl, 0x3f
xor byte [esi + eax*2 - 1], cl
cmp eax, ebp
jl 0x42ab50
xor ebx, ebx
cmp dword [edi + 0x14], ebx
jle 0x42abbd
lea esp, [esp]
test ebx, ebx
jl 0x42abe9
cmp ebx, dword [edi + 0x14]
jge 0x42abe9
mov eax, dword [edi + 0x10]
mov ecx, dword [eax + ebx*4]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
push esi
push ebp
push edx
mov edx, dword [esp + 0x30]
push edx
mov edx, dword [esp + 0x30]
push edx
call eax
mov edx, dword [esp + 0x28]
inc ebx
cmp ebx, dword [edi + 0x14]
jl 0x42ab90
mov ecx, dword [esp + 0x10]
cmp byte [ecx + 0x40], 0
je 0x42abe1
mov eax, dword [esp + 0x20]
push 1
push esi
push ebp
push edx
mov edx, dword [esp + 0x34]
push edx
mov edx, dword [esp + 0x30]
push eax
push edx
push edi
call fcn.0042a970
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0x1c
push 0
push 0
push 1
push 0xc000008c
call dword [sym.imp.KERNEL32.dll_RaiseException]
Function at 0x430e80
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x418
mov eax, dword [0x4da6bc]
xor eax, esp
mov dword [esp + 0x414], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x428]
push edi
xor ebp, ebp
push ebp
push 0x80
push 2
push ebp
push 3
push 0x40000000
push esi
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x430f49
call fcn.00404800
test eax, eax
je 0x430f4b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [0x514540]
mov edx, dword [eax + 0xc]
mov ecx, 0x514540
call edx
add eax, 0x10
mov dword [esp + 0x10], eax
lea eax, [esp + 0x10]
push eax
push ebx
call fcn.00437920
mov edx, dword [esp + 0x18]
push edx
push esi
lea eax, [esp + 0x24]
xor ecx, ecx
push 0x3b66
push eax
mov word [esp + 0x2c], cx
call fcn.0042f7e0
add esp, 0x18
push ebp
push ebp
push 0x30
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [edi + 4]
call fcn.00481520
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x430f45
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
jmp 0x430fa9
mov ebp, eax
mov ecx, dword [edi]
push ecx
lea ecx, [esp + 0x14]
call fcn.00430d30
mov esi, dword [esp + 0x10]
mov eax, dword [esi - 0xc]
push 0
lea edx, [esp + 0x14]
push edx
push eax
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x430f79
call fcn.00404800
jmp 0x430f7b
xor eax, eax
test eax, eax
lea eax, [esi - 0x10]
setge bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x430f9c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test ebp, ebp
je 0x430fa7
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov ecx, dword [esp + 0x424]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0049e9d2
add esp, 0x418
ret 4
Function at 0x431240
Capabilities:
Get file size

Disassembly:
sub esp, 0x42c
mov eax, dword [0x4da6bc]
xor eax, esp
mov dword [esp + 0x428], eax
mov eax, dword [esp + 0x434]
push ebp
push esi
mov esi, dword [esp + 0x438]
push edi
xor ebp, ebp
push ebp
push 0x80
push 3
push ebp
push 3
push SysReAllocStringLen
push esi
mov edi, ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], ebp
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x4312c8
call fcn.00404800
test eax, eax
je 0x4312ce
push esi
lea edx, [esp + 0x28]
xor ecx, ecx
push 0x3afc
push edx
mov word [esp + 0x30], cx
call fcn.0042f7e0
mov ecx, dword [edi + 4]
add esp, 0xc
push ebp
push ebp
push 0x30
lea eax, [esp + 0x30]
push eax
call fcn.00481520
xor al, al
jmp 0x4313d9
mov ebp, eax
mov dword [esp + 0x14], ebp
lea ecx, [edi + 8]
test esi, esi
jne 0x4312d9
xor eax, eax
jmp 0x4312f0
mov eax, esi
push ebx
lea ebx, [eax + 2]
nop
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x4312e0
sub eax, ebx
sar eax, 1
pop ebx
push eax
push esi
call fcn.00402140
push esi
lea ecx, [esp + 0x14]
call fcn.0040cf30
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0x14]
call fcn.00430540
lea ecx, [esp + 0xc]
call fcn.0041d5d0
lea edx, [esp + 0xc]
push str..ejs
push edx
call fcn.0042f490
add esp, 8
lea ecx, [esp + 0x20]
movzx eax, al
push ecx
push ebp
mov dword [edi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
mov dword [esp + 0x1c], esi
cmp esi, 0xffffffff
jne 0x431354
call fcn.00404800
test eax, eax
jl 0x43138c
mov esi, dword [esp + 0x1c]
mov edx, esi
or edx, dword [esp + 0x20]
je 0x43138c
lea eax, [esi + 1]
push eax
call fcn.0049f212
add esp, 4
mov edi, eax
push esi
push edi
lea ecx, [esp + 0x1c]
call fcn.0042e900
mov ecx, dword [esp + 0x18]
push edi
mov byte [esi + edi], 0
call fcn.0041eef0
push edi
call fcn.0049f207
add esp, 4
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4313ac
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4313cc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test ebp, ebp
je 0x4313d7
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov ecx, dword [esp + 0x434]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0049e9d2
add esp, 0x42c
ret 8
Function at 0x431f80
Capabilities:
Get common file path
Set current directory

Disassembly:
push esi
push edi
push 0x20a
mov esi, ecx
call fcn.0049f212
add esp, 4
push eax
push 0x104
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, dword [esp + 0xc]
push eax
lea ecx, [esp + 0x10]
call fcn.0040cf30
lea ecx, [esp + 0xc]
call fcn.00417210
mov edi, dword [esp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x431fdd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop edi
mov eax, esi
pop esi
ret 4