joyce8/EMBER2024-capa huggingface dataset:
Function at 0x93ef10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x9539fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, dword [esp + 0x2c]
xor ebp, ebp
mov dword [esp + 0x10], eax
xor ebx, ebx
mov eax, 1
mov ecx, ebx
shl eax, cl
mov ecx, dword [esp + 0x10]
test ecx, eax
je 0x93f002
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.00942dff
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x93f002
lea edx, [esp + 0x14]
push edx
push str.Mounting__s_n
call fcn.0093a6e0
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.0094320b
push 0x10
call fcn.009431d3
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0x93efc5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.0092f1c0
jmp 0x93efc7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.0093eb80
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0x93eff0
mov ecx, edi
call fcn.0092f2c0
push edi
call fcn.009431c8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x93f021
inc ebx
cmp ebx, 0x20
jb 0x93ef3e
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x940250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x954808
push 0x944288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 5
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x940329
lea edx, [ebp - 0x28]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x940329
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
mov edx, dword [ebp - 0x2c]
push edx
call fcn.009431d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0x940329
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x28]
push edx
call edi
test eax, eax
je 0x940329
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x24], al
jmp 0x94032c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.00940351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x940d20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x940d58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0x940d60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x940d94
mov eax, dword [esp + 0x14]
test eax, eax
je 0x940d94
push eax
push esi
call fcn.0094320b
add esp, 8
pop esi
ret 0x10

Function at 0x940da0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x940e22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0x940e15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0x959320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00942dff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0x940dda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0x940e30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x940ec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0x940eb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0x959320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00942dff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0x940eab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0x940e6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0x941000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x941131
push esi
call fcn.00944145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.00933080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x941131
push 0
push ebp
call fcn.009333a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00933260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0x94108b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.009332f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x941121
push 0x959918
push edi
call fcn.009423f0
push eax
push ebx
push esi
call fcn.00940f60
push 0x9598f8
push edi
call fcn.009423f0
push eax
push ebx
push esi
call fcn.00940f60
push 0x9598d8
push edi
call fcn.009423f0
push eax
push ebx
push esi
call fcn.00940f60
push 0x9598c0
push edi
call fcn.009423f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00940f60
push 0x9598a0
push edi
call fcn.009423f0
push eax
push ebx
push esi
call fcn.00940f60
push 0x959888
push edi
call fcn.009423f0
push eax
push ebx
push esi
call fcn.00940f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x9421b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00942140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00942140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00942140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00942140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x942bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x942c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x95487c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x942c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x942c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x401d4a
Capabilities:
Log keystrokes via polling

Disassembly:
mov dword [0x418714], 0
mov eax, dword [0x418714]
mov ebx, 0xffffffff
push ebx
call dword [sym.imp.USER32.DLL_GetAsyncKeyState]
mov dword [0x418ebf], eax
mov dword [0x418174], 0
mov eax, dword [0x418174]
lea edx, [edx + 0x418977]
add dword [0x4195a1], edx
sub edx, eax
shr edx, 1
add edx, eax
mov ecx, edx
add ecx, 0x94e
add dword [0x418b51], ecx
ror ecx, 2
shr ecx, 1
sub ecx, eax
add dword [0x418e06], ecx
call fcn.00402f28
mov dword [0x41818c], eax
push 0x2547545c
pop edi
push edi
mov esi, 0x1eeae871
mov eax, esi
push eax
mov eax, 0x535b7a47
mov esi, eax
push esi
mov edi, 0x174cf46c
mov ebp, edi
push ebp
push 0x418ab134
pop ebx
push ebx
push 0x21ff1beb
pop eax
push eax
push 0x67cf697b
pop edx
push edx
mov edx, 0x47777e77
push edx
mov esi, 0
mov edi, esi
push edi
push 0x30a185
pop ebx
add ebx, 0x103f1b
push dword [ebx]
pop dword [0x41855f]
mov ebx, dword [0x41855f]
call ebx
mov dword [0x418f49], eax
or eax, eax
je 0x401e19
sub ebp, edi
ret

Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
je 0x430072
nop
nop
mov ebx, 0x408ecc
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x6cf41d19
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x430060
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4300d2
nop
mov ebx, 0x42e1d0
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0xb1d086c
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x406739
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x469c7c], 0
jne 0x406777
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x40674d
mov dword [ecx*4 + 0x469c78], eax
inc ecx
cmp ecx, 0x100
jl 0x406748
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x4067a4
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x469c78]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x406785
not eax
pop ebp
ret 0xc

