joyce8/EMBER2024-capa huggingface dataset:
Function at 0x552100
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x552133
push esi
call fcn.00560370
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x55212c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x5521b9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x5521a2
mov eax, dword [esi + 8]
test eax, eax
je 0x552157
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x55219e
cmp eax, 2
je 0x5521a2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x55214a
cmp eax, 3
je 0x55217d
cmp eax, 1
jne 0x55214a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x55214a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x55214a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.005521e0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x5521c8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.005521e0
add esp, 4
pop esi
ret

Function at 0x552a50
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x552a71
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x552a71
mov eax, dword [eax + 0x44]
test eax, eax
je 0x552a71
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x56ede0
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x56ee83
test eax, eax
jbe 0x56ee83
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x56ee83
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x56ee2e
xor esi, esi
jmp 0x56ee34
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x56ee5f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.005085d0
add esi, eax
push esi
mov ebx, esi
call fcn.005085d0
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x56ee40
pop ebp
test edi, edi
pop edi
jne 0x56ee83
test ebx, ebx
je 0x56ee83
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.0057ae60
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x56efe5
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x56f0fd
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x56f0fd
mov eax, dword [esi + 0x3c]
push eax
call fcn.0058c8ce
mov esi, eax
test esi, esi
je 0x56f0fd
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x56f0fd
mov ecx, esi
call fcn.0056ef70
cmp edi, eax
jge 0x56f0fd
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x56f083
mov dword [esp + 0x34], 1
jmp 0x56f0de
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x56f0fd
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.0056d7a0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc
Function at 0x5772d0
Capabilities:
Encrypt data using des

Disassembly:
sub esp, 0xf4
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x104]
push edi
xor eax, eax
mov al, byte [ecx + str.80_]
mov edx, eax
and eax, 7
sar edx, 3
mov bl, byte [eax*2 + 0xb9c93c]
mov dl, byte [edx + esi]
test bl, dl
setne al
mov byte [esp + ecx + 0x4c], al
inc ecx
cmp ecx, 0x38
jl 0x5772e3
mov eax, 0x1e
xor edx, edx
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10c], 1
je 0x577324
lea eax, [edx + edx]
lea edi, [esp + eax*4 + 0x88]
lea ebp, [esp + eax*4 + 0x84]
xor eax, eax
xor ecx, ecx
mov cl, byte [edx + 0xb9c9e4]
mov dword [edi], 0
mov dword [ebp], 0
mov esi, ecx
cmp ecx, 0x1c
jge 0x577356
mov bl, byte [esp + ecx + 0x4c]
jmp 0x57735a
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x1c
jl 0x57734b
mov eax, 0x1c
lea ecx, [esi + 0x1c]
cmp ecx, 0x38
jge 0x577378
mov bl, byte [esp + ecx + 0x4c]
jmp 0x57737c
mov bl, byte [esp + ecx + 0x30]
mov byte [esp + eax + 0x14], bl
inc eax
inc ecx
cmp eax, 0x38
jl 0x57736d
xor ecx, ecx
mov eax, 0xb9c94c
xor ebx, ebx
mov bl, byte [ecx + 0xb9c9f4]
cmp byte [esp + ebx + 0x14], 0
je 0x5773a7
mov esi, dword [eax]
mov ebx, dword [ebp]
or ebx, esi
mov dword [ebp], ebx
xor ebx, ebx
mov bl, byte [ecx + 0xb9ca0c]
cmp byte [esp + ebx + 0x14], 0
je 0x5773be
mov esi, dword [eax]
mov ebx, dword [edi]
or ebx, esi
mov dword [edi], ebx
add eax, 4
inc ecx
cmp eax, str.80_
jl 0x57738e
mov eax, dword [esp + 0x10]
inc edx
sub eax, 2
cmp eax, 0xfffffffe
mov dword [esp + 0x10], eax
jg 0x577317
lea edx, [esp + 0x84]
push edx
call fcn.00577400
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf4
ret
Function at 0x58d272
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x58d2aa
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0058b2ff
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0058b2d7
jmp 0x58d2b6
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x58e967
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x58e9a9
call fcn.00594464
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x58e9a9
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x58e9a0
xor eax, eax
jmp 0x58e9b1
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0058e9b7
pop edi
pop esi
pop ebx
ret 4

