joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45a3c0
Capabilities:
Create a process with modified i/o handles and window
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x280
mov eax, dword [0x50e018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push edi
cmp esi, ebx
jne 0x45a3ed
xor al, al
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a665a
mov esp, ebp
pop ebp
ret
push 0x103
lea eax, [ebp - 0x217]
push ebx
push eax
mov byte [ebp - 0x218], bl
call sub.MSVCR100.dll_memset
push 0x103
lea ecx, [ebp - 0x10f]
push ebx
push ecx
mov byte [ebp - 0x110], bl
call sub.MSVCR100.dll_memset
add esp, 0x18
push 0x104
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push str.cmd.exe__c_taskkill__f__im
lea edx, [ebp - 0x110]
push edx
call edi
push esi
lea eax, [ebp - 0x110]
push eax
call edi
mov dword [ebp - 0x220], 5
mov byte [ebp - 0x219], 1
sub esp, 0x1c
mov ecx, esp
mov eax, esi
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], ebx
mov dword [ebp - 0x224], esp
mov byte [ecx], bl
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x45a491
sub eax, edi
push eax
push esi
call fcn.00405360
call fcn.00459f60
add esp, 0x1c
cmp eax, ebx
je 0x45a545
lea ecx, [ebp - 0x280]
push ecx
mov dword [ebp - 0x280], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
dec dword [ebp - 0x220]
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x280]
push ecx
push ebx
push ebx
push ebx
push ebx
xor edx, edx
push ebx
mov word [ebp - 0x250], dx
push ebx
lea edx, [ebp - 0x110]
push edx
push ebx
mov dword [ebp - 0x254], 0x101
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x45a533
mov eax, dword [ebp - 0x234]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov ecx, dword [ebp - 0x230]
push ecx
call edi
push 0x1f4
mov byte [ebp - 0x219], 1
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x45a539
mov byte [ebp - 0x219], bl
cmp dword [ebp - 0x220], ebx
jg 0x45a475
cmp byte [ebp - 0x219], bl
je 0x45a592
sub esp, 0x1c
mov ecx, esp
mov eax, esi
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], ebx
mov dword [ebp - 0x224], esp
mov byte [ecx], bl
lea edi, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x45a570
sub eax, edi
push eax
push esi
call fcn.00405360
call fcn.00459f60
add esp, 0x1c
cmp eax, ebx
je 0x45a592
mov byte [ebp - 0x219], bl
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x219]
pop edi
xor ecx, ebp
pop ebx
call fcn.004a665a
mov esp, ebp
pop ebp
ret
Function at 0x45a5b0
Capabilities:
Create a process with modified i/o handles and window
Create process on windows
Enumerate processes
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4b0
mov eax, dword [0x50e018]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
push 0x103
lea eax, [ebp - 0x21b]
push 0
push eax
mov byte [ebp - 0x21c], 0
call sub.MSVCR100.dll_memset
push 0x103
lea ecx, [ebp - 0x113]
push 0
push ecx
mov byte [ebp - 0x114], 0
call sub.MSVCR100.dll_memset
add esp, 0x18
push 0x104
lea edx, [ebp - 0x21c]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov eax, dword [ebp + 8]
push eax
push str.cmd.exe__c_taskkill__f__pid
lea ecx, [ebp - 0x21c]
push ecx
push str._s_s_d
lea edx, [ebp - 0x114]
push 0x104
push edx
call dword [sym.imp.MSVCR100.dll_sprintf_s]
add esp, 0x18
push 0x4ed1f4
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x454], 5
mov byte [ebp - 0x44d], 1
cmp dword [ebp + 8], 0
je 0x45a782
push 0x228
lea ecx, [ebp - 0x448]
push 0
push ecx
mov dword [ebp - 0x44c], 0x22c
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x45a782
lea edx, [ebp - 0x44c]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x45a77f
xor bl, bl
lea esp, [esp]
mov eax, dword [ebp + 8]
cmp dword [ebp - 0x444], eax
je 0x45a6df
lea ecx, [ebp - 0x44c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x45a6c0
jmp 0x45a6e1
mov bl, 1
push esi
call edi
test bl, bl
je 0x45a782
dec dword [ebp - 0x454]
lea edx, [ebp - 0x4ac]
push edx
mov dword [ebp - 0x4ac], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
xor eax, eax
lea ecx, [ebp - 0x464]
push ecx
lea edx, [ebp - 0x4ac]
push edx
push eax
push eax
push eax
push eax
push eax
push eax
mov word [ebp - 0x47c], ax
lea eax, [ebp - 0x114]
push eax
push 0
mov dword [ebp - 0x480], 0x101
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x45a769
mov ecx, dword [ebp - 0x464]
push ecx
call edi
mov edx, dword [ebp - 0x460]
push edx
call edi
push 0x1f4
mov byte [ebp - 0x44d], 1
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x45a770
mov byte [ebp - 0x44d], 0
cmp dword [ebp - 0x454], 0
jg 0x45a662
jmp 0x45a782
push esi
call edi
mov bl, byte [ebp - 0x44d]
test bl, bl
je 0x45a7af
mov eax, dword [ebp + 8]
push eax
call fcn.00459e90
add esp, 4
test al, al
je 0x45a7af
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004a665a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
pop edi
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.004a665a
mov esp, ebp
pop ebp
ret
Function at 0x45aa60
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d2918
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x50e018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
xor eax, eax
mov esi, ecx
mov dword [ebp - 0x25c], ebx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
push 0x228
lea ecx, [ebp - 0x254]
push ebx
mov dword [ebp - 4], ebx
push ecx
mov dword [ebp - 0x258], 0x22c
call sub.MSVCR100.dll_memset
add esp, 0xc
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
jne 0x45ab06
push ebx
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
push 0x4eb6d4
mov ecx, esi
mov byte [esi], bl
call fcn.00405360
cmp dword [ebp - 0x18], 8
jb 0x45abb7
mov edx, dword [ebp - 0x2c]
push edx
jmp 0x45abae
lea eax, [ebp - 0x258]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x45ab6f
jmp 0x45ab20
mov ecx, dword [ebp + 8]
cmp dword [ebp - 0x250], ecx
je 0x45ab3f
lea edx, [ebp - 0x258]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x45ab20
jmp 0x45ab6f
lea eax, [ebp - 0x234]
lea edx, [eax + 2]
jmp 0x45ab50
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x45ab50
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00411070
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x25c], esp
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x2c]
xor edx, edx
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], ebx
push eax
mov word [ecx], dx
call fcn.00410ba0
call fcn.0045edf0
add esp, 0x1c
cmp dword [ebp - 0x18], 8
jb 0x45abb7
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a665a
mov esp, ebp
pop ebp
ret
Function at 0x45b9e0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x50e018]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x50fd34], 1
jae 0x45ba0c
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a665a
mov esp, ebp
pop ebp
ret
push esi
push 0x228
lea eax, [ebp - 0x22c]
push 0
push eax
mov dword [ebp - 0x230], 0x22c
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea ecx, [ebp - 0x230]
mov esi, eax
push ecx
push esi
mov dword [ebp - 0x234], 0
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x45ba9c
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Process32NextW]
push edi
mov edi, dword [sym.imp.MSVCR100.dll__wcsicmp]
mov ecx, 0x50fd24
call fcn.00411040
push eax
lea edx, [ebp - 0x20c]
push edx
call edi
add esp, 8
test eax, eax
je 0x45ba8e
lea eax, [ebp - 0x230]
push eax
push esi
call ebx
test eax, eax
jne 0x45ba63
jmp 0x45ba9a
mov ecx, dword [ebp - 0x228]
mov dword [ebp - 0x234], ecx
pop edi
pop ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x234]
xor ecx, ebp
pop esi
call fcn.004a665a
mov esp, ebp
pop ebp
ret
Function at 0x45c990
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x50e018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor bl, bl
push esi
mov dword [ebp - 0x130], eax
mov byte [ebp - 0x121], bl
call fcn.0045d7d0
push 0x11c
lea ecx, [ebp - 0x120]
push 0
push ecx
mov dword [ebp - 0x12c], eax
call sub.MSVCR100.dll_memset
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
add esp, 0xc
lea edx, [ebp - 0x120]
push edx
mov dword [ebp - 0x120], 0x11c
call esi
test eax, eax
jne 0x45ca0b
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x114
call esi
test eax, eax
je 0x45ca18
cmp dword [ebp - 0x11c], 6
jae 0x45cb14
push edi
push 0x288
push 0
mov dword [ebp - 0x128], 0x288
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
call edi
mov esi, eax
test esi, esi
je 0x45cb26
mov ebx, dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
lea ecx, [ebp - 0x128]
push ecx
push esi
call ebx
cmp eax, 0x6f
jne 0x45ca7e
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edx, dword [ebp - 0x128]
push edx
push 0
call esi
push eax
call edi
mov esi, eax
test esi, esi
je 0x45cafd
lea eax, [ebp - 0x128]
push eax
push esi
call ebx
test eax, eax
jne 0x45cae9
mov eax, esi
test esi, esi
je 0x45cafd
mov ecx, dword [ebp - 0x12c]
cmp dword [eax + 0x19c], ecx
je 0x45caa8
mov eax, dword [eax]
test eax, eax
jne 0x45ca92
jmp 0x45cae9
lea edx, [eax + 0x1d8]
mov eax, edx
mov byte [ebp - 0x121], 1
lea edi, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x45cac0
sub eax, edi
je 0x45cae9
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x45cad0
mov ecx, dword [ebp - 0x130]
sub eax, edi
push eax
push edx
sub ecx, 0xffffff80
call fcn.00405360
test esi, esi
je 0x45cafd
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov al, byte [ebp - 0x121]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a665a
mov esp, ebp
pop ebp
ret
pop esi
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a665a
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.004a665a
mov esp, ebp
pop ebp
ret
Function at 0x45cb60
Capabilities:
Get routing table

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [sym.imp.IPHLPAPI.DLL_GetIpForwardTable]
push 1
lea eax, [ebp - 8]
xor ebx, ebx
push eax
push ebx
mov byte [ebp - 1], 0
mov dword [ebp - 8], ebx
call edi
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.MSVCR100.dll_malloc]
add esp, 4
push 1
lea edx, [ebp - 8]
mov esi, eax
push edx
push esi
call edi
test eax, eax
jne 0x45cbed
mov dword [ebp - 0xc], ebx
cmp dword [esi], ebx
jbe 0x45cbd9
lea eax, [esi + 0x28]
cmp dword [eax - 0x24], 0
mov edi, dword [eax - 0x14]
mov ecx, dword [eax]
jne 0x45cbcb
cmp dword [eax - 0x20], 0
jne 0x45cbcb
mov byte [ebp - 1], 1
test ebx, ebx
je 0x45cbc4
cmp ebx, ecx
jbe 0x45cbcb
mov ebx, ecx
mov ecx, dword [ebp + 8]
mov dword [ecx], edi
mov ecx, dword [ebp - 0xc]
inc ecx
add eax, 0x38
mov dword [ebp - 0xc], ecx
cmp ecx, dword [esi]
jb 0x45cba7
push esi
call dword [sym.imp.MSVCR100.dll_free]
mov al, byte [ebp - 1]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45d980
Capabilities:
Create process on windows
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dc42e
mov eax, dword fs:[0]
push eax
sub esp, 0x3c0
mov eax, dword [0x50e018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x218], 0xf
mov dword [ebp - 0x21c], ebx
mov byte [ebp - 0x22c], bl
lea eax, [ebp - 0x3cc]
call fcn.004422a0
lea eax, [ebp - 0x3cc]
push eax
mov byte [ebp - 4], 2
call fcn.0045c040
lea ecx, [ebp - 0x3cc]
push ecx
call fcn.0045c990
add esp, 8
push 0xffffffffffffffff
push ebx
lea edx, [ebp - 0x394]
push edx
lea ecx, [ebp - 0x22c]
call fcn.004059c0
push 0x1ff
lea eax, [ebp - 0x20f]
push ebx
push eax
mov byte [ebp - 0x210], bl
call sub.MSVCR100.dll_memset
mov eax, dword [ebp + 8]
add esp, 0xc
cmp dword [ebp + 0x1c], 8
jae 0x45da2f
lea eax, [ebp + 8]
push 3
push eax
lea edx, [ebp - 0x2b0]
lea ecx, [ebp - 0x2ac]
push edx
mov dword [ebp - 0x2b0], ecx
call fcn.00449870
cmp dword [ebp - 0x218], 0x10
mov eax, dword [ebp - 0x22c]
jae 0x45da5f
lea eax, [ebp - 0x22c]
sub esp, 0x84
mov edi, esp
push eax
lea eax, [ebp - 0x210]
push str.netsh_interface_ip_set_dns_name__s__sourcestatic_addr_s_registerprimary
mov ecx, 0x21
lea esi, [ebp - 0x2b0]
push eax
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.MSVCR100.dll_sprintf]
mov eax, dword [ebp - 0x2b0]
lea ecx, [ebp - 0x2ac]
add esp, 0x90
cmp eax, ecx
je 0x45daa7
push eax
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
push ebx
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_WinExec]
lea esi, [ebp - 0x3cc]
call fcn.00442340
cmp dword [ebp - 0x218], 0x10
mov esi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
jb 0x45dadb
mov eax, dword [ebp - 0x22c]
push eax
call esi
add esp, 4
cmp dword [ebp + 0x1c], 8
mov dword [ebp - 0x218], 0xf
mov dword [ebp - 0x21c], ebx
mov byte [ebp - 0x22c], bl
jb 0x45db00
mov ecx, dword [ebp + 8]
push ecx
call esi
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a665a
mov esp, ebp
pop ebp
ret
Function at 0x45db20
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dc42e
mov eax, dword fs:[0]
push eax
sub esp, 0x3c0
mov eax, dword [0x50e018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x218], 0xf
mov dword [ebp - 0x21c], ebx
mov byte [ebp - 0x22c], bl
lea eax, [ebp - 0x3cc]
call fcn.004422a0
lea eax, [ebp - 0x3cc]
push eax
mov byte [ebp - 4], 2
call fcn.0045c040
lea ecx, [ebp - 0x3cc]
push ecx
call fcn.0045c990
add esp, 8
push 0xffffffffffffffff
push ebx
lea edx, [ebp - 0x394]
push edx
lea ecx, [ebp - 0x22c]
call fcn.004059c0
push 0x1ff
lea eax, [ebp - 0x20f]
push ebx
push eax
mov byte [ebp - 0x210], bl
call sub.MSVCR100.dll_memset
mov eax, dword [ebp + 8]
add esp, 0xc
cmp dword [ebp + 0x1c], 8
jae 0x45dbcf
lea eax, [ebp + 8]
push 3
push eax
lea edx, [ebp - 0x2b0]
lea ecx, [ebp - 0x2ac]
push edx
mov dword [ebp - 0x2b0], ecx
call fcn.00449870
cmp dword [ebp - 0x218], 0x10
mov eax, dword [ebp - 0x22c]
jae 0x45dbff
lea eax, [ebp - 0x22c]
sub esp, 0x84
mov edi, esp
push eax
lea eax, [ebp - 0x210]
push str.netsh_interface_ip_add_dns_name__s__addr_s
mov ecx, 0x21
lea esi, [ebp - 0x2b0]
push eax
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.MSVCR100.dll_sprintf]
mov eax, dword [ebp - 0x2b0]
lea ecx, [ebp - 0x2ac]
add esp, 0x90
cmp eax, ecx
je 0x45dc47
push eax
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
push ebx
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_WinExec]
lea esi, [ebp - 0x3cc]
call fcn.00442340
cmp dword [ebp - 0x218], 0x10
mov esi, dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
jb 0x45dc7b
mov eax, dword [ebp - 0x22c]
push eax
call esi
add esp, 4
cmp dword [ebp + 0x1c], 8
mov dword [ebp - 0x218], 0xf
mov dword [ebp - 0x21c], ebx
mov byte [ebp - 0x22c], bl
jb 0x45dca0
mov ecx, dword [ebp + 8]
push ecx
call esi
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a665a
mov esp, ebp
pop ebp
ret
Function at 0x4629e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x50e018]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
mov dword [ebp - 0x10c], 0
mov byte [ebp - 0x108], 0
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x108]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x462a46
sub eax, edx
push eax
lea edx, [ebp - 0x108]
push edx
mov ecx, esi
call fcn.00405360
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, esi
call fcn.004a665a
mov esp, ebp
pop ebp
ret
Function at 0x471180
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x471187
xor eax, eax
ret
push esi
not eax
cmp edx, 8
jb 0x47125d
mov esi, edx
shr esi, 3
push edi
lea esp, [esp]
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4e9fd0]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4e9fd0]
movzx edi, byte [ecx + 2]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4e9fd0]
movzx edi, byte [ecx + 3]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4e9fd0]
movzx edi, byte [ecx + 4]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4e9fd0]
movzx edi, byte [ecx + 5]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4e9fd0]
movzx edi, byte [ecx + 6]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4e9fd0]
movzx edi, byte [ecx + 7]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x4e9fd0]
add ecx, 8
sub edx, 8
dec esi
jne 0x4711a0
pop edi
test edx, edx
je 0x47127a
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x4e9fd0]
inc ecx
dec edx
jne 0x471261
not eax
pop esi
ret

Function at 0x471280
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov eax, dword [edx]
movsx ecx, cl
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4e9fd0]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x4e9fd0]
mov dword [edx + 8], ecx
ret

Function at 0x4712d0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov ecx, dword [esi + 8]
push ebx
mov edx, ecx
and edx, 0xfffd
or edx, 2
mov ebx, edx
xor ebx, 1
imul ebx, edx
mov edx, dword [esi]
shr ebx, 8
push edi
xor al, bl
movsx edi, al
xor edi, edx
shr edx, 8
and edi, 0xff
mov ebx, dword [edi*4 + 0x4e9fd0]
xor ebx, edx
movzx edx, bl
add edx, dword [esi + 4]
mov dword [esi], ebx
imul edx, edx, 0x8088405
inc edx
mov dword [esi + 4], edx
shr edx, 0x18
xor edx, ecx
and edx, 0xff
shr ecx, 8
xor ecx, dword [edx*4 + 0x4e9fd0]
pop edi
mov dword [esi + 8], ecx
pop ebx
ret

Function at 0x471c00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ebx
imul esi, dword [ebp + 0xc]
cmp byte [edi], 0
je 0x471c36
mov ecx, dword [ebp + 8]
mov edx, dword [edi + 4]
push 0
lea eax, [ebp + 0xc]
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x471c2c
mov byte [edi + 8], 1
mov eax, dword [ebp + 0xc]
xor edx, edx
div ebx
pop esi
pop ebp
ret
mov ecx, dword [edi + 0x1c]
mov eax, dword [edi + 0x18]
lea edx, [ecx + esi]
cmp edx, eax
jbe 0x471c47
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0x14]
add eax, ecx
mov ecx, dword [ebp + 8]
push esi
push eax
push ecx
call sub.MSVCR100.dll_memcpy
add dword [edi + 0x1c], esi
add esp, 0xc
mov eax, esi
xor edx, edx
div ebx
pop esi
pop ebp
ret
Function at 0x471eb0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp byte [esi], 0
je 0x471ef7
cmp byte [esi + 1], 0
je 0x471eff
mov eax, dword [esi + 4]
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [esi], 0
push ebx
je 0x471f12
cmp byte [esi + 1], 0
je 0x471f06
mov edx, dword [esi + 4]
push 1
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, eax
sub ebx, dword [esi + 0xc]
mov dword [ebp - 4], ebx
jmp 0x471f1a
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x1c], ecx
jmp 0x471ed1
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0
mov ebx, dword [ebp - 4]
jmp 0x471f1a
mov eax, dword [esi + 0x1c]
mov dword [ebp - 4], eax
mov ebx, eax
push edi
mov edi, 0xffff
mov dword [ebp - 8], edi
cmp ebx, edi
jae 0x471f2c
mov dword [ebp - 8], ebx
mov edi, ebx
push 0x404
call dword [sym.imp.MSVCR100.dll_malloc]
add esp, 4
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x471f4a
pop edi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 4
mov dword [ebp - 0x14], 0xffffffff
cmp edi, eax
jbe 0x47205d
jmp 0x471f69
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 4]
add eax, 0x400
mov dword [ebp - 0xc], edi
cmp eax, edi
ja 0x471f78
mov dword [ebp - 0xc], eax
mov eax, ebx
sub eax, dword [ebp - 0xc]
sub ebx, eax
mov dword [ebp - 0x1c], eax
cmp ebx, 0x404
jbe 0x471f8f
mov ebx, 0x404
cmp byte [esi], 0
je 0x471fb4
cmp byte [esi + 1], 0
je 0x47205d
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push 0
push 0
add ecx, eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x471fb7
mov dword [esi + 0x1c], eax
cmp byte [esi], 0
mov edi, ebx
je 0x471fe0
mov ecx, dword [ebp - 0x10]
mov edx, dword [esi + 4]
push 0
lea eax, [ebp - 0x18]
push eax
push ebx
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x471fdb
mov byte [esi + 8], 1
mov eax, dword [ebp - 0x18]
jmp 0x472009
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea edx, [eax + ebx]
cmp edx, ecx
jbe 0x471ff1
sub ecx, eax
mov edi, ecx
mov ecx, dword [esi + 0x14]
mov edx, dword [ebp - 0x10]
push edi
add ecx, eax
push ecx
push edx
call sub.MSVCR100.dll_memcpy
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div ebx
cmp eax, 1
jne 0x47205d
lea eax, [ebx - 3]
test eax, eax
js 0x47204b
lea esp, [esp]
mov ecx, dword [ebp - 0x10]
dec eax
cmp byte [eax + ecx], 0x50
jne 0x47203f
cmp byte [eax + ecx + 1], 0x4b
jne 0x47203f
cmp byte [eax + ecx + 2], 5
jne 0x47203f
cmp byte [eax + ecx + 3], 6
je 0x472045
test eax, eax
jns 0x472020
jmp 0x47204b
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x47205d
mov edx, dword [ebp - 8]
cmp dword [ebp - 0xc], edx
jb 0x471f60
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.MSVCR100.dll_free]
mov eax, dword [ebp - 0x14]
add esp, 4
pop edi
pop ebx
mov esp, ebp
pop ebp
ret