joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43955b
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, dword [0x4d3d98]
jne 0x439577
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
cmp dword [0x4d2f80], 0
je 0x439648
mov ecx, 0x4d34a8
call fcn.004393b9
cmp eax, 1
je 0x439648
mov eax, dword [0x4d304c]
mov edx, dword [0x4d3048]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [0x4d3044]
sub esi, dword [0x4d303c]
mov ecx, dword [ebx]
mov dword [ebp - 4], eax
mov eax, dword [0x4d3040]
sub eax, dword [0x4d3038]
cmp ecx, edx
push edi
mov dword [ebp - 0x10], edx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esi
jge 0x4395d6
or dword [ebx], 0xffffffff
jmp 0x4395fe
add eax, edx
cmp ecx, eax
jl 0x4395e4
mov dword [ebx], 0x320
jmp 0x4395fe
sub ecx, edx
mov dword [ebp + 8], ecx
fild dword [ebp + 8]
fild dword [ebp - 8]
fdivr qword [0x49d570]
fmulp st(1)
call fcn.004828ac
mov dword [ebx], eax
mov edi, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
mov eax, dword [edi]
cmp eax, ecx
jge 0x43960f
or dword [edi], 0xffffffff
jmp 0x43963a
add esi, ecx
cmp eax, esi
jl 0x43961d
mov dword [edi], 0x258
jmp 0x43963a
sub eax, ecx
mov dword [ebp + 8], eax
fild dword [ebp + 8]
fild dword [ebp - 0xc]
fdivr qword [0x49d568]
fmulp st(1)
call fcn.004828ac
mov ecx, dword [ebp - 4]
mov dword [edi], eax
mov eax, dword [ebp - 0x10]
add dword [ebx], eax
add dword [edi], ecx
pop edi
pop esi
mov al, 1
pop ebx
leave
ret
xor al, al
leave
ret

Function at 0x43c83d
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x1a4], 0
je 0x43c8ac
push ebx
push edi
push dword [esi + 0x1a8]
mov byte [esi + 0x1ac], 1
call dword [sym.imp.KERNEL32.dll_SetEvent]
xor ebx, ebx
lea edi, [esi + 0x1ad]
cmp byte [edi], 0
jne 0x43c882
push 0xa
push dword [esi + 0x1a4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
inc ebx
cmp ebx, 0x64
jl 0x43c866
cmp byte [edi], 0
pop edi
pop ebx
jne 0x43c894
push 1
push dword [esi + 0x1a4]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0x1a4]
test eax, eax
je 0x43c8ac
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi + 0x1a4], 0
pop esi
ret

Function at 0x43cc44
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [sym.imp.galstars.dll_ReadFileX]
push ebx
push esi
push edi
test eax, eax
mov esi, ecx
je 0x43cc6c
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
lea ecx, [ebp + 0x10]
push 0
push ecx
push dword [ebp + 0x10]
push ebx
push edi
call eax
test eax, eax
jne 0x43cc70
xor eax, eax
jmp 0x43ccc0
mov eax, dword [esi + 0x1d4]
test eax, eax
je 0x43ccbd
cmp edi, dword [esi + 0xf4]
jne 0x43ccbd
mov dword [ebp + 8], ebx
mov dword [ebp + 0xc], eax
mov edi, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
or ecx, ecx
je 0x43ccbd
or edx, edx
je 0x43ccbd
push ecx
mov ebx, 4
shr ecx, 2
je 0x43ccae
mov eax, dword [edi]
xor eax, edx
mov dword [edi], eax
add edi, ebx
loop 0x43cca4
pop ecx
and ecx, 3
je 0x43ccbd
mov al, byte [edi]
xor eax, edx
mov byte [edi], al
inc edi
loop 0x43ccb4
mov eax, dword [ebp + 0x10]
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x440172
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 0xc], esi
push edi
je 0x44018d
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x54]
mov ecx, dword [eax]
mov edi, dword [eax + 4]
cmp ecx, esi
jne 0x440191
xor eax, eax
jmp 0x4401bc
push dword [ebp + 0x10]
mov eax, dword [ecx]
push dword [ebp + 0xc]
call dword [eax + 0x14]
cmp edi, esi
mov dword [ebp + 8], eax
je 0x4401bc
cmp eax, esi
jbe 0x4401bc
mov ecx, edi
call fcn.0041b327
mov ecx, dword [ebp + 0xc]
xor byte [esi + ecx], al
mov eax, dword [ebp + 8]
inc esi
cmp esi, eax
jb 0x4401a7
pop edi
pop esi
pop ebp
ret

Function at 0x440c51
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
push edi
push dword [ebp + 0x18]
push dword [ebp + 0x1c]
push 1
call fcn.0045de66
mov esi, eax
xor ebx, ebx
add esp, 0xc
cmp esi, ebx
mov dword [ebp - 8], esi
je 0x440cb6
push esi
call fcn.00446e78
mov eax, 0xf4240
push ebx
mov dword [esi + 0x264], eax
push esi
mov dword [esi + 0x268], eax
call fcn.00483b00
add esp, 0xc
test eax, eax
je 0x440cbd
mov edi, dword [ebp - 8]
lea esi, [edi + 0xac]
push dword [esi]
push edi
call fcn.0045df72
push edi
mov dword [esi], ebx
call fcn.0045dec5
add esp, 0xc
xor eax, eax
jmp 0x440dbf
push dword [ebp + 0x20]
mov esi, dword [ebp - 8]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push esi
call fcn.0045e004
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call fcn.0045de37
mov ecx, dword [ebp + 8]
mov edi, 0x49db48
mov dword [ebp - 4], ecx
add esp, 0x20
sub dword [ebp - 4], edi
mov eax, edi
mov edx, dword [ebp - 4]
mov dl, byte [edx + eax]
cmp dl, byte [eax]
je 0x440cff
or byte [esi + 0x6e], 2
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x440cf1
test byte [esi + 0x6e], 2
je 0x440d7d
cmp ecx, ebx
je 0x440d53
mov al, byte [ecx]
cmp al, byte [0x49db48]
jne 0x440d33
cmp al, 0x31
jne 0x440d29
mov dl, byte [ecx + 2]
cmp dl, byte [0x49db4a]
jne 0x440d33
cmp al, 0x30
jne 0x440d7d
cmp byte [ecx + 2], 0x39
jge 0x440d7d
cmp ecx, ebx
je 0x440d53
push ecx
lea eax, [ebp - 0x58]
push str.Application_was_compiled_with_png.h_from_libpng__.20s
push eax
call fcn.0048231c
lea eax, [ebp - 0x58]
push eax
push esi
call fcn.0045dc0a
add esp, 0x14
push edi
lea eax, [ebp - 0x58]
push str.Application__is__running_with_png.c_from_libpng__.20s
push eax
call fcn.0048231c
lea eax, [ebp - 0x58]
push eax
push esi
call fcn.0045dc0a
push str.Incompatible_libpng_version_in_application_and_library
push esi
mov dword [esi + 0x6c], ebx
call fcn.0045db7a
add esp, 0x1c
mov eax, 0x2000
push eax
push esi
mov dword [esi + 0xb0], eax
call fcn.0045df09
push ebx
push ebx
push ebx
push esi
mov dword [esi + 0xac], eax
call fcn.00446862
push ebx
push ebx
push 1
push ebx
push esi
call fcn.00441408
push ebx
push esi
call fcn.00483b00
add esp, 0x34
test eax, eax
je 0x440dbc
jmp 0x483ae6
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x446a37
Capabilities:
Terminate process

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov esi, 0x120
cmp dword [esp + 0x10], esi
mov eax, dword [edi]
jae 0x446a5b
push eax
call fcn.0045dec5
push 2
call fcn.0045de55
pop ecx
mov dword [edi], eax
pop ecx
push esi
push 0
push eax
call fcn.004826e0
add esp, 0xc
pop edi
pop esi
ret

Function at 0x4473de
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
mov edx, dword [esi + 0x3c]
test edx, edx
jne 0x4473f4
or eax, 0xffffffff
jmp 0x4474b0
mov eax, dword [ebp + 0xc]
mov ecx, dword [esi + 0x34]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x38]
cmp eax, ecx
jb 0x44740b
xor eax, eax
jmp 0x4474b0
push ebx
mov ebx, dword [esi + 0x40]
push edi
mov edi, dword [edx + 8]
xor edx, edx
test ebx, ebx
je 0x44741c
mov edx, dword [ebx + 8]
mov ebx, dword [ebp + 0xc]
add ebx, eax
cmp ebx, ecx
jbe 0x447470
sub ecx, eax
cmp ecx, 1
mov dword [ebp - 4], ecx
jae 0x447433
or dword [ebp - 4], 0xffffffff
xor ecx, ecx
cmp edx, ecx
jne 0x44744c
push dword [ebp - 4]
add eax, edi
push eax
push dword [ebp + 8]
call fcn.00481f00
add esp, 0xc
jmp 0x447468
cmp dword [ebp - 4], ecx
jbe 0x447468
mov eax, dword [esi + 0x38]
add eax, ecx
mov bl, byte [eax + edx]
xor bl, byte [eax + edi]
mov eax, dword [ebp + 8]
mov byte [ecx + eax], bl
inc ecx
cmp ecx, dword [ebp - 4]
jb 0x447451
mov eax, dword [esi + 0x34]
mov dword [esi + 0x38], eax
jmp 0x4474ab
xor ecx, ecx
cmp edx, ecx
jne 0x447489
push dword [ebp + 0xc]
add eax, edi
push eax
push dword [ebp + 8]
call fcn.00481f00
add esp, 0xc
jmp 0x4474a5
cmp dword [ebp + 0xc], ecx
jbe 0x4474a5
mov eax, dword [esi + 0x38]
add eax, ecx
mov bl, byte [eax + edx]
xor bl, byte [eax + edi]
mov eax, dword [ebp + 8]
mov byte [ecx + eax], bl
inc ecx
cmp ecx, dword [ebp + 0xc]
jb 0x44748e
mov eax, dword [ebp + 0xc]
add dword [esi + 0x38], eax
mov eax, dword [ebp - 4]
pop edi
pop ebx
pop esi
leave
ret 8
Function at 0x453d2c
Capabilities:
Get number of processors

Disassembly:
mov eax, 0x4984c0
call fcn.00481b40
sub esp, 0x24
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x20], esi
call fcn.00452b18
and dword [ebp - 4], 0
push fcn.00438879
push fcn.00438826
lea edi, [esi + 0x44]
push 2
push 0x10
push edi
call fcn.0048236e
push fcn.004184d6
push fcn.004183f7
lea ebx, [esi + 0x64]
push 2
push 0x78
push ebx
mov byte [ebp - 4], 1
call fcn.0048236e
mov dword [ebp - 0x18], ebx
mov byte [ebp - 4], 2
mov dword [esi], 0x49e5d8
mov dword [ebp - 0x14], 0x4bd1f4
mov ebx, str.crossing.wav
push dword [0x4d3064]
mov ecx, edi
call fcn.00438884
push 4
call fcn.00413246
test eax, eax
pop ecx
mov dword [ebp - 0x1c], eax
je 0x453dfb
mov al, byte [ebp - 0xd]
push 0
lea ecx, [ebp - 0x30]
mov byte [ebp - 0x30], al
call fcn.004015d0
push ebx
call fcn.00481630
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x30]
call fcn.00401608
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 4], 3
test eax, eax
jne 0x453de2
mov eax, 0x49a4a0
push eax
mov ecx, edi
push dword [ebp - 0x1c]
call fcn.004388d9
push 1
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
call fcn.004015d0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
push 1
push dword [eax]
push 4
call fcn.00419bcc
add dword [ebp - 0x14], 4
add dword [ebp - 0x18], 0x78
add edi, 0x10
cmp dword [ebp - 0x14], 0x4bd1fc
jl 0x453d95
or dword [esi + 0x24], 0xffffffff
or dword [esi + 0x28], 0xffffffff
mov ecx, dword [ebp - 0xc]
xor eax, eax
and byte [esi + 0x40], al
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x2c], 1
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x4555e4
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x49867f
call fcn.00481b40
push ecx
push ecx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x14], esi
call fcn.00452b18
mov al, byte [ebp - 0xd]
xor edi, edi
lea ecx, [esi + 0x30]
push edi
mov dword [ebp - 4], edi
mov byte [ecx], al
call fcn.004015d0
push fcn.004184d6
push fcn.004183f7
push 3
lea eax, [esi + 0x50]
push 0x78
push eax
mov byte [ebp - 4], 1
call fcn.0048236e
mov cl, byte [ebp - 0xd]
lea eax, [esi + 0x1b8]
mov byte [eax], cl
mov ecx, dword [ebp - 0xc]
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
mov dword [esi], 0x49e850
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x45733a
Capabilities:
Get number of processors

Disassembly:
mov eax, 0x4988cf
call fcn.00481b40
push ecx
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.00452b18
xor ebx, ebx
lea ecx, [esi + 0x64]
mov dword [ebp - 4], ebx
mov byte [esi + 0x30], bl
mov byte [esi + 0x31], 1
call fcn.004183f7
lea ecx, [esi + 0xdc]
mov byte [ebp - 4], 1
call fcn.004183f7
mov ecx, dword [ebp - 0xc]
mov dword [esi], 0x49ea48
mov dword [esi + 0x60], ebx
mov byte [esi + 0x21], bl
mov dword [esi + 0x2c], ebx
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x458021
Capabilities:
Read file via mapping

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.0045800a
mov eax, dword [esi + 0x14]
shl eax, 3
push eax
call fcn.00481b5f
xor ebx, ebx
pop ecx
cmp byte [esi + 0x10], bl
mov dword [esi + 8], eax
jne 0x4580a9
push ebx
push 8
push ebx
push 4
push ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
push ebx
push ebx
push ebx
push 0xf001f
push eax
mov dword [esp + 0x28], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
xor edi, edi
cmp dword [esi + 0x14], ebx
mov ebp, eax
jle 0x458099
push ebp
push edi
push 0x1010
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esi + 8]
push 8
push ebp
lea eax, [eax + edi*8]
push eax
call fcn.00481f00
add esp, 0xc
inc edi
cmp edi, dword [esi + 0x14]
jl 0x458071
push ebp
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [esp + 0x14]
jmp 0x4581b9
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebp, eax
cmp ebp, ebx
je 0x4581bf
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.VirtualAllocEx
push ebp
call edi
push str.VirtualFreeEx
push ebp
mov dword [esp + 0x1c], eax
call edi
cmp dword [esp + 0x14], ebx
mov dword [esp + 0x20], eax
je 0x4581bf
cmp eax, ebx
je 0x4581bf
mov edi, 0x3000
push 4
push edi
push 8
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x18]
push eax
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [esp + 0x18]
push ebx
push 0x38
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 4
push edi
mov ebp, eax
push 8
push ebx
push ebp
call dword [esp + 0x28]
xor edi, edi
cmp dword [esi + 0x14], ebx
mov dword [esp + 0x14], eax
jle 0x45819c
lea eax, [esp + 0x1c]
push eax
push 8
push dword [esp + 0x18]
push dword [esp + 0x20]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x45819c
push dword [esp + 0x14]
push edi
push 0x1010
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
je 0x45819c
lea eax, [esp + 0x1c]
push eax
push 8
push dword [esp + 0x18]
push dword [esp + 0x20]
push ebp
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x45819c
mov eax, dword [esi + 8]
push 8
push dword [esp + 0x14]
lea eax, [eax + edi*8]
push eax
call fcn.00481f00
add esp, 0xc
inc edi
cmp edi, dword [esi + 0x14]
jl 0x458136
mov esi, 0x8000
push esi
push ebx
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push esi
push ebx
push dword [esp + 0x1c]
push ebp
call dword [esp + 0x30]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x462c91
Capabilities:
Get number of processors

Disassembly:
mov eax, 0x498ee1
call fcn.00481b40
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, ecx
push ebx
mov dword [ebp - 0x10], esi
call fcn.004630e9
mov al, byte [ebp + 0xb]
xor edi, edi
lea ecx, [esi + 0x34]
mov dword [esi + 0x30], ebx
push edi
mov dword [ebp - 4], edi
mov byte [ecx], al
call fcn.004015d0
mov al, byte [ebp + 0xb]
lea ecx, [esi + 0x44]
push edi
mov byte [ebp - 4], 1
mov byte [ecx], al
call fcn.004015d0
mov al, byte [ebp + 0xb]
lea ecx, [esi + 0x54]
push edi
mov byte [ebp - 4], 2
mov byte [ecx], al
call fcn.004015d0
mov al, byte [ebp + 0xb]
lea ecx, [esi + 0x64]
push edi
mov byte [ebp - 4], 3
mov byte [ecx], al
call fcn.004015d0
mov ecx, dword [ebp - 0xc]
mov dword [esi], 0x49f2e0
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x465876
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x499461
call fcn.00481b40
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, ecx
push ebx
mov dword [ebp - 0x10], esi
call fcn.00469de9
mov al, byte [ebp + 0xb]
xor edi, edi
lea ecx, [esi + 0x20]
mov dword [esi + 0x1c], ebx
push edi
mov dword [ebp - 4], edi
mov byte [ecx], al
call fcn.004015d0
mov al, byte [ebp + 0xb]
lea ecx, [esi + 0x30]
push edi
mov byte [ebp - 4], 1
mov byte [ecx], al
call fcn.004015d0
mov al, byte [ebp + 0xb]
lea ecx, [esi + 0x40]
push edi
mov byte [ebp - 4], 2
mov byte [ecx], al
call fcn.004015d0
mov al, byte [ebp + 0xb]
mov dword [esi + 0x68], edi
mov byte [esi + 0x64], al
mov dword [esi + 0x6c], edi
mov dword [esi + 0x70], edi
mov cl, byte [ebp + 0xb]
lea eax, [esi + 0x74]
mov byte [eax], cl
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
mov cl, byte [ebp + 0xb]
lea eax, [esi + 0x84]
mov byte [eax], cl
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov dword [eax + 0xc], edi
mov ecx, esi
mov byte [ebp - 4], 6
mov dword [esi], 0x49fc00
call fcn.00465940
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x465be4
Capabilities:
Get number of processors

Disassembly:
mov eax, 0x499517
call fcn.00481b40
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], 0x49fc00
lea ecx, [esi + 0x84]
mov dword [ebp - 4], 5
call fcn.00455eee
lea ecx, [esi + 0x74]
mov byte [ebp - 4], 4
call fcn.00455eee
lea ecx, [esi + 0x64]
mov byte [ebp - 4], 3
call fcn.00402b69
push 1
lea ecx, [esi + 0x40]
mov byte [ebp - 4], 2
call fcn.004015d0
push 1
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 1
call fcn.004015d0
and byte [ebp - 4], 0
push 1
lea ecx, [esi + 0x20]
call fcn.004015d0
or dword [ebp - 4], 0xffffffff
mov ecx, esi
call fcn.00469e2b
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x4676b3
Capabilities:
Create thread

Disassembly:
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x80], 0
jne 0x467700
push dword [esi + 0x7c]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [esp + 4]
push eax
push 0
push esi
push 0x467a22
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi + 0x80], eax
jne 0x467700
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x467702
and eax, 0xffff
or eax, 0x80070000
jmp 0x467702
xor eax, eax
pop esi
pop ecx
ret

Function at 0x46a100
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
xor edx, edx
cmp ecx, edx
je 0x46a1a0
push ebx
push ebp
push esi
mov esi, dword [ecx]
push edi
xor eax, eax
mov byte [esi + 0x16], dl
mov esi, dword [ecx]
mov byte [esi + 0x17], dl
mov esi, dword [ecx]
mov byte [esi + 0x18], dl
mov esi, dword [ecx]
mov byte [esi + 0x19], dl
mov edi, dword [ecx + 4]
xor esi, esi
cmp edi, edx
jle 0x46a152
mov ebp, dword [ecx]
xor edx, edx
mov ebx, eax
mov dl, byte [esi + ebp]
shr ebx, 0x18
xor edx, ebx
shl eax, 8
mov edx, dword [edx*4 + 0x4a0030]
xor eax, edx
inc esi
cmp esi, edi
jl 0x46a133
xor edx, edx
mov edi, dword [ecx + 0xc]
xor esi, esi
cmp edi, edx
jle 0x46a17b
mov ebp, dword [ecx + 8]
xor edx, edx
mov ebx, eax
mov dl, byte [esi + ebp]
shr ebx, 0x18
xor edx, ebx
shl eax, 8
mov edx, dword [edx*4 + 0x4a0030]
xor eax, edx
inc esi
cmp esi, edi
jl 0x46a15e
mov edx, dword [ecx]
pop edi
mov byte [edx + 0x16], al
mov esi, dword [ecx]
mov edx, eax
shr edx, 8
mov byte [esi + 0x17], dl
mov esi, dword [ecx]
mov edx, eax
shr edx, 0x10
mov byte [esi + 0x18], dl
mov ecx, dword [ecx]
shr eax, 0x18
pop esi
pop ebp
mov byte [ecx + 0x19], al
pop ebx
ret
Function at 0x47a620
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
call fcn.0047a5e0
test al, al
je 0x47a65e
lea eax, [esp]
mov dword [esp], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x47a65e
cmp dword [esp + 4], 5
jne 0x47a65e
mov eax, dword [esp + 8]
test eax, eax
jne 0x47a65e
mov al, 1
add esp, 0x94
ret
xor al, al
add esp, 0x94
ret

Function at 0x47a6d0
Capabilities:
Query or enumerate registry value

Disassembly:
mov cl, byte [esp + 0x14]
sub esp, 8
xor eax, eax
push ebx
push esi
test cl, cl
je 0x47a6fc
call fcn.0047a670
mov bl, al
call fcn.0047a620
test bl, bl
je 0x47a6fa
test al, al
jne 0x47a6fa
mov eax, 0x100
jmp 0x47a6fc
xor eax, eax
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x24]
or eax, 0x20019
push ecx
push eax
mov eax, dword [esp + 0x20]
push 0
xor bl, bl
push edx
push eax
mov dword [esp + 0x1c], 0x104
mov byte [esi], bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x47a766
mov eax, dword [esp + 0x20]
lea ecx, [esp + 8]
lea edx, [esp + 0xc]
push ecx
push esi
push edx
test eax, eax
push 0
jne 0x47a749
push 0x4d105c
jmp 0x47a74a
push eax
mov eax, dword [esp + 0x38]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x47a75b
mov bl, 1
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
pop esi
pop ebx
add esp, 8
ret

Function at 0x47a840
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
mov esi, dword [esp + 0xc]
or eax, 0xffffffff
xor ecx, ecx
test esi, esi
jbe 0x47a87a
push ebx
push edi
mov edi, dword [esp + 0x10]
mov dl, byte [ecx + edi]
mov ebx, eax
and edx, 0xff
and ebx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x4a05c8]
xor eax, edx
inc ecx
cmp ecx, esi
jb 0x47a854
pop edi
pop ebx
not eax
pop esi
ret
Function at 0x47a880
Capabilities:
Get file size
Read file on windows

Disassembly:
mov ecx, dword [esp + 0xc]
sub esp, 0x10c
lea eax, [esp + 8]
push ebp
push esi
push 0x104
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x47a8b9
push str.CheckSelfIdentity___:_failed_to_GetModuleFileName___n
call fcn.0047b710
add esp, 4
xor al, al
pop esi
pop ebp
add esp, 0x10c
ret
lea edx, [esp + 0x10]
push edx
push str.CheckSelfIdentity___:_module_filename_is__s_n
call fcn.0047b710
add esp, 8
lea eax, [esp + 0x10]
push 0
push 0x80
push 3
push 0
push 1
push DirectSoundCreate
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
test ebp, ebp
je 0x47a9df
cmp ebp, 0xffffffff
je 0x47a9df
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x47a923
push str.CheckSelfIdentity___:_failed_to_GetFileSize___n
call fcn.0047b710
add esp, 4
xor al, al
pop esi
pop ebp
add esp, 0x10c
ret
push edi
push esi
push str.CheckSelfIdentity___:_file_size_is__u_n
call fcn.0047b710
push esi
call fcn.00481b5f
add esp, 0xc
lea ecx, [esp + 0x10]
mov edi, eax
mov dword [esp + 0x10], 0
push 0
push ecx
push esi
push edi
push ebp
mov byte [esp + 0x23], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x47a96a
push str.CheckSelfIdentity___:_failed_to_ReadFile___n
call fcn.0047b710
add esp, 4
jmp 0x47a9c1
mov eax, dword [esp + 0x11c]
mov edx, dword [eax + 8]
mov eax, dword [eax]
push edx
push eax
push esi
push edi
call fcn.0047aa00
add esp, 0x10
test eax, eax
je 0x47a9c1
push ebx
mov ebx, dword [eax]
push esi
push edi
mov dword [eax], 0
call fcn.0047a840
mov esi, eax
mov eax, dword [esp + 0x12c]
add esp, 8
test eax, eax
je 0x47a9a8
mov dword [eax], esi
push esi
push ebx
push str.CheckSelfIdentity___:_execrc_08X__filecrc_08X_n
call fcn.0047b710
add esp, 0xc
cmp ebx, esi
pop ebx
jne 0x47a9c1
mov byte [esp + 0xf], 1
push edi
call fcn.00479f2e
add esp, 4
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
nop
nop
pop edi
pop esi
pop ebp
add esp, 0x10c
ret
push str.CheckSelfIdentity___:_failed_to_CreateFile___n
call fcn.0047b710
add esp, 4
xor al, al
pop esi
pop ebp
add esp, 0x10c
ret

Function at 0x47adf0
Capabilities:
Read file on windows

Disassembly:
push ecx
push esi
mov esi, ecx
mov eax, dword [esi]
call dword [eax + 0x18]
test al, al
jne 0x47ae05
or eax, 0xffffffff
pop esi
pop ecx
ret 8
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
lea ecx, [esp + 4]
push 0
push ecx
mov ecx, dword [esi + 0x14]
push edx
push eax
push ecx
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x47ae34
or eax, 0xffffffff
pop esi
pop ecx
ret 8
mov eax, dword [esp + 4]
pop esi
pop ecx
ret 8

Function at 0x47b710
Capabilities:
Print debug messages

Disassembly:
mov ecx, dword [esp + 4]
lea eax, [esp + 8]
push eax
push ecx
push 0x4d5318
call fcn.00482bcd
add esp, 0xc
push 0x4d5318
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
ret
Function at 0x481530
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push DirectSoundCreate
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x481586
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x4a3f20
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x481579
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x481588
xor eax, eax
pop esi
leave
ret 4