joyce8/EMBER2024-capa huggingface dataset:
Function at 0x439073
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 8
mov eax, 0x46ba15
call fcn.004422c6
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0x14
xor ebx, ebx
cmp dword [esi + 0x6c], ebx
je 0x43909e
push dword [esi + 0x6c]
call fcn.0045ecc0
pop ecx
mov dword [esi + 0x6c], ebx
push dword [esi + 0x68]
call fcn.00441040
pop ecx
mov dword [esi + 0x68], ebx
mov byte [ebp - 4], 0x13
lea ecx, [esi + 0x378]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 0x13
call fcn.00401580
mov byte [ebp - 4], 0x12
lea ecx, [esi + 0x348]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 0x12
call fcn.00401580
mov byte [ebp - 4], 0x11
lea ecx, [esi + 0x318]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 0x11
call fcn.00401580
mov byte [ebp - 4], 0x10
lea ecx, [esi + 0x2e8]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 0x10
call fcn.00401580
mov byte [ebp - 4], 0xf
lea ecx, [esi + 0x2b8]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 0xf
call fcn.00401580
mov byte [ebp - 4], 0xe
lea ecx, [esi + 0x288]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 0xe
call fcn.00401580
mov byte [ebp - 4], 0xd
lea ecx, [esi + 0x258]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 0xd
call fcn.00401580
mov byte [ebp - 4], 0xc
lea ecx, [esi + 0x228]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 0xc
call fcn.00401580
mov byte [ebp - 4], 0xb
lea ecx, [esi + 0x1f8]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 0xb
call fcn.00401580
mov byte [ebp - 4], 0xa
lea ecx, [esi + 0x1c8]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 0xa
call fcn.00401580
mov byte [ebp - 4], 9
lea ecx, [esi + 0x198]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 9
call fcn.00401580
mov byte [ebp - 4], 8
lea ecx, [esi + 0x168]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 8
call fcn.00401580
mov byte [ebp - 4], 7
lea ecx, [esi + 0x138]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 7
call fcn.00401580
mov byte [ebp - 4], 6
lea ecx, [esi + 0x108]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 6
call fcn.00401580
mov byte [ebp - 4], 5
lea ecx, [esi + 0xd8]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 5
call fcn.00401580
mov byte [ebp - 4], 4
lea ecx, [esi + 0xa8]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 4
call fcn.00401580
mov byte [ebp - 4], 3
lea ecx, [esi + 0x78]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 3
call fcn.00401580
mov byte [ebp - 4], 2
lea ecx, [esi + 0x5c]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 2
call fcn.0043901b
mov byte [ebp - 4], 1
lea ecx, [esi + 0x54]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 1
call fcn.0043901b
mov byte [ebp - 4], bl
lea ecx, [esi + 0x4c]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], bl
call fcn.0043901b
or dword [ebp - 4], 0xffffffff
lea ecx, [esi + 0x30]
call fcn.00410425
call fcn.00442294
ret
Function at 0x43c9b5
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 0x43c9d3
mov ecx, esi
call fcn.0043c80d
pop esi
pop ebp
ret 4
Function at 0x43d00f
Capabilities:
Read file on windows

