joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4638d1
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4c4080]
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.00458a37
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.00458a37
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 0x463948
cmp word [ecx], dx
je 0x463948
mov eax, dword [0x472b4c]
push edi
dec eax
push eax
push 0x472a38
call fcn.00463870
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x4639bb
cmp word [eax], dx
je 0x4639bb
mov eax, dword [edi]
test eax, eax
je 0x46396c
cmp word [eax], dx
je 0x46396c
lea eax, [ebp - 0x10]
push eax
call fcn.00463253
jmp 0x463975
lea eax, [ebp - 0x10]
push eax
call fcn.004632ee
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x4639e5
mov eax, dword [0x472a34]
push dword [ebp - 0x14]
dec eax
push eax
push 0x472728
call fcn.00463870
add esp, 0xc
test al, al
je 0x4639e5
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x4639b0
cmp word [eax], di
je 0x4639b0
lea eax, [ebp - 0x10]
push eax
call fcn.00463253
pop ecx
jmp 0x4639e7
lea eax, [ebp - 0x10]
push eax
call fcn.004632ee
jmp 0x4639ad
mov eax, dword [edi]
test eax, eax
je 0x4639d2
cmp word [eax], dx
je 0x4639d2
lea eax, [ebp - 0x10]
push eax
call fcn.00463208
pop ecx
jmp 0x4639e5
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 0x463ab0
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.004636f5
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x463ab0
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x463ab0
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x463ab0
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x463a3d
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.0045b449
test ebx, ebx
je 0x463aab
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.0045b449
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x463ab0
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 0x463ab0
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.00467d49
add esp, 0x10
xor eax, eax
inc eax
jmp 0x463ab2
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044279c
leave
ret
Function at 0x4683e5
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00468361
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x468554
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x468554
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x468509
jg 0x468441
test eax, eax
je 0x4684ff
push 1
push 0x1000
call fcn.00458568
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x468464
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4684f6
push 0x8000
push ebx
call fcn.00455c7a
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x46848d
jg 0x468488
cmp ecx, 0x1000
jb 0x46848d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0045c096
add esp, 0x10
cmp eax, 0xffffffff
je 0x4684d2
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x468488
jl 0x4684b9
test ecx, ecx
jne 0x46847a
push dword [ebp - 0xc]
push ebx
call fcn.00455c7a
push esi
call fcn.00458deb
add esp, 0xc
xor ebx, ebx
jmp 0x468562
cmp byte [edi + 0x24], 0
je 0x4684e9
cmp dword [edi + 0x20], 5
jne 0x4684e9
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4684f4
mov ebx, dword [edi + 0x18]
jmp 0x4684f6
xor ebx, ebx
push esi
call fcn.00458deb
pop ecx
jmp 0x468562
test ecx, ecx
jg 0x4684cb
jl 0x468509
test eax, eax
jae 0x4684cb
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0045a1fc
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x468529
cmp byte [edi + 0x1c], 0
je 0x4684cb
jmp 0x46855a
push ebx
call fcn.004617cc
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4684cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x468562
cmp byte [edi + 0x1c], 0
je 0x46855f
mov ebx, dword [edi + 0x18]
jmp 0x468562
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0045a1fc
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4693d0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4693fd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4693fd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x10001430
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10001446
test al, 0x10
je 0x10001446
mov eax, 1
ret
xor eax, eax
ret

Function at 0x10001450
Capabilities:
Delete registry value

Disassembly:
push ecx
lea eax, [esp]
push eax
push 0x20006
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000148b
push esi
push dword [esp + 0xc]
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [esp + 4]
neg eax
sbb esi, esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esi + 1]
pop esi
pop ecx
ret
xor eax, eax
pop ecx
ret
Function at 0x10001490
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x190
cmp dword [0x100176f0], 0
push esi
push edi
mov edi, edx
je 0x100014b4
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x1000166f
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push esi
call edi
mov dword [0x100176ec], eax
test eax, eax
je 0x1000166f
push dword [ebp + 8]
push esi
call edi
mov dword [0x10017704], eax
test eax, eax
je 0x1000166f
push dword [ebp + 0xc]
push esi
call edi
mov dword [0x100176d4], eax
test eax, eax
je 0x1000166f
push dword [ebp + 0x10]
push esi
call edi
mov dword [0x100176e0], eax
test eax, eax
je 0x1000166f
push dword [ebp + 0x14]
push esi
call edi
mov dword [0x100176dc], eax
test eax, eax
je 0x1000166f
push dword [ebp + 0x18]
push esi
call edi
mov dword [0x100176f8], eax
test eax, eax
je 0x1000166f
push dword [ebp + 0x1c]
push esi
call edi
mov dword [0x10017724], eax
test eax, eax
je 0x1000166f
push dword [ebp + 0x20]
push esi
call edi
mov dword [0x100176f4], eax
test eax, eax
je 0x1000166f
push dword [ebp + 0x24]
push esi
call edi
mov dword [0x10017714], eax
test eax, eax
je 0x1000166f
push dword [ebp + 0x28]
push esi
call edi
mov dword [0x10017720], eax
test eax, eax
je 0x1000166f
push dword [ebp + 0x2c]
push esi
call edi
mov dword [0x10017708], eax
test eax, eax
je 0x1000166f
push dword [ebp + 0x30]
push esi
call edi
mov dword [0x100176d8], eax
test eax, eax
je 0x1000166f
push dword [ebp + 0x34]
push esi
call edi
mov dword [0x1001772c], eax
test eax, eax
je 0x1000166f
push dword [ebp + 0x38]
push esi
call edi
mov dword [0x10017718], eax
test eax, eax
je 0x1000166f
push dword [ebp + 0x3c]
push esi
call edi
mov dword [0x10017710], eax
test eax, eax
je 0x1000166f
push dword [ebp + 0x40]
push esi
call edi
mov dword [0x1001771c], eax
test eax, eax
je 0x1000166f
push dword [ebp + 0x44]
push esi
call edi
mov dword [0x100176e4], eax
test eax, eax
je 0x1000166f
push dword [ebp + 0x48]
push esi
call edi
mov dword [0x100176e8], eax
test eax, eax
je 0x1000166f
push dword [ebp + 0x4c]
push esi
call edi
mov dword [0x10017728], eax
test eax, eax
je 0x1000166f
push dword [ebp + 0x50]
push esi
call edi
mov dword [0x1001770c], eax
test eax, eax
je 0x1000166f
push dword [ebp + 0x54]
push esi
call edi
mov dword [0x100176fc], eax
test eax, eax
je 0x1000166f
push dword [ebp + 0x58]
push esi
call edi
mov dword [0x10017700], eax
test eax, eax
je 0x1000166f
lea eax, [esp + 8]
push eax
push 0x101
call dword [0x100176ec]
neg eax
sbb eax, eax
inc eax
mov dword [0x100176f0], eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x100019a0
Capabilities:
Set registry value

Disassembly:
mov eax, dword [0x10016384]
sub esp, 8
push esi
mov esi, dword [sym.imp.KERNEL32.dll_TerminateJobObject]
test eax, eax
je 0x100019c2
push 0
push eax
call esi
mov dword [0x10016384], 0
mov eax, dword [0x10016378]
test eax, eax
je 0x100019da
push 0
push eax
call esi
mov dword [0x10016378], 0
mov eax, dword [0x1001637c]
test eax, eax
je 0x100019f2
push 0
push eax
call esi
mov dword [0x1001637c], 0
mov eax, dword [0x10016374]
test eax, eax
je 0x10001a0a
push 0
push eax
call esi
mov dword [0x10016374], 0
mov eax, dword [0x10016380]
test eax, eax
je 0x10001a22
push 0
push eax
call esi
mov dword [0x10016378], 0
cmp dword [0x10016c89], 0x2000
mov dword [esp + 4], 0
pop esi
jbe 0x10001a76
lea eax, [esp]
push eax
push 0xf013f
push 0
push dword [0x10016ba0]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10001a76
push 4
mov dword [esp + 8], eax
lea eax, [esp + 8]
push eax
push 4
push 0
push dword [0x10016ba4]
push dword [esp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 1
push 0x10001910
push dword [0x10016388]
call dword [sym.imp.USER32.dll_EnumDesktopWindows]
add esp, 8
ret
Function at 0x10001d40
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x178
lea eax, [esp + 4]
push eax
push 0xf003f
push 0
push dword [0x10016b80]
push 0x80000001
call dword [0x10016598]
test eax, eax
jne 0x10001e89
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
lea eax, [esp + 0x14]
push edi
push 0x64
push eax
xor edi, edi
push edi
push dword [esp + 0x18]
call ebp
test eax, eax
jne 0x10001e87
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
nop dword [eax]
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push dword [0x10016b8c]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x24]
push eax
call esi
lea eax, [esp + 0x10]
mov dword [esp + 0x18], 0x104
push eax
push 0x20019
push 0
lea eax, [esp + 0x2c]
push eax
push dword [esp + 0x24]
call dword [0x10016598]
test eax, eax
jne 0x10001e6e
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x88]
push eax
push 0
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
push dword [esp + 0x10]
neg eax
sbb esi, esi
call ebx
add esi, 1
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
je 0x10001e6e
cmp dword [esp + 0x18], 0
je 0x10001e6e
mov eax, dword [esp + 0x1c]
push dword [0x10016b88]
mov byte [esp + eax + 0x24], 0
lea eax, [esp + 0x24]
push eax
call esi
lea eax, [esp + 0x10]
push eax
push 0x20006
push 0
lea eax, [esp + 0x2c]
push eax
push dword [esp + 0x24]
call dword [0x10016598]
test eax, eax
jne 0x10001e6e
push eax
lea eax, [esp + 0x88]
push eax
push 1
push 0
push dword [esp + 0x20]
call dword [0x10016594]
push dword [esp + 0x10]
call ebx
push 0x64
lea eax, [esp + 0x24]
inc edi
push eax
push edi
push dword [esp + 0x20]
call ebp
test eax, eax
je 0x10001da0
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x178
ret
Function at 0x10001e90
Capabilities:
Get common file path
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x6e8
push ebx
push ebp
push esi
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0
push eax
push 0xf013f
xor ebx, ebx
mov dword [esp + 0x1c], 4
push ebx
push dword [0x10016b14]
mov dword [esp + 0x2c], 4
push 0x80000001
mov dword [esp + 0x34], 2
call dword [0x10016598]
test eax, eax
jne 0x10001f2d
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x24]
push eax
push ebx
push dword [0x10016b18]
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10001f0b
cmp dword [esp + 0x18], 2
setne bl
test ebx, ebx
je 0x10001f31
push 4
lea eax, [esp + 0x24]
push eax
push 4
push 0
push dword [0x10016b18]
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
neg eax
sbb ebx, ebx
inc ebx
jmp 0x10001f31
mov dword [esp + 0x10], ebx
push 0x104
lea eax, [esp + 0xec]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
mov esi, eax
test esi, esi
je 0x1000209e
push dword [0x100167f4]
lea eax, [esp + 0xec]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
add esi, 0xd
je 0x1000209e
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
xor eax, eax
mov word [esp + 0x2f0], ax
lea eax, [esp + 0xe8]
push eax
lea eax, [esp + 0x2f4]
push eax
call esi
push 0x44
lea eax, [esp + 0x3c]
push 0
push eax
call fcn.100010d0
add esp, 0xc
mov dword [esp + 0x38], 0x44
lea eax, [esp + 0x80]
push 0x100163c0
push eax
call esi
lea eax, [esp + 0x80]
mov dword [esp + 0x40], eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x3c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x310]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ebp, eax
test ebp, ebp
je 0x10002092
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x10001fff
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x28]
test eax, eax
mov esi, dword [esp + 0x24]
cmovne esi, eax
test esi, esi
je 0x10002053
mov eax, dword [0x10016384]
test eax, eax
jne 0x1000202a
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateJobObjectW]
mov dword [0x10016384], eax
test eax, eax
je 0x10002032
push esi
push eax
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, 1
call fcn.10001a90
push esi
call dword [0x10016590]
push esi
call dword [0x10016590]
jmp 0x1000205d
mov ecx, 1
call fcn.10001a90
test ebx, ebx
je 0x10002083
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10002092
push dword [esp + 0x14]
lea ecx, [esp + 0x1c]
push ecx
push 4
push 0
push dword [0x10016b18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10002092
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x6e8
ret
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x6e8
ret
Function at 0x10002a30
Capabilities:
Read .ini file

Disassembly:
sub esp, 0xcc
push ebx
push ebp
push esi
push edi
mov ebx, ecx
mov dword [esp + 0x10], edx
push ebx
push 0x64
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesW]
test eax, eax
je 0x10002a98
xor esi, esi
cmp word [esp + 0x14], si
je 0x10002a98
mov ebp, dword [esp + 0xe0]
lea edi, [esp + 0x14]
push ebx
push 0
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
test eax, eax
jne 0x10002aa5
cmp word [edi], ax
je 0x10002a89
nop word [eax + eax]
inc esi
cmp word [esp + esi*2 + 0x14], 0
jne 0x10002a80
inc esi
lea edi, [esp + 0x14]
cmp word [edi + esi*2], 0
lea edi, [edi + esi*2]
jne 0x10002a66
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xcc
ret
push edi
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0xcc
ret

Function at 0x10002ac0
Capabilities:
Check if file exists
Get file attributes
Get file size
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x20c
lea eax, [esp + 4]
push ebp
push esi
push ecx
push eax
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea eax, [esp + 0xc]
push eax
call esi
cmp eax, 0xffffffff
je 0x10002c27
test al, 0x10
je 0x10002c27
push dword [0x100168e4]
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [esp + 0xc]
push eax
call esi
cmp eax, 0xffffffff
je 0x10002c27
test al, 0x10
jne 0x10002c27
push ebp
push ebp
push 3
push ebp
push ebp
push 0x10000000
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10002c1c
push ebx
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0x64
jbe 0x10002c14
push edi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x10002c13
push ebp
lea eax, [esp + 0x14]
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10002c0c
mov edx, dword [0x10016b78]
mov ecx, edi
call fcn.10001370
test eax, eax
jne 0x10002c0c
mov edx, dword [0x10016b74]
mov ecx, edi
call fcn.10001370
mov ebp, eax
test ebp, ebp
je 0x10002bd7
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x10002bd7
push 0x31
push dword [0x10016b78]
push ebp
call section..text
add esp, 0xc
lea eax, [esp + 0x10]
push 0
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebp, eax
jmp 0x10002c0c
push 0
lea eax, [esp + 0x14]
push eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
push esi
call ebx
test eax, eax
je 0x10002c0a
push 0
lea eax, [esp + 0x14]
push eax
push 0x31
push dword [0x10016b78]
push esi
call ebx
test eax, eax
je 0x10002c0a
mov ebp, 1
jmp 0x10002c0c
xor ebp, ebp
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop esi
mov eax, ebp
pop ebp
add esp, 0x20c
ret
pop esi
xor eax, eax
pop ebp
add esp, 0x20c
ret
Function at 0x10003e60
Capabilities:
Move file

Disassembly:
sub esp, 0x208
push esi
push edi
mov edi, ecx
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
lea eax, [esp + 8]
lea edx, [esi + esi]
push edx
push edi
push eax
call section..text
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push dword [0x1001680c]
lea eax, [esp + 0x10]
lea eax, [eax + esi*2]
push eax
call fcn.10001220
add esp, 0xc
lea eax, [esp + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileW]
pop edi
pop esi
add esp, 0x208
ret
Function at 0x10003ec0
Capabilities:
Create process on windows
Delete file
Get common file path
Get file size
Read file on windows

Disassembly:
sub esp, 0x66c
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [esp + 0x6c]
push edi
push eax
xor edi, edi
mov ebx, edx
push edi
push edi
push 0x10017280
mov dword [esp + 0x24], ebx
mov ebp, ecx
mov dword [esp + 0x20], edi
call esi
test eax, eax
jne 0x10003f0d
lea eax, [esp + 0x70]
push eax
push edi
push edi
push 0x10017490
call esi
test eax, eax
jne 0x10003f0d
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x66c
ret
mov eax, 0x22
mov word [esp + 0x278], ax
lea eax, [esp + 0x27a]
push 0x10017078
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push dword [0x10016800]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [esp + 0x27c]
push eax
call esi
push ebp
lea eax, [esp + 0x27c]
push eax
call esi
push dword [0x10016804]
lea eax, [esp + 0x27c]
push eax
call esi
lea eax, [esp + 0x70]
push eax
lea eax, [esp + 0x27c]
push eax
call esi
push dword [0x10016808]
lea eax, [esp + 0x27c]
push eax
call esi
push 0x44
lea eax, [esp + 0x2c]
push 0
push eax
call fcn.100010d0
xor eax, eax
mov dword [esp + 0x34], 0x44
push 0x44
push eax
mov word [esp + 0x6c], ax
lea eax, [esp + 0x3c]
push eax
mov dword [esp + 0x48], 0x100163c0
mov dword [esp + 0x6c], 1
call fcn.100010d0
add esp, 0x18
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x2c]
push eax
push 0
push 0
push 0
push 1
push 0
push 0
lea eax, [esp + 0x298]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x100040bd
mov eax, dword [esp + 0x18]
mov ebp, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x10004008
push 0x2710
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esp + 0x18]
call ebp
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x10004013
push eax
call ebp
push 0
push 0
push 3
push 0
push 0
push 0x80000000
lea eax, [esp + 0x88]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10004090
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test ebx, ebx
je 0x10004089
lea eax, [ebx + 8]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
test edi, edi
je 0x10004089
push 0
lea eax, [esp + 0x14]
push eax
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10004074
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x10004081
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [esp + 0x10]
xor edi, edi
mov dword [eax + edi - 2], 0xa0d
push esi
call ebp
mov ebx, dword [esp + 0x14]
lea eax, [esp + 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test edi, edi
je 0x100040bd
push edi
push edi
call dword [sym.imp.USER32.dll_OemToCharA]
mov eax, dword [esp + 0x10]
add eax, 2
mov dword [ebx], eax
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x66c
ret
xor eax, eax
mov dword [ebx], eax
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x66c
ret
Function at 0x10004140
Capabilities:
Terminate thread

Disassembly:
sub esp, 8
mov eax, dword [edx]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x20]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
push edi
mov edi, dword [ecx]
test edi, edi
mov ebx, dword [esi]
mov ebp, dword [eax]
mov dword [ecx], 0
mov dword [edx], 0
mov dword [eax], 0
mov eax, dword [esp + 0x20]
mov dword [esp + 0x10], edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [eax], 0
mov dword [esi], 0
mov esi, dword [sym.imp.KERNEL32.dll_TerminateThread]
je 0x1000419f
push 0
push dword [esp + 0x14]
call esi
push dword [esp + 0x10]
call edi
mov eax, dword [esp + 0x14]
test eax, eax
je 0x100041b3
push 0
push eax
call esi
mov eax, dword [esp + 0x14]
push eax
call edi
test ebp, ebp
je 0x100041bf
push 0
push ebp
call esi
push ebp
call edi
test ebx, ebx
je 0x100041cb
push 0
push ebx
call esi
push ebx
call edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret