joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f350
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, ecx
mov eax, dword [ebx + 0x130]
push esi
push edi
mov edi, dword [ebp + 0xc]
lea esi, [ebx + 0x130]
mov eax, dword [eax + 0x18]
mov ecx, esi
push edi
push dword [ebp + 8]
call eax
test al, al
je 0x40f592
push ecx
push dword [ebp + 8]
mov ecx, esi
call fcn.00410120
test al, al
je 0x40f592
mov edx, dword [ebp + 0x10]
mov eax, 0x442610
mov dword [ebx + 0x34c], esi
xor ecx, ecx
mov dword [ebx + 8], edx
cmp dword [eax], edx
je 0x40f451
add ecx, 0x10
add eax, 0x10
cmp ecx, 0x50
jb 0x40f3a3
mov eax, dword [ebp + 8]
mov ebx, eax
mov eax, dword [eax]
test eax, eax
je 0x40f3cd
lea ebx, [eax + 0x124]
mov eax, dword [ebx]
test eax, eax
jne 0x40f3c1
push 0x128
call fcn.00416863
mov esi, eax
add esp, 4
mov ecx, esi
mov dword [ebp + 0xc], esi
call fcn.0040abd0
push 0x4474c4
push 0x446fac
mov dword [esi + 0x124], 0
push esi
mov dword [ebx], esi
call fcn.0040af90
add esp, 0xc
push dword [ebp + 0x10]
push 0x446ab8
push esi
call fcn.0040af90
add esp, 0xc
cmp byte [edi + 0x11c], 0
je 0x40f424
add edi, 0xc
jmp 0x40f427
mov edi, dword [edi + 8]
push 0x4474d8
mov ecx, dword [ebp + 8]
call fcn.00402750
lea ecx, [edi + 4]
push ecx
push 0x446fac
push eax
call fcn.0040af90
add esp, 0xc
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [eax + 4]
mov ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
push 0
push 0x80
push edx
push 0
push eax
push ecx
mov dword [ebp - 4], ecx
mov ecx, edi
mov dword [ebp + 0x10], edx
mov dword [ebp + 0xc], eax
call fcn.00408090
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebx + 4], eax
mov esi, 1
cmp eax, 0xffffffff
jne 0x40f50c
nop
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x40f4b7
cmp esi, 3
jge 0x40f546
cmp byte [ebx + 0x350], 0
je 0x40f4e3
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x40f4e3
cmp eax, 5
jne 0x40f520
cmp esi, 3
jge 0x40f546
cmp byte [edi + 0x11c], 0
lea eax, [edi + 0xc]
jne 0x40f4d4
mov eax, dword [edi + 8]
push 0x80
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
push 0x80
push dword [ebp + 0x10]
mov ecx, edi
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call fcn.00408090
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
inc esi
mov dword [ebx + 4], eax
cmp eax, 0xffffffff
je 0x40f490
push edi
lea ecx, [ebx + 0xc]
call fcn.00408170
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
test eax, eax
jne 0x40f546
cmp byte [edi + 0x11c], al
je 0x40f539
add edi, 0xc
push 0x4474e8
jmp 0x40f42c
mov edi, dword [edi + 8]
push 0x4474e8
jmp 0x40f42c
cmp byte [edi + 0x11c], 0
je 0x40f554
add edi, 0xc
jmp 0x40f557
mov edi, dword [edi + 8]
mov ecx, dword [ebp + 8]
push eax
call fcn.0040b2f0
push 0x4474d8
mov esi, eax
push 0x446fac
push esi
call fcn.0040af90
add esp, 0xc
lea ecx, [edi + 4]
push ecx
push 0x446fac
push esi
call fcn.0040af90
add esp, 0xc
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp + 8]
push 0x446bec
call fcn.00402750
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4111b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x164
mov eax, dword [0x44e018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, edx
test ecx, ecx
je 0x41141c
mov esi, ecx
lea edx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4111d5
sub esi, edx
sar esi, 1
je 0x41141c
push 0x4467e8
push ecx
lea eax, [ebp - 0x164]
mov dword [ebp - 0x164], 0
push eax
call fcn.0041f953
add esp, 0xc
test eax, eax
jne 0x41141c
push 0x40
push eax
lea eax, [ebp - 0x58]
mov bl, 1
push eax
call fcn.00418cc0
push dword [ebp - 0x164]
lea eax, [ebp - 0x58]
push 1
push 0x40
push eax
call fcn.00421598
mov eax, 0x5a4d
add esp, 0x1c
cmp ax, word [ebp - 0x58]
jne 0x411398
mov eax, dword [ebp - 0x1c]
push 0
add eax, 4
push eax
push dword [ebp - 0x164]
call fcn.00421385
push dword [ebp - 0x164]
lea eax, [ebp - 0x18]
mov dword [ebp - 8], 0
push 1
xorps xmm0, xmm0
push 0x14
push eax
movups xmmword [ebp - 0x18], xmm0
call fcn.00421598
add esp, 0x1c
cmp dword [edi + 0x120], 0
je 0x41128f
mov dword [edi + 0x120], 0
lea esi, [edi + 8]
mov dword [edi + 4], 0
push 1
mov ecx, esi
call fcn.0040b140
cmp byte [esi + 0x114], 0
lea eax, [esi + 4]
jne 0x4112b0
mov eax, dword [esi]
xor ecx, ecx
mov word [eax + 4], cx
push dword [ebp - 0x14]
push 0x446fa4
push edi
call fcn.0040af90
push 0
push dword [ebp - 0x1c]
push dword [ebp - 0x164]
call fcn.00421385
mov ax, word [ebp - 0x18]
mov ecx, 0x14c
add esp, 0x18
cmp cx, ax
jne 0x41131c
push 0xf8
lea eax, [ebp - 0x150]
push 0
push eax
call fcn.00418cc0
push dword [ebp - 0x164]
lea eax, [ebp - 0x150]
push 1
push 0xf8
push eax
call fcn.00421598
push dword [ebp - 0x100]
jmp 0x4113ed
mov ecx, 0x200
cmp cx, ax
je 0x4113bb
mov ecx, 0x8664
cmp cx, ax
je 0x4113bb
cmp dword [edi + 0x120], 0
je 0x41134b
mov dword [edi + 0x120], 0
push 1
mov ecx, esi
mov dword [edi + 4], 0
call fcn.0040b140
cmp byte [esi + 0x114], 0
je 0x411390
add esi, 4
xor eax, eax
xor bl, bl
mov word [esi + 4], ax
push dword [ebp - 0x164]
call fcn.0041fabf
add esp, 4
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00416855
mov esp, ebp
pop ebp
ret
mov esi, dword [esi]
xor eax, eax
mov word [esi + 4], ax
push dword [ebp - 0x164]
xor bl, bl
call fcn.0041fabf
add esp, 4
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00416855
mov esp, ebp
pop ebp
ret
push 0x108
lea eax, [ebp - 0x160]
push 0
push eax
call fcn.00418cc0
push dword [ebp - 0x164]
lea eax, [ebp - 0x160]
push 1
push 0x108
push eax
call fcn.00421598
push dword [ebp - 0x110]
push 0x446fa4
push edi
call fcn.0040af90
add esp, 0x28
push dword [ebp - 0x164]
call fcn.0041fabf
add esp, 4
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00416855
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00416855
mov esp, ebp
pop ebp
ret
Function at 0x411f80
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x44ea74], 0
push ebx
je 0x41211f
push dword [0x44ea7c]
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call ebx
test eax, eax
je 0x411fdd
cmp dword [eax], 0xd
jbe 0x411fdd
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x34]
test eax, eax
je 0x411fdd
push 0
push 0x44f1b0
push 0x44f1e8
push 0
push eax
call fcn.00434254
add esp, 0x14
test eax, eax
je 0x411fdd
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 8]
test eax, eax
jne 0x4121d3
cmp dword [0x44ea74], 0
je 0x41211f
push esi
push edi
push 0x4589a8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x44ea74], 0
je 0x412047
push dword [0x44ea7c]
call ebx
test eax, eax
je 0x412047
cmp dword [eax], 0xd
jbe 0x412047
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x34]
test eax, eax
je 0x412047
push 0
push 0x44f1b0
push 0x44f1e8
push 0
push eax
call fcn.00434254
add esp, 0x14
test eax, eax
je 0x412047
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 8]
mov esi, eax
test esi, esi
jne 0x41210b
push 0x2014
call fcn.00416863
mov esi, eax
push 0x2000
push 0
push esi
mov dword [ebp - 4], esi
mov dword [esi + 0x2004], 0
mov dword [esi + 0x2008], 0
mov dword [esi + 0x200c], 0
mov byte [esi + 0x2000], 0
call fcn.00418cc0
add esp, 0x10
mov dword [esi + 0x2010], 0
cmp dword [0x44ea74], 0
je 0x41210b
push dword [0x44ea7c]
call ebx
test eax, eax
je 0x41210b
cmp dword [eax], 0xd
jbe 0x41210b
mov eax, dword [eax + 8]
mov ecx, dword [eax + 0x34]
test ecx, ecx
jne 0x412105
push 8
call fcn.00416863
mov edi, eax
add esp, 4
mov dword [ebp - 4], edi
mov dword [edi], vtable.t_visualDataItemPtr_class_t_perfManager_.0
mov dword [edi + 4], esi
cmp dword [0x44ea74], 0
je 0x41210b
push dword [0x44ea7c]
call ebx
test eax, eax
je 0x41210b
cmp dword [eax], 0xd
jbe 0x41210b
mov eax, dword [eax + 8]
push 0x4589a8
mov dword [eax + 0x34], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ecx]
push esi
call dword [eax + 0xc]
push 0x4589a8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x4589fc]
test eax, eax
jne 0x4121d3
push 0x4589a8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x459060]
cmp eax, dword [ecx + 4]
jle 0x4121b9
push 0x459060
call fcn.00416e6f
add esp, 4
cmp dword [0x459060], 0xffffffff
jne 0x4121b9
push 0x2000
push 0
push 0x459068
mov dword [0x45b06c], 0
mov dword [0x45b070], 0
mov dword [0x45b074], 0
mov byte [0x45b068], 0
call fcn.00418cc0
push 0x435530
mov dword [0x45b078], 0
call fcn.00416acf
push 0x459060
call fcn.00416e25
add esp, 0x14
push 0x4589a8
mov dword [0x4589fc], 0x459068
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [0x4589fc]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4124f0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x44ea74], 0
push ebx
je 0x41269c
push dword [0x44ea7c]
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call ebx
test eax, eax
je 0x41254d
cmp dword [eax], 0x17
jbe 0x41254d
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x5c]
test eax, eax
je 0x41254d
push 0
push 0x44f208
push 0x44f1e8
push 0
push eax
call fcn.00434254
add esp, 0x14
test eax, eax
je 0x41254d
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 8]
test eax, eax
jne 0x41275e
cmp dword [0x44ea74], 0
je 0x41269c
push esi
push edi
push 0x4589a8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x44ea74], 0
je 0x4125b7
push dword [0x44ea7c]
call ebx
test eax, eax
je 0x4125b7
cmp dword [eax], 0x17
jbe 0x4125b7
mov eax, dword [eax + 8]
mov eax, dword [eax + 0x5c]
test eax, eax
je 0x4125b7
push 0
push 0x44f208
push 0x44f1e8
push 0
push eax
call fcn.00434254
add esp, 0x14
test eax, eax
je 0x4125b7
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 8]
mov esi, eax
test esi, esi
jne 0x412688
push 0x202c
call fcn.00416863
mov esi, eax
push 0x2000
push 0
push esi
mov dword [ebp - 4], esi
mov dword [esi + 0x2004], 0
mov dword [esi + 0x2008], 0
mov dword [esi + 0x200c], 0
mov byte [esi + 0x2000], 0
call fcn.00418cc0
add esp, 0x10
mov dword [esi + 0x2010], 0
lea eax, [esi + 0x2014]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
cmp dword [0x44ea74], 0
je 0x412688
push dword [0x44ea7c]
call ebx
test eax, eax
je 0x412688
cmp dword [eax], 0x17
jbe 0x412688
mov eax, dword [eax + 8]
mov ecx, dword [eax + 0x5c]
test ecx, ecx
jne 0x412682
push 8
call fcn.00416863
mov edi, eax
add esp, 4
mov dword [ebp - 4], edi
mov dword [edi], vtable.t_visualDataItemPtr_class_t_perfCationManager_.0
mov dword [edi + 4], esi
cmp dword [0x44ea74], 0
je 0x412688
push dword [0x44ea7c]
call ebx
test eax, eax
je 0x412688
cmp dword [eax], 0x17
jbe 0x412688
mov eax, dword [eax + 8]
push 0x4589a8
mov dword [eax + 0x5c], edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ecx]
push esi
call dword [eax + 0xc]
push 0x4589a8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x458a00]
test eax, eax
jne 0x41275e
push 0x4589a8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x45d0ac]
cmp eax, dword [ecx + 4]
jle 0x412744
push 0x45d0ac
call fcn.00416e6f
add esp, 4
cmp dword [0x45d0ac], 0xffffffff
jne 0x412744
push 0x2000
push 0
push 0x45b080
mov dword [0x45d084], 0
mov dword [0x45d088], 0
mov dword [0x45d08c], 0
mov byte [0x45d080], 0
call fcn.00418cc0
add esp, 0xc
mov dword [0x45d090], 0
push 0x45d094
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x435560
call fcn.00416acf
push 0x45d0ac
call fcn.00416e25
add esp, 8
push 0x4589a8
mov dword [0x458a00], 0x45b080
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [0x458a00]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4128a0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4350a0
mov eax, dword fs:[0]
push eax
sub esp, 0x36c
mov eax, dword [0x44e018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
test eax, eax
je 0x4128f9
push eax
call fcn.0041fd4b
add esp, 4
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
push ecx
lea ecx, [ebp - 0x370]
call fcn.0040f1c0
mov dword [ebp - method.t_fileRead.virtual_0], vtable.t_fileRead.0
mov dword [ebp - 0x1c], 0x448be0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
push 0
push esi
push ebx
lea ecx, [ebp - 0x370]
mov dword [ebp - 4], 0
call fcn.0040f350
test al, al
je 0x412a8f
lea eax, [ebp - 0x378]
mov dword [ebp - 0x378], 0
push eax
push dword [ebp - 0x36c]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x374], eax
cmp eax, 0xffffffff
jne 0x41297e
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x412978
xor eax, eax
jmp 0x41297e
mov eax, dword [ebp - 0x374]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x378]
push eax
push dword [ebp - 0x36c]
mov dword [ebp - 0x378], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x374], eax
cmp eax, 0xffffffff
jne 0x4129c3
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4129bd
xor eax, eax
mov dword [ebp - 0x374], eax
jmp 0x4129c3
mov eax, dword [ebp - 0x374]
add eax, 4
push eax
call fcn.0041ff0e
add esp, 4
mov dword [ebp - 0x378], eax
test eax, eax
jne 0x4129fc
mov dword [edi + 0x24], 2
cmp byte [esi + 0x11c], al
je 0x4129f2
add esi, 0xc
push 0x448a98
jmp 0x412a3c
mov esi, dword [esi + 8]
push 0x448a98
jmp 0x412a3c
push dword [ebp - 0x374]
lea ecx, [ebp - 0x1c]
push eax
push ebx
call fcn.00412eb0
test al, al
jne 0x412a57
mov ecx, dword [ebp - 0x378]
push ecx
mov dword [edi + 0x24], 3
call fcn.0041fd4b
add esp, 4
cmp byte [esi + 0x11c], 0
je 0x412a34
add esi, 0xc
jmp 0x412a37
mov esi, dword [esi + 8]
push 0x4474d8
mov ecx, ebx
call fcn.00402750
lea ecx, [esi + 4]
push ecx
push 0x446fac
push eax
call fcn.0040af90
add esp, 0xc
jmp 0x412a96
lea ecx, [ebp - 0x370]
call fcn.0040f5b0
mov ecx, dword [ebp - 0x378]
xor edx, edx
mov eax, dword [ebp - 0x374]
push ecx
push eax
push ecx
mov dword [ecx + eax], edx
mov ecx, edi
push ebx
call fcn.00412bb0
test al, al
jne 0x412a8b
mov dword [edi + 0x24], 4
jmp 0x412a26
mov bl, 1
jmp 0x412a98
mov dword [edi + 0x24], 1
xor bl, bl
lea ecx, [ebp - 0x370]
mov dword [ebp - method.t_fileRead.virtual_0], vtable.t_fileRead.0
mov dword [ebp - 0x1c], vtable.t_byteStreamRead.0
call fcn.0040f2a0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00416855
mov esp, ebp
pop ebp
ret 0x10
Function at 0x412eb0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x412fa0
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push edi
push dword [ebp + 0xc]
push dword [esi - 0x350]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x412f21
cmp byte [esi - 0x22c], al
je 0x412efc
add esi, 0xfffffcc4
jmp 0x412f02
mov esi, dword [esi - 0x340]
mov ecx, dword [ebp + 8]
call fcn.0040b380
push 0x447508
mov edi, eax
push 0x446fac
push edi
call fcn.0040af90
add esp, 0xc
jmp 0x412f4d
mov ecx, dword [ebp - 4]
test ecx, ecx
jne 0x412f69
cmp byte [esi - 0x22c], cl
je 0x412f38
add esi, 0xfffffcc4
jmp 0x412f3e
mov esi, dword [esi - 0x340]
mov ecx, dword [ebp + 8]
push 0x447518
call fcn.00402750
mov edi, eax
lea eax, [esi + 4]
push eax
push 0x446fac
push edi
call fcn.0040af90
add esp, 0xc
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
cmp ecx, edi
je 0x412fa0
cmp byte [esi - 0x22c], 0
lea eax, [esi - 0x33c]
jne 0x412f82
mov eax, dword [esi - 0x340]
add eax, 4
push eax
push ecx
push edi
push str.penc_rN
push dword [ebp + 8]
call fcn.0040b250
add esp, 0x14
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
add dword [esi + 8], edi
mov al, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x415c20
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x44e018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.00418cc0
add esp, 0xc
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.USER32.dll_wvsprintfW]
mov esi, eax
lea ecx, [esi - 1]
cmp ecx, 0x3fe
ja 0x415c93
push 0
lea eax, [ebp - 0x808]
push eax
lea ecx, [esi + esi]
push ecx
lea eax, [ebp - 0x804]
push eax
mov eax, dword [0x44ea70]
push dword [eax*4 + 0x450a5c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00416855
mov esp, ebp
pop ebp
ret
Function at 0x4164c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x44ea70]
cmp dword [eax*4 + 0x450a5c], 0
je 0x41652c
cmp dword [0x450a50], 0
je 0x41652c
push esi
push str.extra:_n
call fcn.00415c20
mov edx, dword [0x450a50]
add esp, 4
mov eax, edx
mov dword [ebp - 4], 0
lea esi, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x416500
sub eax, esi
lea ecx, [ebp - 4]
push 0
sar eax, 1
push ecx
add eax, eax
push eax
mov eax, dword [0x44ea70]
push edx
push dword [eax*4 + 0x450a5c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x417805
Capabilities:
Parse pe header

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

Function at 0x426a31
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00421990
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x426aa0
cmp esi, dword [ebp - 4]
je 0x426a9b
cmp dword [ebp + 0xc], 0
je 0x426a9b
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x426a78
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00426583
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x426aa2
xor eax, eax
inc eax
jmp 0x426aa2
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x426b07
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x44e018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.00421990
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.00421990
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x426b7e
cmp word [ecx], dx
je 0x426b7e
mov eax, dword [0x439cb4]
push edi
dec eax
push eax
push 0x439ba0
call fcn.00426aa6
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x426bf1
cmp word [eax], dx
je 0x426bf1
mov eax, dword [edi]
test eax, eax
je 0x426ba2
cmp word [eax], dx
je 0x426ba2
lea eax, [ebp - 0x10]
push eax
call fcn.00426489
jmp 0x426bab
lea eax, [ebp - 0x10]
push eax
call fcn.00426524
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x426c1b
mov eax, dword [0x439b9c]
push dword [ebp - 0x14]
dec eax
push eax
push 0x439890
call fcn.00426aa6
add esp, 0xc
test al, al
je 0x426c1b
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x426be6
cmp word [eax], di
je 0x426be6
lea eax, [ebp - 0x10]
push eax
call fcn.00426489
pop ecx
jmp 0x426c1d
lea eax, [ebp - 0x10]
push eax
call fcn.00426524
jmp 0x426be3
mov eax, dword [edi]
test eax, eax
je 0x426c08
cmp word [eax], dx
je 0x426c08
lea eax, [ebp - 0x10]
push eax
call fcn.0042643e
pop ecx
jmp 0x426c1b
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x426ce6
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.0042692b
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x426ce6
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x426ce6
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x426ce6
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x426c73
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.004272b2
test ebx, ebx
je 0x426ce1
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.004272b2
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x426ce6
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x426ce6
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0041fc1d
add esp, 0x10
xor eax, eax
inc eax
jmp 0x426ce8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00416855
leave
ret
Function at 0x4270b5
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43acb8
push 0x43acb0
push str.FlsAlloc
push 0x1f
call fcn.00426f9c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4270e9
push dword [ebp + 8]
mov ecx, esi
call dword [0x436218]
call esi
jmp 0x4270ef
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x427133
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43acc8
push 0x43acc0
push str.FlsGetValue
push 0x21
call fcn.00426f9c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42716a
push dword [ebp + 8]
mov ecx, esi
call dword [0x436218]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x427172
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x43acd0
push 0x43acc8
push str.FlsSetValue
push 0x22
call fcn.00426f9c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4271ac
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x436218]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]