joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48ec80
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x48ec90
xor eax, eax
jmp 0x48ee2d
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
mov dword [ebp + 8], eax
cmp dword [ebp + 0x10], 8
jb 0x48edee
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x4a6100]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x4a6100]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax]
xor ecx, dword [ebp + 8]
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
xor edx, dword [ecx*4 + 0x4a6100]
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x4a6100]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x4a6100]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax]
xor ecx, dword [ebp + 8]
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
xor edx, dword [ecx*4 + 0x4a6100]
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x4a6100]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x4a6100]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0x10]
sub eax, 8
mov dword [ebp + 0x10], eax
jmp 0x48ec99
cmp dword [ebp + 0x10], 0
je 0x48ee27
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x4a6100]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0x10]
sub edx, 1
mov dword [ebp + 0x10], edx
jne 0x48edf4
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
pop ebp
ret
Function at 0x48ee30
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
movsx eax, byte [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor eax, dword [ecx]
and eax, 0xff
mov edx, dword [ebp + 8]
mov ecx, dword [edx]
shr ecx, 8
xor ecx, dword [eax*4 + 0x4a6100]
mov edx, dword [ebp + 8]
mov dword [edx], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
and ecx, 0xff
mov edx, dword [ebp + 8]
add ecx, dword [edx + 4]
mov eax, dword [ebp + 8]
mov dword [eax + 4], ecx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
imul edx, edx, 0x8088405
add edx, 1
mov eax, dword [ebp + 8]
mov dword [eax + 4], edx
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
shr edx, 0x18
mov eax, dword [ebp + 8]
xor edx, dword [eax + 8]
and edx, 0xff
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x4a6100]
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], eax
pop ebp
ret
Function at 0x48f7f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x18]
movzx edx, byte [ecx + 0x2d]
test edx, edx
je 0x48f8d2
mov eax, dword [ebp - 0x18]
cmp dword [eax + 0x3c], 0
je 0x48f841
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x40]
cmp edx, dword [ebp + 0xc]
jae 0x48f841
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x3c]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.00493e92
add esp, 4
mov eax, dword [ebp - 0x18]
mov dword [eax + 0x3c], 0
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + 0x3c], 0
jne 0x48f86d
mov edx, dword [ebp + 0xc]
shl edx, 1
push edx
call fcn.00493f07
add esp, 4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0x3c], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp + 0xc]
mov dword [edx + 0x40], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x3c]
push ecx
call fcn.00497620
add esp, 0xc
mov dword [ebp - 8], 0
jmp 0x48f896
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0xc]
jae 0x48f8c9
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x3c]
mov eax, dword [ebp - 8]
movzx ecx, byte [edx + eax]
push ecx
mov edx, dword [ebp - 0x18]
add edx, 0x30
push edx
call fcn.0048eee0
add esp, 8
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x3c]
mov ecx, dword [ebp - 8]
mov byte [edx + ecx], al
jmp 0x48f88d
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x3c]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x18]
cmp dword [ecx + 0x20], 0
je 0x48f92d
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x24]
add eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x18]
cmp eax, dword [ecx + 0x28]
jb 0x48f8fa
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x14], 0x30000
xor eax, eax
jmp 0x48f962
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x20]
mov ecx, dword [ebp - 0x18]
add eax, dword [ecx + 0x24]
push eax
call fcn.00497620
add esp, 0xc
mov edx, dword [ebp - 0x18]
mov eax, dword [edx + 0x24]
add eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x18]
mov dword [ecx + 0x24], eax
mov eax, dword [ebp + 0xc]
jmp 0x48f962
mov edx, dword [ebp - 0x18]
cmp dword [edx + 4], 0
je 0x48f956
push 0
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 0xc]
jmp 0x48f962
mov edx, dword [ebp - 0x18]
mov dword [edx + 0x14], 0x1000000
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x48ff80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x84], 0
je 0x490042
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x10]
mov eax, dword [ecx + 0x8c]
cmp eax, dword [edx + 0x88]
jb 0x48ffb4
xor eax, eax
jmp 0x4900b2
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x10]
mov eax, dword [ecx + 0x88]
sub eax, dword [edx + 0x8c]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jbe 0x48ffd7
mov edx, dword [ebp + 0xc]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x84]
mov eax, dword [ebp - 0x10]
add edx, dword [eax + 0x8c]
push edx
mov ecx, dword [ebp + 8]
push ecx
call fcn.00497620
add esp, 0xc
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x8c]
add eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x8c], eax
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x74]
add eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x74], eax
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x78]
push edx
call fcn.0048ec80
add esp, 0xc
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x78], eax
mov eax, dword [ebp - 4]
jmp 0x4900b2
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0x7c], 0
je 0x4900a6
push 0
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x7c]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x490073
xor eax, eax
jmp 0x4900b2
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x74]
add eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x74], eax
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x78]
push edx
call fcn.0048ec80
add esp, 0xc
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x78], eax
mov eax, dword [ebp - 0xc]
jmp 0x4900b2
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x14], 0x1000000
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x491914
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4ad2d0]
jne 0x49191e
repz ret
jmp fcn.0049411d

Function at 0x49da53
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004979f7
and dword [ebp - 4], 0
cmp dword [0x4bcb40], 0
mov ebx, eax
jne 0x49db04
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x49dbb5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x49dbb5
push eax
call fcn.00497985
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4bcb40], eax
call esi
push eax
call fcn.00497985
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4bcb44], eax
call esi
push eax
call fcn.00497985
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4bcb48], eax
call esi
push eax
call fcn.00497985
pop ecx
mov dword [0x4bcb50], eax
test eax, eax
je 0x49db04
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00497985
pop ecx
mov dword [0x4bcb4c], eax
mov eax, dword [0x4bcb4c]
cmp eax, ebx
je 0x49db5c
cmp dword [0x4bcb50], ebx
je 0x49db5c
push eax
call fcn.00497a00
push dword [0x4bcb50]
mov esi, eax
call fcn.00497a00
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x49db5c
test edi, edi
je 0x49db5c
call esi
test eax, eax
je 0x49db53
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x49db53
test byte [ebp - 0xc], 1
jne 0x49db5c
or dword [ebp + 0x10], 0x200000
jmp 0x49db95
mov eax, dword [0x4bcb44]
cmp eax, ebx
je 0x49db95
push eax
call fcn.00497a00
pop ecx
test eax, eax
je 0x49db95
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x49db95
mov eax, dword [0x4bcb48]
cmp eax, ebx
je 0x49db95
push eax
call fcn.00497a00
pop ecx
test eax, eax
je 0x49db95
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4bcb40]
call fcn.00497a00
pop ecx
test eax, eax
je 0x49dbb5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x49dbb7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402ae8
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x428008], 0x8088405
inc edx
mov dword [ebx + 0x428008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x402ca0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x42801c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402d38
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402d18
xor eax, eax
push ebp
push 0x402d11
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x402d54
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402d18
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x42801c]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x42801c], ax
mov esp, ebp
pop ebp
ret

Function at 0x403754
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x429040], 0
je 0x4037b5
cmp word [0x429214], 0xd7b2
jne 0x40377d
cmp dword [0x42921c], 0
jbe 0x40377d
mov eax, 0x429210
call dword [0x42922c]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x428064
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4037dc
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x428028], 0
jne 0x4037d1
push 0
push 0x42805c
push 0x428064
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4047f0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x404856
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00403a74
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402b04
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x404840
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40485d
lea eax, [ebp - 0x10]
call fcn.004038f8
ret
Function at 0x405978
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x114], ecx
mov esi, edx
mov ebx, eax
lea edi, [ebp - 4]
xor eax, eax
push ebp
push 0x405a73
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
jne 0x4059cc
push 0x105
lea eax, [ebp - 0x10d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [ebp - 0x10d]
mov eax, esi
call fcn.004039e8
jmp 0x405a5a
call sub.kernel32.dll_GetCommandLineA_1
mov dword [edi], eax
mov eax, dword [edi]
call fcn.00405900
mov dword [edi], eax
mov eax, dword [edi]
mov dword [ebp - 8], eax
mov eax, dword [edi]
call fcn.00405928
mov dword [edi], eax
test ebx, ebx
je 0x4059fa
dec ebx
test ebx, ebx
jl 0x4059fa
mov eax, dword [edi]
cmp eax, dword [ebp - 8]
jne 0x4059d3
push esi
lea eax, [ebp - 0x114]
mov edx, dword [ebp - 8]
call fcn.00403a44
mov eax, dword [ebp - 0x114]
mov ecx, dword [edi]
sub ecx, dword [ebp - 8]
mov edx, 1
call fcn.00403cec
mov eax, dword [esi]
call fcn.00403a8c
cmp eax, 2
jl 0x405a5a
mov eax, dword [esi]
cmp byte [eax], 0x22
jne 0x405a5a
mov eax, dword [esi]
call fcn.00403a8c
mov edx, dword [esi]
cmp byte [edx + eax - 1], 0x22
jne 0x405a5a
push esi
mov eax, dword [esi]
call fcn.00403a8c
mov ecx, eax
sub ecx, 2
mov eax, dword [esi]
mov edx, 2
call fcn.00403cec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405a7a
lea eax, [ebp - 0x114]
call fcn.004038f8
ret

Function at 0x406540
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
push esi
add esp, 0xfffffff4
mov esi, edx
mov ebx, eax
mov dword [esp + 8], 4
xor eax, eax
mov dword [esp], eax
test ebx, ebx
je 0x406584
lea eax, [esp + 8]
push eax
lea eax, [esp + 4]
push eax
lea eax, [esp + 0xc]
push eax
push 0
mov eax, esi
call fcn.00403c8c
push eax
push ebx
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x406584
cmp dword [esp + 4], 4
je 0x406589
xor eax, eax
mov dword [esp], eax
mov eax, dword [esp]
add esp, 0xc
pop esi
pop ebx
ret

Function at 0x406594
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
add eax, 0xfffffff8
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x14]
push eax
mov eax, dword [ebp + 8]
add eax, 0xfffffffc
push eax
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
call fcn.00403c8c
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
sete al
pop ebp
ret

Function at 0x4066b8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov esi, edx
mov ebx, eax
test ebx, ebx
je 0x4066e5
lea eax, [esp + 4]
push eax
push 0
lea eax, [esp + 8]
push eax
push 0
mov eax, esi
call fcn.00403c8c
push eax
push ebx
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x4066e9
xor eax, eax
jmp 0x4066eb
mov al, 1
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x40bb98
Capabilities:
Get file attributes

Disassembly:
call fcn.00405264
push eax
call sub.kernel32.dll_GetFileAttributesA
inc eax
je 0x40bbac
dec eax
and al, 0x10
sete al
ret
Function at 0x40d190
Capabilities:
Hide graphical window

Disassembly:
and byte [eax + 0x37], 0xef
test dl, dl
je 0x40d19c
or byte [eax + 0x37], 0x10
mov byte [eax + 0x52], dl
mov ecx, dword [eax + 0x28]
jecxz 0x40d1b8
push eax
je 0x40d1b9
call dword [0x428134]
pop eax
push 5
push dword [eax + 0x28]
call sub.user32.dll_ShowWindow
ret
mov byte [eax + 0x174], dl
push 0
push ecx
call sub.user32.dll_ShowWindow
pop eax
call dword [0x428134]
ret

Function at 0x408947
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x4085d8
add ebx, 0x5e3d8a8c
call fcn.00408971
mov esi, 0x892b41c9
add esi, 0xebc1f626
xor dword [edx], eax
inc edx
cmp edx, ecx
jne fcn.00408947
sub esi, 0xa49490e0
ret

Function at 0x40ce50
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [esp + 4]
push ebx
push ebp
push esi
mov ebp, dword [eax + 0x10]
push edi
mov edi, dword [esp + 0x18]
xor ebx, ebx
mov bl, byte [ebp + 0x14]
mov esi, dword [edi]
xor ebx, 3
test esi, esi
je 0x40cedc
mov eax, dword [esp + 0x1c]
mov ecx, eax
dec eax
test ecx, ecx
mov dword [esp + 0x1c], eax
jbe 0x40cedc
cmp byte [esi + 4], 8
jne 0x40ce95
mov eax, dword [esp + 0x14]
lea edx, [esi + 0x68]
push 0xfffffffffffffffd
push edx
push eax
call fcn.0040ce50
add esp, 0xc
mov al, byte [esi + 5]
mov ecx, eax
and ecx, 0xff
xor ecx, 3
test ebx, ecx
je 0x40ceb8
mov dl, byte [ebp + 0x14]
and al, 0xf8
and dl, 3
mov edi, esi
or dl, al
mov byte [esi + 5], dl
jmp 0x40ced6
mov eax, dword [esi]
mov dword [edi], eax
mov eax, dword [ebp + 0x1c]
cmp esi, eax
jne 0x40cec8
mov ecx, dword [esi]
mov dword [ebp + 0x1c], ecx
mov edx, dword [esp + 0x14]
push esi
push edx
call fcn.0040cef0
add esp, 8
mov esi, dword [edi]
test esi, esi
jne 0x40ce6d
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x401190
Capabilities:
Print debug messages

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x18], 0
je 0x4011f8
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea ebx, [ecx + eax*2]
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x18]
push edx
push eax
push 0xffffffffffffffff
push 0x1001
push ebx
call fcn.00435d5d
add esp, 0x14
test eax, eax
jge 0x4011d0
mov eax, 0x1000
mov edi, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
add edi, eax
push ebx
mov word [ecx + edi*2], 0
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp edi, dword [esi + 0x20]
jbe 0x4011ec
xor edi, edi
push esi
mov dword [esi + 0x1c], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop ebx
pop esi
ret

Function at 0x4034b0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x456478
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
push edi
mov eax, dword [0x471660]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x40]
xor edi, edi
push 0xffffffffffffffff
push edi
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], edi
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], edi
mov word [esp + 0x20], di
call fcn.00401590
mov edx, dword [esp + 0x44]
mov eax, edx
mov dword [esp + 0x34], edi
lea esi, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x403510
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x18]
call fcn.00402df0
mov esi, dword [esp + 0x3c]
push 0xffffffffffffffff
push edi
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
push eax
mov ecx, esi
mov word [esi + 4], di
call fcn.00401590
cmp dword [esp + 0x28], 8
jb 0x40355b
mov ecx, dword [esp + 0x14]
push ecx
call fcn.00434823
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x2c
ret
Function at 0x407430
Capabilities:
Check mutex on windows

Disassembly:
push 0xffffffffffffffff
push 0x456bd4
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x471660]
xor eax, esp
mov dword [esp + 0xcc], eax
push ebx
push esi
push edi
mov eax, dword [0x471660]
xor eax, esp
push eax
lea eax, [esp + 0xe0]
mov dword fs:[0], eax
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
push 1
push 1
push 0x472f84
call edi
test eax, eax
jne 0x4075f5
push 1
push 2
lea ecx, [esp + 0x48]
call fcn.00406c70
lea eax, [esp + 0x24]
xor ebx, ebx
push eax
mov dword [esp + 0xec], ebx
call fcn.00403290
add esp, 4
mov esi, eax
mov byte [esp + 0xe8], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str._Mutex
lea ecx, [esp + 0x48]
push esi
push ecx
call fcn.00406660
add esp, 8
push eax
call fcn.004068f0
add esp, 8
mov ecx, eax
call fcn.00406b10
mov esi, 8
cmp dword [esp + 0x3c], esi
mov byte [esp + 0xe8], bl
jb 0x4074f9
mov edx, dword [esp + 0x28]
push edx
call fcn.00434823
add esp, 4
lea eax, [esp + 0xc0]
push eax
lea ecx, [esp + 0x44]
call fcn.00403420
cmp dword [esp + 0xd8], esi
mov eax, dword [esp + 0xc4]
jae 0x407521
lea eax, [esp + 0xc4]
push eax
push ebx
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x20], 0xc
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esp + 0x10], eax
push 0xffffffffffffffff
lea edx, [esp + 0x14]
push eax
mov dword [esp + 0x28], edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 1
push 1
push 0x472f84
mov byte [esp + 0xf4], 4
call edi
test eax, eax
jne 0x407574
call fcn.00403350
call fcn.00402b80
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x40758e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0xd8], esi
jb 0x4075a7
mov ecx, dword [esp + 0xc4]
push ecx
call fcn.00434823
add esp, 4
lea ecx, [esp + 0x8c]
mov dword [esp + 0xd8], 7
mov dword [esp + 0xd4], ebx
mov word [esp + 0xc4], bx
mov dword [esp + 0xe8], 0xffffffff
call fcn.004028e0
lea edx, [esp + 0x8c]
push edx
mov dword [esp + 0x90], vtable.std::ios_base.0
call fcn.00431014
add esp, 4
jmp 0x4075fa
call fcn.00403350
mov eax, dword [0x472f7c]
mov ecx, dword [esp + 0xe0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xcc]
xor ecx, esp
call fcn.00434fe0
add esp, 0xdc
ret