joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42f9b0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x468398
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x42f9e9
inc eax
mov dword [esi + 0x10], eax
jmp 0x42fafc
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x42f9fd
mov eax, 0xffffffc7
jmp 0x42fafe
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x42fa0e
cmp dword [esi + 8], eax
jne 0x42f9fd
cmp dword [esi + 8], eax
jne 0x42fa27
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x42fa27
mov eax, 0xffffffc7
jmp 0x42fafe
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x42fa3b
push eax
mov ecx, ebx
call fcn.0042f1e0
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.00401d40
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x42fa6c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.00401d60
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.0042e950
test eax, eax
mov dword [esp + 0x38], eax
je 0x42fa9f
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x84c4c0
call fcn.00401f40
mov eax, dword [esp + 0x38]
jmp 0x42fafe
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.0042f810
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x42fae3
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.0042f830
mov esi, eax
test esi, esi
jne 0x42fb13
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.0042f810
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x42fab5
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x84c4c0
call fcn.00401f40
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x84c4c0
call fcn.00401f40
mov eax, esi
jmp 0x42fafe

Function at 0x432c20
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x432c80
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x432c80
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x432c80
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x432c80
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x432cc0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x438df0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4689c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.00461a28
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.00438790
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00461956
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.0045e21a
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.0045e21a
push 1
push 0
push 0
mov ecx, esi
call fcn.0045e1c2
push 1
push 0
push 1
mov ecx, esi
call fcn.0045e1c2
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00461a9a
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x438f70
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4689e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.00461a28
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.00438790
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.00461956
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x439034
cmp dword [esp + 0x40], 1
jne 0x439032
cmp ecx, eax
jge 0x439034
mov eax, ecx
cmp eax, 0xc8
jge 0x439040
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.00438df0
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.00461a9a
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x4397c0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x468a53
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0045c638
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.00461cd0
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004631ec
test eax, eax
je 0x4398dc
mov ecx, dword [esp + 0x3c]
call fcn.00461cfd
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x4398a0
push edi
mov ecx, esi
call fcn.0045f36a
mov ecx, esi
call fcn.00439a40
cmp dword [esp + 0x38], 1
jne 0x4398d5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0045f4a5
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x43c310
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43c343
push esi
call fcn.0043f400
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43c33c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x43c3c9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43c3b2
mov eax, dword [esi + 8]
test eax, eax
je 0x43c367
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x43c3ae
cmp eax, 2
je 0x43c3b2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43c35a
cmp eax, 3
je 0x43c38d
cmp eax, 1
jne 0x43c35a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x43c35a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43c35a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043c3f0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43c3d8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043c3f0
add esp, 4
pop esi
ret

Function at 0x447f00
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x447fa3
test eax, eax
jbe 0x447fa3
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x447fa3
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x447f4e
xor esi, esi
jmp 0x447f54
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x447f7f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.00449ea0
add esi, eax
push esi
mov ebx, esi
call fcn.00449ea0
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x447f60
pop ebp
test edi, edi
pop edi
jne 0x447fa3
test ebx, ebx
je 0x447fa3
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.0044c320
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x4480e5
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4481fd
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x4481fd
mov eax, dword [esi + 0x3c]
push eax
call fcn.0045ca8a
mov esi, eax
test esi, esi
je 0x4481fd
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x4481fd
mov ecx, esi
call fcn.00448050
cmp edi, eax
jge 0x4481fd
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x448183
mov dword [esp + 0x34], 1
jmp 0x4481de
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x4481fd
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.00447650
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x45d42d
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x45d465
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0045b4e4
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0045b4bc
jmp 0x45d471
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x45eb22
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 0x45eb64
call fcn.004645d7
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x45eb64
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x45eb5b
xor eax, eax
jmp 0x45eb6c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0045eb72
pop edi
pop esi
pop ebx
ret 4
Function at 0x464b07
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 0x464b35
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x464b53
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00464a6d
jmp 0x464b53
mov eax, dword [esi + 0x14]
test eax, eax
je 0x464b53
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00464a6d
test edi, edi
mov eax, edi
jne 0x464b3d
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401000
Capabilities:
Create directory
Get common file path

Disassembly:
sub esp, 0x118
mov eax, dword [0x43ec10]
push ebx
mov dword [esp + 0x118], eax
lea eax, [esp + 0x14]
push eax
push 0x104
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x4010ab
push esi
push edi
push 0
call fcn.00410a33
push eax
call fcn.00410a04
add esp, 8
xor esi, esi
call fcn.00410a11
cdq
mov ecx, 0xa
idiv ecx
add dl, 0x30
mov byte [esp + esi + 0xc], dl
inc esi
cmp esi, 0xb
jl 0x401041
lea eax, [esp + 0xc]
mov byte [esp + esi + 0xc], 0x5c
mov byte [esp + esi + 0xd], 0
mov edx, eax
jmp 0x401070
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401070
lea edi, [esp + 0x1c]
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x401080
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0
lea edx, [esp + 0x20]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
pop edi
pop esi
jne 0x4010c1
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x114]
call fcn.00410a9d
add esp, 0x118
ret
lea eax, [esp + 0x14]
lea edx, [ebx + 0x640]
mov ecx, eax
sub edx, ecx
nop
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4010d0
mov ecx, dword [esp + 0x118]
mov eax, 1
pop ebx
call fcn.00410a9d
add esp, 0x118
ret
Function at 0x4014a0
Capabilities:
Create directory

Disassembly:
sub esp, 0x20c
mov eax, dword [0x43ec10]
mov edx, dword [esp + 0x210]
push ebx
push esi
mov dword [esp + 0x210], eax
mov eax, dword [ecx + 0xc]
mov edx, dword [eax + edx*4]
lea esi, [esp + 0x10c]
push edi
mov edi, esi
jmp 0x4014d0
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
test al, al
jne 0x4014d0
lea eax, [ecx + 0x640]
lea edx, [esp + 0xc]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4014e6
lea eax, [esp + 0x110]
push 0x430610
push eax
call fcn.00411020
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x401583
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov eax, esi
mov byte [ebx], 0
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401520
lea edi, [esp + 0x10]
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x401530
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x10]
dec edi
lea ecx, [ecx]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x401550
mov cx, word [0x430610]
push 0
lea edx, [esp + 0x14]
push edx
mov word [edi], cx
call ebp
lea esi, [ebx + 1]
push 0x430610
push esi
call fcn.00411020
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x401512
pop ebp
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov eax, 1
pop ebx
call fcn.00410a9d
add esp, 0x20c
ret 4
Function at 0x4015a0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov eax, 0x292c
call fcn.004110b0
mov eax, dword [0x43ec10]
push ebp
mov dword [esp + 0x292c], eax
push 0x104
lea eax, [esp + 0x11c]
push eax
push 0
mov ebp, ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x4015f8
push 0
push 0
push 3
push 0
push 0
push SysReAllocString
lea ecx, [esp + 0x130]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esp + 8], eax
jne 0x40160e
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x2928]
call fcn.00410a9d
add esp, 0x292c
ret
mov ecx, dword [ebp + 4]
push ebx
push esi
push edi
xor edi, edi
test ecx, ecx
mov dword [esp + 0x10], edi
jbe 0x401784
lea eax, [ebp + 0x640]
lea esi, [esp + 0x20]
sub esi, eax
mov dword [esp + 0x1c], esi
jmp 0x401640
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x1c]
lea esp, [esp]
push edi
mov ecx, ebp
call fcn.004014a0
lea eax, [ebp + 0x640]
mov edi, edi
mov cl, byte [eax]
mov byte [esi + eax], cl
inc eax
test cl, cl
jne 0x401650
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + edi*4]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401662
lea edi, [esp + 0x20]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x401670
mov ecx, eax
shr ecx, 2
push 0
rep movsd dword es:[edi], dword [esi]
push 0x80
push 2
push 0
push 0
mov ecx, eax
push 0x40000000
lea eax, [esp + 0x38]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4017a7
mov ecx, dword [ebp]
mov edx, dword [esp + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push ecx
push edx
call edi
cmp eax, 0xffffffff
je 0x4017a7
mov eax, dword [ebp + 8]
mov esi, dword [esp + 0x10]
mov ecx, dword [eax + esi*4]
mov edx, dword [esp + 0x14]
push 1
push 0
push ecx
push edx
call edi
cmp eax, 0xffffffff
je 0x4017a7
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + esi*4]
lea eax, [eax + esi*4]
xor edi, edi
test ecx, ecx
jbe 0x401769
lea ebx, [ebx]
mov eax, dword [eax]
mov esi, 0x2710
sub eax, edi
cmp eax, esi
jae 0x40170f
mov esi, eax
mov eax, dword [esp + 0x14]
push 0
lea ecx, [esp + 0x1c]
push ecx
push esi
lea edx, [esp + 0x234]
push edx
push eax
add edi, esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4017a7
cmp dword [esp + 0x18], esi
jne 0x4017a7
push 0
lea ecx, [esp + 0x1c]
push ecx
push esi
lea edx, [esp + 0x234]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4017a7
cmp dword [esp + 0x18], esi
jne 0x4017a7
mov ecx, dword [esp + 0x10]
mov eax, dword [ebp + 0x10]
lea eax, [eax + ecx*4]
cmp edi, dword [eax]
jb 0x401700
mov esi, dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 4]
inc esi
cmp esi, eax
mov dword [esp + 0x10], esi
jb 0x401634
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x2928]
call fcn.00410a9d
add esp, 0x292c
ret
mov ecx, dword [esp + 0x2938]
pop edi
pop esi
pop ebx
xor eax, eax
pop ebp
call fcn.00410a9d
add esp, 0x292c
ret
Function at 0x401a50
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x108
mov eax, dword [0x43ec10]
push esi
mov dword [esp + 0x108], eax
lea eax, [ecx + 0x640]
lea esi, [esp + 4]
push edi
sub esi, eax
mov dl, byte [eax]
mov byte [esi + eax], dl
inc eax
test dl, dl
jne 0x401a70
lea eax, [ecx + 0x119]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401a82
lea edi, [esp + 8]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x401a90
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
push 0xa
push 0
mov ecx, eax
push 0
lea eax, [esp + 0x14]
push eax
push str.open
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
pop edi
pop esi
jg 0x401adb
push 0x10
push str.Error
push str.Could_not_initiate_the_secondary_file
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x104]
mov eax, 1
call fcn.00410a9d
add esp, 0x108
ret

Function at 0x401f60
Capabilities:
Create directory

Disassembly:
sub esp, 0x108
mov eax, dword [0x43ec10]
push esi
mov dword [esp + 0x108], eax
push 0x104
lea eax, [esp + 8]
push eax
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x401f9f
pop esi
mov ecx, dword [esp + 0x104]
call fcn.00410a9d
add esp, 0x108
ret
push str.Cache_
push 0x430610
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call fcn.00401da0
add esi, 0x330
lea eax, [esp + 4]
mov edx, esi
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x401fc5
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [esp + 0x108]
mov eax, 1
pop esi
call fcn.00410a9d
add esp, 0x108
ret
Function at 0x403630
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x403649
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40365d
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x40367e
cmp esi, eax
jae 0x403657
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x403670
cmp esi, eax
jae 0x403657
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret