joyce8/EMBER2024-capa huggingface dataset:
Function at 0x997f90
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 0x997ffb
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0x998035
lea edx, [esp + 0x10]
push esi
push edx
push SysStringLen
call fcn.00997e00
add esp, 0xc
lea eax, [esp + 0x10]
inc edi
push 0x104
push eax
push edi
push SysStringLen
call ebx
test eax, eax
je 0x997fc5
mov edi, 0x9b28b0
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0x998035
mov edx, dword [edi]
push esi
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00997e00
add edi, 4
add esp, 0xc
cmp edi, 0x9b28c0
jb 0x998000
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 0x998070
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x250
push esi
push edi
mov edi, dword [esp + 0x25c]
push 0x5c
push edi
call fcn.0099e082
mov esi, eax
add esp, 8
test esi, esi
je 0x998107
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 0x998102
push ebx
lea ebx, [esi + 2]
push ebp
lea ecx, [esp + 0x3c]
push ebx
push ecx
call fcn.0099d946
add esp, 8
test eax, eax
je 0x9980e3
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea edx, [esp + 0x10]
push edx
push edi
call ebp
test eax, eax
je 0x9980e8
lea eax, [esp + 0x3c]
push ebx
push eax
call fcn.0099d946
add esp, 8
test eax, eax
jne 0x9980c5
mov word [esi], 0x5c
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp word [esi], 0
pop ebp
pop ebx
je 0x998102
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 0x998f10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x9ad9fb
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 0x999002
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.0099cdff
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x999002
lea edx, [esp + 0x14]
push edx
push str.Mounting__s_n
call fcn.009946e0
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.0099d20b
push 0x10
call fcn.0099d1d3
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0x998fc5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.009891c0
jmp 0x998fc7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.00998b80
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0x998ff0
mov ecx, edi
call fcn.009892c0
push edi
call fcn.0099d1c8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x999021
inc ebx
cmp ebx, 0x20
jb 0x998f3e
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 0x99a250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x9ae808
push 0x99e288
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 0x99a329
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 0x99a329
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.0099d1d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0x99a329
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 0x99a329
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 0x99a32c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.0099a351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x99ad20
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 0x99ad58
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 0x99ad60
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 0x99ad94
mov eax, dword [esp + 0x14]
test eax, eax
je 0x99ad94
push eax
push esi
call fcn.0099d20b
add esp, 8
pop esi
ret 0x10

Function at 0x99ada0
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 0x99ae22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0x99ae15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0x9b3320
push ecx
mov dword [esp + 0x1c], 4
call fcn.0099cdff
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 0x99adda
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 0x99ae30
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 0x99aec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0x99aeb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0x9b3320
push ecx
mov dword [esp + 0x1c], 4
call fcn.0099cdff
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 0x99aeab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0x99ae6a
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 0x99b000
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 0x99b131
push esi
call fcn.0099e145
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.0098d080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x99b131
push 0
push ebp
call fcn.0098d3a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.0098d260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0x99b08b
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.0098d2f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x99b121
push 0x9b3918
push edi
call fcn.0099c3f0
push eax
push ebx
push esi
call fcn.0099af60
push 0x9b38f8
push edi
call fcn.0099c3f0
push eax
push ebx
push esi
call fcn.0099af60
push 0x9b38d8
push edi
call fcn.0099c3f0
push eax
push ebx
push esi
call fcn.0099af60
push 0x9b38c0
push edi
call fcn.0099c3f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.0099af60
push 0x9b38a0
push edi
call fcn.0099c3f0
push eax
push ebx
push esi
call fcn.0099af60
push 0x9b3888
push edi
call fcn.0099c3f0
push eax
push ebx
push esi
call fcn.0099af60
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 0x99c1b0
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.0099c140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.0099c140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.0099c140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.0099c140
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 0x99cbfa
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 0x99cc50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x9ae87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x99cc43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x99cc52
xor eax, eax
pop esi
leave
ret 4
Function at 0x407d61
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x49e398]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00407ca0
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00408550
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x407db0
cmp dword [ebp - 0x1c], 5
jb 0x407dc8
jmp 0x407dc4
cmp dword [ebp - 0x10], 1
jne 0x407dc8
cmp dword [ebp - 0x1c], 4
ja 0x407dc4
jne 0x407dc8
cmp dword [ebp - 0x18], 0
jbe 0x407dc8
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4952fc
call fcn.00407b53
test eax, eax
jge 0x407de9
mov byte [0x4a2798], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040806d
add ebp, 0x78
leave
ret

Function at 0x40806d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x49e398]
jne 0x408077
repz ret
jmp fcn.0040ddb4
Function at 0x40f96b
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x49e558]
je 0x40f986
inc edi
cmp edi, 0x17
jb 0x40f977
cmp edi, 0x17
jae 0x40fb06
push ebp
push 3
call fcn.00415a1e
cmp eax, 1
pop ecx
je 0x40fad2
push 3
call fcn.00415a1e
test eax, eax
pop ecx
jne 0x40f9ba
cmp dword [0x49e390], 1
je 0x40fad2
cmp ebx, 0xfc
je 0x40fb05
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x49fdb0
push ebp
call fcn.0040feb5
add esp, 0xc
test eax, eax
je 0x40f9f0
push esi
push esi
push esi
push esi
push esi
call fcn.004081b5
add esp, 0x14
push 0x104
mov esi, 0x49fdc9
push esi
push 0
mov byte [0x49fecd], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40fa34
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0040feb5
add esp, 0xc
test eax, eax
je 0x40fa34
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004081b5
add esp, 0x14
push esi
call fcn.00408120
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40fa79
push esi
call fcn.00408120
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4a00c4
push 0x4962bc
sub ecx, eax
push ecx
push eax
call fcn.004149d6
add esp, 0x14
test eax, eax
je 0x40fa79
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.004081b5
add esp, 0x14
jmp 0x40fa7b
xor esi, esi
push 0x4962b8
push ebx
push ebp
call fcn.00414965
add esp, 0xc
test eax, eax
je 0x40fa9b
push esi
push esi
push esi
push esi
push esi
call fcn.004081b5
add esp, 0x14
push dword [edi*8 + 0x49e55c]
push ebx
push ebp
call fcn.00414965
add esp, 0xc
test eax, eax
je 0x40fabd
push esi
push esi
push esi
push esi
push esi
call fcn.004081b5
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00415861
add esp, 0xc
jmp 0x40fb05
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x40fb05
cmp ebp, 0xffffffff
je 0x40fb05
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x49e55c]
push dword [esi]
call fcn.00408120
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x415861
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0040f489
xor ebx, ebx
cmp dword [0x4a03ec], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x415937
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x415a17
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x415a17
push eax
call fcn.0040f41b
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4a03ec], eax
call esi
push eax
call fcn.0040f41b
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4a03f0], eax
call esi
push eax
call fcn.0040f41b
mov dword [0x4a03f4], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0040afb4
test eax, eax
pop ecx
pop ecx
je 0x415905
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004081b5
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x415937
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0040f41b
cmp eax, ebx
pop ecx
mov dword [0x4a03fc], eax
je 0x415937
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040f41b
pop ecx
mov dword [0x4a03f8], eax
mov eax, dword [0x4a03f8]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x4159bc
cmp dword [0x4a03fc], ecx
je 0x4159bc
push eax
call fcn.0040f492
push dword [0x4a03fc]
mov esi, eax
call fcn.0040f492
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x4159bc
cmp edi, ebx
je 0x4159bc
call esi
cmp eax, ebx
je 0x415989
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x415989
test byte [ebp - 0x18], 1
jne 0x4159bc
lea eax, [ebp - 0x10]
push eax
call fcn.0040afeb
test eax, eax
pop ecx
je 0x4159a4
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004081b5
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x4159b3
or dword [ebp + 0x10], 0x200000
jmp 0x4159f7
or dword [ebp + 0x10], 0x40000
jmp 0x4159f7
mov eax, dword [0x4a03f0]
cmp eax, dword [ebp - 8]
je 0x4159f7
push eax
call fcn.0040f492
cmp eax, ebx
pop ecx
je 0x4159f7
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4159f7
mov eax, dword [0x4a03f4]
cmp eax, dword [ebp - 8]
je 0x4159f7
push eax
call fcn.0040f492
cmp eax, ebx
pop ecx
je 0x4159f7
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4a03ec]
call fcn.0040f492
cmp eax, ebx
pop ecx
je 0x415a17
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x415a19
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4190b0
Capabilities:
Parse pe header
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
mov eax, dword [0x49e398]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x4c], eax
cmp dword [ebp - 0x4c], 0xffffffff
jne 0x4190ef
xor eax, eax
jmp 0x4191d7
mov word [ebp - 0x48], 0
push 0x3e
push 0
lea ecx, [ebp - 0x46]
push ecx
call fcn.00408550
add esp, 0xc
mov dword [ebp - 0x150], 0
push 0xf4
push 0
lea edx, [ebp - 0x14c]
push edx
call fcn.00408550
add esp, 0xc
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
push 0
lea eax, [ebp - 0x54]
push eax
push 0x40
lea ecx, [ebp - 0x48]
push ecx
mov edx, dword [ebp - 0x4c]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41915e
cmp dword [ebp - 0x54], 0x40
jne 0x41915e
movzx eax, word [ebp - 0x48]
cmp eax, 0x5a4d
je 0x419162
jmp 0x4191bd
push 0
push 0
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x4c]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [ebp - 0xc], eax
je 0x41917d
jmp 0x4191bd
push 0
lea eax, [ebp - 0x54]
push eax
push 0xf8
lea ecx, [ebp - 0x150]
push ecx
mov edx, dword [ebp - 0x4c]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4191b2
cmp dword [ebp - 0x54], 0xf8
jne 0x4191b2
cmp dword [ebp - 0x150], 0x4550
je 0x4191b6
jmp 0x4191bd
mov dword [ebp - 0x50], 1
cmp dword [ebp - 0x4c], 0xffffffff
je 0x4191d4
mov eax, dword [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x4c], 0
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040806d
mov esp, ebp
pop ebp
ret
Function at 0x4191f0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 8]
push eax
call fcn.00419060
add esp, 4
test eax, eax
jne 0x419227
jmp 0x4192b7
mov ecx, dword [ebp + 8]
push ecx
call fcn.004190b0
add esp, 4
test eax, eax
jne 0x419239
jmp 0x4192b7
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x419260
jmp 0x4192b7
push 0
push 0
push 0
push 2
push 0
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x41927f
jmp 0x4192b7
push 0
push 0
push 0
push 4
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x41929c
jmp 0x4192b7
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x10]
push eax
call fcn.00419000
add esp, 8
mov dword [ebp - 0xc], eax
xor ecx, ecx
jne 0x419212
cmp dword [ebp - 0x10], 0
je 0x4192ce
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [ebp - 0x10], 0
cmp dword [ebp - 4], 0
je 0x4192e5
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 0
cmp dword [ebp - 8], 0xffffffff
je 0x4192fc
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 8], 0xffffffff
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41d2a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
jne 0x41d2bb
xor eax, eax
jmp 0x41d343
mov edx, dword [ebp + 0x10]
mov dword [edx], 0
cmp dword [ebp - 4], 0x400000
jbe 0x41d2d6
mov dword [ebp - 0x14], 0x400000
jmp 0x41d2dc
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], 0
push 0
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x10]
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp - 4]
sub edx, dword [ebp - 0x10]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
add ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 0x10]
mov dword [edx], ecx
cmp dword [ebp - 8], 0
jne 0x41d333
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x41d343
cmp dword [ebp - 0x10], 0
jne 0x41d33b
jmp 0x41d341
cmp dword [ebp - 4], 0
ja 0x41d2c4
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x41d350
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
jne 0x41d36b
xor eax, eax
jmp 0x41d3f3
mov edx, dword [ebp + 0x10]
mov dword [edx], 0
cmp dword [ebp - 4], 0x400000
jbe 0x41d386
mov dword [ebp - 0x14], 0x400000
jmp 0x41d38c
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], 0
push 0
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x10]
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp - 4]
sub edx, dword [ebp - 0x10]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
add ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 0x10]
mov dword [edx], ecx
cmp dword [ebp - 8], 0
jne 0x41d3e3
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x41d3f3
cmp dword [ebp - 0x10], 0
jne 0x41d3eb
jmp 0x41d3f1
cmp dword [ebp - 4], 0
ja 0x41d374
xor eax, eax
mov esp, ebp
pop ebp
ret