joyce8/EMBER2024-capa huggingface dataset:
Function at 0x431de0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x4d0008]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
lea edi, [eax + eax*4]
mov dword [ebp - 0x124], edx
shl edi, 4
add edi, edx
mov eax, dword [edi + 0x5c]
test eax, 0x10000000
je 0x431e32
push 0x20
lea eax, [edi + 0x80]
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.00477d10
add esp, 0xc
mov byte [ebp - 0xf5], 0
jmp 0x431e45
push 1
mov edx, ecx
lea ecx, [ebp - 0x114]
push eax
call fcn.00464370
add esp, 8
call fcn.00463d00
test al, 0x30
jne 0x431f23
lea eax, [ebp - 0x114]
dec eax
nop dword [eax]
mov cl, byte [eax + 1]
lea eax, [eax + 1]
test cl, cl
jne 0x431e60
mov ecx, dword [str..tga]
mov dword [eax], ecx
mov cl, byte [0x4be870]
mov byte [eax + 4], cl
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.PAL.dll_PalFileCreate]
mov ebx, eax
add esp, 8
cmp ebx, 0xffffffff
jne 0x431eac
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0046d15f
mov esp, ebp
pop ebp
ret
push 0
call dword [sym.imp.PAL.dll_GetMemoryPool]
add esp, 4
mov esi, eax
lea eax, [ebp - 0x128]
push 0
push eax
push dword [ebp - 0x118]
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
push esi
lea ecx, [ebp - 0x138]
call fcn.0046abd0
push dword [edi + 0x6c]
lea eax, [ebp - 0x138]
push dword [edi + 0x68]
push eax
push dword [edi + 0x74]
mov eax, dword [ebp - 0x124]
push dword [edi + 0x70]
push dword [edi + 0x64]
mov eax, dword [eax]
push dword [edi + 0x60]
push dword [eax]
call dword [sym.imp.PAL.dll_PalSpriteMaskAlpha]
mov eax, dword [ebp - 0x130]
add esp, 0x20
test eax, eax
je 0x431f23
push eax
call fcn.0047c67b
add esp, 4
mov ecx, dword [ebp - 8]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046d15f
mov esp, ebp
pop ebp
ret

