joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100018e0
Capabilities:
Copy file
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x1001e004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
cmp dword [ebp + 8], 0
jne 0x10001900
xor eax, eax
jmp 0x100019ef
cmp dword [ebp + 0xc], 0
jne 0x10001915
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x100019ef
mov dword [ebp - 8], 0
call fcn.10001560
cmp dword [0x1001e7dc], 0
je 0x1000193c
cmp dword [0x1001e7e0], 0
je 0x1000193c
cmp dword [0x1001e7e8], 0
jne 0x10001941
jmp 0x100019ce
mov dword [ebp - 0xc], 0xffffffff
push str.CopyDirectory
push 0
push 0
push 0
push 1
push 0
push 0
call dword [0x1001e7dc]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x1000196a
jmp 0x100019ce
mov eax, dword [ebp - 0xc]
push eax
push 0
lea ecx, [ebp - 8]
push ecx
push 0
push 0x100011d0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [0x1001e7e4]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 0
cmp dword [ebp - 0x10], 0
jne 0x100019a2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
push eax
call dword [0x1001e7e8]
test eax, eax
jne 0x100019b7
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
jmp 0x100019ef
push 0
lea eax, [ebp - 8]
push eax
push 0
push 0x100011d0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileExA]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10003098
mov esp, ebp
pop ebp
ret 8

Function at 0x10001a10
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x10001a33
mov eax, 1
jmp 0x10001a53
mov eax, dword [ebp - 4]
and eax, 0x10
je 0x10001a49
mov eax, dword [ebp + 8]
push eax
call fcn.100012f0
add esp, 4
jmp 0x10001a53
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x100026c0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x178
mov eax, dword [0x1001e004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov dword [ebp - 8], 0
cmp dword [ebp + 8], 0
jne 0x100026eb
mov eax, dword [ebp - 8]
jmp 0x100027a1
mov dword [ebp - 0x130], 0x128
push 0x124
push 0
lea eax, [ebp - 0x12c]
push eax
call fcn.10004590
add esp, 0xc
mov dword [ebp - 0x134], 0xffffffff
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x134], eax
cmp dword [ebp - 0x134], 0xffffffff
jne 0x10002732
mov eax, dword [ebp - 8]
jmp 0x100027a1
lea eax, [ebp - 0x130]
push eax
mov ecx, dword [ebp - 0x134]
push ecx
call sub.KERNEL32.dll_Process32First
mov dword [ebp - 0x138], eax
cmp dword [ebp - 0x138], 0
je 0x10002791
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x10c]
push ecx
call fcn.10002c90
add esp, 8
test eax, eax
jne 0x10002776
mov eax, dword [ebp - 0x128]
mov dword [ebp - 8], eax
jmp 0x10002791
lea eax, [ebp - 0x130]
push eax
mov ecx, dword [ebp - 0x134]
push ecx
call sub.KERNEL32.dll_Process32Next
mov dword [ebp - 0x138], eax
jmp 0x1000274b
mov eax, dword [ebp - 0x134]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10003098
mov esp, ebp
pop ebp
ret 4

