joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4bb980
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5104f8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x54e414]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], 0
cmp dword [ebp + 0xc], 0
je 0x4bb9ee
lea eax, [esi + 0x68]
mov dword [esi], 0x514e88
mov dword [esi + 0x10], 0x514e90
mov dword [ebp + 0xc], eax
mov dword [eax], vtable.std::ios_base.0
mov dword [ebp - 4], 0
mov dword [eax], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], 1
push 0
push 0
lea edi, [esi + 0x18]
mov ecx, esi
push edi
call fcn.004aa730
mov dword [ebp - 4], 4
lea edx, [esi + 0x10]
mov dword [ebp + 0xc], edx
mov eax, dword [edx]
mov eax, dword [eax + 4]
mov dword [edx + eax], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [edx]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + edx - 4], eax
mov dword [ebp - 4], 7
mov eax, dword [esi]
mov eax, dword [eax + 4]
mov dword [esi + eax], vtable.std::basic_iostream_char__struct_std::char_traits_char__.0
mov eax, dword [esi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ecx + esi - 4], eax
mov dword [ebp - 4], 8
mov eax, dword [esi]
push 8
mov eax, dword [eax + 4]
mov dword [esi + eax], vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov eax, dword [esi]
mov ecx, dword [eax + 4]
mov dword [ebp + 0xc], edi
lea eax, [ecx - 0x68]
mov dword [ecx + esi - 4], eax
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.004d1497
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4bba88
push 1
call fcn.004cec85
add esp, 4
mov dword [ebx + 4], eax
jmp 0x4bba8a
xor ebx, ebx
lea eax, [edi + 4]
mov dword [edi + 0x34], ebx
mov dword [edi + 0xc], eax
lea ecx, [edi + 8]
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov byte [ebp - 4], 9
mov ebx, dword [ebp + 8]
mov ecx, ebx
not ecx
mov dword [edi], vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
and ecx, 1
mov dword [edi + 0x38], 0
shl ecx, 2
mov eax, ebx
mov edx, ecx
or edx, 2
and al, 2
mov eax, ebx
cmovne edx, ecx
mov ecx, edx
or ecx, 8
and al, 8
cmove ecx, edx
mov eax, ecx
or eax, 0x10
and bl, 4
cmove eax, ecx
mov dword [edi + 0x3c], eax
mov dword [ebp - 4], 0xffffffff
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 8
Function at 0x4c0a10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x511283
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x54e414]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
movzx eax, word [ebp + 0xc]
mov esi, dword [ebp + 8]
push 0x515360
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x4c0b7b
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x4c0b7b
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4c0b7b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4c0b7b
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x4c0b7b
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x4c0b74
push ebx
push esi
push eax
call fcn.004d40d0
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0
push eax
push 0
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x4c0b74
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x4c0b74
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x4c0b2b
mov dword [esi], vtable.Gdiplus::Image.0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x10]
push eax
push ebx
mov dword [esi], vtable.Gdiplus::Bitmap.0
mov dword [ebp - 0x10], 0
call sub.gdiplus.dll_GdipCreateBitmapFromStream
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x10]
mov dword [esi + 4], eax
mov byte [ebp - 4], 0
jmp 0x4c0b2d
xor esi, esi
mov dword [ebp - 4], 0xffffffff
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
test esi, esi
je 0x4c0b60
mov eax, dword [esi + 8]
mov dword [esi + 8], 0
test eax, eax
je 0x4c0b60
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
xor esi, esi
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
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
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 0x4cfd20
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x54e414]
xor eax, esp
mov dword [esp + 0x114], eax
push 0x110
lea eax, [esp + 8]
mov dword [esp + 4], 0x114
push 0
push eax
call fcn.004d4650
add esp, 0xc
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4cfd87
mov eax, dword [esp + 4]
cmp eax, 5
ja 0x4cfd70
jne 0x4cfd87
cmp dword [esp + 8], 0
jbe 0x4cfd87
mov al, 1
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.004d1486
add esp, 0x118
ret
mov ecx, dword [esp + 0x114]
xor al, al
xor ecx, esp
call fcn.004d1486
add esp, 0x118
ret

Function at 0x4cfda0
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x54e414]
xor eax, esp
mov dword [esp + 0x114], eax
push 0x110
lea eax, [esp + 8]
mov dword [esp + 4], 0x114
push 0
push eax
call fcn.004d4650
add esp, 0xc
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x4cfdf5
xor al, al
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.004d1486
add esp, 0x118
ret
cmp dword [esp + 4], 6
mov ecx, dword [esp + 0x114]
setae al
xor ecx, esp
call fcn.004d1486
add esp, 0x118
ret

Function at 0x4cfe20
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x54e414]
xor eax, esp
mov dword [esp + 0x114], eax
push 0x110
lea eax, [esp + 8]
mov dword [esp + 4], 0x114
push 0
push eax
call fcn.004d4650
add esp, 0xc
lea eax, [esp]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x4cfe75
xor al, al
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.004d1486
add esp, 0x118
ret
cmp dword [esp + 4], 0xa
mov ecx, dword [esp + 0x114]
setae al
xor ecx, esp
call fcn.004d1486
add esp, 0x118
ret
Function at 0x4d0b80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x54e414]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x410
push 0
lea eax, [ebp - 0x414]
push eax
call fcn.004d4650
add esp, 0xc
mov dword [ebp - 0x418], 0
lea ecx, [ebp - 0x418]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
je 0x4d0bce
xor al, al
jmp 0x4d0c27
lea eax, [ebp - 0x414]
push eax
mov ecx, dword [ebp - 0x418]
push ecx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
jne 0x4d0c00
cmp dword [ebp - 0x418], 0
je 0x4d0bfc
mov edx, dword [ebp - 0x418]
push edx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
xor al, al
jmp 0x4d0c27
lea eax, [ebp - 0x414]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.0040a780
cmp dword [ebp - 0x418], 0
je 0x4d0c25
mov ecx, dword [ebp - 0x418]
push ecx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d1486
mov esp, ebp
pop ebp
ret
Function at 0x4d11f0
Capabilities:
Get session user name

Disassembly:
sub esp, 0x214
mov eax, dword [0x54e414]
xor eax, esp
mov dword [esp + 0x210], eax
push esi
mov esi, ecx
mov dword [esi], 0
cmp dword [0x54e3e8], 0
jne 0x4d1272
push 0x20a
lea eax, [esp + 0xc]
push 0
push eax
call fcn.004d4650
add esp, 0xc
mov dword [esp + 4], 0x104
lea eax, [esp + 4]
push eax
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
xor eax, eax
lea ecx, [esp + 8]
mov word [esp + 0x20e], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4d1253
sub ecx, edx
lea eax, [esp + 8]
sar ecx, 1
push ecx
push eax
mov ecx, 0x54e3d8
call fcn.0040af20
mov ecx, dword [esp + 0x214]
mov eax, esi
pop esi
xor ecx, esp
call fcn.004d1486
add esp, 0x214
ret

Function at 0x4d1320
Capabilities:
Get session user name

Disassembly:
push ebp
lea ebp, [esp - 0x210]
sub esp, 0x210
push 0xffffffffffffffff
push 0x512fb8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x54e414]
xor eax, ebp
mov dword [ebp + 0x20c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [0x550dd8]
test eax, eax
jle 0x4d1371
inc eax
mov dword [0x550dd8], eax
mov al, 1
jmp 0x4d1463
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x10], 0
xor bh, bh
mov dword [ebp - 0x14], 0
call fcn.00421470
mov dword [ebp - 4], 0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x18]
call fcn.00422030
mov bl, al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.004214f0
test bl, bl
je 0x4d1453
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x4d1453
push str.ImpersonateLoggedOnUser
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push dword [ebp - 0x10]
call eax
test eax, eax
je 0x4d144c
inc dword [0x550dd8]
mov eax, dword [edi]
test eax, eax
je 0x4d13f6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
mov bh, 1
mov dword [edi], eax
cmp dword [0x54e400], 0
mov dword [ebp - 0x10], 0
jne 0x4d144c
push 0x20a
lea eax, [ebp]
push 0
push eax
call fcn.004d4650
add esp, 0xc
mov dword [ebp - 0x14], 0x104
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
xor eax, eax
mov ecx, 0x54e3f0
mov word [ebp + 0x206], ax
lea eax, [ebp]
push eax
call fcn.0040a780
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x4d1461
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bh
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x20c]
xor ecx, ebp
call fcn.004d1486
lea esp, [ebp + 0x210]
pop ebp
ret

Function at 0x4f037c
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004f003c
Function at 0xe48678
Capabilities:
Encode data using xor

Disassembly:
jmp 0xe48682
pushal
call 0xe48688
pop ebp
sub ebp, 0x10
sub ebp, 0xa48678
jmp 0xe4869e
mov eax, 0xa48678
add eax, ebp
add eax, 0x4c
mov ecx, 0x5cb
mov edx, 0x73f6ace5
xor byte [eax], dl
inc eax
dec ecx
jne 0xe486b5
jmp 0xe486c8
outsb dx, byte [esi]
sub byte [esi + 0x6c], ch
fxam
in eax, 0xe5
and al, 0x1d
in eax, 0xe5
in eax, 0xe6
sub byte [ebp - 9], bl
in eax, 0xe5
in eax, 0x5f
int 0xe5
in eax, 0xe5
adc al, byte [edi]
out 0x2d, al
outsb dx, byte [esi]
jmp 0xe7ca6cd2
Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
call 0x43000c
nop
nop
pop eax
nop
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..rdata
nop
nop
mov ebx, 0x40c7d0
mov ecx, 0x1c357c16
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x432024
nop
nop
mov eax, section..text
nop
mov ebx, 0x42f314
nop
nop
mov ecx, 0x461441ce
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x432084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x407ef8
nop
nop
mov ecx, 0x4f42f10
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x42e04e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x42e024
nop
nop
mov eax, section..data_1
nop
nop
mov ebx, 0x42cd70
mov ecx, 0xf5e4a0e
nop
nop
nop
nop
nop
test eax, eax
je 0x42e084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x44ba10
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 8
push esi
mov esi, dword [esp + 0x10]
push edi
mov dword [esi], 0
mov eax, dword [0x7d5a8c]
push eax
call dword [sym.imp.ole32.dll_CoRevokeClassObject]
mov cl, byte [0x7d204a]
mov dl, byte [0x7d204d]
mov eax, dword [0x7d2034]
mov edi, dword [0x7d2030]
and dl, cl
mov ecx, dword [0x7d2038]
mov byte [0x7d204d], dl
mov edx, eax
shr edx, 2
sub edi, edx
xor edx, edx
mov dl, byte [0x7d2043]
or ecx, 7
imul ecx, edx
mov dword [0x7d2030], edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
and eax, ecx
push 0x10
mov dword [0x7d2034], eax
call edi
test ax, ax
jge 0x44ba87
or dword [esi], 0x2000000
mov eax, dword [0x7d2030]
mov ecx, dword [0x7d2034]
shr eax, 0xc
or eax, ecx
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
push 0x11
fild qword [esp + 0xc]
fadd qword [0x7d2050]
fstp qword [0x7d2050]
call edi
test ax, ax
jge 0x44bac2
or dword [esi], 0x4000000
push 0x12
call edi
test ax, ax
jge 0x44bad1
or dword [esi], 0x8000000
mov eax, esi
pop edi
pop esi
add esp, 8
ret 4
Function at 0x4a3011
Capabilities:
Encode data using xor

Disassembly:
sub esi, dword [esi]
inc edi
xor al, 0xcf
adc ah, byte [edi]
sbb al, 0x76
salc
xor ah, dh
mov word [edx + 0x4e87e8a7], es
fld xword [ecx + 0x66dbdbf4]
push ebx
out dx, al
aaa
pop esp
jle 0x4a3069
inc ebx
invalid
shl dword es:[eax], cl
adc eax, 0x874506a6
cmp byte [eax - 0x79], bl
popal
outsb dx, byte [esi]
scasb al, byte es:[edi]
push eax
pop edx
scasd eax, dword es:[edi]
or bh, bh
cmp ch, byte [eax - 0x14]
call dword [ebx + 0x67]
push ss
add eax, 0x9db6cf39
and bh, byte [eax + 0x5658873f]
inc esi
mov ebp, 0xd705f7d8
mov cl, dl
inc ecx
movsb byte es:[edi], byte [esi]
sbb eax, 0xf9e30c05
adc byte ds:[ecx], bl
cld
or byte [ebx + ebx - 0x791980e0], 0x94
cmp ebp, ebp
push cs
xchg ecx, eax
insb byte es:[edi], dx
jne 0x4a2fe5
push ebx
adc dword gs:[edi], edx
xchg byte [ebx + esi*4], bh
or byte [ebp*2 + 0x2216c7e4], bh
pop eax
daa
jae 0x4a30b1
inc edi
std
clc
invalid
test dword [esp], edi
push eax
mov byte [0x96610fdc], al
jae 0x4a3107
invalid
ja 0x4a3102
cmp ecx, dword [edx - 0x48]
xchg dword [edi + esi*8 - 0x70], esi
jge 0x4a3130
pop edi
push edx
mov bh, 0xbd
hlt
lsl edx, edi
rcr byte [esi - 0x65], 0x59
wait
pop ecx
sub byte [ecx + esi - 0x32], dh
outsd dx, dword [esi]
sbb esi, dword [edi - 0x44]
xchg edi, eax
add byte [ebx + 0x26], ch
jg 0x4a316c
cld
add dword [edx - 0x58], 0x9c7733c3
sbb byte [ebx + 0xb], 0xdf
in eax, 0x31
cmpsd dword [esi], dword es:[edi]
sub bh, byte [edi]
adc dword [edx + 0x70], ecx
mov edi, 0xa3b705e8
xchg edi, eax
in al, dx
xchg edx, eax
sbb byte [edx - 0x21945db9], ch
daa
salc
pop ds
sal ebx, 1
push esi
sub dword [esi + 0x7e025e7d], eax
or eax, dword [ecx]
adc ecx, dword [ebx]
salc
xor edx, dword [eax + 0x2f761a4e]
das
jle 0x4a30e5
adc al, 0x72
mov eax, 0x7e577590
invalid
push cs
xchg dword [ebp - 0x4c], ebx
sbb byte [ecx], 0xc6
test dword [ebx + 1], edi
push cs
in al, 0xb3
test byte [ecx], dh
and dword [edi], eax
xor dword [ecx], esp
pop es
xor dword [esi + 0x1263d835], esp
jl 0x4a315c
adc bh, byte [ebp + 0x76]
salc
jbe 0x4a314f
mov dl, 0xec
aam 0xc7
stc
out 0xff, al
push ss
pop esp
mov cl, ah
xchg ecx, eax
ja 0x4a3174
cdq
inc esp
hlt

Function at 0x4d34df
Capabilities:
Encode data using xor

Disassembly:
cmc
push ss
mov ah, 0x8f
fincstp
inc eax
pushal
xchg dword [edi + 0x6e], edx
push esp
xchg dword [ecx + 0x65], esp
push edi
inc esp
xor al, 0x70
sbb al, 0x96
or byte [ecx], 0x4b
inc esi
outsd dx, dword [esi]
add eax, ebx
std
mov byte [0x5b6f719], al
mov dword [edi - 0x7ad8d909], 0x1c4ec118
or edi, edx
invalid
Function at 0x56d889
Capabilities:
Encode data using xor

Disassembly:
out 0x48, eax
fist dword [esi]
dec ebp
and al, dl
or byte [ecx - 0x24d70428], cl
out dx, eax
fisttp word [eax]
push edi
into
aaa
stosd dword es:[edi], eax
xor ebp, dword [edi - 0x47ed7221]
jg 0x56d846
lea edx, [edx]
mov eax, 0x50ab667f
stosd dword es:[edi], eax
push eax
pop edx
pop es
scasd eax, dword es:[edi]
xor byte [ebx - 0x203701e9], bh
call 0x62eb869f
invalid
pushal
pop esp
outsd dx, dword [esi]
fldenv [ebx + 0x4d]
fstp st(7)
mov ah, 0x2e
and edi, dword [esi]
cmp eax, 0x33e21d70
loop 0x56d836
xor edx, ebx
ja 0x56d7c4
mov bl, byte [esi - 0x73]
dec esi
pop ebp
pop esi
lea ecx, [esi + 0x5d]
push 0x6044706f
xor ebp, dword [edi - 0x43]
inc ebx
sub byte [eax], dh
sbb al, 0x25
xchg ecx, eax
pop esp
out dx, eax
out dx, eax
cmp byte [ebp - 0x24], al
pop ebp
jecxz 0x56d839
jo 0x56d7db
and dword [eax + 0x2baf2036], eax
mov ch, 0x7e
cmove ebx, dword cs:[ecx + 0x252e6ce4]
jle 0x56d88e
cmove ebx, dword [ecx + 0x252e6ce4]
push ss
cli
das
mov bh, 0xf4
ljmp 0x51ce
and al, 0x48
jb 0x56d85e
outsd dx, dword [esi]
add ebx, dword [eax - 0x6f809f38]
outsd dx, dword [esi]
jae 0x56d822
pop eax
fimul dword [edi + 0x75]
dec esp
sub byte [ecx + 0x1c], dl
and eax, 0x71e96a1a
in eax, 0x7e
ret 0x86c2

Function at 0x5823d3
Capabilities:
Encode data using xor

Disassembly:
ror byte gs:[esi + 0x5c45f029], 1
push ebp
mov bh, 0x1b
shl dword [ebx + 0x1697392], 0x57
sbb dl, byte [eax + 0x2ef015e0]
sal byte [esi], cl
fiadd word [edi]
nop
push edi
rcr byte [ebx - 0x5af1a0b0], cl
sbb al, 0xb
sub byte [ebp + edx + 0x209e81b5], 0xef
jae 0x5823d6
add dword [edi + 0x1a], edx
nop
loopne 0x582388
invalid
sahf
and bh, ch
push ebx
invalid
xor dh, byte [edx]
jmp 0x58235e
cli
jecxz 0x58236b
inc esp
push ebx
jle 0x5823ca
mov ch, 8
rcl byte [eax - 4], 0x47
push edx
xchg edi, eax
ror byte [ebx + 0x57], 0x66
and eax, 0x19977757
in al, 8
salc
mov al, 0x2d
retf 0x5cf7
Function at 0x5b9729
Capabilities:
Encode data using xor

Disassembly:
mov cl, dh
fadd qword [eax]
insd dword es:[edi], dx
adc ah, dh
fst qword [eax]
enter 0x53cd, 0x70
int1
push eax
add al, cl
int 0x53
jo 0x5b96be
push edi
xchg dword [edi], edi
cld
lea esp, [ebx + 0x7b]
sbb esp, dword [esi + 0x67]
push esi
fld xword [0xdc48b2e9]
mov eax, 0x8c8e190f
lds ebp, [edx - 0x62]
invalid
insd dword es:[edi], dx
push edx
lahf
dec esp
sub esi, dword [edi]
outsb dx, byte [esi]
pop ss
cmp byte [esi], bl
faddp st(1)
daa
xor ch, byte [esi + 0x16b94522]
pop ebx
inc edi
jl 0x5b9731
pop ebx
jbe 0x5b96c6
ret 0xe0a3

Function at 0x7c85cd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x7d2378
cmp edx, dword [eax]
je 0x7c85ef
add eax, 8
inc ecx
cmp eax, 0x7d2408
jl 0x7c85e0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x7d2378]
jne 0x7c871d
mov eax, dword [0xbd98d0]
cmp eax, 1
je 0x7c86f7
test eax, eax
jne 0x7c8620
cmp dword [0x7d22a4], 1
je 0x7c86f7
cmp edx, 0xfc
je 0x7c871d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x7c8657
lea eax, [ebp - 0x1a4]
push 0x7cddb8
push eax
call fcn.007c8fb0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.007c9440
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x7c869a
lea eax, [ebp - 0x1a4]
push eax
call fcn.007c9440
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x7cddb4
push edi
call fcn.007cb310
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x7cdd98
push eax
call fcn.007c8fb0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.007c8fc0
lea eax, [ebp - 0xa0]
push 0x7cdd94
push eax
call fcn.007c8fc0
push dword [esi + 0x7d237c]
lea eax, [ebp - 0xa0]
push eax
call fcn.007c8fc0
push 0x12010
lea eax, [ebp - 0xa0]
push 0x7cdd6c
push eax
call fcn.007cb284
add esp, 0x2c
pop edi
jmp 0x7c871d
lea eax, [ebp + 8]
lea esi, [esi + 0x7d237c]
push 0
push eax
push dword [esi]
call fcn.007c9440
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x402e18
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x402e71
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.kernel32.dll_GetCommandLineA
lea edx, [ebp - 8]
call fcn.00402cb4
mov dword [ebp - 4], eax
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00402cb4
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x402e5b
inc ebx
jmp 0x402e44
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402e78
lea eax, [ebp - 8]
call fcn.00404518
ret

Function at 0x402e80
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404518
test esi, esi
jne 0x402eb7
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.00404608
jmp 0x402ed8
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402cb4
mov dword [esp], eax
test esi, esi
je 0x402ed8
cmp dword [ebx], 0
je 0x402ed8
dec esi
jmp 0x402ebf
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x403188
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x4035e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x460024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403678
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403658
xor eax, eax
push ebp
push 0x403651
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 0x403694
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 0x403658
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x460024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x460024], ax
mov esp, ebp
pop ebp
ret

Function at 0x404374
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x462044], 0
je 0x4043d5
cmp word [0x462218], 0xd7b2
jne 0x40439d
cmp dword [0x462220], 0
jbe 0x40439d
mov eax, 0x462214
call dword [0x462230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x460070
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 0x4043fc
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x460034], 0
jne 0x4043f1
push 0
push 0x460068
push 0x460070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret