joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4038a0
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 0x28]
sub esp, 0x18
push ebx
push ebp
xor ebx, ebx
xor ebp, ebp
cmp eax, 0x80000301
ja 0x403921
je 0x403912
cmp eax, 0x80000101
ja 0x40390b
je 0x403912
cmp eax, 0x80000004
je 0x4038ec
cmp eax, 0x80000005
jne 0x403936
mov eax, dword [esp + 0x40]
mov dword [esp + 8], 3
test eax, eax
je 0x403983
mov ebx, dword [eax + 4]
lea ebp, [eax + 8]
jmp 0x403983
mov eax, dword [esp + 0x40]
mov dword [esp + 8], 1
push eax
call dword [0x41ca8c]
mov ebp, dword [esp + 0x44]
mov ebx, eax
add esp, 4
inc ebx
jmp 0x403983
cmp eax, 0x80000201
jne 0x403936
mov ebx, 4
lea ebp, [esp + 0x40]
mov dword [esp + 8], ebx
jmp 0x403983
cmp eax, 0x80000401
je 0x40396e
cmp eax, 0x80000501
je 0x403956
cmp eax, 0x80000601
je 0x40393e
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
fld qword [esp + 0x40]
mov ebx, 4
mov dword [esp + 8], ebx
call fcn.00405f28
mov dword [esp + 0xc], eax
jmp 0x40397f
fld dword [esp + 0x40]
mov ebx, 4
mov dword [esp + 8], ebx
call fcn.00405f28
mov dword [esp + 0xc], eax
jmp 0x40397f
mov ecx, dword [esp + 0x40]
mov ebx, 4
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ecx
lea ebp, [esp + 0xc]
mov edx, dword [esp + 0x28]
push esi
push edx
call fcn.00405410
mov esi, eax
mov eax, dword [esp + 0x3c]
push eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x20], 0
call dword [0x41ca8c]
add esp, 8
test esi, esi
je 0x403a5c
test eax, eax
je 0x403a5c
inc eax
push edi
push eax
call fcn.0040eb1a
mov edi, dword [esp + 0x40]
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x5c
mov eax, ecx
mov esi, edi
mov edi, edx
push edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov dword [esp + 0x2c], edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00405f00
mov esi, eax
add esp, 0xc
test esi, esi
je 0x4039fe
mov byte [esi], 0
inc esi
mov edi, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
lea ecx, [esp + 0x18]
push 0
push ecx
push 0
push 0x20006
push 0
push 0
push 0
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x403a52
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
push ebx
push ebp
push eax
push 0
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x403a47
mov dword [esp + 0x1c], 1
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call fcn.0040eb43
add esp, 4
pop edi
mov eax, dword [esp + 0x18]
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x403b00
Capabilities:
Read .ini file

Disassembly:
push ebx
push ebp
push esi
push edi
push 0x400
call fcn.0040eb1a
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x40]
mov ecx, dword [esp + 0x28]
add esp, 4
mov esi, eax
mov eax, dword [esp + 0x30]
push ebx
push 0x400
push esi
push ebp
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp eax, 0x3ff
jl 0x403b6a
push esi
lea edi, [eax + 0x400]
call fcn.0040eb43
push edi
call fcn.0040eb1a
mov edx, dword [esp + 0x38]
add esp, 8
mov esi, eax
mov eax, dword [esp + 0x24]
push ebx
push edi
push esi
push ebp
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
dec edi
cmp eax, edi
jge 0x403b3a
push esi
xor edi, edi
call dword [0x41ca8c]
add esp, 4
test eax, eax
je 0x403b86
push eax
push esi
call fcn.00405460
add esp, 8
mov edi, eax
push esi
call fcn.0040eb43
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x4114e9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x41152b
call fcn.00414840
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x41152b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x411522
xor eax, eax
jmp 0x411533
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00411539
pop edi
pop esi
pop ebx
ret 4
Function at 0x4124c7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x4160d4
call fcn.00406db0
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.00414840
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x412506
call fcn.00414840
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x412514
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x412522
or eax, 0xffffffff
jmp 0x41260a
mov ecx, esi
call fcn.0041243d
mov dword [ebp - 0x14], eax
call fcn.0040fb2f
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x412559
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x412559
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.0040fae3
push dword [ebp - 0x14]
call fcn.0040f615
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.004121d5
cmp eax, edi
je 0x4125cc
test byte [esi + 0x24], 0x10
je 0x41259a
push 4
mov ecx, esi
pop ebx
call fcn.0040f015
test ah, 1
je 0x412592
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.0041163b
cmp dword [esi + 0x1c], edi
je 0x4125cc
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0040f049
jmp 0x4125cc
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x4125e0
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x4125f9
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x4125f9
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.00412477
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x4143ad
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4143db
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4143f9
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00414313
jmp 0x4143f9
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4143f9
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00414313
test edi, edi
mov eax, edi
jne 0x4143e3
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x41f993
Capabilities:
Parse pe header

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

Function at 0x432150
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43217d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43217d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x4019a2
Capabilities:
Encode data using xor

Disassembly:
mov esi, section.CODE
mov dword [0x4099a1], 0x400
mov ebx, 0xffffffff
mov dword [0x409999], 4
push 0x409999
push 4
push 0x409995
push esi
push dword [0x4093ee]
call dword [0x408b59]
mov eax, dword [0x409995]
xor ebx, eax
add esi, 4
dec dword [0x4099a1]
jne 0x4019b6
mov eax, ebx
ret

Function at 0x4028f5
Capabilities:
Encode data using xor

Disassembly:
push dword [0x406004]
call dword [0x408b85]
mov esi, eax
mov ecx, dword [0x406030]
mov al, cl
xor al, ch
xor edi, edi
xor ebx, ebx
mov dl, byte [esi]
xor al, dl
not al
mov byte [esi], al
add dl, byte [edi + 0x406207]
add dl, bl
mov al, dl
inc esi
inc edi
add bl, 3
and edi, 0xf
dec ecx
jne 0x402911
ret

Function at 0x40292f
Capabilities:
Encode data using xor

Disassembly:
push dword [0x40603c]
call dword [0x408b85]
mov esi, eax
mov ecx, dword [0x406014]
xor edi, edi
xor ebx, ebx
xor edx, edx
add dl, byte [edi + 0x406207]
add dl, bl
mov al, dl
not al
xor byte [esi], al
inc esi
inc edi
add bl, 3
and edi, 0xf
dec ecx
jne 0x402949
ret

Function at 0x405090
Capabilities:
Encode data using xor

Disassembly:
push edx
push ebx
xor eax, eax
mov bl, byte [0x408364]
and bl, 1
shl eax, 1
mov edx, dword [0x408364]
shr edx, 9
xor bl, dl
shr edx, 5
xor bl, dl
bt ebx, 1
rcr dword [0x408364], 1
setb bl
or al, bl
dec cl
jne 0x40509d
pop ebx
pop edx
ret
Function at 0x10ee2
Capabilities:
Print debug messages

Disassembly:
push esi
push edi
xor esi, esi
cmp dword [esi*4 + 0x115a0], 0
je 0x10ef6
inc esi
cmp esi, 0x1f
jb 0x10ee6
mov edi, dword [esp + 0xc]
push edi
push esi
push 0x10ece
call sub.ntoskrnl.exe_DbgPrint
and dword [esi*4 + 0x115a4], 0
add esp, 0xc
mov dword [esi*4 + 0x115a0], edi
pop edi
mov eax, esi
pop esi
ret 4

Function at 0x11104
Capabilities:
Print debug messages

Disassembly:
mov eax, dword [esp + 4]
mov cl, byte [eax]
movzx ecx, cl
push esi
lea esi, [eax + 1]
mov eax, ecx
sub eax, 0
je 0x111d5
dec eax
je 0x111be
dec eax
je 0x111a3
dec eax
je 0x11188
dec eax
je 0x1116d
dec eax
je 0x11152
dec eax
je 0x1113d
push ecx
push 0x1107a
jmp 0x111db
push 0x11092
call sub.ntoskrnl.exe_DbgPrint
pop ecx
call fcn.00011022
jmp 0x111e2
push esi
push 0x1109e
call sub.ntoskrnl.exe_DbgPrint
pop ecx
pop ecx
push esi
call fcn.00011048
push eax
call fcn.000112c1
jmp 0x111e2
push esi
push 0x110ae
call sub.ntoskrnl.exe_DbgPrint
pop ecx
pop ecx
push esi
call fcn.00011048
push eax
jmp section..htext
push esi
push 0x110be
call sub.ntoskrnl.exe_DbgPrint
pop ecx
pop ecx
push esi
jmp 0x11a8c
push esi
push 0x110ce
call sub.ntoskrnl.exe_DbgPrint
pop ecx
pop ecx
push esi
call fcn.00011048
push eax
call fcn.00010f20
jmp 0x111e2
mov esi, dword [esi]
push esi
push 0x110e2
call sub.ntoskrnl.exe_DbgPrint
pop ecx
pop ecx
push esi
call fcn.00010ee2
jmp 0x111e2
push esi
push 0x110f2
call sub.ntoskrnl.exe_DbgPrint
pop ecx
pop ecx
mov al, 1
pop esi
ret 8

Function at 0x112c1
Capabilities:
Persist via run registry key
Print debug messages
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
push edi
mov edi, dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
push 0x111e8
lea eax, [ebp - 0xc]
push eax
call edi
mov esi, dword [ebp + 8]
push esi
call fcn.0001054c
lea eax, [esi + eax*2]
jmp 0x112f0
cmp word [eax], 0x5c
je 0x112fa
dec eax
dec eax
cmp eax, esi
jne 0x112e8
cmp word [eax], 0x5c
jne 0x112fc
inc eax
inc eax
push eax
lea eax, [ebp - 0x14]
push eax
call edi
lea eax, [ebp - 0xc]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x2c]
push eax
xor edi, edi
push 0xf003f
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x2c], 0x18
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x20], 0xc0
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
call dword [sym.imp.ntoskrnl.exe_ZwOpenKey]
test eax, eax
je 0x11340
push 0x11268
jmp 0x11363
push esi
call fcn.0001054c
shl eax, 1
push eax
push esi
push 1
push edi
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
call dword [sym.imp.ntoskrnl.exe_ZwSetValueKey]
test eax, eax
je 0x1136c
push 0x1127c
call sub.ntoskrnl.exe_DbgPrint
xor eax, eax
jmp 0x11379
push 0x112a0
call sub.ntoskrnl.exe_DbgPrint
xor eax, eax
inc eax
pop ecx
pop edi
pop esi
leave
ret 4
Function at 0x4090f9
Capabilities:
Decrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov dword [ebp - 0x20], ecx
mov ecx, dword [eax + 4]
push esi
mov dword [ebp - 0x24], ecx
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
push edi
mov edi, 0xc6ef3720
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x28], 0x9e3779b9
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], 0x20
and dword [0x85c45c], 0
mov eax, edx
shl eax, 4
add eax, dword [ebp - 0x18]
lea ecx, [edi + edx]
xor eax, ecx
mov dword [ebp - 8], ecx
mov ecx, edx
shr ecx, 5
add ecx, dword [ebp - 0x1c]
mov dword [ebp + 8], eax
xor ecx, eax
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
add dword [0x85c45c], eax
mov eax, dword [ebp - 0xc]
sub dword [ebp - 4], eax
mov eax, dword [ebp - 4]
shl eax, 4
mov dword [ebp + 8], eax
mov eax, dword [ebp - 0x20]
add dword [ebp + 8], eax
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
mov esi, dword [ebp - 4]
push dword [ebp - 8]
or dword [0x85c464], 0xffffffff
lea eax, [ebp + 8]
shr esi, 5
add esi, dword [ebp - 0x24]
push eax
mov dword [0x85c460], 0xff6b3619
call fcn.0040908f
push esi
lea eax, [ebp + 8]
push eax
call fcn.0040908f
sub edx, dword [ebp + 8]
and dword [ebp + 0xc], 0
mov eax, dword [ebp - 0x28]
add dword [ebp + 0xc], eax
sub edi, dword [ebp + 0xc]
dec dword [ebp - 0x14]
mov dword [ebp - 0x10], edi
jne 0x40913d
mov eax, dword [ebp - 4]
pop edi
pop esi
mov dword [ebx], edx
mov dword [ebx + 4], eax
pop ebx
leave
ret 8

Function at 0x4091e6
Capabilities:
Copy file
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x948
push esi
xor esi, esi
cmp dword [0x85ca5c], 0x516
push edi
jne 0x409227
push esi
call dword [sym.imp.KERNEL32.DLL_FlushConsoleInputBuffer]
xor eax, eax
mov word [ebp - 4], ax
lea edi, [ebp - 2]
stosw word es:[edi], ax
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0x948]
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_ReadConsoleOutputCharacterW]
mov eax, dword [ebp + 0xc]
shr eax, 3
cmp eax, esi
jbe 0x40927e
mov edi, dword [ebp + 8]
push ebx
mov ebx, eax
cmp dword [0x85ca5c], 0x29
jne 0x409254
push esi
push esi
push esi
push esi
push 0x4012f0
push 0x401320
call dword [sym.imp.KERNEL32.DLL_CopyFileExA]
cmp dword [0x85ca5c], 0xe1b
jne 0x40926e
lea eax, [ebp - 0x148]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
push dword [ebp + 0x10]
push edi
call fcn.004090f9
add edi, 8
dec ebx
jne 0x409237
pop ebx
pop edi
pop esi
leave
ret 0xc
Function at 0x4098bd
Capabilities:
Get file attributes
Get hostname
Read .ini file
Set current directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1450
call fcn.00409ff0
push esi
push edi
xor esi, esi
xor edi, edi
cmp dword [0x85ca5c], 0x47
jne 0x409945
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.DLL_SetCalendarInfoW]
push 0x40142c
call dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryW]
push esi
call dword [sym.imp.KERNEL32.DLL_AddAtomA]
push esi
call dword [sym.imp.KERNEL32.DLL_DebugBreakProcess]
push esi
lea eax, [ebp - 0x850]
push eax
push esi
push 0x401448
call dword [sym.imp.KERNEL32.DLL_GetFullPathNameA]
push 0x30
lea eax, [ebp - 0x38]
push esi
push eax
mov dword [ebp - 0x3c], esi
call fcn.0040ab20
add esp, 0xc
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x3c]
push eax
push 0x40146c
call dword [sym.imp.KERNEL32.DLL_GetDefaultCommConfigA]
push esi
push esi
lea eax, [ebp - 0x450]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_GetConsoleAliasA]
cmp edi, 0x4cb3
je 0x4099e4
cmp dword [0x85ca5c], 0xf
jne 0x4099d5
push esi
lea eax, [ebp - 0x450]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL__hwrite]
push 0x401498
push esi
lea eax, [ebp - 0x850]
push eax
push 0x4014a8
push 0x4014e4
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStructA]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.DLL_EnumDateFormatsA]
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0x50]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_ReadConsoleInputA]
push esi
push esi
call dword [sym.imp.KERNEL32.DLL_GetComputerNameA]
push esi
lea eax, [ebp - 0xc50]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_GetAtomNameA]
push esi
lea eax, [ebp - 0x1450]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemWindowsDirectoryW]
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.DLL_EnumCalendarInfoExA]
inc edi
cmp edi, 0x244381a
jl 0x4098d0
jmp 0x4099ee
mov eax, dword [0x4353c4]
mov dword [0x85ca5c], eax
cmp dword [0x85ca5c], 3
jne 0x409a98
fldz
push ecx
fstp dword [esp]
call fcn.00408fd0
fstp st(0)
push 0x40150c
push esi
call fcn.0040a9c0
push esi
push esi
push esi
push esi
call fcn.0040a990
push esi
push esi
push esi
push 0x45f648
call fcn.0040a990
push esi
call fcn.0040a820
push esi
call fcn.0040a870
push esi
push esi
call fcn.0040a7d0
add esp, 0x38
cmp dword [0x85ca5c], 0x22
jne 0x409a53
lea eax, [ebp - 0x3c]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileInformationByHandle]
push esi
call fcn.0040a7a0
call fcn.0040a660
fldz
fstp dword [esp]
call fcn.00408fd0
fstp st(0)
push esi
call fcn.0040a640
mov dword [esp], 0x401518
call fcn.0040a600
fstp st(0)
push esi
push esi
call fcn.0040a4a0
push esi
call fcn.0040a470
push esi
push esi
push esi
push esi
push esi
call fcn.0040a020
add esp, 0x24
cmp esi, 0x41c
jne 0x409aaa
add dword [0x85ca5c], 0x38d6
inc esi
cmp esi, 0x40b7c8
jl 0x409a98
call fcn.00409486
call fcn.00409373
pop edi
xor eax, eax
pop esi
leave
ret 0x10
Function at 0x40a7d0
Capabilities:
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.DLL_MoveFileA]
test eax, eax
jne 0x40a7f3
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 4], eax
jmp 0x40a7fa
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x40a811
mov edx, dword [ebp - 4]
push edx
call fcn.00410ac0
add esp, 4
or eax, 0xffffffff
jmp 0x40a813
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x40a820
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
test eax, eax
jne 0x40a83f
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 4], eax
jmp 0x40a846
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x40a85d
mov ecx, dword [ebp - 4]
push ecx
call fcn.00410ac0
add esp, 4
or eax, 0xffffffff
jmp 0x40a85f
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x414ed0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x45e304]
jne 0x414eda
repz ret
jmp fcn.00422630
Function at 0x4016e6
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x10
push ebx
push esi
mov esi, ecx
and dword [esi + 0x30], 0
push edi
call fcn.004015ad
mov eax, dword [eax + 0x30]
mov edi, dword [eax + 0xc]
add edi, 0xc
mov ebx, dword [edi]
jmp 0x40172c
push 0xa
push 0xa
push 0x109d204
push 0x3114b604
call fcn.00401dd2
add esp, 0xc
push eax
push dword [ebx + 0x30]
call fcn.0040161c
add esp, 0xc
test eax, eax
je 0x401735
mov ebx, dword [ebx]
cmp ebx, edi
jne 0x401704
jmp 0x4017c7
mov ebx, dword [ebx + 0x18]
test ebx, ebx
je 0x4017c7
mov eax, dword [ebx + 0x3c]
mov edi, dword [eax + ebx + 0x78]
and dword [esp + 0xc], 0
add edi, ebx
mov eax, dword [edi + 0x1c]
add eax, ebx
push ebp
mov ebp, dword [edi + 0x20]
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 0x24]
add eax, ebx
add ebp, ebx
cmp dword [edi + 0x18], 0
mov dword [esp + 0x18], eax
jbe 0x4017c3
mov eax, dword [esp + 0x10]
mov eax, dword [ebp + eax*4]
push 0x16
add eax, ebx
push 0x109d1ec
push 0x40704011
mov dword [esp + 0x20], eax
call fcn.00401d84
push eax
push dword [esp + 0x24]
call fcn.00401648
add esp, 0x14
test eax, eax
je 0x4017ab
inc dword [esp + 0x10]
mov eax, dword [esp + 0x10]
cmp eax, dword [edi + 0x18]
jb 0x40176c
jmp 0x4017c3
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
movzx eax, word [eax + ecx*2]
mov ecx, dword [esp + 0x1c]
mov eax, dword [ecx + eax*4]
add eax, ebx
mov dword [esi + 4], eax
mov dword [esi + 0x30], ebx
pop ebp
cmp dword [esi + 0x30], 0
je 0x40192e
push 0xa
push 0x109d1e0
push 0x29a1a909
call fcn.00401d84
add esp, 0xc
push eax
push esi
mov ecx, esi
call fcn.004016be
push 0xc
push 0x109d1d0
push 0x13cbcee9
call fcn.00401d84
add esp, 0xc
push eax
lea eax, [esi + 8]
push eax
mov ecx, esi
call fcn.004016be
push 0x18
push 0x109d1b4
push 0x17ce53be
call fcn.00401d84
add esp, 0xc
push eax
lea eax, [esi + 0xc]
push eax
mov ecx, esi
call fcn.004016be
push 0xf
push 0x109d1a4
push 0x26b30b69
call fcn.00401d84
add esp, 0xc
push eax
lea eax, [esi + 0x10]
push eax
mov ecx, esi
call fcn.004016be
push 0x12
push 0x109d190
push 0x3d924530
call fcn.00401d84
add esp, 0xc
push eax
lea eax, [esi + 0x14]
push eax
mov ecx, esi
call fcn.004016be
push 7
push 0x109d188
push 0x2236409a
call fcn.00401d84
add esp, 0xc
push eax
lea eax, [esi + 0x18]
push eax
mov ecx, esi
call fcn.004016be
push 0x14
push 0x109d170
push 0x149ccd04
call fcn.00401d84
add esp, 0xc
push eax
lea eax, [esi + 0x1c]
push eax
mov ecx, esi
call fcn.004016be
push 0x11
push 0x109d15c
push 0x673ebfe9
call fcn.00401d84
add esp, 0xc
push eax
lea eax, [esi + 0x20]
push eax
mov ecx, esi
call fcn.004016be
push 0x11
push 0x109d148
push 0x68d29b96
call fcn.00401d84
add esp, 0xc
push eax
lea eax, [esi + 0x24]
push eax
mov ecx, esi
call fcn.004016be
push 0x16
push 0x109d130
push 0x7db65c79
call fcn.00401d84
add esp, 0xc
push eax
lea eax, [esi + 0x28]
push eax
mov ecx, esi
call fcn.004016be
push 0x13
push 0x109d11c
push 0x65fa79df
call fcn.00401d84
add esp, 0xc
push eax
lea eax, [esi + 0x2c]
push eax
mov ecx, esi
call fcn.004016be
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 0x10
ret