joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406170
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x40bd3b
call fcn.0040b3b1
mov eax, dword [ebp + 0xc]
xor esi, esi
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x428], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x430], esi
mov dword [ebp - 0x418], esi
push 0x60
push esi
push ebx
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x4061ed
push 2
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x4061ed
call fcn.00405912
mov esi, eax
jmp 0x4062f3
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
jne 0x406210
call fcn.00405912
jmp 0x4062e6
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x41c], eax
test eax, eax
je 0x406206
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
lea eax, [ebx + 1]
cmp eax, ebx
jae 0x406243
mov esi, 0x8007000e
jmp 0x4062e8
push 2
pop ecx
mul ecx
mov byte [ebp - 4], cl
cmp edx, esi
ja 0x406321
jb 0x40625e
cmp eax, 0xffffffff
ja 0x406321
cmp eax, 0x400
jbe 0x406273
push eax
lea ecx, [ebp - 0x418]
call fcn.00409ca7
jmp 0x406295
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
jmp 0x406295
mov dword [ebp - 4], 1
cmp dword [ebp - 0x418], 0
je 0x406239
push ebx
push dword [ebp - 0x418]
push ebx
push dword [ebp - 0x41c]
push esi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x406206
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x430]
push dword [ebp - 0x418]
call fcn.00406dfa
mov esi, eax
test edi, edi
je 0x4062f3
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x40630c
lea ecx, [ebp - 0x418]
call fcn.00409c32
lea ecx, [ebp - 0x428]
call fcn.00409ae6
mov eax, esi
call fcn.0040b2fe
ret 0x10
push 0x80070216
call fcn.004058ba
int3
Function at 0x4085df
Capabilities:
Copy file
Move file

Disassembly:
push 0x434
mov eax, 0x40c047
call fcn.0040b343
mov esi, 0x208
mov dword [ebp - 4], 1
and dword [ebp - 0x426], 0
lea eax, [ebp - 0x218]
push esi
xorps xmm0, xmm0
push 0
push eax
movlpd qword [ebp - 0x42e], xmm0
call sub.VCRUNTIME140.dll_memset
push esi
lea eax, [ebp - 0x420]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
lea ecx, [ebp + 8]
mov esi, 0x104
push esi
call dword [sym.imp.Cmmlib.dll_public:_wchar_t_const____thiscall_Cmm::CStringT_wchar_t_::c_str_void_const]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push esi
lea ecx, [ebp + 0x24]
call dword [sym.imp.Cmmlib.dll_public:_wchar_t_const____thiscall_Cmm::CStringT_wchar_t_::c_str_void_const]
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov dword [ebp - 0x440], eax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x438], eax
lea eax, [ebp - 0x420]
mov dword [ebp - 0x434], eax
mov eax, 0x210
mov word [ebp - 0x430], ax
lea eax, [ebp - 0x440]
push eax
mov dword [ebp - 0x43c], 2
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
lea ecx, [ebp + 8]
mov esi, eax
call dword [sym.imp.Cmmlib.dll_public_virtual:_void___thiscall_Cmm::CStringT_wchar_t_::destructor_void_]
lea ecx, [ebp + 0x24]
call dword [sym.imp.Cmmlib.dll_public_virtual:_void___thiscall_Cmm::CStringT_wchar_t_::destructor_void_]
mov eax, esi
call fcn.0040b2ed
ret

Function at 0x4089d8
Capabilities:
Identify system language via api

Disassembly:
push 0x40
mov eax, 0x40c167
call fcn.0040b343
mov edi, ecx
xor esi, esi
mov dword [ebp - 0x4c], esi
cmp dword [edi], esi
je 0x408a46
push str.ZoomChat
lea ecx, [ebp - 0x2c]
call dword [sym.imp.Cmmlib.dll_public:_void___thiscall_Cmm::CStringT_wchar_t_::constructor_char_const__]
push str.com.zoom.client.langid
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], esi
call dword [sym.imp.Cmmlib.dll_public:_void___thiscall_Cmm::CStringT_wchar_t_::constructor_wchar_t_const__]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
mov edi, dword [edi]
push ecx
lea ecx, [ebp - 0x4c]
push ecx
mov esi, dword [edi]
push eax
mov ecx, dword [esi + 0x10]
call dword [0x40d53c]
mov ecx, edi
call dword [esi + 0x10]
lea ecx, [ebp - 0x48]
call dword [sym.imp.Cmmlib.dll_public_virtual:_void___thiscall_Cmm::CStringT_wchar_t_::destructor_void_]
lea ecx, [ebp - 0x2c]
call dword [sym.imp.Cmmlib.dll_public_virtual:_void___thiscall_Cmm::CStringT_wchar_t_::destructor_void_]
mov eax, dword [ebp - 0x4c]
test eax, eax
jne 0x408a8d
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx ecx, ax
mov eax, 0x804
cmp cx, ax
je 0x408a8d
mov eax, 0xc04
cmp cx, ax
je 0x408a8d
mov edx, 0x404
cmp cx, dx
je 0x408a8d
lea eax, [edx + 0xd]
cmp ax, cx
je 0x408a8d
mov eax, 0xc0a
cmp ax, cx
je 0x408a8d
add edx, 8
mov eax, 0x409
cmp dx, cx
cmove eax, edx
call fcn.0040b2ed
ret
Function at 0x401128
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x41a4c0]
xor eax, ebp
mov dword [ebp + 0x74], eax
xor eax, eax
mov dword [0x41cb80], eax
mov dword [0x41cb84], eax
mov dword [0x41cb88], eax
mov dword [0x41cb8c], eax
mov dword [0x41cb90], eax
mov dword [0x41cb94], eax
mov dword [0x41cb98], eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x401188
push 0x1b0
push str.sfxhead.c
call fcn.004022e7
pop ecx
pop ecx
xor eax, eax
inc eax
cmp dword [ebp - 0x10], eax
jne 0x4011a8
cmp dword [ebp - 0x18], 0xa
jb 0x4011e5
cmp dword [ebp - 0x18], 0x5a
mov dword [0x41cb80], eax
jb 0x4011e5
mov dword [0x41cb84], eax
jmp 0x4011e5
cmp dword [ebp - 0x10], 2
jne 0x4011e5
cmp dword [ebp - 0x1c], 5
mov dword [0x41cb88], eax
jb 0x4011e5
mov dword [0x41cb8c], eax
jne 0x4011d5
cmp dword [ebp - 0x18], 2
jne 0x4011cb
mov dword [0x41cb90], eax
cmp dword [ebp - 0x18], eax
jb 0x4011e5
mov dword [0x41cb94], eax
cmp dword [ebp - 0x1c], 6
jb 0x4011e5
mov dword [0x41cb94], eax
mov dword [0x41cb98], eax
mov ecx, dword [ebp + 0x74]
xor ecx, ebp
call fcn.0040aba0
add ebp, 0x78
leave
ret

Function at 0x401484
Capabilities:
Set current directory

Disassembly:
push esi
push edi
push dword [esp + 0xc]
call fcn.004012be
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 0x4014b8
push dword [esp + 0x10]
push dword [esp + 0x10]
call fcn.0040131a
pop ecx
pop ecx
pop edi
mov eax, esi
pop esi
ret

Function at 0x4015e2
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 0x4015f5
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 0x40160f
xor eax, 0xedb88320
dec esi
test esi, esi
jg 0x4015fd
pop esi
ret

Function at 0x401632
Capabilities:
Encode data using xor

Disassembly:
cmp dword [esp + 8], 0
mov eax, dword [0x41bb2c]
je 0x401662
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 + 0x41b728]
inc ecx
cmp dword [esp + 0xc], 0
jne 0x401643
pop esi
mov dword [0x41bb2c], eax
ret
Function at 0x401878
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 0x401896
push 0xc64
push esi
call fcn.004022e7
pop ecx
pop ecx
cmp dword [ebp + 0xc], 0
jg 0x4018a9
push 0xc65
push esi
call fcn.004022e7
pop ecx
pop ecx
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.004013f8
add esp, 0xc
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [0x41cbc8]
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
pop esi
jge 0x4018d5
xor al, al
leave
ret
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00401795
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 0x401909
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 0x4022e7
Capabilities:
Terminate process
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x220]
sub esp, 0x2a0
mov eax, dword [0x41a4c0]
xor eax, ebp
mov dword [ebp + 0x21c], eax
mov ecx, dword [0x41cbd8]
inc dword [0x41cbd8]
test ecx, ecx
mov eax, dword [ebp + 0x228]
push ebx
push esi
push edi
je 0x402323
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push dword [ebp + 0x22c]
mov ecx, 0x7d4
push eax
call fcn.004025e0
push eax
mov ebx, 0x191
lea eax, [ebp - 0x7c]
push ebx
push eax
call fcn.0040b105
add esp, 0x14
cmp eax, 0xffffffff
jne 0x40235b
push 0xc8c
push str.sfxhead.c
call fcn.004022e7
push 0x30
mov ecx, 0x7d0
call fcn.004025e0
push eax
lea eax, [ebp - 0x7c]
push eax
push dword [0x41cbc8]
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
mov esi, 0x104
lea eax, [ebp + 0x118]
push esi
push eax
call fcn.00401878
lea eax, [ebp + 0x118]
push eax
call fcn.0040a830
add esp, 0x10
test eax, eax
je 0x4023b4
push 0x41629c
lea eax, [ebp + 0x118]
push esi
push eax
call fcn.0040ac75
add esp, 0xc
mov edi, str.WZSFX32.RPT
push edi
lea eax, [ebp + 0x118]
push esi
push eax
call fcn.0040ac75
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 0x40231b
push 0x4162b8
lea eax, [ebp - 0x7c]
push ebx
push eax
call fcn.0040ac75
push eax
call fcn.0040107f
add esp, 0x10
test al, al
jne 0x40241c
push 0xc9d
push str.sfxhead.c
call fcn.004022e7
push 0
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.0040a830
pop ecx
push eax
lea eax, [ebp - 0x7c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call fcn.0040190d
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
mov ecx, 0x7d1
call fcn.004025e0
push eax
lea eax, [ebp - 0x7c]
push ebx
push eax
call fcn.0040b105
add esp, 0x10
cmp eax, 0xffffffff
jne 0x402473
push 0xca5
push str.sfxhead.c
call fcn.004022e7
push 0x30
mov ecx, 0x7d0
call fcn.004025e0
push eax
lea eax, [ebp - 0x7c]
push eax
push dword [0x41cbc8]
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x40231b
Function at 0x402901
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x41a4c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
call fcn.0040a830
cmp eax, 2
pop ecx
je 0x40292c
push 0x497
push str.sfxhead.c
call fcn.004022e7
push esi
lea eax, [ebp - 0xc]
push 8
push eax
call fcn.0040b121
push eax
call fcn.0040107f
add esp, 0x10
test al, al
jne 0x40294c
push 0x498
jmp 0x402922
push 0x41629c
lea eax, [ebp - 0xc]
push 8
push eax
call fcn.0040b121
push eax
call fcn.0040107f
add esp, 0x10
test al, al
jne 0x402970
push 0x499
jmp 0x402922
lea eax, [ebp - 0xc]
push eax
call fcn.0040a830
cmp eax, 8
pop ecx
jae 0x402a0e
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 0x4029b0
or ax, 0xffff
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040aba0
leave
ret
push 7
lea eax, [ebp - 0x2c]
push str.PKBACK
push eax
call fcn.004013cd
add esp, 0xc
test eax, eax
jne 0x40299f
mov al, byte [ebp - 0x2c]
cmp al, bl
lea ecx, [ebp - 0x2c]
je 0x40299f
cmp al, 0x2e
je 0x4029e0
cmp al, 0x20
je 0x4029e0
inc ecx
mov al, byte [ecx]
cmp al, bl
jne 0x4029d1
cmp byte [ecx], bl
je 0x40299f
mov al, byte [ecx]
cmp al, 0x30
jb 0x4029ee
cmp al, 0x39
jbe 0x4029f1
inc ecx
jmp 0x4029e4
xor eax, eax
jmp 0x402a06
movzx edx, dl
imul eax, eax, 0xa
sub edx, 0x30
cmp edx, 9
ja 0x4029a3
add eax, edx
inc ecx
mov dl, byte [ecx]
cmp dl, bl
jne 0x4029f5
jmp 0x4029a3
push 0x49a
push dword [0x41a01c]
jmp 0x402927
Function at 0x403ca3
Capabilities:
Create process on windows

Disassembly:
push ebp
lea ebp, [esp - 0x5a8]
sub esp, 0x628
mov eax, dword [0x41a4c0]
xor eax, ebp
mov dword [ebp + 0x5a4], eax
mov eax, dword [ebp + 0x5b0]
mov ecx, dword [ebp + 0x5b8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x5b4]
push eax
mov dword [ebp - 0x28], eax
mov esi, 0x2e3
lea eax, [ebp - 0x24]
push esi
push eax
mov dword [ebp - 0x2c], ecx
call fcn.0040b121
push eax
call fcn.0040107f
add esp, 0x10
test al, al
jne 0x403d05
push 0xe3d
push str.sfxhead.c
call fcn.004022e7
xor ebx, ebx
cmp byte [edi], bl
je 0x403d4d
push 0x416360
lea eax, [ebp - 0x24]
push esi
push eax
call fcn.0040ac75
push eax
call fcn.0040107f
add esp, 0x10
test al, al
jne 0x403d2e
push 0xe40
jmp 0x403cfb
push edi
lea eax, [ebp - 0x24]
push esi
push eax
call fcn.0040ac75
push eax
call fcn.0040107f
add esp, 0x10
test al, al
jne 0x403d4d
push 0xe41
jmp 0x403cfb
cmp dword [ebp - 0x2c], 0xffffffff
jne 0x403d9a
push 0x10
lea eax, [ebp - 0x3c]
push ebx
push eax
call fcn.004013f8
push 0x44
lea eax, [ebp - 0x80]
push ebx
push eax
call fcn.004013f8
add esp, 0x18
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x80]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x24]
push eax
push ebx
mov dword [ebp - 0x80], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x403d9a
mov eax, dword [ebp - 0x3c]
jmp 0x403e72
lea eax, [ebp + 0x2c0]
push eax
push ebx
push dword [ebp - 0x28]
call dword [sym.imp.SHELL32.dll_FindExecutableA]
cmp eax, 0x1f
jne 0x403de1
push dword [ebp - 0x28]
mov ecx, 0x422
call fcn.004025e0
push eax
lea eax, [ebp + 0x2c0]
push esi
push eax
call fcn.0040b105
add esp, 0x10
cmp eax, 0xffffffff
jne 0x403ddd
push 0xe61
jmp 0x403cfb
push 0x10
jmp 0x403e52
cmp eax, 0x20
jbe 0x403e23
mov al, byte [edi]
neg al
push 1
push ebx
sbb eax, eax
and eax, edi
push eax
mov eax, dword [0x41a060]
push dword [ebp - 0x28]
and eax, 0x20000
neg eax
sbb eax, eax
and eax, str.Install
push eax
push dword [0x41cbc8]
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ecx, dword [ebp - 0x2c]
cmp ecx, ebx
je 0x403e1e
mov dword [ecx], eax
cmp eax, 0x20
ja 0x403e72
push dword [ebp - 0x28]
mov ecx, 0x400
push eax
call fcn.004025e0
push eax
lea eax, [ebp + 0x2c0]
push esi
push eax
call fcn.0040b105
add esp, 0x14
cmp eax, 0xffffffff
jne 0x403e51
push 0xeaa
jmp 0x403cfb
push ebx
mov ecx, 0x7d0
call fcn.004025e0
push eax
lea eax, [ebp + 0x2c0]
push eax
push dword [0x41cbc8]
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
mov ecx, dword [ebp + 0x5a4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040aba0
add ebp, 0x5a8
leave
ret
Function at 0x403e8a
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, 0x7000
push esi
push 0
push dword [0x41b584]
call fcn.004013f8
mov eax, dword [0x41b716]
add esp, 0xc
test eax, eax
jg 0x403eb5
and dword [0x41cb4c], 0
xor eax, eax
pop esi
ret
cmp eax, esi
ja 0x403ebb
mov esi, eax
push esi
push dword [0x41b584]
push dword [0x41a004]
call fcn.0040a1a3
add esp, 0xc
cmp dword [0x41cb78], 0
mov dword [0x41cb4c], eax
je 0x403f27
cmp eax, 0xffffffff
je 0x403f27
cmp eax, esi
je 0x403f33
test eax, eax
jl 0x403f27
mov ecx, dword [0x41a00c]
mov edx, dword [0x41cb7c]
inc ecx
call fcn.00402a1e
mov eax, dword [0x41cb4c]
test eax, eax
jne 0x403f20
push esi
push dword [0x41b584]
push dword [0x41a004]
call fcn.0040a1a3
add esp, 0xc
mov dword [0x41cb4c], eax
cmp eax, 0xffffffff
je 0x403f27
mov esi, eax
cmp eax, esi
je 0x403f33
push 2
pop ecx
jmp fcn.00403734
mov esi, dword [0x41b584]
mov ecx, dword [0x41a040]
mov dword [0x41cb48], esi
test byte [ecx + 0x28], 1
je 0x403f85
mov byte [0x41cb47], 1
test word [ecx + 0x28], 0x1300
jne 0x403f91
push edi
mov edi, eax
test edi, edi
je 0x403f7d
dec edi
call fcn.00409def
xor byte [esi], al
movzx eax, byte [esi]
push eax
call fcn.00409e09
inc esi
test edi, edi
pop ecx
jne 0x403f61
mov eax, dword [0x41cb4c]
mov byte [0x41cb47], 0
pop edi
mov ecx, eax
dec eax
mov dword [0x41cb4c], eax
mov eax, ecx
pop esi
ret
push 0x100c
push dword [0x41a01c]
call fcn.004022e7
int3
Function at 0x405586
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
sub esp, 0x348
lea ebp, [esp - 4]
mov eax, dword [0x41a4c0]
xor eax, ebp
mov dword [ebp + 0x348], eax
push 0x20
mov eax, 0x414d63
call fcn.0040b8c4
mov esi, dword [ebp + 0x354]
push 0x103
lea eax, [ebp + 0x141]
push 0
push eax
mov byte [ebp + 0x140], 0
call fcn.004013f8
add esp, 0xc
cmp dword [esi + 0x18], 0x10
lea edi, [esi + 4]
jb 0x4055da
mov eax, dword [edi]
jmp 0x4055dc
mov eax, edi
mov ebx, dword [sym.imp.SHLWAPI.dll_PathCombineA]
push 0x4163b0
push eax
lea eax, [ebp + 0x140]
push eax
call ebx
lea eax, [ebp]
push eax
lea eax, [ebp + 0x140]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
je 0x4056eb
push 0x103
lea eax, [ebp + 0x245]
push 0
push eax
mov byte [ebp + 0x244], 0
call fcn.004013f8
add esp, 0xc
test byte [ebp], 0x10
je 0x4056a6
lea eax, [ebp + 0x2c]
push 0x4163ac
push eax
call fcn.0040baa0
test eax, eax
pop ecx
pop ecx
je 0x4056cd
lea eax, [ebp + 0x2c]
push 0x4163a8
push eax
call fcn.0040baa0
test eax, eax
pop ecx
pop ecx
je 0x4056cd
cmp dword [esi + 0x18], 0x10
jb 0x405667
mov eax, dword [edi]
jmp 0x405669
mov eax, edi
lea ecx, [ebp + 0x2c]
push ecx
push eax
lea eax, [ebp + 0x244]
push eax
call ebx
lea eax, [ebp + 0x244]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040545c
and dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
push eax
call fcn.00405586
or dword [ebp - 4], 0xffffffff
pop ecx
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.004043f9
jmp 0x4056cd
cmp dword [esi + 0x18], 0x10
jb 0x4056b0
mov eax, dword [edi]
jmp 0x4056b2
mov eax, edi
lea ecx, [ebp + 0x2c]
push ecx
push eax
lea eax, [ebp + 0x244]
push eax
call ebx
lea eax, [ebp + 0x244]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40560e
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esi + 0x18], 0x10
jb 0x4056f3
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
neg eax
sbb eax, eax
neg eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x348]
xor ecx, ebp
call fcn.0040aba0
add ebp, 0x34c
leave
ret
Function at 0x405723
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
lea ebp, [esp - 0xac]
sub esp, 0x12c
mov eax, dword [0x41a4c0]
xor eax, ebp
mov dword [ebp + 0xa8], eax
push ebx
push esi
mov esi, dword [ebp + 0xb4]
cmp dword [esi + 0x18], 0x10
push edi
lea edi, [esi + 4]
jb 0x405754
mov eax, dword [edi]
jmp 0x405756
mov eax, edi
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
push eax
call ebx
test eax, eax
je 0x4057d4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x80], eax
push dword [ebp - 0x80]
lea eax, [ebp + 0x88]
push 0x4163b4
push eax
call fcn.004021b9
add esp, 0xc
cmp dword [esi + 0x18], 0x10
jb 0x40578d
mov eax, dword [edi]
jmp 0x40578f
mov eax, edi
lea ecx, [ebp + 0x88]
push ecx
push eax
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
lea eax, [ebp - 0x7c]
push eax
call ebx
test eax, eax
je 0x4057ba
inc dword [ebp - 0x80]
jmp 0x40576c
push 0
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp - 0x7c]
push eax
mov ecx, esi
call fcn.00405353
xor eax, eax
inc eax
mov ecx, dword [ebp + 0xa8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040aba0
add ebp, 0xac
leave
ret

Function at 0x4057ec
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
mov eax, dword [0x41a4c0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp eax, 0x103
jb 0x405820
xor eax, eax
jmp 0x405861
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
push 0x208
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameA]
test eax, eax
mov ecx, esi
lea eax, [ebp - 0x310]
jne 0x405858
lea eax, [ebp - 0x108]
push eax
call fcn.00405353
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040aba0
leave
ret
Function at 0x405e96
Capabilities:
Log keystrokes via polling
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x22c
lea ebp, [esp - 4]
mov eax, dword [0x41a4c0]
xor eax, ebp
mov dword [ebp + 0x22c], eax
push 0x18
mov eax, 0x414e5e
call fcn.0040b8c4
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
xor ebx, ebx
test ax, ax
jl 0x405eec
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp + 0x1c]
push eax
push str.winzip_shellopencommand
push 0x80000000
mov dword [ebp - 0x20], 0x105
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
cmp eax, ebx
je 0x405f16
push ebx
mov ecx, 0x7d0
call fcn.004025e0
push eax
mov ecx, 0x40e
call fcn.004025e0
push eax
push dword [0x41cbc8]
call dword [sym.imp.USER32.dll_MessageBoxA]
xor al, al
jmp 0x4060be
cmp byte [ebp + 0x1c], bl
lea esi, [ebp + 0x1c]
je 0x405f3d
push 4
push str.___1
push esi
call fcn.0040bd70
add esp, 0xc
test eax, eax
je 0x405f37
inc esi
cmp byte [esi], bl
jne 0x405f1e
cmp byte [esi], bl
je 0x405f3d
mov byte [esi], bl
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 4], ebx
call fcn.00405d7b
pop ecx
lea ecx, [ebp - 0x1c]
xor esi, esi
call fcn.0040210f
test eax, eax
jbe 0x405f96
push esi
lea ecx, [ebp - 0x1c]
call fcn.00402125
cmp dword [eax + 0x18], 0x10
jb 0x405f75
mov eax, dword [eax + 4]
jmp 0x405f78
add eax, 4
push eax
push str.run1
call fcn.0040bc30
test eax, eax
pop ecx
pop ecx
je 0x405fc4
lea ecx, [ebp - 0x1c]
inc esi
call fcn.0040210f
cmp esi, eax
jb 0x405f61
push 0x41ca40
push str.__s_
lea eax, [ebp + 0x124]
push 0x107
push eax
call fcn.0040b105
add esp, 0x10
cmp eax, 0xffffffff
jne 0x406062
push 0xf62
jmp 0x40601b
push ebx
lea ecx, [ebp]
mov dword [ebp + 0x18], 0xf
call fcn.00402530
lea eax, [ebp]
push eax
mov byte [ebp - 4], 1
call fcn.00405de0
test al, al
pop ecx
je 0x406025
cmp dword [ebp + 0x18], 0x10
mov eax, dword [ebp + 4]
jae 0x405ff2
lea eax, [ebp + 4]
push eax
push str.__s_
lea eax, [ebp + 0x124]
push 0x107
push eax
call fcn.0040b105
add esp, 0x10
cmp eax, 0xffffffff
setne al
cmp al, bl
jne 0x406054
push 0xf59
push str.sfxhead.c
call fcn.004022e7
push 0x41ca40
push str.__s_
lea eax, [ebp + 0x124]
push 0x107
push eax
call fcn.0040b105
add esp, 0x10
cmp eax, 0xffffffff
setne al
cmp al, bl
jne 0x406054
push 0xf5d
jmp 0x40601b
push ebx
push 1
lea ecx, [ebp]
mov byte [ebp - 4], bl
call fcn.004043f9
mov eax, dword [0x41a060]
test ax, 0x1000
je 0x406095
test ax, ax
js 0x406095
lea eax, [ebp + 0x124]
push eax
call fcn.0040a830
pop ecx
lea ecx, [ebp + 0x124]
sub ecx, 4
add eax, ecx
mov byte [eax], 0x7a
inc eax
mov byte [eax], 0x69
mov byte [eax + 1], 0x70
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp + 0x124]
push eax
lea eax, [ebp + 0x1c]
push eax
mov dword [ebp - 0x24], ebx
call fcn.00403ca3
add esp, 0xc
test eax, eax
lea ecx, [ebp - 0x1c]
setne bl
call fcn.00405a39
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x22c]
xor ecx, ebp
call fcn.0040aba0
add ebp, 0x230
leave
ret