joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1979c
Capabilities:
Complete processing asynchronous io request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x1f170], 0
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [eax + 0x28]
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, dword [edi + 0x60]
mov dword [ebp - 4], ebx
je 0x197ca
add esi, 0x24
mov dword [edi + 0x60], esi
jmp 0x19937
cmp byte [esi], 0
jne 0x19933
push dword [esi + 0x18]
call fcn.00018c92
test al, al
jne 0x19933
and dword [ebp - 8], 0
xor eax, eax
mov word [ebp - 0xc], ax
mov word [ebp - 0xa], ax
lea eax, [ebp - 0xc]
push eax
push dword [esi + 0x18]
call fcn.00018d42
test eax, eax
jne 0x19933
push 1
push 0x214d0
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlCompareUnicodeString]
mov ebx, 0x400
test eax, eax
jne 0x198ad
push 0x48524452
push ebx
push eax
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov dword [ebp + 8], eax
test eax, eax
je 0x198ad
mov eax, dword [esi + 0x18]
mov eax, dword [eax + 0x34]
test eax, eax
je 0x1984a
push 0
push eax
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, dword [esi + 0x18]
xor ecx, ecx
mov word [eax + 0x30], cx
mov eax, dword [esi + 0x18]
mov ecx, ebx
mov word [eax + 0x32], cx
mov eax, dword [esi + 0x18]
mov ecx, dword [ebp + 8]
mov dword [eax + 0x34], ecx
mov eax, dword [esi + 0x18]
push ebx
push 0
push dword [eax + 0x34]
call sub.ntoskrnl.exe_memset
add esp, 0xc
push 0x21290
mov eax, dword [esi + 0x18]
add eax, 0x30
push eax
call dword [sym.imp.ntoskrnl.exe_RtlCopyUnicodeString]
push dword [ebp - 8]
call fcn.00015880
and dword [edi + 0x1c], 0
mov esi, 0x104
xor dl, dl
mov ecx, edi
mov dword [edi + 0x18], esi
call dword [sym.imp.ntoskrnl.exe_IofCompleteRequest]
mov eax, esi
jmp 0x19945
cmp byte [0x1f1ec], 0
je 0x19928
push 1
push 0x214d8
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlCompareUnicodeString]
test eax, eax
jne 0x19928
push 0x48524452
push ebx
push eax
call dword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov dword [ebp + 8], eax
test eax, eax
je 0x19928
mov eax, dword [esi + 0x18]
mov eax, dword [eax + 0x34]
test eax, eax
je 0x198f2
push 0
push eax
call dword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, dword [esi + 0x18]
xor ecx, ecx
mov word [eax + 0x30], cx
mov eax, dword [esi + 0x18]
mov ecx, ebx
mov word [eax + 0x32], cx
mov eax, dword [esi + 0x18]
mov ecx, dword [ebp + 8]
mov dword [eax + 0x34], ecx
mov eax, dword [esi + 0x18]
push ebx
push 0
push dword [eax + 0x34]
call sub.ntoskrnl.exe_memset
add esp, 0xc
push 0x214e0
jmp 0x1987b
push dword [ebp - 8]
call fcn.00015880
mov ebx, dword [ebp - 4]
add dword [edi + 0x60], 0x24
inc byte [edi + 0x23]
mov ecx, dword [ebx + 4]
mov edx, edi
call dword [sym.imp.ntoskrnl.exe_IofCallDriver]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x19a0e
Capabilities:
Delete file
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x1f1d8]
push edi
xor edi, edi
mov dword [ebp - 4], edi
cmp eax, edi
je 0x19ae1
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [eax + 0x28]
push 0x212c0
push 0x200
lea eax, [ebp - 0xc]
push eax
push ebx
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
call fcn.0001893e
push dword [0x1f1d8]
mov dword [ebp - 0x2c], 0x18
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x20], 0x240
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
call dword [sym.imp.ntoskrnl.exe_IoGetDeviceAttachmentBaseRef]
mov dword [esi + 8], eax
cmp eax, edi
jne 0x19a7e
mov eax, dword [esi + 4]
mov dword [esi + 8], eax
push dword [esi + 8]
lea eax, [ebp - 0x14]
push 0x800
push edi
push edi
push edi
push edi
push 0x60
push 1
push 4
push 0x80
push edi
push eax
lea eax, [ebp - 0x2c]
push eax
push 0x10000
lea eax, [ebp - 4]
push eax
call dword [sym.imp.ntoskrnl.exe_IoCreateFileSpecifyDeviceObjectHint]
pop esi
pop ebx
test eax, eax
jl 0x19ad5
push 0xd
push 1
lea eax, [ebp + 0xb]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
mov byte [ebp + 0xb], 1
call dword [sym.imp.ntoskrnl.exe_ZwSetInformationFile]
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.ntoskrnl.exe_ZwDeleteFile]
jmp 0x19ae6
mov eax, 0xc000000e
pop edi
leave
ret 4
Function at 0x1a42c
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
push edi
push 4
pop esi
push 0x1c69a
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 8], esi
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
push esi
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0x18]
push eax
mov edi, 0x21908
push edi
call fcn.00011648
push 0x21298
call fcn.00019a0e
xor eax, eax
mov esi, 0x400
mov word [ebp - 0x10], ax
mov eax, esi
push esi
mov word [ebp - 0xe], ax
call fcn.00015866
xor ebx, ebx
mov dword [ebp - 0xc], eax
cmp eax, ebx
je 0x1a58f
movzx ecx, word [ebp - 0xe]
push ecx
push ebx
push eax
call sub.ntoskrnl.exe_memset
add esp, 0xc
push edi
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeStringToString]
test eax, eax
jl 0x1a506
push str.Enum
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeToString]
test eax, eax
jl 0x1a506
lea eax, [ebp - 0x10]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x30]
push eax
push 0xf003f
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x30], 0x18
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], 0x240
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
jl 0x1a506
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwDeleteKey]
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
xor eax, eax
push esi
mov word [ebp - 0x10], ax
push ebx
push dword [ebp - 0xc]
mov eax, esi
mov word [ebp - 0xe], ax
call sub.ntoskrnl.exe_memset
add esp, 0xc
push edi
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeStringToString]
test eax, eax
jl 0x1a587
push str.Security
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeToString]
test eax, eax
jl 0x1a587
lea eax, [ebp - 0x10]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x30]
push eax
push 0xf003f
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x30], 0x18
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], 0x240
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
jl 0x1a587
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwDeleteKey]
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
push dword [ebp - 0xc]
call fcn.00015880
lea eax, [ebp - 0x30]
push eax
push 0xf003f
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x30], 0x18
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], 0x240
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
pop edi
pop esi
pop ebx
test eax, eax
jl 0x1a5de
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwDeleteKey]
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwFlushKey]
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
leave
ret
Function at 0x1a5e6
Capabilities:
Create device object

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push edi
call fcn.00019952
mov edi, dword [ebp + 8]
push edi
mov dword [ebp - 4], eax
call fcn.00017ec0
xor ebx, ebx
cmp dword [ebp - 4], ebx
je 0x1a78c
push edi
call fcn.000183b6
test eax, eax
jl 0x1a78c
cmp byte [0x1f1ec], bl
je 0x1a62d
push 1
call fcn.0001801a
push eax
call fcn.00018614
push esi
push 0x70
call fcn.00015866
mov esi, eax
cmp esi, ebx
je 0x1a6e7
push 0x70
push ebx
push esi
call sub.ntoskrnl.exe_memset
mov dword [esi], 0x70
mov dword [esi + 4], 0x19b8e
mov dword [esi + 8], 0x19c00
mov dword [esi + 0xc], 0x19c72
mov dword [esi + 0x10], 0x19ce4
mov dword [esi + 0x14], 0x19d4e
mov dword [esi + 0x18], 0x19db8
mov dword [esi + 0x1c], 0x19e2e
mov dword [esi + 0x20], 0x19e9e
mov dword [esi + 0x24], 0x19f08
mov dword [esi + 0x28], 0x19f72
mov dword [esi + 0x34], 0x1967c
mov dword [esi + 0x38], 0x19fe8
mov dword [esi + 0x40], 0x1a052
mov dword [esi + 0x44], 0x1a0c2
mov dword [esi + 0x48], 0x1a126
mov dword [esi + 0x4c], 0x1a196
mov dword [esi + 0x50], 0x1a1fc
mov dword [esi + 0x54], 0x1a274
mov dword [esi + 0x58], 0x1a2ec
mov dword [esi + 0x5c], 0x1a350
mov dword [esi + 0x60], 0x1a3b6
add esp, 0xc
mov dword [edi + 0x28], esi
mov eax, dword [ebp - 4]
push 0x1f1d8
push ebx
push ebx
push dword [eax + 0x2c]
push ebx
push 0xc
push edi
call dword [sym.imp.ntoskrnl.exe_IoCreateDevice]
test eax, eax
jl 0x1a78b
mov eax, dword [0x1f1d8]
mov esi, dword [eax + 0x28]
lea eax, [esi + 4]
push eax
push dword [ebp - 4]
mov dword [esi], edi
mov dword [esi + 8], ebx
mov dword [eax], ebx
push dword [0x1f1d8]
call dword [sym.imp.ntoskrnl.exe_IoAttachDeviceToDeviceStackSafe]
push dword [0x1f1d8]
test eax, eax
jge 0x1a740
call dword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
mov dword [0x1f1d8], ebx
jmp 0x1a78b
call dword [sym.imp.ntoskrnl.exe_IoGetDeviceAttachmentBaseRef]
mov dword [esi + 8], eax
cmp eax, ebx
je 0x1a78b
call fcn.00018828
cmp byte [0x1f1ec], bl
je 0x1a781
push 0x214c0
push 0x21298
call fcn.00018126
test eax, eax
jl 0x1a774
call fcn.0001a42c
jmp 0x1a781
push 4
call fcn.0001801a
mov byte [0x1f1ec], bl
call fcn.0001905c
call fcn.000194a8
pop esi
pop edi
pop ebx
leave
ret 4
Function at 0x1a8fc
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push edi
xor edi, edi
cmp byte [0x1f1ec], 0
mov dword [ebp - 8], edi
jne 0x1a9d2
lea eax, [ebp - 4]
push eax
push edi
push edi
push edi
lea eax, [ebp - 0x28]
push eax
push 0xf003f
lea eax, [ebp - 8]
push eax
mov dword [ebp - 0x28], 0x18
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x1c], 0x200
mov dword [ebp - 0x20], 0x21908
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
call dword [sym.imp.ntoskrnl.exe_ZwCreateKey]
cmp dword [ebp - 8], edi
je 0x1a9d2
push ebx
push esi
mov esi, dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
xor ebx, ebx
push 0x1cb7a
lea eax, [ebp - 0x10]
inc ebx
push eax
mov dword [ebp - 4], ebx
call esi
push 4
lea eax, [ebp - 4]
push eax
push 4
push edi
mov edi, dword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 8]
call edi
push 0x1c69a
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 4], ebx
call esi
push 4
lea eax, [ebp - 4]
push eax
push 4
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 8]
call edi
push 0x1cb70
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 4], ebx
call esi
push 4
lea eax, [ebp - 4]
push eax
push 4
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 8]
call edi
push dword [ebp - 8]
call dword [sym.imp.ntoskrnl.exe_ZwClose]
pop esi
pop ebx
pop edi
leave
ret

Function at 0x1ab58
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
xor ebx, ebx
push esi
mov dword [ebp - 4], ebx
call fcn.0001a89c
mov eax, dword [ebp + 0xc]
mov dword [0x1db00], eax
mov eax, dword [ebp + 0x10]
push 1
mov esi, 0x21240
push esi
mov dword [0x1db04], eax
mov dword [0x1f1f0], ebx
mov byte [0x1f1f4], bl
call dword [sym.imp.ntoskrnl.exe_KeInitializeTimerEx]
push ebx
push 0x15f90
or ecx, 0xffffffff
push ecx
mov eax, 0xca5b1700
push eax
push esi
call dword [sym.imp.ntoskrnl.exe_KeSetTimerEx]
push ebx
push 0x1a798
push ebx
push ebx
lea eax, [ebp - 0x1c]
push eax
mov esi, 0x1f03ff
push esi
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x1c], 0x18
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], 0x200
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
cmp eax, ebx
jl 0x1ac06
push ebx
push 0x1f1f0
push ebx
push ebx
push esi
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, esi
pop esi
pop ebx
leave
ret 0xc
Function at 0x1ae74
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
mov edi, dword [sym.imp.ntoskrnl.exe_KeInitializeEvent]
xor esi, esi
push esi
push 1
mov dword [ebp - 4], esi
push 0x2122c
mov dword [0x21220], 1
mov dword [0x21224], esi
mov dword [0x21228], esi
call edi
push esi
push 1
push 0x21270
call edi
push esi
push 0x1ac12
push esi
push esi
lea eax, [ebp - 0x1c]
push eax
mov edi, 0x1f03ff
push edi
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x1c], 0x18
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x10], 0x200
mov dword [ebp - 0x14], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call dword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
cmp eax, esi
jl 0x1af0c
push esi
push 0x21280
push esi
push esi
push edi
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, esi
pop edi
pop esi
leave
ret

Function at 0x220be
Capabilities:
Create device object

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
call fcn.00022085
pop ebp
jmp fcn.00012afa
Function at 0x404ff2
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x30c0
call fcn.00401200
push ebx
push esi
push edi
lea ecx, [ebp - 0x30c0]
call fcn.00403848
xor edi, edi
push edi
lea eax, [ebp - 0x30c0]
push eax
push dword [ebp + 8]
push edi
call fcn.004065a5
test al, al
je 0x405197
cmp word [ebp - 0x2440], di
je 0x405197
lea eax, [ebp - 0x2440]
push eax
lea eax, [ebp - 0x2cc0]
push eax
call fcn.00407baf
push eax
call fcn.0040f110
test eax, eax
je 0x405197
lea eax, [ebp - 0x2440]
push eax
push dword [ebp + 8]
call fcn.00407baf
push eax
call fcn.0040f110
test eax, eax
jne 0x405197
mov word [ebp - 0x800], ax
xor ebx, ebx
mov esi, 0x400
cmp word [ebp - 0x800], di
jne 0x4050e8
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x800]
push eax
call fcn.0040e904
push ebx
push str.rtmp_d
push esi
lea eax, [ebp - 0x800]
push eax
call fcn.00407baf
push eax
call fcn.0040b120
add esp, 0x10
lea eax, [ebp - 0x800]
push eax
push edi
call fcn.00405ce1
test al, al
je 0x4050d0
xor eax, eax
mov word [ebp - 0x800], ax
add ebx, 0x7b
cmp ebx, 0x2710
jl 0x405081
cmp word [ebp - 0x800], di
je 0x405197
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x1000]
push eax
call fcn.0040e904
lea eax, [ebp - 0x2cc0]
push eax
call fcn.00407baf
push eax
lea eax, [ebp - 0x1000]
push eax
call fcn.00407baf
push eax
call fcn.0040af0c
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileW]
lea eax, [ebp - 0x800]
push eax
lea eax, [ebp - 0x1000]
push eax
call esi
test eax, eax
je 0x405197
lea ecx, [ebp - 0x1c20]
call fcn.00405403
push dword [ebp + 8]
xor bl, bl
push edi
call fcn.00405ce1
test al, al
jne 0x40515e
push 1
push dword [ebp + 8]
lea ecx, [ebp - 0x1c20]
push edi
call fcn.0040572a
mov bl, al
lea eax, [ebp - 0x1000]
push eax
lea eax, [ebp - 0x800]
push eax
call esi
test bl, bl
je 0x405188
lea ecx, [ebp - 0x1c20]
call fcn.0040546e
lea ecx, [ebp - 0x1c20]
call fcn.004054f3
lea ecx, [ebp - 0x1c20]
call fcn.004055c2
mov al, 1
jmp 0x405199
xor al, al
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4055e5
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esi + 0xc18], ebx
cmp byte [esi + 0x16], bl
je 0x4055ff
mov byte [ebp + 0x10], 1
mov dword [ebp - 4], 0x80000000
cmp byte [ebp + 0x14], bl
je 0x405612
mov dword [ebp - 4], 0xc0000000
mov dword [ebp + 0x14], 1
cmp byte [ebp + 0x10], bl
je 0x405625
mov dword [ebp + 0x14], 3
xor eax, eax
cmp byte [esi + 0x15], bl
setne al
dec eax
and eax, 0x8000000
mov edi, eax
call fcn.0040740e
test eax, eax
je 0x40565e
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x40565e
cmp word [eax], bx
je 0x40565e
push ebx
push edi
push 3
push ebx
push dword [ebp + 0x14]
push dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x405672
push ebx
push edi
push 3
push ebx
push dword [ebp + 0x14]
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40568e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x40568e
mov dword [esi + 0xc18], 1
cmp edi, 0xffffffff
setne byte [ebp + 0x13]
mov byte [esi + 0x12], bl
mov dword [esi + 0xc], ebx
mov byte [esi + 0x10], bl
cmp byte [ebp + 0x13], bl
je 0x4056f0
mov dword [esi + 4], edi
cmp dword [ebp + 0xc], ebx
je 0x4056bc
push dword [ebp + 0xc]
lea eax, [esi + 0x418]
push eax
call fcn.0040af0c
jmp 0x4056c5
xor eax, eax
mov word [esi + 0x418], ax
lea eax, [esi + 0x17]
cmp dword [ebp + 8], ebx
je 0x4056d8
push dword [ebp + 8]
push eax
call fcn.0040ada1
jmp 0x4056e6
push 0x1000000
push eax
push dword [ebp + 0xc]
call fcn.0040eefd
push dword [esi + 4]
mov ecx, esi
call fcn.00405447
mov al, byte [ebp + 0x13]
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x405827
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0xc], 1
mov esi, 0x4e20
jne 0x40584d
cmp dword [ebp + 0xc], esi
jbe 0x405842
mov dword [ebp + 0xc], esi
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [edi + 4], eax
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40589d
mov ecx, edi
call fcn.0040559f
test al, al
je 0x405883
cmp dword [ebp + 0xc], esi
jbe 0x405883
push esi
push dword [ebp + 8]
mov ecx, edi
call fcn.00405827
jmp 0x4058a0
cmp dword [edi + 0xc], 1
jne 0x405898
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x405898
xor eax, eax
jmp 0x4058a0
or eax, 0xffffffff
jmp 0x4058a0
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 8
Function at 0x40b37c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
cmp dword [0x4150b0], 0
push ebx
push esi
push edi
mov edi, 0x400
jne 0x40b3c7
push 0x64
lea eax, [ebp - 0x12c]
push eax
push 0xf
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ax, word [ebp - 0x12c]
mov word [0x422240], ax
xor eax, eax
mov word [0x422242], ax
mov dword [0x4150b0], 0x422240
lea eax, [ebp - 0x64]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040e92e
mov ebx, dword [ebp + 0x14]
mov esi, dword [ebp + 0x10]
push ebx
push esi
xor eax, eax
push 0x4150a0
mov word [esi], ax
lea eax, [ebp - 0x64]
push eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
xor eax, eax
pop edi
mov word [esi + ebx*2 - 2], ax
pop esi
pop ebx
leave
ret 0x10

Function at 0x40b746
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
push edi
push 0x68
push dword [0x41c200]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp byte [0x41d314], 0
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
mov edi, eax
mov dword [ebp - 4], edi
mov ebx, 0xb1
jne 0x40b7a8
mov ecx, dword [0x41b0d4]
call fcn.004069fc
push 5
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0xffffffffffffffff
push 0
push ebx
push edi
call esi
push 0x41373c
push 0
push 0xc2
push edi
call esi
mov byte [0x41d314], 1
mov edi, 0x5f5e100
push edi
push edi
push ebx
push dword [ebp - 4]
call esi
lea eax, [ebp - 0x60]
push eax
push 0
push 0x43a
push dword [ebp - 4]
mov dword [ebp - 0x60], 0x5c
call esi
xor eax, eax
inc eax
cmp byte [ebp + 8], 0
mov byte [ebp - 0x47], 0
mov dword [ebp - 0x5c], eax
je 0x40b7f8
mov ecx, dword [ebp - 0x58]
and ecx, 0xbfffffff
or ecx, eax
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x4c], 0xa0
mov dword [ebp - 0x5c], 0x40000001
lea ecx, [ebp - 0x60]
push ecx
push eax
push 0x444
push dword [ebp - 4]
call esi
push dword [ebp + 0xc]
push 0
push 0xc2
push dword [ebp - 4]
call esi
push edi
push edi
push ebx
push dword [ebp - 4]
call esi
cmp byte [ebp + 8], 0
je 0x40b842
mov eax, dword [ebp - 0x58]
and eax, 0xfffffffe
or eax, 0x40000000
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x60]
push eax
push 1
push 0x444
push dword [ebp - 4]
call esi
push 0x413760
push 0
push 0xc2
push dword [ebp - 4]
call esi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40c175
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2000
call fcn.00401200
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 8]
test ebx, ebx
je 0x40c190
mov byte [ebx], 0
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x40c19a
mov byte [eax], 0
test edi, edi
je 0x40c243
movzx eax, word [edi]
test ax, ax
je 0x40c243
push esi
xor esi, esi
xor ecx, ecx
movzx eax, ax
inc edi
inc edi
cmp ax, 0x3d
jne 0x40c1d3
cmp dword [ebp + 0xc], 0
je 0x40c1df
test esi, esi
jne 0x40c1df
test ebx, ebx
je 0x40c1cf
mov byte [ebx], 1
mov esi, edx
jmp 0x40c1ee
cmp ax, 0xd
je 0x40c201
cmp ax, 0xa
je 0x40c203
mov word [edx], ax
mov eax, dword [ebp + 0x14]
inc edx
add eax, 0xfffffffe
inc edx
cmp ecx, eax
jg 0x40c1f9
movzx eax, word [edi]
inc ecx
test ax, ax
jne 0x40c1b3
jmp 0x40c203
mov eax, dword [ebp + 0x10]
mov byte [eax], 1
jmp 0x40c203
inc edi
inc edi
mov ebx, dword [ebp + 0xc]
xor eax, eax
mov word [edx], ax
test ebx, ebx
je 0x40c23e
mov word [ebx], ax
test esi, esi
je 0x40c23e
push 0x1000
lea eax, [ebp - 0x2000]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push dword [ebp + 0x14]
lea eax, [ebp - 0x2000]
push eax
push ebx
call fcn.0040e904
xor eax, eax
mov word [esi], ax
mov eax, edi
pop esi
jmp 0x40c245
xor eax, eax
pop edi
pop ebx
leave
ret 0x10

Function at 0x40c28a
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
push 0x400
lea eax, [ebp - 0x820]
push eax
call fcn.00412602
cmp byte [0x41d315], 0
jne 0x40c318
push 6
push dword [0x41509c]
lea eax, [ebp - 0x820]
push eax
call fcn.00407baf
push eax
call fcn.0040f1cd
test eax, eax
jne 0x40c318
push 0x4137f4
call fcn.004125ef
lea eax, [ebp - 0x820]
push eax
call fcn.0040aee2
xor ecx, ecx
push 0x1e
mov word [ebp + eax*2 - 0x81e], cx
push ecx
lea eax, [ebp - 0x20]
push eax
call fcn.0040abb3
push 0x14
pop eax
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x820]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x1c], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
leave
ret

Function at 0x40c3df
Capabilities:
Delete file

Disassembly:
push ebx
xor ebx, ebx
mov byte [0x41c1f1], 1
cmp dword [0x41c200], ebx
je 0x40c407
push 0x7d
call fcn.0040a21e
push eax
push 2
push dword [0x41c200]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov eax, dword [0x41c200]
mov dword [0x41c1f4], ebx
mov byte [0x41c1f0], 1
cmp eax, ebx
je 0x40c468
push 1
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [0x41d324], ebx
jne 0x40c436
cmp byte [0x41d314], bl
je 0x40c43e
cmp dword [0x41c1f8], ebx
jne 0x40c460
push ebx
push 1
push 0x111
push dword [0x41c200]
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x40c460
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.0040b33d
cmp dword [0x41c200], ebx
jne 0x40c454
cmp byte [0x41c208], bl
pop ebx
je 0x40c476
jmp fcn.0040c28a
ret