joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41a91d
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4761c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.00415a90
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.00415a90
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x41a994
cmp word [ecx], dx
je 0x41a994
mov eax, dword [0x46f71c]
push edi
dec eax
push eax
push 0x46f608
call fcn.0041a8bc
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x41aa07
cmp word [eax], dx
je 0x41aa07
mov eax, dword [edi]
test eax, eax
je 0x41a9b8
cmp word [eax], dx
je 0x41a9b8
lea eax, [ebp - 0x10]
push eax
call fcn.0041a29f
jmp 0x41a9c1
lea eax, [ebp - 0x10]
push eax
call fcn.0041a33a
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x41aa31
mov eax, dword [0x46f604]
push dword [ebp - 0x14]
dec eax
push eax
push 0x46f2f8
call fcn.0041a8bc
add esp, 0xc
test al, al
je 0x41aa31
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x41a9fc
cmp word [eax], di
je 0x41a9fc
lea eax, [ebp - 0x10]
push eax
call fcn.0041a29f
pop ecx
jmp 0x41aa33
lea eax, [ebp - 0x10]
push eax
call fcn.0041a33a
jmp 0x41a9f9
mov eax, dword [edi]
test eax, eax
je 0x41aa1e
cmp word [eax], dx
je 0x41aa1e
lea eax, [ebp - 0x10]
push eax
call fcn.0041a254
pop ecx
jmp 0x41aa31
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x41aafc
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0041a741
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x41aafc
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x41aafc
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x41aafc
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x41aa89
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.00417b7b
test ebx, ebx
je 0x41aaf7
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.00417b7b
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41aafc
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x41aafc
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0041fa6f
add esp, 0x10
xor eax, eax
inc eax
jmp 0x41aafe
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409aef
leave
ret
Function at 0x41c3f8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00408f50
mov eax, dword [0x4761c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0041b03e
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41c43a
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x41c596
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00421e20
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x4779e0]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.0041d3f5
mov ecx, dword [esi*4 + 0x4779e0]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x41c58f
cmp eax, dword [ecx + edi + 0x24]
jne 0x41c58f
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41c58f
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041d3f5
add esp, 0x14
test edx, edx
jl 0x41c58f
jg 0x41c505
test eax, eax
jb 0x41c58f
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x41c58f
jl 0x41c51f
cmp dword [ebp - 0x1008], eax
ja 0x41c58f
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41c53d
test ebx, ebx
je 0x41c576
cmp ecx, edi
jae 0x41c576
mov al, byte [ecx]
cmp al, 0xd
jne 0x41c557
lea eax, [edi - 1]
cmp ecx, eax
jae 0x41c563
cmp byte [ecx + 1], 0xa
jne 0x41c563
inc ecx
jmp 0x41c563
movzx eax, al
movsx eax, byte [eax + 0x476990]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41c53d
cmp edx, ebx
jne 0x41c53d
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x41c594
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00409aef
leave
ret
Function at 0x41c88d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4779e0]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41c8cd
cmp byte [ebx], 0xa
jne 0x41c8cd
or byte [edi + eax + 0x28], 4
jmp 0x41c8d2
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x41c9d1
mov dl, byte [eax]
cmp dl, 0x1a
je 0x41c9b4
inc eax
cmp dl, 0xd
je 0x41c8fe
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x41c924
cmp eax, ecx
jae 0x41c932
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x41c8e6
jmp 0x41c9d1
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41c9af
cmp dword [ebp - 0x10], 0
je 0x41c9af
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4779e0]
test byte [eax + edi + 0x28], 0x48
je 0x41c989
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41c974
mov byte [esi], dl
jmp 0x41c985
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4779e0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41c9d1
cmp byte [ebp - 1], 0xa
jne 0x41c998
cmp esi, ebx
jne 0x41c998
mov byte [esi], 0xa
jmp 0x41c9d0
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0041d413
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41c9d1
mov byte [esi], 0xd
jmp 0x41c9d0
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4779e0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41c9ce
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41c9d1
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41c9da
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x4779e0]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41ca20
cmp word [ebx], dx
jne 0x41ca20
or byte [eax + edi + 0x28], 4
jmp 0x41ca25
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x41cb88
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x41cb68
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x41ca66
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41ca9c
cmp eax, edx
jae 0x41caaa
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x41ca41
jmp 0x41cb88
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41cb63
cmp dword [ebp - 0x18], 0
je 0x41cb63
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x4779e0]
test byte [eax + edi + 0x28], 0x48
je 0x41cb39
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x41cafd
mov word [esi], cx
jmp 0x41cb34
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x4779e0]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x4779e0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x4779e0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x41cb88
pop eax
cmp word [ebp - 4], ax
jne 0x41cb49
cmp esi, ebx
jne 0x41cb49
mov word [esi], ax
jmp 0x41cb85
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041d413
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x41cb88
push 0xd
pop eax
jmp 0x41cb44
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x4779e0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x41cb82
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x41cb88
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x421de0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x421e0d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x421e0d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53
Function at 0x408954
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0x4085d8
sub esp, 4
mov dword [esp], esi
pop esi
add edi, edi
call fcn.00408982
sub esi, esi
inc edi
xor dword [ebx], ecx
add edi, esi
add edi, esi
add ebx, 1
dec esi
cmp ebx, edx
jne fcn.00408954
ret
Function at 0x401000
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x4122b0]
xor eax, ebp
mov dword [ebp + 0x74], eax
xor eax, eax
mov dword [0x413d48], eax
mov dword [0x413d4c], eax
mov dword [0x413d50], eax
mov dword [0x413d54], eax
mov dword [0x413d58], eax
mov dword [0x413d5c], eax
mov dword [0x413d60], eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x401060
push 0x1c2
push str.sfxhead.c
call fcn.00401ed2
pop ecx
pop ecx
xor eax, eax
inc eax
cmp dword [ebp - 0x10], eax
jne 0x401080
cmp dword [ebp - 0x18], 0xa
jb 0x4010bd
cmp dword [ebp - 0x18], 0x5a
mov dword [0x413d48], eax
jb 0x4010bd
mov dword [0x413d4c], eax
jmp 0x4010bd
cmp dword [ebp - 0x10], 2
jne 0x4010bd
cmp dword [ebp - 0x1c], 5
mov dword [0x413d50], eax
jb 0x4010bd
mov dword [0x413d54], eax
jne 0x4010ad
cmp dword [ebp - 0x18], 2
jne 0x4010a3
mov dword [0x413d58], eax
cmp dword [ebp - 0x18], eax
jb 0x4010bd
mov dword [0x413d5c], eax
cmp dword [ebp - 0x1c], 6
jb 0x4010bd
mov dword [0x413d5c], eax
mov dword [0x413d60], eax
mov ecx, dword [ebp + 0x74]
xor ecx, ebp
call fcn.00406bf6
add ebp, 0x78
leave
ret

Function at 0x40134a
Capabilities:
Set current directory

Disassembly:
push esi
push edi
push dword [esp + 0xc]
call fcn.00401196
pop ecx
push dword [esp + 0xc]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov esi, eax
dec esi
neg esi
sbb esi, esi
neg esi
test edi, edi
je 0x40137e
push dword [esp + 0x10]
push dword [esp + 0x10]
call fcn.004011f2
pop ecx
pop ecx
pop edi
mov eax, esi
pop esi
ret

Function at 0x4014a6
Capabilities:
Query environment variable

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
ret

Function at 0x4014b9
Capabilities:
Hash data with crc32

Disassembly:
push esi
push 8
xor eax, eax
add ecx, ecx
pop esi
sar ecx, 1
mov edx, eax
xor edx, ecx
shr eax, 1
test dl, 1
je 0x4014d3
xor eax, 0xedb88320
dec esi
test esi, esi
jg 0x4014c1
pop esi
ret

Function at 0x4014f6
Capabilities:
Encode data using xor

Disassembly:
cmp dword [esp + 8], 0
mov eax, dword [0x41381c]
je 0x401526
mov ecx, dword [esp + 4]
push esi
movzx edx, byte [ecx]
dec dword [esp + 0xc]
movzx esi, al
xor edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x413418]
inc ecx
cmp dword [esp + 0xc], 0
jne 0x401507
pop esi
mov dword [0x41381c], eax
ret
Function at 0x401730
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [ebp + 8], 0
push esi
mov esi, str.sfxhead.c
jne 0x40174e
push 0xd63
push esi
call fcn.00401ed2
pop ecx
pop ecx
cmp dword [ebp + 0xc], 0
jg 0x401761
push 0xd64
push esi
call fcn.00401ed2
pop ecx
pop ecx
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.004012be
add esp, 0xc
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [0x413d90]
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
pop esi
jge 0x40178d
xor al, al
leave
ret
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040164d
add esp, 0xc
lea eax, [ebp - 8]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
mov eax, dword [ebp - 8]
test eax, eax
je 0x4017c1
push dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov al, 1
leave
ret
Function at 0x401ed2
Capabilities:
Terminate process
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x220]
sub esp, 0x2a0
mov eax, dword [0x4122b0]
xor eax, ebp
mov dword [ebp + 0x21c], eax
mov ecx, dword [0x413d9c]
inc dword [0x413d9c]
test ecx, ecx
mov eax, dword [ebp + 0x228]
push ebx
push esi
push edi
je 0x401f0e
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push dword [ebp + 0x22c]
mov ecx, 0x7d4
push eax
call fcn.0040207a
push eax
lea eax, [ebp - 0x7c]
push 0x191
push eax
call fcn.00406a1f
add esp, 0x14
test eax, eax
jge 0x401f44
push 0xd8d
push str.sfxhead.c
call fcn.00401ed2
push 0x30
mov ecx, 0x7d0
call fcn.0040207a
mov ebx, dword [sym.imp.USER32.dll_MessageBoxA]
push eax
lea eax, [ebp - 0x7c]
push eax
push dword [0x413d90]
call ebx
push 0
mov esi, 0x104
lea eax, [ebp + 0x118]
push esi
push eax
call fcn.00401730
lea eax, [ebp + 0x118]
push eax
call fcn.004070f0
add esp, 0x10
test eax, eax
je 0x401f9f
push 0x40f2f0
lea eax, [ebp + 0x118]
push esi
push eax
call fcn.004071e0
add esp, 0xc
mov edi, str.WZSFX32.RPT
push edi
lea eax, [ebp + 0x118]
push esi
push eax
call fcn.004071e0
add esp, 0xc
push 0
push 0x20
push 2
push 0
push 1
push 0x40000000
lea eax, [ebp + 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x401f06
push 0x40f30c
push 0x191
lea eax, [ebp - 0x7c]
push eax
call fcn.00406a7b
test eax, eax
jge 0x402002
push 0xdaa
push str.sfxhead.c
call fcn.00401ed2
push 0
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.004070f0
pop ecx
push eax
lea eax, [ebp - 0x7c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call fcn.004017c5
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
mov ecx, 0x7d1
call fcn.0040207a
push eax
lea eax, [ebp - 0x7c]
push 0x191
push eax
call fcn.00406a1f
add esp, 0x10
test eax, eax
jge 0x40205c
push 0xdb3
push str.sfxhead.c
call fcn.00401ed2
push 0x30
mov ecx, 0x7d0
call fcn.0040207a
push eax
lea eax, [ebp - 0x7c]
push eax
push dword [0x413d90]
call ebx
jmp 0x401f06
Function at 0x40231d
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x4122b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
push 8
lea eax, [ebp - 0xc]
push eax
call fcn.004069df
test eax, eax
jge 0x40234f
push 0x508
push str.sfxhead.c
call fcn.00401ed2
lea eax, [ebp - 0xc]
push eax
call fcn.004070f0
cmp eax, 8
pop ecx
jae 0x4023ef
push ebx
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x20
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x402391
or ax, 0xffff
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00406bf6
leave
ret 4
push 7
lea eax, [ebp - 0x2c]
push str.PKBACK
push eax
call fcn.00401293
add esp, 0xc
test eax, eax
jne 0x40237e
mov al, byte [ebp - 0x2c]
cmp al, bl
lea ecx, [ebp - 0x2c]
je 0x40237e
cmp al, 0x2e
je 0x4023c1
cmp al, 0x20
je 0x4023c1
inc ecx
mov al, byte [ecx]
cmp al, bl
jne 0x4023b2
cmp byte [ecx], bl
je 0x40237e
mov al, byte [ecx]
cmp al, 0x30
jb 0x4023cf
cmp al, 0x39
jbe 0x4023d2
inc ecx
jmp 0x4023c5
xor eax, eax
jmp 0x4023e7
movzx edx, dl
imul eax, eax, 0xa
sub edx, 0x30
cmp edx, 9
ja 0x402382
add eax, edx
inc ecx
mov dl, byte [ecx]
cmp dl, bl
jne 0x4023d6
jmp 0x402382
push 0x509
push dword [0x412014]
jmp 0x40234a
Function at 0x40354c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5d0
mov eax, dword [0x4122b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
push ebx
mov dword [ebp - 0x5d0], eax
mov edi, 0x2e3
push edi
lea eax, [ebp - 0x5cc]
push eax
call fcn.004069df
test eax, eax
jge 0x403597
push 0xf85
push str.sfxhead.c
call fcn.00401ed2
cmp byte [esi], 0
je 0x4035d2
push 0x40f3b0
push edi
lea eax, [ebp - 0x5cc]
push eax
call fcn.00406a7b
test eax, eax
jge 0x4035b9
push 0xf88
jmp 0x40358d
push esi
push edi
lea eax, [ebp - 0x5cc]
push eax
call fcn.00406a7b
test eax, eax
jge 0x4035d2
push 0xf89
jmp 0x40358d
cmp dword [ebp - 0x5d0], 0xffffffff
jne 0x4035ef
push 1
lea eax, [ebp - 0x5cc]
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
jmp 0x4036c3
lea eax, [ebp - 0x2e8]
push eax
push 0
push ebx
call dword [sym.imp.SHELL32.dll_FindExecutableA]
cmp eax, 0x1f
jne 0x403632
push ebx
mov ecx, 0x422
call fcn.0040207a
push eax
lea eax, [ebp - 0x2e8]
push edi
push eax
call fcn.00406a1f
add esp, 0x10
test eax, eax
jge 0x40362e
push 0xf97
jmp 0x40358d
push 0x10
jmp 0x4036a3
cmp eax, 0x20
jbe 0x403676
mov al, byte [esi]
neg al
push 1
push 0
sbb eax, eax
and eax, esi
push eax
mov eax, dword [0x412058]
and eax, 0x20000
neg eax
sbb eax, eax
push ebx
and eax, str.Install
push eax
push dword [0x413d90]
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ecx, dword [ebp - 0x5d0]
test ecx, ecx
je 0x403671
mov dword [ecx], eax
cmp eax, 0x20
ja 0x4036c3
push ebx
push eax
mov ecx, 0x400
call fcn.0040207a
push eax
lea eax, [ebp - 0x2e8]
push edi
push eax
call fcn.00406a1f
add esp, 0x14
test eax, eax
jge 0x4036a1
push 0xfe9
jmp 0x40358d
push 0
mov ecx, 0x7d0
call fcn.0040207a
push eax
lea eax, [ebp - 0x2e8]
push eax
push dword [0x413d90]
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406bf6
leave
ret
Function at 0x4036d2
Capabilities:
Log keystrokes via polling
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x19c]
sub esp, 0x21c
mov eax, dword [0x4122b0]
xor eax, ebp
mov dword [ebp + 0x198], eax
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jl 0x403720
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp + 0x90]
push eax
push str.winzip_shellopencommand
push 0x80000000
mov dword [ebp - 0x80], 0x105
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
je 0x40374b
push 0
mov ecx, 0x7d0
call fcn.0040207a
push eax
mov ecx, 0x40e
call fcn.0040207a
push eax
push dword [0x413d90]
call dword [sym.imp.USER32.dll_MessageBoxA]
xor al, al
jmp 0x4037e7
push ebx
xor ebx, ebx
cmp byte [ebp + 0x90], bl
lea eax, [ebp + 0x90]
je 0x40376c
cmp byte [eax], 0x20
je 0x403766
inc eax
cmp byte [eax], bl
jne 0x40375c
cmp byte [eax], bl
je 0x40376c
mov byte [eax], bl
push 0x413c00
push str.__s_
lea eax, [ebp - 0x78]
push 0x105
push eax
call fcn.00406a1f
add esp, 0x10
test eax, eax
jge 0x40379a
push 0x1010
push str.sfxhead.c
call fcn.00401ed2
mov eax, dword [0x412058]
test ax, 0x1000
je 0x4037c7
test ax, ax
js 0x4037c7
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [ebp - 0x78]
sub ecx, 4
add eax, ecx
mov byte [eax], 0x7a
inc eax
mov byte [eax], 0x69
mov byte [eax + 1], 0x70
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp + 0x90]
push eax
mov dword [ebp - 0x7c], ebx
call fcn.0040354c
add esp, 0xc
test eax, eax
setne al
pop ebx
mov ecx, dword [ebp + 0x198]
xor ecx, ebp
call fcn.00406bf6
add ebp, 0x19c
leave
ret

Function at 0x4037fc
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, 0x7000
push esi
push 0
push dword [0x413280]
call fcn.004012be
mov eax, dword [0x41340a]
add esp, 0xc
test eax, eax
jg 0x403827
and dword [0x413d0c], 0
xor eax, eax
pop esi
ret
cmp eax, esi
ja 0x40382d
mov esi, eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll__lread]
push esi
push dword [0x413280]
push dword [0x413d1c]
call edi
cmp dword [0x413d40], 0
mov dword [0x413d0c], eax
je 0x403894
cmp eax, 0xffffffff
je 0x403894
cmp eax, esi
je 0x4038a0
test eax, eax
jl 0x403894
mov ecx, dword [0x412004]
mov edx, dword [0x413d44]
inc ecx
call fcn.004023ff
mov eax, dword [0x413d0c]
test eax, eax
jne 0x40388d
push esi
push dword [0x413280]
push dword [0x413d1c]
call edi
mov dword [0x413d0c], eax
cmp eax, 0xffffffff
je 0x403894
mov esi, eax
cmp eax, esi
je 0x4038a0
push 2
pop ecx
jmp fcn.0040302e
mov esi, dword [0x413280]
mov ecx, dword [0x412038]
mov dword [0x413d08], esi
test byte [ecx + 0x28], 1
je 0x4038f0
mov byte [0x413d06], 1
test word [ecx + 0x28], 0x1300
jne 0x4038fd
mov edi, eax
test edi, edi
je 0x4038e9
dec edi
call fcn.0040673c
xor byte [esi], al
movzx eax, byte [esi]
push eax
call fcn.00406756
inc esi
test edi, edi
pop ecx
jne 0x4038cd
mov eax, dword [0x413d0c]
mov byte [0x413d06], 0
mov ecx, eax
dec eax
pop edi
mov dword [0x413d0c], eax
mov eax, ecx
pop esi
ret
push 0x10c8
push dword [0x412014]
call fcn.00401ed2
int3