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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a0
mov eax, dword [0x43fd90]
xor eax, ebp
mov dword [ebp - 8], eax
cmp dword [0x4718e8], 1
jne 0x40f8f5
mov byte [ebp - 0x88], 0
push 0x3f
push 0
lea eax, [ebp - 0x87]
push eax
call fcn.0041f6d0
add esp, 0xc
mov byte [ebp - 0x108], 0
push 0x7f
push 0
lea ecx, [ebp - 0x107]
push ecx
call fcn.0041f6d0
add esp, 0xc
mov byte [ebp - 0x1a0], 0
push 0x7f
push 0
lea edx, [ebp - 0x19f]
push edx
call fcn.0041f6d0
add esp, 0xc
mov byte [ebp - 0x48], 0
push 0x3f
push 0
lea eax, [ebp - 0x47]
push eax
call fcn.0041f6d0
add esp, 0xc
mov dword [ebp - 0x10c], 0
lea ecx, [ebp - 0x11c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov edx, dword [ebp + 8]
push edx
movzx eax, word [ebp - 0x10e]
push eax
movzx ecx, word [ebp - 0x110]
push ecx
movzx edx, word [ebp - 0x112]
push edx
movzx eax, word [ebp - 0x114]
push eax
movzx ecx, word [ebp - 0x116]
push ecx
movzx edx, word [ebp - 0x11a]
push edx
movzx eax, word [ebp - 0x11c]
push eax
push str._4d__02d__02d__02d:_02d:_02d._03d__s
lea ecx, [ebp - 0x108]
push ecx
call fcn.004208cb
add esp, 0x28
push 0x435fb8
mov edx, dword [ebp + 0xc]
push edx
call fcn.0041fc16
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40f8ee
push 2
push 0
mov eax, dword [ebp - 4]
push eax
call fcn.00422999
add esp, 0xc
mov ecx, dword [ebp - 4]
push ecx
call fcn.004228a1
add esp, 4
cmp eax, 0x100000
jl 0x40f8bd
mov edx, dword [ebp - 4]
push edx
call fcn.0041f8f2
add esp, 4
movzx eax, word [ebp - 0x110]
push eax
movzx ecx, word [ebp - 0x112]
push ecx
movzx edx, word [ebp - 0x114]
push edx
movzx eax, word [ebp - 0x116]
push eax
movzx ecx, word [ebp - 0x11a]
push ecx
movzx edx, word [ebp - 0x11c]
push edx
push str._4d_02d_02d_02d_02d_02d
lea eax, [ebp - 0x88]
push eax
call fcn.004208cb
add esp, 0x20
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00420840
add esp, 4
sub eax, 7
push eax
mov edx, dword [ebp + 0xc]
add edx, 3
push edx
lea eax, [ebp - 0x48]
push eax
call fcn.004225e0
add esp, 0xc
lea ecx, [ebp - 0x88]
push ecx
lea edx, [ebp - 0x48]
push edx
push str.c:_s_s.txt
lea eax, [ebp - 0x1a0]
push eax
call fcn.004208cb
add esp, 0x10
lea ecx, [ebp - 0x1a0]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.004225aa
add esp, 8
mov dword [ebp - 0x10c], eax
push 0x435fe0
mov eax, dword [ebp + 0xc]
push eax
call fcn.0041fc16
add esp, 8
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
push ecx
push 1
lea edx, [ebp - 0x108]
push edx
call fcn.00420840
add esp, 4
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.0041fad0
add esp, 0x10
mov ecx, dword [ebp - 4]
push ecx
call fcn.0041f8f2
add esp, 4
mov eax, dword [ebp + 0x10]
jmp 0x40f8f7
xor eax, eax
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041f6b5
mov esp, ebp
pop ebp
ret
Function at 0x4101d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
xor eax, eax
jne 0x4101d9
xor ecx, ecx
jne 0x4101d9
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
shl eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x410220
mov eax, dword [ebp - 0xc]
jmp 0x41027d
cmp dword [ebp - 4], 1
je 0x410233
cmp dword [ebp - 4], 2
je 0x410233
mov eax, 0xd
jmp 0x41027d
cmp dword [ebp + 0xc], 0
je 0x410271
cmp dword [ebp - 8], 0
je 0x410269
mov eax, dword [ebp - 8]
xor edx, edx
mov ecx, 2
div ecx
test edx, edx
jne 0x410260
mov edx, dword [ebp - 8]
shr edx, 1
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax + edx*2 - 2]
test ecx, ecx
je 0x410267
mov eax, 0xd
jmp 0x41027d
jmp 0x410271
xor edx, edx
mov eax, dword [ebp + 0xc]
mov word [eax], dx
mov ecx, dword [ebp - 8]
shr ecx, 1
mov edx, dword [ebp + 0x10]
mov dword [edx], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4104d0
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
mov eax, dword [0x43fd90]
xor eax, ebp
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x820], ecx
mov dword [ebp - 8], 0
movzx eax, byte [ebp + 8]
push eax
mov ecx, dword [ebp - 0x820]
call fcn.00410630
mov dword [ebp - 4], eax
movzx ecx, byte [ebp + 8]
test ecx, ecx
je 0x41060f
mov ecx, dword [ebp - 0x820]
call fcn.004107e0
test eax, eax
je 0x41060f
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 0
cmp dword [ebp - 0xc], 0
jne 0x41054b
call fcn.00403960
mov dword [ebp - 8], eax
jmp 0x41060f
push 2
mov edx, dword [ebp - 0x820]
add edx, 0x40
push edx
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4105fd
mov ecx, dword [ebp - 0x820]
add ecx, 0x40
push ecx
push 0
push 0
push 0
push 0
push str.PlugPlay
push 0
push 0
push 2
push 0xffffffffffffffff
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
push 0x400
push 0
lea eax, [ebp - 0x818]
push eax
call fcn.0041f6d0
add esp, 0xc
push 4
push 0
lea ecx, [ebp - 0x81c]
push ecx
call fcn.0041f6d0
add esp, 0xc
push str.iZHost_for_biometric_scanner
lea edx, [ebp - 0x818]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x818]
mov dword [ebp - 0x81c], eax
lea ecx, [ebp - 0x81c]
push ecx
push 1
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x410605
call fcn.00403960
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0041f6b5
mov esp, ebp
pop ebp
ret 4
Function at 0x410850
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1224
call fcn.004206e0
mov eax, dword [0x43fd90]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x1224], ecx
mov ecx, dword [ebp - 0x1224]
call fcn.004107e0
test eax, eax
je 0x410886
mov eax, 1
jmp 0x410a0a
push 0x104
lea eax, [ebp - 0x21e]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4108ac
cmp dword [ebp - 0xc], 0x104
jne 0x4108b3
xor eax, eax
jmp 0x410a0a
mov ecx, 0x22
mov word [ebp - 0x220], cx
mov edx, 0x22
mov eax, dword [ebp - 0xc]
mov word [ebp + eax*2 - 0x21e], dx
xor ecx, ecx
mov edx, dword [ebp - 0xc]
mov word [ebp + edx*2 - 0x21c], cx
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x41094c
push 0x400
lea eax, [ebp - 0xa20]
push eax
push 0xd80a
call fcn.00410a50
add esp, 0xc
test eax, eax
jne 0x41092a
push str.Could_not_open_Service_Manager
push 0x400
lea ecx, [ebp - 0xa20]
push ecx
call fcn.00410a20
add esp, 0xc
push 0
mov edx, dword [ebp - 0x1224]
add edx, 0x40
push edx
lea eax, [ebp - 0xa20]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x410a0a
push 0
push 0
push str.RPCSS
push 0
push 0
lea ecx, [ebp - 0x220]
push ecx
push 1
push 3
push 0x10
push 0xf01ff
mov edx, dword [ebp - 0x1224]
add edx, 0x40
push edx
mov eax, dword [ebp - 0x1224]
add eax, 0x40
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4109f1
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0x400
lea eax, [ebp - 0x1220]
push eax
push 0xd80b
call fcn.00410a50
add esp, 0xc
test eax, eax
jne 0x4109d2
push str.Could_not_start_service
push 0x400
lea ecx, [ebp - 0x1220]
push ecx
call fcn.00410a20
add esp, 0xc
push 0
mov edx, dword [ebp - 0x1224]
add edx, 0x40
push edx
lea eax, [ebp - 0x1220]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x410a0a
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041f6b5
mov esp, ebp
pop ebp
ret
Function at 0x410ad0
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x203c
call fcn.004206e0
mov eax, dword [0x43fd90]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x203c], ecx
mov ecx, dword [ebp - 0x203c]
call fcn.004107e0
test eax, eax
jne 0x410b06
mov eax, 1
jmp 0x410d30
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x410b76
push 0x400
lea eax, [ebp - 0x1030]
push eax
push 0xd80a
call fcn.00410a50
add esp, 0xc
test eax, eax
jne 0x410b54
push str.Could_not_open_Service_Manager
push 0x400
lea ecx, [ebp - 0x1030]
push ecx
call fcn.00410a20
add esp, 0xc
push 0
mov edx, dword [ebp - 0x203c]
add edx, 0x40
push edx
lea eax, [ebp - 0x1030]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x410d30
push 0x10020
mov ecx, dword [ebp - 0x203c]
add ecx, 0x40
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x810], eax
cmp dword [ebp - 0x810], 0
jne 0x410c00
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0x400
lea ecx, [ebp - 0x1830]
push ecx
push 0xd80c
call fcn.00410a50
add esp, 0xc
test eax, eax
jne 0x410bde
push str.Could_not_open_service
push 0x400
lea edx, [ebp - 0x1830]
push edx
call fcn.00410a20
add esp, 0xc
push 0
mov eax, dword [ebp - 0x203c]
add eax, 0x40
push eax
lea ecx, [ebp - 0x1830]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x410d30
lea edx, [ebp - 0x830]
push edx
push 1
mov eax, dword [ebp - 0x810]
push eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov dword [ebp - 0x814], eax
cmp dword [ebp - 0x814], 0
jne 0x410ca3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x1834], eax
cmp dword [ebp - 0x1834], 0x426
je 0x410ca3
cmp dword [ebp - 0x1834], 0x425
jne 0x410c52
cmp dword [ebp - 0x82c], 3
je 0x410ca3
push 0x400
lea ecx, [ebp - 0x2038]
push ecx
push 0xd80e
call fcn.00410a50
add esp, 0xc
test eax, eax
jne 0x410c88
push str.Could_not_stop_service
push 0x400
lea edx, [ebp - 0x2038]
push edx
call fcn.00410a20
add esp, 0xc
push 0
mov eax, dword [ebp - 0x203c]
add eax, 0x40
push eax
lea ecx, [ebp - 0x2038]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov edx, dword [ebp - 0x810]
push edx
call dword [sym.imp.ADVAPI32.dll_DeleteService]
mov dword [ebp - 0x80c], eax
mov eax, dword [ebp - 0x810]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [ebp - 0x80c], 0
je 0x410cdd
mov eax, 1
jmp 0x410d30
push 0x400
lea edx, [ebp - 0x808]
push edx
push 0xd80d
call fcn.00410a50
add esp, 0xc
test eax, eax
jne 0x410d13
push str.Could_not_delete_service
push 0x400
lea eax, [ebp - 0x808]
push eax
call fcn.00410a20
add esp, 0xc
push 0
mov ecx, dword [ebp - 0x203c]
add ecx, 0x40
push ecx
lea edx, [ebp - 0x808]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041f6b5
mov esp, ebp
pop ebp
ret
Function at 0x411050
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x43fd90]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x30]
call fcn.00411170
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jl 0x4110b6
push 0x18
push 0
push 0x4718c8
call fcn.0041f6d0
add esp, 0xc
push 0x4718c8
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov ecx, dword [ebp - 0x30]
add ecx, 0x268
push ecx
push 0
mov edx, dword [ebp - 0x30]
push edx
push 0x40e860
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x2c], eax
push 0
push 0x40eb80
mov eax, dword [ebp - 0x30]
add eax, 0x40
push eax
call dword [sym.imp.ADVAPI32.dll_RegisterServiceCtrlHandlerExW]
mov ecx, dword [ebp - 0x30]
mov dword [ecx + 0x240], eax
mov edx, dword [ebp - 0x30]
cmp dword [edx + 0x240], 0
jne 0x4110e4
mov eax, dword [ebp - 0x28]
jmp 0x41113e
push 0x20
push 0
lea eax, [ebp - 0x24]
push eax
call fcn.0041f6d0
add esp, 0xc
mov dword [ebp - 0x24], 0x20
mov dword [ebp - 0x20], 5
mov ecx, dword [0x43fb34]
mov dword [ebp - 0x18], ecx
mov edx, dword [0x43fb38]
mov dword [ebp - 0x14], edx
mov eax, dword [0x43fb3c]
mov dword [ebp - 0x10], eax
mov ecx, dword [0x43fb40]
mov dword [ebp - 0xc], ecx
push 1
lea edx, [ebp - 0x24]
push edx
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + 0x240]
push ecx
call dword [sym.imp.USER32.dll_RegisterDeviceNotificationW]
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041f6b5
mov esp, ebp
pop ebp
ret 4

Function at 0x411460
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x30], eax
mov edx, dword [ebp - 0xc]
cmp dword [edx + 0x30], 0
jne 0x41148a
xor eax, eax
jmp 0x4114bc
lea eax, [ebp - 4]
push eax
push 0
mov ecx, dword [ebp - 0xc]
push ecx
push 0x412830
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4114b9
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x412760
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x43fd90]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x214], 0x100
lea eax, [ebp + 0x10]
mov dword [ebp - 0x210], eax
mov ecx, dword [ebp - 0x210]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 0xff
push 0x100
lea eax, [ebp - 0x208]
push eax
call fcn.004230f1
add esp, 0x14
mov dword [ebp - 0x210], 0
xor ecx, ecx
mov word [ebp - 0xa], cx
lea edx, [ebp - 0x208]
mov dword [ebp - 0x20c], edx
mov eax, dword [ebp + 8]
cmp dword [eax + 0x260], 0
jne 0x4127e1
lea ecx, [ebp - 0x208]
push ecx
call fcn.00422e04
add esp, 4
mov edx, dword [ebp + 8]
add edx, 0x40
push edx
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x412822
push 0
lea eax, [ebp - 0x20c]
push eax
push 0
push 1
push 0
push 0
push 0
push 4
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0041f6b5
mov esp, ebp
pop ebp
ret
Function at 0x419a50
Capabilities:
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d8
mov eax, dword [0x43fd90]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov word [ebp - 0x250], ax
push 0x206
push 0
lea ecx, [ebp - 0x24e]
push ecx
call fcn.0041f6d0
add esp, 0xc
xor edx, edx
mov word [ebp - 0x2d0], dx
push 0x3e
push 0
lea eax, [ebp - 0x2ce]
push eax
call fcn.0041f6d0
add esp, 0xc
xor ecx, ecx
mov word [ebp - 0x48], cx
push 0x3e
push 0
lea edx, [ebp - 0x46]
push edx
call fcn.0041f6d0
add esp, 0xc
xor eax, eax
mov word [ebp - 0x290], ax
push 0x3e
push 0
lea ecx, [ebp - 0x28e]
push ecx
call fcn.0041f6d0
add esp, 0xc
push 0x104
lea edx, [ebp - 0x250]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.izscrr1b55.bin
lea eax, [ebp - 0x250]
push eax
push str._s_s
lea ecx, [ebp - 0x250]
push ecx
call fcn.0041c8e0
add esp, 0x10
lea edx, [ebp - 0x250]
push edx
push 0x20
lea eax, [ebp - 0x290]
push eax
push 0x436d0c
push 0xa
lea ecx, [ebp - 0x48]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x2c8]
push eax
call fcn.004235bf
add esp, 0xc
push eax
push str.ReaderID
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
movzx ecx, word [ebp - 0x290]
test ecx, ecx
je 0x419c1c
mov dword [ebp - 0x2d4], 0
mov dword [ebp - 0x2d8], 0
mov edx, dword [ebp + 8]
movzx eax, word [edx + 0x2dc]
mov dword [ebp - 0x2d4], eax
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x2c8], 0x10
jne 0x419b9f
mov edx, dword [ebp + 8]
movzx eax, word [edx + 0x2dc]
cmp eax, 7
jg 0x419b9f
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x2c4], 2
je 0x419b9f
mov dword [ebp - 0x2d4], 8
cmp dword [ebp - 0x2d4], 0
jl 0x419c1c
mov edx, dword [ebp - 0x2d4]
push edx
lea eax, [ebp - 0x290]
push eax
push str._s__d
lea ecx, [ebp - 0x2d0]
push ecx
call fcn.0041c8e0
add esp, 0x10
lea edx, [ebp - 0x250]
push edx
push 0
push str.Exposure
lea eax, [ebp - 0x2d0]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x2d8], eax
cmp dword [ebp - 0x2d8], 0
jle 0x419bf8
jmp 0x419c1c
push 0x40
push 0
lea ecx, [ebp - 0x2d0]
push ecx
call fcn.0041f6d0
add esp, 0xc
mov edx, dword [ebp - 0x2d4]
sub edx, 1
mov dword [ebp - 0x2d4], edx
jmp 0x419b9f
lea eax, [ebp - 0x250]
push eax
push 0
push str.FilterBackground
lea ecx, [ebp - 0x2d0]
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edx, dword [ebp + 8]
mov dword [edx + 0x24c], eax
lea eax, [ebp - 0x250]
push eax
push 0
push str.VerticalCorrected
lea ecx, [ebp - 0x2d0]
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edx, dword [ebp + 8]
mov dword [edx + 0x250], eax
lea eax, [ebp - 0x250]
push eax
push 0
push str.MirrorCorrected
lea ecx, [ebp - 0x2d0]
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edx, dword [ebp + 8]
mov dword [edx + 0x254], eax
lea eax, [ebp - 0x250]
push eax
push 0
push str.SupportAuxDevice
lea ecx, [ebp - 0x2d0]
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov edx, dword [ebp + 8]
mov dword [edx + 0x2d0], eax
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041f6b5
mov esp, ebp
pop ebp
ret
Function at 0x41b1d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0x43704c
push str.C:zklog.txt
call fcn.0041fc16
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x41b24d
push 2
push 0
mov eax, dword [ebp - 4]
push eax
call fcn.00422999
add esp, 0xc
mov ecx, dword [ebp - 4]
push ecx
push 1
mov edx, dword [ebp + 8]
push edx
call fcn.00422dea
add esp, 4
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.0041fad0
add esp, 0x10
mov ecx, dword [ebp - 4]
push ecx
push 1
push 2
push 0x437060
call fcn.0041fad0
add esp, 0x10
mov edx, dword [ebp - 4]
push edx
call fcn.0041f8f2
add esp, 4
mov eax, dword [ebp + 8]
push eax
call fcn.00422dea
add esp, 4
jmp 0x41b24f
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x41f6b5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43fd90]
jne 0x41f6bf
repz ret
jmp fcn.00423dfe

Function at 0x42b4b0
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x42b452
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x42b44d
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
add byte [ebp + 0x13], dh
add byte [ebp + 0x13], dh
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x42b43f
cmp edx, ebx
jne 0x42b58d
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x42b40e
add eax, dword [eax + 4]
jmp 0x42b3fb
mov dword [ebp + 0xc], ebx
jmp 0x42b45d
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x42b475
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x42b493
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x42b4f1
inc eax
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x42b4d8
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x42b4e1
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x42b4eb
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x42b4cd
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x42b457
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x42b53e
dec eax
je 0x42b535
sub eax, 3
je 0x42b52c
mov dword [ebp - 4], 0x40
jmp 0x42b55b
mov dword [ebp - 4], 4
jmp 0x42b541
mov dword [ebp - 4], 0x20
jmp 0x42b541
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x42b58d
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x42b50d
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.0042ad9e
sahf
invalid
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax

Function at 0x42b5fd
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc esi
mov byte [ebp - 0x349], 0x40
mov byte [ebp - 0x348], 0x56
mov byte [ebp - 0x347], 0x56
mov byte [ebp - 0x346], 0x6d
mov byte [ebp - 0x345], 0x40
mov byte [ebp - 0x344], 0x44
mov byte [ebp - 0x343], 0x55
mov byte [ebp - 0x342], 0x25
lea eax, [ebp - 0x354]
push eax
call fcn.0042adae
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0042ad63