joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40340d
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ch, 0x7c
stc
invalid
cmp dword [0xa16453fb], ebx
xor byte [eax], al
add byte [eax], al
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0x1c]
lodsd eax, dword [esi]
cmp byte [eax + 0x1c], 0x18
je 0x4033fb
xchg esi, eax
lodsd eax, dword [esi]
mov eax, dword [eax + 8]
push eax
call fcn.00401237
outsd dx, dword [esi]
je 0x4033e2
je 0x403394
clc
mov eax, dword [edi + 0x3c]
mov edx, dword [edi + eax + 0x78]
add edx, edi
mov ecx, dword [edx + 0x18]
mov ebx, dword [edx + 0x20]
add ebx, edi
call fcn.00401237
in eax, 0x34
sahf
bound ecx, qword [ecx - 0x75]
xor al, 0x8b
dec ecx
mov esi, dword [ebx + ecx*4]
add esi, edi
mov eax, 0x50746547
cmp dword [esi], eax
jne 0x403424
mov eax, 0x41636f72
cmp dword [esi + 4], eax
jne 0x403424
call fcn.00401237
les edi, [eax + 0x5a8b7974]
and al, 3
fbld tbyte [esi - 0x75]
or al, 0x4b
mov ebx, dword [edx + 0x1c]
add ebx, edi
mov eax, dword [ebx + ecx*4]
add eax, edi
push eax
call fcn.00401237
std
inc esi
jb 0x4033f2
mov eax, dword [ebx]
invalid
push dword [ebp + 8]
push dword [ebp + 4]
push dword [ebp]
call fcn.00401a37
clc
add byte [ebp - 0x72ae17b3], cl
dec ebp
clc
push ecx
push 1
push 5
push edi
lea ecx, [ebp - 0xc]
push ecx
add edi, 5
push edi
lea ecx, [ebp - 0x10]
push ecx
push eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x18], 0x4032ca
mov dword [ebp - 0x14], 0x4032d5
call fcn.00403208
add esp, 0x28
test eax, eax
je 0x4034bb
push dword [ebp - 4]
call fcn.004037b1
pop ecx
jmp 0x403454
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov eax, dword [ebp - 4]
jmp 0x403456
Function at 0x4afb79
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18
mov al, byte [ecx]
and dword [esp + 0x14], 0
push ebx
push ebp
mov byte [edx], al
lea eax, [edx + 1]
push esi
mov dword [esp + 0x18], eax
push edi
mov dword [esp + 0x14], edx
mov esi, dword [esp + 0x14]
lea eax, [ecx + 1]
xor edi, edi
xor ebp, ebp
mov dword [esp + 0x18], eax
lea ecx, [esp + 0x18]
call fcn.004afb22
test eax, eax
je 0x4afcd2
lea ecx, [esp + 0x18]
call fcn.004afb22
lea ecx, [esp + 0x18]
test eax, eax
je 0x4afc41
call fcn.004afb22
test eax, eax
je 0x4afc03
push 4
xor edi, edi
pop ebx
lea ecx, [esp + 0x18]
call fcn.004afb22
lea edi, [eax + edi*2]
dec ebx
jne 0x4afbd9
mov edx, dword [esp + 0x1c]
test edi, edi
je 0x4afbfa
mov eax, edx
sub eax, edi
mov al, byte [eax]
mov byte [edx], al
jmp 0x4afbfd
mov byte [edx], 0
inc edx
jmp 0x4afce4
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
movzx esi, byte [eax]
mov ecx, esi
and ecx, 1
inc eax
add ecx, 2
shr esi, 1
mov dword [esp + 0x18], eax
je 0x4afc39
test ecx, ecx
je 0x4afccd
mov edi, edx
sub edi, esi
mov al, byte [edi]
mov byte [edx], al
inc edx
inc edi
dec ecx
jne 0x4afc2b
jmp 0x4afcc9
xor ebp, ebp
inc ebp
jmp 0x4afccd
call fcn.004afb58
test edi, edi
jne 0x4afc76
cmp eax, 2
jne 0x4afc71
lea ecx, [esp + 0x18]
call fcn.004afb58
mov edx, dword [esp + 0x1c]
mov edi, eax
test edi, edi
je 0x4afccd
mov ecx, edx
sub ecx, esi
mov al, byte [ecx]
mov byte [edx], al
inc edx
inc ecx
dec edi
jne 0x4afc66
jmp 0x4afcc9
sub eax, 3
jmp 0x4afc79
sub eax, 2
mov ecx, dword [esp + 0x18]
mov esi, eax
movzx eax, byte [ecx]
shl esi, 8
add esi, eax
inc ecx
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x18]
call fcn.004afb58
mov ecx, eax
cmp esi, 0x7d00
jb 0x4afca0
inc ecx
cmp esi, 0x500
jb 0x4afca9
inc ecx
cmp esi, 0x80
jae 0x4afcb4
add ecx, 2
mov edx, dword [esp + 0x1c]
test ecx, ecx
je 0x4afccd
mov edi, edx
sub edi, esi
mov al, byte [edi]
mov byte [edx], al
inc edx
inc edi
dec ecx
jne 0x4afcc0
mov dword [esp + 0x1c], edx
xor edi, edi
inc edi
jmp 0x4afcea
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov al, byte [ecx]
mov byte [edx], al
inc edx
inc ecx
mov dword [esp + 0x18], ecx
xor edi, edi
mov dword [esp + 0x1c], edx
test ebp, ebp
je 0x4afba9
sub edx, dword [esp + 0x14]
pop edi
mov eax, edx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4afe6f
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov ebx, edi
shr ebx, 2
and edi, 3
mov esi, ecx
test ebx, ebx
je 0x4afea1
mov al, byte [esp + 0x14]
mov edx, dword [esi]
add al, bl
movzx ecx, al
mov eax, dword [esp + 0x10]
ror edx, cl
xor edx, eax
sub edx, ebx
mov dword [esi], edx
add esi, 4
dec ebx
jne 0x4afe82
jmp 0x4afea5
mov eax, dword [esp + 0x10]
test edi, edi
je 0x4afeaf
xor byte [esi], al
inc esi
dec edi
jne 0x4afea9
pop edi
pop esi
pop ebx
ret 0xc
Function at 0x48ee74
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4a9b30]
jne 0x48ee7e
repz ret
jmp fcn.00493927

Function at 0x491ab1
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4a9b30]
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.0048c052
and dword [ebp - 0x14], 0
cmp dword [0x4acb0c], 0
mov dword [ebp - 0x18], eax
jne 0x491b64
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x491c0c
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x491c0c
mov esi, dword [fcn.00488080]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4acb0c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4acb10], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4acb14], eax
call edi
push eax
call esi
mov dword [0x4acb1c], eax
test eax, eax
je 0x491b64
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4acb18], eax
mov eax, dword [0x4acb18]
mov ecx, dword [ebp - 0x18]
mov esi, dword [fcn.00488084]
cmp eax, ecx
je 0x491bbd
cmp dword [0x4acb1c], ecx
je 0x491bbd
push eax
call esi
push dword [0x4acb1c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x491bbd
test ebx, ebx
je 0x491bbd
call edi
test eax, eax
je 0x491bb4
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x491bb4
test byte [ebp - 8], 1
jne 0x491bbd
or dword [ebp + 0x10], 0x200000
jmp 0x491bf0
mov eax, dword [0x4acb10]
cmp eax, dword [ebp - 0x18]
je 0x491bf0
push eax
call esi
test eax, eax
je 0x491bf0
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x491bf0
mov eax, dword [0x4acb14]
cmp eax, dword [ebp - 0x18]
je 0x491bf0
push eax
call esi
test eax, eax
je 0x491bf0
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4acb0c]
call esi
test eax, eax
je 0x491c0c
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x491c0e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048ee74
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x402680
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x421950
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x438850
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x44f644]
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
mov dword [ebp - 0x14], edi
mov ebx, dword [0x44f378]
mov esi, 1
mov ecx, dword [0x44f37c]
cmp ebx, ecx
jae 0x4219fa
test esi, esi
js 0x4219f7
mov edi, dword [ebx]
test edi, edi
je 0x4219f0
mov eax, dword [edi + 8]
mov dword [ebp - 0x18], 0
test eax, eax
jne 0x4219b1
xor esi, esi
jmp 0x4219f0
lea ecx, [ebp - 0x18]
push ecx
push 0x439448
push dword [edi + 0xc]
call eax
mov esi, eax
test esi, esi
js 0x4219dd
mov eax, dword [edi + 0x10]
add eax, 4
push eax
push 5
push 4
push dword [ebp - 0x18]
push dword [edi]
call dword [sym.imp.ole32.dll_CoRegisterClassObject]
mov esi, eax
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x4219ea
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [0x44f37c]
add ebx, 4
cmp ebx, ecx
jb 0x421995
mov edi, dword [ebp - 0x14]
test esi, esi
js 0x421aa1
jne 0x421a9d
cmp byte [edi + 0x3c], 0
je 0x421a88
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi + 0x30], eax
test eax, eax
je 0x421a7a
lea eax, [ebp - 0x14]
push eax
push 0
push edi
push 0x4214b0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
test ebx, ebx
jne 0x421a4f
push dword [edi + 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x30], ebx
test ebx, ebx
je 0x421a7a
call dword [sym.imp.ole32.dll_CoResumeClassObjects]
mov esi, eax
test esi, esi
jns 0x421a71
push dword [edi + 0x30]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [edi + 0x34]
add ecx, ecx
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x421a90
mov ecx, edi
mov esi, 0x80004005
call fcn.00421c20
jmp 0x421aa1
call dword [sym.imp.ole32.dll_CoResumeClassObjects]
mov esi, eax
test esi, esi
jns 0x421aa1
mov ecx, edi
call fcn.00421c20
jmp 0x421aa1
mov byte [edi + 0x3c], 0
mov eax, esi
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.0043699d
mov esp, ebp
pop ebp
ret 4
Function at 0x422050
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp byte [0x4558f8], 0
je 0x422066
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret 0x10
push esi
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
mov esi, eax
mov dword [ebp - 4], esi
test esi, esi
jns 0x42209c
cmp esi, 0x80010106
jne 0x422112
push str.Mscoree.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x4220a3
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0x10
mov byte [0x455976], 1
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea ecx, [ebp - 4]
push ecx
push eax
mov ecx, 0x455938
call fcn.004214f0
cmp al, 1
jne 0x422100
push dword [ebp + 0x14]
mov ecx, 0x455938
call fcn.00421950
mov esi, eax
test esi, esi
jne 0x4220db
mov ecx, 0x455938
call fcn.00421c70
jmp 0x4220dd
js 0x422103
mov ecx, 0x455938
call fcn.00421c20
cmp byte [0x455974], 0
mov esi, eax
je 0x422103
push dword [0x455970]
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x422103
mov esi, dword [ebp - 4]
cmp byte [0x455976], 0
je 0x422112
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x434310
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x434369
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x434369
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x43435a
cmp esi, edx
jae 0x434369
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x434348
cmp esi, edx
jae 0x434369
cmp word [esi], 0
je 0x434369
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
je 0x431072
nop
nop
nop
nop
mov ebx, 0x40915c
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0xd4c3560
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x431060
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4310d2
nop
nop
mov ebx, 0x42f3f8
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x4459266b
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x4310c0
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x408676
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop edx
mov esi, eax
and esi, 1
dec esi
not esi
and esi, 0xedb88320
shr eax, 1
xor eax, esi
dec edx
jne 0x40867e
mov dword [ecx*4 + 0x417920], eax
inc ecx
cmp ecx, 0x100
jb 0x408679
mov edx, 0x800
jmp 0x4086cb
mov eax, dword [ecx*4 + 0x417520]
mov esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x417920]
inc ecx
mov dword [ecx*4 + 0x41791c], eax
cmp ecx, edx
jb 0x4086aa
mov dword [0x417800], 0x412070
call fcn.0040d806
test eax, eax
pop esi
jne 0x4086ed
mov dword [0x417800], 0x411f90
ret

Function at 0x40d9a5
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40d9cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40d9cb
xor al, al
jmp 0x40d9eb
push 1
push 0
push 0
push dword [ebp - 4]
call fcn.00411d50
mov ecx, eax
xor eax, eax
add ecx, esi
adc edx, eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4
Function at 0x4113ce
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0xc]
xor eax, eax
and edx, 7
cmp ecx, 5
jae 0x4113e7
leave
ret
add dword [ebp + 0x10], 5
or dword [ebp + 0xc], 0xffffffff
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea ecx, [edi + ecx - 4]
mov dword [ebp - 4], ecx
lea esi, [eax + edi]
jmp 0x41140a
mov al, byte [esi]
and al, 0xfe
cmp al, 0xe8
je 0x41140f
inc esi
cmp esi, dword [ebp - 4]
jb 0x411401
mov eax, esi
sub eax, edi
cmp esi, dword [ebp - 4]
mov dword [ebp - 8], eax
jae 0x411504
mov ecx, eax
sub ecx, dword [ebp + 0xc]
cmp ecx, 3
jbe 0x411463
xor edx, edx
mov cl, byte [esi + 4]
test cl, cl
mov dword [ebp + 0xc], eax
je 0x41143a
cmp cl, 0xff
jne 0x41148e
xor ebx, ebx
mov bh, cl
movzx ecx, byte [esi + 2]
mov bl, byte [esi + 3]
shl ebx, 8
or ebx, ecx
movzx ecx, byte [esi + 1]
shl ebx, 8
or ebx, ecx
mov edi, ebx
cmp dword [ebp + 0x18], 0
je 0x41149c
lea ebx, [edi + eax]
add ebx, dword [ebp + 0x10]
jmp 0x4114a3
dec ecx
shl edx, cl
and edx, 7
je 0x41142b
movzx ecx, byte [edx + 0x414b90]
mov ebx, esi
sub ebx, ecx
cmp byte [edx + 0x414b88], 0
mov cl, byte [ebx + 4]
je 0x41148b
test cl, cl
je 0x41148b
cmp cl, 0xff
jne 0x41142b
mov dword [ebp + 0xc], eax
and edx, 3
add edx, edx
or edx, 1
inc eax
jmp 0x4113fc
sub edi, eax
sub edi, dword [ebp + 0x10]
mov ebx, edi
test edx, edx
je 0x4114d7
movzx edi, byte [edx + 0x414b90]
push 0x18
shl edi, 3
pop ecx
sub ecx, edi
mov eax, ebx
shr eax, cl
test al, al
je 0x4114c2
cmp al, 0xff
jne 0x4114d4
mov eax, dword [ebp - 8]
push 0x20
pop ecx
sub ecx, edi
xor edi, edi
inc edi
shl edi, cl
dec edi
xor edi, ebx
jmp 0x411455
mov eax, dword [ebp - 8]
mov edi, dword [ebp + 8]
mov ecx, ebx
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [esi + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [esi + 3], cl
mov ecx, ebx
shr ecx, 8
mov byte [esi + 2], cl
mov byte [esi + 1], bl
add eax, 5
jmp 0x4113fc
mov esi, eax
sub esi, dword [ebp + 0xc]
push 3
lea ecx, [esi - 1]
shl edx, cl
pop edi
and edx, 7
cmp edi, esi
sbb ecx, ecx
not ecx
pop edi
and ecx, edx
mov edx, dword [ebp + 0x14]
pop esi
mov dword [edx], ecx
pop ebx
leave
ret
Function at 0x402ed5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x402ee4
pop dword [ebp - 0x50]
mov eax, 0x9ff64f62
sub eax, 0x9fb6207e
sub dword [ebp - 0x50], eax
mov dword [ebp - 0x60], 0xc9677c31
sub dword [ebp - 0x60], 0x7b1536e6
mov dword [ebp - 0x5c], 0x70ff986a
add dword [ebp - 0x5c], 0xc133b3db
mov dword [ebp - 0x58], 0xe5f86459
add dword [ebp - 0x58], 0x6653dfd5
mov dword [ebp - 0x54], 0x6f986bad
sub dword [ebp - 0x54], 0x6f986bad
lea eax, [ebp - 0x60]
push eax
mov eax, 0x876497f
add eax, 0xf7ca3785
add eax, dword [ebp - 0x50]
call dword [eax]
mov dword [ebp - 0x60], 0xd99ffcf1
sub dword [ebp - 0x60], 0x652d939b
mov dword [ebp - 0x5c], 0x66f51e92
sub dword [ebp - 0x5c], 0x2588bd1d
mov dword [ebp - 0x58], 0x1a107fd2
add dword [ebp - 0x58], 0x495eec9a
mov dword [ebp - 0x54], 0x156cdc7f
sub dword [ebp - 0x54], 0x156cdc7f
lea ebx, [ebp - 0x60]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x50]
call dword [eax]
push 0x40
push 0x1000
push 0x36f13
push 0
call eax
mov ecx, 0x47a0
xor esi, esi
add esi, eax
mov edi, 0x45897790
add edi, 0xbabd6c70
add edi, dword [ebp - 0x50]
mov edx, 0xfd5d4054
add dword [ebp - 0x18], ebx
mov ebx, dword [edi]
sub dword [ebp - 0x2c], 0xd09ed78d
sub ebx, edx
xor dword [ebp - 0x40], 0x4a9b7122
mov dword [esi], ebx
sub dword [ebp - 0x1c], 0x3ca817bf
add esi, 4
add edi, 0x8912ecf8
sub edi, 0x8912ecf4
loop 0x402ff7
add eax, 0xebe393
add eax, 0xff152dc0
mov ebx, eax
add eax, 0xb0e3c721
add eax, 0x4f1c38e4
mov ecx, 0x80ad56ed
sub ecx, 0x806d56ed
add ecx, dword [ebp - 0x50]
call ebx
leave
ret

Function at 0x40317b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
cmp eax, esi
jl 0x4031a6
mov ecx, dword [0x42a298]
push esi
add eax, ecx
push esi
push eax
mov dword [0x418ed4], eax
push dword [0x40a01c]
call dword [sym.imp.kernel32.dll_SetFilePointer]
push 4
call fcn.00403283
cmp eax, esi
jl 0x40327d
lea eax, [ebp + 8]
push 4
push eax
push dword [0x40a01c]
call fcn.00402ed5
test eax, eax
je 0x40326d
push dword [ebp + 8]
add dword [0x418ed4], 4
call fcn.00403283
mov ebx, eax
cmp ebx, esi
jl 0x40327b
cmp dword [ebp + 0x10], esi
jne 0x403249
cmp dword [ebp + 8], esi
jle 0x40327b
mov esi, 0x414ed0
cmp dword [ebp + 8], 0x4000
mov eax, dword [ebp + 8]
jl 0x40320b
mov eax, 0x4000
push eax
push esi
push dword [0x40a01c]
mov dword [ebp - 4], eax
call fcn.00402ed5
test eax, eax
je 0x40326d
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call fcn.00402ed5
test eax, eax
je 0x403245
mov eax, dword [ebp - 4]
sub dword [ebp + 8], eax
add dword [0x418ed4], eax
add ebx, eax
cmp dword [ebp + 8], 0
jg 0x4031fa
jmp 0x40327b
push 0xfffffffffffffffe
jmp 0x40326f
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x403254
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push esi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40a01c]
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x403272
push 0xfffffffffffffffd
pop eax
jmp 0x40327d
mov ebx, dword [ebp - 4]
add dword [0x418ed4], ebx
mov eax, ebx
pop esi
pop ebx
leave
ret 0x10
Function at 0x102b133
Capabilities:
Create directory
Get common file path
Get session user name

Disassembly:
mov eax, 0x10343af
call fcn.0102edd8
sub esp, 0x10
push ebx
push esi
push edi
call fcn.0100bdbb
test eax, eax
je 0x102b15a
call fcn.0100bdbb
test eax, eax
je 0x102b15a
mov ebx, dword [eax + 0x20]
jmp 0x102b15c
xor ebx, ebx
mov edi, dword [ebp + 8]
push 0
push 0x1c
mov esi, 0x104
push esi
mov ecx, edi
call sub.MFC42u.DLL_CString::GetBuffer
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0xffffffffffffffff
mov ecx, edi
call sub.MFC42u.DLL_CString::ReleaseBuffer
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::CString_3
and dword [ebp - 4], 0
push 0xc44b
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::LoadStringW
mov ebx, 0x10021cc
push ebx
push edi
lea eax, [ebp - 0x18]
push eax
call sub.MFC42u.DLL_operator
lea ecx, [ebp - 0x10]
push ecx
push eax
lea eax, [ebp + 8]
push eax
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_operator_1
push eax
mov ecx, edi
mov byte [ebp - 4], 2
call sub.MFC42u.DLL_CString::operator
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call sub.MFC42u.DLL_CString::CString
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call sub.MFC42u.DLL_CString::CString
push ebx
mov ecx, edi
call fcn.0102e012
mov eax, dword [edi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [ebp - 0x1c]
push eax
push esi
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x1c], esi
call sub.MFC42u.DLL_CString::GetBuffer
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::ReleaseBuffer
lea ecx, [ebp - 0x14]
call sub.MFC42u.DLL_CString::CString_3
mov eax, dword [ebp + 0xc]
sub eax, 0xc44e
mov byte [ebp - 4], 3
je 0x102b237
dec eax
jne 0x102b24b
push dword [ebp - 0x10]
push 0x1007958
jmp 0x102b23f
push dword [ebp - 0x10]
push 0x1007938
lea eax, [ebp - 0x14]
push eax
call sub.MFC42u.DLL_CString::Format
add esp, 0xc
lea eax, [ebp - 0x14]
push eax
mov ecx, edi
call fcn.0102e006
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call sub.MFC42u.DLL_CString::CString
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8

Function at 0x102f02d
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push 0x1008478
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x102f085
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x1004f9c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x102f078
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x102f087
xor eax, eax
pop esi
leave
ret 4