joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408170
Capabilities:
Extract resource via kernel32 functions
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4627b6
mov eax, dword fs:[0]
push eax
sub esp, 0x124
mov eax, dword [0x4895f0]
xor eax, esp
mov dword [esp + 0x120], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4895f0]
xor eax, esp
push eax
lea eax, [esp + 0x138]
mov dword fs:[0], eax
mov eax, dword [esp + 0x14c]
mov ebp, dword [esp + 0x148]
mov edi, dword [esp + 0x150]
mov esi, dword [esp + 0x154]
xor ebx, ebx
lea ecx, [esp + 0x20]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ebx
call fcn.00435984
push 0x103
lea ecx, [esp + 0x35]
push ebx
push ecx
mov dword [esp + 0x14c], ebx
mov byte [esp + 0x3c], bl
call fcn.0044cf00
add esp, 0xc
lea edx, [esp + 0x30]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp eax, ebx
je 0x408334
lea eax, [esp + 0x30]
lea ecx, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x408217
sub eax, ecx
push eax
lea eax, [esp + 0x34]
push eax
mov ecx, esi
call fcn.004039a0
push 1
lea ecx, [esp + 0x18]
push ecx
mov ecx, esi
call fcn.00405ba0
mov eax, dword [eax]
push 0x469140
push eax
call fcn.0044d2d4
add esp, 8
cmp eax, ebx
mov eax, dword [esp + 0x14]
setne bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x408272
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x408284
push 1
push 0x469140
mov ecx, esi
call fcn.00405c20
push edi
lea ecx, [esp + 0x18]
call fcn.004080b0
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, esi
mov byte [esp + 0x148], 1
call fcn.00405c20
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x140], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4082cc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x1c]
push ecx
push ebp
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x408334
push edi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x408334
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push 0
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, dword [esi]
push 0
push 0x1001
push esi
lea ecx, [esp + 0x2c]
mov edi, eax
call fcn.00435df0
test eax, eax
je 0x408334
push edi
push ebx
lea ecx, [esp + 0x28]
call fcn.004356d2
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], 1
call fcn.00435922
lea ecx, [esp + 0x20]
mov dword [esp + 0x140], 0xffffffff
call fcn.00435a80
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x138]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x120]
xor ecx, esp
call fcn.0044ce74
add esp, 0x130
ret 0x10
Function at 0x40ca40
Capabilities:
Read file on windows

Disassembly:
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x804]
xor ebx, ebx
cmp eax, 0x4c4b40
jg 0x40cabe
push eax
call fcn.004282da
add esp, 4
test eax, eax
mov dword [esi + 0x800], eax
je 0x40cabe
mov ecx, dword [esi + 0x804]
push edi
push ecx
push ebx
push eax
call fcn.0044cf00
push 0x469b68
push esi
call fcn.0044deec
mov edi, eax
add esp, 0x14
test edi, edi
je 0x40cab8
mov edx, dword [esi + 0x804]
mov eax, dword [esi + 0x800]
push edi
push edx
push 1
push eax
call fcn.0044e19b
add esp, 0x10
cmp eax, dword [esi + 0x804]
jl 0x40caaf
mov ebx, 1
push edi
call fcn.0044da9a
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebx
ret
pop esi
mov eax, ebx
pop ebx
ret

Function at 0x40cbb0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x40cbbb
xor eax, eax
ret
push ebp
mov ebp, dword [esp + 0x10]
cmp ebp, 8
push esi
mov esi, dword [esp + 0xc]
not esi
jl 0x40ccb4
push edi
mov edi, ebp
shr edi, 3
mov eax, edi
neg eax
lea ebp, [ebp + eax*8]
mov edi, edi
movzx edx, byte [ecx]
xor edx, esi
and edx, 0xff
add ecx, 1
mov eax, esi
shr eax, 8
xor eax, dword [edx*4 + 0x469b70]
movzx edx, byte [ecx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x469b70]
movzx edx, byte [ecx + 1]
xor edx, eax
and edx, 0xff
add ecx, 1
shr eax, 8
xor eax, dword [edx*4 + 0x469b70]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x469b70]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x469b70]
movzx edx, byte [ecx + 1]
xor edx, eax
add ecx, 1
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x469b70]
movzx edx, byte [ecx + 1]
add ecx, 1
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x469b70]
movzx edx, byte [ecx + 1]
add ecx, 1
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x469b70]
add ecx, 1
sub edi, 1
mov esi, eax
jne 0x40cbe0
pop edi
test ebp, ebp
je 0x40ccdc
jmp 0x40ccc0
movzx eax, byte [ecx]
xor eax, esi
and eax, 0xff
shr esi, 8
xor esi, dword [eax*4 + 0x469b70]
add ecx, 1
sub ebp, 1
jne 0x40ccc0
mov eax, esi
pop esi
not eax
pop ebp
ret

Function at 0x40cd60
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edx, dword [esp + 8]
xor eax, eax
xor ecx, ecx
test edx, edx
jle 0x40cd95
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
movzx edi, byte [ecx + esi]
mov ebx, eax
and ebx, 0xff
xor edi, ebx
shr eax, 8
xor eax, dword [edi*4 + 0x487288]
add ecx, 1
cmp ecx, edx
jl 0x40cd73
pop edi
pop esi
pop ebx
ret 8
Function at 0x40e390
Capabilities:
Delete file
Move file
Set file attributes

Disassembly:
push ebx
push edi
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 4], ebx
jle 0x40e3d7
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_MoveFileExA]
push esi
lea esi, [edi + 0xc]
push 0x20
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40e3c7
push 4
push eax
push esi
call ebp
mov dword [edi + 8], 1
add ebx, 1
add esi, 0x100
cmp ebx, dword [edi + 4]
jl 0x40e3a6
pop esi
pop ebp
pop edi
xor eax, eax
pop ebx
ret

Function at 0x40e3e0
Capabilities:
Get disk information

Disassembly:
sub esp, 0x248
mov eax, dword [0x4895f0]
xor eax, esp
mov dword [esp + 0x244], eax
mov ax, word [0x46a448]
push edi
push 0xff
mov edi, ecx
mov cl, byte [0x46a44a]
lea edx, [esp + 0x14d]
push 0
push edx
mov word [esp + 0x10], ax
mov byte [esp + 0x12], cl
mov byte [esp + 0x154], 0
call fcn.0044cf00
mov al, byte [esp + 0x10]
add esp, 0xc
cmp al, 0x41
jl 0x40e53d
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
push esi
nop
cmp al, 0x5a
jg 0x40e53b
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x40e529
push 0x100
lea ecx, [esp + 0x154]
push 0
push ecx
call fcn.0044cf00
add esp, 0xc
xor eax, eax
jmp 0x40e480
mov cl, byte [esp + eax + 0xc]
mov byte [esp + eax + 0x150], cl
add eax, 1
test cl, cl
jne 0x40e480
lea eax, [esp + 0x150]
add eax, 0xffffffff
lea esp, [esp]
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x40e4a0
mov edx, dword [str.Autorun.inf]
mov ecx, dword [0x46a43c]
mov dword [eax], edx
mov edx, dword [0x46a440]
mov dword [eax + 4], ecx
mov cl, byte [0x46a444]
mov dword [eax + 8], edx
push 0x140
lea edx, [esp + 0x14]
push 0
push edx
mov byte [eax + 0xc], cl
call fcn.0044cf00
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x154]
push ecx
call ebp
cmp eax, 0xffffffff
je 0x40e529
test byte [esp + 0x10], 0x10
jne 0x40e529
mov ecx, dword [edi + 4]
shl ecx, 8
lea edx, [esp + 0x150]
lea esi, [ecx + edi + 0xc]
lea ecx, [ecx]
mov cl, byte [edx]
mov byte [esi], cl
add edx, 1
add esi, 1
test cl, cl
jne 0x40e510
add dword [edi + 4], 1
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, byte [esp + 0xc]
add al, 1
cmp al, 0x41
mov byte [esp + 0xc], al
jge 0x40e440
pop esi
pop ebp
mov ecx, dword [esp + 0x248]
pop edi
xor ecx, esp
mov eax, 1
call fcn.0044ce74
add esp, 0x248
ret
Function at 0x40fd50
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
mov eax, dword [0x4895f0]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
push edi
push 0x103
xor edi, edi
lea eax, [esp + 0xd]
push edi
push eax
mov esi, ecx
mov byte [esp + 0x14], 0
call fcn.0044cf00
add esp, 0xc
push 0x104
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x40fe35
push str.RepairSystem
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 1
push str.SeRestorePrivilege
call fcn.0041c540
lea eax, [esp + 8]
push eax
push str.NewSafeBoot
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegLoadKeyA]
test eax, eax
jne 0x40fe35
cmp dword [esi + 4], 1
jne 0x40fdec
push str.SYSTEMControlSet001ControlSafeBoot
push str.NewSafeBootControlSet001ControlSafeBoot
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0041c2f0
add esp, 0xc
cmp dword [esi + 8], 1
jne 0x40fe09
push str.SYSTEMCurrentControlSetControlSafeBoot
push str.NewSafeBootControlSet001ControlSafeBoot
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0041c2f0
add esp, 0xc
push str.NewSafeBoot
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegUnLoadKeyA]
pop edi
mov eax, 1
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0044ce74
add esp, 0x108
ret
mov ecx, dword [esp + 0x10c]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.0044ce74
add esp, 0x108
ret
Function at 0x4100a0
Capabilities:
Delete file
Move file

Disassembly:
push esi
lea esi, [ecx + 0xc]
mov eax, esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4100b0
sub eax, edx
cmp eax, 0xa
jbe 0x4100e7
push str.KASSafeBootRepairFile.dat
push esi
call fcn.0044d0b0
add esp, 8
test eax, eax
je 0x4100e7
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4100e7
push 4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
pop esi
ret

Function at 0x410140
Capabilities:
Check os version

Disassembly:
sub esp, 0xa0
mov eax, dword [0x4895f0]
xor eax, esp
mov dword [esp + 0x9c], eax
push ebx
push ebp
push esi
push edi
push 0x9c
xor esi, esi
lea eax, [esp + 0x14]
push esi
push eax
mov ebx, ecx
xor ebp, ebp
call fcn.0044cf00
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x14], 0x9c
call edi
test eax, eax
jne 0x4101a1
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x14], 0x94
call edi
test eax, eax
je 0x41026e
cmp dword [esp + 0x20], 2
mov edi, 1
jne 0x4101dc
mov eax, dword [esp + 0x14]
cmp eax, 5
jne 0x4101d3
mov eax, dword [esp + 0x18]
cmp eax, 2
jne 0x4101c3
mov esi, edi
jmp 0x4101dc
cmp eax, edi
jne 0x4101cb
mov esi, edi
jmp 0x4101dc
test eax, eax
jne 0x4101dc
xor esi, esi
jmp 0x4101dc
cmp eax, 4
jbe 0x41026e
push esi
mov ecx, ebx
call fcn.0040fe50
cmp eax, edi
jne 0x41026e
lea esi, [ebx + 0xc]
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4101f4
sub eax, edx
cmp eax, 0xa
jb 0x41026e
push edi
push str.SeRestorePrivilege
call fcn.0041c540
push esi
push str.MyNewSafeBoot
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegLoadKeyA]
test eax, eax
jne 0x41026e
cmp dword [ebx + 4], edi
jne 0x410240
push str.SYSTEMCurrentControlSetControlSafeBoot
push str.MyNewSafeBoot
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0041c2f0
add esp, 0xc
cmp dword [ebx + 8], edi
jne 0x41025c
push str.SYSTEMControlSet001ControlSafeBoot
push str.MyNewSafeBoot
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.0041c2f0
add esp, 0xc
push str.MyNewSafeBoot
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegUnLoadKeyA]
mov ebp, edi
mov ecx, ebx
call fcn.004100a0
mov ecx, dword [esp + 0xac]
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
xor ecx, esp
call fcn.0044ce74
add esp, 0xa0
ret

Function at 0x410310
Capabilities:
Parse pe header

Disassembly:
mov ecx, dword [esp + 4]
xor eax, eax
test ecx, ecx
je 0x410358
push esi
mov esi, dword [esp + 0xc]
cmp esi, 0x40
jbe 0x410357
cmp byte [ecx], 0x4d
jne 0x410357
cmp byte [ecx + 1], 0x5a
jne 0x410357
mov edx, dword [ecx + 0x3c]
add esi, 0xfffffffd
cmp edx, esi
jae 0x410357
cmp byte [edx + ecx], 0x50
jne 0x410357
cmp byte [edx + ecx + 1], 0x45
jne 0x410357
cmp byte [edx + ecx + 2], al
jne 0x410357
cmp byte [edx + ecx + 3], al
jne 0x410357
mov eax, 1
pop esi
ret 8
Function at 0x410360
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push esi
mov esi, dword [esp + 0x14]
xor ebp, ebp
test esi, esi
je 0x41041e
push ebx
mov ebx, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x14]
push ebx
push edi
call fcn.00410310
test eax, eax
je 0x410415
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov eax, dword [edi + 0x3c]
lea ecx, [eax + 0xf8]
cmp ecx, ebx
mov dword [esi], eax
jae 0x410413
mov edx, dword [esi]
add eax, 0x18
mov dword [esi + 8], eax
mov eax, dword [esi]
add edx, 0x78
mov dword [esi + 0x18], edx
mov cx, word [eax + edi + 6]
mov edx, eax
mov word [esi + 4], cx
mov ax, word [edx + edi + 0x14]
mov word [esi + 6], ax
mov ecx, edx
mov edx, dword [ecx + edi + 0x28]
mov eax, ecx
mov dword [esi + 0xc], edx
mov ecx, dword [eax + edi + 0x34]
mov edx, eax
mov dword [esi + 0x10], ecx
mov eax, dword [edx + edi + 0x74]
mov dword [esi + 0x14], eax
movzx eax, word [esi + 6]
test ax, ax
jbe 0x410415
movzx ecx, ax
lea eax, [ecx + edx]
cmp eax, ebx
jae 0x410415
pop edi
add eax, 0x18
pop ebx
mov dword [esi + 0x1c], eax
pop esi
lea eax, [ebp + 1]
pop ebp
ret 0xc
mov dword [esi], ebp
pop edi
pop ebx
pop esi
mov eax, ebp
pop ebp
ret 0xc
pop esi
mov eax, ebp
pop ebp
ret 0xc
Function at 0x410840
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov eax, 0x1010
call fcn.0044ced0
mov eax, dword [0x4895f0]
xor eax, esp
mov dword [esp + 0x100c], eax
mov eax, dword [str.JumpHookOn]
movzx edx, word [0x46b148]
push ebp
push esi
mov esi, dword [esp + 0x101c]
push edi
mov ebp, ecx
mov ecx, dword [0x46b144]
xor edi, edi
push 0x3f5
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], eax
mov al, byte [0x46b14a]
lea ecx, [esp + 0x27]
push edi
push ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov word [esp + 0x2c], dx
mov byte [esp + 0x2e], al
call fcn.0044cf00
mov edx, dword [str.JumpHookOff]
mov eax, dword [0x46b138]
mov ecx, dword [0x46b13c]
push 0x3f4
mov dword [esp + 0x428], edx
lea edx, [esp + 0x434]
push edi
push edx
mov dword [esp + 0x434], eax
mov dword [esp + 0x438], ecx
call fcn.0044cf00
mov eax, dword [str.MsgHookOn]
movzx edx, word [0x46b130]
mov ecx, dword [0x46b12c]
push 0x3f6
mov dword [esp + 0x834], eax
lea eax, [esp + 0x83e]
push edi
push eax
mov dword [esp + 0x840], ecx
mov word [esp + 0x844], dx
call fcn.0044cf00
mov ecx, dword [str.MsgHookOff]
mov edx, dword [0x46b120]
mov ax, word [0x46b124]
push 0x3f5
mov dword [esp + 0xc44], edx
mov dword [esp + 0xc40], ecx
mov cl, byte [0x46b126]
lea edx, [esp + 0xc4b]
push edi
push edx
mov word [esp + 0xc50], ax
mov byte [esp + 0xc52], cl
call fcn.0044cf00
add esp, 0x30
cmp esi, edi
je 0x410a89
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x410972
sub eax, edx
cmp eax, 4
jbe 0x410a89
push ebx
push edi
push 0x87
push 3
push edi
push 3
push SysReAllocStringLen
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x410a8d
lea eax, [esp + 0x14]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
je 0x410a7c
lea ecx, [edi - 0xc9]
cmp ecx, 0xfff36
ja 0x410a7c
push 0
push 0
push 0
push 2
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
test eax, eax
mov dword [esp + 0x18], eax
je 0x410a7c
push 0
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
je 0x410a71
push edi
push esi
mov ecx, ebp
call fcn.00410310
test eax, eax
je 0x410a6a
lea edx, [esp + 0x1c]
push edx
push edi
push esi
mov ecx, ebp
call fcn.00410500
test eax, eax
je 0x410a38
lea eax, [esp + 0x41c]
push eax
push edi
push esi
mov ecx, ebp
call fcn.00410500
test eax, eax
jne 0x410a62
lea ecx, [esp + 0x81c]
push ecx
push edi
push esi
mov ecx, ebp
call fcn.00410500
test eax, eax
je 0x410a6a
lea edx, [esp + 0xc1c]
push edx
push edi
push esi
mov ecx, ebp
call fcn.00410500
test eax, eax
je 0x410a6a
mov dword [esp + 0x10], 1
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x10]
jmp 0x410a8f
mov eax, edi
jmp 0x410a90
mov eax, edi
pop ebx
mov ecx, dword [esp + 0x1018]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0044ce74
add esp, 0x1010
ret 4
Function at 0x410db0
Capabilities:
Delete file
Move file
Set file attributes

Disassembly:
push ebx
push edi
mov ebx, ecx
xor edi, edi
cmp dword [ebx + 8], edi
jle 0x410e2a
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
lea esi, [ebx + 0x5014]
lea esp, [esp]
cmp edi, 0x14
jg 0x410e20
mov eax, esi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x410de0
sub eax, edx
cmp eax, 4
jbe 0x410e12
push 0x20
push esi
call ebp
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x410e07
mov dword [ebx + 0x10], 1
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
add edi, 1
add esi, 0x400
cmp edi, dword [ebx + 8]
jl 0x410dd0
pop esi
pop ebp
pop edi
mov eax, 1
pop ebx
ret
pop edi
mov eax, 1
pop ebx
ret
Function at 0x412100
Capabilities:
Get file size

Disassembly:
push ecx
mov eax, dword [esp + 8]
push esi
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x41213c
lea ecx, [esp + 8]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ecx
ret

Function at 0x412150
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x60
mov eax, dword [0x4895f0]
xor eax, esp
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x68]
push ebp
push esi
mov esi, dword [esp + 0x6c]
xor ebp, ebp
cmp byte [esi], 0
mov dword [esp + 8], eax
je 0x4121fd
push ebx
push 0x469b68
push esi
call fcn.0044deec
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4121fc
push edi
push esi
call fcn.00412100
mov edi, eax
add esp, 4
cmp edi, 0x10000000
ja 0x4121f2
lea ecx, [edi + 0x100]
push ecx
call fcn.004282da
push ebx
push 1
mov esi, eax
push edi
push esi
call fcn.0044e19b
lea edx, [esp + 0x28]
push edx
call fcn.0041aab0
push edi
lea eax, [esp + 0x30]
push esi
push eax
call fcn.0041b250
mov edx, dword [esp + 0x34]
lea ecx, [esp + 0x38]
push ecx
push edx
call fcn.0041b2f0
add esp, 0x2c
test esi, esi
mov ebp, 1
je 0x4121f2
push esi
call fcn.004282df
add esp, 4
push ebx
call fcn.0044da9a
add esp, 4
pop edi
pop ebx
mov ecx, dword [esp + 0x64]
pop esi
mov eax, ebp
pop ebp
xor ecx, esp
call fcn.0044ce74
add esp, 0x60
ret