Disassembly:
push 0x44
mov eax, 0x46c86e
call fcn.004422f9
mov ebx, ecx
mov edi, dword [ebp + 8]
push 1
lea eax, [ebp - 0x41]
push eax
lea ecx, [ebx + 4]
mov dword [ebp - 0x50], ebx
mov dword [ebx], vtable.STREAM.0
call fcn.00402580
xor eax, eax
mov dword [ebp - 4], eax
or dword [ebx + 0x48], 0xffffffff
lea ecx, [ebx + 0x54]
mov dword [ebx + 0x34], eax
mov dword [ebx + 0x38], eax
mov word [ebx + 0x3c], 0x101
mov byte [ebx + 0x3e], 1
mov dword [ebx + 0x44], eax
mov dword [ebx + 0x4c], 0x2e
mov dword [ebx + 0x50], 0x138
call fcn.0043cf90
mov byte [ebp - 4], 1
and dword [ebx + 0x5c], 0
mov eax, 0x47c998
test edi, edi
cmovne eax, edi
push eax
lea ecx, [ebx + 4]
mov byte [ebx + 0x60], 0
call fcn.00403640
lea esi, [ebx + 8]
cmp dword [esi + 0x14], 8
jb 0x43d095
mov eax, dword [esi]
jmp 0x43d097
mov eax, esi
push 1
push eax
call fcn.0043da8b
pop ecx
mov dword [ebx + 0x40], eax
cmp dword [esi + 0x14], 8
pop ecx
jb 0x43d0ae
mov eax, dword [esi]
jmp 0x43d0b0
mov eax, esi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebx + 0x34], eax
cmp eax, 0xffffffff
jne 0x43d0df
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x44], eax
jmp 0x43d219
push 0x2e
lea eax, [ebp - 0x40]
push edi
push eax
mov dword [ebx + 0x38], 1
call fcn.004412d0
add esp, 0xc
mov ecx, ebx
push 0
push 0
push dword [ebx + 0x40]
push dword [ebx + 0x34]
call fcn.0043e164
test eax, eax
je 0x43d219
push 0
lea eax, [ebp - 0x48]
push eax
push 0x2e
pop edi
push edi
lea eax, [ebp - 0x40]
push eax
push dword [ebx + 0x34]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x4c], eax
test eax, eax
je 0x43d208
cmp dword [ebp - 0x48], 0
je 0x43d208
lea eax, [ebp - 0x40]
push eax
mov ecx, ebx
call fcn.0043d432
test eax, eax
je 0x43d152
mov di, word [ebp - 0x32]
test di, di
jne 0x43d1ca
cmp dword [esi + 0x14], 8
jb 0x43d15a
mov esi, dword [esi]
push 0
push esi
call fcn.0043da8b
pop ecx
pop ecx
cmp eax, dword [ebx + 0x40]
jbe 0x43d16c
mov dword [ebx + 0x40], eax
push 0
push 0
push dword [ebx + 0x40]
mov ecx, ebx
push dword [ebx + 0x34]
call fcn.0043e164
test eax, eax
je 0x43d219
push 0
lea eax, [ebp - 0x4c]
push eax
push 0x2e
pop esi
push esi
lea eax, [ebp - 0x40]
push eax
push dword [ebx + 0x34]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x4c], eax
test eax, eax
je 0x43d219
cmp dword [ebp - 0x48], 0
je 0x43d219
lea eax, [ebp - 0x40]
push eax
mov ecx, ebx
call fcn.0043d432
mov di, word [ebp - 0x32]
test eax, eax
je 0x43d1c1
test di, di
jne 0x43d1cd
mov dword [ebx + 0x5c], 3
jmp 0x43d1cd
push 0x2e
pop esi
mov eax, dword [ebx + 0x5c]
cmp eax, 1
je 0x43d1e6
add eax, 0xfffffffe
cmp eax, 1
ja 0x43d1f0
mov dword [ebx + 0x50], 0x18
jmp 0x43d1ed
mov dword [ebx + 0x50], 0x138
mov dword [ebx + 0x4c], esi
mov ecx, ebx
call fcn.0043de65
test al, al
je 0x43d219
movzx eax, di
push eax
mov ecx, ebx
call fcn.0043db88
jmp 0x43d219
mov dword [ebx + 0x5c], 3
mov dword [ebx + 0x4c], edi
mov dword [ebx + 0x50], 0x18
or dword [ebp - 4], 0xffffffff
mov eax, ebx
call fcn.004422a8
ret 4
Function at 0x43d594
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push 0x58
mov eax, 0x46c944
call fcn.004422f9
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 0x43d5dd
mov byte [ebp - 0x41], 1
lea eax, [ecx + 4]
cmp dword [eax + 0x14], 8
jb 0x43d5e8
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 0x43d618
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x44], eax
xor eax, eax
jmp 0x43d6ee
mov eax, 0x400
mov edi, eax
cmp ebx, eax
cmovb edi, ebx
push edi
call fcn.00440f4f
pop ecx
push 0
lea ecx, [ebp - 0x48]
push ecx
push edi
mov dword [ebp - 0x4c], eax
push eax
jmp 0x43d6ca
cmp byte [ebp - 0x60], 0
je 0x43d679
cmp byte [ebp - 0x41], 0
je 0x43d679
mov ecx, dword [ebp - 0x64]
lea eax, [ebp - 0x40]
push eax
call fcn.00425ae4
and dword [ebp - 4], 0
mov ecx, eax
call fcn.0043a2c9
push eax
push dword [ebp - 0x48]
push dword [ebp - 0x4c]
call fcn.0040b776
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 0x43d6af
push dword [ebp - 0x5c]
mov eax, dword [edx]
push ecx
mov ecx, edx
call dword [eax]
test al, al
jne 0x43d6f6
mov eax, dword [ebp - 0x48]
sub ebx, eax
je 0x43d6db
test eax, eax
je 0x43d6db
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 0x43d63b
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.004422a8
ret 0x10
xor edi, edi
jmp 0x43d6de
Function at 0x43d898
Capabilities:
Get system information on windows
Read file via mapping

Disassembly:
push 0x4c
mov eax, 0x46c971
call fcn.004422c6
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 0x43d9da
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.0043db11
pop ecx
pop ecx
test eax, eax
je 0x43d90b
cmp dword [eax + 0xc], edi
jne 0x43d90b
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 0x43d96d
push ebx
push str..rdata
call fcn.0043db11
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x43d935
push ebx
push str..text
call fcn.0043db11
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x43d9da
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 0x43d9da
mov ecx, dword [edi + 0x10]
add ecx, dword [edi + 0xc]
mov edx, dword [ebp + 0x10]
cmp edx, ecx
ja 0x43d9da
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 0x43d9bf
cmp dword [ebp + 8], 0
je 0x43d9bf
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 0x43d9da
lea ecx, [ebp - 0x10]
call fcn.00418043
mov dword [ebp - 0x10], edi
sub edi, dword [ebp - 0x18]
add edi, dword [ebp + 0x10]
test ebx, ebx
je 0x43d9da
add edi, 0x10
mov eax, dword [edi + 8]
add eax, dword [edi]
cmp eax, dword [ebp + 0x14]
jbe 0x43d9d2
add esi, dword [edi]
push 0x1c
pop eax
add edi, eax
dec ebx
jne 0x43d9c6
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00418043
mov eax, esi
call fcn.00442294
ret
Function at 0x43dc5f
Capabilities:
Read file on windows

Disassembly:
push 0x1a8
mov eax, 0x46ca41
call fcn.004422f9
mov edi, ecx
mov ebx, dword [ebp + 8]
xor esi, esi
cmp dword [edi + 0x50], 2
mov dword [ebp - 0x1b4], ebx
jae 0x43dd59
push 0x138
lea eax, [ebp - 0x1a8]
push esi
push eax
call fcn.004412d0
add esp, 0xc
lea eax, [ebp - 0x1b0]
push esi
push eax
push 0x138
lea eax, [ebp - 0x1a8]
push eax
push ebx
mov dword [ebp - 0x1b0], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x43dcca
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x43de5d
cmp dword [ebp - 0x1b0], 0x138
je 0x43dce0
mov eax, 0x103
jmp 0x43de5d
push 1
lea eax, [ebp - 0x1a9]
push eax
lea eax, [ebp - 0x1a8]
push eax
lea ecx, [ebp - 0x40]
call fcn.0040c452
mov dword [ebp - 4], esi
lea eax, [ebp - 0x40]
push eax
mov ecx, edi
call fcn.0040c7e2
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00401580
mov eax, dword [ebp - 0xa4]
mov dword [edi + 0x30], eax
mov ax, word [ebp - 0xa0]
mov word [edi + 0x34], ax
mov eax, dword [ebp - 0x9c]
mov dword [edi + 0x38], eax
mov eax, dword [ebp - 0x98]
mov dword [edi + 0x3c], eax
mov eax, dword [ebp - 0x94]
mov dword [edi + 0x40], eax
mov ax, word [ebp - 0x90]
mov word [edi + 0x44], ax
mov eax, dword [ebp + 0xc]
add eax, 0x138
jmp 0x43de58
push 0x18
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.004412d0
add esp, 0xc
lea eax, [ebp - 0x1b0]
push esi
push eax
push 0x18
lea eax, [ebp - 0x28]
push eax
push ebx
mov dword [ebp - 0x1b0], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x43dcbf
cmp dword [ebp - 0x1b0], 0x18
jne 0x43dcd6
mov eax, dword [ebp - 0x24]
push dword [ebp - 0x28]
mov dword [edi + 0x30], eax
mov ax, word [ebp - 0x20]
mov word [edi + 0x34], ax
mov eax, dword [ebp - 0x1e]
mov dword [edi + 0x38], eax
mov eax, dword [ebp - 0x1a]
mov dword [edi + 0x3c], eax
mov eax, dword [ebp - 0x16]
mov dword [edi + 0x40], eax
mov ax, word [ebp - 0x12]
mov word [edi + 0x44], ax
call fcn.00440f4f
push dword [ebp - 0x28]
mov ebx, eax
push esi
push ebx
call fcn.004412d0
add esp, 0x10
lea eax, [ebp - 0x1b0]
push esi
push eax
push dword [ebp - 0x28]
push ebx
push dword [ebp - 0x1b4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x43ddfd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x43de0d
mov eax, dword [ebp - 0x28]
cmp dword [ebp - 0x1b0], eax
je 0x43de18
mov esi, 0x103
push ebx
call fcn.00441040
pop ecx
mov eax, esi
jmp 0x43de5d
push 1
lea ecx, [ebp - 0x1a9]
push ecx
shr eax, 1
push eax
push ebx
lea ecx, [ebp - 0x70]
call fcn.0040c5b2
mov dword [ebp - 4], 2
push eax
mov ecx, edi
call fcn.0040c7e2
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70]
call fcn.00401580
push ebx
call fcn.00441040
mov eax, dword [ebp - 0x28]
add eax, 0x18
add eax, dword [ebp + 0xc]
pop ecx
mov dword [edi + 0x48], eax
xor eax, eax
call fcn.004422a8
ret 8
Function at 0x43de69
Capabilities:
Get system information on windows
Parse pe header
Read file via mapping

Disassembly:
push 0x3c
mov eax, 0x46ca81
call fcn.004422c6
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 0x43dec2
lea ecx, [ebp - 0x18]
call fcn.00403440
mov edi, esi
mov dword [ebp - 0x18], edi
cmp esi, 0xffffffff
je 0x43dfe4
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 0x43dfe4
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 0x43dfe4
lea ecx, [ebp - 0x10]
call fcn.00418043
mov eax, 0x5a4d
mov dword [ebp - 0x10], esi
cmp word [esi], ax
jne 0x43dfaa
mov ebx, dword [esi + 0x3c]
push 0xf8
add ebx, esi
push ebx
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x43dfa3
cmp dword [ebx], 0x4550
jne 0x43dfa3
mov eax, dword [ebx + 0x54]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x20], eax
jae 0x43dfad
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 0x43df7c
lea ecx, [ebp - 0x10]
call fcn.00418043
mov esi, ebx
mov dword [ebp - 0x10], esi
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x43dfa3
mov ebx, dword [esi + 0x3c]
push 0xf8
add ebx, esi
push ebx
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x43dfa3
cmp dword [ebx], 0x4550
je 0x43dfad
mov esi, 0xc1
jmp 0x43dfec
mov ebx, dword [ebp - 0x24]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x43dfba
and dword [ebp - 0x10], 0
mov dword [eax], esi
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x43dfc7
and dword [ebp - 0x18], 0
mov dword [eax], edi
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x43dfd7
mov ecx, dword [ebp - 0x1c]
and dword [ebp - 0x14], 0
mov dword [eax], ecx
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x43dfe0
mov dword [eax], ebx
xor esi, esi
jmp 0x43dfec
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x10]
call fcn.00418043
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.00442294
ret
Function at 0x43e63e
Capabilities:
Delete file
Get common file path

Disassembly:
push 0x70c
mov eax, 0x46cbc8
call fcn.004422f9
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.004412d0
add esp, 0xc
lea eax, [ebp - 0x628]
push 0x104
push eax
push dword [0x498d58]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x628]
push eax
lea ecx, [ebp - 0x70c]
call fcn.0043d00f
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.004412d0
cmp dword [0x498c50], 8
mov esi, 0x498c3c
mov eax, esi
cmovae eax, dword [0x498c3c]
push eax
lea eax, [ebp - 0x70c]
push eax
call fcn.0043f40e
add esp, 0x14
test eax, eax
je 0x43e7a6
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.004412d0
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 0x475fb4
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.0040c568
mov byte [ebp - 4], bl
lea eax, [ebp - 0x6a8]
push eax
mov ecx, 0x498c38
call fcn.004148c3
mov byte [ebp - 4], 2
push esi
lea ecx, [ebp - 0x678]
push ecx
push eax
lea ecx, [ebp - 0x70c]
call fcn.0043d6fa
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 0x43e7fa
cmp word [0x4983b8], 0
je 0x43e7c4
push 0x4983b8
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x43e7fa
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x628]
push eax
call fcn.0043f4a2
cmp dword [0x498c50], 8
lea eax, [ebp - 0x218]
cmovae esi, dword [0x498c3c]
push esi
push eax
push eax
call fcn.0043f14c
lea ecx, [ebp - 0x648]
call fcn.00418ae0
mov byte [ebp - 4], 6
cmp word [ebp - 0x218], 0
jne 0x43e817
xor eax, eax
jmp 0x43e824
lea eax, [ebp - 0x218]
push eax
call fcn.0041692b
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x640]
call fcn.0040eb68
lea ecx, [ebp - 0x648]
call fcn.0041a8d8
lea ecx, [ebp - 0x648]
call fcn.0040d782
push dword [ebp + 0x14]
lea ecx, [ebp - 0x648]
push dword [ebp - 0x718]
push 0x47c998
push dword [ebp - 0x714]
push edi
call fcn.0040d146
test bl, bl
je 0x43e87e
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x648]
call fcn.00418d01
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x70c]
call fcn.0043d2df
call fcn.004422a8
ret
Function at 0x43f282
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.00440f4f
pop ecx
push dword [ebp + 8]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x471ba8
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 0x43f315
push 0x5c
pop ecx
cmp word [edi], cx
jne 0x43f307
xor eax, eax
push eax
push ebx
mov word [edi], ax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x43f2fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x43f311
mov eax, dword [ebp + 8]
push 0x5c
pop ecx
mov word [edi], cx
add edi, 2
inc esi
cmp esi, eax
jb 0x43f2db
jmp 0x43f315
and dword [ebp - 4], 0
push ebx
call fcn.00442234
mov eax, dword [ebp - 4]
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x43f368
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x4937f0]
xor eax, ebp
mov dword [ebp - 4], eax
push dword [0x493768]
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x804]
push eax
call fcn.0043f14c
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 0x43f3b8
xor eax, eax
jmp 0x43f3cf
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.004412b3
leave
ret

Function at 0x43f741
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x4937f0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
cmp dword [0x499650], esi
jne 0x43f767
mov eax, dword [0x49376c]
cmp eax, 0xffffffff
jne 0x43f7b9
push 0x14
lea eax, [ebp - 0x2c]
push eax
push 0x1004
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jle 0x43f7b4
lea eax, [ebp - 0x2c]
push eax
call fcn.00443a3f
pop ecx
push 2
lea ecx, [ebp - 0x4c]
push ecx
push eax
call dword [sym.imp.GDI32.dll_TranslateCharsetInfo]
test eax, eax
je 0x43f7a3
movsx eax, word [ebp - 0x4c]
mov dword [0x49376c], eax
jmp 0x43f7b9
push 1
push esi
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x43f7b4
xor eax, eax
jmp 0x43f7b9
mov eax, dword [0x49376c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004412b3
leave
ret