joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a1428
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
add esp, 0xfffffff0
mov ebx, edx
mov esi, eax
cmp dword [esi + 0x414], 0
jbe 0x4a149d
call sub.kernel32.dll_GetTickCount
sub eax, dword [esi + 0x414]
test eax, eax
jbe 0x4a149d
mov edx, dword [esi + 0x424]
sub edx, dword [esi + 0x420]
test edx, edx
je 0x4a149d
mov dword [esp + 4], edx
fild dword [esp + 4]
mov dword [esp + 8], eax
xor eax, eax
mov dword [esp + 0xc], eax
fild qword [esp + 8]
fdivp st(1)
fstp dword [esp]
wait
fld dword [esp]
fdiv dword [0x4a14e8]
fmul dword [0x4a14ec]
fstp dword [esp]
wait
mov eax, dword [esp]
mov dword [esi + 0x41c], eax
mov eax, dword [esi + 0x424]
mov dword [esi + 0x420], eax
call sub.kernel32.dll_GetTickCount
mov dword [esi + 0x414], eax
call sub.kernel32.dll_GetTickCount
sub eax, dword [esi + 0x418]
cdq
xor eax, edx
sub eax, edx
cmp eax, 0x3e8
setg al
or bl, al
je 0x4a14e0
mov edx, dword [esi + 0x410]
mov eax, dword [esi + 0x3d0]
call fcn.00433700
call sub.kernel32.dll_GetTickCount
mov dword [esi + 0x418], eax
add esp, 0x10
pop esi
pop ebx
ret

Function at 0x4a1c38
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
mov ebx, edx
xor eax, eax
push ebp
push 0x4a1cbe
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
mov eax, ebx
call fcn.004720d4
mov eax, dword [0x4a7bdc]
mov eax, dword [eax + 0x1c]
push eax
lea eax, [ebp - 0xc]
call fcn.004722c8
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
mov ecx, dword [0x4a7bdc]
mov ecx, dword [ecx + 0xc]
mov edx, dword [0x4a7bdc]
mov edx, dword [edx + 0x30]
mov eax, dword [0x482a48]
call fcn.00486b8c
cmp dword [ebp - 4], 0
je 0x4a1ca3
mov eax, dword [ebp - 4]
call fcn.00472550
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a1cc5
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004041dc
ret

