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

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x101b340b
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x101b340b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x101b340b
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x101b340b
cmp dword [ecx + 0x74], 0xe
jbe 0x101b340b
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x101b77b0
Capabilities:
Parse pe header

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

Function at 0x101b7b00
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x101c8d40
push 0x101c8d38
push str.FlsAlloc
push 0x1f
call fcn.101b7de3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x101b7b34
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x101b7b3a
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x101b7b7e
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x101c8d50
push 0x101c8d48
push str.FlsGetValue
push 0x21
call fcn.101b7de3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x101b7bb5
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x101b7bbd
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x101c8d58
push 0x101c8d50
push str.FlsSetValue
push 0x22
call fcn.101b7de3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x101b7bf7
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x101bbfa0
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x101bc03d
push ebx
push esi
call fcn.101bc040
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.101bbea4
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x101bbfea
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x101bc03c
push edi
push eax
call fcn.101b9ad2
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x101bc00a
call fcn.101b8fad
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x101bc03b
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.101bbea4
add esp, 0x20
test eax, eax
jne 0x101bc029
push edi
call fcn.101b8fad
jmp 0x101bc031
push ebx
call fcn.101b8fad
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x10001ea0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xe0
mov edi, dword [0x10007094]
mov esi, dword [ebp + 8]
test edi, edi
je 0x10002060
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call dword [0x10007094]
movzx eax, al
bt eax, esi
jae 0x100020c0
mov ecx, dword [0x10007084]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], ecx
je 0x10001f65
test byte [0x10003030], 8
jne 0x10002000
lea ebx, [ebp - 0xd4]
mov edi, ebx
test byte [0x10003040], 8
jne 0x10001fb0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], str._04x:
mov dword [esp], edi
mov dword [esp + 8], eax
call sym._sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x10001f34
cmp esi, 3
jbe 0x10001f70
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.ucrtbase.dll_strlen]
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0xe0
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 8], str._s:_s:_s
mov dword [esp], eax
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0xc]
lea edx, [edi + 1]
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + 0x100051f0]
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym._snprintf.constprop.0
jmp 0x10001f34
mov ecx, dword [0x10007094]
test ecx, ecx
je 0x100020a0
mov dword [esp], 0x10003040
call dword [0x10007094]
test al, 8
je 0x10001f0b
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [esp], edi
mov dword [esp + 4], str._04x:
mov dword [esp + 8], eax
call sym._sprintf
add edi, eax
jmp 0x10001f0b
mov ebx, dword [0x10007094]
test ebx, ebx
je 0x10002080
mov dword [esp], 0x10003030
call dword [0x10007094]
test al, 8
je 0x10001ef6
call dword [sym.imp.kernel32.dll_GetTickCount]
lea ebx, [ebp - 0xd4]
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mov eax, 0x10624dd3
mov dword [esp], ebx
mul ecx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, eax
mov dword [esp + 0xc], ecx
call sym._sprintf
lea edi, [ebx + eax]
jmp 0x10001efe
mov ecx, sym._fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x10007094
call sym._load_func.part.0
jmp 0x10001ebd
mov ecx, sym._fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x10007094
call sym._load_func.part.0
jmp 0x1000200a
mov ecx, sym._fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x10007094
call sym._load_func.part.0
jmp 0x10001fbe
mov eax, 0xffffffff
jmp 0x10001f65
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
je 0x432072
nop
nop
nop
mov ebx, 0x40c7d0
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x58630bec
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x432060
nop
nop
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
je 0x4320d2
nop
nop
nop
nop
mov ebx, 0x42f314
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x37190a18
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
loop 0x4320c0
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x40f3ca
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x40f3d9
pop dword [ebp - 0x48]
mov eax, 0x4fc1a912
sub eax, 0x4f80b539
sub dword [ebp - 0x48], eax
push 0x40
push 0x1000
push 0x40211
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x48]
call dword [eax]
mov ecx, 0x511d
xor esi, esi
add esi, eax
mov edx, 0x4ccf65be
add edx, 0xb373ee42
add edx, dword [ebp - 0x48]
mov edi, 0x62884cfa
add edi, 0xa653157b
xor dword [ebp - 0x20], esi
mov ebx, dword [edx]
xor ebx, edi
add dword [ebp - 0x34], eax
mov dword [esi], ebx
mov dword [ebp - 0x18], 0x79d82176
add esi, 4
add edx, 0x40157416
sub edx, 0x40157412
loop 0x40f42f
add eax, 0xcd000a1f
sub eax, 0xccfed2d8
mov ebx, eax
add eax, 0x482c3b2a
add eax, 0xb7d3c4db
mov ecx, 0x400000
add ecx, dword [ebp - 0x48]
call ebx
leave
ret
Function at 0x4031f4
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404770
test esi, esi
jne 0x40322a
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404860
jmp 0x403248
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004030f8
mov edi, eax
test esi, esi
je 0x403248
cmp dword [ebx], 0
je 0x403248
dec esi
jmp 0x403231
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403878
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x437024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403910
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4038f0
xor eax, eax
push ebp
push 0x4038e9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x40392c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4038f0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x437024]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x437024], ax
mov esp, ebp
pop ebp
ret

Function at 0x4045d4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x43904c], 0
je 0x404635
cmp word [0x439220], 0xd7b2
jne 0x4045fd
cmp dword [0x439228], 0
jbe 0x4045fd
mov eax, 0x43921c
call dword [0x439238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40465c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x437030], 0
jne 0x404651
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4080bc
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x40810e
test eax, edx
je 0x408111
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x4080d1
movzx eax, byte [eax]
sub eax, ecx
ret
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x4080f7
add ecx, 4
js 0x4080e7
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x4080f4
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x40811d
test edx, edx
jne 0x4080c4
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00404bdc
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x408922
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x408943
cmp ebx, 3
je 0x408943
cmp ebx, 0x7b
je 0x408943
mov eax, esi
call fcn.004088c4
test al, al
jne 0x408947
xor eax, eax
jmp 0x408949
mov al, 1
pop esi
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404bdc
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x408965
test al, 0x10
jne 0x408969
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x408a68
Capabilities:
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404bdc
push eax
call sub.kernel32.dll_GetFileAttributesA
pop ebx
ret

Function at 0x408a7c
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.00404bdc
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x408a9e
call sub.kernel32.dll_GetLastError
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x40b8b4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40b8ed
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404860
jmp 0x40b8f6
mov eax, ebx
mov edx, esi
call fcn.004047c4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b900
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40b922
movzx eax, byte [esp]
jmp 0x40b924
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40bfb4
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40be2c
mov eax, dword [0x4385f4]
cmp byte [eax], 0
je 0x40c030
mov eax, dword [0x438434]
call fcn.00403310
call fcn.00402f64
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00408f5c
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40c078
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c066
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4383f8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x43b7f8]
call fcn.00405d54
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x41bb2c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffec
mov esi, edx
lea edi, [esp + 8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ebx, dword [esp + 8]
test ebx, ebx
je 0x41bb88
push esp
push 0x40
push 6
push ebx
call sub.kernel32.dll_VirtualProtect
test eax, eax
jne 0x41bb57
call fcn.0040d630
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
mov ecx, 6
call fcn.00402ff8
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 4]
push eax
push 6
mov eax, dword [esp + 0x14]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
jne 0x41bb88
call fcn.0040d630
add esp, 0x14
pop edi
pop esi
pop ebx
ret

Function at 0x41fedc
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x41ff82
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, edi
call fcn.00404770
push 0
mov eax, dword [ebp - 4]
push eax
mov eax, esi
call fcn.00404bdc
push eax
call sub.kernel32.dll_ExpandEnvironmentStringsA
mov ebx, eax
test ebx, ebx
jle 0x41ff66
inc ebx
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x41feb4]
call fcn.00405c74
add esp, 4
push ebx
mov eax, dword [ebp - 4]
push eax
mov eax, esi
call fcn.00404bdc
push eax
call sub.kernel32.dll_ExpandEnvironmentStringsA
test eax, eax
je 0x41ff4e
mov eax, edi
mov edx, dword [ebp - 4]
call fcn.00404968
push 0
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x41feb4]
call fcn.00405c74
add esp, 4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41ff89
lea eax, [ebp - 4]
mov edx, dword [0x41feb4]
call fcn.00405c80
ret
Function at 0x42042c
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
add esp, 0xfffffdf8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404770
push esp
push 0
push 0
push esi
push 0
call sub.SHFolder.dll_SHGetFolderPathA
test eax, 0x80000000
sete al
test al, al
je 0x420494
mov edx, ebx
mov eax, esp
call fcn.004090dc
cmp dword [ebx], 0
je 0x420494
mov eax, dword [ebx]
mov dword [esp + 0x204], eax
mov eax, dword [esp + 0x204]
test eax, eax
je 0x42047f
sub eax, 4
mov eax, dword [eax]
mov edx, dword [ebx]
cmp byte [edx + eax - 1], 0x5c
je 0x420494
mov eax, ebx
mov edx, 0x4204a8
call fcn.00404a18
add esp, 0x208
pop esi
pop ebx
ret

Function at 0x420a58
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
xor edx, edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x420ba9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x438350]
cmp byte [eax], 9
jb 0x420b23
lea eax, [ebp - 4]
mov edx, 0x104
call fcn.00404e6c
xor edx, edx
push ebp
push 0x420b1c
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
call fcn.00404bdc
push eax
push 0
push 0
push 0x23
push 0
call sub.SHFolder.dll_SHGetFolderPathA
test eax, eax
jne 0x420b04
mov eax, dword [ebp - 4]
call fcn.00404bdc
mov edx, dword [ebp - 8]
call fcn.004090dc
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x420ade
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x420afa
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.0040ccb8
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
call fcn.004047c4
call fcn.0040422c
jmp 0x420b8b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x420b23
lea eax, [ebp - 4]
xor edx, edx
call fcn.00404e6c
ret
mov eax, dword [ebp - 8]
push eax
mov eax, dword [0x438444]
mov eax, dword [eax]
mov ecx, 0x420bbc
mov edx, 0x420bd4
call fcn.0041e930
test al, al
je 0x420b8b
mov edx, dword [ebp - 8]
mov edx, dword [edx]
mov eax, edx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x420b57
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x420b8b
mov eax, dword [ebp - 8]
mov eax, edx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x420b6f
sub eax, 4
mov eax, dword [eax]
mov edx, dword [ebp - 8]
mov edx, dword [edx]
cmp byte [edx + eax - 1], 0x5c
je 0x420b8b
mov eax, dword [ebp - 8]
mov edx, 0x420c20
call fcn.00404a18
mov eax, dword [ebp - 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x420bb0
lea eax, [ebp - 0x10]
call fcn.00404770
lea eax, [ebp - 4]
call fcn.00404770
ret
Function at 0x420c24
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x420d8e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x438350]
cmp byte [eax], 9
jb 0x420ceb
lea eax, [ebp - 4]
mov edx, 0x104
call fcn.00404e6c
xor edx, edx
push ebp
push 0x420ce4
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
call fcn.00404bdc
push eax
push 0
push 0
push 0x1a
push 0
call sub.SHFolder.dll_SHGetFolderPathA
test eax, eax
jne 0x420ccc
mov eax, dword [ebp - 4]
call fcn.00404bdc
mov edx, dword [ebp - 8]
call fcn.004090dc
mov eax, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x420ca6
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x420cc2
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.0040ccb8
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
call fcn.004047c4
call fcn.0040422c
jmp 0x420d6b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x420ceb
lea eax, [ebp - 4]
xor edx, edx
call fcn.00404e6c
ret
mov eax, dword [ebp - 8]
push eax
mov eax, dword [0x4384c4]
mov eax, dword [eax]
mov ecx, 0x420da4
mov edx, 0x420db4
call fcn.0041e930
test al, al
je 0x420d6b
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 8]
mov eax, dword [eax]
call fcn.0041ff98
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.004047c4
mov edx, dword [ebp - 8]
mov edx, dword [edx]
mov eax, edx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x420d37
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x420d6b
mov eax, dword [ebp - 8]
mov eax, edx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x420d4f
sub eax, 4
mov eax, dword [eax]
mov edx, dword [ebp - 8]
mov edx, dword [edx]
cmp byte [edx + eax - 1], 0x5c
je 0x420d6b
mov eax, dword [ebp - 8]
mov edx, 0x420e00
call fcn.00404a18
mov eax, dword [ebp - 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x420d95
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00404794
lea eax, [ebp - 4]
call fcn.00404770
ret

Function at 0x42242c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, dword [ebp + 8]
call fcn.00404bcc
xor eax, eax
push ebp
push 0x422490
push dword fs:[eax]
mov dword fs:[eax], esp
push 5
mov eax, dword [ebp + 8]
call fcn.00404bdc
push eax
mov eax, esi
call fcn.00404bdc
push eax
mov eax, ebx
call fcn.00404bdc
push eax
push 0x4224a0
push edi
call sub.shell32.dll_ShellExecuteA
cmp eax, 0x20
seta bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x422497
lea eax, [ebp + 8]
call fcn.00404770
ret
Function at 0x4289fc
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov word [ebp - 2], cx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x428ad6
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x18]
mov edx, esi
call fcn.00404968
mov edx, dword [ebp - 0x18]
mov eax, dword [0x43e0e4]
call fcn.00427ebc
test al, al
je 0x428a42
mov ebx, 1
jmp 0x428ac0
push 0
push 0x8000080
push 3
push 0
push 1
push 0xc0000000
push esi
call sub.kernel32.dll_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x428a6f
call sub.kernel32.dll_GetLastError
mov edx, dword [ebp + 8]
mov dword [edx], eax
xor ebx, ebx
jmp 0x428ac0
lea eax, [ebp - 0xc]
push eax
movzx eax, word [ebp - 2]
push eax
push edi
call sub.kernel32.dll_DosDateTimeToFileTime
test eax, eax
je 0x428aa3
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
call sub.kernel32.dll_LocalFileTimeToFileTime
test eax, eax
je 0x428aa3
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push ebx
call sub.kernel32.dll_SetFileTime
push ebx
call sub.kernel32.dll_CloseHandle
movzx eax, word [ebp + 0xc]
and ax, 0x27
movzx eax, ax
push eax
push esi
call sub.kernel32.dll_SetFileAttributesA
mov ebx, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x428add
lea eax, [ebp - 0x18]
call fcn.00404770
ret

Function at 0x428ae8
Capabilities:
Delete file
Get common file path

Disassembly:
push ebx
push esi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
push esp
push 0x104
call sub.kernel32.dll_GetTempPathA
test eax, eax
je 0x428b30
lea eax, [esp + 0x105]
push eax
push 0
push 0x428b68
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetTempFileNameA
test eax, eax
je 0x428b30
lea eax, [esp + 0x105]
call fcn.00408f5c
cmp ebx, eax
jg 0x428b34
xor eax, eax
jmp 0x428b36
mov al, 1
mov ebx, eax
test bl, bl
je 0x428b50
lea edx, [esp + 0x105]
mov eax, esi
call fcn.00408f9c
push esi
call sub.kernel32.dll_DeleteFileA
movzx eax, bl
mov edx, dword [0x4383cc]
mov eax, dword [edx + eax*4]
add esp, 0x20c
pop esi
pop ebx
ret