joyce8/EMBER2024-capa huggingface dataset:
Function at 0x475389
Capabilities:
Parse credit card information

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
test ebp, ebp
jne 0x475397
or eax, 0xffffffff
pop ebp
ret
push esi
mov esi, dword [ebp]
push edi
mov edi, dword [esp + 0x10]
push ebp
push edi
call fcn.00474c6b
test eax, eax
pop ecx
pop ecx
je 0x4755cf
mov al, byte [esi]
mov dl, 0x61
cmp al, dl
push ebx
mov bl, 0x30
jl 0x4753c4
cmp al, 0x7a
jle 0x47556b
cmp al, 0x41
jl 0x4753d0
cmp al, 0x5a
jle 0x47556b
cmp al, bl
jl 0x4753dc
cmp al, 0x39
jle 0x47556b
cmp al, 0x2d
je 0x47556b
cmp al, 0x5f
je 0x47556b
cmp al, 0x2e
je 0x47556b
cmp al, 0x21
je 0x47556b
cmp al, 0x7e
je 0x47556b
cmp al, 0x2a
je 0x47556b
cmp al, 0x27
je 0x47556b
cmp al, 0x28
je 0x47556b
cmp al, 0x29
je 0x47556b
cmp al, 0x25
jne 0x475472
mov cl, byte [esi + 1]
cmp cl, bl
jl 0x475434
cmp cl, 0x39
jle 0x475447
cmp cl, dl
jl 0x47543d
cmp cl, 0x66
jle 0x475447
cmp cl, 0x41
jl 0x475472
cmp cl, 0x46
jg 0x475472
mov cl, byte [esi + 2]
cmp cl, bl
jl 0x475457
cmp cl, 0x39
jle 0x47556b
cmp cl, dl
jl 0x475464
cmp cl, 0x66
jle 0x47556b
cmp cl, 0x41
jl 0x475472
cmp cl, 0x46
jle 0x47556b
cmp al, 0x24
je 0x47556b
cmp al, 0x2c
je 0x47556b
cmp al, 0x3b
je 0x47556b
cmp al, 0x3a
je 0x47556b
cmp al, 0x40
je 0x47556b
cmp al, 0x26
je 0x47556b
cmp al, 0x3d
je 0x47556b
cmp al, 0x2b
je 0x47556b
push 5
pop eax
jmp 0x4755ce
inc esi
mov al, byte [esi]
cmp al, dl
jl 0x4754c9
cmp al, 0x7a
jle 0x47556b
cmp al, 0x41
jl 0x4754d5
cmp al, 0x5a
jle 0x47556b
cmp al, bl
jl 0x4754e1
cmp al, 0x39
jle 0x47556b
cmp al, 0x2d
je 0x47556b
cmp al, 0x5f
je 0x47556b
cmp al, 0x2e
je 0x47556b
cmp al, 0x21
je 0x47556b
cmp al, 0x7e
je 0x47556b
cmp al, 0x2a
je 0x47556b
cmp al, 0x27
je 0x47556b
cmp al, 0x28
je 0x47556b
cmp al, 0x29
je 0x47556b
cmp al, 0x25
jne 0x47554b
mov cl, byte [esi + 1]
cmp cl, bl
jl 0x475519
cmp cl, 0x39
jle 0x47552c
cmp cl, dl
jl 0x475522
cmp cl, 0x66
jle 0x47552c
cmp cl, 0x41
jl 0x47554b
cmp cl, 0x46
jg 0x47554b
mov cl, byte [esi + 2]
cmp cl, bl
jl 0x475538
cmp cl, 0x39
jle 0x47556b
cmp cl, dl
jl 0x475541
cmp cl, 0x66
jle 0x47556b
cmp cl, 0x41
jl 0x47554b
cmp cl, 0x46
jle 0x47556b
cmp al, 0x24
je 0x47556b
cmp al, 0x2c
je 0x47556b
cmp al, 0x3b
je 0x47556b
cmp al, 0x3a
je 0x47556b
cmp al, 0x40
je 0x47556b
cmp al, 0x26
je 0x47556b
cmp al, 0x3d
je 0x47556b
cmp al, 0x2b
jne 0x47557b
cmp al, 0x25
jne 0x4754ba
add esi, 3
jmp 0x4754bb
xor ebx, ebx
cmp edi, ebx
je 0x4755c9
mov eax, dword [edi + 0xc]
cmp eax, ebx
je 0x475590
push eax
call dword [0x4e2438]
pop ecx
mov eax, dword [edi + 0x10]
cmp eax, ebx
mov dword [edi + 0xc], ebx
je 0x4755a2
push eax
call dword [0x4e2438]
pop ecx
mov eax, dword [edi + 8]
cmp eax, ebx
mov dword [edi + 0x10], ebx
je 0x4755b4
push eax
call dword [0x4e2438]
pop ecx
mov eax, dword [ebp]
mov ecx, esi
push ebx
sub ecx, eax
push ecx
push eax
call fcn.00474696
add esp, 0xc
mov dword [edi + 8], eax
mov dword [ebp], esi
xor eax, eax
pop ebx
pop edi
pop esi
pop ebp
ret
Function at 0x475e60
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x475e8f
push esi
call fcn.00479780
add esp, 4
cmp byte [esi + 0x40], 0
je 0x475e88
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x475f0a
mov eax, dword [esi + 0x190]
cmp byte [eax + 0x10], 0
je 0x475efa
mov eax, dword [esi + 8]
test eax, eax
je 0x475eb4
mov ecx, dword [eax]
push esi
call ecx
add esp, 4
mov edx, dword [esi + 0x190]
mov eax, dword [edx]
push esi
call eax
add esp, 4
test eax, eax
je 0x475ef6
cmp eax, 2
je 0x475efa
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x475ea5
cmp eax, 3
je 0x475edc
cmp eax, 1
jne 0x475ea5
add dword [ecx + 4], 1
mov eax, dword [esi + 8]
mov ecx, dword [eax + 4]
cmp ecx, dword [eax + 8]
jl 0x475ea5
mov edx, dword [esi + 0x11c]
add dword [eax + 8], edx
jmp 0x475ea5
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
mov dword [esi + 0x84], eax
call fcn.00475cf0
pop esi
ret
cmp eax, 0xcc
je 0x475f2c
mov ecx, dword [esi]
mov dword [ecx + 0x14], 0x14
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call edx
add esp, 4
call fcn.00475cf0
pop esi
ret

Function at 0x47f8e0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x14
push esi
push edi
mov edi, dword [esp + 0x20]
cmp dword [edi + 0x4c], 1
mov esi, dword [edi + 0x1a8]
mov dword [esp + 0x18], esi
jne 0x47f907
mov dword [esp + 8], 0x1fe
mov byte [esi + 0x1c], 1
jmp 0x47f913
mov dword [esp + 8], 0
mov byte [esi + 0x1c], 0
mov ecx, dword [edi + 0x64]
mov edx, dword [esp + 8]
mov eax, dword [edi + 4]
mov eax, dword [eax + 8]
push ecx
add edx, 0x100
push edx
push 1
push edi
call eax
xor ecx, ecx
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x14]
add esp, 0x10
cmp dword [edi + 0x64], ecx
mov dword [esp + 0xc], ecx
jle 0x47fa1f
push ebx
lea edx, [esi + 0x20]
push ebp
mov dword [esp + 0x18], edx
jmp 0x47f95c
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebp, dword [edx]
cdq
idiv ebp
cmp dword [esp + 0x10], 0
mov dword [esp + 0x1c], eax
je 0x47f97d
mov eax, dword [esi + 0x18]
add dword [eax + ecx*4], 0xff
lea eax, [eax + ecx*4]
mov edx, dword [esi + 0x18]
mov edi, dword [edx + ecx*4]
add ebp, 0xffffffff
mov ecx, ebp
xor eax, eax
xor ebx, ebx
call fcn.0047f750
mov ecx, eax
xor esi, esi
cmp esi, ecx
jle 0x47f9b2
lea esp, [esp]
add ebx, 1
mov ecx, ebp
mov eax, ebx
call fcn.0047f750
mov ecx, eax
cmp esi, ecx
jg 0x47f9a0
mov al, byte [esp + 0x1c]
imul bl
mov byte [esi + edi], al
add esi, 1
cmp esi, 0xff
jle 0x47f995
cmp dword [esp + 0x10], 0
je 0x47fa00
mov eax, 1
lea ecx, [edi - 1]
jmp 0x47f9e0
movzx edx, byte [edi]
mov byte [ecx], dl
movzx edx, byte [edi + 0xff]
mov byte [edi + eax + 0xff], dl
add eax, 1
sub ecx, 1
cmp eax, 0xff
jle 0x47f9e0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x28]
add dword [esp + 0x18], 4
add eax, 1
cmp eax, dword [ecx + 0x64]
mov dword [esp + 0x14], eax
jl 0x47f950
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x14
ret
Function at 0x482a0c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x482a49
cmp dword [ebp + 0x14], edi
je 0x482a49
cmp ecx, edi
jne 0x482a50
call fcn.00489b00
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.00489aa1
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x482a64
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x482a85
cmp ebx, 0xffffffff
je 0x482a74
push ebx
push edi
push ecx
call fcn.00483b10
add esp, 0xc
cmp esi, edi
je 0x482a31
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x482a31
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x482aa1
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x482aa8
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x482b99
test word [esi + 0xc], 0x10c
je 0x482afc
mov eax, dword [esi + 4]
test eax, eax
je 0x482afc
jl 0x482bfa
cmp ebx, eax
mov edi, ebx
jb 0x482acd
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x482ba1
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0048de33
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x482b91
cmp ebx, dword [ebp - 0xc]
jb 0x482b69
cmp dword [ebp - 0xc], 0
je 0x482b26
mov ecx, 0x7fffffff
xor edx, edx
cmp ebx, ecx
jbe 0x482b1b
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x482b22
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x482b31
mov eax, 0x7fffffff
cmp ebx, eax
ja 0x482b31
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x482bcd
push eax
push dword [ebp - 8]
push esi
call fcn.00489271
pop ecx
push eax
call fcn.0048dd36
add esp, 0xc
test eax, eax
je 0x482c0c
cmp eax, 0xffffffff
je 0x482bfa
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x482b91
push esi
call fcn.0048d655
cmp eax, 0xffffffff
pop ecx
je 0x482bfe
cmp dword [ebp - 4], 0
je 0x482bcd
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x482ab0
mov eax, dword [ebp + 0x14]
jmp 0x482a4b
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x482bb8
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.00483b10
add esp, 0xc
call fcn.00489b00
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x482a41
cmp dword [ebp + 0xc], 0xffffffff
je 0x482be3
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.00483b10
add esp, 0xc
call fcn.00489b00
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x482a41
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x482a4b
or dword [esi + 0xc], 0x10
jmp 0x482bfe
Function at 0x487e3f
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x4e2900]
je 0x487e5a
inc edi
cmp edi, 0x17
jb 0x487e4b
cmp edi, 0x17
jae 0x487fda
push ebp
push 3
call fcn.00493d06
cmp eax, 1
pop ecx
je 0x487fa6
push 3
call fcn.00493d06
test eax, eax
pop ecx
jne 0x487e8e
cmp dword [0x4e2640], 1
je 0x487fa6
cmp ebx, 0xfc
je 0x487fd9
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x4f29d0
push ebp
call fcn.004910d2
add esp, 0xc
test eax, eax
je 0x487ec4
push esi
push esi
push esi
push esi
push esi
call fcn.004899a5
add esp, 0x14
push 0x104
mov esi, 0x4f29e9
push esi
push 0
mov byte [0x4f2aed], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x487f08
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004910d2
add esp, 0xc
test eax, eax
je 0x487f08
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.004899a5
add esp, 0x14
push esi
call fcn.00484760
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x487f4d
push esi
call fcn.00484760
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x4f2ce4
push 0x4c95ec
sub ecx, eax
push ecx
push eax
call fcn.00493c53
add esp, 0x14
test eax, eax
je 0x487f4d
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.004899a5
add esp, 0x14
jmp 0x487f4f
xor esi, esi
push 0x4c95e8
push ebx
push ebp
call fcn.00493be2
add esp, 0xc
test eax, eax
je 0x487f6f
push esi
push esi
push esi
push esi
push esi
call fcn.004899a5
add esp, 0x14
push dword [edi*8 + 0x4e2904]
push ebx
push ebp
call fcn.00493be2
add esp, 0xc
test eax, eax
je 0x487f91
push esi
push esi
push esi
push esi
push esi
call fcn.004899a5
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00493a25
add esp, 0xc
jmp 0x487fd9
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x487fd9
cmp ebp, 0xffffffff
je 0x487fd9
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x4e2904]
push dword [esi]
call fcn.00484760
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x48d646
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4e2ca8]
jne 0x48d650
repz ret
jmp fcn.00495c45
Function at 0x493a25
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004880f2
xor ebx, ebx
cmp dword [0x4f2ff4], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x493afb
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x493bdb
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4ce8b0
push edi
call esi
cmp eax, ebx
je 0x493bdb
push eax
call fcn.00488084
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4f2ff4], eax
call esi
push eax
call fcn.00488084
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4f2ff8], eax
call esi
push eax
call fcn.00488084
mov dword [0x4f2ffc], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00484894
test eax, eax
pop ecx
pop ecx
je 0x493ac9
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004899a5
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x493afb
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00488084
cmp eax, ebx
pop ecx
mov dword [0x4f3004], eax
je 0x493afb
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00488084
pop ecx
mov dword [0x4f3000], eax
mov eax, dword [0x4f3000]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x493b80
cmp dword [0x4f3004], ecx
je 0x493b80
push eax
call fcn.004880fb
push dword [0x4f3004]
mov esi, eax
call fcn.004880fb
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x493b80
cmp edi, ebx
je 0x493b80
call esi
cmp eax, ebx
je 0x493b4d
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x493b4d
test byte [ebp - 0x18], 1
jne 0x493b80
lea eax, [ebp - 0x10]
push eax
call fcn.004848cb
test eax, eax
pop ecx
je 0x493b68
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004899a5
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x493b77
or dword [ebp + 0x10], 0x200000
jmp 0x493bbb
or dword [ebp + 0x10], 0x40000
jmp 0x493bbb
mov eax, dword [0x4f2ff8]
cmp eax, dword [ebp - 8]
je 0x493bbb
push eax
call fcn.004880fb
cmp eax, ebx
pop ecx
je 0x493bbb
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x493bbb
mov eax, dword [0x4f2ffc]
cmp eax, dword [ebp - 8]
je 0x493bbb
push eax
call fcn.004880fb
cmp eax, ebx
pop ecx
je 0x493bbb
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4f2ff4]
call fcn.004880fb
cmp eax, ebx
pop ecx
je 0x493bdb
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x493bdd
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x49eb1c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0x14]
push ebx
mov dword [ebp - 8], eax
and dword [ebp - 8], 0x10
push esi
push edi
je 0x49eb36
test byte [ebp + 0x18], 8
jne 0x49eb45
mov dword [ebp - 4], eax
and dword [ebp - 4], 8
je 0x49eb8b
test byte [ebp + 0x18], 0x10
je 0x49eb8b
mov ebx, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov dword [ebp - 4], eax
and dword [ebp - 4], 8
je 0x49eb6d
mov edx, ebx
sar edx, 1
test edx, edx
mov eax, esi
mov ecx, esi
jle 0x49eb6d
mov edi, edx
mov dl, byte [ecx + 1]
mov byte [eax], dl
inc eax
inc ecx
inc ecx
dec edi
jne 0x49eb62
xor eax, eax
cmp dword [ebp - 8], eax
je 0x49eb9e
cmp ebx, eax
mov ecx, esi
jle 0x49eb9e
xor edx, edx
mov dh, byte [eax + esi]
mov word [ecx], dx
inc ecx
inc ecx
inc eax
cmp eax, ebx
jl 0x49eb7a
jmp 0x49eb9e
mov ebx, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.00483b90
add esp, 0xc
test byte [ebp + 0x19], 2
je 0x49ebe3
xor edi, edi
cmp dword [ebp - 4], edi
je 0x49ebc2
test ebx, ebx
mov ecx, esi
jle 0x49ebe3
mov edx, ebx
movzx eax, byte [ecx]
add eax, edi
mov byte [ecx], al
inc ecx
dec edx
mov edi, eax
jne 0x49ebb3
jmp 0x49ebe3
cmp dword [ebp - 8], 0
je 0x49ebe3
mov eax, ebx
sar eax, 1
test eax, eax
mov ecx, esi
jle 0x49ebe3
mov edx, eax
movzx eax, word [ecx]
add eax, edi
mov word [ecx], ax
inc ecx
inc ecx
dec edx
mov edi, eax
jne 0x49ebd4
mov eax, 0x100
test dword [ebp + 0x14], eax
je 0x49ebf3
test byte [ebp + 0x18], 0x80
jne 0x49ebfe
test byte [ebp + 0x14], 0x80
je 0x49ec2d
test dword [ebp + 0x18], eax
je 0x49ec2d
cmp dword [ebp - 4], 0
je 0x49ec13
test ebx, ebx
mov eax, esi
jle 0x49ec13
mov ecx, ebx
xor byte [eax], 0x80
inc eax
dec ecx
jne 0x49ec0c
cmp dword [ebp - 8], 0
je 0x49ec2d
mov ecx, ebx
sar ecx, 1
test ecx, ecx
mov eax, esi
jle 0x49ec2d
xor word [eax], 0x8000
inc eax
inc eax
dec ecx
jne 0x49ec23
pop edi
pop esi
mov al, 1
pop ebx
leave
ret

Function at 0x49fc8a
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x4e3fd8]
cmp dword [eax + 4], 0xc
jne 0x49fc9e
xor eax, eax
inc eax
leave
ret
push edi
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
mov eax, dword [ebp + 0x10]
cmp eax, 0xffffffff
je 0x49fcd9
test eax, eax
je 0x49fcd5
cmp eax, 2
je 0x49fcd1
cmp eax, 3
jne 0x49fce2
push 0xf
jmp 0x49fcdb
push 2
jmp 0x49fcdb
push 1
jmp 0x49fcdb
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, edi
pop edi
leave
ret

Function at 0x49fd02
Capabilities:
Terminate thread

Disassembly:
mov eax, dword [0x4e3fd8]
cmp dword [eax + 4], 0xc
je 0x49fd19
push 0
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
ret
Function at 0x4a9c3e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
cmp dword [0x4f42a0], 0
jne 0x4a9d62
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.dsound.dll
call edi
mov dword [0x4f42a0], eax
mov eax, dword [0x4e3fd8]
test byte [eax + 9], 0x30
je 0x4a9c7f
push str.dsound3d.dll
call edi
mov dword [0x4f42a4], eax
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.DirectSoundCreate8
push dword [0x4f42a0]
call esi
test eax, eax
mov dword [0x4f42b8], eax
jne 0x4a9cad
push str.DirectSoundCreate
push dword [0x4f42a0]
call esi
mov dword [0x4f42b0], eax
push str.DirectSoundEnumerateA
push dword [0x4f42a0]
call esi
cmp dword [0x4f42b8], 0
mov dword [0x4f42b4], eax
je 0x4a9d36
push 0x104
lea eax, [ebp - 0x400]
push eax
mov dword [0x4e6134], 8
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x4a9d60
lea eax, [ebp - 0x400]
push eax
lea eax, [ebp - 0x200]
push eax
call fcn.004a4839
lea eax, [ebp - 0x200]
push str.d3d9.dll
push eax
call fcn.004a4873
push 0
lea eax, [ebp - 0x200]
push 0
push eax
call fcn.004a26e8
add esp, 0x1c
test eax, eax
je 0x4a9d60
push eax
call fcn.004a2d28
pop ecx
mov dword [0x4e6134], 9
jmp 0x4a9d60
push str.ddraw.dll
call edi
mov edi, eax
test edi, edi
je 0x4a9d60
push 0x4cfbe8
push edi
call esi
test eax, eax
je 0x4a9d59
mov dword [0x4e6134], 7
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
leave
ret

Function at 0x4ab7ea
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
cmp eax, ecx
je 0x4ab881
mov edx, dword [eax]
mov byte [edx + 0x16], cl
mov edx, dword [eax]
mov byte [edx + 0x17], cl
mov edx, dword [eax]
mov byte [edx + 0x18], cl
mov edx, dword [eax]
push ebx
push esi
mov byte [edx + 0x19], cl
mov esi, dword [eax + 4]
xor edx, edx
cmp esi, ecx
push edi
jle 0x4ab836
mov edi, dword [eax]
movzx edi, byte [edi + edx]
mov ebx, ecx
shr ebx, 0x18
xor edi, ebx
mov edi, dword [edi*4 + 0x4e6a88]
shl ecx, 8
xor ecx, edi
inc edx
cmp edx, esi
jl 0x4ab818
xor edx, edx
cmp dword [eax + 0xc], edx
jle 0x4ab85d
mov esi, dword [eax + 8]
movzx edi, byte [esi + edx]
mov ebx, ecx
shr ebx, 0x18
xor edi, ebx
mov edi, dword [edi*4 + 0x4e6a88]
shl ecx, 8
xor ecx, edi
inc edx
cmp edx, dword [eax + 0xc]
jl 0x4ab840
mov edx, dword [eax]
mov byte [edx + 0x16], cl
mov esi, dword [eax]
mov edx, ecx
shr edx, 8
mov byte [esi + 0x17], dl
mov esi, dword [eax]
mov edx, ecx
shr edx, 0x10
mov byte [esi + 0x18], dl
mov eax, dword [eax]
pop edi
shr ecx, 0x18
pop esi
mov byte [eax + 0x19], cl
pop ebx
ret
Function at 0x4b9640
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x4b964b
xor eax, eax
ret
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [esp + 0x14]
cmp edi, 8
not esi
jb 0x4b9747
push ebp
mov ebp, edi
shr ebp, 3
jmp 0x4b9670
movzx edx, byte [ecx]
xor edx, esi
and edx, 0xff
add ecx, 1
mov eax, esi
shr eax, 8
xor eax, dword [edx*4 + 0x4d01d0]
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x4d01d0]
movzx edx, byte [ecx + 1]
xor edx, eax
and edx, 0xff
add ecx, 1
shr eax, 8
xor eax, dword [edx*4 + 0x4d01d0]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x4d01d0]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x4d01d0]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x4d01d0]
movzx edx, byte [ecx + 1]
add ecx, 1
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x4d01d0]
movzx edx, byte [ecx + 1]
add ecx, 1
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x4d01d0]
add ecx, 1
sub edi, 8
sub ebp, 1
mov esi, eax
jne 0x4b9670
pop ebp
test edi, edi
je 0x4b976c
jmp 0x4b9750
movzx eax, byte [ecx]
xor eax, esi
and eax, 0xff
shr esi, 8
xor esi, dword [eax*4 + 0x4d01d0]
add ecx, 1
sub edi, 1
jne 0x4b9750
mov eax, esi
pop edi
not eax
pop esi
ret
Function at 0x406520
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40b1d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov dword [ebp - 0x1c], ecx
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x1c]
add ecx, 0x44
call fcn.00406a60
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 0x1c]
add ecx, 0x54
call fcn.00406a60
mov byte [ebp - 4], 1
lea edx, [ebp - 0x18]
push edx
mov ecx, dword [ebp - 0x1c]
add ecx, 0x64
call fcn.00406a60
mov eax, dword [ebp - 0x1c]
mov dword [eax], 0
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 4], 0
push 0x28
push 0
mov edx, dword [ebp - 0x1c]
add edx, 8
push edx
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x14
push 0
mov eax, dword [ebp - 0x1c]
add eax, 0x30
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x40ce70
Capabilities:
Set console window title

Disassembly:
sub esp, 0x428
mov eax, dword [0x42a030]
xor eax, esp
mov dword [esp + 0x424], eax
mov eax, dword [0x2ae52d4]
push ebx
mov ebx, dword [0x2ae4ff4]
push esi
mov esi, dword [0x42b060]
push edi
mov edi, eax
cmp eax, 0x930
jne 0x40ceb1
push 0x428c58
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
mov eax, dword [0x2ae52d4]
mov dword [0x2ae4ff0], esi
cmp eax, 0x114e
jne 0x40ced9
call dword [sym.imp.KERNEL32.dll_SetFileApisToOEM]
lea eax, [esp + 0x14]
push eax
push str.Gufut_dawasu_xekewoxocig_luraseno
call dword [sym.imp.KERNEL32.dll_BuildCommDCBA]
mov eax, dword [0x2ae52d4]
cmp eax, 0x2f
jne 0x40cf07
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumDateFormatsA]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x10]
push edx
push 0
lea eax, [esp + 0x3c]
push eax
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_ReadEventLogW]
push edi
push ebx
call fcn.0040cd40
mov ecx, dword [esp + 0x438]
add esp, 8
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040110c
add esp, 0x428
ret