joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4479d0
Capabilities:
Create thread
Terminate thread

Disassembly:
mov eax, 0x101c
call fcn.004ec8c0
mov eax, dword [0x56fcac]
xor eax, esp
mov dword [esp + 0x1018], eax
mov eax, dword [esp + 0x1020]
push ebp
mov ebp, dword [esp + 0x102c]
push esi
lea edx, [esp + 0xc]
push edi
mov esi, ecx
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x447a01
lea edx, [esp + 0x810]
mov eax, esi
sub edx, esi
jmp 0x447a20
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x447a20
mov ax, word [esp + 0x1030]
push 0
push 0
lea ecx, [esp + 0x18]
push ecx
push 0x447690
push 0
push 0
mov word [esp + 0x1028], ax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, eax
push 0x14d
push esi
call edi
cmp eax, 0x102
jne 0x447a90
mov edi, edi
mov ecx, dword [ebx + 0x2694]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
test eax, eax
jne 0x447ab1
push 0x14d
push esi
call edi
cmp eax, 0x102
je 0x447a70
lea ecx, [esp + 0xc]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0xc], 0
je 0x447ac1
mov eax, 0xe0000005
jmp 0x447ad7
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, 0xe000000a
jmp 0x447ad7
mov eax, dword [esp + 0x101c]
mov edx, dword [esp + 0x1018]
mov dword [ebp + 4], eax
mov dword [ebp], edx
xor eax, eax
mov ecx, dword [esp + 0x1024]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.004ead41
add esp, 0x101c
ret 0xc
Function at 0x448160
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x10
push edi
mov edi, eax
cmp dword [edi + 0x2694], 0
jne 0x448178
xor al, al
pop edi
add esp, 0x10
ret 0xc
mov ecx, dword [edi + 0x2694]
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
lea edx, [esp + 8]
push edx
call eax
test eax, eax
jne 0x44816f
mov ecx, dword [edi + 0x2678]
push ebx
mov ebx, dword [esp + 0xc]
shl ebx, 0xa
test ecx, ecx
je 0x4481a8
mov eax, ebx
xor edx, edx
div ecx
mov ebx, eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esp + 0x28]
sub eax, dword [ecx]
mov ebp, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
je 0x44827a
mov edx, ebp
sub edx, dword [esi]
sbb ecx, dword [esi + 4]
test eax, eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ecx
fild qword [esp + 0x14]
mov dword [esp + 0x14], eax
fild dword [esp + 0x14]
jge 0x4481e8
fadd qword [0x54eb80]
fdivp st(1)
fmul qword [0x54eb98]
fnstcw word [esp + 0xe]
movzx eax, word [esp + 0xe]
or eax, 0xc00
mov dword [esp + 0x14], eax
fldcw word [esp + 0x14]
fistp qword [esp + 0x14]
mov edi, dword [esp + 0x14]
cmp edi, ebx
mov dword [esp + 0x14], edi
fldcw word [esp + 0xe]
jle 0x4482b8
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [esp + 0x28]
sub edi, ebx
mov dword [esp + 0x28], edi
fild dword [esp + 0x28]
mov dword [edx], eax
mov eax, dword [esp + 0x24]
fnstcw word [esp + 0x28]
fidiv dword [esp + 0x14]
mov dword [esi + 4], eax
movzx eax, word [esp + 0x28]
or eax, 0xc00
mov dword [esp + 0x20], eax
mov dword [esi], ebp
fmul qword [0x54eb98]
fldcw word [esp + 0x20]
fistp qword [esp + 0x20]
mov ecx, dword [esp + 0x20]
push ecx
fldcw word [esp + 0x2c]
call sub.KERNEL32.dll_Sleep
pop ebp
pop ebx
mov al, 1
pop edi
add esp, 0x10
ret 0xc
mov edi, ebp
sub edi, dword [esi]
mov eax, ebx
sbb ecx, dword [esi + 4]
cdq
cmp ecx, edx
jl 0x4482b8
jg 0x44828e
cmp edi, eax
jbe 0x4482b8
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [esp + 0x28]
mov dword [edx], eax
mov eax, dword [esp + 0x24]
push 0x3e8
mov dword [esi], ebp
mov dword [esi + 4], eax
call sub.KERNEL32.dll_Sleep
pop ebp
pop ebx
mov al, 1
pop edi
add esp, 0x10
ret 0xc
pop ebp
pop ebx
xor al, al
pop edi
add esp, 0x10
ret 0xc
Function at 0x448d20
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x52a080
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x56fcac]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 0x2678]
lea ebp, [eax + eax*4]
lea esi, [edi + 0x2418]
xor ebx, ebx
mov eax, esi
lea ebp, [ebp*8 + 0x2678]
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], ebx
mov word [esp + 0x28], bx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x448d77
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [esp + 0x2c]
call fcn.00402af0
push ebx
lea eax, [esp + 0x28]
push ebp
push eax
mov dword [esp + 0x54], ebx
call fcn.0043e470
add esp, 0xc
test al, al
sete byte [esp + 0x17]
or ebp, 0xffffffff
mov dword [esp + 0x48], ebp
cmp dword [esp + 0x3c], 8
jb 0x448dc6
mov ecx, dword [esp + 0x28]
push ecx
call fcn.004aaa59
add esp, 4
cmp byte [esp + 0x17], 0
jne 0x448e6d
mov dword [esp + 0x18], ebp
mov dword [esp + 0x48], 1
mov eax, esi
mov dword [esp + 0x3c], 7
mov dword [esp + 0x38], ebx
mov word [esp + 0x28], bx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x448df3
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [esp + 0x2c]
call fcn.00402af0
cmp dword [esp + 0x3c], 8
mov eax, dword [esp + 0x28]
jae 0x448e1c
lea eax, [esp + 0x28]
push ebx
push 0x80
push 3
push ebx
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
setne al
test al, al
sete byte [esp + 0x17]
cmp dword [esp + 0x3c], 8
mov dword [esp + 0x18], ebp
jb 0x448e5a
mov edx, dword [esp + 0x28]
push edx
call fcn.004aaa59
add esp, 4
cmp byte [esp + 0x17], 0
je 0x448e83
cmp ebp, 0xffffffff
je 0x448e6d
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret
lea eax, [edi + 8]
cmp eax, ebx
je 0x448e61
cmp ebp, 0xffffffff
je 0x448e6d
push ebx
lea ecx, [esp + 0x20]
push ecx
push 0x2678
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x448e61
cmp dword [esp + 0x1c], 0x2678
jne 0x448e61
mov eax, dword [edi + 0x2678]
xor ecx, ecx
mov edx, 0x28
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004aaa5e
add esp, 4
cmp dword [edi + 0x2678], 0
mov dword [edi + 0x2690], eax
jbe 0x448f46
mov dword [esp + 0x18], 0
jmp 0x448ef0
mov esi, dword [edi + 0x2690]
add esi, dword [esp + 0x18]
push ebx
call fcn.00448c40
mov eax, dword [edi + 0x2690]
add eax, dword [esp + 0x18]
je 0x448e66
push 0
lea ecx, [esp + 0x24]
push ecx
mov esi, 0x28
push esi
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x448e66
cmp dword [esp + 0x20], esi
jne 0x448e66
add dword [esp + 0x18], esi
add ebx, 1
cmp ebx, dword [edi + 0x2678]
jb 0x448ef0
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x38
ret
Function at 0x448f70
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 0xc]
mov eax, dword [eax]
sub esp, 0x10
cmp eax, 0xffffffff
push ebp
push esi
je 0x448fbd
lea esi, [ebx + ebx*4]
add esi, esi
push 0
add esi, esi
lea edx, [esp + 0x18]
add esi, esi
lea ecx, [esi + 0x2678]
push edx
push ecx
push eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
jne 0x448fc7
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x448fc7
xor al, al
pop esi
pop ebp
add esp, 0x10
ret 0xc
mov eax, dword [edi + 0x2690]
mov ecx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x20]
add eax, esi
mov edx, ecx
add edx, dword [eax]
push 0
adc ebp, dword [eax + 4]
mov dword [eax + 0x10], edx
mov dword [eax + 0x14], ebp
mov eax, dword [edi + 0x2690]
mov edx, dword [eax + esi + 8]
add eax, esi
sub edx, ecx
mov ecx, dword [eax + 0xc]
sbb ecx, dword [esp + 0x24]
mov dword [eax + 0x18], edx
mov dword [eax + 0x1c], ecx
call fcn.004f1504
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
mov edx, dword [edi + 0x369c]
lea eax, [edx + ebx*8]
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
add esp, 4
cmp ecx, dword [eax + 4]
jl 0x449069
jg 0x44902d
cmp edx, dword [eax]
jbe 0x449069
mov eax, dword [edi + 0x2690]
mov eax, dword [eax + esi + 0x20]
mov edx, dword [esp + 0x1c]
mov ecx, dword [edi + 0x369c]
sub eax, dword [ecx + ebx*8]
mov ecx, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
add edx, eax
mov eax, dword [edi + 0x2690]
mov dword [eax + esi + 0x20], edx
mov edx, dword [esp + 0x20]
mov eax, dword [edi + 0x369c]
mov dword [eax + ebx*8], ecx
mov dword [eax + ebx*8 + 4], edx
mov eax, dword [edi + 0x2690]
add eax, esi
je 0x448fbd
mov ecx, dword [esp + 0x24]
mov ecx, dword [ecx]
cmp ecx, 0xffffffff
je 0x448fbd
push 0
lea edx, [esp + 0x10]
push edx
push 0x28
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x448fbd
cmp dword [esp + 0xc], 0x28
jne 0x448fbd
cmp byte [edi], 0
je 0x4490b2
mov byte [edi], 0
pop esi
mov al, 1
pop ebp
add esp, 0x10
ret 0xc
Function at 0x44dd10
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x528d68
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x56fcac]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
xor esi, esi
push 0xffffffffffffffff
push esi
mov dword [edi + 0x18], 7
mov dword [edi + 0x14], esi
push eax
mov ecx, edi
mov word [edi + 4], si
call fcn.00403310
mov dword [esp + 0x14], esi
mov ecx, dword [ebx]
lea eax, [ebx + 4]
lea esi, [edi + 0x20]
mov dword [edi + 0x1c], ecx
call fcn.0044dde0
mov dl, byte [ebx + 0x14]
mov byte [edi + 0x30], dl
mov eax, edi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 8

Function at 0x44fef0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x529f08
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x56fcac]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov edi, dword [esp + 0x1c]
xor esi, esi
push 0xffffffffffffffff
push esi
mov dword [edi + 0x18], 7
mov dword [edi + 0x14], esi
push ebx
mov ecx, edi
mov word [edi + 4], si
call fcn.00403310
mov dword [esp + 0x14], esi
mov eax, dword [ebx + 0x1c]
mov dword [edi + 0x1c], eax
lea eax, [ebx + 0x20]
lea esi, [edi + 0x20]
call fcn.0044dde0
mov cl, byte [ebx + 0x30]
mov byte [edi + 0x30], cl
mov eax, edi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4

Function at 0x4506a0
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x64
mov eax, dword [0x56fcac]
xor eax, esp
mov dword [esp + 0x5c], eax
push esi
push edi
mov esi, ecx
test esi, esi
mov edi, edx
mov dword [edi], 0
je 0x45072c
cmp ebx, 1
jl 0x45072c
push 0x58
lea eax, [esp + 0xc]
push 0
push eax
call fcn.004ec1b0
add esp, 0xc
test ebx, ebx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 0x10], 0x67452301
mov dword [esp + 0x14], 0xefcdab89
mov dword [esp + 0x18], 0x98badcfe
mov dword [esp + 0x1c], 0x10325476
jle 0x450723
push 0
lea ecx, [esp + 0xc]
push ebx
push ecx
lea eax, [ebx*8]
mov ecx, ebx
mov edx, esi
call fcn.00458450
add esp, 0xc
lea esi, [esp + 8]
call fcn.00458500
mov ecx, dword [esp + 0x64]
pop edi
pop esi
xor ecx, esp
call fcn.004ead41
add esp, 0x64
ret
Function at 0x450770
Capabilities:
Access peb ldr_data
Get file size
Get kernel32 base address
Hash data with md5
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x527970
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x56fcac]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov ebx, ecx
push 0x68
call fcn.004aaa2e
mov esi, eax
mov dword [esp + 0x20], esi
xor eax, eax
lea edi, [esi + 0x58]
xor ebp, ebp
mov dword [esp + 0x30], ebp
mov dword [edi], eax
push 0x58
mov dword [edi + 4], eax
push ebp
mov dword [edi + 8], eax
push esi
mov dword [edi + 0xc], eax
call fcn.004ec1b0
add esp, 0x10
mov dword [esi + 4], ebp
mov dword [esi], ebp
mov dword [esi + 8], 0x67452301
mov dword [esi + 0xc], 0xefcdab89
mov dword [esi + 0x10], 0x98badcfe
mov dword [esi + 0x14], 0x10325476
mov byte [esp + 0x2c], 1
cmp dword [ebx + 0x18], 8
jb 0x4507f9
mov ebx, dword [ebx + 4]
jmp 0x4507fc
add ebx, 4
push ebp
push 0x80
push 3
push ebp
push 1
push SysReAllocStringLen
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x20], ebp
je 0x45085c
lea eax, [esp + 0x18]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x45083b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x450855
mov ecx, dword [esp + 0x18]
push 1
push 0
push 0
push ecx
call fcn.004f4500
xor ecx, ecx
add eax, ebx
adc edx, ecx
or eax, edx
jne 0x45087b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.004aaa59
add esp, 4
xor al, al
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
push 0x10000
mov dword [esp + 0x18], ecx
call fcn.004aaa5e
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x450855
push 0
lea edx, [esp + 0x18]
push edx
push 0x10000
push ebx
push ebp
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4508e3
mov ecx, dword [esp + 0x14]
test ecx, ecx
seta al
test al, al
je 0x4508e3
test ecx, ecx
je 0x4508e3
jle 0x450892
mov edx, dword [esi]
shr edx, 3
and edx, 0x3f
push edx
push ecx
lea eax, [ecx*8]
push esi
mov edx, ebx
call fcn.00458450
add esp, 0xc
jmp 0x450892
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4508f1
or ebp, 0xffffffff
push ebx
call fcn.004aaa63
add esp, 4
call fcn.00458500
cmp ebp, 0xffffffff
mov ecx, dword [edi]
mov eax, dword [esp + 0x34]
mov dword [eax], ecx
mov edx, dword [edi + 4]
mov dword [eax + 4], edx
mov ecx, dword [edi + 8]
mov dword [eax + 8], ecx
mov edx, dword [edi + 0xc]
mov dword [eax + 0xc], edx
je 0x450925
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.004aaa59
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x4521a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x52e2c2
mov eax, dword fs:[0]
push eax
sub esp, 0x80
mov eax, dword [0x56fcac]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push esi
push edi
mov eax, dword [0x56fcac]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, edx
mov dword [esp + 0x18], ebx
call fcn.0042eeb0
mov edx, dword [ebx + 0xc]
cmp edx, 8
jb 0x452385
mov eax, dword [ebx + 8]
mov ecx, dword [eax]
mov edi, dword [eax + 4]
xor eax, eax
cmp ecx, eax
mov dword [esp + 0x1c], ecx
je 0x452217
cmp edi, eax
je 0x452217
add edx, 0xfffffff8
cmp edx, edi
jb 0x452385
cmp ecx, eax
mov edx, dword [ebx + 8]
mov dword [esp + 0x10], edx
mov edi, 8
mov dword [esp + 0x14], eax
ja 0x452256
mov al, 1
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.004ead41
mov esp, ebp
pop ebp
ret
mov ebx, dword [esp + 0x18]
xor eax, eax
push eax
push 0x547f9c
lea ecx, [esp + 0x28]
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], eax
mov word [esp + 0x2c], ax
call fcn.00402af0
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x40]
push ecx
mov edx, SysReAllocStringLen
mov dword [esp + 0xa0], 0
call fcn.004557c0
mov byte [esp + 0x98], 2
cmp dword [esp + 0x38], 8
jb 0x4522b1
mov edx, dword [esp + 0x24]
push edx
call fcn.004aaa59
add esp, 4
mov ecx, dword [ebx + 0xc]
xor eax, eax
mov dword [esp + 0x34], eax
mov word [esp + 0x24], ax
mov eax, dword [esp + 0x10]
mov eax, dword [edi + eax]
add edi, 4
lea ebx, [eax + edi]
cmp ebx, ecx
mov dword [esp + 0x38], 7
ja 0x452370
mov ecx, dword [esp + 0x10]
add edi, ecx
push eax
push edi
lea ecx, [esp + 0x44]
call fcn.00456310
mov edx, dword [esi + 0x10]
add edx, 1
cmp dword [esi + 8], edx
mov edi, ebx
ja 0x452301
mov ebx, esi
call fcn.00439760
mov ebx, dword [esi + 0xc]
add ebx, dword [esi + 0x10]
mov eax, dword [esi + 8]
cmp eax, ebx
ja 0x452310
sub ebx, eax
mov eax, dword [esi + 4]
cmp dword [eax + ebx*4], 0
jne 0x452329
push 0x44
call fcn.004aaa2e
mov ecx, dword [esi + 4]
add esp, 4
mov dword [ecx + ebx*4], eax
mov eax, dword [esi + 4]
mov ecx, dword [eax + ebx*4]
lea edx, [esp + 0x3c]
push edx
push ecx
lea ecx, [esi + 1]
call fcn.00439700
add dword [esi + 0x10], 1
lea edx, [esp + 0x3c]
push edx
mov dword [esp + 0x9c], 0xffffffff
call fcn.00455840
mov eax, dword [esp + 0x14]
add eax, 1
cmp eax, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
jb 0x452250
jmp 0x45222b
lea eax, [esp + 0x3c]
push eax
mov dword [esp + 0x9c], 0xffffffff
call fcn.00455840
xor al, al
jmp 0x45222d
Function at 0x454840
Capabilities:
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x5278d8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x56fcac]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x24], 0
cmp dword [eax + 0x18], 8
jb 0x454880
mov eax, dword [eax + 4]
jmp 0x454883
add eax, 4
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x454956
lea eax, [esp + 0x18]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4548cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x45494f
mov ecx, dword [esp + 0x18]
push 1
push 0
push 0
push ecx
call fcn.004f4500
mov ebx, eax
xor eax, eax
add ebx, edi
adc edx, eax
mov ecx, ebx
or ecx, edx
je 0x45494f
lea edi, [ebx + 3]
call fcn.00403d20
mov eax, dword [esi + 4]
cmp ebx, eax
ja 0x4548fb
mov eax, ebx
lea edx, [esp + 0x2c]
push edx
mov dword [esi + 0xc], eax
mov eax, dword [esi + 8]
push ebx
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], 0
call fcn.0043b9c0
test al, al
je 0x45494f
cmp dword [esp + 0x2c], ebx
jne 0x45494f
mov eax, dword [esi + 8]
xor ecx, ecx
add eax, ebx
mov word [eax], cx
mov byte [eax + 2], cl
lea ecx, [esp + 0x14]
call fcn.0043b960
mov al, 1
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret

Function at 0x4579e0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x198
mov eax, dword [0x56fcac]
xor eax, esp
mov dword [esp + 0x194], eax
cmp byte [0x574ea2], 0
jne 0x457a30
lea eax, [esp]
push eax
push 0x202
call sub.WS2_32.dll_WSAStartup
test eax, eax
mov eax, esi
jne 0x457a32
mov byte [0x574ea2], 1
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.004ead41
mov esp, ebp
pop ebp
ret
mov eax, esi
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.004ead41
mov esp, ebp
pop ebp
ret

Function at 0x459200
Capabilities:
Encode data using xor

Disassembly:
push ebx
xor eax, eax
or ecx, 0x100
push edi
lea ebx, [ebx]
mov ebx, ecx
shr ebx, 7
mov edi, ecx
shr edi, 8
movzx edi, word [esi + edi*2]
and ebx, 1
neg ebx
sar ebx, 4
shr edi, 4
and ebx, 0x7f
xor edi, ebx
add eax, dword [edx + edi*4]
add ecx, ecx
cmp ecx, 0x10000
jb 0x459210
pop edi
pop ebx
ret
Function at 0x459240
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
push esi
mov esi, eax
mov edx, 0x100
xor eax, eax
or ecx, edx
mov edi, edi
add esi, esi
mov ebx, edx
and ebx, esi
add ebx, edx
mov ebp, ecx
shr ebp, 8
add ebp, ebx
mov ebx, dword [esp + 0x10]
movzx ebx, word [ebx + ebp*2]
mov ebp, ecx
shr ebp, 7
and ebp, 1
neg ebp
shr ebx, 4
sar ebp, 4
and ebp, 0x7f
xor ebx, ebp
add eax, dword [edi + ebx*4]
add ecx, ecx
mov ebx, ecx
xor ebx, esi
not ebx
and edx, ebx
cmp ecx, 0x10000
jb 0x459250
pop esi
pop ebp
pop ebx
ret

Function at 0x459400
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov esi, eax
mov edi, ecx
xor eax, eax
test edi, edi
mov edx, 1
je 0x459444
push ebx
push ebp
mov ebx, dword [esp + 0x14]
movzx ebx, word [ebx + edx*2]
mov ecx, esi
and ecx, 1
mov ebp, ecx
neg ebp
sar ebp, 4
and ebp, 0x7f
shr ebx, 4
xor ebx, ebp
mov ebp, dword [esp + 0x18]
add eax, dword [ebp + ebx*4]
add edx, edx
shr esi, 1
or edx, ecx
sub edi, 1
jne 0x459413
pop ebp
pop ebx
pop edi
pop esi
ret
Function at 0x4595d0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
movzx eax, word [ebx]
mov ecx, eax
shr ecx, 4
mov edx, dword [esi + ecx*4]
movzx ecx, word [ebx + 2]
mov dword [esp], edx
mov edx, ecx
xor eax, 0x7f0
xor ecx, 0x7f0
shr edx, 4
mov edx, dword [esi + edx*4]
shr eax, 4
mov eax, dword [esi + eax*4]
shr ecx, 4
mov ecx, dword [esi + ecx*4]
add edx, eax
add ecx, eax
push ebp
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
xor edx, edx
push edi
cmp edx, dword [esp + 0x1c]
jae 0x459747
mov eax, edx
or eax, 8
xor edi, edi
cmp eax, 1
je 0x45965a
lea ebx, [ebx]
mov ebp, dword [esp + 0x18]
mov ecx, eax
shr ecx, 1
and eax, 1
lea ebp, [ecx + ebp*8]
movzx ebp, word [ebx + ebp*2 + 4]
neg eax
sar eax, 4
and eax, 0x7f
shr ebp, 4
xor ebp, eax
add edi, dword [esi + ebp*4]
mov eax, ecx
cmp eax, 1
jne 0x459630
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x20]
add edi, eax
mov dword [ecx + edx*4], edi
add edx, 1
cmp edx, 8
jb 0x459614
cmp edx, 0x10
jae 0x4596e1
lea eax, [edx - 8]
mov dword [esp + 8], eax
jmp 0x459680
cmp edx, dword [esp + 0x1c]
jae 0x459747
or eax, 8
xor edi, edi
cmp eax, 1
je 0x4596c1
mov ebp, dword [esp + 0x18]
mov ecx, eax
shr ecx, 1
and eax, 1
lea ebp, [ecx + ebp*8]
movzx ebp, word [ebx + ebp*2 + 0x104]
neg eax
sar eax, 4
and eax, 0x7f
shr ebp, 4
xor ebp, eax
add edi, dword [esi + ebp*4]
mov eax, ecx
cmp eax, 1
jne 0x459694
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x20]
add edi, eax
mov eax, dword [esp + 8]
mov dword [ecx + edx*4], edi
add edx, 1
add eax, 1
cmp edx, 0x10
mov dword [esp + 8], eax
jb 0x459680
cmp edx, dword [esp + 0x1c]
jae 0x459747
lea eax, [edx - 0x10]
mov dword [esp + 8], eax
mov edi, edi
or eax, 0x100
xor edi, edi
cmp eax, 1
je 0x459726
lea esp, [esp]
mov ecx, eax
and eax, 1
shr ecx, 1
movzx ebp, word [ebx + ecx*2 + 0x204]
neg eax
sar eax, 4
and eax, 0x7f
shr ebp, 4
xor ebp, eax
add edi, dword [esi + ebp*4]
mov eax, ecx
cmp eax, 1
jne 0x459700
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
add edi, eax
mov eax, dword [esp + 8]
mov dword [ecx + edx*4], edi
add edx, 1
add eax, 1
cmp edx, dword [esp + 0x1c]
mov dword [esp + 8], eax
jb 0x4596f0
pop edi
pop ebp
add esp, 0xc
ret