Function at 0x594994
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x5949c2
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x5949e0
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.005948fa
jmp 0x5949e0
mov eax, dword [esi + 0x14]
test eax, eax
je 0x5949e0
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.005948fa
test edi, edi
mov eax, edi
jne 0x5949ca
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4027d8
Capabilities:
Encode data using xor

Disassembly:
push 0x4050c0
call sub.MSVBVM60.DLL_ThunRTMain
add byte [eax], al
add byte [eax], al
add byte [eax], al
xor byte [eax], al
add byte [eax], al
inc eax
add byte [eax], al
add byte [eax], bh
add byte [eax], al
add byte [edx + 0x37], dl
and al, 0xe6
and byte [ebp + 0x5f], al
dec eax
mov cl, 0x9e
adc byte [ecx - 0x1a330f31], cl
add byte [eax], al
add byte [eax], al
add byte [eax], al
add dword [eax], eax
add byte [eax], al
inc esp
add dword [eax + 0x56014573], ecx
arpl word [esi + 0x64], si
add byte [eax], al
add byte [eax], al
push 0x65656869
insb byte es:[edi], dx
add byte [eax], al
add byte [eax], al
add byte [eax], al
dec esp
xor dword [eax], eax
dec ebx
sub bh, dl
sub eax, ecx
call 0xbb8fce68
invalid
Function at 0x1005e13
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
xor eax, eax
cmp byte [ecx], al
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
je 0x1005e49
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
jne 0x1005e4d
xor eax, eax
jmp 0x1005e63
mov eax, dword [ebp - 4]
imul eax, dword [ebp - 8]
push 0x400
push dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_MulDiv]
leave
ret 4

Function at 0x1007083
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
mov eax, esi
shr eax, 2
test eax, eax
push edi
mov edi, dword [esp + 0x14]
jle 0x10070be
push ebx
movzx edx, byte [ecx]
xor ebx, ebx
inc ecx
mov bh, byte [ecx]
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x10
or edx, ebx
inc ecx
movzx ebx, byte [ecx]
shl ebx, 0x18
or edx, ebx
inc ecx
xor edi, edx
dec eax
jne 0x100709b
pop ebx
and esi, 3
xor eax, eax
dec esi
je 0x10070da
dec esi
je 0x10070d3
dec esi
jne 0x10070df
movzx eax, byte [ecx]
shl eax, 0x10
inc ecx
xor edx, edx
mov dh, byte [ecx]
or eax, edx
inc ecx
movzx ecx, byte [ecx]
or eax, ecx
xor eax, edi
pop edi
pop esi
ret 0xc

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 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

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

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53

Function at 0x409e8c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x409e9b
pop dword [ebp - 0x30]
mov eax, 0xd2ce081
add eax, 0xf313be1a
sub dword [ebp - 0x30], eax
mov dword [ebp - 0x40], 0x9996c418
add dword [ebp - 0x40], 0xb4bb8133
mov dword [ebp - 0x3c], 0x928f36b2
add dword [ebp - 0x3c], 0x9fa41593
mov dword [ebp - 0x38], 0x17d61bd
sub dword [ebp - 0x38], 0xb5311d8f
mov dword [ebp - 0x34], 0x6ba7549d
add dword [ebp - 0x34], 0x9458ab63
lea eax, [ebp - 0x40]
push eax
mov eax, 0x2e003740
add eax, 0xd2409914
add eax, dword [ebp - 0x30]
call dword [eax]
mov dword [ebp - 0x40], 0x508340b7
add dword [ebp - 0x40], 0x23ef289f
mov dword [ebp - 0x3c], 0x27aaa482
sub dword [ebp - 0x3c], 0xe63e430d
mov dword [ebp - 0x38], 0x5cc45160
add dword [ebp - 0x38], 0x6ab1b0c
mov dword [ebp - 0x34], 0x4bf19972
add dword [ebp - 0x34], 0xb40e668e
lea ebx, [ebp - 0x40]
push ebx
push eax
mov eax, 0xc5b20461
add eax, 0x3a8ecbeb
add eax, dword [ebp - 0x30]
call dword [eax]
push 0x40
push 0x1000
push 0x36242
push 0
call eax
mov ecx, 0x3a05
mov ebx, eax
mov edx, 0x41b000
add edx, dword [ebp - 0x30]
mov edi, 0xd9751774
sub edi, 0xe28f05a5
xor dword [ebp - 8], 0xc41a5c22
mov esi, dword [edx]
mov dword [ebp - 0x20], 0x45d2715f
xor esi, edi
add dword [ebp - 0xc], 0x4371153a
mov dword [ebx], esi
sub dword [ebp - 0xc], edi
add ebx, 0xb7a4fc45
sub ebx, 0xb7a4fc41
add edx, 4
loop 0x409fb1
add eax, 0xdae7
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x30]
call ebx
leave
ret
Function at 0x300021fd
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x30002ff0
call fcn.30002680
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x30004584
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x30001fa0
cmp eax, esi
jne 0x30001f93
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x30001fa3
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x30001f7a
xor esi, esi
inc esi
mov eax, dword [0x30004580]
cmp eax, esi
jne 0x30001fb6
push 0x1f
call fcn.30096000
pop ecx
jmp 0x30001fe5
mov eax, dword [0x30004580]
test eax, eax
jne 0x30001fdf
mov dword [0x30004580], esi
push 0x30001210
push 0x30001208
call sub.MSVCR80.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x30001fe5
jmp 0x30002109
mov dword [0x30004228], esi
mov eax, dword [0x30004580]
cmp eax, esi
jne 0x30002009
push 0x30001204
push 0x300011f4
call sub.MSVCR80.dll__initterm
pop ecx
pop ecx
mov dword [0x30004580], 2
cmp dword [ebp - 0x20], ebx
jne 0x30002016
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x30004590], ebx
je 0x30002037
push 0x30004590
call fcn.30002608
pop ecx
test eax, eax
je 0x30002037
push ebx
push 2
push ebx
call dword [0x30004590]
mov eax, dword [sym.imp.MSVCR80.dll__wcmdln]
cmp dword [eax], ebx
je 0x30002109
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0x300020a1
cmp cx, bx
je 0x3000205c
cmp dword [ebp - 0x1c], ebx
jne 0x300020a1
movzx ecx, word [eax]
cmp cx, bx
je 0x30002071
cmp cx, 0x20
ja 0x30002071
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x3000205c
test byte [ebp - 0x40], 1
je 0x3000207d
movzx ecx, word [ebp - 0x3c]
jmp 0x30002080
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x30000000
call main
mov dword [0x30004224], eax
cmp dword [0x30004218], ebx
jne 0x300020e6
push eax
call dword [sym.imp.MSVCR80.dll_exit]
cmp cx, 0x22
jne 0x300020b2
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0x30002046
cmp dword [0x30004228], ebx
jne 0x300020f4
call dword [sym.imp.MSVCR80.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x30004224]
jmp 0x30002115
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.300026c5
ret
call fcn.30001e2f
jmp 0x30001f3d
Function at 0x401b91
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
pushal
mov esi, dword [0x405e3e]
or esi, esi
je 0x401be9
push dword [0x405e46]
call sub.kernel32.dll_UnmapViewOfFile
push dword [0x405e4a]
call sub.kernel32.dll_CloseHandle
push 0
push 0
push dword [0x405e4e]
push esi
call sub.kernel32.dll_SetFilePointer
push esi
call sub.kernel32.dll_SetEndOfFile
push esi
call sub.kernel32.dll_CloseHandle
push dword [ebp + 8]
call fcn.0040184f
push dword [0x405e3a]
push 0x40563a
call sub.kernel32.dll_SetFileAttributesA
popal
leave
ret 4

Function at 0x401c18
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbfc
pushal
mov byte [ebp - 0x401], 0
push 1
push 8
call fcn.00401057
or eax, eax
je 0x401c75
mov esi, eax
push 0x400
lea eax, [ebp - 0x400]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
push 0x405391
lea eax, [ebp - 0x400]
push eax
call sub.kernel32.dll_lstrcatA
mov ecx, dword [esi + 1]
lea eax, [esi + 5]
push ecx
push eax
lea eax, [ebp - 0x400]
push eax
call fcn.004033e4
mov byte [ebp - 0x401], 1
popal
movzx eax, byte [ebp - 0x401]
leave
ret

Function at 0x402b84
Capabilities:
Create process on windows
Delete file

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push ebx
push str._REGISTRY_PATCH_
call fcn.004017cb
mov esi, dword [ebp + 8]
lea eax, [esi + 9]
push dword [esi + 1]
push eax
push str.c:_regpatch.reg
call fcn.004033e4
test eax, eax
je 0x402bd7
mov edi, 0x40563a
mov byte [edi], 0
push str.regedit.exe__s
push edi
call sub.kernel32.dll_lstrcatA
push str.c:_regpatch.reg
push edi
call sub.kernel32.dll_lstrcatA
push 0
push edi
call sub.kernel32.dll_WinExec
cmp eax, 0x1f
ja 0x402be3
push str.Registry_patch_failed_
call fcn.004017cb
jmp 0x402bed
push str.Registry_patch_OK_
call fcn.004017cb
push str.c:_regpatch.reg
call sub.kernel32.dll_DeleteFileA
push str....done_
call fcn.004017cb
push 0x4052a0
call fcn.004017cb
pop ebx
pop edi
pop esi
leave
ret 4
Function at 0x402c12
Capabilities:
Check if file exists
Create process on windows
Get file attributes
Query environment variable
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push ebx
mov esi, dword [ebp + 8]
lea edi, [esi + 0x421]
push 0x400
push 0x40563a
push edi
call sub.kernel32.dll_ExpandEnvironmentStringsA
mov edi, 0x40563a
push str._EXPORT_FILE_
call fcn.004017cb
push edi
call fcn.004017cb
push edi
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x402c9d
cmp byte [0x405ef9], 0
jne 0x402c6f
push 0x24
push edi
push str.File_already_exist._Overwrite_
push dword [0x4055d5]
call sub.user32.dll_MessageBoxA
jmp 0x402c84
cmp byte [0x405efb], 1
jne 0x402c7f
mov eax, 6
jmp 0x402c84
mov eax, 7
cmp eax, 6
jne 0x402c94
push 0x80
push edi
call sub.kernel32.dll_SetFileAttributesA
cmp eax, 7
je 0x402d8c
cmp byte [edi + 1], 0x3a
jne 0x402cc8
cmp byte [edi + 2], 0x5c
jne 0x402cc8
push edi
push 0x4062fc
call sub.kernel32.dll_lstrcpyA
push 0x4062fc
call fcn.0040177a
push 0x4062fc
call fcn.004036c0
test dword [esi + 0xd], 1
je 0x402d0b
push edi
push 0x4062fc
call sub.kernel32.dll_lstrcpyA
push 0x4062fc
call fcn.0040177a
push edi
call fcn.004034a0
push eax
push dword [0x4055d5]
push 0x4062fc
push str.All_Files
push edi
call fcn.00403650
test al, al
je 0x402d8c
mov eax, dword [esi + 5]
lea eax, [eax + esi]
push dword [esi + 1]
push eax
push edi
call fcn.004033e4
or eax, eax
jne 0x402d36
push edi
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
jne 0x402d8c
push str.Failed_to_export_file_
call fcn.004017cb
jmp 0x402d8c
mov eax, dword [esi + 9]
or eax, eax
je 0x402d53
push eax
push edi
call sub.kernel32.dll_SetFileAttributesA
cmp eax, 1
jne 0x402d53
push str.set_file_attributes
call fcn.004017cb
test dword [esi + 0xd], 2
je 0x402d82
push str.executing_file
call fcn.004017cb
lea eax, [esi + 0x21]
cmp byte [eax], 0
jne 0x402d70
xor eax, eax
push 0xa
push 0
push eax
push edi
push str.open
push 0
call sub.shell32.dll_ShellExecuteA
push str.File_export_OK_
call fcn.004017cb
push str....done_
call fcn.004017cb
push 0x4052a0
call fcn.004017cb
pop ebx
pop edi
pop esi
leave
ret 4

Function at 0x402da7
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push esi
push edi
push ebx
cmp byte [0x405635], 1
jne 0x402dd3
push 5
push dword [0x4055f1]
call sub.user32.dll_ShowWindow
push 0
push dword [0x4055f5]
call sub.user32.dll_ShowWindow
push 0
push 0
push 0x184
push dword [0x4055f1]
call sub.user32.dll_SendMessageA
push str.START_PATCHING
call fcn.004017cb
push 0x4052a0
call fcn.004017cb
call fcn.004011a7
xor ebx, ebx
jmp 0x402e38
cmp byte [eax], 3
jne 0x402e13
push eax
call fcn.004028be
jmp 0x402e38
cmp byte [eax], 4
jne 0x402e20
push eax
call fcn.00402a58
jmp 0x402e38
cmp byte [eax], 5
jne 0x402e2d
push eax
call fcn.00402b84
jmp 0x402e38
cmp byte [eax], 0x11
jne 0x402e38
push eax
call fcn.00402c12
inc ebx
push ebx
call fcn.00401098
or eax, eax
jne 0x402e06
push str.PATCHING_DONE
call fcn.004017cb
push 1
push 0
push 0
push dword [0x4055d5]
call sub.user32.dll_RedrawWindow
pop ebx
pop edi
pop esi
leave
ret
Function at 0x6c2185
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.006c2204
jae 0x6c2191
xor ecx, ecx
call fcn.006c2204
jae 0x6c21bb
xor eax, eax
call fcn.006c2204
jae 0x6c21cc
mov al, 0x10
call fcn.006c2204
adc al, al
jae 0x6c21ad
jne 0x6c21f9
stosb byte es:[edi], al
jmp 0x6c2192
call fcn.006c2210
dec ecx
loop 0x6c21d8
mov eax, ebp
call fcn.006c220e
jmp 0x6c21fa
lodsb al, byte [esi]
shr eax, 1
je 0x6c2220
adc ecx, 2
mov ebp, eax
jmp 0x6c21fa
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.006c220e
cmp eax, 0x7d00
jae 0x6c21f8
cmp eax, 0x500
jae 0x6c21f9
cmp eax, 0x7f
ja 0x6c21fa
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x6c2192
pop ebp
ret 8

Function at 0x55220c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov edi, 0x554118
sub eax, eax
test esi, esi
je 0x5522e4
sub eax, 1
test ecx, ecx
je 0x5522e2
test esi, 3
je 0x55224a
xor al, byte [esi]
inc esi
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x55222f
mov edx, ecx
and edx, 7
shr ecx, 3
je 0x5522c9
xor eax, dword [esi]
add esi, 4
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
xor eax, dword [esi]
add esi, 4
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x552254
mov ecx, edx
test ecx, ecx
je 0x5522e2
xor al, byte [esi]
inc esi
mov ebx, 0xff
and ebx, eax
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x5522cf
not eax
mov dword [esp + 0x1c], eax
popal
ret

Function at 0x5522ec
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.0055236f
jae 0x5522fa
xor ecx, ecx
call fcn.0055236f
jae 0x552329
xor eax, eax
call fcn.0055236f
jae 0x552339
mov bl, 2
inc ecx
mov al, 0x10
call fcn.0055236f
adc al, al
jae 0x55231b
jne 0x552365
stosb byte es:[edi], al
jmp 0x5522fd
call fcn.0055237b
sub ecx, ebx
jne 0x552342
call fcn.00552379
jmp 0x552361
lodsb al, byte [esi]
shr eax, 1
je 0x55238b
adc ecx, ecx
jmp 0x55235e
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.00552379
cmp eax, 0x7d00
jae 0x55235e
cmp ah, 5
jae 0x55235f
cmp eax, 0x7f
ja 0x552360
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x5522fd
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret