joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4193a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4193cd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4193cd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4087f0
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x448f3d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x464
push ebx
push esi
push edi
mov dword [ebp - 4], 0
push dword [ebp + 8]
push ecx
mov esi, esp
mov dword [ebp - 0x18], esi
call fcn.00401620
mov ecx, eax
test ecx, ecx
je 0x4089a0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
push str.blFFXdUsmGNilEmf28
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.004038c0
test al, al
jne 0x40885c
push 0x13
push str.blFFXdUsmGNilEmf28
mov ecx, esi
call fcn.00403de0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.004023d0
add esp, 4
push dword [eax]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov edx, dword [ebp - 0x14]
or ebx, 0xffffffff
add esp, 0xc
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40889a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x46c]
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x408970
lea esp, [esp]
lea eax, [ebp - 0x440]
push eax
push dword [ebp + 8]
push ecx
mov esi, esp
mov dword [ebp - 0x18], esi
call fcn.00401620
test eax, eax
je 0x4089a0
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi], eax
push str.SWlrHamweaGDZsTHhg
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.004038c0
test al, al
jne 0x40890b
push 0x13
push str.SWlrHamweaGDZsTHhg
mov ecx, esi
call fcn.00403de0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0
call fcn.004023d0
add esp, 4
push dword [eax]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov edx, dword [ebp - 0x14]
add esp, 0x10
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x408946
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x46c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4088c0
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x40898f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004013f0
int3
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
mov ecx, 0x7c3d7c9b
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
jne 0x430024
nop
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
mov ecx, 0x42035262
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x5fa470
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1a5000]
mov dword [edi + 0x1d701c], 0x8b585a07
push edi
or ebp, 0xffffffff
jmp 0x5fa49a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5fa4a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5fa490
mov eax, 1
add ebx, ebx
jne 0x5fa4b3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5fa4c4
jne 0x5fa4d4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5fa4d4
dec eax
add ebx, ebx
jne 0x5fa4d0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x5fa4a8
xor ecx, ecx
sub eax, 3
jb 0x5fa4ec
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5fa55e
sar eax, 1
mov ebp, eax
jmp 0x5fa4f7
add ebx, ebx
jne 0x5fa4f7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x5fa504
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x5fa528
inc ecx
add ebx, ebx
jne 0x5fa514
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x5fa509
jne 0x5fa525
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5fa509
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5fa548
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5fa539
jmp 0x5fa496
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5fa548
add edi, ecx
jmp 0x5fa496
pop esi
mov edi, esi
mov ecx, 0x5951
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5fa566
cmp byte [edi], 0x23
jne 0x5fa566
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x5fa56b
lea edi, [esi + 0x1f7000]
mov eax, dword [edi]
or eax, eax
je 0x5fa5e3
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x1faad0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1fabfc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5fa598
mov ecx, edi
jns 0x5fa5c7
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1fac00]
or eax, eax
je 0x5fa5dd
mov dword [ebx], eax
add ebx, 4
jmp 0x5fa5b5
call dword [esi + 0x1fac04]
popal
jmp section.UPX0
Function at 0x40adc0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.00404730
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
mov eax, dword [0x4170bc]
cmp ebx, eax
jae 0x40adfb
push ebx
pop eax
and eax, 0x1f
push ebx
pop edx
sar edx, 5
mov edx, dword [edx*4 + 0x4170c0]
test byte [edx + eax*8 + 4], 1
jne 0x40ae0d
mov dword [0x415c84], 9
or eax, 0xffffffff
jmp 0x40af32
push 1
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x40ae37
push 2
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x40ae3f
or eax, 0xffffffff
jmp 0x40af32
mov eax, dword [ebp + 0xc]
mov esi, eax
sub esi, dword [ebp - 8]
test esi, esi
jle 0x40aee4
lea edx, [ebp - 0x1010]
mov ecx, 0x1000
sub eax, eax
push edi
mov edi, edx
rep stosb byte es:[edi], al
pop edi
push edx
pop eax
push 0x8000
push ebx
call fcn.0040b330
add esp, 8
mov dword [ebp - 0x10], eax
mov eax, esi
cmp eax, 0x1000
jb 0x40ae8a
mov dword [ebp - 0x1014], 0x1000
jmp 0x40ae92
mov eax, esi
mov dword [ebp - 0x1014], eax
mov eax, dword [ebp - 0x1014]
push eax
lea eax, [ebp - 0x1010]
push eax
push ebx
call fcn.004086d0
add esp, 0xc
push eax
pop edi
cmp eax, 0xffffffff
jne 0x40aecb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x40aec5
mov dword [0x415c84], 0xd
or dword [ebp - 4], 0xffffffff
jmp 0x40aed5
push esi
pop eax
sub eax, edi
mov esi, eax
or eax, eax
jg 0x40ae75
mov eax, dword [ebp - 0x10]
push eax
push ebx
call fcn.0040b330
add esp, 8
jmp 0x40af20
test esi, esi
jge 0x40af20
push 0
mov eax, dword [ebp + 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
push ebx
call fcn.00408b00
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
or eax, eax
setne al
and eax, 1
dec eax
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x40af20
mov dword [0x415c84], 0xd
push 0
mov eax, dword [ebp - 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100021b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x99c
mov eax, dword [0x1002a014]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ecx, 0x265
lea edi, [ebp - 0x99c]
mov esi, 0x10026768
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [eax + 0x3c]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esi, dword [ecx + eax + 0x28]
add esi, eax
lea eax, [ebp - 8]
push eax
push 4
push 0x994
push esi
call edi
xor eax, eax
nop
mov cl, byte [ebp + eax - 0x99c]
mov byte [eax + esi], cl
inc eax
cmp eax, 0x994
jl 0x10002200
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 0x994
push esi
call edi
push 0
push 0
push 0
push 0x100020e0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.10004893
mov esp, ebp
pop ebp
ret

Function at 0x10010fc9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10010e3f
Function at 0x280025c7
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
lea ecx, [ebp - 0xc]
call fcn.28011390
lea ecx, [ebp - 0x18]
call fcn.28011390
push 0x3c
xor esi, esi
lea eax, [ebp - 0x54]
push esi
push eax
call fcn.280158e0
mov ebx, dword [ebp + 0xc]
add esp, 0xc
mov eax, dword [ebp + 0x10]
mov ecx, 0x740
mov dword [ebp - 0x54], 0x3c
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x38], 0xa
test bl, 1
je 0x2800261f
mov ecx, 0x8740
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x50], ecx
test bl, 2
mov eax, str.runas
cmove eax, dword [ebp - 0x48]
mov dword [ebp - 0x48], eax
and ebx, 0x10000
jne 0x2800263f
or ecx, 0x100
mov dword [ebp - 0x50], ecx
mov eax, dword [0x2802fe6c]
push 5
push eax
mov dword [ebp - 0x4c], eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp - 0x4c]
call dword [sym.imp.USER32.dll_BringWindowToTop]
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call fcn.28004cc4
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x18]
call fcn.280114c2
cmp dword [ebp - 8], esi
je 0x280026a7
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x280026aa
test ebx, ebx
jne 0x2800269e
push 0xffffffffffffffff
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
inc esi
push dword [ebp - 0x18]
call fcn.28019859
push dword [ebp - 0xc]
call fcn.28019859
pop ecx
pop ecx
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x2800291e
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [ebp + 8]
mov esi, ecx
call fcn.28003261
xor edi, edi
mov dword [0x2802fe5c], esi
lea eax, [ebp - 4]
mov dword [0x2802fe64], edi
push eax
push edi
push esi
push 0x28002cf6
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, eax
mov dword [0x2802fe60], edx
test edx, edx
je 0x2800297e
cmp dword [0x2802fe98], 2
je 0x2800296f
call fcn.28008276
mov edx, dword [0x2802fe60]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [0x2802fe60]
mov eax, dword [0x2802fe64]
mov dword [0x2802fffc], edi
test eax, eax
je 0x280029c0
cmp eax, 1
je 0x280029b4
cmp eax, 2
je 0x280029b0
cmp eax, 3
je 0x280029ac
cmp eax, 0x67
jle 0x280029a6
cmp eax, 0x6b
jle 0x28002a24
push eax
push 0x14
push edi
jmp 0x28002a1c
push 0x12
jmp 0x280029b6
push 0x13
jmp 0x280029b6
push 0x11
push edi
call fcn.2800999e
pop ecx
pop ecx
jmp 0x28002a24
mov ecx, edi
mov dword [ebp + 8], ecx
cmp dword [0x28030000], ecx
jne 0x28002a24
test edx, edx
je 0x280029eb
lea eax, [ebp + 8]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov ecx, dword [ebp + 8]
test eax, eax
je 0x280029eb
test ecx, ecx
jne 0x280029eb
xor eax, eax
jmp 0x28002a29
mov edx, 0x80070000
mov eax, ecx
and eax, edx
cmp eax, edx
je 0x280029fd
push ecx
push 0x21
jmp 0x280029a9
movzx eax, cx
cmp eax, 0xe
jne 0x28002a0e
cmp dword [0x2802fe9c], 0xffffffff
je 0x28002a24
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp + 8]
push 0x22
push 1
call fcn.2800999e
add esp, 0xc
mov eax, 0x80004005
pop edi
pop esi
leave
ret 4
Function at 0x2800378d
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
lea ecx, [ebp - 0x18]
mov dword [ebp - 4], eax
mov edi, eax
call fcn.28011359
xor esi, esi
lea ecx, [ebp - 0x18]
push esi
call fcn.28004055
push 0x2f
mov ebx, eax
mov eax, dword [ebp + 8]
pop ecx
push 0x5c
pop edx
movzx eax, word [eax + edi*2 - 2]
cmp ax, dx
je 0x280037d3
cmp ax, cx
jne 0x28003807
xor eax, eax
mov word [ebx + edi*2 - 2], ax
dec edi
mov dword [ebp - 4], edi
jmp 0x28003807
test edi, edi
jle 0x280037ff
push 0x2f
pop ecx
push 0x5c
pop edx
movzx eax, word [ebx + edi*2]
cmp ax, cx
je 0x280037fd
cmp ax, dx
je 0x280037fd
dec edi
test edi, edi
jg 0x280037ea
test edi, edi
je 0x2800385c
xor eax, eax
mov word [ebx + edi*2], ax
push ebx
call fcn.280057b1
pop ecx
test eax, eax
je 0x280037e0
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x2800383b
lea eax, [ebp - 0xc]
push eax
push ebx
call fcn.280043bd
pop ecx
pop ecx
test eax, eax
jne 0x280038e0
push ebx
call fcn.280057b1
pop ecx
test eax, eax
jne 0x280038d6
push ebx
push 0xc
push 1
call fcn.2800999e
add esp, 0xc
jmp 0x280038e0
cmp dword [ebp - 4], 2
mov ecx, dword [ebp + 8]
jne 0x2800387d
mov ax, word [ecx]
or ax, 0x20
sub ax, 0x61
cmp ax, 0x19
ja 0x2800387d
cmp word [ecx + 2], 0x3a
je 0x280038dd
push ecx
jmp 0x2800384b
sub eax, edi
lea esi, [ebx + edi*2]
inc eax
push eax
mov eax, dword [ebp + 8]
lea eax, [eax + edi*2]
push eax
push esi
call fcn.28015a40
xor ecx, ecx
lea eax, [edi + 1]
add esp, 0xc
cmp word [esi], cx
cmove eax, edi
mov edi, eax
jmp 0x280038ba
movzx eax, cx
push 0x5c
pop ecx
cmp ax, cx
je 0x280038c5
push 0x2f
pop ecx
cmp ax, cx
je 0x280038c5
inc edi
movzx eax, word [ebx + edi*2]
mov ecx, eax
test ax, ax
jne 0x280038a6
xor eax, eax
push ebx
mov word [ebx + edi*2], ax
call fcn.280057b1
pop ecx
test eax, eax
je 0x280038f0
mov eax, dword [ebp - 4]
cmp edi, eax
jl 0x28003880
xor esi, esi
inc esi
push dword [ebp - 0x18]
call fcn.28019859
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
push ebx
push 0xc
push 1
call fcn.2800999e
add esp, 0xc
xor esi, esi
jmp 0x280038e0
Function at 0x28003c06
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.28011390
push 2
mov ecx, edi
call fcn.28004055
push eax
push 1
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, eax
xor ebx, ebx
mov eax, dword [edi]
xor ecx, ecx
mov dword [edi + 4], ebx
mov word [eax], cx
test esi, esi
je 0x28003c5d
inc esi
mov ecx, edi
push esi
call fcn.28004055
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, dword [edi]
push esi
call fcn.28004e79
pop ecx
xor ecx, ecx
mov dword [edi + 4], eax
mov word [esi + eax*2], cx
mov esi, dword [edi + 4]
mov dword [ebp + 8], esi
lea eax, [esi + 0xf]
push eax
mov ecx, edi
call fcn.28004055
push ebx
push dword [ebp + 0xc]
lea eax, [eax + esi*2]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov esi, dword [edi]
push esi
call fcn.28004e79
add esp, 0x10
mov dword [edi + 4], eax
xor ecx, ecx
mov word [esi + eax*2], cx
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x28003cac
mov esi, dword [ebp + 8]
inc ebx
lea eax, [esi + 0xf]
cmp ebx, 0xfff
jl 0x28003c66
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x28003cb3
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set current directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push ebx
push esi
push dword [ebp + 8]
lea ecx, [ebp - 0xc]
call fcn.28011359
push 0x28025b98
lea ecx, [ebp - 0xc]
call fcn.28011686
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
xor esi, esi
cmp ebx, 0xffffffff
je 0x28003d8f
push dword [ebp + 8]
lea ecx, [ebp - 0xc]
call fcn.280114c2
push 0x5c
lea ecx, [ebp - 0xc]
call fcn.280018ff
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0xc]
call fcn.28011686
test byte [ebp - 0x25c], 0x10
je 0x28003d57
push 0x28025ba0
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x28003d72
push 0x28025ba4
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x28003d72
push dword [ebp - 0xc]
call fcn.28003cb3
pop ecx
jmp 0x28003d6e
push esi
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x28003db9
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x28003db9
lea eax, [ebp - 0x25c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x28003cf3
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [0x2802fed8]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x28003db9
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x28003db9
xor esi, esi
inc esi
push dword [ebp - 0xc]
call fcn.28019859
pop ecx
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x28003dc8
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
cmp dword [0x28030010], 0
jne 0x28003e28
lea eax, [ebp - 0x250]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x28003e28
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test byte [ebp - 0x250], 0x10
jne 0x28003e1d
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x28003e19
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
leave
ret
xor eax, eax
leave
ret
push dword [ebp + 8]
call fcn.28003cb3
pop ecx
leave
ret
xor eax, eax
inc eax
leave
ret
Function at 0x28004204
Capabilities:
Get geographical location
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x2802f0c0]
sub esp, 0xa0
push esi
push edi
xor edi, edi
mov esi, edi
jmp 0x2800422b
cmp eax, dword [ebp + 8]
je 0x2800422f
inc esi
mov eax, esi
shl eax, 4
mov eax, dword [eax + 0x2802f0c0]
test eax, eax
jne 0x2800421a
shl esi, 4
cmp dword [esi + 0x2802f0c0], edi
jne 0x28004244
mov eax, 0x280259f8
jmp 0x280043b9
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
push dword [ebp + 8]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x60]
push str.SfxString_d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x60]
push edi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, eax
mov dword [ebp - 4], edi
call ebx
push 2
pop edx
test eax, eax
jne 0x280042ee
xor ecx, ecx
lea eax, [edi + 2]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.28019850
pop ecx
mov ecx, dword [ebp - 4]
mov edi, eax
inc ecx
lea eax, [ebp - 0x60]
push ecx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp eax, dword [ebp - 4]
ja 0x280042e7
call ebx
test eax, eax
jne 0x280042e7
mov eax, dword [esi + 0x2802f0cc]
test eax, eax
je 0x280042df
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x280042e7
push 2
pop eax
push eax
push dword [esi + 0x2802f0cc]
call fcn.28019842
pop ecx
mov dword [esi + 0x2802f0cc], edi
jmp 0x280042ed
mov dword [esi + 0x2802f0cc], edi
jmp 0x280042ee
push edi
call fcn.28019859
pop ecx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esi + 0x2802f0cc]
test eax, eax
jne 0x280043b8
mov ebx, dword [esi + 0x2802f0c4]
cmp dword [esi + 0x2802f0c8], eax
je 0x28004326
call fcn.280047b0
cmp eax, dword [0x28025da0]
jne 0x28004326
mov ebx, dword [esi + 0x2802f0c8]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
xor ecx, ecx
push 2
pop edx
lea edi, [eax + 1]
lea eax, [edi + 2]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.28019850
pop ecx
mov ecx, dword [0x2802f0bc]
mov dword [esi + 0x2802f0cc], eax
cmp ecx, 0xffffffff
jne 0x2800439d
and dword [0x2802f0bc], 0
lea eax, [ebp - 0xa0]
push 0x1f
push eax
movzx eax, word [0x2802fe68]
push 0x1004
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jle 0x28004397
lea eax, [ebp - 0xa0]
push eax
call fcn.2801b040
pop ecx
mov ecx, eax
mov dword [0x2802f0bc], ecx
jmp 0x2800439d
mov ecx, dword [0x2802f0bc]
lea eax, [edi + 1]
push eax
push dword [esi + 0x2802f0cc]
push edi
push ebx
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esi + 0x2802f0cc]
pop ebx
pop edi
pop esi
leave
ret
Function at 0x280047b0
Capabilities:
Identify system language via api

Disassembly:
mov dx, word [0x2802fe68]
test dx, dx
jne 0x2800481a
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov cx, ax
mov word [0x2802fe68], ax
mov edx, 0x3ff
and cx, dx
cmp cx, 9
je 0x280047dd
movzx eax, ax
ret
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
mov ecx, 0x409
cmp ax, cx
jne 0x28004813
push esi
mov esi, dword [0x28025da0]
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
movzx edx, word [0x2802fe68]
cmp eax, esi
movzx ecx, si
cmove edx, ecx
mov word [0x2802fe68], dx
pop esi
jmp 0x2800481a
mov dx, word [0x2802fe68]
movzx eax, dx
ret

Function at 0x28004be8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
movzx ecx, word [0x2802fe68]
mov edi, eax
mov ebx, dword [sym.imp.KERNEL32.dll_FindResourceExA]
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
call ebx
mov esi, eax
test esi, esi
jne 0x28004c2c
push 0x409
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
call ebx
mov esi, eax
test esi, esi
je 0x28004c52
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x28004c3d
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebx], eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x28004c52
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
jmp 0x28004cbf
cmp dword [0x2802fe74], 0
jne 0x28004cbd
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SetProcessPreferredUILanguages
push dword [0x2802feb8]
mov dword [0x2802fe74], 1
call edi
movzx ecx, word [0x2802fe68]
xor ebx, ebx
push ebx
push 0x409
push ebx
push ecx
mov esi, eax
lea eax, [ebp - 0x40]
push str._04X_c_04X_c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
test esi, esi
jne 0x28004cb4
push str.SetThreadPreferredUILanguages
push dword [0x2802feb8]
call edi
mov esi, eax
test esi, esi
je 0x28004cbd
push ebx
lea eax, [ebp - 0x40]
push eax
push 4
call esi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x28004d91
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 1
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ecx, dword [ebp + 8]
mov edi, eax
call fcn.28011390
mov ecx, dword [ebp + 8]
lea esi, [edi + 2]
push esi
call fcn.28004055
lea eax, [edi + 1]
mov edi, dword [ebp + 8]
push eax
push esi
mov ecx, edi
call fcn.28004055
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, dword [edi]
push esi
call fcn.28004e79
pop ecx
mov dword [edi + 4], eax
xor ecx, ecx
mov word [esi + eax*2], cx
mov eax, edi
pop edi
pop esi
leave
ret