joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a9900
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x14], 0
mov dword [ebp - 0xc], 4
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0
mov eax, dword [0x4f4f54]
mov dword [ebp - 4], eax
mov ecx, 0x629aa4
call fcn.0042c690
movzx ecx, al
test ecx, ecx
jne 0x4a9948
mov ecx, 0x629aa4
call fcn.00403800
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], connect
cmp dword [0x629a1c], 0
je 0x4a9961
mov edx, dword [0x629a1c]
mov dword [ebp - 0x18], edx
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4a998e
mov dword [ebp - 8], 0
jmp 0x4a99dc
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x14]
push ecx
push 0
push 0
mov edx, dword [str.LogLevel]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4a99b8
jmp 0x4a99dc
cmp dword [ebp - 0x14], 0
jb 0x4a99d2
cmp dword [ebp - 0x14], 5
jae 0x4a99d2
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.004a9750
add esp, 4
jmp 0x4a99dc
push 1
call fcn.004a9750
add esp, 4
cmp dword [ebp - 8], 0
je 0x4a99ec
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x4a9a00
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x6264e4]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x420], 0
mov ecx, 0x629a88
call fcn.0042c690
movzx eax, al
test eax, eax
jne 0x4a9a52
push 0x629a88
mov ecx, dword [ebp + 8]
call fcn.0042c550
mov ecx, dword [ebp - 0x420]
or ecx, 1
mov dword [ebp - 0x420], ecx
mov eax, dword [ebp + 8]
jmp 0x4a9c2c
mov dword [ebp - 4], 0
push 0x208
push 0
lea edx, [ebp - 0x210]
push edx
call fcn.0047d050
add esp, 0xc
push 0x208
push 0
lea eax, [ebp - 0x418]
push eax
call fcn.0047d050
add esp, 0xc
mov dword [ebp - 0x41c], 0
mov ecx, dword [0x62ae08]
and ecx, 1
jne 0x4a9ac0
mov edx, dword [0x62ae08]
or edx, 1
mov dword [0x62ae08], edx
mov ecx, 0x62adec
call fcn.00403780
push 0x4df090
call fcn.0047e8f8
add esp, 4
mov ecx, 0x62adec
call fcn.0042c690
movzx eax, al
test eax, eax
jne 0x4a9af5
push 0x62adec
mov ecx, dword [ebp + 8]
call fcn.0042c550
mov ecx, dword [ebp - 0x420]
or ecx, 1
mov dword [ebp - 0x420], ecx
mov eax, dword [ebp + 8]
jmp 0x4a9c2c
push 0x104
lea edx, [ebp - 0x210]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4a9b17
jmp 0x4a9c0d
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.log_
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4a9b5b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4a9b5b
jmp 0x4a9c0d
lea eax, [ebp - 0x41c]
push eax
lea ecx, [ebp - 0x418]
push ecx
push 0
call fcn.004a9820
add esp, 0xc
movzx edx, al
test edx, edx
jne 0x4a9b7f
jmp 0x4a9c0d
mov eax, dword [ebp - 0x41c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
mov ecx, dword [ebp - 0x41c]
push ecx
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x41c]
push eax
lea ecx, [ebp - 0x418]
push ecx
push 0x400000
call fcn.004a9820
add esp, 0xc
movzx edx, al
test edx, edx
jne 0x4a9bc4
jmp 0x4a9c0d
lea eax, [ebp - 0x210]
push eax
mov ecx, 0x62adec
call fcn.0042c5b0
cmp dword [ebp - 0x41c], 0
je 0x4a9bfe
push 0x4f5028
mov ecx, 0x62adec
call fcn.0042c600
mov ecx, dword [ebp - 0x41c]
push ecx
mov ecx, 0x62adec
call fcn.0042c600
push 0x4f502c
mov ecx, 0x62adec
call fcn.0042c600
push 0x62adec
mov ecx, dword [ebp + 8]
call fcn.0042c550
mov edx, dword [ebp - 0x420]
or edx, 1
mov dword [ebp - 0x420], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0047d9e4
mov esp, ebp
pop ebp
ret
Function at 0x4a9d60
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d9c2f
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x6264e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
movzx eax, byte [0x629a20]
test eax, eax
je 0x4a9d97
mov al, 1
jmp 0x4a9e5c
call fcn.004a9900
call fcn.0042b020
lea ecx, [ebp - 0xd]
call fcn.0042aff0
mov dword [ebp - 4], 0
call fcn.004a97a0
cmp dword [0x629a24], 0
jne 0x4a9df4
push 0x1c
call fcn.0047d91f
add esp, 4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x4a9dde
mov ecx, dword [ebp - 0x18]
call fcn.00403780
mov dword [ebp - 0x3c], eax
jmp 0x4a9de5
mov dword [ebp - 0x3c], 0
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
mov dword [0x629a24], edx
lea eax, [ebp - 0x34]
push eax
call fcn.004a9a00
add esp, 4
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x44], ecx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x44]
push edx
mov ecx, dword [0x629a24]
call fcn.0042c590
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.004037b0
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x4a9e42
mov ecx, dword [0x629a24]
call fcn.00403800
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.004a9c40
mov byte [ebp - 0x35], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xd]
call fcn.0042b010
mov al, byte [ebp - 0x35]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x4aa2b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4db665
mov eax, dword fs:[0]
push eax
sub esp, 0x4e0
mov eax, dword [0x6264e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x4d8], ecx
mov dword [ebp - 4], 1
push 0x4f5078
mov eax, dword [ebp - 0x4d8]
add eax, 4
push eax
call fcn.00428780
add esp, 8
lea ecx, [ebp - 0x4d4]
push ecx
mov ecx, dword [ebp - 0x4d8]
add ecx, 4
call fcn.0042bc50
mov dword [ebp - 0x4dc], eax
mov edx, dword [ebp - 0x4dc]
mov dword [ebp - 0x4e0], edx
mov byte [ebp - 4], 2
push 0xfde9
mov ecx, dword [ebp - 0x4e0]
call fcn.00403800
push eax
lea ecx, [ebp - 0x4b8]
call fcn.00429170
mov dword [ebp - 0x4e4], eax
mov eax, dword [ebp - 0x4e4]
mov dword [ebp - 0x4e8], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x4e8]
mov edx, dword [ecx]
push edx
lea ecx, [ebp - 0x2c]
call fcn.004074d0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x4b8]
call fcn.004291d0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x4d4]
call fcn.004037b0
call fcn.0042b020
lea ecx, [ebp - 0x2d]
call fcn.0042aff0
mov byte [ebp - 4], 7
call fcn.004a9c40
movzx eax, al
test eax, eax
je 0x4aa3df
push 2
push 0
push 0
mov ecx, dword [0x629a28]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea edx, [ebp - 0x34]
push edx
lea ecx, [ebp - 0x2c]
call fcn.004073e0
push eax
lea ecx, [ebp - 0x2c]
call fcn.00407400
push eax
mov eax, dword [0x629a28]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x2d]
call fcn.0042b010
mov ecx, dword [ebp - 0x4d8]
cmp dword [ecx], 4
jne 0x4aa457
lea ecx, [ebp - 0x2c]
call fcn.004073e0
cmp eax, 0x400
jae 0x4aa415
lea ecx, [ebp - 0x2c]
call fcn.004073e0
mov dword [ebp - 0x4ec], eax
jmp 0x4aa41f
mov dword [ebp - 0x4ec], 0x400
mov edx, dword [ebp - 0x4ec]
push edx
lea ecx, [ebp - 0x2c]
call fcn.00407400
push eax
push 0x400
lea eax, [ebp - 0x434]
push eax
call fcn.00481a83
add esp, 0x10
lea ecx, [ebp - 0x434]
push ecx
call fcn.004a9890
add esp, 4
call fcn.004a9880
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.004074b0
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x4d8]
add ecx, 0x8c
call fcn.004a96d0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x4d8]
add ecx, 4
call fcn.0042b1c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047d9e4
mov esp, ebp
pop ebp
ret
Function at 0x4ac7a0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d9c52
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x6264e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x18], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00401050
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
jne 0x4ac805
jmp 0x4ac8b7
push 0
push 0x80
push 3
push 0
push 1
push connect
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
jne 0x4ac82f
jmp 0x4ac8b7
push 0
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
add edx, 1
push edx
call fcn.0047c678
add esp, 4
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x4ac85e
jmp 0x4ac8b7
push 0
lea ecx, [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x4ac881
jmp 0x4ac8b7
mov edx, dword [ebp - 0x24]
add edx, dword [ebp - 0x10]
mov byte [edx], 0
cmp dword [ebp + 0xc], 0xfde9
jne 0x4ac8a3
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.004ab410
add esp, 8
lea ecx, [ebp - 0x14]
call fcn.00401aa0
push eax
mov ecx, dword [ebp - 0x34]
call fcn.004abe90
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x24], 0
je 0x4ac8d6
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0047d158
add esp, 4
mov dword [ebp - 0x24], 0
cmp dword [ebp - 0x18], 0xffffffff
je 0x4ac8ed
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x18], 0xffffffff
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x30], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00401070
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x4ad6a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d8ab6
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x6264e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 4], 0
lea ecx, [ebp + 8]
call fcn.00401aa0
push eax
lea ecx, [ebp - 0x18]
call fcn.00408180
mov byte [ebp - 4], 1
mov dword [ebp - 0x1c], 0xffffffff
mov eax, dword [ebp - 0x28]
cmp dword [eax], 2
jne 0x4ad6fe
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + 0x24]
mov dword [ebp - 0x1c], edx
jmp 0x4ad707
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0x20]
mov dword [ebp - 0x1c], ecx
cmp dword [ebp - 0x1c], 0xffffffff
je 0x4ad71c
lea ecx, [ebp - 0x18]
call fcn.0040be80
movzx edx, al
test edx, edx
je 0x4ad743
mov dword [ebp - 0x20], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00401070
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401070
mov eax, dword [ebp - 0x20]
jmp 0x4ad7ae
push 2
push 0
push 0
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x14], 0
push 0
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x18]
call fcn.00408bb0
push eax
lea ecx, [ebp - 0x18]
call fcn.00408710
push eax
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x10], eax
push 0xffffffffffffffff
lea ecx, [ebp - 0x18]
call fcn.00417a20
mov dword [ebp - 0x24], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00401070
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00401070
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x4af090
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dba3b
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
mov eax, dword [0x6264e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xbc], ecx
mov dword [ebp - 0xb8], 0
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp - 0xbc]
add ecx, 0x10
call fcn.00401560
push 0
push 0
push 3
push 0
push 1
push connect
mov ecx, dword [ebp - 0xbc]
add ecx, 8
call fcn.00401aa0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x4af24d
mov dword [ebp - 0x14], 0
push 0
push 0x4f8564
push 0x4f856c
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
call fcn.004a9e70
movzx eax, al
test eax, eax
je 0x4af201
call fcn.004a9740
cmp eax, 3
jg 0x4af201
lea ecx, [ebp - 0xb4]
call fcn.00401030
mov dword [ebp - 0xc0], eax
mov ecx, dword [ebp - 0xc0]
mov dword [ebp - 0xc4], ecx
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0xb8]
or edx, 1
mov dword [ebp - 0xb8], edx
push 3
push 0x162
push 0x4f857c
lea ecx, [ebp - 0xb0]
call fcn.004aa4b0
mov dword [ebp - 0xc8], eax
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0xcc], eax
mov dword [ebp - 4], 1
mov ecx, dword [ebp - 0xb8]
or ecx, 2
mov dword [ebp - 0xb8], ecx
mov edx, dword [ebp - 0xbc]
mov eax, dword [edx + 8]
push eax
push 0x4f85a8
mov ecx, dword [ebp - 0xc4]
push ecx
call fcn.00401000
add esp, 0xc
mov ecx, eax
call fcn.00401aa0
push eax
mov ecx, dword [ebp - 0xcc]
call fcn.004177b0
mov ecx, eax
call fcn.00401610
push eax
lea ecx, [ebp - 0x1d]
call fcn.0041ffe0
mov ecx, eax
call fcn.0042bb10
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0xb8]
and edx, 2
je 0x4af225
and dword [ebp - 0xb8], 0xfffffffd
lea ecx, [ebp - 0xb0]
call fcn.004aa2b0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xb8]
and eax, 1
je 0x4af249
and dword [ebp - 0xb8], 0xfffffffe
lea ecx, [ebp - 0xb4]
call fcn.0042ddc0
xor eax, eax
jmp 0x4af2c8
push 0
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
add edx, 1
push edx
call fcn.0047cf83
add esp, 4
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
add eax, 1
push eax
push 0
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.0047d050
add esp, 0xc
push 0
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0xbc]
add ecx, 0x10
call fcn.004010d0
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.0047d0ca
add esp, 4
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x4b5890
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 8], 0
push 0
push 0
push 3
push 0
push 1
push connect
lea ecx, [ebp + 0xc]
call fcn.00401aa0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x4b58df
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
lea ecx, [ebp + 0xc]
call fcn.00401070
mov eax, dword [ebp - 0x10]
jmp 0x4b594f
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
add ecx, 1
push ecx
call fcn.0047cf83
add esp, 4
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov eax, dword [ebp - 8]
add eax, 1
push eax
push 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call fcn.0047d050
add esp, 0xc
push 0
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x14], 1
lea ecx, [ebp + 0xc]
call fcn.00401070
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret
Function at 0x4b5dd0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d8248
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x6264e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x6c], 0
push 0x40
push 0
lea eax, [ebp - 0x68]
push eax
call fcn.0047d050
add esp, 0xc
mov dword [ebp - 0x20], 0
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x6c], 0x44
mov dword [ebp - 0x40], 1
lea ecx, [ebp - 0x70]
call fcn.00401050
mov dword [ebp - 4], 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
push str.__s___s
lea ecx, [ebp - 0x70]
push ecx
call fcn.0040a8f0
add esp, 0x10
cmp dword [ebp + 0x14], 0
je 0x4b5e69
mov word [ebp - 0x3c], 0xa
jmp 0x4b5e6f
mov word [ebp - 0x3c], 0
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x6c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x70]
call fcn.00401aa0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x4b5e9f
jmp 0x4b5edb
cmp dword [ebp + 0x10], 0
je 0x4b5ed4
mov dword [ebp - 0x74], 0
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [ebp - 0x74], 0
jne 0x4b5ed4
cmp dword [ebp + 0x18], 0
je 0x4b5ed4
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov dword [ebp - 0x24], 1
cmp dword [ebp - 0x20], 0
je 0x4b5ef2
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x20], 0
cmp dword [ebp - 0x1c], 0
je 0x4b5f09
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x1c], 0
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x78], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.00401070
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x4b6730
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d8d5b
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x6264e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 0xc]
call fcn.00401aa0
push eax
lea ecx, [ebp - 0x18]
call fcn.00408180
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0xffffffff
je 0x4b6782
lea ecx, [ebp - 0x18]
call fcn.0040be80
movzx eax, al
test eax, eax
je 0x4b679a
mov byte [ebp - 0x19], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00401070
mov al, byte [ebp - 0x19]
jmp 0x4b67f6
push 2
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x14], 0
push 0
lea edx, [ebp - 0x14]
push edx
lea ecx, [ebp - 0x18]
call fcn.00408bb0
push eax
lea ecx, [ebp - 0x18]
call fcn.00408710
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x10], eax
push 0xffffffffffffffff
lea ecx, [ebp - 0x18]
call fcn.00417a20
mov byte [ebp - 0x1a], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00401070
mov al, byte [ebp - 0x1a]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x4bd930
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
mov dword [ebp - 8], 0
push 0
push 0
push 3
push 0
push 1
push connect
lea ecx, [ebp + 0xc]
call fcn.00401aa0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x4bd982
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
lea ecx, [ebp + 0xc]
call fcn.00401070
mov eax, dword [ebp - 0x10]
jmp 0x4bd9f2
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
add ecx, 1
push ecx
call fcn.0047cf83
add esp, 4
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov eax, dword [ebp - 8]
add eax, 1
push eax
push 0
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call fcn.0047d050
add esp, 0xc
push 0
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x14], 1
lea ecx, [ebp + 0xc]
call fcn.00401070
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret 8
Function at 0x4bda00
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d8e65
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x6264e4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x28], ecx
lea ecx, [ebp - 0x18]
call fcn.00401050
mov dword [ebp - 4], 0
push str.e:codekisengine_gitkis_srcKSemDataReportReleaseLT.py
lea ecx, [ebp - 0x1c]
call fcn.00408750
mov byte [ebp - 4], 1
push str.C:Python27python.exe
lea ecx, [ebp - 0x14]
call fcn.00408750
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax + 0x3c8]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
push str._s__s
lea eax, [ebp - 0x18]
push eax
call fcn.0040a8f0
add esp, 0x10
push 0
push 0
push 0
lea ecx, [ebp - 0x18]
call fcn.00401aa0
push eax
lea ecx, [ebp - 0x14]
call fcn.00401aa0
push eax
call fcn.004b5dd0
add esp, 0x14
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x20], 0x28
cmp dword [ebp - 0x20], 0
jle 0x4bdad9
mov ecx, dword [ebp + 8]
call fcn.00401aa0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4bdac3
jmp 0x4bdad9
mov ecx, dword [ebp - 0x20]
sub ecx, 1
mov dword [ebp - 0x20], ecx
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4bdaa6
cmp dword [ebp - 0x20], 0
jg 0x4bdb2a
push 0
push 0x5014dc
mov ecx, dword [ebp + 8]
call fcn.00401aa0
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov dword [ebp - 0x24], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.00401070
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00401070
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00401070
mov eax, dword [ebp - 0x24]
jmp 0x4bdb51
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14]
call fcn.00401070
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00401070
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00401070
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4