joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41766e
Capabilities:
Delete file
Enumerate files on windows
Get common file path

Disassembly:
mov eax, 0x44660f
call fcn.004312c8
sub esp, 0xad4
push ebx
push esi
push edi
xor ebx, ebx
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0xade]
mov word [ebp - 0xae0], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0xae0]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0xae0]
mov edi, 0x4494c4
mov esi, 0x4494bc
mov dword [ebp - 0x68], edi
test eax, eax
mov dword [ebp - 0x48], esi
lea eax, [ebp - 0xae0]
jne 0x4176d2
mov eax, 0x45d464
lea ecx, [ebp - 0xf]
push ebx
push ecx
push eax
lea ecx, [ebp - 0x68]
call fcn.0040856d
mov eax, str..mst
mov dword [ebp - 4], ebx
mov ecx, eax
mov dword [ebp - 0x3c], edi
test ecx, ecx
mov dword [ebp - 0x1c], esi
jne 0x4176f9
mov eax, 0x45d464
lea ecx, [ebp - 0xd]
push ebx
push ecx
push eax
lea ecx, [ebp - 0x3c]
call fcn.0040856d
lea eax, [ebp - 0x3c]
lea ecx, [ebp - 0x68]
push eax
mov byte [ebp - 4], 1
call fcn.0041dbb8
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], bl
call fcn.00401929
mov eax, dword [ebp - 0x60]
mov byte [ebp - 4], 2
cmp eax, ebx
jne 0x417732
mov eax, 0x4494dc
lea ecx, [ebp - 0x2e0]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
je 0x41782a
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x2d4]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jg 0x417804
lea eax, [ebp - 0xae0]
mov dword [ebp - 0x3c], edi
test eax, eax
mov dword [ebp - 0x1c], esi
lea eax, [ebp - 0xae0]
jne 0x417782
mov eax, 0x45d464
lea ecx, [ebp - 0xd]
push ebx
push ecx
push eax
lea ecx, [ebp - 0x3c]
call fcn.0040856d
lea eax, [ebp - 0x2b4]
mov byte [ebp - 4], 3
test eax, eax
mov dword [ebp - 0x90], edi
mov dword [ebp - 0x70], esi
lea eax, [ebp - 0x2b4]
jne 0x4177b2
mov eax, 0x45d464
lea ecx, [ebp - 0xe]
push ebx
push ecx
push eax
lea ecx, [ebp - 0x90]
call fcn.0040856d
lea eax, [ebp - 0x90]
lea ecx, [ebp - 0x3c]
push eax
mov byte [ebp - 4], 4
call fcn.0041dbb8
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 3
call fcn.00401929
mov eax, dword [ebp - 0x34]
cmp eax, ebx
jne 0x4177f1
mov eax, 0x4494dc
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 2
call fcn.00401929
lea eax, [ebp - 0x2e0]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x41774f
mov eax, dword [sym.imp.KERNEL32.dll_FindClose]
cmp eax, ebx
je 0x41782a
push dword [ebp - 0x14]
call eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
call fcn.00401929
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x41cdce
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x446fe6
call fcn.004312c8
sub esp, 0x290
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x10], edi
lea eax, [ebp - 0x12]
mov ebx, 0x4494c4
mov esi, 0x4494bc
push edi
push eax
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], 1
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x24], esi
call fcn.00401586
push dword [ebp + 0xc]
lea eax, [ebp - 0x6c]
mov byte [ebp - 4], 2
push eax
call fcn.0041cfa8
mov eax, dword [eax + 8]
pop ecx
cmp eax, edi
pop ecx
jne 0x41ce2b
mov eax, 0x4494dc
push 0x20019
push eax
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x10]
call fcn.00411218
neg eax
sbb al, al
lea ecx, [ebp - 0x6c]
inc al
mov byte [ebp + 0xf], al
call fcn.00401929
cmp byte [ebp + 0xf], 0
je 0x41cf60
mov word [ebp - 0x29c], di
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x29a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x1c]
and dword [ebp + 0xc], 0
push eax
lea eax, [ebp - 0x29c]
push eax
lea eax, [ebp + 0xc]
push eax
push 0
push 0x458898
mov dword [ebp - 0x1c], 0x104
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x41cec0
mov edi, dword [ebp + 8]
lea eax, [ebp + 0xf]
push 0
push eax
mov ecx, edi
mov dword [edi], ebx
mov dword [edi + 0x20], esi
call fcn.00401586
mov dword [ebp - 0x18], 1
jmp 0x41cf7c
lea eax, [ebp - 0x29c]
mov edi, 0x45d464
test eax, eax
lea eax, [ebp - 0x29c]
jne 0x41ced7
mov eax, edi
push eax
lea ecx, [ebp - 0x44]
call fcn.004016cc
mov eax, 0x458894
mov dword [ebp - 0x6c], ebx
mov ecx, eax
mov dword [ebp - 0x4c], esi
test ecx, ecx
jne 0x41cef3
mov eax, edi
lea ecx, [ebp + 0xf]
push 0
push ecx
push eax
lea ecx, [ebp - 0x6c]
call fcn.0040856d
mov eax, 0x456db0
mov byte [ebp - 4], 3
mov ecx, eax
mov dword [ebp - 0x94], ebx
test ecx, ecx
mov dword [ebp - 0x74], esi
jne 0x41cf1c
mov eax, edi
lea ecx, [ebp - 0x11]
push 0
push ecx
push eax
lea ecx, [ebp - 0x94]
call fcn.0040856d
lea eax, [ebp - 0x6c]
lea ecx, [ebp - 0x44]
push eax
lea eax, [ebp - 0x94]
push eax
mov byte [ebp - 4], 4
call fcn.0041de42
lea ecx, [ebp - 0x94]
mov byte [ebp - 4], 3
call fcn.00401929
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 2
call fcn.00401929
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x44]
push 0
push eax
mov ecx, edi
mov dword [edi], ebx
mov dword [edi + 0x20], esi
call fcn.0040d62b
mov dword [ebp - 0x18], 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 1
call fcn.00401929
cmp dword [ebp - 0x10], 0
je 0x41cf97
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x421130
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x44773e
call fcn.004312c8
push ecx
push ecx
push ebx
push esi
mov ebx, ecx
push edi
mov dword [ebp - 0x14], ebx
call fcn.00432b98
mov eax, 0x449f98
lea edi, [ebx + 0x10]
mov esi, eax
and dword [ebp - 4], 0
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea edi, [ebx + 0x20]
mov esi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea ecx, [ebx + 0x30]
lea eax, [ebp - 0xd]
mov edi, 0x4494c4
mov esi, 0x4494bc
push 0
push eax
mov dword [ecx], edi
mov dword [ecx + 0x20], esi
call fcn.00401586
lea ecx, [ebx + 0x58]
lea eax, [ebp - 0xe]
push 0
push eax
mov byte [ebp - 4], 1
mov dword [ecx], edi
mov dword [ecx + 0x20], esi
call fcn.00401586
mov eax, dword [ebp + 8]
mov ecx, ebx
mov byte [ebp - 4], 2
mov dword [ebx], 0x4496d0
mov dword [ebx + 0xc], eax
call fcn.004212be
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x4211c2
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x447766
call fcn.004312c8
push ecx
push ecx
push ebx
push esi
mov ebx, ecx
push edi
mov dword [ebp - 0x14], ebx
call fcn.00432b98
and dword [ebp - 4], 0
lea edi, [ebx + 0x30]
lea eax, [ebp - 0xd]
mov esi, 0x4494bc
push 0
push eax
mov ecx, edi
mov dword [edi], 0x4494c4
mov dword [edi + 0x20], esi
call fcn.00401586
lea ecx, [ebx + 0x58]
lea eax, [ebp - 0xe]
push 0
push eax
mov byte [ebp - 4], 1
mov dword [ecx], 0x4494c4
mov dword [ecx + 0x20], esi
call fcn.00401586
mov esi, dword [ebp + 8]
mov dword [ebx], 0x4496d0
mov ecx, edi
mov byte [ebp - 4], 2
mov eax, dword [esi + 0xc]
mov dword [ebx + 0xc], eax
lea eax, [esi + 0x30]
push eax
call fcn.00408d74
lea eax, [esi + 0x58]
lea ecx, [ebx + 0x58]
push eax
call fcn.00408d74
add esi, 0x20
lea edi, [ebx + 0x20]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea esi, [eax + 0x10]
lea edi, [ebx + 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x423476
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x150
and dword [ebp - 0x14], 0
push esi
push edi
mov edi, ecx
call fcn.0040104a
push 1
lea eax, [ebp - 0x150]
pop esi
mov dword [ebp - 0x150], 0x114
push eax
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x14c]
mov ecx, dword [ebp - 0x144]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x148]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x140]
mov dword [ebp - 4], eax
sub eax, 0
mov dword [ebp - 8], ecx
je 0x423526
dec eax
je 0x42351b
dec eax
jne 0x42352d
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x18], 2
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
movzx eax, word [ebp - 0x3c]
push 4
dec eax
pop ecx
je 0x42350b
dec eax
je 0x423502
dec eax
jne 0x42350e
mov dword [ebp - 0x18], 5
jmp 0x42350e
mov dword [ebp - 0x18], 3
jmp 0x42350e
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x14c], ecx
jb 0x42352d
mov dword [ebp - 0x14], esi
jmp 0x42352d
movzx eax, cx
mov dword [ebp - 0x14], esi
mov dword [ebp - 8], eax
jmp 0x42352d
mov dword [ebp - 0x18], 7
lea eax, [ebp - 0x18]
mov ecx, edi
push eax
call fcn.00401046
mov ecx, eax
call fcn.00424950
mov eax, esi
pop edi
pop esi
leave
ret

Function at 0x423929
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov eax, edx
dec edx
test eax, eax
je 0x423966
mov eax, dword [ecx + 0xd4]
push esi
lea esi, [edx + 1]
mov edx, dword [ebp + 8]
push edi
mov ecx, dword [ebp + 0x10]
movzx edi, byte [edx]
and ecx, 0xff
xor ecx, edi
mov edi, dword [ebp + 0x10]
shr edi, 8
mov ecx, dword [eax + ecx*4]
inc edx
xor edi, ecx
dec esi
mov dword [ebp + 0x10], edi
jne 0x423944
pop edi
pop esi
mov eax, dword [ebp + 0x10]
pop ebp
ret 0xc
Function at 0x426fb0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x427066
lea eax, [ebp - 0x22c]
push 0xff
push eax
push dword [ebp + 0xc]
call fcn.0042ca2f
add esp, 0xc
cmp dword [ebp + 0xc], 0x452
jne 0x427056
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x427012
lea eax, [ebp - 0x22c]
push 0x456490
push eax
call fcn.00432ceb
pop ecx
test eax, eax
pop ecx
jne 0x42702e
mov eax, 0x486
push eax
mov dword [0x4623d8], eax
call fcn.0042c9b8
pop ecx
push dword [0x4623d8]
call fcn.0043272d
lea eax, [ebp - 0x2c]
push eax
push 0
call fcn.0042e012
pop ecx
lea eax, [ebp - 0x2c]
pop ecx
push eax
lea eax, [ebp - 0x22c]
push eax
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x22c]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowTextW]
leave
ret 8
Function at 0x4277cc
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
push ebx
push esi
mov esi, str.SetupBitmapCls
push edi
lea eax, [ebp - 0x68]
push esi
mov edi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 4
xor ebx, ebx
pop eax
mov dword [ebp - 0x28], 3
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov eax, dword [edi + 0xb08]
push 0x7f00
push ebx
mov dword [ebp - 0x24], 0x42792a
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ebx
call dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x68]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x90]
push eax
push esi
push dword [edi + 0xb08]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.USER32.dll_GetClassInfoW]
test eax, eax
jne 0x427855
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_RegisterClassW]
test ax, ax
je 0x4278f7
push 0xd0
call fcn.004312e7
mov esi, eax
pop ecx
cmp esi, ebx
je 0x4278f7
mov eax, dword [ebp + 8]
push 1
pop ecx
mov dword [esi + 4], ecx
mov edx, dword [eax]
mov dword [esi], edx
mov edx, dword [eax + 4]
mov dword [esi + 8], edx
mov eax, dword [eax]
mov dword [esi + 0x78], eax
lea eax, [ebp - 0x40]
push eax
push 0x18
push dword [esi]
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], ebx
call dword [sym.imp.GDI32.dll_GetObjectW]
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
call ebx
sub eax, dword [ebp - 0x3c]
push 1
cdq
sub eax, edx
sar eax, 1
mov dword [ebp + 8], eax
call ebx
sub eax, dword [ebp - 0x38]
push esi
push dword [edi + 0xb08]
xor ecx, ecx
cdq
push ecx
push ecx
push dword [ebp - 0x38]
sub eax, edx
sar eax, 1
push dword [ebp - 0x3c]
mov dword [edi + 0x2c4], ecx
push eax
push dword [ebp + 8]
push 0x86000000
push str.SetupBitmapWin
push str.SetupBitmapCls
push 0x80
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov ebx, eax
test ebx, ebx
jne 0x4278fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
jmp 0x427923
push esi
push 0
push ebx
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 5
push ebx
mov dword [edi + 0x2c4], ebx
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [edi + 0x2c4]
call dword [sym.imp.USER32.dll_UpdateWindow]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x427cf3
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x447f9a
call fcn.004312c8
sub esp, 0x8a4
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov ecx, 0x1ff
xor eax, eax
lea edi, [ebp - 0x8ae]
mov word [ebp - 0x8b0], bx
push 0x400
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x8b0]
lea ecx, [esi + 0x18]
push eax
push 0x45d464
push str.ClickOncePackage
push str.Startup
call fcn.004024b5
cmp word [ebp - 0x8b0], bx
jne 0x427d55
xor eax, eax
jmp 0x427e77
mov ecx, esi
call fcn.004249f9
mov edi, 0x4494c4
mov esi, 0x4494bc
cmp eax, ebx
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x18], esi
jne 0x427d75
mov eax, 0x45d464
lea ecx, [ebp - 0xe]
push ebx
push ecx
push eax
lea ecx, [ebp - 0x38]
call fcn.0040856d
lea eax, [ebp - 0x8b0]
mov dword [ebp - 4], ebx
test eax, eax
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x40], esi
lea eax, [ebp - 0x8b0]
jne 0x427da1
mov eax, 0x45d464
lea ecx, [ebp - 0xd]
push ebx
push ecx
push eax
lea ecx, [ebp - 0x60]
call fcn.0040856d
push ebx
lea eax, [ebp - 0x88]
push ebx
push eax
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 1
call fcn.0040c0e2
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 2
push ecx
lea ecx, [ebp - 0xb0]
push ecx
mov ecx, eax
call fcn.0040c057
push eax
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 3
call fcn.00408d74
lea ecx, [ebp - 0xb0]
mov byte [ebp - 4], 2
call fcn.00401929
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 1
call fcn.00401929
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], bl
call fcn.00401929
mov eax, dword [ebp - 0x30]
mov esi, 0x4494dc
cmp eax, ebx
jne 0x427e1e
mov eax, esi
push eax
call fcn.0042d4f3
test eax, eax
jne 0x427e46
lea eax, [ebp - 0x8b0]
test eax, eax
lea eax, [ebp - 0x8b0]
jne 0x427e3d
mov eax, 0x45d464
push eax
lea ecx, [ebp - 0x38]
call fcn.004016cc
mov eax, dword [ebp - 0x30]
cmp eax, ebx
jne 0x427e4f
mov eax, esi
push 1
push ebx
push ebx
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0x20
pop ecx
cmp ecx, eax
lea ecx, [ebp - 0x38]
sbb esi, esi
or dword [ebp - 4], 0xffffffff
neg esi
call fcn.00401929
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x42b660
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x448616
call fcn.004312c8
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
mov dword [ebp - 0x18], esi
or dword [esi + 0x220], 0xffffffff
lea eax, [esi + 0x228]
mov dword [esi + 0x20c], edi
mov dword [esi + 0x210], edi
mov byte [esi + 0x214], 1
mov byte [esi + 0x215], 1
mov byte [esi + 0x216], 1
mov dword [esi + 0x21c], edi
mov dword [eax], edi
mov dword [eax + 4], edi
mov dword [eax + 8], edi
push dword [ebp + 8]
lea ebx, [esi + 4]
mov dword [ebp - 4], edi
mov dword [esi], 0x449f14
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 1
push ebx
call fcn.0042b822
pop ecx
mov dword [esi + 0x218], eax
pop ecx
push edi
push 0x80
push 3
push edi
push 3
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi + 0x20c], eax
jne 0x42b70e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x21c], eax
jmp 0x42b80f
push 0x2e
mov dword [esi + 0x210], 1
call fcn.004312e7
push 0x2e
push edi
push eax
mov dword [esi + 0x224], eax
call fcn.00431ad0
add esp, 0x10
mov ecx, esi
push edi
push edi
push dword [esi + 0x218]
push dword [esi + 0x20c]
call fcn.0042c4eb
test eax, eax
je 0x42b80f
lea eax, [ebp - 0x14]
push edi
push eax
push 0x2e
push dword [esi + 0x224]
push dword [esi + 0x20c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, edi
mov dword [ebp - 0x10], eax
je 0x42b80f
cmp dword [ebp - 0x14], edi
je 0x42b80f
mov ecx, esi
call fcn.0042bd0e
test eax, eax
je 0x42b795
mov eax, dword [esi + 0x224]
mov ax, word [eax + 0xe]
cmp ax, di
jne 0x42b804
push edi
push ebx
call fcn.0042b822
cmp eax, dword [esi + 0x218]
pop ecx
pop ecx
jbe 0x42b7ac
mov dword [esi + 0x218], eax
push edi
push edi
push dword [esi + 0x218]
mov ecx, esi
push dword [esi + 0x20c]
call fcn.0042c4eb
test eax, eax
je 0x42b80f
lea eax, [ebp - 0x10]
push edi
push eax
push 0x2e
push dword [esi + 0x224]
push dword [esi + 0x20c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, edi
mov dword [ebp - 0x10], eax
je 0x42b80f
cmp dword [ebp - 0x14], edi
je 0x42b80f
mov ecx, esi
call fcn.0042bd0e
test eax, eax
je 0x42b80f
mov eax, dword [esi + 0x224]
mov ax, word [eax + 0xe]
cmp ax, di
je 0x42b80f
movzx eax, ax
push eax
mov ecx, esi
call fcn.0042c3e9
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x42bae3
Capabilities:
Get system information on windows
Read file via mapping

Disassembly:
mov eax, 0x44864c
call fcn.004312c8
sub esp, 0x4c
push ebx
xor eax, eax
push esi
push edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], eax
mov edi, dword [ebp + 0x10]
mov dword [ebp - 4], eax
mov esi, dword [edi + 0xa8]
cmp esi, eax
je 0x42bbee
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x34]
push 0x1c
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x42bb2c
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x18], eax
push edi
push str..debug
call fcn.0042bc3e
pop ecx
test eax, eax
pop ecx
je 0x42bb58
cmp dword [eax + 0xc], esi
jne 0x42bb58
mov ecx, dword [eax + 0x14]
mov edx, dword [edi + 0xac]
mov dword [ebp + 0xc], edx
mov edi, ecx
lea eax, [ecx + ebx]
mov dword [ebp + 0x10], edx
jmp 0x42bbab
push edi
push str..rdata
call fcn.0042bc3e
pop ecx
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x42bb7e
push edi
push str..text
call fcn.0042bc3e
pop ecx
pop ecx
mov ecx, eax
test ecx, ecx
je 0x42bbee
mov edi, dword [edi + 0xac]
push 0x1c
mov dword [ebp + 0x10], edi
mov eax, edi
xor edx, edx
pop edi
div edi
test eax, eax
mov dword [ebp + 0xc], eax
je 0x42bbee
sub esi, dword [ecx + 0xc]
mov eax, dword [ecx + 0x14]
lea ecx, [eax + esi]
mov edi, ecx
lea eax, [ecx + ebx]
mov ecx, dword [ebp + 0x10]
mov dword [ebp + 0x10], ecx
mov ecx, eax
sub ecx, ebx
cmp ecx, dword [ebp - 0x18]
jbe 0x42bbf9
cmp dword [ebp + 8], 0
je 0x42bbf9
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, edi
xor edx, edx
div dword [ebp - 0x3c]
xor edx, edx
mov esi, eax
mov eax, edi
div dword [ebp - 0x3c]
imul esi, dword [ebp - 0x3c]
add edx, dword [ebp + 0x10]
push edx
push esi
push 0
push 4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
jne 0x42bbf2
xor eax, eax
jmp 0x42bc2f
mov dword [ebp - 0x10], eax
sub eax, esi
add eax, edi
mov edx, dword [ebp + 0xc]
test edx, edx
jbe 0x42bc18
add eax, 0x10
mov ecx, dword [eax]
mov esi, dword [eax + 8]
add esi, ecx
cmp esi, dword [ebp + 0x14]
jbe 0x42bc12
add dword [ebp - 0x14], ecx
add eax, 0x1c
dec edx
jne 0x42bc03
cmp dword [ebp - 0x10], 0
je 0x42bc2c
mov eax, dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test eax, eax
je 0x42bc2c
push dword [ebp - 0x10]
call eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x42bd40
Capabilities:
Get common file path

Disassembly:
mov eax, 0x448690
call fcn.004312c8
sub esp, 0x3c
push ebx
push esi
push edi
mov edi, ecx
lea eax, [ebp - 0xd]
mov ebx, 0x449504
mov esi, 0x4494fc
push 0
push eax
mov dword [ebp - 0x14], edi
mov dword [edi], ebx
mov dword [edi + 0x20], esi
call fcn.004026fa
and dword [ebp - 4], 0
lea eax, [ebp - 0xe]
push 0
push eax
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x28], esi
call fcn.004026fa
mov esi, 0x104
lea eax, [ebp - 0x20]
push esi
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 1
call fcn.004020e2
mov ecx, dword [eax]
mov byte [ebp - 4], 2
mov byte [eax + 4], 1
call fcn.0040276f
push dword [eax]
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.004021f4
lea eax, [ebp - 0x20]
push esi
push eax
mov ecx, edi
call fcn.004020e2
mov ecx, dword [eax]
mov byte [ebp - 4], 3
mov byte [eax + 4], 1
call fcn.0040276f
mov ecx, dword [ebp - 0x40]
mov eax, dword [eax]
test ecx, ecx
jne 0x42bdea
mov ecx, 0x44952c
push eax
push 0
push 0x459854
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.004021f4
and byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.00401cce
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x42c3e9
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
mov edi, ecx
jle 0x42c466
mov esi, 0x138
push esi
call fcn.004312e7
mov ebx, eax
push esi
push 0
push ebx
call fcn.00431ad0
add esp, 0x10
lea eax, [ebp - 8]
push 0
push eax
push esi
push ebx
push dword [edi + 0x20c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x42c466
cmp dword [ebp - 8], 0
je 0x42c466
push ebx
lea ecx, [edi + 0x228]
call fcn.0042c546
push 1
push 0
push dword [ebx + 0x10c]
mov ecx, edi
push dword [edi + 0x20c]
call fcn.0042c4eb
test eax, eax
je 0x42c466
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 8]
jl 0x42c402
pop edi
pop esi
pop ebx
leave
ret 4