joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4092cc
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41003c]
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.00405b41
and dword [ebp - 0x14], 0
cmp dword [0x411ca0], 0
mov dword [ebp - 0x18], eax
jne 0x40937f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x409427
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x409427
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x411ca0], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x411ca4], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x411ca8], eax
call edi
push eax
call esi
mov dword [0x411cb0], eax
test eax, eax
je 0x40937f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x411cac], eax
mov eax, dword [0x411cac]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4093d8
cmp dword [0x411cb0], ecx
je 0x4093d8
push eax
call esi
push dword [0x411cb0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4093d8
test ebx, ebx
je 0x4093d8
call edi
test eax, eax
je 0x4093cf
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4093cf
test byte [ebp - 8], 1
jne 0x4093d8
or dword [ebp + 0x10], 0x200000
jmp 0x40940b
mov eax, dword [0x411ca4]
cmp eax, dword [ebp - 0x18]
je 0x40940b
push eax
call esi
test eax, eax
je 0x40940b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40940b
mov eax, dword [0x411ca8]
cmp eax, dword [ebp - 0x18]
je 0x40940b
push eax
call esi
test eax, eax
je 0x40940b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x411ca0]
call esi
test eax, eax
je 0x409427
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x409429
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402ca2
leave
ret
Function at 0x418770
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a9147
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [section..data]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 8]
mov dword [esi], eax
xor eax, eax
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], 0
mov word [esi + 4], ax
mov dword [ebp - 4], eax
mov dword [esi + 0x30], 7
mov dword [esi + 0x2c], eax
mov word [esi + 0x1c], ax
mov dword [esi + 0x48], 7
mov dword [esi + 0x44], eax
mov word [esi + 0x34], ax
mov dword [esi + 0x60], 7
mov dword [esi + 0x5c], eax
mov word [esi + 0x4c], ax
lea ecx, [esi + 0x64]
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], eax
mov word [ecx], ax
push eax
mov byte [ebp - 4], 4
push 0x4bce84
mov dword [esi + 0x84], eax
call fcn.0040b250
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x43fa10
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ad637
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [section..data]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [ebp - 4], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov byte [ebp - 4], 1
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
call fcn.00417be0
mov dword [edi + 0x18], eax
xor eax, eax
mov dword [edi + 0x34], 7
mov dword [edi + 0x30], 0
mov word [edi + 0x20], ax
mov byte [ebp - 4], 3
push eax
mov dword [edi + 0xc8], eax
push eax
mov dword [edi + 0xe4], eax
mov dword [edi + 0xe8], eax
call fcn.00442f70
mov dword [edi + 0xe4], eax
mov byte [ebp - 4], 4
mov dword [edi + 0xec], 0
mov dword [edi + 0xf0], 0
mov dword [edi + 0xf4], 0
call fcn.00417be0
mov esi, dword [0x4b90b4]
mov dword [edi + 0xf0], eax
lea eax, [edi + 0x38]
mov dword [edi + 0xf8], 0
push eax
mov dword [edi + 0xfc], 0
call esi
lea eax, [edi + 0x50]
push eax
call esi
lea eax, [edi + 0x68]
push eax
call esi
lea eax, [edi + 0x80]
push eax
call esi
lea eax, [edi + 0x98]
push eax
call esi
lea eax, [edi + 0xb0]
push eax
call esi
lea eax, [edi + 0xcc]
push eax
call esi
mov eax, dword [edi + 0xf0]
mov eax, dword [eax]
mov dword [edi + 0xf8], eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x46d520
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [reloc.WS2_32.dll_ntohl]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
mov edi, dword [ebx]
mov dword [ebp - 0x14], esi
cmp byte [esi + 4], 0
je 0x46d548
push edi
call eax
mov edi, eax
mov eax, dword [reloc.WS2_32.dll_ntohl]
cmp byte [esi + 4], 0
mov ebx, dword [ebx + 4]
je 0x46d556
push ebx
call eax
mov ebx, eax
cmp byte [esi + 4], 0
mov eax, dword [esi + 5]
mov dword [ebp - 4], eax
je 0x46d56c
push eax
call dword [0x4b9598]
mov dword [ebp - 4], eax
cmp byte [esi + 4], 0
mov ecx, dword [esi + 9]
mov dword [ebp + 8], ecx
je 0x46d582
push ecx
call dword [0x4b9598]
mov dword [ebp + 8], eax
cmp byte [esi + 4], 0
mov eax, dword [esi + 0xd]
mov dword [ebp - 0xc], eax
je 0x46d598
push eax
call dword [0x4b9598]
mov dword [ebp - 0xc], eax
cmp byte [esi + 4], 0
mov ecx, dword [esi + 0x11]
mov dword [ebp - 8], ecx
je 0x46d5ae
push ecx
call dword [0x4b9598]
mov dword [ebp - 8], eax
mov eax, dword [esi]
xor edx, edx
test eax, eax
je 0x46d5fe
mov esi, eax
jmp 0x46d5c0
mov ecx, ebx
lea edx, [edx - 0x61c88647]
shr ecx, 5
mov eax, ebx
add ecx, dword [ebp + 8]
shl eax, 4
add eax, dword [ebp - 4]
xor ecx, eax
lea eax, [edx + ebx]
xor ecx, eax
add edi, ecx
mov ecx, edi
mov eax, edi
shr ecx, 5
add ecx, dword [ebp - 8]
shl eax, 4
add eax, dword [ebp - 0xc]
xor ecx, eax
lea eax, [edx + edi]
xor ecx, eax
add ebx, ecx
dec esi
jne 0x46d5c0
mov esi, dword [ebp - 0x14]
cmp byte [esi + 4], 0
je 0x46d60d
push edi
call dword [0x4b9598]
mov edi, eax
cmp byte [esi + 4], 0
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
je 0x46d62e
push ebx
call dword [0x4b9598]
mov ecx, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
mov dword [ecx + 4], eax
mov esp, ebp
pop ebp
ret 8
pop edi
pop esi
mov dword [eax + 4], ebx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x46d640
Capabilities:
Decrypt data using tea
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [reloc.WS2_32.dll_ntohl]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
mov edi, dword [ebx]
mov dword [ebp - 0x14], esi
cmp byte [esi + 4], 0
je 0x46d668
push edi
call eax
mov edi, eax
mov eax, dword [reloc.WS2_32.dll_ntohl]
cmp byte [esi + 4], 0
mov ebx, dword [ebx + 4]
je 0x46d676
push ebx
call eax
mov ebx, eax
cmp byte [esi + 4], 0
mov ecx, dword [esi + 5]
mov dword [ebp - 0x10], ecx
je 0x46d68c
push ecx
call dword [0x4b9598]
mov dword [ebp - 0x10], eax
cmp byte [esi + 4], 0
mov eax, dword [esi + 9]
mov dword [ebp - 0xc], eax
je 0x46d6a2
push eax
call dword [0x4b9598]
mov dword [ebp - 0xc], eax
cmp byte [esi + 4], 0
mov ecx, dword [esi + 0xd]
mov dword [ebp - 8], ecx
je 0x46d6b8
push ecx
call dword [0x4b9598]
mov dword [ebp - 8], eax
cmp byte [esi + 4], 0
mov eax, dword [esi + 0x11]
mov dword [ebp - 4], eax
je 0x46d6ce
push eax
call dword [0x4b9598]
mov dword [ebp - 4], eax
mov edx, dword [esi]
cmp edx, 0x20
jne 0x46d6df
mov eax, 0xc6ef3720
mov dword [ebp + 8], eax
jmp 0x46d6fb
cmp edx, 0x10
jne 0x46d6ee
mov eax, 0xe3779b90
mov dword [ebp + 8], eax
jmp 0x46d6fb
imul eax, edx, 0x9e3779b9
mov dword [ebp + 8], eax
test edx, edx
je 0x46d73e
mov esi, dword [ebp + 8]
mov edi, edi
mov ecx, edi
mov eax, edi
shr ecx, 5
add ecx, dword [ebp - 4]
shl eax, 4
add eax, dword [ebp - 8]
xor ecx, eax
lea eax, [esi + edi]
xor ecx, eax
sub ebx, ecx
mov ecx, ebx
mov eax, ebx
shr ecx, 5
add ecx, dword [ebp - 0xc]
shl eax, 4
add eax, dword [ebp - 0x10]
xor ecx, eax
lea eax, [esi + ebx]
xor ecx, eax
lea esi, [esi + 0x61c88647]
sub edi, ecx
dec edx
jne 0x46d700
mov esi, dword [ebp - 0x14]
cmp byte [esi + 4], 0
je 0x46d74d
push edi
call dword [0x4b9598]
mov edi, eax
cmp byte [esi + 4], 0
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
je 0x46d76e
push ebx
call dword [0x4b9598]
mov ecx, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
mov dword [ecx + 4], eax
mov esp, ebp
pop ebp
ret 8
pop edi
pop esi
mov dword [eax + 4], ebx
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x470b30
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b07cb
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [section..data]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xor eax, eax
mov dword [esi], 0
lea ecx, [esi + 0x18]
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
push eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push 0x4bce84
mov word [ecx], ax
call fcn.0040b250
lea ecx, [esi + 0x30]
mov dword [ebp - 4], 0
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push 0x4bce80
mov byte [ecx], 0
call fcn.0040ab60
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x479b90
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b19f0
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [section..data]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
call fcn.0040b3b0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
mov byte [eax + 0x88], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x8c
call fcn.00479b70
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0xa4
call fcn.00479b70
mov byte [ebp - 4], 2
xor ecx, ecx
mov edx, dword [ebp - 0x10]
add edx, 0x50
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
mov dword [edx + 0x10], ecx
mov dword [edx + 0x14], ecx
mov dword [edx + 0x18], ecx
mov dword [edx + 0x1c], ecx
mov dword [edx + 0x20], ecx
mov dword [edx + 0x24], ecx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov dword [eax + 0x18], ecx
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x4c], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x44], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x48], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x7c], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x84], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x78], 1
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x30], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x34], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x38], 0
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x3c], 0
push 0
push 0
push 1
push 0
call dword [0x4b90fc]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x1c], eax
push 0
push 0
push 0
push 0
call dword [0x4b90fc]
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x20], eax
push 0
push 1
push 1
push 0
call dword [0x4b90fc]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x24], eax
push 0
push 0
push 1
push 0
call dword [0x4b90fc]
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x28], eax
push 0
push 1
push 1
push 0
call dword [0x4b90fc]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x2c], eax
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x40], 0
push 0xc4
call dword [0x4b93e8]
add esp, 4
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 3
cmp dword [ebp - 0x14], 0
je 0x479d27
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x18]
push ecx
mov ecx, dword [ebp - 0x14]
call fcn.0047fab0
mov dword [ebp - 0x18], eax
jmp 0x479d2e
mov dword [ebp - 0x18], 0
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], edx
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x1c]
mov dword [eax + 0xbc], ecx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x49bf20
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b71e8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
mov eax, dword [eax + 0x10]
call eax
test al, al
jne 0x49c079
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x14]
mov eax, dword [edi]
mov ecx, edi
mov eax, dword [eax + 0x10]
call eax
test al, al
je 0x49c079
cmp dword [edi + 0x7c], 0
je 0x49c079
mov ecx, dword [edi + 0x28]
mov esi, 0x64
mov eax, dword [ecx]
call dword [eax + 0x10]
mov ecx, eax
mov edx, dword [eax]
call dword [edx + 0x14]
sub esp, 0x18
xor edx, edx
mov ecx, esp
push 0xffffffffffffffff
push edx
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], dx
call fcn.0040b790
lea ecx, [esp + 0x28]
call fcn.004a0d10
add esp, 0x18
mov dword [esp + 0x38], 0
lea ecx, [esp + 0x10]
cmp dword [esp + 0x24], 0x10
cmovae ecx, dword [esp + 0x10]
call fcn.0046d8a0
cmp eax, 0x1770
mov ecx, 0x258
push 0
cmovge esi, ecx
mov ecx, dword [edi + 0x7c]
push 0
mov eax, esi
cdq
push edx
push eax
call fcn.00495250
test al, al
jne 0x49c04a
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x18]
push 0x442fb0
push ecx
mov ecx, dword [0x4b921c]
mov edx, str._Error_:_CVersion_exchange_failed_close_ScreenShotrServices_service_
call fcn.00409450
add esp, 4
mov ecx, eax
call dword [0x4b9244]
push str.VersionExchange_failed_close_ScreenShotrServices_service_
push str.CScreenShotrService::ConnectToService
push 0x3c
push str.ServiceScreenShotrService.cpp
push 3
call fcn.004438a0
add esp, 0x14
push str.CScreenShotrService_ConnectToService_Success
push str.CScreenShotrService::ConnectToService
push 0x3e
push str.ServiceScreenShotrService.cpp
push 7
call fcn.004438a0
add esp, 0x14
cmp dword [esp + 0x24], 0x10
jb 0x49c079
push dword [esp + 0x10]
call dword [0x4b93e4]
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.004a6303
mov esp, ebp
pop ebp
ret
Function at 0x4a1a90
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4aeae8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
push 0x38
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], 1
mov dword [esp + 0x2c], 0x4bce80
call dword [0x4b93e8]
add esp, 4
mov dword [esp + 0xc], eax
mov dword [esp + 0x38], 0
test eax, eax
je 0x4a1afb
lea ecx, [esp + 0x1c]
push ecx
mov ecx, eax
call fcn.004a2d50
jmp 0x4a1afd
xor eax, eax
mov dword [esp + 0x38], 0xffffffff
lea ecx, [esp + 0x14]
push eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
call fcn.00460b50
mov dword [esp + 0x38], 1
mov edi, dword [esp + 0x14]
mov dword [esp + 0xc], 0
lea esi, [edi + 0x20]
push esi
mov dword [esp + 0x14], esi
call dword [0x4b90bc]
lea eax, [esp + 0xc]
mov byte [esp + 0x38], 2
push eax
push ecx
mov ecx, dword [edi]
lea eax, [esp + 0x24]
push 4
push eax
mov dword [esp + 0x2c], str.ReturnValue
mov dword [esp + 0x30], 0xffffffff
call fcn.004a2c20
push esi
mov byte [esp + 0x3c], 1
call dword [0x4b90c0]
lea eax, [esp + 0x14]
push eax
push dword [ebp + 8]
call fcn.004a19e0
mov dword [esp + 0x38], 0xffffffff
mov esi, dword [esp + 0x18]
test esi, esi
je 0x4a1bb8
or edi, 0xffffffff
lea ecx, [esi + 4]
mov eax, edi
lock xadd dword [ecx], eax
jne 0x4a1bb8
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lea eax, [esi + 8]
lock xadd dword [eax], edi
dec edi
jne 0x4a1bb8
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x5032be
Capabilities:
Execute syscall

Disassembly:
bsr eax, ebp
sar ah, cl
push ebp
bsf bp, ax
mov ebp, esp
add al, 0x69
dec ax
inc ax
sub esp, 0x18
clc
lea eax, [eax*4 + 0x60c60c5a]
sal ah, cl
stc
push esi
aad 0x44
bt dx, di
bswap eax
push edi
sub ah, 0x29
push ebx
cmc
setg al
sbb eax, ecx
aam 0xe7
push edx
mov eax, 0x14a5aa1e
shl ax, 5
mov eax, dword [ebp + 8]
stc
test eax, eax
pushfd
pushal
push ebx
mov dword [esp], esp
lea esp, [esp + 0x28]
je fcn.00502b3e
dec si
rcl esi, 1
stc
pushal
mov esi, dword [eax + 0x3c]
movzx dx, al
jmp 0x505cb7
jae 0x503185
aas
push ebp
aad 0x2c
aam 0x6d
pushal
lea ebp, [esp + 0x20]
add ax, di
mov byte [esp], dl
call fcn.00502772
fnstsw word [eax - 0x35]
fcomp st(3)
xchg byte [ebp + 0x1d630ee1], ah
sub dword [ecx + 0x7bcf9208], eax
invalid
sub dl, 0x27
cmp ch, 0x9f
add esi, eax
call fcn.004fd4cf
add byte [eax], al
aas
aas
aas
and al, 0x62
popal
jae 0x505d38
arpl word [edi + 0x6f], bx
jae 0x505d48
jb 0x505d3b
popal
insd dword es:[edi], dx
inc eax
pop edi
push edi
push ebp
aas
and al, 0x63
push 0x745f7261
jb 0x505d47
imul esi, dword [ebx + esi*2 + 0x40], 0x7340575f
je 0x505d54
inc eax
inc eax
inc eax
jae 0x505d69
inc eax
inc eax
push ecx
inc ecx
inc ebp
inc ecx
inc ecx
push esi
xor byte [ecx], dh
inc eax
dec ebx
inc eax
pop edx
add byte [eax], al
add byte [edi + 0x65], al
je 0x505d58
inc edi
je 0x505d58
outsd dx, dword [esi]
jne 0x505d7b
inc esi
imul ebp, dword [ebp + 0x4e], 0x41656d61
add byte [eax], al
add byte [edi + 0x63], bl
js 0x505d8a
je 0x505d23
arpl si, ax
cli
mov al, 0x86
movsd dword es:[edi], dword [esi]
mov edx, 0x55b9e74a
in eax, 0x80
mov dword [esi + eax*8 - 0x211d5065], edx
dec esp
daa
adc ebx, dword [edx - 0x41]
jb 0x505d07
outsb dx, byte [esi]
retf
sysenter
or eax, 0xc9413f08
xor al, 0xd
or byte [edi], bh
inc ecx
leave
pop esi
add bl, byte [ebx - 0x57]
ret
lea eax, [ebp - 0x14e06333]
sbb byte [ebp + 0x2d], ch
dec esp
call 0x17aaec1b
dec edx
mov dword [0x3bcb592f], eax
pop ds
jmp 0x505d73
call [ebx - 0x1f5753a1]
bound esp, qword [ebx]
invalid
out 0x55, al
salc
call 0xd387ccfe
mov byte [0xa6c54e3a], al
out 0x54, eax
dec esp
invalid
fisub dword [eax + 0x3c]
int 0x87
sahf
xchg edi, ebx
inc edx
out dx, eax
mov bl, 0xd4
jmp 0x9db1c040

Function at 0x508469
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov byte [esp], bh
lea esp, [esp + 0x10]
jbe 0x501a7f
call fcn.004fd2ae
mov dword [ebp - 0x10], ecx
shld cx, ax, cl
mov ecx, dword [ebp + 0xc]
bt esi, 0xf
push dword [esp + 4]
test ebp, esp
cmp ecx, 0xffff
pushfd
jmp 0x4fdec7
Function at 0x408bd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
in eax, dx
inc ebp
cld
jg 0x408c44
mov esp, 0x51b00466
invalid
Function at 0x408a80
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4982fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0048cc36
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x408b02
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0048a750
mov eax, dword [eax]
push 0xf56c94
push eax
call fcn.0047c974
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0048cec1
test bl, bl
je 0x408b02
push 0xf56c94
lea ecx, [esp + 0xc]
call fcn.0048d251
push 0xf56ca0
lea ecx, [esp + 0xc]
call fcn.0048d251
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x408b3e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0048cec1
jmp 0x408c09
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x408bc2
lea edx, [esp + 0x7c]
push 0xf56c9c
push edx
call fcn.0047c974
add esp, 8
test eax, eax
je 0x408bc2
lea eax, [esp + 0x7c]
push 0xf56c98
push eax
call fcn.0047c974
add esp, 8
test eax, eax
je 0x408bc2
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x408b52
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0048cec1
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x409400
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x409462
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x409470
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x49837b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0xf624dc]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x4095a8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x4094d6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0048cec1
xor eax, eax
jmp 0x40961f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0048cffe
push esi
lea ecx, [esp + 0xc]
call fcn.0048d28d
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0xf56cd4
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x4095fd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push 0xf56ccc
push closesocket
call fcn.00409400
test eax, eax
jne 0x4095fd
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push 0xf56cb8
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push closesocket
mov ecx, edi
call fcn.00409400
test eax, eax
jne 0x4095fd
lea eax, [esp + 0x14]
push 0xf56cb0
push eax
call fcn.0047d9f0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4095dc
lea ecx, [esp + 0x14]
push 0xf56cac
push ecx
call fcn.0047d970
mov esi, eax
add esp, 8
test esi, esi
jne 0x4095dc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x4095df
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0048cfae
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4094ee
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0048cec1
xor eax, eax
jmp 0x40961f
mov byte [esi], 0
push 0xf56ca8
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.0048cec1
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4