Function at 0x100027c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
push 0x104
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x100027ea
cmp dword [ebp - 4], 0x104
jle 0x100027ee
xor eax, eax
jmp 0x100027f3
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x10002800
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x10002825
mov dword [ebp - 0x48], 1
jmp 0x1000282c
mov dword [ebp - 0x48], 0
mov eax, dword [ebp - 0x48]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x10002870
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3d0
mov eax, dword [0x1001e004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
cmp dword [ebp + 8], 0
jne 0x10002893
xor eax, eax
jmp 0x10002aaf
mov byte [ebp - 0x108], 0
push 0x103
push 0
lea eax, [ebp - 0x107]
push eax
call fcn.10004590
add esp, 0xc
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x108]
push ecx
call fcn.10001140
add esp, 8
lea eax, [ebp - 0x108]
push eax
call fcn.10001040
add esp, 4
cmp dword [0x1001e7ec], 0
jne 0x10002903
push 0x10017224
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [ebp - 0x10c], eax
push str.QueryFullProcessImageNameA
mov eax, dword [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1001e7ec], eax
mov dword [ebp - 0x234], 0x128
push 0x124
push 0
lea eax, [ebp - 0x230]
push eax
call fcn.10004590
add esp, 0xc
mov dword [ebp - 0x238], 0xffffffff
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x238], eax
cmp dword [ebp - 0x238], 0xffffffff
jne 0x1000294c
xor eax, eax
jmp 0x10002aaf
lea eax, [ebp - 0x234]
push eax
mov ecx, dword [ebp - 0x238]
push ecx
call sub.KERNEL32.dll_Process32First
mov dword [ebp - 0x23c], eax
cmp dword [ebp - 0x23c], 0
je 0x10002a9d
mov eax, dword [ebp - 0x22c]
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x240], eax
cmp dword [ebp - 0x240], 0
je 0x10002a7f
mov byte [ebp - 0x348], 0
push 0x105
push 0
lea eax, [ebp - 0x347]
push eax
call fcn.10004590
add esp, 0xc
cmp dword [0x1001e7ec], 0
jne 0x100029db
push 0x104
lea eax, [ebp - 0x348]
push eax
push 0
mov ecx, dword [ebp - 0x240]
push ecx
call sub.PSAPI.DLL_GetModuleFileNameExA
jmp 0x10002a0b
mov dword [ebp - 0x34c], 0x106
lea eax, [ebp - 0x34c]
push eax
lea ecx, [ebp - 0x348]
push ecx
push 0
mov edx, dword [ebp - 0x240]
push edx
call dword [0x1001e7ec]
test eax, eax
jne 0x10002a0b
jmp 0x10002965
lea eax, [ebp - 0x348]
push eax
call fcn.10001070
add esp, 4
lea eax, [ebp - 0x348]
mov dword [ebp - 0x350], eax
mov eax, dword [ebp - 0x350]
movsx ecx, byte [eax]
cmp ecx, 0x22
jne 0x10002a43
mov eax, dword [ebp - 0x350]
add eax, 1
mov dword [ebp - 0x350], eax
lea eax, [ebp - 0x108]
push eax
mov ecx, dword [ebp - 0x350]
push ecx
call fcn.10001710
add esp, 8
lea edx, [ebp - 0x348]
cmp eax, edx
jne 0x10002a72
mov eax, dword [ebp - 0x22c]
push eax
call fcn.10001510
add esp, 4
mov eax, dword [ebp - 0x240]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x234]
push eax
mov ecx, dword [ebp - 0x238]
push ecx
call sub.KERNEL32.dll_Process32Next
mov dword [ebp - 0x23c], eax
jmp 0x10002965
mov eax, dword [ebp - 0x238]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10003098
mov esp, ebp
pop ebp
ret 4
Function at 0x10002ad0
Capabilities:
Delete directory
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
cmp dword [ebp + 8], 0
jne 0x10002ae6
xor eax, eax
jmp 0x10002bc0
cmp dword [ebp + 0xc], 0
jne 0x10002afb
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x10002bc0
call fcn.10001560
cmp dword [0x1001e7dc], 0
je 0x10002b1b
cmp dword [0x1001e7e0], 0
je 0x10002b1b
cmp dword [0x1001e7e8], 0
jne 0x10002b20
jmp 0x10002ba9
mov dword [ebp - 4], 0xffffffff
push 0x1001729c
push 0
push 0
push 0
push 1
push 0
push 0
call dword [0x1001e7dc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x10002b49
jmp 0x10002ba9
mov eax, dword [ebp - 4]
push eax
push 3
push 0
push 0x100011d0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [0x1001e7e0]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], 0
cmp dword [ebp - 8], 0
jne 0x10002b7d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
push eax
call dword [0x1001e7e8]
test eax, eax
jne 0x10002b92
mov dword [ebp - 8], 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
jmp 0x10002bc0
push 3
push 0
push 0x100011d0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileWithProgressA]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x402d30
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov esi, ecx
call fcn.00402d10
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x402db3
mov eax, dword [ebp + 8]
test eax, eax
je 0x402db3
push ebx
call fcn.00402ce0
mov ecx, dword [ebp + 0x10]
mov ebx, eax
mov eax, ecx
xor edx, edx
div ebx
pop ebx
cmp edx, ecx
mov dword [esi + 0x1c], edx
jae 0x402d67
sub ecx, edx
jmp 0x402d6c
mov dword [esi + 0x1c], ecx
xor ecx, ecx
mov eax, dword [esi + 0x1c]
mov edx, dword [ebp + 8]
add eax, edi
push eax
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
push 4
push edx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
mov dword [esi + 0x14], eax
je 0x402d95
mov dword [esi + 0x18], edi
pop edi
xor eax, eax
pop esi
pop ebp
ret 0x10
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x402d8d
call esi
and eax, 0xffff
pop edi
or eax, 0x80070000
pop esi
pop ebp
ret 0x10
pop edi
mov eax, 0x80070057
pop esi
pop ebp
ret 0x10

Function at 0x403b00
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, dword [ebp + 8]
xor eax, eax
push esi
test ebx, ebx
mov esi, ecx
mov dword [ebp - 4], eax
je 0x403c22
push edi
push str.PATH
call dword [sym.imp.PNCRT.dll_getenv]
add esp, 4
lea ecx, [ebp - 0x14]
mov edi, eax
call fcn.004019e0
test edi, edi
je 0x403b40
push edi
lea ecx, [ebp - 0x14]
call fcn.00401c30
mov al, byte [esi + 0x2b]
add esi, 0x24
cmp al, 0xff
pop edi
je 0x403ba8
xor ecx, ecx
cmp al, 7
sete cl
mov eax, ecx
test eax, eax
je 0x403b7d
lea edx, [ebp - 0x14]
lea eax, [ebp - 0x1c]
push edx
push 0x40b170
push eax
call fcn.00401ce0
add esp, 0xc
mov ecx, esi
push eax
call fcn.00401bc0
lea ecx, [ebp - 0x1c]
call fcn.00401b10
push 0x40b170
lea ecx, [ebp - 0xc]
call fcn.00401b20
push ebx
lea ecx, [ebp - 0xc]
call fcn.00401e80
mov ax, word [ebp - 0xe]
cmp ah, 0xff
je 0x403bbf
xor ecx, ecx
cmp ah, 7
sete cl
mov eax, ecx
jmp 0x403bd0
mov al, byte [esi + 4]
test al, al
jne 0x403b7d
mov al, byte [esi + 5]
test al, al
jne 0x403b7d
mov al, byte [esi + 6]
test al, al
je 0x403b58
jmp 0x403b7d
mov ecx, dword [ebp - 0x10]
test cl, cl
jne 0x403bd4
test ch, ch
jne 0x403bd4
test al, al
je 0x403bed
jmp 0x403bd4
test eax, eax
jne 0x403bed
push 0x40b16c
lea ecx, [ebp - 0xc]
call fcn.00401e80
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0xc]
push edx
call fcn.00401ec0
mov al, byte [ebp - 5]
cmp al, 0xff
lea eax, [ebp - 0xc]
jne 0x403bfa
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.PNCRT.dll__putenv]
add esp, 4
mov esi, 0x80004005
test eax, eax
jne 0x403c10
mov esi, dword [ebp - 4]
lea ecx, [ebp - 0xc]
call fcn.00401b10
lea ecx, [ebp - 0x14]
call fcn.00401b10
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x404f60
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc
push ebx
push esi
push edi
mov ecx, 0x25
xor eax, eax
lea edi, [ebp - 0xcc]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0xcc]
or ebx, 0xffffffff
push eax
mov dword [ebp - 0xe], ebx
mov dword [ebp - 0xa], ebx
mov dword [ebp - 6], 0
mov dword [ebp - 0xcc], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov dx, word [ebp - 0xc0]
mov esi, dword [ebp - 0xbc]
mov eax, dword [ebp - 0xc8]
mov ecx, dword [ebp - 0xc4]
mov word [ebp - 0x10], dx
xor edx, edx
cmp esi, 2
mov di, ax
sete dl
mov esi, edx
mov word [ebp - 0x14], di
test esi, esi
mov word [ebp - 0x12], cx
je 0x404fdf
mov ebx, 8
jmp 0x405000
cmp ax, 4
jae 0x404fec
mov ebx, 2
jmp 0x405000
jne 0x405003
cmp cx, 0xa
sbb ebx, ebx
and ebx, 0xfffffc04
add ebx, 0x400
mov dword [ebp - 0xe], ebx
mov eax, dword [ebp + 8]
test eax, eax
je 0x4050ee
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x38]
and eax, 0xffff
cmp eax, 3
ja case.default.0x405029
jmp dword [eax*4 + 0x4050f8]
test esi, esi
je 0x405085
cmp di, 3
ja 0x405043
jne 0x405085
cmp word [ebp - 0x12], 0x32
jb 0x405085
mov eax, dword [ebp - 0x18]
and eax, 0xffff
sub eax, 4
jns 0x405059
mov dword [ebp - 0xa], 0xfffffffe
jmp 0x4050c4
test eax, eax
jne 0x405066
mov dword [ebp - 0xa], 1
jmp 0x4050c4
cmp eax, 1
jne 0x405074
mov dword [ebp - 0xa], 2
jmp 0x4050c4
sub eax, 2
neg eax
sbb eax, eax
and al, 0xfb
add eax, 4
mov dword [ebp - 0xa], eax
jmp 0x4050c4
mov eax, dword [ebp - 0x20]
sub eax, 0x182
je 0x405050
sub eax, 0x64
je 0x40505d
sub eax, 0x64
jne case.default.0x405029
mov dword [ebp - 0xa], 2
jmp 0x4050c4
mov dword [ebp - 0xa], 0x40
jmp 0x4050c4
mov dword [ebp - 0xa], 0x20
jmp 0x4050c4
mov dword [ebp - 0xa], 8
jmp 0x4050c4
mov dword [ebp - 0xa], 0xffffffff
call fcn.00405110
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov dword [ebp - 6], eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov ecx, dword [ebp - 0xc]
mov dword [eax + 4], edx
mov edx, dword [ebp - 8]
mov dword [eax + 8], ecx
mov cx, word [ebp - 4]
mov dword [eax + 0xc], edx
mov word [eax + 0x10], cx
pop edi
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x405110
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, 0x7fffffff
jne 0x405129
xor eax, eax
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp word [ebp - 0x28], 0
jne 0x405169
lea ecx, [ebp - 4]
push ecx
push 0x20019
push 0
push str.HARDWAREDESCRIPTIONSystemFloatingPointProcessor
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40515f
xor eax, eax
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x405760
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x20]
test eax, eax
je 0x405868
mov esi, dword [ebp + 8]
test esi, esi
je 0x405868
cmp byte [esi], 0
je 0x405868
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x405868
mov eax, dword [ebp + 0x10]
mov dword [ebx], 0
test eax, eax
jne 0x4057bc
mov ecx, dword [edi + 8]
push 0
lea eax, [ebp + 0x10]
push 0
push eax
push 0
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405868
mov eax, dword [ebp + 0x10]
dec eax
je 0x405828
sub eax, 3
je 0x4057fc
sub eax, 3
jne 0x405858
push 0x10
call sub.PNCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
test eax, eax
je 0x405854
mov edx, dword [edi + 8]
mov ecx, eax
push edx
push esi
call fcn.00405c80
mov dword [ebx], eax
mov ecx, dword [ebx]
xor eax, eax
pop edi
test ecx, ecx
pop esi
pop ebx
setne al
pop ebp
ret 0xc
push 0x10
call sub.PNCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
test eax, eax
je 0x405854
mov ecx, dword [edi + 8]
push ecx
push esi
mov ecx, eax
call fcn.00405b30
mov dword [ebx], eax
mov ecx, dword [ebx]
xor eax, eax
pop edi
test ecx, ecx
pop esi
pop ebx
setne al
pop ebp
ret 0xc
push 0x10
call sub.PNCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
test eax, eax
je 0x405854
mov edx, dword [edi + 8]
mov ecx, eax
push edx
push esi
call fcn.00405960
mov dword [ebx], eax
mov ecx, dword [ebx]
xor eax, eax
pop edi
test ecx, ecx
pop esi
pop ebx
setne al
pop ebp
ret 0xc
xor eax, eax
mov dword [ebx], eax
mov ecx, dword [ebx]
xor eax, eax
test ecx, ecx
pop edi
pop esi
setne al
pop ebx
pop ebp
ret 0xc
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 0xc
Function at 0x406320
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x409ee0
push 0x406550
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffff98
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
push 2
call dword [sym.imp.PNCRT.dll___set_app_type]
add esp, 4
mov dword [0x40b428], 0xffffffff
mov dword [0x40b42c], 0xffffffff
call dword [sym.imp.PNCRT.dll___p__fmode]
mov ecx, dword [0x40b420]
mov dword [eax], ecx
call dword [sym.imp.PNCRT.dll___p__commode]
mov edx, dword [0x40b41c]
mov dword [eax], edx
mov eax, dword [sym.imp.PNCRT.dll__adjust_fdiv]
mov ecx, dword [eax]
mov dword [0x40b424], ecx
call fcn.00406540
mov eax, dword [0x40b320]
test eax, eax
jne 0x4063b1
push 0x406530
call dword [sym.imp.PNCRT.dll___setusermatherr]
add esp, 4
call fcn.00406510
push 0x40b018
push 0x40b014
call sub.PNCRT.dll__initterm
add esp, 8
mov edx, dword [0x40b418]
mov dword [ebp - 0x6c], edx
lea eax, [ebp - 0x6c]
push eax
mov ecx, dword [0x40b414]
push ecx
lea edx, [ebp - 0x64]
push edx
lea eax, [ebp - 0x70]
push eax
lea ecx, [ebp - 0x60]
push ecx
call dword [sym.imp.PNCRT.dll___getmainargs]
add esp, 0x14
push 0x40b010
push section..data
call sub.PNCRT.dll__initterm
add esp, 8
mov edx, dword [sym.imp.PNCRT.dll__acmdln]
mov esi, dword [edx]
mov dword [ebp - 0x74], esi
cmp byte [esi], 0x22
jne 0x4064bf
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
test al, al
je 0x406425
cmp al, 0x22
jne 0x406417
cmp byte [esi], 0x22
jne 0x40642e
inc esi
mov dword [ebp - 0x74], esi
mov al, byte [esi]
test al, al
je 0x40643e
cmp al, 0x20
ja 0x40643e
inc esi
mov dword [ebp - 0x74], esi
jmp 0x40642e
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x40645f
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x406464
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x68], eax
push eax
call dword [sym.imp.PNCRT.dll_exit]
jmp 0x4064a4
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x40642e
inc esi
mov dword [ebp - 0x74], esi
jmp 0x4064bf
Function at 0x403594
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0xbd1008], 0x8088405
inc edx
mov dword [ebx + 0xbd1008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41c674
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41c6a5
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41c68d
add dl, dl
jne 0x41c6b0
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41c701
xor eax, eax
add dl, dl
jne 0x41c6bd
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41c79e
add dl, dl
jne 0x41c6cc
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41c6d7
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41c6e2
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41c6ed
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41c6f7
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41c69c
mov eax, 1
add dl, dl
jne 0x41c70f
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41c71a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41c706
sub eax, ebx
mov ebx, 1
jne 0x41c74d
mov ecx, 1
add dl, dl
jne 0x41c733
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41c73e
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41c72a
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41c69c
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41c764
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41c76f
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41c75b
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41c69c
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41c7bf
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41c69c
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41d33c
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
test dl, dl
je 0x41d34f
add esp, 0xfffffff0
call fcn.00403d6c
mov esi, ecx
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00403af4
mov byte [ebx + 4], 0
cmp dword [esi + 0x5c], 0
jne 0x41d375
cmp dword [esi + 0x58], 0x40
jb 0x41d55b
jmp 0x41d37b
jl 0x41d55b
lea eax, [ebx + 0xc]
mov edx, 0x40
call fcn.00406e44
push 0
push 0
push 0
push 0x40
lea edx, [ebx + 0xc]
mov eax, esi
call fcn.0041cef4
cmp word [ebx + 0xc], 0x5a4d
jne 0x41d55b
mov ecx, dword [ebx + 0x48]
test ecx, ecx
jle 0x41d55b
cmp ecx, 0x10000
jge 0x41d55b
mov eax, ecx
add eax, 4
add eax, 0x14
cdq
cmp edx, dword [esi + 0x5c]
jne 0x41d3d6
cmp eax, dword [esi + 0x58]
ja 0x41d55b
jmp 0x41d3dc
jg 0x41d55b
lea eax, [ebx + 0x4c]
mov edx, 4
call fcn.00406e44
mov eax, dword [ebx + 0x48]
cdq
push edx
push eax
push 0
push 4
lea edx, [ebx + 0x4c]
mov eax, esi
call fcn.0041cef4
cmp dword [ebx + 0x4c], 0x4550
jne 0x41d55b
lea eax, [ebx + 0x50]
mov edx, 0x14
call fcn.00406e44
mov eax, dword [ebx + 0x48]
add eax, 4
cdq
push edx
push eax
push 0
push 0x14
lea edx, [ebx + 0x50]
mov eax, esi
call fcn.0041cef4
mov ax, word [ebx + 0x50]
cmp ax, 0x8664
jne 0x41d493
mov eax, dword [ebx + 0x48]
add eax, 4
add eax, 0x14
add eax, 0xf0
cdq
cmp edx, dword [esi + 0x5c]
jne 0x41d457
cmp eax, dword [esi + 0x58]
ja 0x41d4e4
jmp 0x41d45d
jg 0x41d4e4
lea eax, [ebx + 0x144]
mov edx, 0xf0
call fcn.00406e44
mov eax, dword [ebx + 0x48]
add eax, 4
add eax, 0x14
cdq
push edx
push eax
push 0
push 0xf0
lea edx, [ebx + 0x144]
mov eax, esi
call fcn.0041cef4
mov byte [ebx + 4], 1
jmp 0x41d4e4
cmp ax, 0x14c
jne 0x41d4e4
mov eax, dword [ebx + 0x48]
add eax, 4
add eax, 0x14
add eax, 0xe0
cdq
cmp edx, dword [esi + 0x5c]
jne 0x41d4b4
cmp eax, dword [esi + 0x58]
ja 0x41d4e4
jmp 0x41d4b6
jg 0x41d4e4
lea eax, [ebx + 0x64]
mov edx, 0xe0
call fcn.00406e44
mov eax, dword [ebx + 0x48]
add eax, 4
add eax, 0x14
cdq
push edx
push eax
push 0
push 0xe0
lea edx, [ebx + 0x64]
mov eax, esi
call fcn.0041cef4
mov byte [ebx + 4], 1
cmp byte [ebx + 4], 0
je 0x41d55b
mov eax, dword [ebx + 0x48]
add eax, 4
add eax, 0x14
movzx edx, word [ebx + 0x60]
add eax, edx
mov di, word [ebx + 0x52]
movzx edx, di
shl edx, 3
lea edx, [edx + edx*4]
add eax, edx
cdq
cmp edx, dword [esi + 0x5c]
jne 0x41d515
cmp eax, dword [esi + 0x58]
ja 0x41d55b
jmp 0x41d517
jg 0x41d55b
movzx eax, di
push eax
lea eax, [ebx + 8]
mov ecx, 1
mov edx, dword [0xbbbe0c]
call fcn.00405b38
add esp, 4
mov eax, dword [ebx + 0x48]
add eax, 4
add eax, 0x14
movzx edx, word [ebx + 0x60]
add eax, edx
cdq
push edx
push eax
movzx eax, word [ebx + 0x52]
shl eax, 3
lea eax, [eax + eax*4]
xor edx, edx
push edx
push eax
mov edx, dword [ebx + 8]
mov eax, esi
call fcn.0041cef4
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x41d572
call fcn.00403dc4
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret