joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b214
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffec
mov dword [esp], edx
mov edx, dword [esp]
mov dword [esp + 0x10], edx
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
xor edx, dword [eax + 0x204]
mov dword [esp + 4], edx
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 4]
xor edx, dword [eax + 0x208]
mov dword [esp + 8], edx
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x10]
mov ebx, dword [ecx + 8]
mov esi, dword [edx + 0xc]
xor ebx, dword [eax + 0x20c]
xor esi, dword [eax + 0x210]
xor edx, edx
mov ecx, esi
mov edi, esi
shr edi, 0x15
shl ecx, 0xb
or ecx, edi
mov edi, edx
and edi, 3
add ecx, ebx
xor ecx, dword [eax + edi*4 + 0x204]
mov ebp, ecx
mov edi, ecx
shr ebp, 8
and edi, 0xff
and ebp, 0xff
movzx edi, byte [eax + edi + 0x104]
movzx ebp, byte [eax + ebp + 0x104]
shl ebp, 8
or edi, ebp
mov ebp, ecx
shr ebp, 0x10
shr ecx, 0x18
and ebp, 0xff
and ecx, 0xff
movzx ebp, byte [eax + ebp + 0x104]
movzx ecx, byte [eax + ecx + 0x104]
shl ebp, 0x10
shl ecx, 0x18
or edi, ebp
or edi, ecx
mov ecx, ebx
xor edi, dword [esp + 4]
mov dword [esp + 0xc], edi
mov edi, ebx
shr edi, 0xf
shl ecx, 0x11
or ecx, edi
mov edi, edx
and edi, 3
xor ecx, esi
add ecx, dword [eax + edi*4 + 0x204]
mov ebp, ecx
mov edi, ecx
shr ebp, 8
and edi, 0xff
and ebp, 0xff
movzx edi, byte [eax + edi + 0x104]
movzx ebp, byte [eax + ebp + 0x104]
shl ebp, 8
or edi, ebp
mov ebp, ecx
shr ebp, 0x10
shr ecx, 0x18
and ebp, 0xff
and ecx, 0xff
movzx ebp, byte [eax + ebp + 0x104]
movzx ecx, byte [eax + ecx + 0x104]
shl ebp, 0x10
shl ecx, 0x18
or edi, ebp
or edi, ecx
xor edi, dword [esp + 8]
mov dword [esp + 4], ebx
mov dword [esp + 8], esi
mov ecx, edi
mov esi, ecx
mov ebx, dword [esp + 0xc]
inc edx
cmp edx, 0x20
jl 0x40b262
mov edx, dword [esp + 0x10]
xor ebx, dword [eax + 0x204]
mov dword [edx], ebx
xor esi, dword [eax + 0x208]
mov ecx, dword [esp + 0x10]
mov dword [ecx + 4], esi
mov edx, dword [esp + 4]
mov ecx, dword [esp + 0x10]
xor edx, dword [eax + 0x20c]
mov dword [ecx + 8], edx
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0x10]
xor edx, dword [eax + 0x210]
mov dword [ecx + 0xc], edx
mov edx, dword [esp]
call fcn.0040b560
add esp, 0x14
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x40b3b4
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffe0
mov ebx, eax
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
xor ecx, dword [ebx + 0x204]
mov dword [esp], ecx
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 4]
xor ecx, dword [ebx + 0x208]
mov dword [esp + 4], ecx
mov eax, dword [esp + 0xc]
mov esi, dword [eax + 8]
mov eax, dword [esp + 0xc]
xor esi, dword [ebx + 0x20c]
mov edi, dword [eax + 0xc]
xor edi, dword [ebx + 0x210]
push 0x10
push edx
lea eax, [esp + 0x18]
push eax
call fcn.00435378
add esp, 0xc
mov edx, 0x1f
mov eax, edi
mov ecx, edi
shr ecx, 0x15
shl eax, 0xb
or eax, ecx
mov ecx, edx
and ecx, 3
add eax, esi
xor eax, dword [ebx + ecx*4 + 0x204]
mov ebp, eax
mov ecx, eax
shr ebp, 8
and ecx, 0xff
and ebp, 0xff
movzx ecx, byte [ebx + ecx + 0x104]
movzx ebp, byte [ebx + ebp + 0x104]
shl ebp, 8
or ecx, ebp
mov ebp, eax
shr ebp, 0x10
shr eax, 0x18
and ebp, 0xff
and eax, 0xff
movzx ebp, byte [ebx + ebp + 0x104]
movzx eax, byte [ebx + eax + 0x104]
shl ebp, 0x10
shl eax, 0x18
or ecx, ebp
or ecx, eax
mov eax, esi
xor ecx, dword [esp]
mov dword [esp + 8], ecx
mov ecx, esi
shr ecx, 0xf
shl eax, 0x11
or eax, ecx
mov ecx, edx
and ecx, 3
xor eax, edi
add eax, dword [ebx + ecx*4 + 0x204]
mov ebp, eax
mov ecx, eax
shr ebp, 8
and ecx, 0xff
and ebp, 0xff
movzx ecx, byte [ebx + ecx + 0x104]
movzx ebp, byte [ebx + ebp + 0x104]
shl ebp, 8
or ecx, ebp
mov ebp, eax
shr ebp, 0x10
shr eax, 0x18
and ebp, 0xff
and eax, 0xff
movzx ebp, byte [ebx + ebp + 0x104]
movzx eax, byte [ebx + eax + 0x104]
shl ebp, 0x10
shl eax, 0x18
or ecx, ebp
or ecx, eax
xor ecx, dword [esp + 4]
mov dword [esp], esi
mov dword [esp + 4], edi
mov eax, ecx
mov edi, eax
mov esi, dword [esp + 8]
dec edx
test edx, edx
jge 0x40b410
mov eax, dword [esp + 0xc]
xor esi, dword [ebx + 0x204]
mov dword [eax], esi
xor edi, dword [ebx + 0x208]
mov edx, dword [esp + 0xc]
mov dword [edx + 4], edi
mov ecx, dword [esp]
mov eax, dword [esp + 0xc]
xor ecx, dword [ebx + 0x20c]
mov dword [eax + 8], ecx
mov eax, ebx
mov edx, dword [esp + 4]
mov ecx, dword [esp + 0xc]
xor edx, dword [ebx + 0x210]
mov dword [ecx + 0xc], edx
lea edx, [esp + 0x10]
call fcn.0040b560
add esp, 0x20
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x40b560
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov ebx, 0x4436fc
xor ecx, ecx
movzx esi, byte [edx + ecx]
mov esi, dword [ebx + esi*4]
xor dword [eax + 0x204], esi
movzx esi, byte [edx + ecx + 1]
mov esi, dword [ebx + esi*4]
xor dword [eax + 0x208], esi
movzx esi, byte [edx + ecx + 2]
mov esi, dword [ebx + esi*4]
xor dword [eax + 0x20c], esi
movzx esi, byte [edx + ecx + 3]
mov esi, dword [ebx + esi*4]
xor dword [eax + 0x210], esi
add ecx, 4
cmp ecx, 0x10
jl 0x40b569
pop esi
pop ebx
ret
Function at 0x40be00
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
push ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp dword [ebp - 0xc], 0
mov ebx, dword [ebp + 8]
jg 0x40be20
xor eax, eax
jmp 0x40bee1
mov edx, dword [ebp - 0xc]
test edx, edx
jns 0x40be2a
add edx, 0xf
sar edx, 4
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
add eax, 4
mov ecx, dword [eax]
xor ecx, dword [edx]
mov dword [ebp - 0x24], ecx
mov ecx, dword [eax + 4]
xor ecx, dword [edx + 4]
mov dword [ebp - 0x20], ecx
mov ecx, dword [eax + 8]
xor ecx, dword [edx + 8]
mov dword [ebp - 0x1c], ecx
mov ecx, ebx
mov eax, dword [eax + 0xc]
xor eax, dword [edx + 0xc]
lea edx, [ebp - 0x24]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
call fcn.0040c27c
add dword [ebp - 8], 0x10
mov edx, dword [ebp - 0x14]
dec edx
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0
jle 0x40bebd
mov eax, ebx
mov edx, dword [ebp - 8]
mov ecx, dword [eax]
xor ecx, dword [edx]
mov dword [ebp - 0x24], ecx
mov ecx, dword [eax + 4]
xor ecx, dword [edx + 4]
mov dword [ebp - 0x20], ecx
mov ecx, dword [eax + 8]
xor ecx, dword [edx + 8]
mov dword [ebp - 0x1c], ecx
mov eax, dword [eax + 0xc]
xor eax, dword [edx + 0xc]
mov dword [ebp - 0x18], eax
add ebx, 0x10
lea edx, [ebp - 0x24]
mov ecx, ebx
mov eax, dword [ebp - 4]
call fcn.0040c27c
add dword [ebp - 8], 0x10
dec dword [ebp - 0x10]
cmp dword [ebp - 0x10], 0
jg 0x40be79
mov eax, dword [ebp - 4]
add eax, 4
mov edx, ebx
mov ecx, dword [edx]
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov ecx, dword [edx + 8]
mov dword [eax + 8], ecx
mov edx, dword [edx + 0xc]
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 0x14]
shl eax, 4
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40bee8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
mov esi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
test ebx, ebx
je 0x40beff
test esi, esi
jg 0x40bf06
xor eax, eax
jmp 0x40bfbc
push 0x10
mov edx, dword [ebp - 4]
add edx, 4
push edx
lea ecx, [ebp - 0x2c]
push ecx
call fcn.00435378
add esp, 0xc
test esi, esi
jns 0x40bf22
add esi, 0xf
sar esi, 4
mov dword [ebp - 8], esi
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jle 0x40bfa1
lea ecx, [ebp - 0x1c]
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.0040c8ac
lea edx, [ebp - 0x2c]
mov eax, edx
mov ecx, dword [eax]
xor dword [ebp - 0x1c], ecx
mov ecx, dword [eax + 4]
xor dword [ebp - 0x18], ecx
mov ecx, dword [eax + 8]
xor dword [ebp - 0x14], ecx
mov eax, dword [eax + 0xc]
xor dword [ebp - 0x10], eax
mov eax, edx
mov edx, ebx
mov ecx, dword [edx]
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov ecx, dword [edx + 8]
mov dword [eax + 8], ecx
mov edx, dword [edx + 0xc]
mov dword [eax + 0xc], edx
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x1c]
mov dword [eax], edx
mov ecx, dword [ebp - 0x18]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 0x14]
mov dword [eax + 8], edx
mov ecx, dword [ebp - 0x10]
mov dword [eax + 0xc], ecx
add ebx, 0x10
add dword [ebp + 8], 0x10
dec dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0
jg 0x40bf34
push 0x10
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 4]
add eax, 4
push eax
call fcn.00435378
add esp, 0xc
mov eax, dword [ebp - 8]
shl eax, 4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40c1e0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov edi, eax
mov esi, 1
xor eax, eax
xor ecx, ecx
mov edx, esi
mov ebx, ecx
shl edx, 4
shl ebx, 2
add edx, edi
add edx, ebx
xor ebx, ebx
add edx, 0x14
movzx ebp, byte [edx + 1]
mov bl, byte [edx]
lea ebp, [ebp*4 + 0x44611a]
lea ebx, [ebx*4 + 0x445d1a]
mov bl, byte [ebx + eax]
xor bl, byte [ebp + eax]
movzx ebp, byte [edx + 2]
movzx edx, byte [edx + 3]
lea ebp, [ebp*4 + 0x44651a]
lea edx, [edx*4 + 0x44691a]
xor bl, byte [ebp + eax]
xor bl, byte [edx + eax]
lea edx, [esp + ecx*4]
mov byte [edx + eax], bl
inc ecx
cmp ecx, 4
jl 0x40c1f2
inc eax
cmp eax, 4
jl 0x40c1f0
mov ecx, esi
push 0x10
shl ecx, 4
lea eax, [esp + 4]
add ecx, edi
push eax
add ecx, 0x14
push ecx
call fcn.00435378
add esp, 0xc
inc esi
cmp esi, 0xa
jl 0x40c1ee
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x40e744
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [eax]
cmp edx, 0x11
jle 0x40e764
mov ecx, dword [eax + edx*4]
xor dword [eax + edx*4 - 0x44], ecx
mov ecx, dword [eax + edx*4]
xor dword [eax + edx*4 - 0x38], ecx
xor ecx, ecx
mov dword [eax + edx*4], ecx
dec edx
cmp edx, 0x11
jg 0x40e74b
cmp dword [eax], 0x11
jbe 0x40e77f
mov dword [eax], 0x11
jmp 0x40e773
dec dword [eax]
mov edx, dword [eax]
test edx, edx
je 0x40e77f
cmp dword [eax + edx*4], 0
je 0x40e771
ret

Function at 0x40efb8
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov ebx, edx
mov edi, eax
mov eax, dword [esi]
cmp eax, dword [ebx]
jae 0x40efff
mov eax, 1
jmp 0x40efd8
mov edx, dword [esi + eax*4]
xor edx, dword [ebx + eax*4]
mov dword [edi + eax*4], edx
inc eax
cmp eax, dword [esi]
jbe 0x40efce
mov ecx, dword [ebx]
mov edx, eax
sub ecx, dword [esi]
shl ecx, 2
shl edx, 2
push ecx
mov ecx, edx
add ecx, ebx
add edx, edi
push ecx
push edx
call fcn.00435378
add esp, 0xc
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x40f064
mov eax, dword [esi]
cmp eax, dword [ebx]
jbe 0x40f03d
mov eax, 1
jmp 0x40f016
mov edx, dword [esi + eax*4]
xor edx, dword [ebx + eax*4]
mov dword [edi + eax*4], edx
inc eax
cmp eax, dword [ebx]
jbe 0x40f00c
mov ecx, dword [esi]
mov edx, eax
sub ecx, dword [ebx]
shl ecx, 2
shl edx, 2
push ecx
mov ecx, edx
add ecx, esi
add edx, edi
push ecx
push edx
call fcn.00435378
add esp, 0xc
mov eax, dword [esi]
mov dword [edi], eax
jmp 0x40f064
mov eax, dword [ebx]
test eax, eax
jbe 0x40f050
mov edx, dword [esi + eax*4]
xor edx, dword [ebx + eax*4]
jne 0x40f050
dec eax
test eax, eax
ja 0x40f043
mov dword [edi], eax
test eax, eax
jbe 0x40f064
mov ecx, dword [esi + eax*4]
xor ecx, dword [ebx + eax*4]
mov dword [edi + eax*4], ecx
dec eax
test eax, eax
ja 0x40f056
pop edi
pop esi
pop ebx
ret
Function at 0x418264
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
add esp, 0xffffff70
xor eax, eax
mov dword [esp + 4], ecx
mov dword [esp], edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], eax
xor edx, edx
mov dword [esp + 8], edx
mov esi, dword [esp + 8]
jmp 0x4182e1
xor eax, eax
mov edx, dword [esp]
add edx, esi
add edx, eax
mov cl, byte [edx + 1]
mov byte [esp + eax + 0x19], cl
mov bl, byte [edx]
sub bl, cl
mov byte [esp + eax + 0x18], bl
mov dl, byte [edx + 2]
sub dl, cl
mov byte [esp + eax + 0x1a], dl
add eax, 3
cmp eax, 0x78
jl 0x41828f
mov ebx, 3
mov cl, byte [esp + ebx + 0x18]
sub cl, byte [esp + ebx + 0x15]
movsx ecx, cl
mov eax, ecx
cdq
xor eax, edx
sub eax, edx
mov edx, dword [esp + 8]
add dword [esp + edx*4 + 0xc], eax
inc ebx
cmp ebx, 0x78
jl 0x4182bb
add esi, 0x780
mov eax, dword [esp + 4]
add eax, 0xffffff88
cmp esi, eax
jl 0x41828d
inc dword [esp + 8]
cmp dword [esp + 8], 2
jle 0x418287
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
cmp edx, eax
jb 0x41830d
cmp eax, dword [esp + 0x14]
ja 0x41830d
xor eax, eax
jmp 0x41831f
cmp edx, dword [esp + 0x14]
ja 0x41831a
mov eax, 1
jmp 0x41831f
mov eax, 2
add esp, 0x90
pop esi
pop ebx
ret
Function at 0x42d978
Capabilities:
Get common file path

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffc00
mov esi, ecx
mov ebx, edx
mov edi, eax
push esi
mov eax, 0xcee
call fcn.0040d8a4
push eax
test ebx, ebx
je 0x42d9a1
cmp byte [ebx], 0
je 0x42d9a1
mov edx, ebx
jmp 0x42d9a3
xor edx, edx
push edx
call fcn.00426600
add esp, 0xc
call fcn.004266c8
call sub.KERNEL32.DLL_GetLastError
cmp eax, 3
jne 0x42da12
push esi
call fcn.00435598
pop ecx
mov ebp, eax
mov eax, esi
call fcn.00402270
test al, al
jne 0x42d9e6
push esp
push 0x400
call sub.KERNEL32.DLL_GetCurrentDirectoryA
push esp
call fcn.00435598
pop ecx
add eax, ebp
inc eax
mov ebp, eax
cmp ebp, 0x104
jle 0x42da12
push 0x104
mov eax, 0xe52
call fcn.0040d8a4
push eax
test ebx, ebx
je 0x42da07
cmp byte [ebx], 0
jne 0x42da09
xor ebx, ebx
push ebx
call fcn.00426600
add esp, 0xc
mov eax, edi
call fcn.0042dbec
add esp, 0x400
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x434fa8
Capabilities:
Get memory capacity

Disassembly:
add esp, 0xffffffe0
mov dword [esp], 0x20
push esp
call sub.KERNEL32.DLL_GlobalMemoryStatus
mov eax, dword [esp + 0xc]
add esp, 0x20
ret

Function at 0x43a480
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x43a4e2
call fcn.0043a430
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.00435598
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.00435598
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x43a540
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x440c50], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x43a61a
cmp dword [0x440c4c], 0
jne 0x43a61a
cmp dword [0x440e40], 0
je 0x43a5d4
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.0043a384
add esp, 8
mov ebx, eax
test eax, eax
jne 0x43a5ba
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.0043a384
add esp, 8
mov ebx, eax
test eax, eax
jne 0x43a5ba
lea ebx, [ebp - 0x84]
jmp 0x43a5bb
inc ebx
call fcn.0043a4fc
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x43a655
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x440c54
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.00435598
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x440c57
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x43a655
cmp dword [0x440c4c], 0
je 0x43a634
cmp dword [0x440c4c], 0xffffffff
je 0x43a655
push esi
call dword [0x440c4c]
pop ecx
mov eax, dword [0x440c50]
test eax, eax
je 0x43a655
cmp dword [0x440c50], 0xffffffff
je 0x43a655
cmp byte [eax], 0
je 0x43a655
push esi
push eax
call fcn.0043a480
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43b658
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x10]
and eax, 1
mov dword [0x440e40], eax
call fcn.004386f8
mov edx, dword [esi + 0x20]
push edx
mov ecx, dword [esi + 0x1c]
push ecx
call fcn.004389a0
add esp, 8
mov eax, dword [esi + 0x28]
push eax
call fcn.00436640
pop ecx
mov edx, dword [esi + 0x44]
push edx
call fcn.00436650
pop ecx
mov dword [0x44e56c], 1
mov dword [0x44e570], esi
lea ecx, [ebp - 8]
mov dword [0x44e558], ecx
call fcn.004361b0
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x44e548], eax
call sub.KERNEL32.DLL_GetCommandLineA
mov dword [0x44e544], eax
mov eax, dword [esi + 0x30]
push eax
mov edx, dword [esi + 0x2c]
push edx
call fcn.0043aa6c
add esp, 8
mov ecx, dword [esi + 0x40]
push ecx
mov eax, dword [esi + 0x3c]
push eax
mov edx, dword [esi + 0x38]
push edx
mov ecx, dword [esi + 0x34]
push ecx
call fcn.0043aab0
add esp, 0x10
call fcn.0043b510
mov edi, eax
test eax, eax
je 0x43b737
mov edx, dword [edi]
mov dword [edi + edx*4 + 4], 0xffffffff
push 0
push edi
call fcn.0043b518
add esp, 8
xor ecx, ecx
mov dword [ebp - 0xc], ecx
lea ebx, [edi + 4]
jmp 0x43b730
mov eax, dword [ebx]
mov edx, dword [eax + 0x14]
push edx
push 0
call dword [eax + 0x18]
add esp, 8
inc dword [ebp - 0xc]
add ebx, 4
mov ecx, dword [edi]
cmp ecx, dword [ebp - 0xc]
jg 0x43b71c
push 0
push 0x44e56c
call fcn.0043b518
add esp, 8
test byte [esi + 0x10], 1
je 0x43b7b3
mov ebx, dword [0x44e544]
jmp 0x43b755
inc ebx
mov al, byte [ebx]
cmp al, 0x20
je 0x43b754
cmp al, 9
je 0x43b754
cmp byte [ebx], 0x22
jne 0x43b769
mov dl, 0x22
inc ebx
jmp 0x43b76e
mov dl, 0x20
jmp 0x43b76e
inc ebx
mov al, byte [ebx]
test al, al
je 0x43b77c
cmp dl, al
je 0x43b77c
cmp al, 9
jne 0x43b76d
cmp byte [ebx], 0x22
jne 0x43b785
inc ebx
jmp 0x43b785
inc ebx
mov al, byte [ebx]
test al, al
je 0x43b78f
cmp al, 0x20
je 0x43b784
cmp al, 9
je 0x43b784
call fcn.0043b7dc
push eax
push ebx
push 0
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
push eax
call dword [esi + 0x18]
add esp, 0x10
push eax
call fcn.0043a9c4
pop ecx
jmp 0x43b7d4
mov edx, dword [0x44e540]
push edx
mov ecx, dword [0x44e53c]
push ecx
mov eax, dword [0x44e538]
push eax
call dword [esi + 0x18]
add esp, 0xc
push eax
call fcn.0043a9c4
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4013c0
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [ecx + 0x18]
mov edx, 0x10
cmp eax, edx
jb 0x4013d1
mov eax, dword [ecx + 4]
jmp 0x4013d4
lea eax, [ecx + 4]
cmp dword [ecx + 0x34], edx
jb 0x4013de
mov ecx, dword [ecx + 0x20]
jmp 0x4013e1
add ecx, 0x20
mov edx, dword [esp + 8]
push eax
mov eax, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x18]
push edx
mov edx, dword [esp + 0x10]
push eax
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
ret 0x10

Function at 0x401a90
Capabilities:
Accept command line arguments
Check mutex on windows

Disassembly:
sub esp, 0x408
mov eax, dword [0x412100]
push 0
push str._nry
mov dword [esp + 0x40c], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
push eax
call fcn.004012a0
add esp, 0xc
test al, al
je 0x401b09
lea eax, [esp + 4]
push edi
push eax
call fcn.004038f0
lea edi, [esp + 0xc]
add esp, 4
dec edi
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x401ad0
mov ecx, dword [0x40f2b0]
push 0x20
lea edx, [esp + 0xc]
push 0
push edx
mov dword [edi], ecx
call fcn.00402060
add esp, 0xc
pop edi
xor eax, eax
mov ecx, dword [esp + 0x404]
call fcn.00404b17
add esp, 0x408
ret 0x10
call fcn.00402a60
test eax, eax
jne 0x401b78
push 0x4019b0
push eax
lea eax, [esp + 8]
push eax
call fcn.004021e0
mov ecx, dword [esp + 0xc]
add esp, 0xc
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.E1BE136E16F348a38576B1D7987725E3M
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401b64
or eax, 0xffffffff
mov ecx, dword [esp + 0x404]
call fcn.00404b17
add esp, 0x408
ret 0x10
call fcn.00401b90
mov ecx, 0x412cdc
call fcn.00404000
call fcn.00401c00
mov ecx, dword [esp + 0x404]
xor eax, eax
call fcn.00404b17
add esp, 0x408
ret 0x10

Function at 0x401c80
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x401c9a
test al, 0x10
jne 0x401c9a
mov eax, 1
ret
xor eax, eax
ret

Function at 0x401ca0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x401cba
test al, 0x10
je 0x401cba
mov eax, 1
ret
xor eax, eax
ret

Function at 0x401d90
Capabilities:
Copy file

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
ret
Function at 0x401dd0
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
push 0xffffffffffffffff
push 0x40e77b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x548
mov eax, dword [0x412100]
push ebp
mov ebp, dword [esp + 0x55c]
push esi
push ebp
mov dword [esp + 0x550], eax
lea eax, [esp + 0x150]
push str._s.
push eax
call fcn.0040514d
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x150]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x401e37
mov al, 1
jmp 0x401ed0
push edi
mov dword [esp + 0xc], esi
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov dword [esp + 0x55c], 0
lea ecx, [ecx]
lea eax, [esp + 0x3c]
push 0x40f2d4
push eax
call fcn.004052c5
add esp, 8
test eax, eax
je 0x401eaf
lea ecx, [esp + 0x3c]
push 0x40f2d0
push ecx
call fcn.004052c5
add esp, 8
test eax, eax
je 0x401eaf
test byte [esp + 0x10], 0x10
je 0x401ef3
lea edx, [esp + 0x3c]
push edx
push ebp
lea eax, [esp + 0x158]
push str._s_s
push eax
call fcn.0040514d
lea ecx, [esp + 0x160]
push ecx
call fcn.00401dd0
add esp, 0x14
test al, al
je 0x401ef3
lea edx, [esp + 0x10]
push edx
push esi
call edi
test eax, eax
jne 0x401e50
test esi, esi
je 0x401ec6
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebp
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov al, 1
pop edi
mov ecx, dword [esp + 0x550]
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x548]
pop ebp
call fcn.00404b17
add esp, 0x554
ret
test esi, esi
je 0x401efe
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor al, al
jmp 0x401ecf

Function at 0x402060
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push edi
xor eax, eax
mov ecx, 0x11
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
lea ecx, [esp + 4]
push ecx
mov ecx, dword [esp + 0x60]
lea edx, [esp + 0x18]
push edx
push eax
push eax
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x74]
or eax, 0x8000000
push eax
push 0
push 0
push 0
push ecx
push 0
mov dword [esp + 0x3c], 0x44
mov dword [esp + 0x44], str.winsta0Default
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
pop edi
jne 0x4020c3
add esp, 0x54
ret
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x4020d7
mov edx, dword [esp]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 8]
push ecx
call esi
mov eax, 1
pop esi
add esp, 0x54
ret