Function at 0x445480
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0
mov ebx, ecx
call dword [sym.imp.PAL.dll_PalTaskGetTaskData]
add esp, 4
mov edi, eax
push 0
push 0x80
push 3
push 0
push 1
push connect
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4454d2
push ebx
push str.load_error___s_
push 0
push 0
call dword [sym.imp.PAL.dll_PalDebugPrintf]
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
mov ebx, eax
lea eax, [ebp - 4]
push eax
push ebx
push dword [edi + 0x25a8]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
test eax, eax
jne 0x445505
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x25b0], ebx
mov eax, 1
mov dword [edi + 0x25ac], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x445530
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0
mov edi, ecx
call dword [sym.imp.PAL.dll_PalTaskGetTaskData]
push dword [eax + 0x2578]
mov ecx, dword [eax + 0x25a8]
push dword [eax + 0x2574]
lea esi, [eax + 0x338]
add ecx, 0x1024
push ecx
call fcn.004772c0
push 0x1000
lea eax, [esi + 0x2288]
push eax
mov eax, dword [esi + 0x2270]
add eax, 8
push eax
call fcn.004772c0
add esp, 0x1c
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4455bf
push edi
push str.save_error___s_
push 0
push 0
call dword [sym.imp.PAL.dll_PalDebugPrintf]
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 4]
push eax
push dword [esi + 0x2274]
push dword [esi + 0x2270]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
cmp eax, dword [esi + 0x2274]
je 0x44560d
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x40030
push 0x4d3080
push 0x4bf8f0
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x459ae0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x4d0008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
mov esi, edx
mov edi, ecx
call dword [sym.imp.PAL.dll_PalTaskGetTaskData]
add esp, 4
cmp dword [eax + 0x330], 0
je 0x459b6f
sub esi, 0
je 0x459b7f
sub esi, 1
jne 0x459b6f
push ebx
push edi
lea eax, [ebp - 0x24]
push str._s.mix
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.PAL.dll_PalFileCreate]
mov ebx, eax
add esp, 0x14
cmp ebx, 0xffffffff
je 0x459b6e
xor edi, edi
nop
push 0
lea eax, [ebp - 0x34]
push eax
push 0x20
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0x34], 0x20
jne 0x459b67
add esi, 0x20
cmp esi, dword [ebp - 0x28]
jae 0x459b67
inc edi
cmp edi, 8
jl 0x459b40
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046d15f
mov esp, ebp
pop ebp
ret
push edi
push str.voice_file_read_:__s
push 0
push 0
call dword [sym.imp.PAL.dll_PalDebugPrintf]
mov ecx, dword [ebp - 4]
add esp, 0x10
xor ecx, ebp
pop edi
pop esi
call fcn.0046d15f
mov esp, ebp
pop ebp
ret
Function at 0x460500
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
push edi
push 0xa
push ecx
push esi
mov dword [ebp - 4], edx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x46057e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 8], eax
test eax, eax
je 0x46057e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
cmp eax, 0x104
ja 0x46057e
push 0x104
push 0
push dword [ebp - 4]
call fcn.0046f210
add esp, 0xc
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.004772c0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4636c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4d0008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, 0x4d2e70
xor edx, edx
push esi
mov ecx, eax
push edi
mov edi, dword [ebp + 8]
cmp ecx, fcn.004636c0
je 0x4636fb
cmp dword [eax], 0x2f2a2a2f
je 0x4636f8
dec eax
cmp eax, fcn.004636c0
jne 0x4636e6
jmp 0x4636fb
lea edx, [eax + 4]
mov ecx, dword [edx]
movq xmm0, qword [edx + 4]
xor ecx, 0xfefefdfc
mov eax, dword [edx + 0xc]
mov esi, ecx
shr esi, 0x10
mov word [ebp - 0x18], si
movq qword [ebp - 0x10], xmm0
mov dword [ebp - 8], eax
cmp si, cx
je 0x463733
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046d15f
mov esp, ebp
pop ebp
ret
mov al, byte [ebp - 0x18]
xor edx, edx
mov byte [ebp - 0x11], al
shr esi, 8
push ebx
mov ebx, 0xc
mov eax, esi
div ebx
lea eax, [esi + 1]
movzx ecx, byte [ebp + edx - 0x10]
xor edx, edx
div ebx
shl ecx, 8
movzx eax, byte [ebp + edx - 0x10]
xor edx, edx
or ecx, eax
lea eax, [esi + 2]
div ebx
shl ecx, 8
movzx eax, byte [ebp + edx - 0x10]
xor edx, edx
or ecx, eax
lea eax, [esi + 3]
div ebx
shl ecx, 8
movzx eax, byte [ebp + edx - 0x10]
or ecx, eax
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0x18]
mov ebx, 0x19810419
mov cl, byte [ebp - 0x11]
rol eax, cl
mov ecx, 4
xor al, bl
ror eax, 8
ror ebx, 8
loop 0x463795
mov bl, al
rol eax, 8
mov bh, al
mov al, bl
ror eax, 8
mov al, bh
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 4]
pop ebx
mov dword [edi], eax
xor ecx, ebp
pop edi
mov eax, 1
pop esi
call fcn.0046d15f
mov esp, ebp
pop ebp
ret

Function at 0x464b00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x4d0008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push ecx
mov esi, edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x464bc9
push dword [esi + 0x34]
xorps xmm0, xmm0
mov dword [ebp - 8], 0
push dword [esi + 0x30]
lea eax, [ebp - 0x30]
push eax
movups xmmword [ebp - 0x28], xmm0
movups xmmword [ebp - 0x18], xmm0
call dword [sym.imp.PAL.dll_PalWindowGetPosCenter]
mov eax, dword [ebp - 0x2c]
add esp, 0xc
mov ecx, dword [ebp - 0x30]
mov dword [esi + 0x2c], eax
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 0x30]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0x34]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x64]
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 0x60]
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x54]
push 0
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x34]
push eax
push 0x24
lea eax, [ebp - 0x28]
mov dword [esi + 0x28], ecx
push eax
push edi
mov dword [ebp - 0x28], ecx
mov dword [ebp - 8], 1
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046d15f
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.0046d15f
mov esp, ebp
pop ebp
ret
Function at 0x464eb0
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x4d0008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x110]
push 0x4d3288
push str._s.
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x254], eax
cmp eax, 0xffffffff
jne 0x464f14
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046d15f
mov esp, ebp
pop ebp
ret
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, eax
nop dword [eax]
mov ecx, 0x4c179c
lea eax, [ebp - 0x224]
nop dword [eax + eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x464f50
test dl, dl
je 0x464f4c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x464f50
add eax, 2
add ecx, 2
test dl, dl
jne 0x464f30
xor eax, eax
jmp 0x464f55
sbb eax, eax
or eax, 1
test eax, eax
je 0x46501a
mov eax, 0x4c17b0
lea ecx, [ebp - 0x224]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x464f88
test dl, dl
je 0x464f84
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x464f88
add ecx, 2
add eax, 2
test dl, dl
jne 0x464f68
xor eax, eax
jmp 0x464f8d
sbb eax, eax
or eax, 1
test eax, eax
je 0x46501a
test byte [ebp - 0x250], 0x10
jne 0x46501a
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
sub eax, 4
lea esi, [ebp - 0x224]
add esi, eax
mov eax, dword [esi]
cmp eax, 0x7461642e
jne 0x464fe7
lea eax, [ebp - 0x224]
push eax
push 0x4d3288
lea eax, [ebp - 0x110]
push str._s_s
push eax
call edi
add esp, 0x10
lea eax, [ebp - 0x110]
push eax
call ebx
mov eax, dword [esi]
cmp eax, 0x67706a2e
jne 0x465014
lea eax, [ebp - 0x224]
push eax
push 0x4d3288
lea eax, [ebp - 0x110]
push str._s_s
push eax
call edi
add esp, 0x10
lea eax, [ebp - 0x110]
push eax
call ebx
mov esi, dword [ebp - 0x254]
lea eax, [ebp - 0x250]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x464f20
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046d15f
mov esp, ebp
pop ebp
ret
Function at 0x4655b0
Capabilities:
Encode data using xor
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4d0008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x877e58], 0
je 0x465747
push str.access.dat
push 0x4d3288
lea eax, [ebp - 0x108]
push str._s_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x108]
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x114], eax
cmp eax, 0xffffffff
je 0x465747
push 0
push dword [edi + 0x877e58]
call dword [sym.imp.PAL.dll_PalListGetDataCount]
add esp, 8
test eax, eax
je 0x465724
mov esi, eax
shl esi, 5
add esi, eax
push 0
push esi
call dword [sym.imp.PAL.dll_PalMemoryAlloc]
mov ebx, eax
add esp, 8
mov dword [ebp - 0x10c], ebx
test ebx, ebx
je 0x465747
push 0
push dword [edi + 0x877e58]
call dword [sym.imp.PAL.dll_PalListFind]
mov edi, eax
add esp, 8
test edi, edi
je 0x4656a2
push 0
push 0
push edi
call dword [sym.imp.PAL.dll_PalListGetData]
push 0x21
push eax
push ebx
call fcn.004772c0
push edi
add ebx, 0x21
call dword [sym.imp.PAL.dll_PalListFindNext]
mov edi, eax
add esp, 0x1c
test edi, edi
jne 0x465675
mov ebx, dword [ebp - 0x10c]
mov ecx, esi
mov dword [ebp - 0x110], esi
and ecx, 3
je 0x4656b9
mov eax, esi
sub eax, ecx
mov dword [ebp - 0x110], eax
mov edi, dword [ebp - 0x10c]
mov cl, 4
mov edx, dword [ebp - 0x110]
mov eax, 0xff987dee
xor dword [edi], eax
mov eax, 0x84df873
xor dword [edi], eax
ror byte [edi], cl
add edi, 4
add cl, 1
and cl, 0xff
sub edx, 4
jne 0x4656c7
push 0
lea eax, [ebp - 0x118]
push eax
push esi
mov esi, dword [ebp - 0x114]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.PAL.dll_PalMemoryFree]
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046d15f
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x114]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046d15f
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046d15f
mov esp, ebp
pop ebp
ret
Function at 0x465a70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x4d0008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push str.system.dat
push 0x4d3288
lea eax, [ebp - 0x108]
mov esi, ecx
push str._s_s
push eax
mov dword [ebp - 0x114], esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x108]
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x465af2
push 0x4c1960
call dword [sym.imp.PAL.dll_PalErrorLogPrintf]
add esp, 4
xor eax, eax
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046d15f
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.PAL.dll_PalCheckWindowMode]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
mov dword [esi + 8], eax
lea eax, [ebp - 0x110]
push eax
push 2
push 0x4ba27c
push ebx
call edi
push 0
lea eax, [ebp - 0x110]
push eax
push 0x330
push esi
push ebx
call edi
push 0
lea eax, [ebp - 0x10c]
push eax
push 4
lea eax, [esi + 0x26548]
push eax
push ebx
call edi
push 0
lea eax, [ebp - 0x10c]
push eax
push 4
lea eax, [esi + 0x2654c]
push eax
push ebx
call edi
push 0
lea eax, [ebp - 0x10c]
push eax
push 4
lea eax, [esi + 0x26554]
push eax
push ebx
call edi
push 0
lea eax, [ebp - 0x10c]
push eax
push 4
lea eax, [esi + 0x26550]
push eax
push ebx
call edi
push 0
lea eax, [ebp - 0x10c]
push eax
push 0xc
lea eax, [esi + 0x26558]
push eax
push ebx
call edi
push 0
lea eax, [ebp - 0x10c]
push eax
push 4
lea eax, [esi + 0x26564]
push eax
push ebx
call edi
push 0
lea eax, [ebp - 0x10c]
push eax
push 4
lea eax, [esi + 0x26568]
push eax
push ebx
call edi
push 0
lea eax, [ebp - 0x10c]
push eax
push 4
lea eax, [esi + 0x26570]
push eax
push ebx
call edi
push 0
lea eax, [ebp - 0x10c]
push eax
push 4
lea eax, [esi + 0x2656c]
push eax
push ebx
call edi
push 0
lea eax, [ebp - 0x10c]
push eax
push 0xc
lea eax, [esi + 0x26574]
push eax
push ebx
call edi
push 0
lea eax, [ebp - 0x10c]
push eax
push 0xc
lea eax, [esi + 0x266e0]
push eax
push ebx
call edi
push 0
lea eax, [ebp - 0x10c]
push eax
push 0xb34
lea eax, [esi + 0x266ec]
push eax
push ebx
call edi
push 0
lea eax, [ebp - 0x10c]
push eax
push 8
lea eax, [esi + 0x27220]
push eax
push ebx
call edi
push 0
lea eax, [ebp - 0x10c]
push eax
push 0x1000
lea eax, [esi + 0x448e8]
push eax
push ebx
call edi
push 0
lea eax, [ebp - 0x110]
add esi, 0x877e68
push eax
push 4
push esi
push ebx
call edi
push 0
lea eax, [ebp - 0x110]
push eax
push dword [esi]
mov esi, dword [ebp - 0x114]
push dword [esi + 0x877e60]
push ebx
call edi
push 0
lea eax, [ebp - 0x110]
add esi, 0x877e64
push eax
push 4
push esi
push ebx
call edi
push 0
lea eax, [ebp - 0x110]
push eax
mov eax, dword [ebp - 0x114]
push dword [esi]
push dword [eax + 0x877e5c]
push ebx
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046d15f
mov esp, ebp
pop ebp
ret
Function at 0x469190
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
call dword [sym.imp.WINMM.dll_timeGetTime]
mov dword [edi + 4], eax
mov eax, dword [ebp + 0xc]
push 0
push eax
mov eax, dword [ebp + 8]
add eax, ebx
push eax
push dword [edi]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x4691eb
test eax, eax
je 0x4691d9
mov esi, dword [edi + 8]
add ebx, eax
call dword [sym.imp.WINMM.dll_timeGetTime]
sub eax, dword [edi + 4]
cmp eax, esi
jae 0x4691e2
mov eax, dword [ebp + 0xc]
cmp ebx, eax
jb 0x4691a6
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 8
push 0x18
push str.HTTP:_recv_timeout_error
jmp 0x4691f2
push 0x10
push str.HTTP:_recv_error
lea ecx, [edi + 0x18]
call fcn.0042d9d0
push dword [edi]
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
pop edi
pop esi
mov eax, 0x80004005
pop ebx
pop ebp
ret 8

Function at 0x4692c0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1a8
mov eax, dword [0x4d0008]
xor eax, esp
mov dword [esp + 0x1a4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [esp + 0x14]
push edi
mov edi, dword [0x6cb658]
push eax
push 0x101
mov dword [edi], 0xffffffff
mov dword [edi + 8], 0x2710
call dword [sym.imp.WS2_32.dll_WSAStartup]
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
test esi, esi
jne 0x469347
push 0x19
push str.HTTP:_gethostbyname_error
lea ecx, [edi + 0x18]
call fcn.0042d9d0
push dword [edi]
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 0x80004005
pop edi
pop esi
mov ecx, dword [esp + 0x1a4]
xor ecx, esp
call fcn.0046d15f
mov esp, ebp
pop ebp
ret 8
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi], eax
cmp eax, 0xffffffff
jne 0x469363
push 0x12
push str.HTTP:_socket_error
jmp 0x469316
mov eax, 2
mov word [esp + 8], ax
mov eax, dword [esi + 0xc]
push 0x50
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [esp + 0x10], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0xa], ax
lea eax, [esp + 8]
push 0x10
push eax
push dword [edi]
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x4693a4
push 0x13
push str.HTTP:_connect_error
jmp 0x469316
mov ecx, dword [esp + 0x1ac]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.0046d15f
mov esp, ebp
pop ebp
ret 8
Function at 0x46b740
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], ecx
mov byte [ebp - 4], 4
mov dword [ebp - 0x10], 0x84df873
mov dword [ebp - 0x14], 0xff987dee
and eax, 3
je 0x46b76a
sub edx, eax
mov dword [ebp - 8], edx
push edi
mov edi, dword [ebp - 0xc]
mov cl, byte [ebp - 4]
mov edx, dword [ebp - 8]
rol byte [edi], cl
add cl, 1
and cl, 0xff
mov eax, dword [ebp - 0x10]
xor dword [edi], eax
mov eax, dword [ebp - 0x14]
xor dword [edi], eax
add edi, 4
sub edx, 4
jne 0x46b774
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x499e81
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0049965b

Function at 0x499e8c
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00499896

Function at 0x49ab31
Capabilities:
Create thread
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0049a8b8
Function at 0x402efc
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x402f38
movzx eax, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x402f58
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.004051fc
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x4031f0
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404f8c
test esi, esi
jne 0x403226
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.0040507c
jmp 0x403244
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403094
mov edi, eax
test esi, esi
je 0x403244
cmp dword [ebx], 0
je 0x403244
dec esi
jmp 0x40322d
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x403e8c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x492024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403f24
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403f04
xor eax, eax
push ebp
push 0x403efd
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403f40
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403f04
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x492024]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x492024], ax
mov esp, ebp
pop ebp
ret

Function at 0x404d38
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x49604c], 0
je 0x404d99
cmp word [0x496220], 0xd7b2
jne 0x404d61
cmp dword [0x496228], 0
jbe 0x404d61
mov eax, 0x49621c
call dword [0x496238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
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 0x404dc0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x492030], 0
jne 0x404db5
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret