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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x643004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
push ecx
push eax
mov dword [ebp - 0x18], edx
call dword [sym.imp.PAL.dll_PalFileCreate]
mov esi, eax
add esp, 8
cmp esi, 0xffffffff
jne 0x416ca7
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00482be9
mov esp, ebp
pop ebp
ret
push ebx
push 0
push dword [ebp - 8]
call dword [sym.imp.PAL.dll_PalMemoryAlloc]
add esp, 8
mov ebx, eax
lea eax, [ebp - 0x14]
push 0
push eax
push dword [ebp - 8]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 8]
mov edx, ebx
mov ecx, edi
call fcn.00416b10
mov edi, eax
add esp, 4
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], edi
cmp edi, eax
je 0x416d8d
mov ecx, dword [ebp - 0x18]
lea edx, [ebx + edi]
sub eax, edi
push eax
call fcn.00416920
add esp, 4
mov dword [ebp - 0x14], eax
cmp eax, 0xffffffff
je 0x416d8d
add edi, eax
cmp edi, dword [ebp - 8]
jae 0x416d6d
lea esi, [edi + ebx]
movzx eax, byte [esi]
push eax
call fcn.004900bf
add esp, 4
test eax, eax
je 0x416d52
cmp byte [esi], 0xa
je 0x416d6d
inc edi
inc esi
cmp edi, dword [ebp - 8]
jb 0x416d16
push ebx
call dword [sym.imp.PAL.dll_PalMemoryFree]
add esp, 4
mov eax, 1
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00482be9
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.0044dc80
mov edi, eax
push edi
push esi
mov esi, dword [ebp - 0x1c]
push esi
call fcn.0048d2a0
add esp, 0xc
mov byte [esi + edi], 0
push ebx
call dword [sym.imp.PAL.dll_PalMemoryFree]
add esp, 4
mov eax, 1
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00482be9
mov esp, ebp
pop ebp
ret
push ebx
call dword [sym.imp.PAL.dll_PalMemoryFree]
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
xor eax, eax
pop ebx
pop edi
pop esi
call fcn.00482be9
mov esp, ebp
pop ebp
ret
Function at 0x423de0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x643004]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov edi, edx
mov dword [ebp - 0x124], edi
call fcn.0044ab60
test al, 0x30
jne 0x423ef4
shl esi, 5
lea ecx, [ebp - 0x114]
add edi, esi
mov edx, ebx
push 1
push dword [edi + 0x5c]
call fcn.0044b0e0
lea eax, [ebp - 0x114]
add esp, 8
dec eax
mov cl, byte [eax + 1]
lea eax, [eax + 1]
test cl, cl
jne 0x423e31
mov ecx, dword [str..tga]
mov dword [eax], ecx
mov cl, byte [0x629d0c]
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 0x423e7d
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00482be9
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.0044e5f0
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 0x423ef4
push eax
call fcn.004a26b0
add esp, 4
mov ecx, dword [ebp - 8]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00482be9
mov esp, ebp
pop ebp
ret
Function at 0x4311b0
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 SysReAllocString
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x431202
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 + 0x259c]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
test eax, eax
jne 0x431235
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 + 0x25a4], ebx
mov eax, 1
mov dword [edi + 0x25a0], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x431260
Capabilities:
Delete file
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
mov eax, dword [0x643004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
mov edi, ecx
call dword [sym.imp.PAL.dll_PalTaskGetTaskData]
push dword [eax + 0x2578]
push edi
lea esi, [eax + 0x338]
lea eax, [ebp - 0x194]
push str._save__s_:_PC_08X_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea eax, [ebp - 0x194]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push dword [esi + 0x2234]
mov eax, dword [esi + 0x2264]
push dword [esi + 0x2230]
add eax, 0x1024
push eax
call fcn.0048cb50
push 0x1000
lea eax, [esi + 0x227c]
push eax
mov eax, dword [esi + 0x2264]
add eax, 8
push eax
call fcn.0048cb50
add esp, 0x18
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 0x431330
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 ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00482be9
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 0x198]
push eax
push dword [esi + 0x2268]
push dword [esi + 0x2264]
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x198]
cmp eax, dword [esi + 0x2268]
je 0x431384
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x40030
push 0x6529a0
push 0x62a9d8
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00482be9
mov esp, ebp
pop ebp
ret
Function at 0x441f70
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x643004]
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 0x441fff
sub esi, 0
je 0x44200f
sub esi, 1
jne 0x441fff
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 0x441ffe
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 0x441ff7
add esi, 0x20
cmp esi, dword [ebp - 0x28]
jae 0x441ff7
inc edi
cmp edi, 8
jl 0x441fd0
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.00482be9
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.00482be9
mov esp, ebp
pop ebp
ret
Function at 0x4472a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
cmp dword [edi], 0
je 0x4474d3
push ebx
mov ebx, dword [sym.imp.PAL.dll_PalMemoryFree]
mov eax, 8
push esi
lea esi, [edi + 0x2c]
mov dword [ebp - 4], eax
mov ecx, dword [esi]
test ecx, ecx
je 0x4472df
call fcn.00446640
mov eax, dword [esi]
push dword [eax + 0x10]
call ebx
push dword [esi]
call ebx
mov eax, dword [ebp - 4]
add esp, 8
add esi, 4
sub eax, 1
mov dword [ebp - 4], eax
jne 0x4472c3
mov eax, dword [edi + 0x28]
test eax, eax
je 0x447319
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x4472ff
push eax
push edi
call ecx
add esp, 8
mov esi, dword [edi + 0x28]
mov eax, dword [esi + 0xc]
mov dword [edi + 0x28], eax
push dword [esi]
call ebx
push esi
call ebx
mov eax, dword [edi + 0x28]
add esp, 8
test eax, eax
jne 0x4472f1
push dword [edi + 0x10]
call ebx
mov ecx, dword [edi + 0xc]
xor eax, eax
add esp, 4
mov dword [ecx + 8], 0
lea edx, [ecx + 0x178]
mov dword [ecx + 0xa8], 0
mov dword [ecx + 0xac], 0
mov dword [ecx + 0xb0], 0
mov dword [ecx + 0xc8], 0
mov dword [ecx + 0xcc], 0
mov dword [ecx + 0xd0], 0
mov dword [ecx + 0xe8], 0
mov word [ecx + 0xf4], ax
mov dword [ecx + 0x108], eax
mov dword [ecx + 0x10c], eax
mov dword [ecx + 0x110], eax
mov dword [ecx + 0x120], eax
mov dword [ecx + 0x124], eax
mov dword [ecx + 0x128], eax
pop esi
pop ebx
cmp dword [edi + 4], eax
jne 0x4474a3
movss xmm0, dword [ecx + 0x1a0]
addss xmm0, dword [ecx + 0x58]
mov eax, dword [edx]
add dword [ecx + 0x1c], eax
mov eax, dword [ecx + 0x17c]
add dword [ecx + 0x20], eax
movss dword [ecx + 0x58], xmm0
movss xmm0, dword [ecx + 0x1ac]
addss xmm0, dword [ecx + 0x78]
mov eax, dword [ecx + 0x180]
add dword [ecx + 0x24], eax
mov eax, dword [ecx + 0x184]
add dword [ecx + 0x34], eax
movss dword [ecx + 0x78], xmm0
movss xmm0, dword [ecx + 0x1b0]
addss xmm0, dword [ecx + 0x7c]
mov eax, dword [ecx + 0x188]
add dword [ecx + 0x38], eax
mov eax, dword [ecx + 0x18c]
add dword [ecx + 0x3c], eax
movzx eax, word [ecx + 0x1a4]
add word [ecx + 0x60], ax
movss dword [ecx + 0x7c], xmm0
movss xmm0, dword [ecx + 0x1b4]
addss xmm0, dword [ecx + 0x80]
movzx eax, word [ecx + 0x1a6]
add word [ecx + 0x62], ax
movzx eax, word [ecx + 0x1a8]
add word [ecx + 0x64], ax
movzx eax, word [ecx + 0x1aa]
movss dword [ecx + 0x80], xmm0
movss xmm0, dword [ecx + 0x1b8]
addss xmm0, dword [ecx + 0x90]
add word [ecx + 0x66], ax
movss dword [ecx + 0x90], xmm0
movss xmm0, dword [ecx + 0x1bc]
addss xmm0, dword [ecx + 0x94]
movss dword [ecx + 0x94], xmm0
movss xmm0, dword [ecx + 0x1c0]
addss xmm0, dword [ecx + 0x98]
movss dword [ecx + 0x98], xmm0
push 0x4c
push 0
push edx
call fcn.00484a00
mov ecx, dword [edi + 0x4c]
add esp, 0xc
mov eax, dword [edi + 0x50]
mov dword [ecx + 0x50], eax
mov ecx, dword [edi + 0x50]
test ecx, ecx
je 0x4474c6
mov eax, dword [edi + 0x4c]
mov dword [ecx + 0x4c], eax
push 0x54
push 0
push edi
call fcn.00484a00
add esp, 0xc
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x44b890
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x643004]
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 0x44b959
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.00482be9
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.00482be9
mov esp, ebp
pop ebp
ret
Function at 0x44c300
Capabilities:
Encode data using xor
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x643004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x502cf8], 0
je 0x44c497
push str.access.dat
push 0x652ba8
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 0x44c497
push 0
push dword [edi + 0x502cf8]
call dword [sym.imp.PAL.dll_PalListGetDataCount]
add esp, 8
test eax, eax
je 0x44c474
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 0x44c497
push 0
push dword [edi + 0x502cf8]
call dword [sym.imp.PAL.dll_PalListFind]
mov edi, eax
add esp, 8
test edi, edi
je 0x44c3f2
push 0
push 0
push edi
call dword [sym.imp.PAL.dll_PalListGetData]
push 0x21
push eax
push ebx
call fcn.0048cb50
push edi
add ebx, 0x21
call dword [sym.imp.PAL.dll_PalListFindNext]
mov edi, eax
add esp, 0x1c
test edi, edi
jne 0x44c3c5
mov ebx, dword [ebp - 0x10c]
mov ecx, esi
mov dword [ebp - 0x110], esi
and ecx, 3
je 0x44c409
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 0x44c417
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.00482be9
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.00482be9
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.00482be9
mov esp, ebp
pop ebp
ret
Function at 0x44c800
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x643004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push str.system.dat
push 0x652ba8
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 0x44c882
push 0x62c7c4
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.00482be9
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 0x6260ec
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 + 0x263f0]
push eax
push ebx
call edi
push 0
lea eax, [ebp - 0x10c]
push eax
push 4
lea eax, [esi + 0x263f4]
push eax
push ebx
call edi
push 0
lea eax, [ebp - 0x10c]
push eax
push 4
lea eax, [esi + 0x263fc]
push eax
push ebx
call edi
push 0
lea eax, [ebp - 0x10c]
push eax
push 4
lea eax, [esi + 0x263f8]
push eax
push ebx
call edi
push 0
lea eax, [ebp - 0x10c]
push eax
push 0xc
lea eax, [esi + 0x26400]
push eax
push ebx
call edi
push 0
lea eax, [ebp - 0x10c]
push eax
push 4
lea eax, [esi + 0x2640c]
push eax
push ebx
call edi
push 0
lea eax, [ebp - 0x10c]
push eax
push 4
lea eax, [esi + 0x26410]
push eax
push ebx
call edi
push 0
lea eax, [ebp - 0x10c]
push eax
push 4
lea eax, [esi + 0x26418]
push eax
push ebx
call edi
push 0
lea eax, [ebp - 0x10c]
push eax
push 4
lea eax, [esi + 0x26414]
push eax
push ebx
call edi
push 0
lea eax, [ebp - 0x10c]
push eax
push 0xc
lea eax, [esi + 0x2641c]
push eax
push ebx
call edi
push 0
lea eax, [ebp - 0x10c]
push eax
push 0xc
lea eax, [esi + 0x26588]
push eax
push ebx
call edi
push 0
lea eax, [ebp - 0x10c]
push eax
push 0xb34
lea eax, [esi + 0x26594]
push eax
push ebx
call edi
push 0
lea eax, [ebp - 0x10c]
push eax
push 8
lea eax, [esi + 0x270c8]
push eax
push ebx
call edi
push 0
lea eax, [ebp - 0x10c]
push eax
push 0x1000
lea eax, [esi + 0x384d0]
push eax
push ebx
call edi
push 0
lea eax, [ebp - 0x110]
add esi, 0x502d08
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 + 0x502d00]
push ebx
call edi
push 0
lea eax, [ebp - 0x110]
add esi, 0x502d04
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 + 0x502cfc]
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.00482be9
mov esp, ebp
pop ebp
ret
Function at 0x45d8b0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x198
mov eax, dword [0x643004]
xor eax, esp
mov dword [esp + 0x194], eax
lea eax, [esp]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0x45d900
call fcn.00483327
add esp, 4
call fcn.004ef030
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.00482be9
mov esp, ebp
pop ebp
ret

Function at 0x45eb90
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d3a88
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x643004]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov eax, ecx
mov dword [ebp - 0x10], eax
mov esi, dword [ebp + 8]
test esi, esi
jle 0x45ebeb
mov ebx, dword [sym.imp.WS2_32.dll_send]
nop dword [eax]
push 0
push esi
push edi
push eax
call ebx
cmp eax, 1
jl 0x45ebfd
cmp eax, esi
jg 0x45ebfd
sub esi, eax
add edi, eax
mov eax, dword [ebp - 0x10]
test esi, esi
jg 0x45ebd0
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 str.send_request_failed.
lea ecx, [ebp - 0x28]
call fcn.0041f830
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x44]
call fcn.0045cf50
push 0x63ee08
lea eax, [ebp - 0x44]
push eax
call fcn.0048477e
int3
Function at 0x47a730
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov ebx, edx
mov dword [ebp - 4], ecx
mov eax, 0xaaaaaaab
push edi
mov edi, dword [ebp + 8]
mov ecx, edi
lea esi, [ebx + 2]
mul esi
push edi
mov esi, edx
shr esi, 1
shl esi, 2
push esi
call fcn.00454700
test esi, esi
je 0x47a81a
mov ecx, dword [edi]
mov eax, dword [edi + 4]
mov dword [ebp - 8], ecx
sub eax, ecx
je 0x47a821
xor esi, esi
test ebx, ebx
je 0x47a81a
mov eax, 0xfffffffe
lea edx, [ecx + 2]
sub eax, ecx
mov ecx, dword [ebp - 4]
mov dword [ebp + 8], eax
nop dword [eax]
movzx eax, byte [ecx + esi]
lea edi, [esi + 1]
shl eax, 0x10
cmp edi, ebx
jae 0x47a7db
movzx ecx, byte [esi + ecx + 1]
shl ecx, 8
or eax, ecx
lea ecx, [edi + 1]
cmp ecx, ebx
jae 0x47a7c6
mov ecx, dword [ebp - 4]
movzx ecx, byte [esi + ecx + 2]
or eax, ecx
mov ecx, eax
and ecx, 0x3f
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
jmp 0x47a7c8
mov cl, 0x3d
mov byte [edx + 1], cl
mov ecx, eax
shr ecx, 6
and ecx, 0x3f
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
jmp 0x47a7ea
mov ecx, dword [ebp + 8]
mov edi, dword [ebp - 8]
add ecx, edx
mov byte [ecx + edi + 3], 0x3d
mov cl, 0x3d
mov byte [edx], cl
add esi, 3
mov ecx, eax
shr eax, 0x12
shr ecx, 0xc
and ecx, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx - 2], al
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx - 1], cl
add edx, 4
mov ecx, dword [ebp - 4]
cmp esi, ebx
jb 0x47a790
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.0045ba70
int3
Function at 0x47a830
Capabilities:
Decode data using base64 via dword translation table

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ecx + edx]
mov dword [ebp - 0xc], eax
lea edx, [edx + edx*2]
shr edx, 2
push edi
mov eax, dword [esi]
mov dword [esi + 4], eax
mov eax, dword [esi + 8]
sub eax, dword [esi]
mov dword [ebp - 8], ecx
cmp edx, eax
jbe 0x47a864
push edx
mov ecx, esi
call fcn.0045ce10
mov ecx, dword [ebp - 8]
xor edi, edi
xor ebx, ebx
nop dword [eax + eax]
movzx eax, byte [ecx]
push eax
call fcn.004900bf
add esp, 4
test eax, eax
jne 0x47a951
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0xc]
jae 0x47a8b1
mov al, byte [eax]
cmp al, 0x80
jae 0x47a8b1
movzx eax, al
and eax, 0x7f
mov cl, byte [eax + 0x627300]
mov byte [ebp + 0xb], cl
cmp cl, 0x40
jae 0x47a8b1
shl ebx, 6
movzx eax, cl
or ebx, eax
inc edi
jmp 0x47a8ca
cmp edi, 4
jge 0x47a8c4
mov eax, 4
sub eax, edi
lea ecx, [eax + eax*2]
add ecx, ecx
shl ebx, cl
or cl, 0xff
mov byte [ebp + 0xb], cl
cmp edi, 4
je 0x47a8d4
cmp cl, 0xff
jne 0x47a951
cmp edi, 2
jl 0x47a947
mov ecx, dword [esi + 4]
mov eax, ebx
sar eax, 0x10
mov byte [ebp - 1], al
cmp dword [esi + 8], ecx
je 0x47a8f0
mov byte [ecx], al
inc dword [esi + 4]
jmp 0x47a8fc
lea eax, [ebp - 1]
push eax
push ecx
mov ecx, esi
call fcn.00454840
cmp edi, 3
jl 0x47a947
mov ecx, dword [esi + 4]
mov eax, ebx
sar eax, 8
mov byte [ebp - 1], al
cmp dword [esi + 8], ecx
je 0x47a918
mov byte [ecx], al
inc dword [esi + 4]
jmp 0x47a924
lea eax, [ebp - 1]
push eax
push ecx
mov ecx, esi
call fcn.00454840
cmp edi, 4
jne 0x47a947
mov eax, dword [esi + 4]
mov byte [ebp - 1], bl
cmp dword [esi + 8], eax
je 0x47a93b
mov byte [eax], bl
inc dword [esi + 4]
jmp 0x47a947
lea ecx, [ebp - 1]
push ecx
push eax
mov ecx, esi
call fcn.0045bb20
xor edi, edi
xor ebx, ebx
cmp byte [ebp + 0xb], 0xff
je 0x47a95d
mov ecx, dword [ebp - 8]
inc ecx
mov dword [ebp - 8], ecx
jmp 0x47a870
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4bde6a
Capabilities:
Set environment variable

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

Function at 0x4bde75
Capabilities:
Set environment variable

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

Function at 0x4bea35
Capabilities:
Create thread
Print debug messages

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

Function at 0x4cbbb1
Capabilities:
Read file on windows

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

Function at 0x4cbbbc
Capabilities:
Read file on windows

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

Function at 0x4da3db
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
sub eax, edx
push esi
push edi
xor edi, edi
cmp dword [ebp + 0xc], edx
sbb esi, esi
not esi
and esi, eax
je 0x4da40a
movzx eax, byte [edx]
xor eax, dword [ecx]
imul eax, eax, 0x1000193
inc edx
inc edi
mov dword [ecx], eax
cmp edi, esi
jne 0x4da3f5
jmp 0x4da40c
mov eax, dword [ecx]
pop edi
pop esi
pop ebp
ret 8