joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10008c3c
Capabilities:
Enumerate processes

Disassembly:
push 0x420
mov eax, 0x101788f3
call fcn.101584ae
mov dword [ebp - 0x420], edx
mov ebx, ecx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x428], eax
and dword [ebp - 4], 0
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 0
je 0x10008e03
call sub.KERNEL32.dll_GetCurrentProcessId
mov esi, eax
lea ecx, [ebp + 8]
mov dword [ebp - 0x42c], esi
call fcn.10005f8d
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x10008e03
push ebx
push edi
mov dword [ebx], 0x128
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x10008dfc
mov dword [ebp - 0x41c], 1
cmp dword [ebp + 0x14], 0
jne 0x10008cc6
cmp esi, dword [ebx + 8]
je 0x10008dec
and dword [ebp - 0x414], 0
lea ecx, [ebp - 0x414]
push 0x101bf6b6
call fcn.100043dd
mov byte [ebp - 4], 1
push dword [ebx + 8]
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
lea ecx, [ebp - 0x418]
mov dword [ebp - 0x424], eax
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp - 0x418], 0x103
jne 0x10008d9c
lea esi, [ebx + 0x24]
push esi
call fcn.10004633
pop ecx
push eax
push esi
lea ecx, [ebp - 0x414]
call fcn.10004820
mov esi, dword [ebp - 0x424]
lea eax, [ebp - 0x410]
push 0x400
push eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExA]
test eax, eax
je 0x10008da2
cmp dword [ebp - 0x420], 0
je 0x10008d74
lea eax, [ebp - 0x410]
push eax
call fcn.10004633
pop ecx
mov ecx, dword [ebp - 0x420]
push eax
lea eax, [ebp - 0x410]
push eax
call fcn.10004820
cmp dword [ebp + 0xc], 0
je 0x10008da2
lea eax, [ebp - 0x410]
push eax
call fcn.10004633
pop ecx
push eax
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x414]
call fcn.10004820
jmp 0x10008da2
mov esi, dword [ebp - 0x424]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
lea ecx, [ebp - 0x414]
call fcn.10005f8d
push dword [ebp - 0x414]
lea ecx, [ebp + 8]
call fcn.10004544
test eax, eax
jne 0x10008dd4
mov eax, dword [ebp - 0x428]
test eax, eax
je 0x10008e21
inc dword [eax]
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x414]
lea ecx, [ecx - 0x10]
call fcn.10003b51
mov esi, dword [ebp - 0x42c]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x10008cb7
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x41c], 0
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.10003b51
mov eax, dword [ebp - 0x41c]
call fcn.1015845d
ret
push edi
call esi
mov ecx, dword [ebp - 0x414]
lea ecx, [ecx - 0x10]
call fcn.10003b51
jmp 0x10008e0a
Function at 0x10012b5a
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x10179c61
call fcn.1015847b
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x74], ebx
jne 0x10012b80
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x10012bda
lea ecx, [ebp - 0x10]
call fcn.1000442b
mov edi, dword [edi + 0x74]
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 4], ebx
mov eax, dword [edi]
mov esi, dword [eax + 0x8c]
mov ecx, esi
call dword [0x10189a44]
mov ecx, edi
call esi
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call fcn.101616ea
push eax
call fcn.100051a7
add esp, 0x14
test esi, esi
je 0x10012bcd
push esi
call fcn.101615f0
pop ecx
mov ebx, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.10003b51
mov eax, ebx
call fcn.10158449
ret 8

Function at 0x1001581d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
xor esi, esi
mov ebx, ecx
push edi
cmp dword [ebp + 8], esi
je 0x1001585c
call fcn.1002cba1
push 0xf0
push dword [ebp + 8]
mov edi, dword [eax + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x1001585c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10015864
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
push esi
mov ecx, ebx
call fcn.10031689
pop edi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x10016269
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x100162f5
cmp dword [esi + 0x20], 0
je 0x100162f5
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x100162f5
cmp dword [ebp + 8], 0
je 0x100162f5
xor edi, edi
mov ebx, edi
call fcn.1002cba1
push str.AFX_DIALOG_LAYOUT
push dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 8], eax
test eax, eax
je 0x100162d9
mov ebx, dword [ebp - 4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 8]
mov edi, eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x100162f5
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push edi
push ebx
push esi
call fcn.10036150
mov edi, eax
add esp, 0xc
test edi, edi
je 0x100162f1
mov ecx, esi
call fcn.10016007
mov eax, edi
jmp 0x100162f7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x1002a2d3
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push edi
cmp dword [ecx + 0x58], esi
je 0x1002a326
push esi
push dword [ebp + 8]
call fcn.1002a4b9
mov edi, eax
test edi, edi
je 0x1002a321
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x1002a321
mov eax, dword [ebp - 8]
jmp 0x1002a338
mov eax, dword [ebp + 0x10]
jmp 0x1002a338
push dword [ecx + 0x6c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
pop edi
pop esi
leave
ret 0xc

Function at 0x1002c0b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
mov eax, ecx
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], edi
je 0x1002c0f5
call fcn.1002cba1
push 0xf0
push dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x1002c0f2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1002c13c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov eax, dword [ebp - 4]
push ebx
xor ebx, ebx
inc ebx
test edi, edi
je 0x1002c118
mov ecx, dword [eax]
push dword [ebp + 0x10]
push edi
mov esi, dword [ecx + 0x20]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10189a44]
mov ecx, dword [ebp - 4]
call esi
mov ebx, eax
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x70]
test edi, edi
je 0x1002c139
mov edx, dword [edi]
push dword [ebp + 0x10]
mov esi, dword [edx + 0xa0]
mov ecx, esi
call dword [0x10189a44]
mov ecx, edi
call esi
mov eax, ebx
pop ebx
pop edi
pop esi
leave
ret 0xc

Function at 0x1002e9ff
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x84], ebx
test ebx, 0xffff0000
jne 0x1002ea2a
cmp dword [edi + 0x80], 0
jne 0x1002ea2a
movzx eax, bx
mov dword [edi + 0x80], eax
call fcn.1002cba1
push 5
push ebx
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ecx, edi
push eax
call fcn.1002ec98
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x1002ea57
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ebx, ecx
xor esi, esi
call fcn.1002cba1
push 5
push dword [ebp + 8]
mov edi, dword [eax + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1002ea8a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
push edi
push dword [ebp + 0xc]
mov ecx, ebx
push esi
call fcn.1002ea9d
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x10038bc8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov dword [ebp - 4], ebx
test byte [esi + 4], 1
mov edi, dword [esi + 0xc]
jne 0x10038c1e
push 5
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x10038bf7
call fcn.1002fed4
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x10038c0c
call fcn.1002fed4
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x10038c1e
call fcn.1002fed4
call fcn.1002cba1
cmp dword [eax + 0x3c], 0
je 0x10038c33
push edi
mov ecx, ebx
call fcn.100382eb
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.10038e19
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x10038c5c
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x10038c68
mov edi, ebx
mov dword [eax + 0x88], ebx
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x100461ed
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
push edi
test esi, esi
jne 0x10046206
call fcn.1002cba1
mov esi, dword [eax + 0xc]
push 0x1019047c
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x10046248
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10046248
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x10046248
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.10046251
jmp 0x1004624a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x100c8573
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.1001270d
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x100c85af
call fcn.100c8790
mov dword [esi + 0xc], 1
jmp 0x100c85b4
call fcn.100c8790
cmp dword [esi], 0
je 0x100c85ff
push edi
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov esi, dword [ebp + 0x10]
mov edi, eax
mov ecx, esi
test edi, edi
jle 0x100c85da
push edi
call fcn.10010cc0
lea ecx, [edi + 1]
push ecx
jmp 0x100c85e9
push 0xff
call fcn.100045b0
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, esi
call fcn.10009116
pop edi
jmp 0x100c8623
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x100c8623
push dword [esi]
push dword [ebp - 4]
call fcn.10037104
pop esi
leave
ret 0xc

Function at 0x100c86e7
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.100c8790
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x100c872f
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.10010cc0
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.10009116
jmp 0x100c873a
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.10037104
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x1011e08d
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
call fcn.10167d55
pop ecx
test eax, eax
jne 0x1011e0cf
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str._s_s_X.tmp
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.1000fb1c
add esp, 0x18
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1011e095
leave
ret
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
leave
ret

Function at 0x1012d8e9
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.10154d45
call fcn.1002cbf5
cmp dword [eax + 0x14], 0
jne 0x1012d904
mov ecx, esi
pop esi
jmp fcn.1012cc0d
pop esi
ret

Function at 0x101394c2
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call fcn.1000424e
call fcn.1002cbf5
cmp dword [eax + 0x14], 0
jne 0x101394dd
mov ecx, esi
pop esi
jmp fcn.10138d33
pop esi
ret

Function at 0x10171551
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.101711ce
Function at 0x401000
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
push ebx
or dword [ebp - 4], 0xffffffff
push 0x80
push 3
push ebx
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [ebp + 0xc]
cmp eax, 0xffffffff
mov dword [ebp - 0xc], eax
mov dword [ecx], 0xfffffff6
je 0x4010bc
push ebx
push ebx
push ebx
push 2
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x4010b3
push edi
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
cmp edi, ebx
je 0x4010a9
cmp dword [edi], 0x4643534d
jne 0x40109d
push esi
mov esi, dword [edi + 0x10]
add esi, edi
cmp word [edi + 0x1c], bx
mov dword [ebp - 4], ebx
mov dword [ebp + 8], ebx
jbe 0x40109c
mov eax, dword [esi]
add esi, 0x11
add dword [ebp - 4], eax
push esi
call fcn.00407130
inc dword [ebp + 8]
lea esi, [esi + eax + 1]
mov ax, word [ebp + 8]
pop ecx
cmp ax, word [edi + 0x1c]
jb 0x40107c
pop esi
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [ebp + 0xc]
mov dword [eax], ebx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop ebx
leave
ret

Function at 0x4010c2
Capabilities:
Terminate process

Disassembly:
push dword [esp + 0x10]
push dword [esp + 0x10]
push dword [esp + 0xc]
call fcn.00401141
add esp, 0xc
mov dword [0x415138], eax
test eax, eax
jne 0x4010ed
call fcn.00402221
test eax, eax
mov dword [0x415138], eax
je 0x401113
jle 0x40110c
cmp dword [0x4150ec], 0
jne 0x40110c
push 0x10
push 1
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call main
add esp, 0x10
call fcn.004049d0
jmp 0x401135
call fcn.004049d0
test eax, eax
mov dword [0x415138], eax
je 0x401135
push 0x10
push 1
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call main
add esp, 0x10
push dword [0x415138]
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4041cb
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
push ebx
push esi
push edi
push 1
and byte [ebp - 0x110], 0
pop edx
push 0x40
xor eax, eax
pop esi
lea edi, [ebp - 0x10f]
mov ecx, esi
and dword [ebp - 4], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
and dword [ebp - 0xc], 0
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
push edx
mov dword [ebp - 8], edx
push dword [0x415150]
stosb byte es:[edi], al
mov edi, str._spftw_d.pkg
lea eax, [ebp - 0x110]
push edi
push eax
call ebx
lea eax, [ebp - 0x110]
push 0
push eax
call fcn.004014b2
add esp, 0x18
test eax, eax
je 0x404339
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x110]
push eax
call entry0
cmp dword [ebp - 4], 0
pop ecx
pop ecx
jl 0x404253
add dword [ebp - 0xc], eax
inc dword [ebp - 8]
jmp 0x404259
cmp dword [ebp - 4], 0xfffffff6
je 0x40426c
push dword [ebp - 8]
lea eax, [ebp - 0x110]
push dword [0x415150]
push edi
push eax
jmp 0x404218
and byte [ebp - 0x318], 0
mov ecx, esi
xor eax, eax
lea edi, [ebp - 0x317]
rep stosd dword es:[edi], eax
and byte [ebp - 0x41c], 0
mov ecx, esi
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
lea edi, [ebp - 0x41b]
rep stosd dword es:[edi], eax
and byte [ebp - 0x214], 0
mov ecx, esi
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
lea edi, [ebp - 0x213]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov esi, 0x104
lea eax, [ebp - 0x318]
push esi
mov edi, 0x13e
push eax
push edi
push dword [0x4150d8]
call dword [sym.imp.USER32.dll_LoadStringA]
lea eax, [ebp - 0x318]
push esi
push eax
push edi
push str.Strings
call fcn.00401447
add esp, 0x10
lea eax, [ebp - 0x214]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x214]
push 4
push eax
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x318]
push eax
lea eax, [ebp - 0x41c]
push eax
call ebx
add esp, 0xc
lea eax, [ebp - 0x41c]
push 0x10
push dword [0x415178]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp dword [ebp - 4], 0xfffffff6
pop edi
pop esi
pop ebx
jne 0x404346
xor eax, eax
leave
ret
push dword [ebp - 0xc]
push dword [ebp + 8]
push dword [ebp + 0xc]
call fcn.00404359
add esp, 0xc
leave
ret
Function at 0x4016ff
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
mov ebx, esi
add ebx, 0xc8
mov edi, dword [ebp + 0xc]
mov ecx, edi
mov edx, esi
shl edx, cl
mov eax, edi
add eax, edx
cdq
idiv ebx
mov dword [ebp - 8], eax
and dword [ebp - 4], 0
jmp 0x4017bd
and dword [ebp - 0xc], 0
and dword [ebp - 0x10], 0
jmp 0x40173f
add dword [ebp - 0xc], ebx
inc dword [ebp - 0x10]
mov eax, dword [ebp - 4]
cmp dword [ebp - 0x10], eax
jl 0x401739
mov ecx, dword [ebp - 8]
cmp eax, ecx
jne 0x401758
mov eax, dword [ebp + 0xc]
or eax, esi
mov ebx, eax
sub ebx, dword [ebp - 0xc]
or ebx, ebx
je 0x4017cf
and dword [ebp - 0x14], 0
push ebx
push dword [ebp - 0xc]
push esi
call fcn.004016c5
mov dword [ebp - 0x18], eax
push ebx
push dword [ebp - 0xc]
push esi
call fcn.004016c5
mov dword [ebp - 0x1c], eax
mov edi, dword [ebp + 8]
mov edx, eax
xor edx, esi
add edx, edi
push edx
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x24], edx
mov eax, esi
mov dword [ebp - 0x20], eax
mov ecx, edx
or cl, 1
cdq
idiv ecx
mov dword [ebp - 0x28], eax
mov edx, dword [ebp - 0x24]
mov ecx, eax
add ecx, edx
mov edx, ecx
add edx, edi
push edx
call fcn.004016ab
add esp, 0x20
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0x7e8
jl 0x401760
inc dword [ebp - 4]
mov eax, dword [ebp - 8]
mov ecx, esi
inc ecx
cdq
idiv ecx
cmp dword [ebp - 4], eax
jle 0x40172f
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404a9c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00406dd0
test esi, esi
jne 0x404ad2
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00406f58
jmp 0x404af0
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004049e0
mov edi, eax
test esi, esi
je 0x404af0
cmp dword [ebx], 0
je 0x404af0
dec esi
jmp 0x404ad9
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x404b24
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x405a9c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff4
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.00405e88
mov byte [esp], al
cmp byte [esp], 0
jne 0x405c25
test edi, edi
je 0x405c25
mov byte [esp + 1], 0
test ebp, ebp
jle 0x405b5c
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
test ebp, ebp
jle 0x405b37
cmp edi, 0xffffffff
je 0x405afb
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405afb
mov byte [esp], 0
jmp 0x405c25
mov ebx, dword [esi]
cmp ebx, 1
jg 0x405b37
test ebx, ebx
jne 0x405b30
mov eax, esi
xor ecx, ecx
mov edx, 1
call fcn.00402910
test eax, eax
jne 0x405b30
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x405c25
pause
dec ebp
test ebp, ebp
jg 0x405ae0
cmp edi, 0xffffffff
je 0x405b5c
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x405b5a
mov byte [esp], 0
jmp 0x405c25
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x405aaa
lea edx, [ebx + 2]
mov eax, esi
mov ecx, ebx
call fcn.00402910
cmp ebx, eax
jne 0x405b5c
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00405c98
mov edx, eax
mov ebx, dword [0x5e48cc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x405bc3
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x405bc1
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x405bc3
xor edi, edi
cmp byte [esp], 0
je 0x405bec
mov ebx, dword [esi]
test bl, 1
jne 0x405c05
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, esi
mov ecx, ebx
call fcn.00402910
cmp ebx, eax
jne 0x405bc9
mov byte [esp + 1], 1
jmp 0x405c05
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, esi
mov ecx, ebx
call fcn.00402910
cmp ebx, eax
jne 0x405bec
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x405b76
cmp byte [esp], 0
je 0x405c25
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x406a80
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x5e4054], 0
je 0x406ae1
cmp word [0x5e4330], 0xd7b2
jne 0x406aa9
cmp dword [0x5e4338], 0
jbe 0x406aa9
mov eax, 0x5e432c
call dword [0x5e4348]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x406b0c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x5de028], 0
jne 0x406afd
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x406c8c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
cmp dword [0x5de02c], 0
je 0x406cb7
mov edx, edi
mov eax, esi
call dword [0x5de02c]
mov ebx, eax
jmp 0x406cc8
mov eax, 8
call fcn.00404714
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x5e4055], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x406c54
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateThread
mov esi, eax
test esi, esi
jne 0x406cfd
mov edx, 8
mov eax, ebx
call fcn.00404730
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc