joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4411f2
Capabilities:
Get process image filename

Disassembly:
mov eax, 0x45d93e
call fcn.0044d930
sub esp, 0x10
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], ebx
mov esi, 0x12c
push esi
lea ecx, [ebp - 0x14]
call fcn.0043252b
mov byte [ebp - 4], 1
push dword [ebp + 8]
mov byte [ebp - 0xd], bl
push ebx
cmp dword [0x472e4c], ebx
je 0x441298
test dword [ebp + 0x10], 0x201
push 0x1000
mov dword [ebp - 0x1c], esi
setne byte [ebp - 0xe]
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [ebp - 0x18], esi
cmp esi, ebx
je 0x4412ac
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x14]
xor eax, eax
cmp byte [ebp - 0xe], bl
sete al
push eax
push esi
call dword [0x472e4c]
test eax, eax
je 0x4412ac
push 0x7e
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_StrChrW]
test eax, eax
je 0x441344
cmp byte [ebp - 0xe], bl
jne 0x441340
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x14]
push ebx
push esi
call dword [0x472e4c]
jmp 0x44133c
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
mov dword [ebp - 0x18], edi
cmp edi, ebx
jne 0x4412d7
test dword [ebp + 0x10], 0x101
jne 0x44130c
mov esi, dword [ebp + 0xc]
push 0x200
push esi
push dword [ebp + 8]
push 0x4410ac
call fcn.00441504
add esp, 0x10
test al, al
je 0x44130c
jmp 0x441370
test dword [ebp + 0x10], 0x201
jne 0x4412fd
push esi
push dword [ebp - 0x14]
push edi
call sub.PSAPI.DLL_GetProcessImageFileNameW
test eax, eax
je 0x4412fd
push 0x7e
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_StrChrW]
test eax, eax
je 0x441344
push esi
push dword [ebp - 0x14]
push ebx
push edi
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
jne 0x441331
mov ecx, dword [ebp + 0xc]
push ebx
push ebx
call fcn.0042b7ed
mov byte [ebp - 4], bl
push dword [ebp - 0x14]
call fcn.0043c8d4
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00401501
xor al, al
jmp 0x441391
push 0x7e
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_StrChrW]
test eax, eax
je 0x441344
mov byte [ebp - 0xd], 1
mov esi, dword [ebp + 0xc]
push dword [ebp - 0x14]
mov ecx, esi
call fcn.00401027
cmp byte [ebp - 0xd], bl
je 0x441360
push 1
push ebx
mov ecx, esi
call fcn.00437b2d
test byte [ebp + 0x10], 1
jne 0x441370
push 1
push esi
call fcn.004410bc
pop ecx
pop ecx
cmp dword [esi + 4], ebx
setne byte [ebp - 0xe]
mov byte [ebp - 4], bl
push dword [ebp - 0x14]
call fcn.0043c8d4
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00401501
mov al, byte [ebp - 0xe]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x443f23
Capabilities:
Enumerate gui resources

Disassembly:
mov eax, 0x45da8c
call fcn.0044d930
sub esp, 0x2c
push ebx
push esi
mov esi, dword [ebp + 0x14]
xor ebx, ebx
mov byte [ebp - 0xd], bl
cmp esi, ebx
je 0x443f56
push ebx
push esi
call fcn.00430340
pop ecx
pop ecx
test eax, eax
je 0x443f56
or dword [ebp + 0x10], 0x10000
mov byte [ebp - 0xd], 1
push esi
push dword [ebp + 0x10]
lea ecx, [ebp - 0x38]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0044347c
mov dword [ebp - 4], ebx
cmp dword [ebp + 0x18], ebx
je 0x443faf
mov eax, dword [ebp - 0x24]
and eax, 0xfffffffe
or eax, 0x20
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x38]
push eax
push dword [ebp + 0x18]
call fcn.00443e99
mov esi, eax
neg esi
sbb esi, esi
not esi
and esi, dword [ebp + 0x18]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.00402a74
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
cmp esi, ebx
je 0x444013
cmp byte [ebp - 0xd], bl
jne 0x444013
push esi
lea ecx, [ebp + 0x18]
call fcn.00404792
mov byte [ebp - 4], 1
mov eax, dword [eax]
push ebx
push eax
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
mov byte [ebp - 4], bl
push dword [ebp + 0x18]
call fcn.0043c8d4
mov dword [ebp + 0x18], ebx
cmp esi, ebx
jne 0x443fe7
xor esi, esi
jmp 0x443f93
or dword [ebp - 0x24], 0x40000000
lea eax, [ebp - 0x38]
push eax
push esi
call fcn.00443e99
test eax, eax
je 0x443f93
and dword [ebp - 0x24], 0xbfffffff
push 0xffffffffffffffe0
push esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.USER32.dll_GetClassLongW]
mov word [ebp - 0x14], ax
lea eax, [ebp - 0x38]
push eax
push fcn.00443e99
call dword [sym.imp.USER32.dll_EnumWindows]
xor esi, esi
cmp dword [ebp - 0x34], ebx
jle 0x44403d
mov eax, dword [ebp - 0x38]
push dword [eax + esi*4]
lea ecx, [ebp - 0x38]
call fcn.0044336e
inc esi
cmp esi, dword [ebp - 0x34]
jl 0x444029
mov esi, dword [ebp - 0x1c]
jmp 0x443f93

Function at 0x4458c2
Capabilities:
Get common file path

Disassembly:
mov eax, 0x45db82
call fcn.0044d930
sub esp, 0x10
cmp byte [0x47310d], 0
jne 0x4458df
xor al, al
jmp 0x445972
push ebx
xor ebx, ebx
inc ebx
push esi
mov esi, 0x4750b4
test byte [0x4750b0], bl
jne 0x44590d
or dword [0x4750b0], ebx
and dword [ebp - 4], 0
push 0x20
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov dword [0x4750ac], eax
or dword [ebp - 4], 0xffffffff
push ebx
push dword [0x4750ac]
push esi
mov esi, dword [ebp + 8]
push esi
call sym.qmmacro.exe_StrCompareN
add esp, 0x10
test eax, eax
jne 0x44596e
mov eax, dword [0x4750ac]
cmp byte [eax + esi], 0x5c
jne 0x44596e
push esi
call fcn.00432ac1
pop ecx
test al, al
jne 0x44596e
mov eax, dword [0x4750ac]
add eax, esi
push eax
push str._windows__sysnative
lea ecx, [ebp - 0x1c]
call fcn.00422dee
mov dword [ebp - 4], ebx
push dword [ebp - 0x1c]
call fcn.00432ac1
pop ecx
mov bl, al
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0042b5df
mov al, bl
jmp 0x445970
xor al, al
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret
Function at 0x447480
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x44748b
xor eax, eax
ret
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 4]
push esi
not eax
cmp edx, 8
jb 0x447569
mov esi, edx
shr esi, 3
push edi
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x465768]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x465768]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x465768]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x465768]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x465768]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x465768]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x465768]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x465768]
inc ecx
sub edx, 8
sub esi, 1
jne 0x4474a5
pop edi
test edx, edx
je 0x44758b
lea ecx, [ecx]
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x465768]
inc ecx
sub edx, 1
jne 0x447570
not eax
pop esi
ret
Function at 0x4482d7
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
inc ecx
movzx eax, byte [ecx]
push edi
test eax, eax
jne 0x4482f6
mov dword [esi], str._at_end_of_pattern
jmp 0x448458
lea edx, [eax - 0x30]
cmp edx, 0x4a
ja 0x448458
movsx edi, word [edx*2 + 0x466090]
test edi, edi
je 0x448315
mov eax, edi
jmp 0x448458
cmp eax, 0x58
jg 0x4483cb
je 0x448348
cmp eax, 0x30
je 0x4483a0
jle 0x4483f0
cmp eax, 0x39
jle 0x448353
cmp eax, 0x4c
je 0x448348
cmp eax, 0x4e
je 0x448348
cmp eax, 0x50
je 0x448348
cmp eax, 0x55
jne 0x4483f0
mov dword [esi], str.PCRE_does_not_support_L__l__N__P__p__U__u__or_X
jmp 0x448458
cmp dword [ebp + 0x14], 0
jne 0x448386
push ebx
mov esi, ecx
jmp 0x44836a
imul edx, edx, 0xa
mov ecx, eax
movzx eax, byte [ecx]
lea edx, [edx + eax - 0x30]
lea eax, [ecx + 1]
movzx ebx, byte [eax]
test byte [ebx + 0x466218], 4
jne 0x44835e
cmp edx, 0xa
pop ebx
jl 0x448396
cmp edx, dword [ebp + 0xc]
jle 0x448396
mov ecx, esi
movzx eax, byte [ecx]
cmp eax, 0x38
jl 0x4483a0
dec ecx
xor eax, eax
jmp 0x448458
push 0xffffffffffffffef
pop eax
sub eax, edx
jmp 0x448458
sub eax, 0x30
lea esi, [ecx + 1]
mov dl, byte [esi]
inc edi
cmp dl, 0x30
jb 0x4483c1
cmp dl, 0x37
ja 0x4483c1
cmp edi, 2
mov ecx, esi
movzx edx, byte [ecx]
lea eax, [edx + eax*8 - 0x30]
jl 0x4483a3
and eax, 0xff
jmp 0x448458
cmp eax, 0x63
je 0x44843a
cmp eax, 0x6c
je 0x448348
cmp eax, 0x70
je 0x448348
cmp eax, 0x75
je 0x448348
cmp eax, 0x78
je 0x4483fe
test byte [ebp + 0x10], 0x40
je 0x448458
mov dword [esi], str.unrecognized_character_follows__
jmp 0x448458
xor eax, eax
lea edx, [ecx + 1]
movzx esi, byte [edx]
inc edi
test byte [esi + 0x466218], 8
je 0x448458
mov ecx, edx
movzx esi, byte [ecx]
cmp esi, 0x61
jl 0x44841d
sub esi, 0x20
xor edx, edx
cmp esi, 0x41
setge dl
shl eax, 4
dec edx
and edx, 0xfffffff9
add edx, 0x37
sub eax, edx
add eax, esi
cmp edi, 2
jl 0x448400
jmp 0x448458
inc ecx
movzx eax, byte [ecx]
test eax, eax
jne 0x44844a
mov dword [esi], str.c_at_end_of_pattern
jmp 0x44845d
lea edx, [eax - 0x61]
cmp edx, 0x19
ja 0x448455
sub eax, 0x20
xor eax, 0x40
mov edx, dword [ebp + 8]
mov dword [edx], ecx
pop edi
pop esi
pop ebp
ret

Function at 0x448534
Capabilities:
Parse credit card information

Disassembly:
push esi
push edi
movzx ecx, byte [eax]
cmp ecx, 0x44
jg 0x44858e
cmp ecx, 0x42
jge 0x448578
cmp ecx, 3
jl 0x4485a6
cmp ecx, 4
jle 0x448598
cmp ecx, 0xf
je 0x448557
cmp ecx, 0x3c
jmp 0x448596
cmp dword [esp + 0xc], 0
jle 0x448574
movzx ecx, byte [eax + 1]
mov esi, dword [edx]
and esi, dword [esp + 0xc]
mov edi, ecx
and edi, dword [esp + 0xc]
cmp edi, esi
je 0x448574
mov dword [edx], ecx
inc eax
inc eax
jmp 0x448536
movzx ecx, byte [eax + 1]
movzx esi, byte [eax + 2]
shl ecx, 8
or ecx, esi
add eax, ecx
cmp byte [eax], 0x3d
je 0x448578
jmp 0x448598
cmp ecx, 0x48
je 0x448598
cmp ecx, 0x4b
jne 0x4485a6
movzx ecx, byte [eax]
movzx ecx, byte [ecx + 0x466030]
add eax, ecx
jmp 0x448536
pop edi
pop esi
ret
Function at 0x4527c8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x471948]
jne 0x4527d2
repz ret
jmp fcn.00457e85

Function at 0x4580a2
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00452849
and dword [ebp - 4], 0
cmp dword [0x475b24], 0
mov ebx, eax
jne 0x458153
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x458204
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x458204
push eax
call fcn.004527d7
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x475b24], eax
call esi
push eax
call fcn.004527d7
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x475b28], eax
call esi
push eax
call fcn.004527d7
mov dword [esp], 0x467278
push edi
mov dword [0x475b2c], eax
call esi
push eax
call fcn.004527d7
pop ecx
mov dword [0x475b34], eax
test eax, eax
je 0x458153
push 0x467260
push edi
call esi
push eax
call fcn.004527d7
pop ecx
mov dword [0x475b30], eax
mov eax, dword [0x475b30]
cmp eax, ebx
je 0x4581ab
cmp dword [0x475b34], ebx
je 0x4581ab
push eax
call fcn.00452852
push dword [0x475b34]
mov esi, eax
call fcn.00452852
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4581ab
test edi, edi
je 0x4581ab
call esi
test eax, eax
je 0x4581a2
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4581a2
test byte [ebp - 0xc], 1
jne 0x4581ab
or dword [ebp + 0x10], 0x200000
jmp 0x4581e4
mov eax, dword [0x475b28]
cmp eax, ebx
je 0x4581e4
push eax
call fcn.00452852
pop ecx
test eax, eax
je 0x4581e4
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4581e4
mov eax, dword [0x475b2c]
cmp eax, ebx
je 0x4581e4
push eax
call fcn.00452852
pop ecx
test eax, eax
je 0x4581e4
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x475b24]
call fcn.00452852
pop ecx
test eax, eax
je 0x458204
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x458206
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100593d7
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push dword [esp + 4]
lea esp, [esp + 0x44]
je 0x1005eb2f
shl si, 0xf
mov esi, dword [eax + 0x3c]
rcl edx, 0x14
add esi, eax
pushfd
cmp ah, ch
movzx dx, bl
mov edx, dword [esi + 0x78]
pushal
lea eax, [esp + 0x2349f599]
aad 0x3c
push ebp
lea eax, [ebx - 0x13f5e1cc]
aad 0x89
add eax, 0xab85a7b6
inc bp
mov ebp, esp
aam 0xa
sub esp, 0x10
aaa
test dl, 0x7b
aam 0x37
bsr eax, ebx
push esi
shl eax, cl
bt edi, 0xb
push edi
bsr ax, ax
lea eax, [ebx + 0x44663835]
add al, al
push ebx
pushal
bsf eax, eax
mov dword [esp + 0x1c], edx
cwde
shrd ax, dx, 6
aam 0x61
mov eax, dword [ebp + 8]
clc
bt bx, 5
mov word [esp + 4], 0x4a31
stc
test eax, eax
pushfd
pushal
jmp 0x10040379
Function at 0x401130
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x14]
push ebx
mov ebx, dword [0x4170b0]
push ebp
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov eax, dword [0x4170b8]
push esi
mov esi, dword [0x4170bc]
push edi
mov edi, dword [esp + 0x28]
add esi, eax
mov eax, dword [0x4170b4]
mov dword [esp + 0x28], 0x20
add esi, eax
add esi, ebx
mov ebx, dword [edi + 0xc]
mov dword [esp + 0x14], ebx
mov ebx, dword [edi + 8]
mov dword [esp + 0x10], ebx
mov ebx, dword [edi + 4]
mov edi, dword [edi]
mov eax, esi
shl eax, 5
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], edi
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
mov edi, edx
shl edi, 4
add edi, ebx
mov ebx, edx
shr ebx, 5
add ebx, ebp
mov ebp, dword [esp + 0x1c]
xor edi, ebx
lea ebx, [eax + edx]
xor edi, ebx
mov ebx, dword [esp + 0x18]
sub ecx, edi
mov edi, ecx
shl edi, 4
add edi, ebx
mov ebx, ecx
shr ebx, 5
add ebx, ebp
xor edi, ebx
lea ebx, [eax + ecx]
xor edi, ebx
sub eax, esi
sub edx, edi
mov edi, dword [esp + 0x28]
dec edi
mov dword [esp + 0x28], edi
jne 0x401188
mov eax, dword [0x4170b4]
pop edi
xor eax, edx
mov edx, dword [esp + 0x20]
pop esi
pop ebp
mov dword [edx], eax
mov eax, dword [0x4170b4]
xor eax, ecx
pop ebx
mov dword [edx + 4], eax
add esp, 0x10
ret

Function at 0x4014e0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x158
push esi
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x18]
lea edx, [esp + 0x5c]
rep stosd dword es:[edi], eax
mov dword [esp + 8], eax
mov ecx, 0x41
mov dword [esp + 0xc], eax
lea edi, [esp + 0x5c]
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], 0x44
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x164]
mov dword [esp + 0x14], eax
push ecx
push str.__s_
push edx
call fcn.00402dde
add esp, 0xc
lea eax, [esp + 8]
lea ecx, [esp + 0x18]
lea edx, [esp + 0x5c]
push eax
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x401582
mov eax, dword [esp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x401577
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 8]
push eax
call esi
mov eax, dword [esp + 0xc]
test eax, eax
je 0x401582
push eax
call esi
pop edi
pop esi
add esp, 0x158
ret 4
Function at 0x401590
Capabilities:
Delete file
Extract resource via kernel32 functions
Set file attributes
Write file on windows

Disassembly:
sub esp, 0x44
mov al, byte [0x41b4cc]
push ebx
push ebp
push esi
push edi
mov byte [esp + 0x14], al
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x15]
lea edx, [esp + 0x14]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x5c]
xor ebp, ebp
stosw word es:[edi], ax
push ecx
push 0x4171a8
push edx
mov dword [esp + 0x1c], ebp
stosb byte es:[edi], al
call fcn.00402dde
add esp, 0xc
call fcn.00410310
mov eax, dword [eax + 4]
lea ecx, [esp + 0x14]
push 0xa
push ecx
mov edx, dword [eax + 0x68]
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
cmp esi, ebp
jne 0x4015f8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 8
call fcn.00410310
mov eax, dword [eax + 4]
push esi
mov eax, dword [eax + 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
call fcn.00410310
mov eax, dword [eax + 4]
push esi
mov ecx, dword [eax + 0x68]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebp
jne 0x401630
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp edi, ebp
jne 0x401649
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 8
mov esi, dword [esp + 0x58]
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 0x80
push 2
push 0
push 3
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4016ae
test esi, esi
je 0x4016ae
push ebx
push edi
call fcn.00401200
add esp, 8
lea edx, [esp + 0x10]
push 0
push edx
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4016a7
mov ebp, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x44
ret 8
Function at 0x4016c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x40
mov al, byte [0x41b4cc]
push ebx
push ebp
push esi
push edi
mov byte [esp + 0x10], al
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x11]
push 0x76
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x14]
push 0x4171a8
push ecx
xor ebp, ebp
stosb byte es:[edi], al
call fcn.00402dde
add esp, 0xc
call fcn.00410310
mov eax, dword [eax + 4]
lea edx, [esp + 0x10]
push 0xa
push edx
mov eax, dword [eax + 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x40171d
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
call fcn.00410310
mov eax, dword [eax + 4]
push esi
mov ecx, dword [eax + 0x68]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
call fcn.00410310
mov eax, dword [eax + 4]
push esi
mov edx, dword [eax + 0x68]
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401751
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x401766
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
push ebx
push esi
call fcn.00401200
add esp, 8
mov ecx, 0x30e
xor eax, eax
mov edi, 0x41a480
cmp ebx, 0xc38
rep stosd dword es:[edi], eax
jb 0x40179f
cmp dword [esi], 0x57504650
jne 0x40179f
mov ecx, 0x30e
mov edi, 0x41a480
mov ebp, 1
rep movsd dword es:[edi], dword [esi]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x40
ret
Function at 0x401f00
Capabilities:
Delete file
Get common file path
Move file
Set file attributes

Disassembly:
sub esp, 0x104
xor eax, eax
push ebx
push ebp
push esi
mov ebx, ecx
push edi
mov ecx, 0x41
lea edi, [esp + 0x10]
push 0x104
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
xor ebp, ebp
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x401f73
lea ecx, [esp + 0x10]
push 0x104
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x10]
push 0x5c
push edx
call fcn.00403060
mov edx, eax
add esp, 8
test edx, edx
jne 0x401f6a
lea eax, [esp + 0x10]
push 0x2f
push eax
call fcn.00403060
mov edx, eax
add esp, 8
test edx, edx
je 0x401f6d
inc edx
jmp 0x401fb1
lea edx, [esp + 0x10]
jmp 0x401fb1
mov edi, str.Temp_
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x10]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edx, [esp + ecx + 0x10]
mov edi, str.cabsdk.dll
or ecx, 0xffffffff
xor eax, eax
push 0xa8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
push ecx
mov ecx, ebx
call fcn.00401590
cmp eax, 1
je 0x401ff8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x104
ret 8
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea edx, [esp + 0x10]
push 2
push edx
call edi
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x40204d
push str.ExtractCabFile
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x402046
mov ecx, dword [esp + 0x11c]
mov edx, dword [esp + 0x118]
push ecx
push edx
call eax
add esp, 8
test eax, eax
jne 0x402046
mov ebp, 1
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [esp + 0x10]
push 0x80
push eax
call edi
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp eax, 1
je 0x402078
push 4
lea edx, [esp + 0x14]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x104
ret 8
Function at 0x402090
Capabilities:
Delete file
Get common file path
Set file attributes

Disassembly:
sub esp, 0x318
push ebx
mov ebx, dword [esp + 0x320]
push esi
push edi
test ebx, ebx
je 0x402248
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x18]
push 1
push eax
rep stosd dword es:[edi], eax
lea eax, [esp + 0x20]
push eax
push 0
call esi
cmp eax, 1
je 0x4020e2
push 1
lea ecx, [esp + 0x1c]
push 0x19
push ecx
push 0
call esi
cmp eax, 1
jne 0x402248
or ecx, 0xffffffff
mov edi, 0x4171ac
xor eax, eax
push ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x1c]
mov ebp, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x1c]
and ecx, 3
push 0x80
rep movsb byte es:[edi], byte [esi]
mov edi, 0x41aeb0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea edx, [esp + 0x20]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str..url
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x20]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea edx, [esp + 0x10]
push edx
push 0x413c60
push 1
push 0
push 0x413c50
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
pop ebp
jl 0x402248
mov eax, dword [esp + 0xc]
push 0
push ebx
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x14]
push ecx
push 0x413c40
mov edx, dword [eax]
push eax
call dword [edx]
test eax, eax
jl 0x4021eb
mov eax, dword [esp + 0x14]
push 0x41aeb0
push eax
mov edx, dword [eax]
call dword [edx + 0x1c]
mov eax, dword [esp + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
push 0x413c70
mov edx, dword [eax]
push eax
call dword [edx]
test eax, eax
jl 0x40223e
lea edx, [esp + 0x11c]
push 0x104
push edx
lea eax, [esp + 0x20]
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x11c]
push 1
push edx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 0xc]
push eax
mov edx, dword [eax]
call dword [edx + 8]
pop edi
pop esi
pop ebx
add esp, 0x318
ret 4