joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10052c50
Capabilities:
Check internet connectivity via wininet
Create http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10059386
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x1006a2a8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x34], 0
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
call fcn.10003620
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x50]
push eax
lea ecx, [ebp - 0x2c]
push ecx
call fcn.10055410
add esp, 8
movzx edx, al
neg edx
sbb edx, edx
add edx, 1
mov byte [ebp - 0x35], dl
mov dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x2c]
call fcn.10003680
movzx eax, byte [ebp - 0x35]
test eax, eax
je 0x10052ccd
xor al, al
jmp 0x10052d33
mov ecx, dword [ebp - 0x50]
mov edx, dword [ebp + 0xc]
mov dword [ecx + 0x40], edx
push 0
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
mov ecx, dword [ebp - 0x34]
and ecx, 4
sub ecx, 4
neg ecx
sbb ecx, ecx
and ecx, 4
mov dword [ebp - 0x30], ecx
push 0
push 0
push 0
mov edx, dword [ebp - 0x30]
push edx
push str.Mozilla_4.0__compatible__MSIE_7.0__Windows_NT_5.2__.NET_CLR_1.1.4322__.NET_CLR_2.0.50727_
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ecx, dword [ebp - 0x50]
mov dword [ecx + 0x38], eax
mov edx, dword [ebp - 0x50]
cmp dword [edx + 0x38], 0
jne 0x10052d29
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x50]
mov dword [ecx + 0x4c], eax
xor al, al
jmp 0x10052d33
mov ecx, dword [ebp - 0x50]
call fcn.100522e0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100281cf
mov esp, ebp
pop ebp
ret 8

Function at 0x100530a0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0
mov ecx, dword [ebp + 8]
mov dword [ecx], 0
mov edx, dword [ebp + 8]
mov dword [edx + 8], 0x67452301
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], 0xefcdab89
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], 0x98badcfe
mov edx, dword [ebp + 8]
mov dword [edx + 0x14], 0x10325476
pop ebp
ret

Function at 0x10054cd0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x1006a2a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x118], 0
push 0x104
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0
je 0x10054d15
mov byte [ebp - 0x110], 0
lea ecx, [ebp - 0x110]
push ecx
mov ecx, dword [ebp + 8]
call fcn.10003370
mov edx, dword [ebp - 0x118]
or edx, 1
mov dword [ebp - 0x118], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100281cf
mov esp, ebp
pop ebp
ret
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCRT.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x402bf1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
pushal
call 0x402c00
pop dword [ebp - 4]
mov eax, 0xb6aaf479
sub eax, 0xb66ac879
sub dword [ebp - 4], eax
mov dword [ebp - 0x14], 0xc5312b3c
add dword [ebp - 0x14], 0x89211a0f
mov dword [ebp - 0x10], 0x120b827f
add dword [ebp - 0x10], 0x2027c9c6
mov dword [ebp - 0xc], 0x651c09c7
sub dword [ebp - 0xc], 0x18cfc599
mov dword [ebp - 8], 0x3ed38a8b
sub dword [ebp - 8], 0x3ed38a8b
lea eax, [ebp - 0x14]
push eax
mov eax, 0x5ab87344
sub eax, 0x5a7802e0
add eax, dword [ebp - 4]
call dword [eax]
mov dword [ebp - 0x14], 0x75dd7d55
add dword [ebp - 0x14], 0xfe94ec01
mov dword [ebp - 0x10], 0xb7f56f05
sub dword [ebp - 0x10], 0x76890d90
mov dword [ebp - 0xc], 0xe9f70652
add dword [ebp - 0xc], 0x7978661a
mov dword [ebp - 8], 0x452d878f
add dword [ebp - 8], 0xbad27871
lea ebx, [ebp - 0x14]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 4]
call dword [eax]
push 0x40
push 0x1000
push 0x34cfa
push 0
call eax
mov ecx, 0x407d
mov esi, eax
mov edx, 0x410000
add edx, dword [ebp - 4]
mov edi, 0x5dbf08a9
add edi, 0x6b8fca4
mov ebx, dword [edx]
xor ebx, edi
mov dword [esi], ebx
add esi, 0x8598064
sub esi, 0x8598060
add edx, 4
loop 0x402d11
add eax, 0xf4c7
xor ebx, ebx
add ebx, eax
add eax, 0xa588ad30
sub eax, 0xa588ad2b
mov ecx, 0x2d12b395
add ecx, 0xd32d4c6b
add ecx, dword [ebp - 4]
call ebx
leave
ret
Function at 0x409960
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp dword [0x5bc7b4], 0
mov esi, eax
je 0x4099a3
call fcn.00460a10
mov dword [0x5bc7b4], 0
mov ecx, dword [ebp + 0x10]
cmp dword [ecx + 0x14], 0x10
jb 0x4099ae
mov ecx, dword [ecx]
push ecx
push ecx
mov edx, esi
mov ecx, edi
call fcn.004606c0
add esp, 8
mov dword [0x5bc7b4], eax
test eax, eax
setne al
pop edi
pop esi
pop ebp
ret
Function at 0x40ca50
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5763c0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x5b6ef4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], 0
mov ebx, dword [ebp + 0xc]
mov esi, ebx
cmp dword [ebx + 0x14], 8
mov eax, dword [ebx + 0x10]
jb 0x40ca95
mov esi, dword [ebx]
lea edi, [eax + eax]
xor ecx, ecx
mov edx, 0x811c9dc5
test edi, edi
je 0x40cab4
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, edi
jb 0x40caa3
mov eax, dword [ebp - 0x14]
mov edi, dword [eax + 0x18]
mov esi, dword [eax + 4]
and edi, edx
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x18], edi
mov ecx, dword [eax + edi*8]
mov dword [ebp + 0xc], ecx
cmp ecx, esi
je 0x40cad5
mov esi, dword [eax + edi*8 + 4]
mov esi, dword [esi]
mov edx, dword [ebx + 0x10]
cmp esi, ecx
je 0x40cb64
mov esi, dword [esi + 4]
cmp dword [esi + 0x1c], 8
lea eax, [esi + 8]
jb 0x40caef
mov eax, dword [esi + 8]
cmp dword [ebx + 0x14], 8
mov edi, ebx
jb 0x40caf9
mov edi, dword [ebx]
mov ecx, dword [ebp + 0xc]
cmp edx, dword [esi + 0x18]
jne 0x40cad8
mov ecx, dword [ebx + 0x10]
mov edx, ecx
test ecx, ecx
je 0x40cb21
sub edi, eax
nop dword [eax]
mov cx, word [edi + eax]
cmp cx, word [eax]
jne 0x40cb5c
add eax, 2
sub edx, 1
jne 0x40cb10
mov edx, dword [ebp + 0x10]
push edx
mov ecx, dword [edx + 4]
mov eax, dword [edx]
mov dword [ecx], eax
mov ecx, dword [edx]
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
mov ecx, dword [ebp - 0x14]
dec dword [ecx + 8]
call fcn.00401df0
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov byte [eax + 4], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp + 0xc]
jmp 0x40cad5
mov edi, dword [ebp + 0x10]
mov dword [ebp + 0xc], edi
mov eax, dword [edi]
cmp esi, eax
je 0x40cb91
mov ecx, dword [edi + 4]
mov dword [ecx], eax
mov ecx, dword [eax + 4]
mov dword [ecx], esi
mov ecx, dword [esi + 4]
mov dword [ecx], edi
mov ecx, dword [eax + 4]
mov edx, dword [esi + 4]
mov dword [esi + 4], ecx
mov ecx, dword [edi + 4]
mov dword [eax + 4], ecx
mov dword [edi + 4], edx
mov edx, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x18]
mov eax, dword [edx + 0xc]
lea ecx, [eax + ebx*8]
mov eax, dword [ecx]
cmp eax, dword [edx + 4]
jne 0x40cbaf
mov dword [ecx], edi
mov eax, dword [edx + 0xc]
mov dword [eax + ebx*8 + 4], edi
jmp 0x40cbd2
cmp eax, esi
jne 0x40cbb7
mov dword [ecx], edi
jmp 0x40cbd2
mov eax, dword [ecx + 4]
mov eax, dword [eax]
mov dword [ecx + 4], eax
cmp eax, edi
je 0x40cbd2
mov eax, dword [edx + 0xc]
lea ecx, [eax + ebx*8]
mov eax, dword [ecx + 4]
mov eax, dword [eax + 4]
mov dword [ecx + 4], eax
mov ecx, edx
mov dword [ebp - 4], 2
call fcn.0040c5c0
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov byte [eax + 4], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4179d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 0x5989e0
push ecx
movss dword [ebp - 8], xmm2
call dword [sym.imp.msvcrt.dll_fopen]
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x417a8d
mov esi, dword [sym.imp.msvcrt.dll_fseek]
push 2
push 0
push ebx
call esi
add esp, 0xc
push ebx
call dword [sym.imp.msvcrt.dll_ftell]
add esp, 4
mov dword [ebp - 4], eax
push 0
push 0
push ebx
call esi
mov esi, dword [ebp - 4]
add esp, 0xc
lea ecx, [esi + 1]
push ecx
call dword [sym.imp.msvcrt.dll_malloc]
mov edi, eax
add esp, 4
test edi, edi
je 0x417a75
push ebx
push esi
push 1
push edi
call dword [sym.imp.msvcrt.dll_fread]
add esp, 0x10
cmp eax, esi
jne 0x417a75
push ebx
mov byte [esi + edi], 0
call dword [sym.imp.msvcrt.dll_fclose]
movss xmm2, dword [ebp - 8]
add esp, 4
mov ecx, edi
call fcn.004177d0
push edi
mov esi, eax
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
call dword [sym.imp.msvcrt.dll_fclose]
add esp, 4
test edi, edi
je 0x417a8d
push edi
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x426bd0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x28
cmp byte [ebp + 8], 0
push esi
push edi
mov esi, ecx
je 0x426c8d
mov edi, dword [esi + 0xf4]
test edi, edi
je 0x426d28
xor eax, eax
mov dword [esp + 0x14], 0
mov word [esp + 0x20], ax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x28], eax
xor eax, eax
cmp dword [esi + 0xfc], eax
mov dword [esp + 0x10], edi
sete al
mov dword [esp + 0xc], 0x13
mov dword [esp + 0x2c], 0
cmp eax, dword [esi + 0x100]
jne 0x426c4e
mov ecx, dword [edi + 0x20]
mov eax, dword [ecx + 0xfc]
mov dword [esp + 0x18], eax
mov eax, dword [ecx + 0x100]
jmp 0x426c5e
mov eax, dword [esi + 0xfc]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x100]
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x14], eax
lea ecx, [esp + 0xc]
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax + 0xf0]
mov dword [esi + 0xf4], 0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov edi, dword [esi + 0x104]
test edi, edi
je 0x426d28
xor eax, eax
mov dword [esp + 0x14], 0
mov word [esp + 0x20], ax
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x28], eax
xor eax, eax
cmp dword [esi + 0xfc], eax
mov dword [esp + 0x10], edi
sete al
mov dword [esp + 0xc], 0x22
mov dword [esp + 0x2c], 0
cmp eax, dword [esi + 0x100]
jne 0x426cf1
mov ecx, dword [edi + 0x20]
mov eax, dword [ecx + 0xfc]
mov dword [esp + 0x18], eax
mov eax, dword [ecx + 0x100]
jmp 0x426d01
mov eax, dword [esi + 0xfc]
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x100]
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0x14], eax
lea ecx, [esp + 0xc]
mov eax, dword [edi]
push ecx
mov ecx, edi
call dword [eax + 0xf0]
mov dword [esi + 0x104], 0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x42cb90
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
movss xmm0, dword [ebp + 0x18]
mov edx, dword [ebp + 0x20]
mov dword [ebp - 0x24], eax
mov ax, word [ebp + 0x14]
mov word [ebp - 0x10], ax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x10]
push esi
mov esi, ecx
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0x1c]
xor eax, eax
test ecx, ecx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], esi
sete al
movss dword [ebp - 4], xmm0
cmp eax, edx
jne 0x42cbef
mov ecx, dword [esi + 0x20]
mov eax, dword [ecx + 0xfc]
mov dword [ebp - 0x18], eax
mov eax, dword [ecx + 0x100]
mov dword [ebp - 0x14], eax
jmp 0x42cbf5
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x24]
mov eax, dword [esi]
push ecx
mov ecx, esi
call dword [eax + 0xf0]
pop esi
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x452720
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5786b0
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x5b6ef4]
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
mov esi, ecx
cmp dword [esi + 0x14], 8
mov eax, esi
mov dword [esi + 0x10], 0
jb 0x45275e
mov eax, dword [esi]
xor ecx, ecx
push ecx
mov word [eax], cx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4528b9
mov edi, dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
push 0xd
call edi
test eax, eax
je 0x452831
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov edi, eax
cmp edi, 0xffffffff
je 0x4528b3
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
test ebx, ebx
je 0x4528b3
push edi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
shr eax, 1
xor ecx, ecx
push eax
mov word [ebp - 0x28], cx
lea ecx, [ebp - 0x28]
push ebx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
call fcn.00402e60
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
cmp esi, eax
je 0x4527f0
cmp dword [ebp - 0x14], 8
mov ecx, esi
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.00402e60
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4528b3
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4528a9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4528d5
jmp 0x4528a9
push 1
call edi
test eax, eax
je 0x4528b3
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov edi, eax
cmp edi, 0xffffffff
je 0x4528b3
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
test ebx, ebx
je 0x4528b3
push edi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push eax
push ebx
lea ecx, [ebp - 0x40]
call fcn.0041e220
push 0
lea eax, [ebp - 0x40]
mov dword [ebp - 4], 1
push esi
push eax
call fcn.00401730
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov edx, dword [ebp - 0x2c]
cmp edx, 0x10
jb 0x4528b3
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4528a9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4528da
push edx
push ecx
call fcn.005342bc
add esp, 8
call dword [sym.imp.USER32.dll_CloseClipboard]
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.005357eb
mov esp, ebp
pop ebp
ret
call fcn.00560610
call fcn.00560610
int3
Function at 0x45a3e0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x578fa0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5b6ef4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov ebx, dword [ebp + 8]
mov dword [edi], 0
mov dword [edi + 4], 0
mov eax, dword [ebx + 4]
test eax, eax
je 0x45a428
lock inc dword [eax + 8]
mov eax, dword [ebx]
mov dword [edi], eax
mov eax, dword [ebx + 4]
mov dword [edi + 4], eax
mov dword [ebp - 4], 0
lea ecx, [edi + 8]
mov dword [ebp + 8], ecx
lea esi, [ecx + 0xc]
movq xmm0, qword [ebx + 8]
movq qword [ecx], xmm0
mov eax, dword [ebx + 0x10]
mov dword [ecx + 8], eax
lea ecx, [esi + 4]
mov dword [ebp + 8], esi
mov al, byte [ebx + 0x14]
mov byte [esi], al
lea eax, [ebx + 0x18]
push eax
mov dword [ebp - 0x14], ecx
call fcn.00403190
lea eax, [ebx + 0x30]
mov byte [ebp - 4], 1
lea ecx, [esi + 0x1c]
push eax
mov dword [ebp - 0x14], ecx
call fcn.00403190
mov eax, dword [ebx + 0x48]
mov dword [esi + 0x34], eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x45e2c0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x45e2cb
xor eax, eax
pop ebp
ret
push esi
mov esi, dword [ebp + 8]
not ecx
cmp esi, 8
jb 0x45e387
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x596740]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x596740]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x596740]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x596740]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x596740]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x596740]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x596740]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x596740]
sub edi, 1
jne 0x45e2e0
pop edi
test esi, esi
je 0x45e3aa
nop dword [eax + eax]
movzx eax, byte [edx]
lea edx, [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x596740]
sub esi, 1
jne 0x45e390
not ecx
mov eax, ecx
pop esi
pop ebp
ret

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

Disassembly:
push esi
push edi
mov edi, ecx
movsx eax, dl
mov esi, dword [edi]
xor eax, esi
mov ecx, dword [edi + 8]
movzx eax, al
shr esi, 8
mov eax, dword [eax*4 + 0x596740]
xor eax, esi
mov dword [edi], eax
movzx eax, al
add eax, dword [edi + 4]
imul eax, eax, 0x8088405
inc eax
mov dword [edi + 4], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x596740]
mov dword [edi + 8], ecx
pop edi
pop esi
ret

Function at 0x45eb80
Capabilities:
Read file on windows

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
mov dword [ebp - 8], ebx
mov edi, 1
cmp byte [esi], 0
je 0x45ec3b
push 0
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp - 1]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x45ec36
mov byte [esi + 8], 1
mov edi, dword [ebp - 8]
jmp 0x45ec68
mov ebx, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea eax, [ebx + 1]
cmp eax, ecx
jbe 0x45ec4c
mov edi, ecx
sub edi, ebx
mov eax, dword [esi + 0x14]
add eax, ebx
push edi
push eax
lea eax, [ebp - 1]
push eax
call sub.msvcrt.dll_memcpy
lea eax, [ebx + edi]
add esp, 0xc
mov ebx, dword [ebp - 8]
mov dword [esi + 0x1c], eax
cmp edi, 1
jne 0x45ec7c
movzx eax, byte [ebp - 1]
mov dword [ebx], eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0
je 0x45ec73
cmp byte [esi + 8], 0
je 0x45ec73
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4606c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5790a2
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x5b6ef4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], ecx
push 0x44c
call fcn.0053428c
mov ebx, eax
add esp, 4
mov dword [ebp - 0x18], ebx
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], 0
mov dword [ebx], 0
mov dword [ebx + 4], 0xffffffff
mov dword [ebx + 0x238], 0xffffffff
mov dword [ebx + 0x23c], 0
mov dword [ebx + 0x240], 0
test esi, esi
je 0x46076d
mov ecx, esi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x460740
sub ecx, edx
lea eax, [ecx + 1]
push eax
call fcn.005740dc
add esp, 4
mov dword [ebx + 0x23c], eax
sub eax, esi
nop dword [eax]
mov cl, byte [esi]
lea esi, [esi + 1]
mov byte [eax + esi - 1], cl
test cl, cl
jne 0x460760
mov dword [ebp - 4], 0xffffffff
cmp dword [ebx], 0
jne 0x46083b
cmp dword [ebx + 4], 0xffffffff
jne 0x46083b
lea edi, [ebx + 0x244]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ecx, edi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4607a0
sub ecx, edx
sar ecx, 1
movzx eax, word [ebx + ecx*2 + 0x242]
cmp eax, 0x5c
je 0x4607d7
cmp eax, 0x2f
je 0x4607d7
add edi, 0xfffffffe
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x4607c4
mov eax, dword [0x5965b8]
mov dword [edi], eax
push 0x20
call fcn.0053428c
mov ecx, dword [ebp - 0x10]
add esp, 4
mov dword [eax + 0x14], ecx
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0x18], ecx
mov ecx, eax
mov word [eax], 0x100
mov byte [eax + 0x10], 0
mov dword [eax + 0x1c], 0
mov dword [eax + 0xc], 0
call fcn.0045ef10
mov dword [ebx], eax
test eax, eax
jne 0x460837
push ecx
mov ecx, ebx
mov dword [0x5bc748], 0x200
call fcn.00460890
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
jmp 0x460840
mov eax, 0x1000000
mov dword [0x5bc748], eax
test eax, eax
je 0x460865
push ecx
mov ecx, ebx
call fcn.00460890
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 8
call fcn.0053428c
add esp, 4
mov dword [eax], 1
mov dword [eax + 4], ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46ba10
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
mov dword [0x5bb3f0], 0
push eax
push 0
push 0
push 0x46bda0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
je 0x46ba5e
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x5bb3f0]
xor eax, eax
test ecx, ecx
pop esi
sete al
mov esp, ebp
pop ebp
ret
mov ecx, 5
xor eax, eax
test ecx, ecx
mov dword [0x5bb3f0], ecx
pop esi
sete al
mov esp, ebp
pop ebp
ret