Function at 0x412760
Capabilities:
Set registry value

Disassembly:
push ebp
push esi
mov esi, dword [ecx + 4]
xor ebp, ebp
test esi, esi
je 0x4127ae
push ebx
mov ebx, dword [esp + 0x10]
test ebx, ebx
je 0x4127b5
mov edx, dword [esp + 0x14]
test edx, edx
je 0x4127b5
mov eax, edx
push edi
lea edi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x412782
sub eax, edi
add eax, 1
push eax
push edx
push 1
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
pop edi
jne 0x4127b5
pop ebx
pop esi
mov eax, 1
pop ebp
ret 8
pop esi
mov eax, ebp
pop ebp
ret 8
pop ebx
pop esi
mov eax, ebp
pop ebp
ret 8

Function at 0x4127c0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov eax, dword [ecx + 4]
push esi
xor esi, esi
test eax, eax
mov dword [esp + 4], 4
je 0x41280d
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x41280d
lea edx, [esp + 4]
push edx
lea edx, [esp + 0x14]
push edx
lea edx, [esp + 0x10]
push edx
push esi
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41280d
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov dword [eax], ecx
lea eax, [esi + 1]
pop esi
add esp, 8
ret 8
mov eax, esi
pop esi
add esp, 8
ret 8
Function at 0x4128e0
Capabilities:
Set registry value

Disassembly:
push ecx
cmp dword [esp + 0x14], 0x3ffffff
mov dword [esp], 0
jbe 0x4128f8
xor eax, eax
pop ecx
ret 0x10
mov ecx, dword [esp + 8]
test ecx, ecx
push esi
je 0x41296b
mov eax, dword [esp + 0x10]
test eax, eax
je 0x41296b
mov esi, dword [esp + 0x14]
test esi, esi
je 0x41296b
push 0
lea edx, [esp + 8]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x412949
xor esi, esi
mov eax, dword [esp + 4]
test eax, eax
je 0x412942
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ecx
ret 0x10
mov ecx, dword [esp + 4]
push 4
lea eax, [esp + 0x1c]
push eax
push 4
push 0
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
neg esi
sbb esi, esi
add esi, 1
jmp 0x412933
xor eax, eax
pop esi
pop ecx
ret 0x10

Function at 0x412980
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov ecx, dword [esp + 0xc]
test ecx, ecx
push esi
push edi
mov dword [esp + 8], 0
mov dword [esp + 0xc], 4
je 0x412a31
mov eax, dword [esp + 0x18]
test eax, eax
je 0x412a31
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x412a31
mov esi, dword [esp + 0x20]
test esi, esi
je 0x412a31
lea edx, [esp + 8]
push edx
push 0xf003f
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x412a03
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
sub esi, 2
neg esi
sbb esi, esi
and esi, 0xfffffffe
add esi, 2
mov eax, dword [esp + 8]
test eax, eax
je 0x4129f9
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
add esp, 8
ret 0x10
mov ecx, dword [esp + 8]
lea eax, [esp + 0xc]
push eax
push esi
push 0
push 0
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x412a2a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
sub esi, 6
jmp 0x4129e0
mov esi, 1
jmp 0x4129ea
pop edi
xor eax, eax
pop esi
add esp, 8
ret 0x10