joyce8/EMBER2024-capa huggingface dataset:
Function at 0x99ce00
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x9b28f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov ecx, dword [esp + 0x1c]
push esi
mov esi, dword [esp + 0x24]
lea eax, [esp + 4]
push edi
xor edi, edi
push eax
push 0x20019
push edi
push esi
push ecx
mov dword [esp + 0x1c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
je 0x99ced2
lea edx, [esp + 0x24]
push eax
push edx
call fcn.009997a0
add esp, 8
mov eax, dword [esp + 0x24]
mov dword [esp + 0x1c], edi
cmp eax, edi
je 0x99ce61
mov edx, dword [eax]
jmp 0x99ce63
xor edx, edx
xor ecx, ecx
push edi
xor eax, eax
push edx
push ecx
mov ecx, dword [esp + 0x38]
push eax
lea eax, [esp + 0x1c]
mov edx, dword [ecx + 4]
push eax
push esi
push 2
push edx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
call fcn.0099b050
mov eax, dword [esp + 0x44]
add esp, 0x20
cmp eax, edi
mov dword [esp + 0x1c], 0xffffffff
je 0x99cebf
mov esi, eax
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x99cebf
cmp esi, edi
je 0x99cebf
mov ecx, esi
call fcn.00994a00
push esi
call fcn.009a21c8
add esp, 4
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
push edi
lea eax, [esp + 0x2c]
push edi
push eax
call fcn.00999990
add esp, 0xc
mov eax, dword [esp + 0x28]
mov dword [esp + 0x1c], 1
cmp eax, edi
je 0x99cef5
mov eax, dword [eax]
jmp 0x99cef7
xor eax, eax
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x2c]
push ebx
push esi
push eax
push ecx
push edx
call fcn.00998640
add esp, 0x10
mov bl, al
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x2c]
cmp eax, edi
je 0x99cf25
mov eax, dword [eax]
jmp 0x99cf27
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x20], 0xffffffff
cmp esi, edi
je 0x99cf76
lea ecx, [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x99cf76
cmp esi, edi
je 0x99cf76
mov eax, dword [esi]
cmp eax, edi
je 0x99cf5d
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, edi
je 0x99cf6d
push eax
call fcn.009a21c8
add esp, 4
push esi
call fcn.009a21c8
add esp, 4
mov ecx, dword [esp + 0x18]
mov al, bl
pop ebx
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x99cf90
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x208
lea eax, [esp]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
push ebp
push esi
push edi
xor edi, edi
push 0x104
push eax
push edi
push SysStringLen
call ebx
mov esi, dword [esp + 0x21c]
mov ebp, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x99cffb
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0x99d035
lea edx, [esp + 0x10]
push esi
push edx
push SysStringLen
call fcn.0099ce00
add esp, 0xc
lea eax, [esp + 0x10]
inc edi
push 0x104
push eax
push edi
push SysStringLen
call ebx
test eax, eax
je 0x99cfc5
mov edi, 0x9b78b0
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0x99d035
mov edx, dword [edi]
push esi
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0099ce00
add edi, 4
add esp, 0xc
cmp edi, 0x9b78c0
jb 0x99d000
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x208
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x208
ret

Function at 0x99d070
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x250
push esi
push edi
mov edi, dword [esp + 0x25c]
push 0x5c
push edi
call fcn.009a3082
mov esi, eax
add esp, 8
test esi, esi
je 0x99d107
lea eax, [esp + 8]
mov word [esi], 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x99d102
push ebx
lea ebx, [esi + 2]
push ebp
lea ecx, [esp + 0x3c]
push ebx
push ecx
call fcn.009a2946
add esp, 8
test eax, eax
je 0x99d0e3
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea edx, [esp + 0x10]
push edx
push edi
call ebp
test eax, eax
je 0x99d0e8
lea eax, [esp + 0x3c]
push ebx
push eax
call fcn.009a2946
add esp, 8
test eax, eax
jne 0x99d0c5
mov word [esi], 0x5c
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp word [esi], 0
pop ebp
pop ebx
je 0x99d102
pop edi
mov al, 1
pop esi
add esp, 0x250
ret
mov word [esi], 0x5c
pop edi
xor al, al
pop esi
add esp, 0x250
ret
Function at 0x99df10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x9b29fb
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 0x99e002
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.009a1dff
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x99e002
lea edx, [esp + 0x14]
push edx
push str.Mounting__s_n
call fcn.009996e0
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.009a220b
push 0x10
call fcn.009a21d3
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0x99dfc5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.0098e1c0
jmp 0x99dfc7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.0099db80
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0x99dff0
mov ecx, edi
call fcn.0098e2c0
push edi
call fcn.009a21c8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x99e021
inc ebx
cmp ebx, 0x20
jb 0x99df3e
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 0x99f250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x9b3808
push 0x9a3288
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 0x99f329
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 0x99f329
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.009a21d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0x99f329
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 0x99f329
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 0x99f32c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.0099f351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x99fd20
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 0x99fd58
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 0x99fd60
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 0x99fd94
mov eax, dword [esp + 0x14]
test eax, eax
je 0x99fd94
push eax
push esi
call fcn.009a220b
add esp, 8
pop esi
ret 0x10

Function at 0x99fda0
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 0x99fe22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0x99fe15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0x9b8320
push ecx
mov dword [esp + 0x1c], 4
call fcn.009a1dff
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 0x99fdda
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 0x99fe30
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 0x99fec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0x99feb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0x9b8320
push ecx
mov dword [esp + 0x1c], 4
call fcn.009a1dff
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 0x99feab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0x99fe6a
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 0x9a0000
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 0x9a0131
push esi
call fcn.009a3145
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.00992080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x9a0131
push 0
push ebp
call fcn.009923a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00992260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0x9a008b
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.009922f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x9a0121
push 0x9b8918
push edi
call fcn.009a13f0
push eax
push ebx
push esi
call fcn.0099ff60
push 0x9b88f8
push edi
call fcn.009a13f0
push eax
push ebx
push esi
call fcn.0099ff60
push 0x9b88d8
push edi
call fcn.009a13f0
push eax
push ebx
push esi
call fcn.0099ff60
push 0x9b88c0
push edi
call fcn.009a13f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.0099ff60
push 0x9b88a0
push edi
call fcn.009a13f0
push eax
push ebx
push esi
call fcn.0099ff60
push 0x9b8888
push edi
call fcn.009a13f0
push eax
push ebx
push esi
call fcn.0099ff60
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 0x9a11b0
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.009a1140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.009a1140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.009a1140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.009a1140
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 0x9a1bfa
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 0x9a1c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x9b387c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x9a1c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x9a1c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x4073e5
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
mov ecx, esi
call fcn.0040c1c4
push 0x4405a8
push dword [ebp + 8]
lea eax, [ebp - 4]
push eax
call fcn.0041bb07
add esp, 0xc
test eax, eax
je 0x40742d
cmp dword [ebp - 4], 0
je 0x40741b
push dword [ebp - 4]
call fcn.0041b666
pop ecx
push str._n_BIN_file_not_found._n
call fcn.00401036
pop ecx
xor al, al
jmp 0x4074c7
imul eax, dword [esi + 0xa0018], 0x4c
push ebx
xor ebx, ebx
push edi
mov edi, ebx
movzx eax, byte [eax + esi + 0x298]
mov dword [ebp + 8], eax
mov byte [ebp + 0xf], bl
jmp 0x40749c
imul eax, dword [esi + 0xa0014], 0x120
cmp ebx, dword [eax + esi + 0xc00]
jge 0x4074b4
movzx ecx, byte [ebp + 0xf]
or ecx, 0xffffff00
test edi, edi
jle 0x40747b
mov eax, edi
shl ecx, 8
or ecx, 0xff
sub eax, 1
jne 0x40746d
mov eax, dword [esi + 0x8fb5c]
mov eax, dword [eax]
and dword [eax + ebx*4], ecx
lea ecx, [edi + 1]
cmp ecx, dword [ebp + 8]
lea eax, [ebx + 1]
cmovl eax, ebx
xor edi, edi
cmp ecx, dword [ebp + 8]
mov ebx, eax
cmovl edi, ecx
push dword [ebp - 4]
lea eax, [ebp + 0xf]
push 1
push 1
push eax
call fcn.0041bee7
add esp, 0x10
cmp eax, 1
je 0x40744a
cmp dword [ebp - 4], 0
pop edi
pop ebx
je 0x4074c5
push dword [ebp - 4]
call fcn.0041b666
pop ecx
mov al, 1
pop esi
leave
ret 8

Function at 0x4080ef
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push 0x440668
push dword [ebp + 8]
lea eax, [ebp + 8]
mov byte [ebp - 1], 0
push eax
call fcn.0041bb07
add esp, 0xc
test eax, eax
je 0x408131
cmp dword [ebp + 8], 0
je 0x40811f
push dword [ebp + 8]
call fcn.0041b666
pop ecx
push str._nError_Opening_save_file._n
call fcn.00401036
pop ecx
xor al, al
jmp 0x4081cb
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
imul eax, dword [esi + 0xa0018], 0x4c
movzx ecx, byte [eax + esi + 0x298]
imul eax, dword [esi + 0xa0014], 0x120
mov dword [ebp - 8], ecx
cmp dword [eax + esi + 0xc00], edi
jle 0x4081b7
xor ebx, ebx
test ecx, ecx
je 0x4081a3
xor ecx, ecx
mov dword [ebp + 0xc], ecx
mov eax, dword [esi + 0x8fb5c]
push dword [ebp + 8]
push 1
mov eax, dword [eax]
push 1
mov eax, dword [eax + edi*4]
shr eax, cl
mov byte [ebp - 1], al
lea eax, [ebp - 1]
push eax
call fcn.0041b9ee
add esp, 0x10
cmp eax, 1
jne 0x4081cf
mov ecx, dword [ebp + 0xc]
inc ebx
add ecx, 8
mov dword [ebp + 0xc], ecx
cmp ebx, dword [ebp - 8]
jl 0x408169
mov ecx, dword [ebp - 8]
imul eax, dword [esi + 0xa0014], 0x120
inc edi
cmp edi, dword [eax + esi + 0xc00]
jl 0x40815e
cmp dword [ebp + 8], 0
je 0x4081c6
push dword [ebp + 8]
call fcn.0041b666
pop ecx
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 8
push str._nError_writing_to_save_file._n
call fcn.00401036
cmp dword [ebp + 8], 0
pop ecx
je 0x4081e9
push dword [ebp + 8]
call fcn.0041b666
pop ecx
xor al, al
jmp 0x4081c8
Function at 0x409ce7
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
push 1
imul eax, dword [edi + 0xa0014], 0x120
movzx esi, word [eax + edi + 0xcf0]
mov eax, dword [eax + edi + 0xc00]
cdq
idiv esi
xor esi, esi
push esi
mov ebx, eax
call fcn.0040bed7
imul ecx, dword [edi + 0xa0014], 0x120
cmp word [ecx + edi + 0xc96], si
je 0x409d3b
push esi
mov ecx, edi
call fcn.0040be14
push 1
push 6
mov ecx, edi
call fcn.0040bed7
mov eax, ebx
mov ecx, edi
cdq
and edx, 0xff
add eax, edx
sar eax, 8
push eax
push str.Row_Erase
call fcn.0040bc56
xor eax, eax
lea esi, [ebx - 0x100]
cmp ebx, 0x100
mov ecx, edi
cmovl esi, eax
cmp ebx, 0x100
cmovl eax, ebx
push eax
push 0x1a
call fcn.0040bed7
mov ecx, edi
call fcn.0040bce1
mov ebx, esi
test esi, esi
jg 0x409d56
xor esi, esi
mov ecx, edi
inc esi
push esi
push esi
call fcn.0040bed7
imul eax, dword [edi + 0xa0014], 0x120
xor ebx, ebx
cmp word [eax + edi + 0xcd6], bx
jbe 0x409e43
movzx ecx, word [eax + edi + 0xcd8]
xor edx, edx
movzx eax, word [eax + edi + 0xc04]
div ecx
push esi
push 0
mov ecx, edi
mov ebx, eax
call fcn.0040bed7
imul edx, dword [edi + 0xa0014], 0x120
xor eax, eax
cmp word [edx + edi + 0xc88], ax
je 0x409e0e
imul eax, dword [edi + 0xa0018], 0x4c
movzx ecx, byte [eax + edi + 0x294]
mov eax, dword [edx + edi + 0xc08]
cdq
idiv ecx
mov ecx, edi
push eax
call fcn.0040be14
push esi
push 8
mov ecx, edi
call fcn.0040bed7
xor eax, eax
lea esi, [ebx - 0x100]
mov ecx, 0x100
cmp ebx, ecx
cmovl esi, eax
cmp ebx, ecx
mov ecx, edi
cmovl eax, ebx
push eax
push 0x1c
call fcn.0040bed7
mov ebx, esi
test esi, esi
jg 0x409e0e
xor esi, esi
mov ecx, edi
inc esi
push esi
push esi
call fcn.0040bed7
xor ebx, ebx
imul eax, dword [edi + 0xa0014], 0x120
cmp word [eax + edi + 0xccc], bx
jbe 0x409eb3
push esi
push ebx
mov ecx, edi
call fcn.0040bed7
mov eax, dword [edi + 0xa0014]
imul ecx, eax, 0x120
cmp word [ecx + edi + 0xc96], bx
je 0x409e94
push dword [ecx + edi + 0xc18]
mov ecx, edi
call fcn.0040be14
push esi
push 6
mov ecx, edi
call fcn.0040bed7
mov eax, dword [edi + 0xa0014]
imul eax, eax, 0x120
mov ecx, edi
movzx eax, word [eax + edi + 0xccc]
push eax
call fcn.0040a35f
push esi
push esi
mov ecx, edi
call fcn.0040bed7
mov ecx, edi
pop edi
pop esi
pop ebx
jmp fcn.0040bdc7
Function at 0x40cf37
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
xor ebx, ebx
lea eax, [ebp - 1]
inc ebx
push ebx
push ebx
push eax
call fcn.0041bee7
movzx esi, byte [ebp - 1]
add esp, 0x10
and esi, 0x7f
cmp byte [ebp - 1], 0x7f
jbe 0x40cf79
push dword [ebp + 8]
lea eax, [ebp - 1]
push ebx
push ebx
push eax
call fcn.0041bee7
movzx eax, byte [ebp - 1]
add esp, 0x10
shl eax, 7
add esi, eax
mov ebx, dword [ebp + 0xc]
xor edi, edi
test esi, esi
je 0x40cfa0
push dword [ebp + 8]
lea eax, [ebp - 1]
push 1
push 1
push eax
call fcn.0041bee7
mov al, byte [ebp - 1]
add esp, 0x10
mov byte [edi + ebx], al
inc edi
cmp edi, esi
jl 0x40cf82
mov byte [edi + ebx], 0
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x40f9da
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
imul eax, dword [ecx + 0xa0018], 0x4c
mov edx, dword [ebp + 0xc]
push esi
mov esi, 0xffff
movzx ecx, byte [eax + ecx + 0x28c]
mov eax, dword [ebp + 0x10]
add eax, edx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
cmp edx, eax
jae 0x40fa59
push ebx
push edi
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx + edx*4]
test ecx, ecx
je 0x40fa4f
mov dword [ebp + 0x10], ecx
movzx edi, bl
push 8
shl edi, 8
shr ebx, 8
pop edx
mov ecx, edi
lea eax, [esi + esi]
xor ecx, esi
add edi, edi
mov esi, eax
xor esi, 0x11021
and ecx, 0x8000
cmove esi, eax
sub edx, 1
jne 0x40fa21
sub dword [ebp + 0x10], 1
jne 0x40fa15
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 8]
inc edx
mov dword [ebp + 0xc], edx
cmp edx, eax
jb 0x40fa08
pop edi
pop ebx
movzx eax, si
pop esi
leave
ret 0xc

Function at 0x412343
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
cmp byte [0x443481], 0
je 0x4123fa
push ebx
push esi
push edi
push 0x4434cc
push 0x4434b4
push 0x41
pop ebx
push ebx
push 0x443440
push dword [0x4434c8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0x3e8
push dword [0x4434c4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4123b6
push dword [0x4434c8]
call dword [sym.imp.KERNEL32.dll_CancelIo]
push dword [0x4434c8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [0x4434bc]
call esi
mov byte [0x443481], 0
push dword [0x4434c4]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov edi, dword [ebp + 8]
lea eax, [edi + 0x40]
cmp edi, 0x443481
ja 0x4123e8
mov ecx, 0x443441
cmp eax, ecx
jb 0x4123e8
sub ecx, edi
mov al, byte [ecx + edi]
mov byte [edi], al
inc edi
sub ebx, 1
jne 0x4123db
jmp 0x4123f3
push 0x10
pop ecx
mov esi, 0x443441
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
pop edi
pop esi
mov al, 1
pop ebx
jmp 0x4123fc
xor al, al
pop ebp
ret 4
Function at 0x412400
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x442008]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x4c], 0
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov byte [ebp - 0x48], 0
push edi
mov edi, ecx
test esi, esi
je 0x412434
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x47]
push eax
call fcn.00413c20
add esp, 0xc
inc esi
cmp esi, 0x41
jae 0x412450
push 0x41
pop eax
sub eax, esi
push eax
lea eax, [ebp - 0x48]
add eax, esi
push 0x5a
push eax
call fcn.004133c0
add esp, 0xc
cmp byte [0x443481], 0
je 0x412502
push 0x44348c
lea eax, [ebp - 0x4c]
push eax
push 0x41
lea eax, [ebp - 0x48]
push eax
push dword [0x4434bc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x3e8
push dword [0x4434c0]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, eax
test ebx, ebx
je 0x4124cb
cmp ebx, 0x102
jne 0x4124d1
push dword [0x4434bc]
call dword [sym.imp.KERNEL32.dll_CancelIo]
push dword [0x4434c8]
mov ebx, eax
call esi
push dword [0x4434bc]
call esi
mov byte [0x443481], 0
mov dword [edi + 0x24], 2
jmp 0x4124d1
xor ebx, ebx
inc ebx
mov dword [edi + 0x24], ebx
push dword [0x4434c0]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
test ebx, ebx
jne 0x412504
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [0x4434bc]
mov ebx, eax
call esi
push dword [0x4434c8]
call esi
mov byte [0x443481], 0
jmp 0x412504
xor ebx, ebx
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041254c
leave
ret 8

Function at 0x423953
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004237d2

Function at 0x424a02
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004246c2