Function at 0x44da49
Capabilities:
Terminate process

Disassembly:
jmp 0x49cbfe
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x49cc0f
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00450244
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x44dbd4
Capabilities:
Query environment variable

Disassembly:
jmp 0x4d7373
mov edi, edi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4d7387
xor edi, edi
jmp 0x4d73be
push ebx
push esi
call fcn.004d727d
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0044e615
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4d73ae
push ebx
push esi
push edi
call fcn.0044ffd8
add esp, 0xc
push 0
call fcn.00450cda
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
pop ebx
mov eax, edi
pop edi
pop esi
ret

Function at 0x44e1bf
Capabilities:
Encode data using xor

Disassembly:
jmp 0x465190
push esi
mov esi, dword [esp + 0xc]
xor ecx, ecx
test esi, esi
je 0x4651bb
push ebx
mov ebx, dword [esp + 0xc]
push edi
mov edi, dword [esp + 0x18]
mov eax, ecx
xor edx, edx
div edi
mov al, byte [edx + section..bss]
xor byte [ecx + ebx], al
inc ecx
cmp ecx, esi
jb 0x4651a5
pop edi
pop ebx
pop esi
ret

Function at 0x4500aa
Capabilities:
Parse pe header

Disassembly:
jmp 0x48bb20
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x48bb5f
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x48bb5f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x48bb5f
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x48bb5f
cmp dword [ecx + 0x74], 0xe
jbe 0x48bb5f
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x402301
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x414
mov eax, dword [0x431114]
xor eax, esp
mov dword [esp + 0x410], eax
movzx eax, word [esp + 0x41c]
sub eax, 0x3ef
push esi
mov esi, ecx
mov ecx, dword [esp + 0x41c]
je 0x402374
sub eax, 1
jne 0x40234d
push edi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x104
lea eax, [esp + 0x214]
push eax
push 0x3f0
push ecx
call edi
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jne 0x402367
mov ecx, dword [esi + 8]
push eax
push 0x3024
push ecx
call edi
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
pop edi
mov ecx, dword [esp + 0x414]
pop esi
xor ecx, esp
xor eax, eax
call fcn.004164fa
add esp, 0x414
ret 0xc
mov edx, dword [esi + 8]
push 1
push 0x3024
push edx
jmp 0x402343
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0xe]
push ecx
mov word [esp + 0x10], ax
call fcn.00416560
add esp, 0xc
lea edx, [esp + 4]
push edx
lea eax, [esp + 0x210]
push eax
mov ecx, esi
call fcn.00402220
test eax, eax
je 0x40234d
mov edx, dword [esi + 4]
lea ecx, [esp + 0x20c]
push ecx
push 0x3f0
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
jmp 0x40234d
Function at 0x402aa0
Capabilities:
Get common file path

Disassembly:
sub esp, 0xa2c
mov eax, dword [0x431114]
xor eax, esp
mov dword [esp + 0xa28], eax
push esi
mov esi, dword [esp + 0xa34]
push edi
xor eax, eax
push 0x206
mov edi, ecx
push eax
lea ecx, [esp + 0x21a]
push ecx
mov word [esp + 0x21c], ax
call fcn.00416560
mov ecx, dword [edi + 0x28c828]
add esp, 0xc
push 0
push 0x104
lea edx, [esp + 0x218]
push edx
call fcn.00412980
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x422]
push ecx
mov word [esp + 0x424], ax
call fcn.00416560
mov ecx, dword [edi + 0x28c828]
add esp, 0xc
lea edx, [esp + 0x418]
push edx
call fcn.00412c90
push 0x104
lea eax, [esp + 0x624]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push 0x104
lea ecx, [esp + 0x82c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea edx, [esp + 8]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push esi
push str.wszString____s__n
call fcn.0040e270
push str._TEMP_
push esi
call fcn.004166d4
add esp, 0x10
test eax, eax
je 0x402b97
mov ecx, dword [edi + 0x28c828]
lea eax, [edi + 0x28c20c]
push eax
push str._TEMP_
push esi
call fcn.00412790
push str._APPDATA_
push esi
call fcn.004166d4
add esp, 8
test eax, eax
je 0x402bc2
lea ecx, [esp + 0x418]
push ecx
mov ecx, dword [edi + 0x28c828]
push str._APPDATA_
push esi
call fcn.00412790
push str._PROGRAMFILES_
push esi
call fcn.004166d4
add esp, 8
test eax, eax
je 0x402bed
mov ecx, dword [edi + 0x28c828]
lea edx, [esp + 0x210]
push edx
push str._PROGRAMFILES_
push esi
call fcn.00412790
push str._WINDOWS_
push esi
call fcn.004166d4
add esp, 8
test eax, eax
je 0x402c18
mov ecx, dword [edi + 0x28c828]
lea eax, [esp + 0x620]
push eax
push str._WINDOWS_
push esi
call fcn.00412790
push str._SYSTEM_
push esi
call fcn.004166d4
add esp, 8
test eax, eax
je 0x402c43
lea ecx, [esp + 0x828]
push ecx
mov ecx, dword [edi + 0x28c828]
push str._SYSTEM_
push esi
call fcn.00412790
push str._CURRENT_
push esi
call fcn.004166d4
add esp, 8
test eax, eax
je 0x402c96
lea eax, [esp + 8]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402c60
sub eax, edx
sar eax, 1
cmp word [esp + eax*2 + 6], 0x5c
jne 0x402c96
lea eax, [esp + 8]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402c80
sub eax, edx
sar eax, 1
xor edx, edx
mov word [esp + eax*2 + 6], dx
mov ecx, dword [edi + 0x28c828]
lea eax, [esp + 8]
push eax
push str._CURRENT_
push esi
call fcn.00412790
mov ecx, dword [esp + 0xa30]
pop edi
pop esi
xor ecx, esp
xor eax, eax
call fcn.004164fa
add esp, 0xa2c
ret 4
Function at 0x402d10
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x42692e
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x431114]
xor eax, esp
mov dword [esp + 0x214], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x431114]
xor eax, esp
push eax
lea eax, [esp + 0x22c]
mov dword fs:[0], eax
mov edi, ecx
xor ebp, ebp
push 4
mov dword [esp + 0x20], edi
mov dword [esp + 0x1c], ebp
call fcn.004160af
add esp, 4
mov dword [esp + 0x14], eax
mov dword [esp + 0x234], ebp
cmp eax, ebp
je 0x402d7b
mov ecx, eax
call fcn.00413d80
mov ebx, eax
jmp 0x402d7d
xor ebx, ebx
push ebp
push ebp
push ebp
push str.PRJ_FILE
push 0xa
push ebp
mov ecx, ebx
mov dword [esp + 0x24c], 0xffffffff
call fcn.00413da0
mov esi, eax
cmp esi, ebp
je 0x402ecf
push esi
call fcn.0041698c
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x402ecf
push 0
push esi
push ebp
push str.PRJ_FILE
push 0xa
push 0
mov ecx, ebx
call fcn.00413da0
mov esi, eax
test esi, esi
je 0x402ec6
push esi
push str.Size___d_n
call fcn.0040e270
add edi, 0x28c20c
push edi
lea eax, [esp + 0x2c]
push str._sKmSFX.pfw
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea ecx, [esp + 0x34]
push ecx
push str.wszTempPfw____s__n
call fcn.0040e270
add esp, 0x1c
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
lea edx, [esp + 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x402eb2
push str.File_opend_n
call fcn.0040e270
add esp, 4
push 0
lea eax, [esp + 0x18]
push eax
push esi
push ebp
push edi
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x402e6e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Write_error___ld_n
call fcn.0040e270
add esp, 8
mov ecx, dword [esp + 0x14]
push ecx
push str.Write___d_n
call fcn.0040e270
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x28]
add edx, 0x28c004
mov ecx, eax
add esp, 8
sub edx, ecx
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x402e92
push edi
mov dword [esp + 0x1c], 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x402ec6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Open_error___ld_n
call fcn.0040e270
add esp, 8
push ebp
call fcn.00416981
add esp, 4
test ebx, ebx
je 0x402ee3
mov ecx, ebx
call fcn.00413d90
push ebx
call fcn.0041603a
add esp, 4
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x22c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.004164fa
add esp, 0x224
ret
Function at 0x402ff0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x42696e
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x431114]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x431114]
xor eax, esp
push eax
lea eax, [esp + 0x230]
mov dword fs:[0], eax
mov eax, dword [esp + 0x240]
push 4
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], eax
xor esi, esi
call fcn.004160af
add esp, 4
mov dword [esp + 0x14], eax
mov dword [esp + 0x238], esi
test eax, eax
je 0x403060
mov ecx, eax
call fcn.00413d80
mov ebp, eax
jmp 0x403062
xor ebp, ebp
mov dword [esp + 0x238], 0xffffffff
test ebp, ebp
je 0x4031bc
push 0
push 0
push 0
mov edi, 1
push edi
push 0xa
push 0
mov ecx, ebp
mov dword [esp + 0x30], edi
call fcn.00413da0
mov esi, eax
test esi, esi
jbe 0x4031a9
lea ebx, [ebx]
push esi
call fcn.0041698c
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x403185
push 0
push esi
push ebx
movzx ecx, di
push ecx
push 0xa
push 0
mov ecx, ebp
call fcn.00413da0
mov edi, eax
test edi, edi
je 0x403178
mov esi, dword [esp + 0x20]
push edi
push ebx
mov ecx, esi
call fcn.00402970
test eax, eax
je 0x4031e8
push str.Zip_has_been_verified._Correct_data__n
call fcn.0040e270
mov edx, dword [esp + 0x20]
push edx
lea eax, [esp + 0x2c]
push str._sKmSFX.zip
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
lea ecx, [esp + 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x403164
push 0
lea edx, [esp + 0x18]
push edx
push edi
push ebx
push esi
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40315b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Write_error___ld_n
call fcn.0040e270
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x403178
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Open_error___ld_n
call fcn.0040e270
add esp, 8
push ebx
call fcn.0041603a
mov edi, dword [esp + 0x1c]
add esp, 4
push 0
push 0
inc edi
push 0
movzx eax, di
push eax
push 0xa
push 0
mov ecx, ebp
mov dword [esp + 0x30], edi
call fcn.00413da0
mov esi, eax
test esi, esi
ja 0x4030a0
mov ecx, ebp
lea esi, [edi - 1]
call fcn.00413d90
push ebp
call fcn.0041603a
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x230]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.004164fa
add esp, 0x228
ret 4
lea ecx, [esi + 0x28c004]
push ecx
mov ecx, dword [esi + 0x28c828]
call fcn.004128c0
push str.Zip_has_been_verified._Incorrect_data__n
call fcn.0040e270
push ebx
call fcn.0041603a
add esp, 8
mov ecx, ebp
call fcn.00413d90
push ebp
call fcn.0041603a
add esp, 4
xor eax, eax
jmp 0x4031be