joyce8/EMBER2024-capa huggingface dataset:
Function at 0x437f04
Capabilities:
Create process on windows

Disassembly:
push 0x8cc
mov eax, 0x46e952
call fcn.00443729
mov esi, ecx
xor eax, eax
push 0x7fe
mov word [ebp - 0x810], ax
xor edi, edi
lea eax, [ebp - 0x80e]
push edi
push eax
call fcn.00442700
add esp, 0xc
lea eax, [ebp - 0x810]
push 0x400
push eax
push 0x485198
push str.ClickOncePackage
push str.Startup
lea ecx, [esi + 0x10]
call fcn.0040d6e9
cmp word [ebp - 0x810], di
jne 0x437f68
xor eax, eax
jmp 0x4380c5
lea eax, [ebp - 0x870]
push eax
mov ecx, esi
call fcn.004360bb
mov dword [ebp - 4], edi
add eax, 4
cmp dword [eax + 0x14], 8
jb 0x437f84
mov eax, dword [eax]
xor esi, esi
inc esi
push esi
lea ecx, [ebp - 0x8d1]
push ecx
push eax
lea ecx, [ebp - 0x840]
call fcn.004025e0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x870]
call fcn.00401580
push esi
lea eax, [ebp - 0x8d1]
push eax
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x870]
call fcn.004025e0
mov byte [ebp - 4], 4
push edi
push edi
lea eax, [ebp - 0x8d0]
push eax
lea ecx, [ebp - 0x840]
call fcn.00402d40
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x870]
push ecx
lea ecx, [ebp - 0x8a0]
push ecx
mov ecx, eax
call fcn.004026d0
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x840]
call fcn.00402520
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x8a0]
call fcn.00401580
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x8d0]
call fcn.00401580
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x870]
call fcn.00401580
cmp dword [ebp - 0x828], 8
push 4
lea eax, [ebp - 0x83c]
cmovae eax, dword [ebp - 0x83c]
sub esp, 0x30
mov ecx, esp
mov dword [ebp - 0x8d8], esp
push esi
lea edx, [ebp - 0x8d1]
push edx
push eax
call fcn.0040ca90
mov byte [ebp - 4], 0xa
mov byte [ebp - 4], 2
call fcn.00456412
add esp, 0x34
test al, al
jne 0x438087
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x83c]
call fcn.00405190
cmp dword [ebp - 0x828], 8
push esi
push edi
push edi
lea eax, [ebp - 0x83c]
cmovae eax, dword [ebp - 0x83c]
push eax
push str.open
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0x20
pop ecx
cmp ecx, eax
sbb esi, esi
neg esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x840]
call fcn.00401580
mov eax, esi
call fcn.004436d8
ret
Function at 0x439a5b
Capabilities:
Get file size

