joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a2960
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4f5978
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x4a2999
inc eax
mov dword [esi + 0x10], eax
jmp 0x4a2aac
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x4a29ad
mov eax, 0xffffffc7
jmp 0x4a2aae
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x4a29be
cmp dword [esi + 8], eax
jne 0x4a29ad
cmp dword [esi + 8], eax
jne 0x4a29d7
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x4a29d7
mov eax, 0xffffffc7
jmp 0x4a2aae
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x4a29eb
push eax
mov ecx, ebx
call fcn.004a2190
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.00471cf0
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x4a2a1c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.00471d10
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.004a1900
test eax, eax
mov dword [esp + 0x38], eax
je 0x4a2a4f
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x55f510
call fcn.00471ef0
mov eax, dword [esp + 0x38]
jmp 0x4a2aae
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.004a27c0
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x4a2a93
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.004a27e0
mov esi, eax
test esi, esi
jne 0x4a2ac3
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.004a27c0
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x4a2a65
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x55f510
call fcn.00471ef0
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x55f510
call fcn.00471ef0
mov eax, esi
jmp 0x4a2aae

Function at 0x4a74d0
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x4a7530
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x4a7530
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x4a7530
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x4a7530
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x4a7570
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x4b32b0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4f6268
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.004eea99
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.004b2c10
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.004ee9c7
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.004eb290
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.004eb290
push 1
push 0
push 0
mov ecx, esi
call fcn.004eb238
push 1
push 0
push 1
mov ecx, esi
call fcn.004eb238
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004eeb0b
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x4b3430
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4f6288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.004eea99
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.004b2c10
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.004ee9c7
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x4b34f4
cmp dword [esp + 0x40], 1
jne 0x4b34f2
cmp ecx, eax
jge 0x4b34f4
mov eax, ecx
cmp eax, 0xc8
jge 0x4b3500
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.004b32b0
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.004eeb0b
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x4b3d00
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4f6333
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.004e96ab
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], method.CBrush.virtual_0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.004eed41
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004f025d
test eax, eax
je 0x4b3e1c
mov ecx, dword [esp + 0x3c]
call fcn.004eed6e
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x4b3de0
push edi
mov ecx, esi
call fcn.004ec3d7
mov ecx, esi
call fcn.004b3fc0
cmp dword [esp + 0x38], 1
jne 0x4b3e15
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.004ec512
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x4b6000
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x4b6033
push esi
call fcn.004c43a0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x4b602c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x4b60b9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4b60a2
mov eax, dword [esi + 8]
test eax, eax
je 0x4b6057
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x4b609e
cmp eax, 2
je 0x4b60a2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4b604a
cmp eax, 3
je 0x4b607d
cmp eax, 1
jne 0x4b604a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x4b604a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4b604a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.004b60e0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4b60c8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.004b60e0
add esp, 4
pop esi
ret

Function at 0x4b6950
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x4b6971
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x4b6971
mov eax, dword [eax + 0x44]
test eax, eax
je 0x4b6971
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4d16b0
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x4d1753
test eax, eax
jbe 0x4d1753
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x4d1753
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x4d16fe
xor esi, esi
jmp 0x4d1704
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x4d172f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.004726e0
add esi, eax
push esi
mov ebx, esi
call fcn.004726e0
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x4d1710
pop ebp
test edi, edi
pop edi
jne 0x4d1753
test ebx, ebx
je 0x4d1753
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.004d85f0
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x4d1875
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4d198d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4d198d
mov eax, dword [esi + 0x3c]
push eax
call fcn.004e9afd
mov esi, eax
test esi, esi
je 0x4d198d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x4d198d
mov ecx, esi
call fcn.004d1800
cmp edi, eax
jge 0x4d198d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x4d1913
mov dword [esp + 0x34], 1
jmp 0x4d196e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x4d198d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.004d0e00
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x4ea4a1
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4ea4d9
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004e8555
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004e852d
jmp 0x4ea4e5
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4ebb94
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4ebbd6
call fcn.004f1648
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4ebbd6
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4ebbcd
xor eax, eax
jmp 0x4ebbde
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004ebbe4
pop edi
pop esi
pop ebx
ret 4
Function at 0x4f1b78
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4f1ba6
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4f1bc4
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004f1ade
jmp 0x4f1bc4
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4f1bc4
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004f1ade
test edi, edi
mov eax, edi
jne 0x4f1bae
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401fd0
Capabilities:
Write file on windows

Disassembly:
movsx eax, word [esp + 0x10]
push ebx
push esi
sub eax, 0
push edi
je 0x402022
dec eax
jne 0x402019
mov eax, dword [esp + 0x10]
push 0x404268
push eax
call sub.MSVCRT.dll_fopen
mov esi, eax
add esp, 8
test esi, esi
je 0x402019
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push esi
push edi
push 1
push ecx
call sub.MSVCRT.dll_fwrite
push esi
mov ebx, eax
call sub.MSVCRT.dll_fclose
add esp, 0x14
cmp ebx, edi
je 0x40205b
pop edi
pop esi
mov eax, 1
pop ebx
ret
mov edx, dword [esp + 0x10]
push 0x404264
push edx
call sub.MSVCRT.dll_fopen
mov esi, eax
add esp, 8
test esi, esi
je 0x402019
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push esi
push edi
push 1
push eax
call sub.MSVCRT.dll_fwrite
push esi
mov ebx, eax
call sub.MSVCRT.dll_fclose
add esp, 0x14
cmp ebx, edi
jne 0x402019
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x402590
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x510
push ebx
push ebp
push esi
push edi
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x121]
mov byte [esp + 0x120], 0
rep stosd dword es:[edi], eax
mov edx, dword [esp + 0x52c]
or ecx, 0xffffffff
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, edx
xor eax, eax
xor ebp, ebp
xor ebx, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x10], 0x400
cmp ecx, 0x104
jbe 0x4025ec
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x510
ret
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
lea esi, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, esi
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea eax, [esp + 0x18]
and ecx, 3
push 0x40434c
rep movsb byte es:[edi], byte [esi]
push eax
call sub.MSVCRT.dll_fopen
mov esi, eax
add esp, 8
test esi, esi
je 0x40268e
push 2
push 0
push esi
call sub.MSVCRT.dll_fseek
push esi
call sub.MSVCRT.dll_ftell
push 0
push 0
push esi
mov ebp, eax
call sub.MSVCRT.dll_fseek
lea edi, [ebp + 1]
push edi
call sub.MSVCRT.dll_malloc
mov ebx, eax
add esp, 0x20
test ebx, ebx
jne 0x402667
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x510
ret
mov ecx, edi
xor eax, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push esi
and ecx, 3
push ebp
push 1
push ebx
rep stosb byte es:[edi], al
call sub.MSVCRT.dll_fread
push esi
call sub.MSVCRT.dll_fclose
add esp, 0x14
lea eax, [esp + 0x10]
lea ecx, [esp + 0x120]
push eax
push ecx
push ebp
push ebx
call fcn.004022c0
add esp, 0x10
mov esi, eax
test ebx, ebx
je 0x4026b4
push ebx
call sub.MSVCRT.dll_free
add esp, 4
test esi, esi
je 0x4026c5
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x510
ret
mov edx, dword [esp + 0x528]
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x524]
lea esi, [esp + 0x120]
mov dword [edx], ecx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
xor eax, eax
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x510
ret
Function at 0x45f769
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x463190
cmp edx, dword [eax]
je 0x45f78b
add eax, 8
inc ecx
cmp eax, 0x463220
jl 0x45f77c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x463190]
jne 0x45f8b9
mov eax, dword [0x463bb0]
cmp eax, 1
je 0x45f893
test eax, eax
jne 0x45f7bc
cmp dword [0x4630e4], 1
je 0x45f893
cmp edx, 0xfc
je 0x45f8b9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x45f7f3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00460670
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00460490
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x45f836
lea eax, [ebp - 0x1a4]
push eax
call fcn.00460490
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x46245c
push edi
call fcn.00460f00
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00460670
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00460680
lea eax, [ebp - 0xa0]
push 0x46243c
push eax
call fcn.00460680
push dword [esi + 0x463194]
lea eax, [ebp - 0xa0]
push eax
call fcn.00460680
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00460e75
add esp, 0x2c
pop edi
jmp 0x45f8b9
lea eax, [ebp + 8]
lea esi, [esi + 0x463194]
push 0
push eax
push dword [esi]
call fcn.00460490
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x1000c220
Capabilities:
Encode data using xor

Disassembly:
mov ch, byte [ebx + 0x68dee126]
pop ss
pop ecx
push 0x4474b2a1
Function at 0x4030f0
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
xor eax, eax
cmp dword [esp + 0x20], 0
je 0x4031d0
mov ebx, dword [esp + 0x24]
test ebx, ebx
je 0x4031d0
mov ebp, dword [esp + 0x28]
test ebp, ebp
je 0x40313a
mov ecx, 0x1505
xor edi, edi
nop
movzx edx, byte [ebx + edi]
test edx, edx
je 0x403141
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc edi
mov ecx, esi
cmp ebp, edi
jne 0x403120
jmp 0x403143
mov esi, 0x1505
jmp 0x403143
mov esi, ecx
mov ecx, dword [esp + 0x20]
mov ebx, dword [ecx + 0x20]
lea edi, [ebx - 1]
mov edx, ebx
sub edx, 1
mov dword [esp + 8], edx
jb 0x4031d0
and edi, esi
mov eax, dword [ecx + 4]
mov dword [esp + 4], eax
jmp 0x403174
inc edi
dec ebx
je 0x4031ce
mov eax, edi
and eax, dword [esp + 8]
mov edx, dword [esp + 4]
mov ebp, dword [edx + eax*4]
cmp ebp, 0xffffffff
je 0x4031ce
mov eax, dword [ecx + 8]
cmp dword [eax + ebp*4], esi
jne 0x403170
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + ebp*4]
mov dword [esp], eax
push eax
call fcn.00409b60
mov ecx, dword [esp + 0x24]
add esp, 4
cmp eax, dword [esp + 0x28]
jne 0x403170
push dword [esp + 0x28]
push dword [esp + 4]
push dword [esp + 0x2c]
call fcn.00409b80
mov ecx, dword [esp + 0x2c]
add esp, 0xc
test eax, eax
jne 0x403170
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + ebp*4]
jmp 0x4031d0
xor eax, eax
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4031e0
Capabilities:
Hash data using djb2

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x10
xor edi, edi
cmp dword [esp + 0x24], 0
je 0x4032e1
mov ebx, dword [esp + 0x28]
test ebx, ebx
je 0x4032e1
push ebx
call fcn.00409b60
add esp, 4
test eax, eax
je 0x40323a
mov ecx, 0x1505
xor ebp, ebp
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [ebx + ebp]
test edx, edx
je 0x403241
mov esi, ecx
shl esi, 5
add esi, ecx
add esi, edx
inc ebp
mov ecx, esi
cmp eax, ebp
jne 0x403220
jmp 0x403243
mov esi, 0x1505
jmp 0x403243
mov esi, ecx
mov dword [esp], eax
mov ecx, dword [esp + 0x24]
mov ebx, dword [ecx + 0x20]
lea ebp, [ebx - 1]
mov eax, ebx
sub eax, 1
mov dword [esp + 0xc], eax
jb 0x4032e1
and ebp, esi
mov eax, dword [ecx + 4]
mov dword [esp + 8], eax
jmp 0x403274
inc ebp
dec ebx
je 0x4032df
mov eax, ebp
and eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov edi, dword [edx + eax*4]
cmp edi, 0xffffffff
je 0x4032df
mov eax, dword [ecx + 8]
cmp dword [eax + edi*4], esi
jne 0x403270
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + edi*4]
mov dword [esp + 4], eax
push eax
call fcn.00409b60
mov ecx, dword [esp + 0x28]
add esp, 4
cmp eax, dword [esp]
jne 0x403270
push dword [esp]
push dword [esp + 8]
push dword [esp + 0x30]
call fcn.00409b80
mov ecx, dword [esp + 0x30]
add esp, 0xc
test eax, eax
jne 0x403270
mov eax, dword [ecx + 0x10]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x4032df
cmp dword [eax + 4], 2
mov edi, 0
jne 0x4032e1
mov edi, dword [eax + 8]
jmp 0x4032e1
xor edi, edi
mov eax, edi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret