joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5048cc
Capabilities:
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb0
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [esp + 4]
xor edx, edx
mov dword [eax], edx
lea eax, [esp + 0x10]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebp, dword [esp + 0x14]
call sub.kernel32.dll_GetCurrentProcessId
mov dword [esp + 8], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0xc], eax
xor edi, edi
mov ebx, dword [esp + 0xc]
shr ebx, 0x10
mov eax, ebx
shl eax, 0x10
mov ebx, eax
mov eax, edi
shl eax, 0x10
sub ebx, eax
mov eax, ebx
xor edx, edx
div ebp
imul ebp
mov ebx, eax
push 4
push 0x3000
push ebp
push ebx
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
test esi, esi
je 0x50494a
cmp esi, ebx
je 0x50494a
push 0x8000
push 0
push esi
call sub.kernel32.dll_VirtualFree_1
inc edi
jmp 0x5049c2
test esi, esi
jne 0x5049cb
push 0x1c
lea eax, [esp + 0x38]
push eax
push ebx
call sub.kernel32.dll_VirtualQuery_1
cmp dword [esp + 0x40], 0x118
jb 0x5049bf
mov eax, dword [esp + 0x48]
and eax, 4
cmp eax, 4
jne 0x5049bf
mov eax, dword [esp + 8]
xor edx, edx
xor eax, 0x23456789
xor edx, 0xabcdef01
cmp edx, dword [ebx + 4]
jne 0x5049bf
cmp eax, dword [ebx]
jne 0x5049bf
mov eax, dword [esp + 8]
xor edx, edx
xor eax, 0x10fedcba
xor edx, 0x98765432
cmp edx, dword [ebx + 0x114]
jne 0x5049bf
cmp eax, dword [ebx + 0x110]
jne 0x5049bf
lea eax, [ebx + 8]
mov edx, dword [esp]
movzx ecx, byte [eax]
inc ecx
call fcn.0040346c
je 0x5049cb
inc edi
xor ebx, ebx
cmp edi, 0x14
jle 0x504903
xor eax, eax
test esi, esi
je 0x504a31
cmp esi, ebx
jne 0x504a4d
mov eax, dword [esp + 8]
xor edx, edx
xor eax, 0x23456789
xor edx, 0xabcdef01
mov dword [ebx], eax
mov dword [ebx + 4], edx
lea eax, [ebx + 8]
mov edx, dword [esp]
call fcn.004033c0
mov eax, dword [esp + 8]
xor edx, edx
xor eax, 0x10fedcba
xor edx, 0x98765432
mov dword [ebx + 0x110], eax
mov dword [ebx + 0x114], edx
mov dword [ebx + 0x108], 1
lea eax, [ebx + 0x118]
mov edx, dword [esp + 4]
mov dword [edx], 1
jmp 0x504a4d
test ebx, ebx
je 0x504a4d
inc dword [ebx + 0x108]
lea eax, [ebx + 0x118]
mov edx, dword [esp + 4]
mov ecx, dword [ebx + 0x108]
mov dword [edx], ecx
add esp, 0x50
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x505b20
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x505ba4
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x505bbc
lea edx, [ebp - 0x108]
mov eax, dword [ebx]
call fcn.00403a88
lea edx, [ebp - 0x108]
lea eax, [ebp - 8]
call fcn.00404d6c
push dword [ebp - 8]
push 0x505bc8
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.00404e8c
mov eax, dword [ebp - 4]
call fcn.00404fcc
push eax
call sub.kernel32.dll_OutputDebugStringA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x505bab
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404b2c
ret
Function at 0x5063f0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef8
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x506474
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x50648c
lea edx, [ebp - 0x108]
mov eax, dword [ebx]
call fcn.00403a88
lea edx, [ebp - 0x108]
lea eax, [ebp - 8]
call fcn.00404d6c
push dword [ebp - 8]
push 0x506498
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.00404e8c
mov eax, dword [ebp - 4]
call fcn.00404fcc
push eax
call sub.kernel32.dll_OutputDebugStringA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50647b
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404b2c
ret

Function at 0x5095fc
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404fbc
xor eax, eax
push ebp
push 0x509694
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x14]
xor ecx, ecx
mov edx, 0x10
call fcn.004034dc
lea eax, [ebp - 0x58]
xor ecx, ecx
mov edx, 0x44
call fcn.004034dc
mov dword [ebp - 0x58], 0x44
mov word [ebp - 0x28], 0
xor eax, eax
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404fcc
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
je 0x50967e
push 0xffffffffffffffff
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_WaitForSingleObject
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50969b
lea eax, [ebp - 4]
call fcn.00404b08
ret
Function at 0x41b690
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ecx + 4]
xor eax, eax
push esi
push edi
mov edi, dword [ecx]
xor esi, esi
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edi
mov dword [edi + 0x16], eax
test ebx, ebx
jle 0x41b6cd
nop
movzx edx, byte [edi + esi]
mov ecx, eax
shr ecx, 0x18
inc esi
xor edx, ecx
shl eax, 8
xor eax, dword [edx*4 + 0x52b540]
cmp esi, ebx
jl 0x41b6b0
mov ecx, dword [ebp - 4]
mov ebx, dword [ecx + 0xc]
xor esi, esi
test ebx, ebx
jle 0x41b6fd
mov edi, dword [ecx + 8]
nop dword [eax]
movzx edx, byte [edi + esi]
mov ecx, eax
shr ecx, 0x18
inc esi
xor edx, ecx
shl eax, 8
xor eax, dword [edx*4 + 0x52b540]
cmp esi, ebx
jl 0x41b6e0
mov edi, dword [ebp - 8]
mov byte [edi + 0x16], al
mov ecx, eax
shr ecx, 8
mov byte [edi + 0x17], cl
mov ecx, eax
shr ecx, 0x10
mov byte [edi + 0x18], cl
shr eax, 0x18
mov byte [edi + 0x19], al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41f2d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x988
mov eax, dword [0x54a2f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
push eax
lea eax, [ebp - 0x988]
mov edi, ecx
push eax
call fcn.004f34d0
add esp, 8
lea eax, [ebp - 0x988]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41f3bc
push 1
lea eax, [ebp - 0x988]
push eax
lea eax, [ebp - 0x370]
push eax
call fcn.004f3140
push 1
lea eax, [ebp - 0x64]
push esi
push eax
call fcn.004f3560
add esp, 0x18
lea ecx, [ebp - 0x64]
push ecx
lea ecx, [ebp - 0x370]
push ecx
lea ecx, [edi + 0x634]
call fcn.0041fc10
test eax, eax
je 0x41f3bc
push ebx
lea ecx, [ebp - 0x370]
lea ebx, [edi + 0x1c]
mov eax, ecx
mov edx, ebx
sub edx, eax
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x41f361
lea edx, [ebp - 0x64]
lea ecx, [edi + 0x328]
mov eax, edx
mov esi, ecx
sub esi, eax
nop dword [eax]
mov al, byte [edx]
lea edx, [edx + 1]
mov byte [esi + edx - 1], al
test al, al
jne 0x41f380
push ecx
push ebx
lea ecx, [edi + 0x634]
mov dword [edi + 0x14], 0
call fcn.0041fd00
pop ebx
mov dword [edi + 0x18], eax
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004259b7
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.004259b7
mov esp, ebp
pop ebp
ret 8

Function at 0x41f6f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0
lea eax, [ebp - 4]
mov esi, ecx
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41f71a
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 4]
add dword [esi + 0x14], eax
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x41f770
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0
lea eax, [ebp - 4]
mov esi, ecx
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x41f79a
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 4]
add dword [esi + 0x14], eax
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x422e00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ecx + 0x64]
xor ebx, ebx
imul edi, dword [ebp + 0x10]
xor esi, esi
mov dword [ebp - 4], ecx
test edi, edi
je 0x422e6b
nop dword [eax]
mov edx, dword [ebp + 0xc]
mov eax, esi
shr eax, 1
movzx edx, byte [eax + edx]
lea eax, [ecx + 0xa8]
lea eax, [eax + ebx*8]
mov ecx, esi
push eax
mov eax, edx
shr edx, 4
and eax, 0xf
and cl, 1
cmove edx, eax
push edx
call fcn.00425740
mov ecx, dword [ebp + 8]
add esp, 8
mov word [ecx + esi*2], ax
mov eax, ebx
mov ecx, dword [ebp - 4]
xor eax, 1
inc esi
cmp dword [ecx + 0x64], 2
cmovne eax, ebx
mov ebx, eax
cmp esi, edi
jb 0x422e20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4238e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
xor esi, esi
mov eax, dword [edi + 0x64]
imul eax, dword [ebp + 0x10]
mov dword [ebp + 0x10], eax
test eax, eax
je 0x42393b
nop word [eax + eax]
push dword [edi + 0x8c]
lea eax, [edi + 0xa8]
lea eax, [eax + ebx*8]
push eax
mov eax, dword [ebp + 0xc]
movzx eax, byte [esi + eax]
push eax
call fcn.004257c0
mov ecx, dword [ebp + 8]
add esp, 0xc
mov word [ecx + esi*2], ax
mov eax, ebx
xor eax, 1
inc esi
cmp dword [edi + 0x64], 2
cmovne eax, ebx
mov ebx, eax
cmp esi, dword [ebp + 0x10]
jb 0x423900
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x4251d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x508b46
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x54a2f8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
lea ecx, [edi + 0x10]
mov dword [edi], vtable.CWaveStreamCtrl.0
call fcn.00449d90
mov dword [ebp - 4], 0
lea ecx, [edi + 0x30]
call fcn.0041f3e0
mov byte [ebp - 4], 1
lea ecx, [edi + 0x10]
mov eax, dword [ebp + 8]
mov dword [edi + 0x28], eax
mov eax, dword [ebp + 0xc]
push 0xffffffffffffffff
mov dword [edi + 0x24], 0
mov dword [edi + 0x2c], eax
call fcn.00449f00
mov eax, dword [ebp + 0x10]
mov dword [edi + 8], eax
mov eax, dword [ebp + 0x14]
mov dword [edi + 4], eax
mov eax, dword [ebp + 0x18]
mov dword [edi + 0xc], eax
mov dword [ebp - 4], 0xffffffff
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x14
Function at 0x429f10
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
test ebx, ebx
jne 0x429f2f
pop edi
mov eax, 0x80004003
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push esi
xor eax, eax
lea esi, [edi + 4]
cmp edi, 0xc
cmove esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x24]
xorps xmm0, xmm0
push eax
movups xmmword [ebx], xmm0
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 8]
mov dword [ebp + 8], eax
test eax, eax
je 0x42a005
dec eax
test dword [ebp - 8], eax
jne 0x42a005
cmp dword [edi + 0x44], 1
jne 0x429f8a
push esi
mov edi, 0x8004020f
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [edi + 0x20]
cmp eax, dword [edi + 0x30]
jge 0x429fa9
push esi
mov edi, 0x80040210
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 0xc]
mov ecx, dword [ecx + 4]
add ecx, eax
mov dword [ebp + 0x10], eax
mov eax, ecx
cdq
idiv dword [ebp + 8]
test edx, edx
je 0x429fc5
mov eax, dword [ebp + 8]
sub eax, edx
add ecx, eax
sub ecx, dword [ebp + 0x10]
mov dword [edi + 0x34], ecx
mov dword [ebx + 4], ecx
mov ecx, dword [ebp + 0xc]
push esi
mov eax, dword [ecx]
mov dword [edi + 0x2c], eax
mov dword [ebx], eax
mov eax, dword [ecx + 8]
mov dword [edi + 0x38], eax
mov dword [ebx + 8], eax
mov eax, dword [ecx + 0xc]
mov dword [edi + 0x3c], eax
mov dword [ebx + 0xc], eax
mov dword [edi + 0x40], 1
xor edi, edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push esi
mov edi, 0x8004020e
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x42f720
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
mov dword [esi + 0x50], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x3c], eax
cmp eax, 0xffffffff
je 0x42f7e5
mov ecx, dword [ebp + 0x18]
push 0
mov dword [ebp + 8], ecx
lea ecx, [ebp + 8]
push ecx
push dword [ebp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x42f7e5
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x48], 0x20000
mov dword [esi + 0x4c], 0
push ebx
test eax, eax
jl 0x42f7a2
jg 0x42f794
mov ebx, dword [ebp + 0xc]
cmp ebx, 0x20000
jbe 0x42f7a5
mov ebx, 0x20000
mov dword [ebp - 4], 0
jmp 0x42f7a8
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], eax
push dword [esi + 0x1c]
call fcn.004259c8
push ebx
call fcn.00425a0b
add esp, 8
mov dword [esi + 0x1c], eax
lea ecx, [ebp - 4]
push 0
push ecx
push ebx
push eax
push dword [esi + 0x3c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 4], ebx
pop ebx
je 0x42f7f2
push dword [esi + 0x1c]
call fcn.004259c8
add esp, 4
mov dword [esi + 0x1c], 0
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 0x14
push dword [esi + 0x38]
call fcn.004259c8
mov ecx, edi
add esp, 4
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42f802
sub ecx, edx
mov edx, 2
sar ecx, 1
lea eax, [ecx + 1]
xor ecx, ecx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00425a0b
mov ecx, eax
add esp, 4
mov dword [esi + 0x38], ecx
movzx eax, word [edi]
lea edi, [edi + 2]
mov word [ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x42f832
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [esi + 0x20], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x40], eax
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x44], eax
xor eax, eax
pop edi
mov dword [esi + 0x24], ecx
mov dword [esi + 0x50], 1
pop esi
mov esp, ebp
pop ebp
ret 0x14
Function at 0x42f880
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5096f8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x54a2f8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0x50], 0
jne 0x42f8c9
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea esi, [edi + 4]
push esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor eax, eax
mov dword [ebp - 4], 0
cmp eax, dword [edi + 0x4c]
jl 0x42f91b
mov ebx, dword [ebp + 0xc]
jg 0x42f8ee
cmp ebx, dword [edi + 0x48]
jbe 0x42f91b
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x42f905
push eax
call fcn.004259c8
add esp, 4
mov dword [edi + 0x1c], 0
push ebx
call fcn.00425a0b
add esp, 4
mov dword [edi + 0x1c], eax
mov dword [edi + 0x48], ebx
mov dword [edi + 0x4c], 0
call dword [sym.imp.WINMM.dll_timeGetTime]
mov edx, dword [edi + 0x28]
mov ecx, dword [ebp + 0xc]
mov ebx, dword [edi + 0x20]
mov dword [ebp - 0x10], eax
mov eax, edx
add eax, ecx
mov dword [ebp + 0xc], eax
mov eax, dword [edi + 0x2c]
adc eax, 0
cmp eax, dword [edi + 0x24]
jl 0x42f94a
jg 0x42f946
cmp dword [ebp + 0xc], ebx
jbe 0x42f94a
sub ebx, edx
jmp 0x42f94c
mov ebx, ecx
lea eax, [edx + ebx]
mov ecx, dword [edi + 0x34]
xor edx, edx
div dword [edi + 0x30]
mov edx, eax
mov eax, dword [ebp - 0x10]
sub eax, ecx
cmp eax, edx
jae 0x42f96e
sub ecx, dword [ebp - 0x10]
add ecx, edx
push ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [edi + 0x28]
mov ecx, dword [edi + 0x40]
add ecx, eax
mov eax, dword [edi + 0x44]
push 0
adc eax, dword [edi + 0x2c]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push ecx
push dword [edi + 0x3c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x18]
push eax
push ebx
push dword [edi + 0x1c]
push dword [edi + 0x3c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
push dword [edi + 0x1c]
push dword [ebp + 8]
call fcn.004310c0
mov ecx, dword [ebp + 0x14]
add esp, 0xc
add dword [edi + 0x28], ebx
adc dword [edi + 0x2c], 0
push esi
mov dword [ecx], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x430210
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x80], 0
jne 0x430260
push dword [esi + 0x7c]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [ebp - 4]
push eax
push 0
push esi
push 0x42ff50
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x80], eax
test eax, eax
jne 0x430260
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x430262
movzx eax, ax
or eax, 0x80070000
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x43daf5
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x43db34
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43db34
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43db34
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x43db34
cmp dword [ecx + 0x74], 0xe
jbe 0x43db34
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4413a6
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x513424
push 0x51341c
push str.FlsAlloc
push 0x1f
call fcn.004412a1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4413da
push dword [ebp + 8]
mov ecx, esi
call dword [0x50f60c]
call esi
jmp 0x4413e0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x441424
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x513434
push 0x51342c
push str.FlsGetValue
push 0x21
call fcn.004412a1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x44145b
push dword [ebp + 8]
mov ecx, esi
call dword [0x50f60c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x441463
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x51343c
push 0x513434
push str.FlsSetValue
push 0x22
call fcn.004412a1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x44149d
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x50f60c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x442422
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x54a2f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x44246d
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004425bd
test al, al
jne 0x442467
sub edx, 2
cmp edx, edi
jne 0x44244d
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x44248f
lea eax, [edi + 2]
cmp edx, eax
je 0x44248f
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0044236e
add esp, 0x10
jmp 0x442589
push esi
lea ecx, [ebp - 0x255]
call fcn.004425bd
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4424d2
push dword [ebp - 0x25c]
jmp 0x44247f
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x44250f
cmp word [ebp - 0x226], 0
je 0x442530
cmp word [ebp - 0x226], ax
jne 0x44250f
cmp word [ebp - 0x224], 0
je 0x442530
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0044236e
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x44257c
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4424e9
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x442564
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x442589
push 0x44219e
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004373d0
add esp, 0x10
jmp 0x442559
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004259b7
leave
ret
Function at 0x449e60
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push 0xc
mov esi, ecx
call fcn.004259cd
mov edx, dword [ebp + 8]
lea ecx, [esi + 8]
add esp, 4
mov dword [eax], edx
mov edx, dword [ebp + 0xc]
push ecx
push dword [ebp + 0x18]
mov dword [eax + 4], edx
push eax
push 0x449e20
push dword [ebp + 0x14]
mov dword [eax + 8], esi
push dword [ebp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateThread]
push dword [ebp + 0x10]
mov dword [esi + 4], eax
mov ecx, 0x2710
xor esi, esi
test eax, eax
push eax
cmove esi, ecx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, esi
pop esi
pop ebp
ret 0x18

Function at 0x44b8c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
mov ebx, edx
test edi, edi
je 0x44b8f8
imul edx, dword [ecx], 0xe9
movzx eax, byte [esi + ebx]
add eax, edx
mov dword [ecx], eax
add byte [ecx + 4], al
xor byte [ecx + 5], al
movzx eax, byte [esi + ebx]
add byte [ecx + 6], al
movzx eax, byte [esi + ebx]
inc esi
xor byte [ecx + 7], al
cmp esi, edi
jb 0x44b8d1
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x450160
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
mov eax, edx
mov dword [ebp - 8], ecx
mov ecx, dword [0x562e10]
push edi
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x20]
push eax
call fcn.00458b40
test eax, eax
je 0x450289
call fcn.00450ca0
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.004509c0
test eax, eax
je 0x450278
mov ecx, dword [eax + 0x20]
mov ebx, 1
call fcn.00500420
test eax, eax
jne 0x4501c5
mov ecx, edi
call fcn.00450510
test eax, eax
jne 0x4501c5
xor ebx, ebx
mov esi, DirectSoundCreate8
jmp 0x4501c8
mov esi, dword [ebp - 8]
call fcn.00450c90
test ebx, ebx
je 0x45026f
push 0x1c
call fcn.004259cd
add esp, 4
mov esi, eax
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 4], eax
mov eax, dword [ebp - 4]
push esi
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0xc]
push 0
push 0x4502a0
mov dword [esi + 8], 0
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], 0
call fcn.0043729b
add esp, 0xc
cmp eax, 0xffffffff
je 0x450258
push 2
push eax
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push 0xffffffffffffffff
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
mov dword [esi + 4], 0
mov dword [eax], esi
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x1c
push esi
call fcn.004259fd
add esp, 8
mov eax, DirectSoundCreate8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00450c90
mov eax, 0x80000003
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 0x80000005
pop ebx
mov esp, ebp
pop ebp
ret