Disassembly:
push 0x88
mov eax, 0x46ee42
call fcn.00443729
mov edi, ecx
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp dword [edi + 4], ebx
je 0x439ac2
test eax, eax
je 0x439a7c
mov dword [eax], ebx
mov ecx, dword [edi + 4]
mov eax, dword [ecx]
call dword [eax + 0x18]
mov esi, eax
cmp esi, 0xffffffff
jne 0x439b13
push 1
lea eax, [edi + 0xc]
push eax
lea ecx, [ebp - 0x40]
call fcn.004346ea
mov dword [ebp - 4], ebx
push 1
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x94]
call fcn.00434674
push 0x497a1c
lea eax, [ebp - 0x94]
push eax
call fcn.00443669
push eax
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x439b13
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
je 0x439b13
push 1
lea ecx, [edi + 0xc]
push ecx
lea ecx, [ebp - 0x40]
call fcn.004346ea
mov dword [ebp - 4], 2
push 1
push ebx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x90]
call fcn.00434523
push 0x4979a8
lea eax, [ebp - 0x90]
jmp 0x439abc
mov eax, esi
call fcn.004436d8
ret 4
Function at 0x439f56
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 8
mov eax, 0x46f209
call fcn.004436f6
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0x16
xor ebx, ebx
cmp dword [esi + 0x78], ebx
je 0x439f81
push dword [esi + 0x78]
call fcn.004607f0
pop ecx
mov dword [esi + 0x78], ebx
push dword [esi + 0x74]
call fcn.0044246e
pop ecx
mov dword [esi + 0x74], ebx
mov byte [ebp - 4], 0x15
lea ecx, [esi + 0x3e4]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 0x15
call fcn.00401580
mov byte [ebp - 4], 0x14
lea ecx, [esi + 0x3b4]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 0x14
call fcn.00401580
mov byte [ebp - 4], 0x13
lea ecx, [esi + 0x384]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 0x13
call fcn.00401580
mov byte [ebp - 4], 0x12
lea ecx, [esi + 0x354]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 0x12
call fcn.00401580
mov byte [ebp - 4], 0x11
lea ecx, [esi + 0x324]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 0x11
call fcn.00401580
mov byte [ebp - 4], 0x10
lea ecx, [esi + 0x2f4]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 0x10
call fcn.00401580
mov byte [ebp - 4], 0xf
lea ecx, [esi + 0x2c4]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 0xf
call fcn.00401580
mov byte [ebp - 4], 0xe
lea ecx, [esi + 0x294]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 0xe
call fcn.00401580
mov byte [ebp - 4], 0xd
lea ecx, [esi + 0x264]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 0xd
call fcn.00401580
mov byte [ebp - 4], 0xc
lea ecx, [esi + 0x234]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 0xc
call fcn.00401580
mov byte [ebp - 4], 0xb
lea ecx, [esi + 0x204]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 0xb
call fcn.00401580
mov byte [ebp - 4], 0xa
lea ecx, [esi + 0x1d4]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 0xa
call fcn.00401580
mov byte [ebp - 4], 9
lea ecx, [esi + 0x1a4]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 9
call fcn.00401580
mov byte [ebp - 4], 8
lea ecx, [esi + 0x174]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 8
call fcn.00401580
mov byte [ebp - 4], 7
lea ecx, [esi + 0x144]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 7
call fcn.00401580
mov byte [ebp - 4], 6
lea ecx, [esi + 0x114]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 6
call fcn.00401580
mov byte [ebp - 4], 5
lea ecx, [esi + 0xe4]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 5
call fcn.00401580
mov byte [ebp - 4], 4
lea ecx, [esi + 0xb4]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 4
call fcn.00401580
mov byte [ebp - 4], 3
lea ecx, [esi + 0x84]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 3
call fcn.00401580
mov byte [ebp - 4], 2
lea ecx, [esi + 0x68]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 2
call fcn.00439f03
mov byte [ebp - 4], 1
lea ecx, [esi + 0x60]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 1
call fcn.00439f03
mov byte [ebp - 4], bl
lea ecx, [esi + 0x58]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], bl
call fcn.00439f03
or dword [ebp - 4], 0xffffffff
lea ecx, [esi + 0x30]
call fcn.0042c6d8
call fcn.004436c4
ret
Function at 0x43df07
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
cmp byte [ebp + 8], 0
je 0x43df25
mov ecx, esi
call fcn.0043dd5f
pop esi
pop ebp
ret 4
Function at 0x43e9b8
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
add esi, 4
cmp dword [esi + 0x14], 8
jb 0x43e9cc
mov eax, dword [esi]
jmp 0x43e9ce
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x43e9f5
test al, 0x10
jne 0x43e9f5
test al, 1
je 0x43e9f5
cmp dword [esi + 0x14], 8
jb 0x43e9ea
mov esi, dword [esi]
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
pop esi
pop ebp
ret 4

Function at 0x43eb94
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push 0x58
mov eax, 0x470487
call fcn.00443729
mov edi, ecx
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
and dword [ebp - 0x54], 0
mov ebx, dword [edx + 0x38]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x58], eax
mov eax, dword [edx + 0x30]
shr eax, 2
and eax, 0xffffff01
test byte [edx + 0x30], 6
mov dword [ebp - 0x64], edx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x60], eax
mov byte [ebp - 0x41], 0
je 0x43ebdd
mov byte [ebp - 0x41], 1
lea eax, [ecx + 4]
cmp dword [eax + 0x14], 8
jb 0x43ebe8
mov eax, dword [eax]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x43ec18
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x44], eax
xor eax, eax
jmp 0x43ecee
mov eax, 0x400
mov edi, eax
cmp ebx, eax
cmovb edi, ebx
push edi
call fcn.0044237d
pop ecx
push 0
lea ecx, [ebp - 0x48]
push ecx
push edi
mov dword [ebp - 0x4c], eax
push eax
jmp 0x43ecca
cmp byte [ebp - 0x60], 0
je 0x43ec79
cmp byte [ebp - 0x41], 0
je 0x43ec79
mov ecx, dword [ebp - 0x64]
lea eax, [ebp - 0x40]
push eax
call fcn.0042660a
and dword [ebp - 4], 0
mov ecx, eax
call fcn.0040bf1d
push eax
push dword [ebp - 0x48]
push dword [ebp - 0x4c]
call fcn.0040bd14
add esp, 0xc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00401580
push 0
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x48]
push dword [ebp - 0x4c]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x48]
mov edx, dword [ebp - 0x58]
add ecx, eax
mov dword [ebp - 0x54], ecx
test edx, edx
je 0x43ecaf
push dword [ebp - 0x5c]
mov eax, dword [edx]
push ecx
mov ecx, edx
call dword [eax]
test al, al
jne 0x43ecf6
mov eax, dword [ebp - 0x48]
sub ebx, eax
je 0x43ecdb
test eax, eax
je 0x43ecdb
push 0
cmp ebx, 0x400
lea eax, [ebp - 0x48]
push eax
cmovb edi, ebx
push edi
push dword [ebp - 0x4c]
push dword [ebp - 0x50]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x43ec3b
xor edi, edi
inc edi
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
call fcn.004436d8
ret 0x10
xor edi, edi
jmp 0x43ecde
Function at 0x43eea2
Capabilities:
Get system information on windows
Read file via mapping

Disassembly:
push 0x4c
mov eax, 0x4704b4
call fcn.004436f6
xor esi, esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], esi
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebx + 0xa8]
mov dword [ebp + 0x10], edi
test edi, edi
je 0x43efe4
push 0x1c
pop eax
push eax
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
mov ecx, esi
cmovne ecx, dword [ebp - 0x28]
push ebx
push str..debug
mov dword [ebp - 0x18], ecx
call fcn.0043f11e
pop ecx
pop ecx
test eax, eax
je 0x43ef15
cmp dword [eax + 0xc], edi
jne 0x43ef15
mov ecx, dword [eax + 0x14]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebx + 0xac]
mov dword [ebp + 0x10], ecx
add edi, ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x14], ebx
jmp 0x43ef77
push ebx
push str..rdata
call fcn.0043f11e
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x43ef3f
push ebx
push str..text
call fcn.0043f11e
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x43efe4
mov eax, dword [ebx + 0xac]
push 0x1c
xor edx, edx
pop ecx
mov dword [ebp - 0x14], eax
div ecx
mov ebx, eax
test ebx, ebx
je 0x43efe4
mov ecx, dword [edi + 0x10]
add ecx, dword [edi + 0xc]
mov edx, dword [ebp + 0x10]
cmp edx, ecx
ja 0x43efe4
sub edx, dword [edi + 0xc]
mov eax, dword [edi + 0x14]
mov ecx, dword [ebp + 0xc]
add eax, edx
mov dword [ebp + 0x10], eax
lea edi, [eax + ecx]
mov eax, edi
sub eax, ecx
cmp eax, dword [ebp - 0x18]
jbe 0x43efc9
cmp dword [ebp + 8], 0
je 0x43efc9
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp + 0x10]
xor edx, edx
div dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x14]
imul eax, dword [ebp - 0x3c]
add ecx, edx
push ecx
push eax
push esi
push 4
push dword [ebp + 8]
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
je 0x43efe4
lea ecx, [ebp - 0x10]
call fcn.0043fa1d
mov dword [ebp - 0x10], edi
sub edi, dword [ebp - 0x18]
add edi, dword [ebp + 0x10]
test ebx, ebx
je 0x43efe4
add edi, 0x10
mov eax, dword [edi + 8]
add eax, dword [edi]
cmp eax, dword [ebp + 0x14]
jbe 0x43efdc
add esi, dword [edi]
push 0x1c
pop eax
add edi, eax
dec ebx
jne 0x43efd0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0043fa1d
mov eax, esi
call fcn.004436c4
ret
Function at 0x43f599
Capabilities:
Get system information on windows
Parse pe header
Read file via mapping

Disassembly:
push 0x3c
mov eax, 0x4705d4
call fcn.004436f6
xor ebx, ebx
mov edi, ebx
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], 1
mov dword [ebp - 0x10], ebx
mov byte [ebp - 4], 2
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
test esi, esi
je 0x43f5f2
lea ecx, [ebp - 0x18]
call fcn.00403440
mov edi, esi
mov dword [ebp - 0x18], edi
cmp esi, 0xffffffff
je 0x43f714
push ebx
push ebx
push ebx
push 2
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebx, eax
mov dword [ebp - 0x1c], ebx
test ebx, ebx
je 0x43f714
lea ecx, [ebp - 0x14]
call fcn.00403440
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
push eax
push 0
push 0
push 4
push ebx
mov dword [ebp - 0x20], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
je 0x43f714
lea ecx, [ebp - 0x10]
call fcn.0043fa1d
mov eax, 0x5a4d
mov dword [ebp - 0x10], esi
cmp word [esi], ax
jne 0x43f6da
mov ebx, dword [esi + 0x3c]
push 0xf8
add ebx, esi
push ebx
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x43f6d3
cmp dword [ebx], 0x4550
jne 0x43f6d3
mov eax, dword [ebx + 0x54]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x20], eax
jae 0x43f6dd
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 0x24]
push 0
push 0
push 4
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
cmp esi, ebx
je 0x43f6ac
lea ecx, [ebp - 0x10]
call fcn.0043fa1d
mov esi, ebx
mov dword [ebp - 0x10], esi
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x43f6d3
mov ebx, dword [esi + 0x3c]
push 0xf8
add ebx, esi
push ebx
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x43f6d3
cmp dword [ebx], 0x4550
je 0x43f6dd
mov esi, 0xc1
jmp 0x43f71c
mov ebx, dword [ebp - 0x24]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x43f6ea
and dword [ebp - 0x10], 0
mov dword [eax], esi
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x43f6f7
and dword [ebp - 0x18], 0
mov dword [eax], edi
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x43f707
mov ecx, dword [ebp - 0x1c]
and dword [ebp - 0x14], 0
mov dword [eax], ecx
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x43f710
mov dword [eax], ebx
xor esi, esi
jmp 0x43f71c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.0043fa1d
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00403440
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00403440
mov eax, esi
call fcn.004436c4
ret
Function at 0x43fa82
Capabilities:
Delete file
Get common file path

Disassembly:
push 0x70c
mov eax, 0x47071b
call fcn.00443729
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x714], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x718], eax
xor eax, eax
mov esi, 0x206
push esi
mov word [ebp - 0x628], ax
xor ebx, ebx
lea eax, [ebp - 0x626]
push ebx
push eax
call fcn.00442700
add esp, 0xc
lea eax, [ebp - 0x628]
push 0x104
push eax
push dword [0x4a5ff8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x628]
push eax
lea ecx, [ebp - 0x70c]
call fcn.0043e575
mov dword [ebp - 4], ebx
xor eax, eax
push esi
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push ebx
push eax
call fcn.00442700
cmp dword [0x4a5ef0], 8
mov esi, 0x4a5edc
mov eax, esi
cmovae eax, dword [0x4a5edc]
push eax
lea eax, [ebp - 0x70c]
push eax
call fcn.00440852
add esp, 0x14
test eax, eax
je 0x43fbea
xor eax, eax
push 0x206
mov word [ebp - 0x420], ax
xor esi, esi
lea eax, [ebp - 0x41e]
push esi
push eax
inc ebx
call fcn.00442700
add esp, 0xc
lea eax, [ebp - 0x420]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x218]
push eax
push esi
push 0x47e81c
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push ebx
lea eax, [ebp - 0x70d]
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x678]
call fcn.0040ca90
mov byte [ebp - 4], bl
lea eax, [ebp - 0x6a8]
push eax
mov ecx, 0x4a5ed8
call fcn.00414ef2
mov byte [ebp - 4], 2
push esi
lea ecx, [ebp - 0x678]
push ecx
push eax
lea ecx, [ebp - 0x70c]
call fcn.0043ecfa
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x6a8]
call fcn.00401580
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x678]
call fcn.00401580
jmp 0x43fc3e
cmp word [0x4a5648], 0
je 0x43fc08
push 0x4a5648
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x43fc3e
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x628]
push eax
call fcn.004408e6
cmp dword [0x4a5ef0], 8
lea eax, [ebp - 0x218]
cmovae esi, dword [0x4a5edc]
push esi
push eax
push eax
call fcn.00440590
lea ecx, [ebp - 0x648]
call fcn.0040c6fc
mov byte [ebp - 4], 6
cmp word [ebp - 0x218], 0
jne 0x43fc5b
xor eax, eax
jmp 0x43fc68
lea eax, [ebp - 0x218]
push eax
call fcn.00416f8b
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x640]
call fcn.0040eed3
lea ecx, [ebp - 0x648]
call fcn.0041b17f
lea ecx, [ebp - 0x648]
call fcn.0040db15
push dword [ebp + 0x14]
lea ecx, [ebp - 0x648]
push dword [ebp - 0x718]
push 0x485198
push dword [ebp - 0x714]
push edi
call fcn.0040d6e9
test bl, bl
je 0x43fcc2
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x648]
call fcn.0040cc7f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70c]
call fcn.0043e89d
call fcn.004436d8
ret
Function at 0x4406c6
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
push dword [ebp + 8]
mov dword [ebp - 4], 1
call esi
push 2
pop edx
xor ecx, ecx
add eax, edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0044237d
pop ecx
push dword [ebp + 8]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x477aa0
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push ebx
mov edi, ebx
call esi
xor esi, esi
mov dword [ebp + 8], eax
test eax, eax
je 0x440759
push 0x5c
pop ecx
cmp word [edi], cx
jne 0x44074b
xor eax, eax
push eax
push ebx
mov word [edi], ax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x440742
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x440755
mov eax, dword [ebp + 8]
push 0x5c
pop ecx
mov word [edi], cx
add edi, 2
inc esi
cmp esi, eax
jb 0x44071f
jmp 0x440759
and dword [ebp - 4], 0
push ebx
call fcn.00443664
mov eax, dword [ebp - 4]
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4407ac
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x49e850]
xor eax, ebp
mov dword [ebp - 4], eax
push dword [0x49e7c8]
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x804]
push eax
call fcn.00440590
xor eax, eax
push eax
push 0x80
push 2
push eax
push eax
push 0xc0000000
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x4407fc
xor eax, eax
jmp 0x440813
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004426e3
leave
ret

Function at 0x440b85
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x49e850]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
cmp dword [0x4a68f0], esi
jne 0x440bab
mov eax, dword [0x49e7cc]
cmp eax, 0xffffffff
jne 0x440bfd
push 0x14
lea eax, [ebp - 0x2c]
push eax
push 0x1004
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jle 0x440bf8
lea eax, [ebp - 0x2c]
push eax
call fcn.00444faf
pop ecx
push 2
lea ecx, [ebp - 0x4c]
push ecx
push eax
call dword [sym.imp.GDI32.dll_TranslateCharsetInfo]
test eax, eax
je 0x440be7
movsx eax, word [ebp - 0x4c]
mov dword [0x49e7cc], eax
jmp 0x440bfd
push 1
push esi
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x440bf8
xor eax, eax
jmp 0x440bfd
mov eax, dword [0x49e7cc]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004426e3
leave
ret
Function at 0x441022
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
mov eax, dword [0x49e850]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
and dword [ebp - 0x24c], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push edi
mov edi, dword [ebp + 0x10]
push 0x485198
push eax
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x248], edi
call esi
push 0x485198
push edi
call esi
lea eax, [ebp - 0x24c]
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
je 0x441201
push edi
call fcn.00445ad9
push edi
mov esi, eax
push 0
push esi
mov dword [ebp - 0x250], esi
call fcn.00442700
add esp, 0x10
push esi
push edi
xor edi, edi
push edi
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4411fa
push 0x34
lea eax, [ebp - 0x238]
push edi
push eax
mov dword [ebp - 0x240], eax
call fcn.00442700
add esp, 0xc
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x240]
push eax
push 0x477aa0
push esi
mov dword [ebp - 0x244], edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x441119
mov eax, dword [ebp - 0x240]
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 8]
movzx eax, cx
push eax
movzx eax, dx
shr ecx, 0x10
push ecx
push eax
shr edx, 0x10
push edx
push str._u._u._u._u
push dword [ebp - 0x23c]
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
push 0x34
push edi
push dword [ebp - 0x240]
mov dword [ebp - 0x244], edi
call fcn.00442700
add esp, 0xc
lea eax, [ebp - 0x244]
push eax
lea eax, [ebp - 0x240]
push eax
push str.VarFileInfoTranslation
push esi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4411fa
mov ebx, dword [ebp - 0x244]
xor eax, eax
push 0x1fe
mov word [ebp - 0x204], ax
lea eax, [ebp - 0x202]
push edi
push eax
shr ebx, 2
call fcn.00442700
mov eax, dword [ebp - 0x240]
add esp, 0xc
test ebx, ebx
jle 0x4411fa
mov esi, eax
and dword [ebp - 0x23c], 0
test edi, edi
jle 0x441192
add esi, 4
push 4
lea eax, [ebp - 0x23c]
push esi
push eax
call fcn.004429d0
movzx eax, word [ebp - 0x23c]
add esp, 0xc
push eax
lea eax, [ebp - 0x204]
test edi, edi
jne 0x4411c7
push 0x47d4d0
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
jmp 0x4411dc
push dword [ebp - 0x248]
push str._s__u
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x204]
push eax
push dword [ebp - 0x248]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
inc edi
cmp edi, ebx
jl 0x441184
mov esi, dword [ebp - 0x250]
push esi
call fcn.00445aa1
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004426e3
leave
ret