joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405a80
Capabilities:
Enumerate processes
Get session information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4896c8
mov eax, dword fs:[0]
push eax
sub esp, 0x25c
mov eax, dword [0x4b135c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x25c], eax
call fcn.00405e00
mov ebx, eax
mov dword [ebp - 0x264], 0
lea eax, [ebp - 0x264]
push eax
lea eax, [ebp - 0x25c]
push eax
push 4
push 0xffffffffffffffff
push 0
call dword [sym.imp.WTSAPI32.dll_WTSQuerySessionInformationW]
test eax, eax
je 0x405b09
mov eax, dword [ebp - 0x25c]
push eax
mov ebx, dword [eax]
call dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x405c03
push 0x208
lea eax, [ebp - 0x234]
mov dword [ebp - 0x258], 0x22c
push 0
push eax
call fcn.00421df0
add esp, 0xc
lea eax, [ebp - 0x258]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x405c03
lea eax, [ebp - 0x234]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405b60
sub eax, edx
lea ecx, [ebp - 0x28]
sar eax, 1
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.00401b00
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push str.explorer.exe
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x405bed
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x250]
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x405bed
cmp dword [ebp - 0x260], ebx
jne 0x405bed
push dword [ebp - 0x250]
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x405bed
lea eax, [ebp - 0x268]
push eax
push 8
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
push esi
test eax, eax
jne 0x405c34
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x258]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x405b54
xor ebx, ebx
cmp dword [ebp - 0x14], 8
jb 0x405c16
push dword [ebp - 0x28]
call fcn.0046f2be
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041d30f
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0x268]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x405c05
Function at 0x405e60
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x4b135c]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je case.default.0x405fe3
lea eax, [ebp - 0x144]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x11c]
lea ecx, [eax - 4]
cmp ecx, 6
ja case.0x405eb1.7
jmp dword [ecx*4 + 0x406098]
mov eax, dword [ebp - 0x118]
test eax, eax
je 0x405ef6
cmp eax, 0xa
je 0x405ee3
cmp eax, 0x5a
jne case.default.0x405fe3
mov eax, 6
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d30f
mov esp, ebp
pop ebp
ret
mov eax, 5
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d30f
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x110]
cmp eax, 2
jne 0x405f14
mov eax, 3
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d30f
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne case.default.0x405fe3
mov eax, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d30f
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x118]
sub eax, 0
je 0x405fc1
dec eax
je 0x405fae
dec eax
jne case.default.0x405fe3
cmp byte [ebp - 6], 1
jne 0x405f6c
cmp word [ebp - 0x144], 9
jne 0x405f6c
mov eax, 9
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d30f
mov esp, ebp
pop ebp
ret
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
jne 0x405f8b
mov eax, 0xa
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d30f
mov esp, ebp
pop ebp
ret
push 0x59
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
je case.default.0x405fe3
mov eax, 0xb
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d30f
mov esp, ebp
pop ebp
ret
mov eax, 8
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d30f
mov esp, ebp
pop ebp
ret
mov eax, 7
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d30f
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x118]
cmp eax, 3
ja case.default.0x405fe3
jmp dword [eax*4 + 0x4060b4]
xor eax, eax
cmp byte [ebp - 6], 1
setne al
add eax, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d30f
mov esp, ebp
pop ebp
ret
xor eax, eax
cmp byte [ebp - 6], 1
setne al
add eax, 0xe
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d30f
mov esp, ebp
pop ebp
ret
mov eax, 0x10
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d30f
mov esp, ebp
pop ebp
ret
mov eax, 0x11
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d30f
mov esp, ebp
pop ebp
ret
xor eax, eax
cmp dword [ebp - 0x118], eax
setne al
add eax, 0x12
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d30f
mov esp, ebp
pop ebp
ret
cmp eax, 3
jae 0x406078
mov eax, 2
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d30f
mov esp, ebp
pop ebp
ret
cmp eax, 6
mov eax, 0x13
ja 0x406087
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d30f
mov esp, ebp
pop ebp
ret
Function at 0x4060d0
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x4b135c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ecx
xor edi, edi
mov ebx, edx
push edi
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
xor eax, eax
test esi, esi
je 0x40619f
push 0x208
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.00421df0
add esp, 0xc
mov dword [ebp - 0x218], edi
lea eax, [ebp - 0x218]
push eax
push 4
lea eax, [ebp - 0x214]
push eax
push esi
call dword [sym.imp.PSAPI.DLL_EnumProcessModules]
test eax, eax
je 0x406196
push 0x104
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x214]
push esi
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
test eax, eax
je 0x406196
cmp word [ebp - 0x210], di
jne 0x40616a
xor ecx, ecx
jmp 0x406182
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x406173
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x210]
mov ecx, ebx
push eax
call fcn.00401b00
mov edi, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041d30f
mov esp, ebp
pop ebp
ret

Function at 0x4067a0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov ecx, esi
push str.click
call fcn.004390d0
test al, al
je 0x406820
mov eax, dword [esi + 0x108]
cmp eax, dword [edi + 0x314]
jne 0x4067e2
push 1
lea ecx, [edi - 0x20]
call fcn.0043884e
pop edi
pop esi
mov dword [ebp + 8], 0
pop ebp
jmp dword [sym.imp.USER32.dll_PostQuitMessage]
cmp eax, dword [edi + 0x318]
jne 0x406820
lea ecx, [edi + 0xc]
call fcn.0043b627
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [eax + 8]
call esi
push 0
push dword [edi - 0x1c]
call esi
push 1
lea ecx, [edi - 0x20]
call fcn.0043884e
pop edi
pop esi
mov dword [ebp + 8], 0
pop ebp
jmp dword [sym.imp.USER32.dll_PostQuitMessage]
pop edi
pop esi
pop ebp
ret 4

Function at 0x406830
Capabilities:
Extract resource via kernel32 functions
Terminate process

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00439fca
Function at 0x406970
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48983b
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4b135c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x4a0038
push str.SOUIHOST
push 0
push 0
call dword [sym.imp.USER32.dll_FindWindowExW]
push 0
push 0
push 0x10
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
lea ecx, [esi + 0x2c]
call fcn.0043b627
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [eax + 8]
call edi
push 0
push dword [esi + 4]
call edi
mov ecx, str.InpaintMAX.exe
call fcn.00411570
cmp dword [esi + 0x330], 0
jne 0x406a52
push 0x354
call fcn.0041db97
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x406a0b
mov ecx, eax
call fcn.00406c20
jmp 0x406a0d
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 0x330], eax
test eax, eax
je 0x406a62
push 0
push SysReAllocString
push SysReAllocString
push SysReAllocString
push SysReAllocString
push 0
push 0x96c80000
push 0
push dword [esi + 4]
mov ecx, eax
call fcn.00438874
mov ecx, dword [esi + 0x330]
call fcn.0043871e
mov ecx, dword [esi + 0x330]
push 1
call fcn.0043871a
push eax
call edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x407290
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push 0
push 0
mov esi, ecx
push esi
push 0x403540
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 0x14]
mov ecx, esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00439fca
pop esi
pop ebp
ret 0x10

Function at 0x407e30
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x489ab0
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x4b135c]
xor eax, esp
mov dword [esp + 0x4c], eax
push esi
push edi
mov eax, dword [0x4b135c]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
lea ecx, [esp + 0x10]
push 0x24
push str.AlgorithmParametersBase:_parameter__
mov dword [esp + 0x14], edi
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], 0
mov byte [esp + 0x18], 0
call fcn.00401860
push esi
lea edx, [esp + 0x14]
mov dword [esp + 0x6c], 0
lea ecx, [esp + 0x44]
call fcn.004055a0
push str.__not_used
mov edx, eax
mov byte [esp + 0x70], 1
lea ecx, [esp + 0x30]
call fcn.004055a0
add esp, 8
mov esi, eax
mov ecx, edi
mov byte [esp + 0x68], 2
call fcn.0041eda3
mov byte [esp + 0x68], 3
lea ecx, [edi + 0x10]
push 0xffffffffffffffff
mov dword [edi], vtable.CryptoPP::Exception.0
mov dword [edi + 0xc], 6
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push esi
mov byte [ecx], 0
call fcn.004016d0
cmp dword [esp + 0x3c], 0x10
jb 0x407f13
push dword [esp + 0x28]
call fcn.0046f2be
add esp, 4
cmp dword [esp + 0x54], 0x10
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], 0
mov byte [esp + 0x28], 0
jb 0x407f3b
push dword [esp + 0x40]
call fcn.0046f2be
add esp, 4
cmp dword [esp + 0x24], 0x10
mov dword [esp + 0x54], 0xf
mov dword [esp + 0x50], 0
mov byte [esp + 0x40], 0
jb 0x407f63
push dword [esp + 0x10]
call fcn.0046f2be
add esp, 4
mov eax, edi
mov dword [edi], vtable.CryptoPP::AlgorithmParametersBase::ParameterNotUsed.0
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x4c]
xor ecx, esp
call fcn.0041d30f
mov esp, ebp
pop ebp
ret 4
Function at 0x40aad0
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x489ed8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4b135c]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
mov eax, dword [0x4b135c]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 0x10]
sub esp, 0x18
mov ecx, esp
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.004016d0
push dword [ebp + 0xc]
lea eax, [esp + 0x2c]
push dword [ebp + 8]
push eax
call fcn.0040a9f0
add esp, 0x24
mov dword [esp + 0x38], 0
cmp dword [eax + 0x14], 0x10
jb 0x40ab4d
mov eax, dword [eax]
mov dword [esp + 0xc], eax
mov ecx, esi
lea eax, [esp + 0xc]
push eax
call fcn.0041ed40
cmp dword [esp + 0x24], 0x10
mov dword [esi], vtable.std::runtime_error.0
jb 0x40ab76
push dword [esp + 0x10]
call fcn.0046f2be
add esp, 4
mov ecx, dword [ebp + 8]
mov eax, esi
mov dword [esi + 0xc], ecx
mov ecx, dword [ebp + 0xc]
mov dword [esi], vtable.std::_System_error.0
mov dword [esi + 0x10], ecx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0041d30f
mov esp, ebp
pop ebp
ret 0xc

Function at 0x40b680
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x489fa3
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4b135c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0xc], 0
mov dword [esi + 0x34], 0xf
mov dword [esi + 0x30], 0
mov byte [esi + 0x20], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 1
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [ebp - 4], 0
lea eax, [esi + 0x40]
mov dword [esi], vtable.TiXmlElement.0
mov dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0xffffffff
mov dword [eax + 0xc], 0
mov dword [eax], vtable.TiXmlAttribute.0
mov dword [eax + 0x28], 0xf
mov dword [eax + 0x24], 0
mov byte [eax + 0x14], 0
mov dword [eax + 0x40], 0xf
mov dword [eax + 0x3c], 0
mov byte [eax + 0x2c], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x48], eax
mov dword [eax + 0x44], eax
mov edx, dword [ebp + 8]
mov byte [ebp - 4], 1
mov dword [esi + 0x1c], 0
mov dword [esi + 0x18], 0
cmp byte [edx], 0
jne 0x40b768
xor eax, eax
jmp 0x40b779
mov eax, edx
lea ebx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40b770
sub eax, ebx
push eax
push edx
lea ecx, [esi + 0x20]
call fcn.00401860
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40bd30
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48a003
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4b135c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0xc], 0
mov dword [esi + 0x34], 0xf
mov dword [esi + 0x30], 0
mov byte [esi + 0x20], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [ebp - 4], 0
lea ecx, [esi + 0x48]
mov dword [esi], vtable.TiXmlDocument.0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
mov byte [ecx], 0
mov byte [ebp - 4], 1
mov dword [esi + 0x68], 0xffffffff
mov dword [esi + 0x64], 0xffffffff
push 0
push 0x49edce
mov dword [esi + 0x60], 4
mov byte [esi + 0x6c], 0
mov byte [esi + 0x40], 0
mov dword [esi + 0x44], 0
call fcn.00401860
mov dword [esi + 0x68], 0
mov eax, esi
mov dword [esi + 0x64], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40be20
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48a033
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x4b135c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0xc], 0
mov dword [esi + 0x34], 0xf
mov dword [esi + 0x30], 0
mov byte [esi + 0x20], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [ebp - 4], 0
mov dword [esi], vtable.TiXmlDocument.0
mov dword [esi + 0x5c], 0xf
mov dword [esi + 0x58], 0
mov byte [esi + 0x48], 0
mov ebx, dword [ebp + 8]
mov byte [ebp - 4], 1
mov dword [esi + 0x68], 0xffffffff
mov dword [esi + 0x64], 0xffffffff
mov dword [esi + 0x60], 4
mov byte [esi + 0x6c], 0
cmp byte [ebx], 0
jne 0x40bee4
xor ecx, ecx
jmp 0x40befa
mov ecx, ebx
lea eax, [ecx + 1]
mov dword [ebp + 8], eax
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40bef0
sub ecx, dword [ebp + 8]
push ecx
push ebx
lea ecx, [esi + 0x20]
call fcn.00401860
push 0
push 0x49edce
lea ecx, [esi + 0x48]
mov byte [esi + 0x40], 0
mov dword [esi + 0x44], 0
call fcn.00401860
mov dword [esi + 0x68], 0
mov eax, esi
mov dword [esi + 0x64], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40c090
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
test ebx, ebx
jne 0x40c0ec
cmp byte [esi + 0x40], bl
jne 0x40c0e3
mov edx, dword [str.Failed_to_open_file]
mov byte [esi + 0x40], 1
mov dword [esi + 0x44], 2
cmp byte [edx], bl
jne 0x40c0bd
xor ecx, ecx
jmp 0x40c0cb
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40c0c2
sub ecx, edi
push ecx
push edx
lea ecx, [esi + 0x48]
call fcn.00401860
mov dword [esi + 0x68], 0xffffffff
mov dword [esi + 0x64], 0xffffffff
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret 8
mov edi, dword [esi + 0x18]
test edi, edi
je 0x40c102
mov ecx, edi
mov edi, dword [edi + 0x3c]
push 1
mov eax, dword [ecx]
call dword [eax]
test edi, edi
jne 0x40c0f3
push 2
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
push 0
push ebx
mov dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0xffffffff
call fcn.0041f814
push ebx
call fcn.0041f719
push 0
mov edi, eax
push 0
push ebx
mov dword [ebp + 8], edi
call fcn.0041f814
add esp, 0x1c
test edi, edi
jg 0x40c17c
cmp byte [esi + 0x40], 0
jne 0x40c0e3
mov edx, dword [str.Error_document_empty.]
mov byte [esi + 0x40], 1
mov dword [esi + 0x44], 0xc
cmp byte [edx], 0
je 0x40c0b9
mov ecx, edx
lea edi, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40c170
jmp 0x40c0c9
lea eax, [edi + 1]
push eax
call fcn.0041d187
push ebx
mov ebx, dword [ebp + 8]
mov edi, eax
push 1
push ebx
push edi
mov byte [edi], 0
call fcn.0041f1cb
add esp, 0x14
cmp eax, 1
je 0x40c1dd
push edi
call fcn.0041e5fd
add esp, 4
cmp byte [esi + 0x40], 0
jne 0x40c0e3
mov edx, dword [str.Failed_to_open_file]
mov byte [esi + 0x40], 1
mov dword [esi + 0x44], 2
cmp byte [edx], 0
je 0x40c0b9
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40c1d1
jmp 0x40c0c9
mov byte [edi + ebx], 0
mov eax, edi
cmp byte [edi], 0
mov ecx, edi
je 0x40c20c
lea ebx, [ebx]
mov dl, byte [eax]
cmp dl, 0xd
jne 0x40c203
inc eax
mov byte [ecx], 0xa
inc ecx
cmp byte [eax], 0xa
jne 0x40c207
jmp 0x40c206
mov byte [ecx], dl
inc ecx
inc eax
cmp byte [eax], 0
jne 0x40c1f0
mov byte [ecx], 0
mov ecx, esi
mov eax, dword [esi]
push 0
push 0
push edi
call dword [eax + 8]
push edi
call fcn.0041e5fd
add esp, 4
xor eax, eax
cmp byte [esi + 0x40], al
sete al
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x4100d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4100e9
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x410124
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x410120
lea ebx, [ebx]
cmp esi, edx
jae 0x410124
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x410110
cmp esi, edx
jb 0x41012b
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4104e0
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88c
mov eax, dword [0x4b135c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x208
lea eax, [ebp - 0x418]
mov ebx, ecx
push 0
push eax
mov dword [ebp - 0x88c], ebx
call fcn.00421df0
add esp, 0xc
lea eax, [ebp - 0x418]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [ebp + eax*2 - 0x41a], 0x5c
je 0x41054c
push 0x49fa50
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x620], ax
lea eax, [ebp - 0x61e]
push eax
call fcn.00421df0
add esp, 0xc
lea eax, [ebp - 0x418]
push 0x49fd14
push eax
lea eax, [ebp - 0x620]
push 0x4a1324
push eax
call fcn.00403350
add esp, 0x10
lea eax, [ebp - 0x888]
push eax
lea eax, [ebp - 0x620]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4105b8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d30f
mov esp, ebp
pop ebp
ret
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
jmp 0x4105d0
test byte [ebp - 0x888], 0x10
je 0x410666
push 0x49fd1c
lea eax, [ebp - 0x85c]
push eax
call edi
test eax, eax
je 0x410719
cmp word [ebp - 0x85c], 0x2e
je 0x410719
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.00421df0
add esp, 0xc
lea eax, [ebp - 0x85c]
push eax
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x210]
push 0x4a1324
push eax
call fcn.00403350
add esp, 0x10
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x410719
lea ecx, [ebp - 0x210]
call fcn.004104e0
jmp 0x410719
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.00421df0
add esp, 0xc
lea eax, [ebp - 0x85c]
push eax
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x210]
push 0x4a1324
push eax
call fcn.00403350
xor eax, eax
mov dword [ebp - 0x624], 7
add esp, 0x10
mov dword [ebp - 0x628], 0
mov word [ebp - 0x638], ax
cmp word [ebp - 0x210], ax
je 0x4106e4
lea eax, [ebp - 0x210]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4106d5
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x638]
call fcn.00401b00
lea ecx, [ebp - 0x210]
call fcn.00410750
cmp dword [ebp - 0x624], 8
jb 0x410719
push dword [ebp - 0x638]
call fcn.0046f2be
add esp, 4
lea eax, [ebp - 0x888]
push eax
push esi
call ebx
test eax, eax
jne 0x4105d0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [ebp - 0x88c]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041d30f
mov esp, ebp
pop ebp
ret