joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5576c0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
test edx, 0x100000
je 0x5576ea
mov eax, edx
mov dword [edi + 0x10], 0
shr eax, 0x13
not eax
and eax, 1
mov dword [edi + 0xc], eax
jmp 0x5576f8
mov dword [edi + 0xc], 1
mov dword [edi + 0x10], 1
mov eax, edx
mov ecx, edx
shr eax, 0x11
mov esi, 4
shr ecx, 0xa
and eax, 3
sub esi, eax
and ecx, 3
mov dword [edi + 0x18], esi
cmp ecx, 3
je 0x55785e
mov ebx, dword [edi + 0x10]
test ebx, ebx
je 0x55772a
lea eax, [ecx + 6]
mov dword [edi + 0x24], eax
jmp 0x557735
mov eax, dword [edi + 0xc]
lea ecx, [ecx + eax*2]
add ecx, eax
mov dword [edi + 0x24], ecx
mov eax, edx
shr eax, 0x10
not eax
and eax, 1
mov dword [edi + 0x1c], eax
test ebx, ebx
je 0x557751
mov eax, edx
shr eax, 0xc
and eax, 0xf
mov dword [edi + 0x20], eax
mov eax, edx
mov ecx, edx
shr eax, 9
mov ebx, edx
and eax, 1
shr ecx, 6
mov dword [ebp + 8], eax
and ecx, 3
mov dword [edi + 0x28], eax
mov eax, edx
shr eax, 8
and eax, 1
shr ebx, 0xc
mov dword [edi + 0x2c], eax
and ebx, 0xf
mov eax, edx
mov dword [edi + 0x20], ebx
shr eax, 4
and eax, 3
mov dword [edi + 0x30], ecx
mov dword [edi + 0x34], eax
mov eax, edx
shr eax, 3
and eax, 1
mov dword [edi + 0x38], eax
mov eax, edx
shr eax, 2
and edx, 3
and eax, 1
mov dword [edi + 0x40], edx
mov dword [edi + 0x3c], eax
xor eax, eax
cmp ecx, 3
setne al
inc eax
mov dword [edi], eax
mov eax, esi
sub eax, 2
je 0x557817
sub eax, 1
je 0x5577de
push esi
push str.Sorry__layer__d_not_supported_n
push 2
call fcn.005321d2
add esp, 4
push eax
call fcn.0053be20
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
test ebx, ebx
jne 0x5577ed
mov dword [edi + 0x44], ebx
lea eax, [ebx + 1]
pop edi
pop esi
pop ebx
pop ebp
ret
mov ecx, dword [edi + 0xc]
mov edx, dword [edi + 0x24]
lea eax, [ecx + ecx*2]
shl eax, 4
add eax, ebx
imul eax, dword [eax*4 + 0x59c828], 0x23280
mov dword [edi + 0x44], eax
mov esi, dword [edx*4 + 0x59c928]
shl esi, cl
cdq
idiv esi
jmp 0x557849
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 0x24]
lea eax, [eax + eax*2]
shl eax, 4
add eax, ebx
imul eax, dword [eax*4 + 0x59c7e8], 0x23280
mov dword [edi + 0x44], eax
cdq
idiv dword [ecx*4 + 0x59c928]
mov dword [edi + 0x54], 0
mov dword [edi + 0x50], 0x20
mov ecx, dword [ebp + 8]
add ecx, 0xfffffffc
add eax, ecx
mov dword [edi + 0x44], eax
mov eax, 1
pop edi
pop esi
pop ebx
pop ebp
ret
push str.Stream_error_n
push 2
call fcn.005321d2
add esp, 4
push eax
call fcn.0053be20
add esp, 8
push 1
call fcn.0052f00c
int3
Function at 0x55fad0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi]
test eax, eax
je 0x55fb08
cmp dword [ebp + 0xc], 0x120
jae 0x55faf8
push eax
call fcn.0056ada0
push 2
call fcn.0056acf0
add esp, 8
mov dword [esi], eax
push 0x120
push 0
push eax
call fcn.0051d050
add esp, 0xc
pop esi
pop ebp
ret
Function at 0x565cf0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5f0524]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov al, byte [edi + 8]
mov byte [ebp - 0x15], al
cmp al, 3
je 0x565eda
xor edx, edx
test al, 2
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [edi]
je 0x565d53
movzx edx, byte [edi + 9]
movzx eax, byte [eax]
mov ecx, edx
sub ecx, eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x14], ecx
mov ecx, edx
movzx eax, byte [eax + 1]
sub ecx, eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], ecx
mov ecx, 3
movzx eax, byte [eax + 2]
sub edx, eax
mov dword [ebp - 0xc], edx
xor edx, edx
jmp 0x565d65
movzx eax, byte [eax + 3]
movzx ecx, byte [edi + 9]
sub ecx, eax
mov dword [ebp - 0x14], ecx
mov ecx, 1
test byte [ebp - 0x15], 4
mov dword [ebp - 0x1c], ecx
je 0x565d88
mov eax, dword [ebp + 0x10]
movzx ecx, byte [edi + 9]
movzx eax, byte [eax + 4]
sub ecx, eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp + eax*4 - 0x14], ecx
mov ecx, eax
inc ecx
mov dword [ebp - 0x1c], ecx
xor eax, eax
test ecx, ecx
je case.0x565dcd.3
cmp dword [ebp + eax*4 - 0x14], 0
jg 0x565da3
mov dword [ebp + eax*4 - 0x14], 0
jmp 0x565da8
mov edx, 1
inc eax
cmp eax, ecx
jl 0x565d92
test dx, dx
je case.0x565dcd.3
movzx eax, byte [edi + 9]
add eax, 0xfffffffe
cmp eax, 0xe
ja case.0x565dcd.3
movzx eax, byte [eax + 0x565f00]
jmp dword [eax*4 + 0x565eec]
mov ecx, dword [edi + 4]
test ecx, ecx
je case.0x565dcd.3
nop
mov al, byte [esi]
lea esi, [esi + 1]
shr al, 1
and al, 0x55
mov byte [esi - 1], al
sub ecx, 1
jne 0x565de0
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051a19b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x14]
mov ebx, 0xf0
mov edx, dword [edi + 4]
mov eax, 0xf
sar ebx, cl
and bl, 0xf0
sar eax, cl
or bl, al
test edx, edx
je case.0x565dcd.3
mov al, byte [esi]
lea esi, [esi + 1]
shr al, cl
mov ecx, dword [ebp - 0x14]
and al, bl
mov byte [esi - 1], al
sub edx, 1
jne 0x565e23
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051a19b
mov esp, ebp
pop ebp
ret
imul ebx, ecx
xor edi, edi
test ebx, ebx
je case.0x565dcd.3
mov eax, edi
lea esi, [esi + 1]
xor edx, edx
inc edi
div ecx
mov cl, byte [ebp + edx*4 - 0x14]
shr byte [esi - 1], cl
mov ecx, dword [ebp - 0x1c]
cmp edi, ebx
jb 0x565e55
pop ebx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051a19b
mov esp, ebp
pop ebp
ret
imul ebx, ecx
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], ebx
test ebx, ebx
je case.0x565dcd.3
mov edi, 0x100
xor edx, edx
lea esi, [esi + 1]
div ecx
movzx ecx, byte [esi - 1]
lea esi, [esi + 1]
movzx eax, di
mov edi, ecx
imul edi, eax
movzx eax, byte [esi - 1]
movzx ecx, word [ebp + edx*4 - 0x14]
add di, ax
shr di, cl
movzx ecx, di
mov edi, 0x100
mov eax, ecx
shr eax, 8
mov byte [esi - 2], al
mov eax, dword [ebp - 0x20]
inc eax
mov byte [esi - 1], cl
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
cmp eax, dword [ebp - 0x24]
jb 0x565e92
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0051a19b
mov esp, ebp
pop ebp
ret
Function at 0x570540
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x2c]
nop dword [eax]
mov eax, dword [edi + 0x2c]
mov edx, dword [edi + 0x3c]
add eax, 0xfffffefa
sub edx, dword [edi + 0x74]
add eax, esi
sub edx, dword [edi + 0x6c]
mov dword [ebp - 4], edx
cmp dword [edi + 0x6c], eax
jb 0x5705e8
mov ecx, dword [edi + 0x38]
push esi
lea eax, [ecx + esi]
push eax
push ecx
call fcn.0051cad0
mov ebx, dword [edi + 0x4c]
add esp, 0xc
mov eax, dword [edi + 0x44]
sub dword [edi + 0x70], esi
sub dword [edi + 0x6c], esi
sub dword [edi + 0x5c], esi
lea edx, [eax + ebx*2]
nop
movzx ecx, word [edx - 2]
lea edx, [edx - 2]
mov eax, ecx
mov dword [ebp + 8], 0
sub eax, esi
cmp ecx, esi
movzx eax, ax
cmovb eax, dword [ebp + 8]
mov word [edx], ax
sub ebx, 1
jne 0x570590
mov eax, dword [edi + 0x40]
mov ebx, esi
lea edx, [eax + esi*2]
nop dword [eax + eax]
movzx ecx, word [edx - 2]
lea edx, [edx - 2]
mov eax, ecx
mov dword [ebp + 8], 0
sub eax, esi
cmp ecx, esi
movzx eax, ax
cmovb eax, dword [ebp + 8]
mov word [edx], ax
sub ebx, 1
jne 0x5705c0
mov edx, dword [ebp - 4]
add edx, esi
mov ecx, dword [edi]
cmp dword [ecx + 4], 0
je 0x570640
mov eax, dword [edi + 0x74]
add eax, dword [edi + 0x6c]
add eax, dword [edi + 0x38]
push edx
push eax
push ecx
call fcn.005709b0
add dword [edi + 0x74], eax
add esp, 0xc
mov ebx, dword [edi + 0x74]
cmp ebx, 3
jb 0x57062c
mov eax, dword [edi + 0x38]
add eax, dword [edi + 0x6c]
mov ecx, dword [edi + 0x58]
movzx edx, byte [eax]
mov dword [edi + 0x48], edx
movzx eax, byte [eax + 1]
shl edx, cl
xor edx, eax
and edx, dword [edi + 0x54]
mov dword [edi + 0x48], edx
cmp ebx, 0x106
jae 0x570640
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x570550
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x57230c
pop ebp
ret
mov dword [ebp + 0xc], eax
pop ebp
jmp fcn.00572320
Function at 0x403e4a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x403e59
pop dword [ebp - 0x40]
mov eax, 0x97c48a55
add eax, 0x687bb404
sub dword [ebp - 0x40], eax
mov dword [ebp - 0x50], 0xed221f33
sub dword [ebp - 0x50], 0x9ecfd9e8
mov dword [ebp - 0x4c], 0x4975b167
sub dword [ebp - 0x4c], 0x17426522
mov dword [ebp - 0x48], 0x74f3419f
add dword [ebp - 0x48], 0xd759028f
mov dword [ebp - 0x44], 0xba519812
sub dword [ebp - 0x44], 0xba519812
lea eax, [ebp - 0x50]
push eax
mov eax, 0x95b7feed
sub eax, 0x95777e61
add eax, dword [ebp - 0x40]
call dword [eax]
mov dword [ebp - 0x50], 0x8973d15f
sub dword [ebp - 0x50], 0x15016809
mov dword [ebp - 0x4c], 0xeb9f8174
add dword [ebp - 0x4c], 0x55cce001
mov dword [ebp - 0x48], 0xe0c2088b
add dword [ebp - 0x48], 0x82ad63e1
mov dword [ebp - 0x44], 0x19268d00
add dword [ebp - 0x44], 0xe6d97300
lea ebx, [ebp - 0x50]
push ebx
push eax
mov eax, 0x9adc538e
add eax, 0x65642d46
add eax, dword [ebp - 0x40]
call dword [eax]
push 0x40
push 0x1000
push 0x39485
push 0
call eax
mov ecx, 0x2ddc2170
add ecx, 0xd22430b4
xor edx, edx
add edx, eax
mov edi, 0x3e34f837
add edi, 0xc20c17c9
add edi, dword [ebp - 0x40]
mov esi, 0x77ec3
mov ebx, dword [edi]
xor ebx, esi
sub dword [ebp - 0x38], edx
mov dword [edx], ebx
xor dword [ebp - 0x10], 0x7ff138e9
add edx, 0xa4730c98
add edx, 0x5b8cf36c
add edi, 4
loop 0x403f77
add eax, 0x978bc90e
sub eax, 0x978a8dab
xor ebx, ebx
add ebx, eax
add eax, 0xf87d4302
sub eax, 0xf87d42fd
mov ecx, 0xeea3b65d
sub ecx, 0xee63b65d
add ecx, dword [ebp - 0x40]
call ebx
leave
ret
Function at 0x401434
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x401443
pop dword [ebp - 0x18]
mov eax, 0x401443
sub dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0x6ad6f390
add dword [ebp - 0x28], 0xe37b51bb
mov dword [ebp - 0x24], 0x7356416f
sub dword [ebp - 0x24], 0x4122f52a
mov dword [ebp - 0x20], 0x23c19d3b
add dword [ebp - 0x20], 0x288aa6f3
mov dword [ebp - 0x1c], 0x6b6e6909
add dword [ebp - 0x1c], 0x949196f7
lea eax, [ebp - 0x28]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x18]
call dword [eax]
mov dword [ebp - 0x28], 0x713bf4fd
sub dword [ebp - 0x28], 0xfcc98ba7
mov dword [ebp - 0x24], 0xcf1ba636
sub dword [ebp - 0x24], 0x8daf44c1
mov dword [ebp - 0x20], 0xf02af2ef
add dword [ebp - 0x20], 0x7344797d
mov dword [ebp - 0x1c], 0xb43b2c54
add dword [ebp - 0x1c], 0x4bc4d3ac
lea ebx, [ebp - 0x28]
push ebx
push eax
mov eax, 0xb1693552
sub eax, 0xb128b452
add eax, dword [ebp - 0x18]
call dword [eax]
push 0x40
push 0x1000
push 0x387ae
push 0
call eax
mov ecx, 0xda46c87c
add ecx, 0x25b98046
mov edi, eax
mov ebx, 0xf9f7c732
sub ebx, 0xf9b0e332
add ebx, dword [ebp - 0x18]
mov esi, 0x26e8d458
xor dword [ebp - 0x14], 0x4ad09e4c
mov edx, dword [ebx]
xor edx, esi
sub dword [ebp - 0xc], ebx
mov dword [edi], edx
mov dword [ebp - 0x14], 0xe79ad129
add edi, 0xec66e07f
add edi, 0x13991f85
add ebx, 4
loop 0x401555
add eax, 0xbf2b4473
add eax, 0x40d5d168
xor ebx, ebx
add ebx, eax
add eax, 0x94c19c04
sub eax, 0x94c19bff
mov ecx, 0x400000
add ecx, dword [ebp - 0x18]
call ebx
leave
ret

Function at 0x402c93
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x42a2f0]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x402d27
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, 0x105
jmp 0x402ce4
cmp dword [ebp + 0x10], ebx
jne 0x402d1b
lea eax, [ebp - 0x210]
push ebx
push eax
push dword [ebp - 4]
call fcn.00401434
test eax, eax
jne 0x402cf6
lea eax, [ebp - 0x210]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402ccb
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.004065ec
cmp eax, ebx
je 0x402d2e
push ebx
push dword [0x42a2f0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402d27
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x42a2f0], ebx
jne 0x402d24
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x402d24
jmp 0x402d27
Function at 0x593faa70
Capabilities:
Hide graphical window

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_SetFocus]
mov esi, ecx
push dword [esi + 8]
call edi
push dword [esi + 0xc]
call edi
push 5
push dword [esi + 0x18]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esi + 0x18]
call edi
push dword [esi + 0x18]
call dword [sym.imp.USER32.dll_BringWindowToTop]
mov eax, dword [esi + 0x38]
mov ecx, dword [esi + 0x70]
push 0
mov dword [esi], 1
push dword [ecx + eax*4 + 0x24]
push 0x186
push dword [esi + 0x18]
call dword [sym.imp.vsansi.dll_SendMessageW]
and dword [esi], 0
pop edi
xor eax, eax
pop esi
ret

Function at 0x593fbcd7
Capabilities:
Hide graphical window

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov esi, ecx
cmp edi, dword [esi + 8]
je 0x593fbd16
call fcn.593f9ca7
push 0
push dword [esi + 0x18]
call dword [sym.imp.USER32.dll_ShowWindow]
cmp edi, dword [esi + 0x14]
je 0x593fbd06
mov eax, dword [esi + 0x3c]
test eax, eax
jle 0x593fbd0f
dec eax
mov dword [esi + 0x3c], eax
jmp 0x593fbd0f
push dword [esi + 8]
call dword [sym.imp.USER32.dll_SetFocus]
mov ecx, esi
call fcn.593fb8d4
pop edi
xor eax, eax
pop esi
ret 4

Function at 0x593fc691
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.vsansi.dll_RegSetValueExW]
ret 8

Function at 0x593fc6ab
Capabilities:
Set registry value

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, ecx
call dword [sym.imp.vsansi.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push dword [esp + 0x10]
push dword [esp + 0x18]
push 0
push dword [esp + 0x18]
push dword [esi]
call dword [sym.imp.vsansi.dll_RegSetValueExW]
pop esi
ret 0xc

Function at 0x593fc6d7
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov ebx, ecx
xor edi, edi
push esi
call dword [sym.imp.vsansi.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x593fc6e2
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.vsansi.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
ret 8

Function at 0x59404d9b
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x94
push esi
mov esi, ecx
call fcn.59404d84
and byte [esi + 0xc], 0
mov eax, 0x593f0000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x1c]
push 0
push eax
mov dword [esi], 0x3c
call sub.MSVCR70.dll_memset
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x1c], 0x94
call dword [sym.imp.kernel32.dll_GetVersionExA]
cmp dword [ebp - 0xc], 2
jne 0x59404df5
cmp dword [ebp - 0x18], 5
jb 0x59404e0d
jmp 0x59404e09
cmp dword [ebp - 0xc], 1
jne 0x59404e0d
cmp dword [ebp - 0x18], 4
ja 0x59404e09
jne 0x59404e0d
cmp dword [ebp - 0x14], 0
jbe 0x59404e0d
mov byte [esi + 0xc], 1
lea eax, [esi + 0x18]
push eax
mov dword [esi + 0x10], 0x700
mov dword [esi + 0x14], 0x59407090
call dword [sym.imp.kernel32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
add ebp, 0x78
leave
ret
Function at 0x402871
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x40b1b0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x40
lea eax, [ebp - 0x84]
push eax
push 0x4028b8
mov byte [0x40b0c1], 1
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x404ca6
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040234c
leave
ret
movzx ecx, word [ebp - 0x84]
push edi
lea edi, [ebp - 0x84]
test ecx, ecx
je 0x404cda
push esi
mov esi, dword [0x40cc88]
xor edx, edx
and ecx, 0x1f
inc edx
shl edx, cl
add edi, 2
movzx ecx, word [edi]
or esi, edx
test ecx, ecx
jne 0x404cbf
mov dword [0x40cc88], esi
pop esi
mov al, 1
pop edi
jmp 0x4028ab
Function at 0x4089cf
Capabilities:
Set current directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x40b1b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], eax
lea eax, reloc.ADVAPI32.dll_TraceMessage
mov esi, 0x104
push ebx
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], esi
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
cmp eax, esi
jle 0x408a33
mov edi, eax
lea esi, reloc.ADVAPI32.dll_TraceMessage
call fcn.004029a0
test al, al
jne 0x408a33
call fcn.00402449
push 0xe
pop eax
jmp 0x408b48
mov eax, dword [ebp - reloc.ADVAPI32.dll_TraceMessage]
mov esi, dword [ebp - reloc.ADVAPI32.dll_TraceMessage]
push ebx
call fcn.0040702d
test eax, eax
jns 0x408a51
push 0xe
pop edi
jmp 0x408b3b
xor esi, esi
mov eax, ebx
mov ecx, esi
test ebx, ebx
je 0x408b38
cmp word [eax], si
je 0x408a71
add eax, 2
cmp word [eax], 0x5c
jne 0x408a5f
mov ecx, eax
jmp 0x408a5f
test ecx, ecx
je 0x408b38
mov eax, dword [ebp - reloc.ADVAPI32.dll_TraceMessage]
sub ecx, ebx
sar ecx, 1
xor edx, edx
push esi
mov word [eax + ecx*2], dx
call dword [sym.imp.ole32.dll_CoInitialize]
mov edi, eax
test edi, edi
jne 0x408b3b
push 8
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
je 0x408ac0
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x408ad4
call ebx
mov edi, eax
test edi, edi
jle 0x408ad4
and edi, 0xffff
or edi, 0x80070000
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_SetThreadToken]
test eax, eax
jne 0x408af6
call ebx
mov edi, eax
test edi, edi
jle 0x408af8
and edi, 0xffff
or edi, 0x80070000
test edi, edi
jne 0x408b25
push dword [ebp - 0x21c]
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x408b21
call ebx
mov edi, eax
test edi, edi
jle 0x408b25
and edi, 0xffff
or edi, 0x80070000
jmp 0x408b25
call eax
mov edi, eax
test esi, esi
je 0x408b30
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
call dword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x408b3b
xor edi, edi
inc edi
lea esi, reloc.ADVAPI32.dll_TraceMessage
call fcn.00402449
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040234c
leave
ret
Function at 0x409011
Capabilities:
Print debug messages
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x86c
mov eax, dword [0x40b1b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
cmp dword [reloc.ADVAPI32.dll_TraceMessage], 0xffffffff
mov esi, eax
jne 0x4090d8
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
push 0x409158
mov dword [reloc.ADVAPI32.dll_TraceMessage], ebx
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], ebx
call fcn.0040712d
pop ecx
pop ecx
test eax, eax
jne 0x4090d8
lea eax, reloc.ADVAPI32.dll_TraceMessage
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], eax
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
push ebx
push ebx
push 0x4091b4
push dword [ebp - 0x868]
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], EnterCriticalSection
mov dword [ebp - reloc.ADVAPI32.dll_TraceMessage], 0x50
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4090b7
mov eax, dword [ebp - reloc.ADVAPI32.dll_TraceMessage]
mov eax, dword [eax]
and eax, 3
mov dword [reloc.ADVAPI32.dll_TraceMessage], eax
push dword [ebp - 0x868]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - reloc.ADVAPI32.dll_TraceMessage], 0x28
jle 0x4090d8
push dword [ebp - 0x864]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
test dword [reloc.ADVAPI32.dll_TraceMessage], 3
je 0x409142
xor eax, eax
push 0x800
mov word [ebp - 0x808], ax
lea eax, reloc.ADVAPI32.dll_TraceMessage
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
cmp dword [ebp + 8], ebx
push edi
mov eax, 0x401
lea ebx, reloc.ADVAPI32.dll_TraceMessage
je 0x409125
push dword [ebp + 8]
push 0x4091c0
call fcn.004070cc
add esp, 0xc
jmp 0x409131
push 0x4091e4
call fcn.004070cc
pop ecx
pop ecx
test eax, eax
js 0x409142
lea eax, reloc.ADVAPI32.dll_TraceMessage
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0040234c
leave
ret
Function at 0x40a539
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x40a54f
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], reloc.ADVAPI32.dll_TraceMessage
jne 0x40a56a
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret

Function at 0x40a571
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
movzx ebx, word [ecx + 6]
add eax, 0x18
push esi
xor edx, edx
add eax, ecx
push edi
test ebx, ebx
je 0x40a5af
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x40a5a7
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x40a5b1
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x40a597
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..rdata
nop
nop
mov ebx, 0x40de38
nop
mov ecx, 0x358375c0
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43304e
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x433024
nop
nop
nop
nop
mov eax, str._R5
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x52d63229
nop
nop
nop
test eax, eax
nop
nop
je 0x433084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x4099d0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push eax
call fcn.00409142
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.004090f7
add esp, 0xc
mov dword [ebp - 0x68c], eax
call dword [ebp - 0x68c]
mov dword [ebp - 0x674], eax
mov dword [ebp - 0x384], 4
and byte [ebp - 0x334], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
test dword [eax - 4], eax
invalid
jmp dword [ecx]
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
invalid
test dword [esp + edi*8 - 1], eax

Function at 0x40aed0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
and byte [ebp - 0x7bb], 0
mov byte [ebp - 0x7ba], 2
and byte [ebp - 0x7b9], 0
mov byte [ebp - 0x7b8], 0xa1
mov byte [ebp - 0x7b7], 0xb2
mov byte [ebp - 0x7b6], 0xb1
mov byte [ebp - 0x7b5], 0xb8
mov byte [ebp - 0x7b4], 0xcf
mov byte [ebp - 0x7b3], 0xce
mov byte [ebp - 0x7b2], 0xd3
mov byte [ebp - 0x7b1], 0x99
mov byte [ebp - 0x7b0], 0x91
mov byte [ebp - 0x7af], 0x91
mov byte [ebp - 0x7ae], 0xfd
call fcn.00409132
mov cl, 0x62
dec ebx
mov ebp, dword [edx + 0xb]
lea eax, [ebp - 0x7bc]
push eax
call fcn.00409142
pop ecx
push eax
mov eax, dword [ebp - 0x338]
lea eax, [ebp + eax - 0x230]
push eax
call fcn.004090a3
add esp, 0xc
jmp 0x40b0aa