Function at 0x432001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..rsrc
nop
nop
push 4
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
je 0x432072
nop
nop
nop
mov ebx, 0x40c7d0
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
mov esi, 0x346748e7
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x432060
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4320d2
nop
nop
nop
mov ebx, 0x42f314
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x515e3c32
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4320c0
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x596640
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x11f000]
mov dword [edi + 0x11f09c], 0x64cbcf3
push edi
or ebp, 0xffffffff
jmp 0x59666a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x596671
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x596660
mov eax, 1
add ebx, ebx
jne 0x596683
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x596694
jne 0x5966b3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5966b3
dec eax
add ebx, ebx
jne 0x5966a0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x596678
add ebx, ebx
jne 0x5966af
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x596705
xor ecx, ecx
sub eax, 3
jb 0x5966cb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x59673a
sar eax, 1
mov ebp, eax
jmp 0x5966d6
add ebx, ebx
jne 0x5966d6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5966a4
inc ecx
add ebx, ebx
jne 0x5966e4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5966a4
add ebx, ebx
jne 0x5966f1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x5966e6
jne 0x596702
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5966e6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x596724
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x596716
jmp 0x596666
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x596724
add edi, ecx
jmp 0x596666
pop esi
mov edi, esi
mov ecx, 0x9b4a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x596742
cmp byte [edi], 0x16
jne 0x596742
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 al, bl
loop 0x596747
lea edi, [esi + 0x192000]
mov eax, dword [edi]
or eax, eax
je 0x5967b6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x198c10]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x198d18]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x596774
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x198d20]
or eax, eax
je 0x5967b0
mov dword [ebx], eax
add ebx, 4
jmp 0x596791
call dword [esi + 0x198d1c]
mov ebp, dword [esi + 0x198d24]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x5967ea
sub esp, 0xffffff80
jmp 0x51f5b8
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x41e960]
sub esp, 0x904
push ebx
xor ebx, ebx
cmp eax, ebx
push esi
push edi
je 0x401036
cmp word [0x41e962], bx
je 0x401027
call eax
mov dword [0x41e960], eax
push eax
call fcn.00402490
push eax
call fcn.0040950a
pop ecx
jmp 0x4010a4
push 0x27
call fcn.00402490
mov esi, dword [ebp + 8]
push dword [esi + 0xc]
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
push dword [esi]
push eax
lea eax, [ebp - 0x904]
push eax
call edi
add esp, 0x14
cmp dword [esi + 0x10], ebx
mov dword [ebp - 4], ebx
jbe 0x401098
lea ebx, [esi + 0x14]
push dword [ebx]
lea eax, [ebp - 0x104]
push str._t0x_p_n
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x904]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
add ebx, 4
cmp eax, dword [esi + 0x10]
jb 0x401063
lea eax, [ebp - 0x904]
push eax
call fcn.0040950a
pop ecx
call fcn.0040491c
push 0xa
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x401893
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [ebp + 8]
mov esi, ecx
lea ecx, [esi + 0xc]
call fcn.004136a9
push dword [ebp + 0xc]
lea edi, [esi + 0x10]
mov ecx, edi
call fcn.00401403
push 0x5c
mov ecx, edi
call fcn.004017a8
xor edi, edi
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x40133c
push edi
push edi
mov dword [0x41e964], esi
mov dword [0x41e96c], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp dword [0x41e9c4], 2
mov dword [0x41e968], eax
je 0x4018f0
call fcn.00408c92
push 0xffffffffffffffff
push dword [0x41e968]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x41e96c]
cmp eax, edi
mov dword [0x41ea58], edi
je 0x40193f
cmp eax, 1
je 0x401933
cmp eax, 2
je 0x40192f
cmp eax, 3
je 0x40192b
cmp eax, 0x67
jle 0x401926
cmp eax, 0x6b
jle 0x4019a3
push eax
push 0x14
jmp 0x401976
push 0x12
jmp 0x401935
push 0x13
jmp 0x401935
push 0x11
push edi
call fcn.004095ee
pop ecx
pop ecx
jmp 0x4019a3
cmp dword [0x41ea60], edi
jne 0x4019a3
lea eax, [ebp + 8]
push eax
push dword [0x41e968]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
mov ecx, dword [ebp + 8]
je 0x401966
cmp ecx, edi
jne 0x401966
xor eax, eax
jmp 0x4019a8
mov eax, 0x80070000
mov edx, ecx
and edx, eax
cmp edx, eax
je 0x401979
push ecx
push 0x21
push edi
jmp 0x40199b
and ecx, 0xffff
cmp ecx, 0xe
jne 0x40198d
cmp dword [0x41e9c8], 0xffffffff
je 0x4019a3
push ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp + 8]
push 0x22
push 1
call fcn.004095ee
add esp, 0xc
mov eax, 0x80004005
pop edi
pop esi
leave
ret 8
Function at 0x401e7e
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
push 0
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x401ebf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, 0xb7
cmp eax, esi
je 0x401ea9
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
ret
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401ebf
test al, 0x10
jne 0x401ebf
push esi
jmp 0x401e9f
xor eax, eax
inc eax
pop esi
ret

Function at 0x4020d2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, dword [sym.imp.KERNEL32.dll_FindResourceExA]
mov ebx, eax
movzx eax, word [0x41e980]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call esi
mov edi, eax
test edi, edi
jne 0x402116
push 0x409
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call esi
mov edi, eax
test edi, edi
je 0x40213c
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x402127
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esi], eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40213c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
jmp 0x4021b6
cmp dword [0x41e990], 0
jne 0x4021b4
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.SetProcessPreferredUILanguages
mov ebx, str.kernel32
push ebx
mov dword [0x41e990], 1
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push 0
mov dword [ebp - 4], eax
movzx eax, word [0x41e980]
push 0x409
push 0
push eax
lea eax, [ebp - 0x44]
push str._04X_c_04X_c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
cmp dword [ebp - 4], 0
jne 0x4021a9
push str.SetThreadPreferredUILanguages
push ebx
call esi
push eax
call edi
test eax, eax
mov dword [ebp - 4], eax
je 0x4021b4
push 0
lea eax, [ebp - 0x44]
push eax
push 4
call dword [ebp - 4]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402490
Capabilities:
Get geographical location
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
push ebx
push esi
xor ebx, ebx
xor esi, esi
cmp dword [0x41e0b0], ebx
je 0x4024c3
mov eax, 0x41e0b0
mov ecx, dword [ebp + 8]
cmp dword [eax], ecx
je 0x4024c3
inc esi
mov eax, esi
shl eax, 4
lea eax, [eax + 0x41e0b0]
cmp dword [eax], ebx
jne 0x4024ac
shl esi, 4
cmp dword [esi + 0x41e0b0], ebx
jne 0x4024d8
mov eax, 0x41a584
jmp 0x40264a
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
push dword [ebp + 8]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x64]
push str.SfxString_d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push ebx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea eax, [ebp - 0x64]
push eax
call ebx
mov dword [ebp - 4], eax
call edi
test eax, eax
jne 0x402588
mov eax, dword [ebp - 4]
xor ecx, ecx
push 2
add eax, 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
mov ecx, dword [ebp - 4]
inc ecx
push ecx
push eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x64]
push eax
call ebx
cmp eax, dword [ebp - 4]
ja 0x40257f
call edi
test eax, eax
jne 0x40257f
mov eax, dword [esi + 0x41e0bc]
test eax, eax
je 0x402574
mov edi, dword [ebp - 8]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x402571
push dword [esi + 0x41e0bc]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov dword [esi + 0x41e0bc], edi
jmp 0x402587
push edi
jmp 0x402582
mov eax, dword [ebp - 8]
mov dword [esi + 0x41e0bc], eax
jmp 0x402588
push dword [ebp - 8]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esi + 0x41e0bc]
test eax, eax
jne 0x402649
mov ebx, dword [esi + 0x41e0b4]
lea edi, [esi + 0x41e0b8]
cmp dword [edi], eax
je 0x4025be
call fcn.0040243a
cmp eax, dword [0x41b41c]
jne 0x4025be
mov ebx, dword [edi]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
inc edi
xor ecx, ecx
push 2
pop edx
lea eax, [edi + 2]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
cmp dword [0x41e084], 0xffffffff
pop ecx
mov dword [esi + 0x41e0bc], eax
jne 0x402629
and dword [0x41e084], 0
push 0x1f
lea eax, [ebp - 0xa4]
push eax
movzx eax, word [0x41e980]
push 0x1004
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jle 0x402629
lea eax, [ebp - 0xa4]
push eax
call dword [sym.imp.MSVCRT.dll__wtol]
pop ecx
mov dword [0x41e084], eax
lea eax, [edi + 1]
push eax
push dword [esi + 0x41e0bc]
push edi
push ebx
push 0
push dword [0x41e084]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [esi + 0x41e0bc]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402757
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 8], ebx
mov dword [ebp - 4], ebx
mov byte [ebp - 0x10], bl
mov byte [ebp - 0xf], bl
mov byte [ebp - 0xe], bl
mov byte [ebp - 0xd], bl
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x4027b4
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 8]
pop ebx
leave
ret

Function at 0x4029fa
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
cmp dword [ebp + 8], 0
jne 0x402a0a
xor eax, eax
leave
ret
test byte [0x41e9c8], 2
mov dword [ebp - 0x40], 0x40
jne 0x402a5f
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x402a5f
mov ecx, dword [ebp - 0x2c]
xor eax, eax
cmp ecx, eax
ja 0x402a5f
jb 0x402a3b
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp + 8]
jae 0x402a5f
push 0x2b
call fcn.00402490
push eax
call fcn.00409581
cmp eax, 1
pop ecx
pop ecx
je 0x402a58
or dword [0x41e9c8], 0xffffffff
jmp 0x402a06
or dword [0x41e9c8], 2
xor eax, eax
inc eax
leave
ret

Function at 0x402e9c
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea ecx, [ebp - 0xc]
call fcn.004014eb
cmp dword [ebp - 4], 1
jg 0x402eba
push 1
lea ecx, [ebp - 0xc]
call fcn.004011b7
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
push 1
push dword [ebp - 0xc]
push eax
call esi
test eax, eax
jne 0x402ede
push dword [ebp - 0xc]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x402f15
push ebx
mov ebx, dword [edi]
inc eax
push eax
push eax
lea ecx, [ebp - 0xc]
call fcn.00402ad5
push eax
push ebx
call esi
mov esi, dword [ebp - 0xc]
push esi
call fcn.00401184
and word [esi + eax*2], 0
pop ecx
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
mov ecx, edi
call fcn.0040143c
push esi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
pop ebx
pop edi
pop esi
leave
ret
Function at 0x403211
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push ebx
push esi
push edi
push dword [ebp + 8]
lea ecx, [ebp - 0xc]
call fcn.00402a9c
push 0x41a688
lea ecx, [ebp - 0xc]
call fcn.00402aed
mov edi, dword [ebp - 0xc]
lea eax, [ebp - 0x25c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4032ed
push dword [ebp + 8]
lea ecx, [ebp - 0xc]
call fcn.00401403
push 0x5c
lea ecx, [ebp - 0xc]
call fcn.004017a8
lea eax, [ebp - 0x230]
push eax
lea ecx, [ebp - 0xc]
call fcn.00402aed
test byte [ebp - 0x25c], 0x10
mov edi, dword [ebp - 0xc]
je 0x4032bc
push 0x41a684
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x4032d0
push 0x41a67c
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x4032d0
push edi
call fcn.00403211
pop ecx
jmp 0x4032cc
push 0
push edi
call esi
test eax, eax
je 0x403310
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x403310
lea eax, [ebp - 0x25c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x403257
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0
push dword [ebp + 8]
call esi
test eax, eax
je 0x403310
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x403310
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
xor eax, eax
inc eax
jmp 0x403318
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
xor eax, eax
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40331e
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
cmp dword [0x41ea6c], 0
je 0x40332b
xor eax, eax
inc eax
ret
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x403341
xor eax, eax
inc eax
pop esi
ret
test al, 0x10
jne 0x40335f
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x40335b
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop esi
ret
xor eax, eax
pop esi
ret
push esi
call fcn.00403211
pop ecx
pop esi
ret

Function at 0x403415
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov ecx, edi
call fcn.004014eb
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, eax
test esi, esi
jle 0x403453
lea eax, [esi + 1]
push eax
push eax
mov ecx, edi
call fcn.00402ad5
push eax
push dword [esp + 0x18]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [edi]
and word [eax + esi*2], 0
mov dword [edi + 4], esi
mov eax, edi
pop edi
pop esi
ret
Function at 0x4035a8
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push 1
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
call edi
mov esi, dword [ebp + 8]
mov ecx, esi
mov ebx, eax
call fcn.004014eb
lea eax, [ebx + 2]
push eax
mov ecx, esi
mov dword [ebp + 8], eax
call fcn.00402ad5
inc ebx
push ebx
push dword [ebp + 8]
mov ecx, esi
call fcn.00402ad5
push eax
push dword [ebp + 0xc]
call edi
mov edi, dword [esi]
push edi
call fcn.00401184
and word [edi + eax*2], 0
pop ecx
mov dword [esi + 4], eax
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x40372c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x403749
xor eax, eax
jmp 0x4037a2
test al, 0x10
je 0x40375a
push 0x10
call dword [sym.imp.KERNEL32.dll_SetLastError]
or eax, 0xffffffff
jmp 0x4037a2
mov eax, dword [0x41e9cc]
test eax, eax
jne 0x40376c
push esi
call fcn.004036ff
pop ecx
jmp 0x4037a2
cmp eax, 2
jne 0x40379f
lea eax, [ebp - 0x250]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x403763
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp + 0xc]
lea eax, [ebp - 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jl 0x403763
xor eax, eax
inc eax
pop esi
leave
ret
Function at 0x403a96
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
lea ecx, [ebp - 0x18]
mov ebx, eax
mov dword [ebp - 4], eax
call fcn.00402a9c
xor esi, esi
cmp dword [ebp - 0x10], esi
jg 0x403ac7
push esi
lea ecx, [ebp - 0x18]
call fcn.004011b7
movzx eax, word [edi + ebx*2 - 2]
cmp ax, 0x5c
mov edi, dword [ebp - 0x18]
je 0x403adb
cmp ax, 0x2f
jne 0x403ae4
mov word [edi + ebx*2 - 2], si
dec ebx
mov dword [ebp - 4], ebx
mov esi, ebx
jmp 0x403b0a
movzx eax, word [edi + esi*2]
cmp ax, 0x2f
je 0x403afd
cmp ax, 0x5c
je 0x403afd
dec esi
test esi, esi
jg 0x403ae8
test esi, esi
je 0x403bb9
and word [edi + esi*2], 0
push edi
call fcn.00401e7e
test eax, eax
pop ecx
je 0x403af9
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x403b41
lea eax, [ebp - 0xc]
push eax
push edi
call fcn.0040372c
test eax, eax
pop ecx
pop ecx
je 0x403b41
xor esi, esi
jmp 0x403bde
push edi
call fcn.00401e7e
test eax, eax
pop ecx
jne 0x403b5b
push edi
push 0xc
push 1
call fcn.004095ee
add esp, 0xc
jmp 0x403b3a
cmp esi, ebx
jge 0x403bad
mov eax, dword [ebp - 4]
sub eax, esi
inc eax
push eax
mov eax, dword [ebp + 8]
lea eax, [eax + esi*2]
push eax
lea ebx, [edi + esi*2]
push ebx
call sub.MSVCRT.dll_memcpy
xor ecx, ecx
add esp, 0xc
cmp word [ebx], cx
je 0x403b93
jmp 0x403b92
movzx eax, word [edi + esi*2]
cmp ax, 0x5c
je 0x403b99
cmp ax, 0x2f
je 0x403b99
inc esi
cmp word [edi + esi*2], cx
jne 0x403b82
push edi
mov word [edi + esi*2], cx
call fcn.00401e7e
test eax, eax
pop ecx
je 0x403b4c
cmp esi, dword [ebp - 4]
jl 0x403b5f
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
xor eax, eax
pop ecx
inc eax
jmp 0x403bfe
cmp ebx, 2
mov ecx, dword [ebp + 8]
jne 0x403be9
mov ax, word [ecx]
or ax, 0x20
cmp ax, 0x61
jb 0x403be9
cmp ax, 0x7a
ja 0x403be9
cmp word [ecx + 2], 0x3a
jne 0x403be9
xor esi, esi
inc esi
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, esi
jmp 0x403bfe
push ecx
push 0xc
push 1
call fcn.004095ee
push edi
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret