joyce8/EMBER2024-capa huggingface dataset:
Function at 0x9b2f20
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ecx
push ebp
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebp, eax
test ebp, ebp
mov dword [esp + 4], ebp
je 0x9b2fd7
mov eax, dword [esp + 0xc]
push esi
push 0xf01ff
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x9b2fcf
push ebx
push edi
push 0x9d6770
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
je 0x9b2fae
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push 0x9d6770
push esi
call ebx
test eax, eax
je 0x9b2fae
mov ebp, 3
cmp dword [0x9d6774], ebp
jne 0x9b2faa
push 0x3e8
call edi
push 0x9d6770
push esi
call ebx
test eax, eax
jne 0x9b2f8f
mov ebp, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call ebx
test eax, eax
jne 0x9b2fc6
push 0x64
call edi
push esi
call ebx
test eax, eax
je 0x9b2fbb
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
pop ebp
pop ecx
ret
Function at 0x9b6e00
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x9cc8f0
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 0x9b6ed2
lea edx, [esp + 0x24]
push eax
push edx
call fcn.009b37a0
add esp, 8
mov eax, dword [esp + 0x24]
mov dword [esp + 0x1c], edi
cmp eax, edi
je 0x9b6e61
mov edx, dword [eax]
jmp 0x9b6e63
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.009b5050
mov eax, dword [esp + 0x44]
add esp, 0x20
cmp eax, edi
mov dword [esp + 0x1c], 0xffffffff
je 0x9b6ebf
mov esi, eax
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x9b6ebf
cmp esi, edi
je 0x9b6ebf
mov ecx, esi
call fcn.009aea00
push esi
call fcn.009bc1c8
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.009b3990
add esp, 0xc
mov eax, dword [esp + 0x28]
mov dword [esp + 0x1c], 1
cmp eax, edi
je 0x9b6ef5
mov eax, dword [eax]
jmp 0x9b6ef7
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.009b2640
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 0x9b6f25
mov eax, dword [eax]
jmp 0x9b6f27
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 0x9b6f76
lea ecx, [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x9b6f76
cmp esi, edi
je 0x9b6f76
mov eax, dword [esi]
cmp eax, edi
je 0x9b6f5d
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, edi
je 0x9b6f6d
push eax
call fcn.009bc1c8
add esp, 4
push esi
call fcn.009bc1c8
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 0x9b6f90
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 0x9b6ffb
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0x9b7035
lea edx, [esp + 0x10]
push esi
push edx
push SysStringLen
call fcn.009b6e00
add esp, 0xc
lea eax, [esp + 0x10]
inc edi
push 0x104
push eax
push edi
push SysStringLen
call ebx
test eax, eax
je 0x9b6fc5
mov edi, 0x9d18b0
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0x9b7035
mov edx, dword [edi]
push esi
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.009b6e00
add edi, 4
add esp, 0xc
cmp edi, 0x9d18c0
jb 0x9b7000
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 0x9b7070
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x250
push esi
push edi
mov edi, dword [esp + 0x25c]
push 0x5c
push edi
call fcn.009bd082
mov esi, eax
add esp, 8
test esi, esi
je 0x9b7107
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 0x9b7102
push ebx
lea ebx, [esi + 2]
push ebp
lea ecx, [esp + 0x3c]
push ebx
push ecx
call fcn.009bc946
add esp, 8
test eax, eax
je 0x9b70e3
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea edx, [esp + 0x10]
push edx
push edi
call ebp
test eax, eax
je 0x9b70e8
lea eax, [esp + 0x3c]
push ebx
push eax
call fcn.009bc946
add esp, 8
test eax, eax
jne 0x9b70c5
mov word [esi], 0x5c
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp word [esi], 0
pop ebp
pop ebx
je 0x9b7102
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 0x9b7f10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x9cc9fb
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 0x9b8002
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.009bbdff
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x9b8002
lea edx, [esp + 0x14]
push edx
push str.Mounting__s_n
call fcn.009b36e0
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.009bc20b
push 0x10
call fcn.009bc1d3
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0x9b7fc5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.009a81c0
jmp 0x9b7fc7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.009b7b80
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0x9b7ff0
mov ecx, edi
call fcn.009a82c0
push edi
call fcn.009bc1c8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x9b8021
inc ebx
cmp ebx, 0x20
jb 0x9b7f3e
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 0x9b9250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x9cd808
push 0x9bd288
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 0x9b9329
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 0x9b9329
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.009bc1d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0x9b9329
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 0x9b9329
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 0x9b932c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.009b9351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x9b9d20
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 0x9b9d58
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 0x9b9d60
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 0x9b9d94
mov eax, dword [esp + 0x14]
test eax, eax
je 0x9b9d94
push eax
push esi
call fcn.009bc20b
add esp, 8
pop esi
ret 0x10

Function at 0x9b9da0
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 0x9b9e22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0x9b9e15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0x9d2320
push ecx
mov dword [esp + 0x1c], 4
call fcn.009bbdff
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 0x9b9dda
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 0x9b9e30
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 0x9b9ec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0x9b9eb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0x9d2320
push ecx
mov dword [esp + 0x1c], 4
call fcn.009bbdff
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 0x9b9eab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0x9b9e6a
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 0x9ba000
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 0x9ba131
push esi
call fcn.009bd145
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.009ac080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x9ba131
push 0
push ebp
call fcn.009ac3a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.009ac260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0x9ba08b
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.009ac2f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x9ba121
push 0x9d2918
push edi
call fcn.009bb3f0
push eax
push ebx
push esi
call fcn.009b9f60
push 0x9d28f8
push edi
call fcn.009bb3f0
push eax
push ebx
push esi
call fcn.009b9f60
push 0x9d28d8
push edi
call fcn.009bb3f0
push eax
push ebx
push esi
call fcn.009b9f60
push 0x9d28c0
push edi
call fcn.009bb3f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.009b9f60
push 0x9d28a0
push edi
call fcn.009bb3f0
push eax
push ebx
push esi
call fcn.009b9f60
push 0x9d2888
push edi
call fcn.009bb3f0
push eax
push ebx
push esi
call fcn.009b9f60
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 0x9bb1b0
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.009bb140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.009bb140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.009bb140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.009bb140
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 0x9bbbfa
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 0x9bbc50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x9cd87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x9bbc43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x9bbc52
xor eax, eax
pop esi
leave
ret 4
Function at 0x43b3fe
Capabilities:
Check for vm using instruction vpcext

Disassembly:
and eax, 0x35d75f93
cmp eax, edx
cmpsd dword [esi], dword es:[edi]
mov ebp, 0x1f6a0e99
push cs
push 0x1f
adc al, 0xbd
push ss
cmp eax, dword [ebp - 0x70967ce2]
in al, dx
adc edx, ebp
lds esp, [eax]
push cs
loop 0x43b366
pop edi
dec eax
jmp 0x43b35f
jecxz 0x43b452
xor esi, dword [ebx + 0x6c]
mov al, byte [0x5e18b08f]
js 0x43b3b7
rcr byte [esi - 0x1f], cl
popal
loope 0x43b452
inc eax
pop es
sub dword [edi + 0x67df6e14], 0xffffffa6
mov ah, byte [ebx]
wait
cmp al, byte [ebx + 0x68]
inc ebx
push 0x87080e4a
shr eax, 1
sbb byte [eax + ebx*2 + 0x4ab20dee], 0x67
cld
loopne 0x43b3ef
cmp cl, bl
mov esp, 0xb6684d52
inc eax
push 0x3e271cd9
stosd dword es:[edi], eax
jb 0x43b487
sahf
push 0x2e
jne 0x43b474
mov byte [0xbd636fbe], al
adc al, 0x4a
invalid
enter 0x7672, 0x7b
pop esi
and bh, byte [ecx + 0x59]
cli
test esp, 0x66ef4225
jmp 0xfaf2d254
rcr byte [0x83664ea0], 0xc1
cmpsd dword [esi], dword es:[edi]
and dword [esp + esi*8 - 0x5c], ebx
rcr byte [ecx - 0x80], 1
and edi, dword [edx - 0x2b4ae58d]
Function at 0x56e344
Capabilities:
Accept command line arguments

Disassembly:
push edi
push ebp
mov ebp, esp
add ebp, 4
sub ebp, 4
sub esp, 4
mov dword [esp], ebp
push dword [esp + 4]
pop ebp
pop dword [esp]
pop esp
mov dword [esp], edi
mov dword [esp], edx
push ebx
mov ebx, esp
add ebx, 4
sub ebx, 4
xchg dword [esp], ebx
pop esp
mov dword [esp], ecx
mov edx, dword [esp]
push ebx
mov ebx, esp
add ebx, 4
add ebx, 4
xchg dword [esp], ebx
pop esp
mov edx, dword [esp]
push 0x661095ee
mov dword [esp], edi
push esp
mov edi, dword [esp]
add esp, 4
add edi, 4
add edi, 4
xchg dword [esp], edi
pop esp
push dword [ebp - 0x10]
push dword [esp]
mov edx, dword [esp]
add esp, 4
push eax
mov eax, esp
add eax, 4
add eax, 4
xchg dword [esp], eax
pop esp
jmp 0x4ccd80

Function at 0x5f5e0a
Capabilities:
Encode data using xor

Disassembly:
mov es, word [edx + eax*2 - 0x39243ae9]
cwde
adc ah, byte [edi - 0x457025e2]
or al, 0x54
test dword [eax], ebp
cdq
aaa
mul ebp
inc eax
xchg ebx, eax
xor ecx, ebx
dec byte [edi]
xor byte [eax - 0x33], 0xe6
aad 0xc8
mul esp
jle 0x5f5e1c
xchg ebp, eax
mov edx, ecx
int1
push cs
mov ah, 0xbb
test byte [eax - 0x5e], 0x84
push cs
sbb ch, ch
lcall 0xcdbe, 0x1cdac0a4
inc esi
jmp 0xc5cb403c

Function at 0x628421
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x6323a8
cmp edx, dword [eax]
je 0x628443
add eax, 8
inc ecx
cmp eax, 0x632438
jl 0x628434
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x6323a8]
jne 0x628571
mov eax, dword [0x636d7c]
cmp eax, 1
je 0x62854b
test eax, eax
jne 0x628474
cmp dword [0x6322d0], 1
je 0x62854b
cmp edx, 0xfc
je 0x628571
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x6284ab
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00628e00
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00629290
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x6284ee
lea eax, [ebp - 0x1a4]
push eax
call fcn.00629290
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x62dd54
push edi
call fcn.0062b160
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00628e00
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00628e10
lea eax, [ebp - 0xa0]
push 0x62dd34
push eax
call fcn.00628e10
push dword [esi + 0x6323ac]
lea eax, [ebp - 0xa0]
push eax
call fcn.00628e10
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0062b0d4
add esp, 0x2c
pop edi
jmp 0x628571
lea eax, [ebp + 8]
lea esi, [esi + 0x6323ac]
push 0
push eax
push dword [esi]
call fcn.00629290
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x40eb02
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b8788
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push ebx
push esi
push edi
mov eax, dword [0x4fc504]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x14], ebx
cmp dword [ebx + 0x38], 0
je 0x40ecbb
mov esi, 0x20000
lea ecx, [esp + 0x1c]
push esi
call fcn.0040e5b6
and dword [esp + 0x70], 0
push dword [ebx + 0x38]
push esi
push 1
push dword [esp + 0x28]
call fcn.00494388
mov ecx, dword [esp + 0x2c]
add esp, 0x10
mov edi, eax
mov edx, edi
call fcn.0040e025
mov dword [esp + 0x18], eax
test eax, eax
jne 0x40eb9f
mov esi, dword [ebx + 0x48]
cmp esi, 2
je 0x40eb86
cmp esi, 4
jne 0x40ebc0
mov ecx, dword [esp + 0x1c]
mov edx, edi
push esi
call fcn.0048d687
pop ecx
test eax, eax
je 0x40ebc0
mov dword [esp + 0x18], 4
xor cl, cl
cmp dword [ebx + 0x48], 3
sete al
movzx eax, al
push eax
push ecx
lea ecx, [esp + 0x30]
call fcn.0048d56a
mov byte [esp + 0x70], 1
jmp 0x40ec7d
cmp esi, 1
je 0x40ebca
cmp esi, 3
jne 0x40eb9f
mov cl, 1
jmp 0x40eba1
cmp dword [ebx + 0x34], 0
jne 0x40ec85
mov esi, dword [ebx + 4]
mov ecx, esi
mov eax, dword [esi]
call dword [eax]
mov bl, byte [ebx + 9]
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 4]
test bl, bl
mov ebx, dword [esp + 0x14]
jne 0x40ec85
push dword [ebx + 0x44]
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
push dword [esp + 0x20]
lea ecx, [esp + 0x30]
call fcn.0048d5c4
mov ecx, dword [ebx + 0x58]
mov edi, eax
push edi
push dword [esp + 0x34]
mov edx, dword [ecx]
push ecx
call dword [edx + 4]
mov esi, dword [ebx + 4]
mov ecx, esi
mov dword [ebx + 0x34], eax
mov edx, dword [esi]
call dword [edx]
add dword [ebx + 0x10], edi
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 4]
push 0
lea ecx, [ebx + 0x3c]
call fcn.00431059
fcomp qword [ebx + 0x50]
fnstsw ax
test ah, 0x41
jne 0x40ec65
push 0
lea ecx, [ebx + 0x3c]
call fcn.00431059
fadd qword [0x4ee168]
mov ecx, dword [ebx + 0x14]
push ebx
push 3
fstp qword [ebx + 0x50]
mov eax, dword [ecx]
call dword [eax]
push dword [ebx + 0x38]
push 0x20000
push 1
push dword [esp + 0x28]
call fcn.00494388
add esp, 0x10
mov edi, eax
test edi, edi
jne 0x40ebce
push dword [ebx + 0x38]
call fcn.004944a0
mov eax, dword [esp + 0x2c]
and dword [ebx + 0x38], 0
mov dword [ebx + 0x60], eax
pop ecx
test eax, eax
jne 0x40eca4
mov eax, dword [esp + 0x18]
mov dword [ebx + 0x60], eax
lea ecx, [esp + 0x28]
call fcn.0048d5a8
or dword [esp + 0x70], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.004028f1
mov esi, dword [ebx + 4]
mov ecx, esi
mov eax, dword [esi]
call dword [eax]
mov byte [ebx + 8], 1
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 4]
mov ecx, dword [ebx + 0x14]
push ebx
push 1
mov eax, dword [ecx]
call dword [eax]
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42f0c2
Capabilities:
Read file on windows

Disassembly:
push 0x10
mov eax, 0x4b9d06
call fcn.004b69f6
xor eax, eax
mov dword [ebp - 0x10], eax
mov esi, dword [ebp + 8]
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
xor ebx, ebx
mov dword [ebp - 4], eax
inc ebx
push 0x4d4964
mov dword [ebp - 0x10], ebx
call fcn.0042f09e
mov edi, eax
test edi, edi
je 0x42f14c
push 0x10000
lea ecx, [ebp - 0x1c]
call fcn.0040e5b6
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
sub ebx, eax
push edi
push ebx
push 1
push eax
jmp 0x42f131
push dword [ebp + 8]
mov ecx, dword [ebp - 0x1c]
add eax, ecx
push eax
push ecx
push dword [esi + 4]
mov ecx, esi
call fcn.00430148
push edi
push ebx
push 1
push dword [ebp - 0x1c]
call fcn.00494388
add esp, 0x10
test eax, eax
jne 0x42f116
push edi
call fcn.004944a0
pop ecx
lea ecx, [ebp - 0x1c]
call fcn.004028f1
mov eax, esi
call fcn.004b69c4
ret 4