joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401240
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1118
call fcn.00406d70
mov eax, dword [0x42456c]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
lea eax, [ebp - 0x1110]
push eax
push 0x1000
lea ecx, [ebp - 0x1108]
xor edi, edi
push ecx
mov dword [ebp - 0x110c], edi
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
jne 0x40128b
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406b8f
mov esp, ebp
pop ebp
ret
test dword [ebp - 0x1110], 0xfffffffc
jbe 0x401353
push ebx
mov ebx, dword [ebp + 8]
push esi
mov eax, dword [ebp + edi*4 - 0x1108]
test eax, eax
je 0x40133f
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x40133f
lea edx, [ebp - 0x1118]
push edx
push 4
lea eax, [ebp - 0x1114]
push eax
push esi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x40133f
mov edx, dword [ebp - 0x1114]
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push edx
push esi
call sub.PSAPI.DLL_GetModuleBaseNameA
mov ecx, ebx
lea eax, [ebp - 0x108]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x401322
test dl, dl
je 0x40131e
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x401322
add eax, 2
add ecx, 2
test dl, dl
jne 0x401302
xor eax, eax
jmp 0x401327
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x401338
mov eax, dword [ebp + edi*4 - 0x1108]
mov dword [ebp - 0x110c], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x1110]
inc edi
shr ecx, 2
cmp edi, ecx
jb 0x4012a0
pop esi
pop ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x110c]
xor ecx, ebp
pop edi
call fcn.00406b8f
mov esp, ebp
pop ebp
ret

Function at 0x401ed0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41cfdb
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x42456c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00406645
push 4
mov dword [ebp - 4], 0
call fcn.00407a7c
mov edi, eax
add esp, 4
test edi, edi
je 0x401f50
call fcn.00406226
mov dword [edi], eax
call fcn.00405fe3
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.00405f18
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x401f46
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.00405f40
jmp 0x401f52
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4033d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41d1e8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x42456c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x44], ebx
je 0x4034f1
cmp byte [edi + 0x49], bl
je 0x4034f1
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
call edx
cmp eax, 0xffffffff
je 0x4034e5
mov ecx, 0xf
xor eax, eax
mov byte [ebp - 0x2c], bl
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 8
cmp ecx, 0x10
jae 0x403445
lea eax, [ebp - 0x2c]
mov byte [eax + 8], bl
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
mov edx, eax
cmp ebx, 0x10
jae 0x40345d
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
push edx
push eax
lea eax, [edi + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x403486
dec eax
je 0x40348a
sub eax, 2
lea ecx, [ebp - 0x2c]
jne 0x4034e0
jmp 0x4034ec
mov byte [edi + 0x49], 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x40349a
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, ecx
je 0x4034c3
cmp ebx, 0x10
jae 0x4034a9
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.004088c5
add esp, 0x10
cmp esi, eax
jne 0x4034dd
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [edi + 0x49], 0
je 0x4034e9
test esi, esi
jne 0x403451
push esi
push 8
lea ecx, [ebp - 0x2c]
call fcn.00402b10
jmp 0x40344b
lea ecx, [ebp - 0x2c]
call fcn.00402400
xor al, al
jmp 0x4034f3
lea ecx, [ebp - 0x2c]
call fcn.00402400
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00406b8f
mov esp, ebp
pop ebp
ret
Function at 0x406b8f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42456c]
jne 0x406b99
repz ret
jmp fcn.0040cfa8

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x41160a
call fcn.0040a13b
mov dword [eax], esi
call fcn.0040a128
push 0x16
pop esi
mov dword [eax], esi
call fcn.0040d39c
mov eax, esi
jmp 0x41165f
test dword [ebp + 0xc], 0xfffffff9
jne 0x4115f0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x411637
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040a14e
pop ecx
call fcn.0040a128
mov eax, dword [eax]
jmp 0x41165f
test al, 0x10
jne 0x41165d
test al, 1
je 0x41165d
test byte [ebp + 0xc], 2
je 0x41165d
call fcn.0040a13b
mov dword [eax], 5
call fcn.0040a128
mov dword [eax], 0xd
jmp 0x41162e
xor eax, eax
pop esi
pop ebp
ret
Function at 0x41199f
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42456c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040ca31
and dword [ebp - 0x14], 0
cmp dword [0x427acc], 0
mov dword [ebp - 0x18], eax
jne 0x411a52
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x411afa
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x411afa
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x427acc], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x427ad0], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x427ad4], eax
call edi
push eax
call esi
mov dword [0x427adc], eax
test eax, eax
je 0x411a52
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x427ad8], eax
mov eax, dword [0x427ad8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x411aab
cmp dword [0x427adc], ecx
je 0x411aab
push eax
call esi
push dword [0x427adc]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x411aab
test ebx, ebx
je 0x411aab
call edi
test eax, eax
je 0x411aa2
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x411aa2
test byte [ebp - 8], 1
jne 0x411aab
or dword [ebp + 0x10], 0x200000
jmp 0x411ade
mov eax, dword [0x427ad0]
cmp eax, dword [ebp - 0x18]
je 0x411ade
push eax
call esi
test eax, eax
je 0x411ade
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x411ade
mov eax, dword [0x427ad4]
cmp eax, dword [ebp - 0x18]
je 0x411ade
push eax
call esi
test eax, eax
je 0x411ade
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x427acc]
call esi
test eax, eax
je 0x411afa
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x411afc
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406b8f
leave
ret
Function at 0x8f0880
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x9440c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea edx, [ebp - 8]
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov esi, 4
mov eax, dword [edi + 0xec]
mov ebx, dword [edi + 0xf4]
mov ebx, dword [ebx + eax*4 - 4]
not ebx
nop dword [eax + eax]
movzx eax, byte [edx]
lea edx, [edx + 1]
movzx ecx, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x9344e0]
sub esi, 1
jne 0x8f08c0
mov eax, dword [edi]
not ebx
cmp dword [eax + 0x3fc4], ebx
jne 0x8f08f5
push esi
push dword [ebp - 0xc]
push 4
push ebx
call fcn.008ee430
add esp, 0x10
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.009305aa
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x9440c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea edx, [ebp - 8]
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov esi, 4
mov eax, dword [edi + 0xec]
mov ebx, dword [edi + 0xf4]
mov ebx, dword [ebx + eax*4 - 4]
not ebx
nop dword [eax + eax]
movzx eax, byte [edx]
lea edx, [edx + 1]
movzx ecx, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x9344e0]
sub esi, 1
jne 0x8f09b0
mov eax, dword [edi]
not ebx
cmp dword [eax + 0x3fc4], ebx
jne 0x8f09e5
push esi
push dword [ebp - 0xc]
push 0xc
push ebx
call fcn.008ee430
add esp, 0x10
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.009305aa
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x9440c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov edx, ecx
push esi
push edi
lea esi, [ebp - 0x14]
mov edi, 0x10
movss xmm1, dword [edx + 0x108]
movss xmm0, dword [eax]
movss xmm2, dword [edx + 0x10c]
subss xmm0, xmm1
mov ecx, dword [edx + 0xec]
movss dword [ebp - 0x14], xmm0
movss xmm0, dword [eax + 4]
subss xmm0, xmm2
movss dword [ebp - 0x10], xmm0
movss xmm0, dword [eax + 8]
subss xmm0, xmm1
movss dword [ebp - 0xc], xmm0
movss xmm0, dword [eax + 0xc]
mov eax, dword [edx + 0xf4]
subss xmm0, xmm2
mov edx, dword [eax + ecx*4 - 4]
movss dword [ebp - 8], xmm0
not edx
nop dword [eax + eax]
movzx eax, byte [esi]
lea esi, [esi + 1]
movzx ecx, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x9344e0]
sub edi, 1
jne 0x8f0a80
mov ecx, dword [ebp - 4]
not edx
pop edi
xor ecx, ebp
mov eax, edx
pop esi
call fcn.009305aa
mov esp, ebp
pop ebp
ret 4
Function at 0x8f11e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x8f11f3
mov dword [edi], 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.008f12f0
mov esi, eax
add esp, 8
test esi, esi
jne 0x8f120d
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
push esi
call ebx
add esp, 4
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x8f12da
push 2
push 0
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x8f12da
push esi
call ebx
mov ebx, eax
add esp, 4
mov dword [ebp + 0x10], ebx
cmp ebx, 0xffffffff
je 0x8f12da
push 0
push dword [ebp - 4]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x8f12da
mov eax, dword [ebp + 0x14]
add eax, ebx
push eax
call fcn.008f3a40
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x8f12da
mov eax, dword [ebp + 0x10]
push esi
push eax
push 1
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov ecx, dword [ebp + 0x10]
add esp, 0x10
cmp eax, ecx
je 0x8f12a8
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
push ebx
call fcn.008f3ad0
add esp, 8
xor eax, eax
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x14]
test eax, eax
jle 0x8f12be
push eax
lea eax, [ecx + ebx]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
test edi, edi
je 0x8f12d1
mov eax, dword [ebp + 0x10]
mov dword [edi], eax
mov eax, ebx
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
xor eax, eax
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x8f1760
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
not ebx
push edi
mov edi, dword [ebp + 0xc]
mov eax, ebx
test edi, edi
je 0x8f17c3
mov cl, byte [esi]
lea esi, [esi + 1]
dec edi
cmp cl, 0x23
jne 0x8f17a6
cmp edi, 2
jb 0x8f17a6
cmp byte [esi], cl
jne 0x8f17a6
cmp byte [esi + 1], cl
jne 0x8f17a6
mov eax, ebx
movzx ecx, cl
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x9344e0]
jmp 0x8f1777
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x9344e0]
test edi, edi
jne 0x8f1777
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
mov cl, byte [esi]
inc esi
test cl, cl
je 0x8f17f8
nop word [eax + eax]
cmp cl, 0x23
jne 0x8f17df
cmp byte [esi], cl
jne 0x8f17df
cmp byte [esi + 1], cl
cmove eax, ebx
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
mov cl, byte [esi]
inc esi
xor eax, dword [edx*4 + 0x9344e0]
test cl, cl
jne 0x8f17d0
pop edi
pop esi
not eax
pop ebx
pop ebp
ret
Function at 0x8f19d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x10
xor ecx, ecx
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x10], ecx
test esi, esi
je 0x8f19f0
cmp eax, esi
jae 0x8f1b47
mov bl, byte [eax]
test bl, bl
je 0x8f1b47
movzx ecx, bl
mov edx, esi
shr ecx, 3
movsx edi, byte [ecx + 0x934ebc]
xor ecx, ecx
test edi, edi
mov dword [ebp - 8], edi
sete cl
add ecx, edi
mov dword [ebp - 0xc], ecx
test esi, esi
jne 0x8f1a1f
lea edx, [ecx + eax]
cmp eax, edx
lea esi, [eax + 1]
sbb cl, cl
and cl, bl
mov byte [ebp - 4], cl
cmp esi, edx
jae 0x8f1a36
mov bl, byte [esi]
mov byte [ebp - 1], bl
jmp 0x8f1a3a
mov byte [ebp - 1], 0
lea esi, [eax + 2]
cmp esi, edx
jae 0x8f1a45
mov ch, byte [esi]
jmp 0x8f1a47
xor ch, ch
lea ebx, [eax + 3]
mov byte [ebp - 3], ch
cmp ebx, edx
jae 0x8f1a55
mov bl, byte [ebx]
jmp 0x8f1a57
xor bl, bl
mov edi, dword [edi*4 + 0x934edc]
movzx esi, byte [ebp - 1]
movzx edx, ch
movzx ecx, cl
and edi, ecx
mov byte [ebp - 2], bl
shl edi, 6
mov ecx, esi
and ecx, 0x3f
movzx ebx, bl
or edi, ecx
and esi, 0xc0
shl edi, 6
mov ecx, edx
and ecx, 0x3f
and edx, 0xc0
or edi, ecx
mov ecx, ebx
and ecx, 0x3f
shr ebx, 2
or ebx, edx
shl edi, 6
or edi, ecx
shr ebx, 2
mov ecx, dword [ebp - 8]
or ebx, esi
mov esi, dword [ebp - 8]
shr ebx, 2
mov ecx, dword [ecx*4 + 0x934f04]
shr edi, cl
cmp edi, dword [esi*4 + 0x934ef0]
sbb ecx, ecx
xor edx, edx
and ecx, 0x40
or ebx, ecx
mov ecx, edi
and ecx, 0xfffff800
cmp ecx, 0xd800
mov ecx, 0x80
cmove edx, ecx
mov ecx, 0xffff
or ebx, edx
cmp ecx, edi
sbb ecx, ecx
and ecx, 0x100
or ebx, ecx
mov ecx, dword [esi*4 + 0x934f18]
xor ebx, 0x2a
sar ebx, cl
test ebx, ebx
je 0x8f1b39
xor edx, edx
cmp byte [ebp - 2], dl
setne dl
xor ecx, ecx
cmp byte [ebp - 3], cl
setne cl
add edx, ecx
xor ecx, ecx
cmp byte [ebp - 1], cl
setne cl
add edx, ecx
xor ecx, ecx
cmp byte [ebp - 4], cl
setne cl
add edx, ecx
cmp dword [ebp - 0xc], edx
cmovl edx, dword [ebp - 0xc]
mov ecx, edx
add eax, ecx
mov ecx, dword [ebp - 0x10]
inc ecx
jmp 0x8f19de
mov ecx, dword [ebp - 0xc]
add eax, ecx
mov ecx, dword [ebp - 0x10]
inc ecx
jmp 0x8f19de
pop edi
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x8f1bb0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0xc]
dec eax
push ebx
mov ebx, dword [ebp + 8]
mov ecx, ebx
mov dword [ebp - 0x14], ecx
lea eax, [ebx + eax*2]
mov dword [ebp - 0x18], eax
cmp ebx, eax
mov eax, dword [ebp + 0x10]
jae 0x8f1d66
push esi
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x10], eax
push edi
nop dword [eax]
test esi, esi
je 0x8f1bec
cmp eax, esi
jae 0x8f1d61
mov bl, byte [eax]
mov byte [ebp + 0xf], bl
test bl, bl
je 0x8f1d61
movzx ecx, bl
mov edx, esi
shr ecx, 3
xor ebx, ebx
movsx ecx, byte [ecx + 0x934ebc]
test ecx, ecx
mov dword [ebp - 0xc], ecx
sete bl
add ebx, ecx
test esi, esi
jne 0x8f1c1b
lea edx, [ebx + eax]
cmp eax, edx
lea esi, [eax + 1]
sbb cl, cl
and cl, byte [ebp + 0xf]
mov byte [ebp - 3], cl
cmp esi, edx
jae 0x8f1c33
mov ch, byte [esi]
mov byte [ebp + 0xf], ch
jmp 0x8f1c37
mov byte [ebp + 0xf], 0
lea esi, [eax + 2]
cmp esi, edx
jae 0x8f1c42
mov ch, byte [esi]
jmp 0x8f1c44
xor ch, ch
lea esi, [eax + 3]
mov byte [ebp - 2], ch
cmp esi, edx
jae 0x8f1c52
mov al, byte [esi]
jmp 0x8f1c54
xor al, al
movzx esi, byte [ebp + 0xf]
movzx edx, ch
movzx ecx, cl
movzx edi, al
mov byte [ebp - 1], al
mov eax, dword [ebp - 0xc]
mov eax, dword [eax*4 + 0x934edc]
and eax, ecx
mov ecx, esi
and ecx, 0x3f
mov dword [ebp - 8], eax
shl dword [ebp - 8], 6
and esi, 0xc0
or dword [ebp - 8], ecx
mov ecx, edx
shl dword [ebp - 8], 6
and ecx, 0x3f
or dword [ebp - 8], ecx
and edx, 0xc0
shl dword [ebp - 8], 6
mov ecx, edi
mov eax, dword [ebp - 8]
and ecx, 0x3f
or eax, ecx
shr edi, 2
mov ecx, dword [ebp - 0xc]
or edi, edx
shr edi, 2
or edi, esi
shr edi, 2
mov ecx, dword [ecx*4 + 0x934f04]
shr eax, cl
mov esi, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
cmp esi, dword [eax*4 + 0x934ef0]
sbb ecx, ecx
xor edx, edx
and ecx, 0x40
or edi, ecx
mov ecx, esi
and ecx, 0xfffff800
cmp ecx, 0xd800
mov ecx, 0x80
cmove edx, ecx
mov ecx, 0xffff
or edi, edx
cmp ecx, esi
sbb ecx, ecx
and ecx, 0x100
or edi, ecx
mov ecx, dword [eax*4 + 0x934f18]
mov eax, dword [ebp - 0x10]
xor edi, 0x2a
sar edi, cl
test edi, edi
je 0x8f1d44
xor edx, edx
mov esi, 0xfffd
cmp byte [ebp - 1], dl
setne dl
xor ecx, ecx
cmp byte [ebp - 2], cl
setne cl
add edx, ecx
xor ecx, ecx
cmp byte [ebp + 0xf], cl
setne cl
add edx, ecx
xor ecx, ecx
cmp byte [ebp - 3], cl
setne cl
add edx, ecx
cmp ebx, edx
cmovl edx, ebx
mov ebx, edx
mov ecx, dword [ebp - 0x14]
add eax, ebx
mov dword [ebp - 0x10], eax
mov word [ecx], si
add ecx, 2
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x14], ecx
cmp ecx, dword [ebp - 0x18]
jb 0x8f1be0
mov ebx, dword [ebp + 8]
pop edi
pop esi
xor edx, edx
mov word [ecx], dx
mov edx, dword [ebp + 0x18]
test edx, edx
je 0x8f1d74
mov dword [edx], eax
sub ecx, ebx
sar ecx, 1
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x8f3950
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
cmp dword [esi + 0x5e2c], 0
lea ecx, [esi + 0x5e30]
je 0x8f39b5
push 0
call fcn.00900c40
push dword [ebp + 0x10]
lea ecx, [esi + 0x5e30]
push dword [ebp + 0xc]
call fcn.00900530
mov edx, dword [esi + 0x5e30]
mov ecx, 0x945448
push dword [esi + 0x5e2c]
lea eax, [edx - 1]
neg edx
sbb edx, edx
and edx, eax
mov eax, dword [esi + 0x5e38]
test eax, eax
push edx
cmovne ecx, eax
push 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
pop edi
pop esi
pop ebp
ret
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.00900530
pop edi
pop esi
pop ebp
ret
Function at 0x8faf40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x94544c]
push esi
mov esi, dword [ebp + 8]
mov dword [eax + 0x5dc0], 0
test esi, esi
je 0x8faf99
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push edi
push eax
call fcn.008fafa0
push 0x935c70
push esi
mov edi, eax
call fcn.008f12f0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x8faf98
push esi
push dword [ebp + 8]
push 1
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 0x14
pop edi
pop esi
pop ebp
ret
Function at 0x9086b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
je 0x9086d7
push eax
mov dword [esi + 4], 0
mov dword [esi], 0
call fcn.008f3ad0
add esp, 4
mov dword [esi + 8], 0
mov eax, dword [esi + 0x14]
test eax, eax
je 0x9086fc
push eax
mov dword [esi + 0x10], 0
mov dword [esi + 0xc], 0
call fcn.008f3ad0
add esp, 4
mov dword [esi + 0x14], 0
mov eax, dword [esi + 0x20]
test eax, eax
je 0x908721
push eax
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
call fcn.008f3ad0
add esp, 4
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov eax, dword [esi + 0x44]
test eax, eax
je 0x908762
push eax
mov dword [esi + 0x40], 0
mov dword [esi + 0x3c], 0
call fcn.008f3ad0
add esp, 4
mov dword [esi + 0x44], 0
mov eax, dword [esi + 0x50]
test eax, eax
je 0x908787
push eax
mov dword [esi + 0x4c], 0
mov dword [esi + 0x48], 0
call fcn.008f3ad0
add esp, 4
mov dword [esi + 0x50], 0
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x9087ac
push eax
mov dword [esi + 0x58], 0
mov dword [esi + 0x54], 0
call fcn.008f3ad0
add esp, 4
mov dword [esi + 0x5c], 0
lea ecx, [esi + 0x78]
pop esi
jmp fcn.00904040
Function at 0x911910
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
push esi
call fcn.008f0830
test eax, eax
je 0x911924
call fcn.008f0ab0
mov esi, dword [eax + 0x6c]
jmp 0x911926
xor esi, esi
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push 4
add esi, 0x24
shr eax, 0x10
push esi
push 0x20001004
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x911949
mov dword [esi], eax
pop esi
ret

Function at 0x9219b0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b0
mov eax, dword [0x9440c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, ecx
mov eax, 1
lock xadd dword [0x945574], eax
inc eax
mov edi, 0x945578
cmp eax, 1
jne 0x9219f0
lea eax, [ebp - 0x1a0]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
xchg dword [edi], eax
cmp byte [ebp + 8], 0
je 0x921a4d
xor eax, eax
lock xadd dword [edi], eax
test eax, eax
je 0x921a4d
push 0x944010
push eax
lea ecx, [ebp - 0x10]
call fcn.009227a0
mov eax, dword [ebp - 8]
mov dword [ebp - 0x1b0], str.C:Userspc_source_reposRebirth_Launcherpackages_boost.1.84.0lib_nativeinclude_boost_asiodetailimplwinsock_init.ipp
mov dword [ebp - 0x1ac], str.throw_on_error
mov dword [ebp - 0x1a8], 0x48
mov dword [ebp - 0x1a4], 0x1a
test al, 1
je 0x921a4d
cmp eax, 1
jne 0x921a61
cmp dword [ebp - 0x10], 0
setne al
test al, al
jne 0x921a61
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.009305aa
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x1b0]
push eax
push str.winsock
lea eax, [ebp - 0x10]
push eax
call fcn.00929680
int3