joyce8/EMBER2024-capa huggingface dataset:
Function at 0x628d5d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x632378
cmp edx, dword [eax]
je 0x628d7f
add eax, 8
inc ecx
cmp eax, 0x632408
jl 0x628d70
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x632378]
jne 0x628ead
mov eax, dword [0x63bd00]
cmp eax, 1
je 0x628e87
test eax, eax
jne 0x628db0
cmp dword [0x6322a0], 1
je 0x628e87
cmp edx, 0xfc
je 0x628ead
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x628de7
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00629740
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00629bd0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x628e2a
lea eax, [ebp - 0x1a4]
push eax
call fcn.00629bd0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x62ea14
push edi
call fcn.0062baa0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00629740
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00629750
lea eax, [ebp - 0xa0]
push 0x62e9f4
push eax
call fcn.00629750
push dword [esi + 0x63237c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00629750
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0062ba14
add esp, 0x2c
pop edi
jmp 0x628ead
lea eax, [ebp + 8]
lea esi, [esi + 0x63237c]
push 0
push eax
push dword [esi]
call fcn.00629bd0
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 0x401100
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0x64616f4d
cmp dword [0x459ac0], 0
je 0x401134
cmp dword [0x459ac4], 0
jne 0x401210
xor ebx, ebx
mov edi, dword fs:[ebx + 0x30]
mov edi, dword [edi + 0xc]
mov eax, dword [edi + 0x14]
mov eax, dword [eax]
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
mov edi, eax
add edi, dword [eax + 0x3c]
mov edx, dword [edi + 0x78]
add edx, eax
mov edi, dword [edx + 0x20]
add edi, eax
push ebp
mov ebp, ebx
mov esi, dword [edi + ebp*4]
add esi, eax
inc ebp
push ebx
push ecx
mov ecx, 0x64616f4e
dec ecx
dec ecx
dec ecx
mov ebx, ecx
pop ecx
add ebx, 1
cmp dword [esi], ebx
pop ebx
jne 0x401159
push ebx
pushal
or ch, ch
sbb ax, 0x2a
popal
mov ebx, 0x41797262
sub ebx, 2
add ebx, 1
cmp dword [esi + 8], ebx
pop ebx
jne 0x401159
mov edi, dword [edx + 0x24]
add edi, eax
mov bp, word [edi + ebp*2]
mov edi, dword [edx + 0x1c]
add edi, eax
sub ebp, 1
mov edi, dword [edi + ebp*4]
add edi, eax
pop ebp
mov dword [0x459ac0], edi
xor ebx, ebx
mov edi, dword fs:[ebx + 0x30]
mov edi, dword [edi + 0xc]
mov eax, dword [edi + 0x14]
mov eax, dword [eax]
mov eax, dword [eax]
mov eax, dword [eax + 0x10]
mov edi, eax
add edi, dword [eax + 0x3c]
mov edx, dword [edi + 0x78]
add edx, eax
mov edi, dword [edx + 0x20]
add edi, eax
push ebp
mov ebp, ebx
mov esi, dword [edi + ebp*4]
add esi, eax
inc ebp
push eax
mov eax, 0x50746546
add eax, 1
cmp dword [esi], eax
pop eax
jne 0x4011d0
push ebx
mov ebx, 0x73736571
add ebx, 1
cmp dword [esi + 0xa], ebx
pop ebx
jne 0x4011d0
mov edi, dword [edx + 0x24]
add edi, eax
mov bp, word [edi + ebp*2]
mov edi, dword [edx + 0x1c]
add edi, eax
sub ebp, 1
mov edi, dword [edi + ebp*4]
add edi, eax
pop ebp
mov dword [0x459ac4], edi
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [0x459ac0]
call eax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [0x459ac4]
call eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4029b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42636d
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x458bb4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 8]
push eax
call fcn.004021f0
add esp, 4
push eax
lea ecx, [ebp - 0x1c]
push ecx
call fcn.00402ae0
add esp, 8
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
push edx
lea ecx, [ebp - 0x14]
call fcn.00401cb0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00403d30
mov dword [ebp - 0x20], 0x402370
mov eax, dword [ebp - 0x10]
add eax, 4
push eax
push 0
lea ecx, [ebp - 0x14]
call fcn.004044a0
push eax
mov ecx, dword [ebp - 0x20]
push ecx
push 0
push 0
call fcn.004106eb
add esp, 0x18
mov edx, dword [ebp - 0x10]
mov dword [edx], eax
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0
je 0x402a4f
lea ecx, [ebp - 0x14]
call fcn.00407ce0
jmp 0x402a60
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 4], 0
push 6
call fcn.004084ad
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.00403d30
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x409ad9
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x409afa
jl 0x409af1
test edi, edi
jne 0x409afa
xor eax, eax
xor edx, edx
jmp 0x409bbb
cmp dword [ebx + 0x38], 0
je 0x409b0f
push eax
push edi
push dword [ebp + 8]
call fcn.00409bc1
jmp 0x409bbb
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x409b56
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x409b56
cmp eax, edi
jb 0x409b30
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.0040b3b0
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x409b5c
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x409bb0
mov ecx, ebx
call fcn.0040934e
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x409b9b
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.00411c8b
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x409bb0
jmp 0x409b6e
test edx, edx
je 0x409bb0
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.00411c8b
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc
Function at 0x409cb0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x409cd2
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00409d95
jmp 0x409d90
mov eax, dword [ebx + 0x20]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov ecx, dword [eax]
lea eax, [ebx + 0x30]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], eax
test ecx, ecx
je 0x409cf8
mov eax, dword [eax]
mov ecx, dword [eax]
jmp 0x409cfd
xor ecx, ecx
mov dword [ebp - 0xc], eax
mov eax, ecx
cdq
mov dword [ebp - 4], eax
mov ecx, edx
mov dword [ebp - 8], ecx
test edi, edi
jl 0x409d5d
jg 0x409d12
test esi, esi
je 0x409d5d
test ecx, ecx
jl 0x409d58
jg 0x409d1c
test eax, eax
je 0x409d58
cmp edi, ecx
jg 0x409d2e
jl 0x409d26
cmp esi, eax
jae 0x409d2e
mov eax, esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], edi
push eax
push dword [ebp + 8]
push dword [ebp - 0x10]
call fcn.0040b3b0
mov eax, dword [ebp - 0xc]
add esp, 0xc
mov edx, dword [ebp - 4]
mov ecx, dword [ebp + 8]
add ecx, edx
sub esi, edx
mov eax, dword [eax]
sbb edi, dword [ebp - 8]
sub dword [eax], edx
mov eax, dword [ebx + 0x20]
add dword [eax], edx
jmp 0x409d60
mov ecx, dword [ebp + 8]
jmp 0x409d6a
mov ecx, dword [ebp + 8]
test edi, edi
jl 0x409d84
jg 0x409d6a
test esi, esi
je 0x409d84
cmp dword [ebx + 0x4c], 0
je 0x409d84
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.004122f7
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x40b059
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40b098
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40b098
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40b098
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40b098
cmp dword [ecx + 0x74], 0xe
jbe 0x40b098
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x41ae93
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041ad09

Function at 0x425a90
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x425abd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x425abd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40ce60
Capabilities:
Encode data using xor
Terminate process

Disassembly:
push esi
sub esp, 0xc
call fcn.00441d20
test al, al
je 0x40cfdb
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
call fcn.00439980
test al, al
je 0x40cfd6
call dword [sym.imp.USER32.dll_GetInputState]
mov esi, eax
mov dword [esp], 0x6ea57865
mov dword [esp + 4], 0x1a004e02
mov word [esp + 8], 0
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, eax
add cl, 0x2f
xor cl, byte [esp + eax]
add cl, 0x15
mov byte [esp + eax], cl
inc eax
cmp eax, 0xa
jne 0x40ceb0
call dword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
mov dword [esp], 0x2a814f0f
mov dword [esp + 4], 0x24997601
mov dword [esp + 8], 0
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
mov ecx, eax
add cl, 0xcb
xor cl, byte [esp + eax]
add cl, 9
mov byte [esp + eax], cl
inc eax
cmp eax, 0xc
jne 0x40cef0
mov dword [esp], 0x939291f1
xor eax, eax
nop
nop
nop
mov ecx, eax
add cl, 0xa4
xor cl, byte [esp + eax]
add cl, 0xcc
mov byte [esp + eax], cl
inc eax
cmp eax, 4
jne 0x40cf10
test esi, esi
je 0x40cf77
mov dword [esp], 0x218bf55f
mov dword [esp + 4], 0xc7d0c40e
mov word [esp + 8], 0
mov byte [esp + 0xa], 0
mov eax, 0x13ff302
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, byte [esp + eax - 0x13ff302]
mov edx, ecx
and edx, eax
add dl, dl
sub cl, dl
movzx ecx, cl
add ecx, eax
add cl, 0xf6
mov byte [esp + eax - 0x13ff302], cl
inc eax
cmp eax, 0x13ff30d
jne 0x40cf50
mov dword [esp], 0x524d4c4f
mov dword [esp + 4], 0x56515053
mov word [esp + 8], 0
mov byte [esp + 0xa], 0
mov eax, 0x8d
mov ecx, 0x72
nop
nop
nop
nop
movzx esi, byte [esp + eax - 0x8d]
mov edx, ecx
xor edx, eax
and edx, esi
xor edx, eax
add dl, 0x3f
mov byte [esp + eax - 0x8d], dl
inc eax
dec ecx
cmp eax, 0x98
jne 0x40cfa0
call fcn.0040df80
test al, al
je 0x40cfd6
call fcn.00411260
call fcn.0040fef0
call fcn.00442fd0
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
Function at 0x40df80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1a0
push eax
sub esp, 8
mov dword [ebp - 0x20], esp
sub esp, 0x40
mov dword [ebp - 0x1c], esp
sub esp, 0x80
mov dword [ebp - 0x28], esp
mov eax, dword [0x451d28]
mov dword [ebp - 0x1ac], 0x797a0304
mov dword [ebp - 0x1a8], 0
mov ecx, 0x3f
mov edx, 0xc0
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx esi, byte [ebp + ecx - 0x1eb]
mov ebx, edx
xor ebx, ecx
and ebx, esi
xor ebx, ecx
add bl, 0xc5
mov byte [ebp + ecx - 0x1eb], bl
inc ecx
dec edx
cmp ecx, 0x47
jne 0x40dfd0
mov ecx, dword [ebp - 0x1ac]
mov dword [ebp - 0x128], 0xcf57c943
mov dword [ebp - 0x124], 0xc35acd5e
mov dword [ebp - 0x120], 0xc752c154
mov dword [ebp - 0x11c], 0xfba8c554
mov dword [ebp - 0x118], 0xff62f99c
mov dword [ebp - 0x114], 0xf3f2fd60
mov word [ebp - 0x110], 0
xor edx, edx
nop
nop
mov esi, edx
and esi, 0x12
mov edi, edx
and edi, 0xd
mov ebx, edx
xor ebx, 0x1823b4d2
sub ebx, edi
add ebx, edx
mov edi, ebx
and edi, esi
xor ebx, esi
lea ebx, [ebx + edi*2]
xor bl, byte [ebp + edx - 0x128]
add bl, 0xe6
mov byte [ebp + edx - 0x128], bl
inc edx
cmp edx, 0x1a
jne 0x40e040
lea edx, [ebp - 0x128]
push ecx
push 0
push edx
call eax
mov esi, eax
mov eax, dword [0x44bb3c]
mov ecx, 0xc912988c
xor ecx, dword [0x44bb44]
add eax, ecx
inc eax
jmp eax

Function at 0x40f620
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x150
mov esi, esp
mov eax, dword [ebp + 8]
mov dword [esi + 0x13c], 0
mov dword [esi + 0x138], 0
mov dword [esi + 0x130], 0
mov dword [esi + 0x12c], 0
mov dword [esi + 0x128], 0
mov dword [esi + 0x124], 0
mov dword [esi + 0x120], 0
mov dword [esi + 0x11c], 0
mov dword [esi + 0x114], 0
mov dword [esi + 0x110], 0
mov dword [esi + 0x108], 0
mov dword [esi + 0x104], 0x3c
mov dword [esi + 0x10c], 0xffffffff
mov dword [esi + 0x118], 0xffffffff
mov dword [esi + 0x134], 0xffffffff
mov edx, 0xfffffffe
mov ecx, dword [0x451d04]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [eax + edx + 2], 0
lea edx, [edx + 2]
jne case.default.0x40f701
sar edx, 1
lea edi, [esi + 0x104]
push edi
push 0
push edx
push eax
call ecx
xor ecx, ecx
test eax, eax
setne cl
jmp dword [ecx*4 + 0x44c03c]
xor eax, eax
jmp 0x40f7c9
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x411260
Capabilities:
Encode data using xor
Get common file path
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xcb0
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
shr eax, 0x1f
jmp dword [eax*4 + 0x44cb94]

Function at 0x41e9d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
mov eax, 0x10b8
call fcn.0040c670
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
mov esi, 0xfffffffe
nop
nop
cmp word [eax + esi + 2], 0
lea esi, [esi + 2]
jne 0x41e9f0
sar esi, 1
lea ecx, [esp + 0x28]
push ecx
push 0
push 0
push esi
push eax
push 0
call dword [0x45303c]
mov ebx, dword [esp + 0x28]
mov edi, 0xffffffff
test ebx, ebx
jns 0x41ea24
mov eax, 0xffffffff
jmp 0x41ea27
lea eax, [ebx + ebx]
push eax
call fcn.0040c710
add esp, 4
lea ecx, [esp + 0x28]
push ecx
push ebx
mov dword [esp + 0x24], eax
push eax
push esi
mov eax, dword [ebp + 0xc]
push dword [eax + 4]
push 0
call dword [0x45303c]
mov eax, dword [esp + 0x28]
mov ecx, eax
add ecx, 0xd
js 0x41ea5c
lea edi, [eax*2 + 0x1a]
push edi
call fcn.0040c710
add esp, 4
mov edi, eax
mov dword [esp + 0xb4], 0x81d28720
mov dword [esp + 0xb8], 0x8d3f8323
mov dword [esp + 0xbc], 0x89ee8f30
mov dword [esp + 0xc0], 0x95258bd6
mov dword [esp + 0xc4], 0x912b9726
mov dword [esp + 0xc8], 0x9d23933b
mov dword [esp + 0xcc], 0x999e9f2a
mov dword [esp + 0xd0], 0
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, eax
add cl, 0xa1
xor cl, byte [esp + eax + 0xb4]
add cl, 0xdb
mov byte [esp + eax + 0xb4], cl
inc eax
cmp eax, 0x20
jne 0x41ead0
mov eax, dword [esp + 0x1c]
movzx ecx, word [eax]
mov eax, edi
test cx, cx
je 0x41eb21
mov eax, dword [esp + 0x1c]
lea edx, [eax + 2]
mov eax, edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [edx]
add edx, 2
test cx, cx
jne 0x41eb10
mov word [eax], 0
movzx ecx, word [esp + 0xb4]
test cx, cx
je 0x41eb51
lea edx, [esp + 0xb6]
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [edx]
add edx, 2
test cx, cx
jne 0x41eb40
mov word [eax], 0
lea eax, [esp + 0x48]
push 0x60
push 3
push 0x120089
push eax
push edi
call fcn.00446250
add esp, 0x14
not eax
shr eax, 0x1f
jmp dword [eax*4 + 0x44daa0]
Function at 0x421a60
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x44
mov edx, dword [esp + 0x60]
xor eax, eax
test edx, edx
setne al
xor ebx, ebx
mov dword [esp + 0x3c], 0
mov dword [esp], 0
jmp dword [eax*4 + 0x44dc80]
Function at 0x436f40
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x28
mov esi, dword [esp + 0x3c]
xor eax, eax
mov dword [esp], 0
call dword [sym.imp.USER32.dll_OpenClipboard]
sub esp, 4
xor ebx, ebx
cmp eax, 0
je 0x4370ac
xor eax, eax
mov dword [esp], 0
mov dword [esp + 4], 0
call dword [sym.imp.USER32.dll_GetWindowLongW]
sub esp, 8
mov dword [esp], 1
call dword [sym.imp.USER32.dll_GetClipboardData]
sub esp, 4
mov edi, eax
cmp edi, 0
setne al
jmp 0x436f9c
xor ebx, ebx
test al, 1
jne 0x436fa7
jmp 0x4370a4
mov dword [esp], edi
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
sub esp, 4
mov ebp, eax
jmp 0x436fb7
mov dword [esp], ebp
call fcn.0041e150
jmp 0x436fc1
xor ebx, ebx
cmp eax, 0
je 0x437098
mov cl, byte [esp + 0x1c]
mov byte [esp + 0x20], cl
mov byte [esp + 0xc], 0xc1
mov byte [esp + 0xd], 0x27
mov byte [esp + 0xe], 0x25
mov byte [esp + 0xf], 0x29
mov byte [esp + 0x10], 0xde
mov byte [esp + 0x11], 0x2e
mov byte [esp + 0x12], 0xd9
mov byte [esp + 0x13], 0x2b
mov byte [esp + 0x14], 0xd8
mov byte [esp + 0x15], 0xe1
mov byte [esp + 0x16], 0x26
mov byte [esp + 0x17], 0x39
mov byte [esp + 0x18], 0x24
mov byte [esp + 0x19], 0xb7
mov ecx, 0xe
mov byte [esp + ecx + 0xc], 0
add ecx, 1
cmp ecx, 0x10
jne 0x43701f
xor ecx, ecx
jmp 0x437030
cmp ecx, 0x10
jae 0x437072
movzx ebx, byte [esp + ecx + 0xc]
mov edx, 0xe0
sub edx, ecx
or edx, ebx
mov dword [esp + 0x24], eax
mov eax, ebp
mov ebp, esi
mov esi, 0xdc469ee0
sub esi, ecx
or esi, ebx
add esi, ecx
sub esi, ebx
add esi, 0x1f
and edx, esi
mov esi, ebp
mov ebp, eax
mov eax, dword [esp + 0x24]
mov bl, 0x64
sub bl, dl
mov byte [esp + ecx + 0xc], bl
add ecx, 1
jmp 0x437030
jmp 0x437074
lea edx, [esp + 0xc]
mov ecx, esi
mov dword [esp], edx
mov dword [esp + 4], ebp
mov dword [esp + 8], eax
call fcn.0040d180
sub esp, 0xc
mov bl, al
jmp 0x437091
jmp 0x437093
jmp 0x437095
and bl, 1
mov dword [esp], edi
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
sub esp, 4
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x4370ac
and bl, 1
movzx eax, bl
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
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 0x404cf8
Capabilities:
Get file attributes

Disassembly:
push eax
call sub.kernel32.dll_GetFileAttributesA
inc eax
je 0x404d07
dec eax
jmp loc.0041b17b
ret

Function at 0x404f90
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
xor edx, edx
mov dword [ebp - 0x10c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x404ffa
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x105
lea eax, [ebp - 0x105]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
lea eax, [ebp - 0x10c]
jmp loc.0041fb91

Function at 0x405008
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
xor edx, edx
mov dword [ebp - 0x10c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x405072
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x105]
push eax
push 0x105
call sub.kernel32.dll_GetTempPathA
lea eax, [ebp - 0x10c]
lea edx, [ebp - 0x105]
call fcn.004031c4
mov eax, dword [ebp - 0x10c]
mov edx, ebx
call fcn.00404db8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405079
lea eax, [ebp - 0x10c]
call fcn.00403094
ret

Function at 0x405634
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov ebx, eax
pushal
call fcn.004052d8
call fcn.0040456c
mov dword [ebx + 0x18], eax
popal
pushal
lea eax, [ebx + 0x1c]
call fcn.004030e8
popal
mov eax, dword [ebx + 0x1c]
test eax, eax
je 0x40574c
pushal
lea edx, [ebx + 0x1c]
mov eax, dword [edx]
call fcn.00404db8
mov eax, dword [ebx + 0x20]
test eax, eax
jne 0x4056a9
jmp 0x41db4d
popal
add esp, 0xfffffec0
xor edx, edx
push edx
push edx
xchg ecx, eax
mov edx, esp
call fcn.00405300
lea eax, [esp + 4]
mov edx, dword [ebx + 0x1c]
pop ecx
push ecx
call fcn.00403258
call fcn.004044a8
pop eax
mov edx, esp
push eax
push edx
push eax
call sub.kernel32.dll_FindFirstFileA
mov edi, eax
inc eax
mov eax, esp
pushfd
call fcn.00403094
popfd
pop ecx
je 0x405746
mov ecx, dword [esp]
push dword [ebp + 8]
lea edx, [esp + 0x30]
mov eax, ebx
call fcn.0040536c
test al, al
je 0x405735
mov ecx, dword [ebx + 0x24]
jecxz 0x405717
mov eax, dword [ebx + 0x28]
mov ecx, esp
push 1
mov edx, esp
push edx
mov edx, ebx
call dword [ebx + 0x24]
pop ecx
jecxz 0x405735
loop 0x405746
jmp loc.0041fe4a
push esp
push edi
call sub.kernel32.dll_FindNextFileA
test eax, eax
jne 0x4056e9
push edi
jmp loc.004204ab
add esp, 0x140
xor eax, eax
xchg dword [ebx + 0x20], eax
call fcn.00404520
pop edi
pop ebx
pop ebp
ret 4

Function at 0x407080
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, dword [0x409214]
mov dword [eax], ecx
mov ebx, edx
test ebx, ebx
jle 0x4070a1
mov eax, 0xff
call fcn.00402680
xor byte [esi], al
inc esi
dec ebx
jne 0x407091
pop esi
pop ebx
ret
Function at 0x41b801
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push ebx
push ebp
mov ebp, dword [esp + 0x10]
lea ecx, [eax - 1]
push esi
mov ebx, ecx
push edi
mov edi, dword [esp + 0x1c]
mov esi, edi
sar ebx, 1
mov dword [esp + 0x10], edi
mov dword [esp + 0x1c], ecx
cmp edi, ebx
jge 0x41b85d
add esi, esi
lea eax, [esi + 2]
imul ecx, eax, 0x30
add ecx, ebp
lea eax, [ecx - 0x30]
push eax
call 0x41a213
movzx eax, al
xor eax, 1
imul ecx, edi, 0x30
inc eax
add esi, eax
imul eax, esi, 0x30
add ecx, ebp
add eax, ebp
push eax
call fcn.0041c57f
mov edi, esi
cmp esi, ebx
jl 0x41b827
mov eax, dword [esp + 0x20]
cmp esi, ebx
invalid
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x41d2ec
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41d31d
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d305
add dl, dl
jne 0x41d328
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d379
xor eax, eax
add dl, dl
jne 0x41d335
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d416
add dl, dl
jne 0x41d344
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d34f
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d35a
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d365
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41d36f
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41d314
mov eax, 1
add dl, dl
jne 0x41d387
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41d392
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d37e
sub eax, ebx
mov ebx, 1
jne 0x41d3c5
mov ecx, 1
add dl, dl
jne 0x41d3ab
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d3b6
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d3a2
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41d314
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41d3dc
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d3e7
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d3d3
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41d314
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41d437
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41d314
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret