joyce8/EMBER2024-capa huggingface dataset:
Function at 0x468bdc
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4899c4
push 0x4899bc
push str.FlsAlloc
push 0x1e
call fcn.004688ac
mov esi, eax
add esp, 0x10
test esi, esi
je 0x468c10
push dword [ebp + 8]
mov ecx, esi
call dword [0x4841f0]
call esi
jmp 0x468c16
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x468c5a
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4899d4
push 0x4899cc
push str.FlsGetValue
push 0x20
call fcn.004688ac
mov esi, eax
add esp, 0x10
test esi, esi
je 0x468c91
push dword [ebp + 8]
mov ecx, esi
call dword [0x4841f0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x46d69f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0046d286

Function at 0x46d6aa
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0046d415

Function at 0x46dbcd
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0042aba0
mov eax, dword [0x496040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0046a6c4
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x46dc0f
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x46dd6b
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0047ffb0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x4e5390]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0046f160
mov ecx, dword [esi*4 + 0x4e5390]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x46dd64
cmp eax, dword [edi + ecx + 0x24]
jne 0x46dd64
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x46dd64
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0046f160
add esp, 0x14
test edx, edx
jl 0x46dd64
jg 0x46dcda
test eax, eax
jb 0x46dd64
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x46dd64
jl 0x46dcf4
cmp dword [ebp - 0x1008], eax
ja 0x46dd64
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x46dd12
test ebx, ebx
je 0x46dd4b
cmp ecx, edi
jae 0x46dd4b
mov al, byte [ecx]
cmp al, 0xd
jne 0x46dd2c
lea eax, [edi - 1]
cmp ecx, eax
jae 0x46dd38
cmp byte [ecx + 1], 0xa
jne 0x46dd38
inc ecx
jmp 0x46dd38
movzx eax, al
movsx eax, byte [eax + 0x496320]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x46dd12
cmp edx, ebx
jne 0x46dd12
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x46dd69
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00429756
leave
ret
Function at 0x46e2e9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4e5390]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x46e329
cmp byte [ebx], 0xa
jne 0x46e329
or byte [eax + edi + 0x28], 4
jmp 0x46e32e
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x46e42c
mov al, byte [edx]
cmp al, 0x1a
je 0x46e40e
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x46e35d
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x46e382
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x46e38c
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x46e33f
jmp 0x46e42c
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x46e409
cmp dword [ebp - 0xc], 0
je 0x46e409
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4e5390]
test byte [eax + edi + 0x28], 0x48
je 0x46e3e3
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x46e3ce
mov byte [esi], dl
jmp 0x46e3df
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4e5390]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x46e42c
cmp byte [ebp - 1], 0xa
jne 0x46e3f2
cmp esi, ebx
jne 0x46e3f2
mov byte [esi], 0xa
jmp 0x46e42b
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0046f17e
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x46e42c
mov byte [esi], 0xd
jmp 0x46e42b
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4e5390]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x46e428
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x46e42c
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x46e435
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x4e5390]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x46e478
cmp word [esi], dx
jne 0x46e478
or byte [edi + eax + 0x28], 4
jmp 0x46e47d
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x46e5d0
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x46e5b0
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x46e4bf
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x46e4f5
cmp eax, edx
jae 0x46e501
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x46e497
jmp 0x46e5d0
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x46e5ac
cmp dword [ebp - 0x14], 0
je 0x46e5ac
mov eax, dword [ebx*4 + 0x4e5390]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x46e584
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x46e54d
mov word [esi], cx
jmp 0x46e580
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4e5390]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4e5390]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4e5390]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x46e5d0
pop ebx
cmp word [ebp - 4], bx
jne 0x46e595
cmp esi, dword [ebp + 0xc]
jne 0x46e595
mov word [esi], bx
jmp 0x46e5cd
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0046f17e
add esp, 0x10
cmp word [ebp - 4], bx
je 0x46e5d0
push 0xd
jmp 0x46e5c9
mov ecx, dword [ebx*4 + 0x4e5390]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x46e5c7
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x46e5d0
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4714cb
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0047139f
Function at 0x471d08
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x496040]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x471d53
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004720e2
test al, al
jne 0x471d4d
sub edx, 2
cmp edx, edi
jne 0x471d33
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x471d75
lea eax, [edi + 2]
cmp edx, eax
je 0x471d75
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004719cf
add esp, 0x10
jmp 0x471e6f
push esi
lea ecx, [ebp - 0x255]
call fcn.004720e2
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x471db8
push dword [ebp - 0x25c]
jmp 0x471d65
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x471df5
cmp word [ebp - 0x226], 0
je 0x471e16
cmp word [ebp - 0x226], ax
jne 0x471df5
cmp word [ebp - 0x224], 0
je 0x471e16
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004719cf
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x471e62
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x471dcf
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x471e4a
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x471e6f
push 0x4714ee
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0047c830
add esp, 0x10
jmp 0x471e3f
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00429756
leave
ret
Function at 0x4731b4
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x473251
push ebx
push esi
call fcn.00473170
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.004702fc
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4731fe
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x473250
push edi
push eax
call fcn.004695ed
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x47321e
call fcn.00467782
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x47324f
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004702fc
add esp, 0x20
test eax, eax
jne 0x47323d
push edi
call fcn.00467782
jmp 0x473245
push ebx
call fcn.00467782
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x473254
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x473265
pop esi
ret
push ebx
push edi
push esi
call fcn.00473170
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004695ed
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x47328d
push ebx
push esi
push edi
call fcn.0042b3a0
add esp, 0xc
push 0
call fcn.00467782
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x473b6e
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00473500

Function at 0x47fd70
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x47fd9d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x47fd9d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x402e44
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x114], ecx
mov esi, edx
mov ebx, eax
lea edi, [ebp - 4]
xor eax, eax
push ebp
push 0x402f3f
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
jne 0x402e98
push 0x105
lea eax, [ebp - 0x10d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [ebp - 0x10d]
mov eax, esi
call fcn.0040161c
jmp 0x402f26
call sub.kernel32.dll_GetCommandLineA
mov dword [edi], eax
mov eax, dword [edi]
call fcn.00402dcc
mov dword [edi], eax
mov eax, dword [edi]
mov dword [ebp - 8], eax
mov eax, dword [edi]
call fcn.00402df4
mov dword [edi], eax
test ebx, ebx
je 0x402ec6
dec ebx
test ebx, ebx
jl 0x402ec6
mov eax, dword [edi]
cmp eax, dword [ebp - 8]
jne 0x402e9f
push esi
lea eax, [ebp - 0x114]
mov edx, dword [ebp - 8]
call fcn.0040165c
mov eax, dword [ebp - 0x114]
mov ecx, dword [edi]
sub ecx, dword [ebp - 8]
mov edx, 1
call fcn.004018f8
mov eax, dword [esi]
call fcn.004016a4
cmp eax, 2
jl 0x402f26
mov eax, dword [esi]
cmp byte [eax], 0x22
jne 0x402f26
mov eax, dword [esi]
call fcn.004016a4
mov edx, dword [esi]
cmp byte [edx + eax - 1], 0x22
jne 0x402f26
push esi
mov eax, dword [esi]
call fcn.004016a4
mov ecx, eax
sub ecx, 2
mov eax, dword [esi]
mov edx, 2
call fcn.004018f8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402f46
lea eax, [ebp - 0x114]
call fcn.00401530
ret

Function at 0x403128
Capabilities:
Get common file path

Disassembly:
push eax
sub esp, 0x108
push esp
push 0x105
call sub.kernel32.dll_GetTempPathA
mov edx, esp
mov eax, dword [esp + 0x108]
call fcn.0040165c
add esp, 0x108
pop edx
mov eax, dword [edx]
call fcn.004030a4
ret

Function at 0x4031dc
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x40329c
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [ebp - 4]
call fcn.0040797c
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push 0
push edi
call sub.advapi32.dll_RegQueryInfoKeyA
test eax, eax
jne 0x403286
cmp dword [ebp - 8], 0
jbe 0x403284
mov eax, dword [ebp - 8]
inc eax
call fcn.004010d4
mov ebx, eax
xor esi, esi
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], eax
jmp 0x403262
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.0040165c
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.0040796c
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], eax
inc esi
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
push edi
call sub.advapi32.dll_RegEnumKeyExA
cmp eax, 0x103
jne 0x403245
mov eax, ebx
call fcn.004010ec
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4032a3
lea eax, [ebp - 0x10]
call fcn.00401530
ret
Function at 0x4032ac
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x40336c
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [ebp - 4]
call fcn.0040797c
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push edi
call sub.advapi32.dll_RegQueryInfoKeyA
test eax, eax
jne 0x403356
cmp dword [ebp - 8], 0
jbe 0x403354
mov eax, dword [ebp - 8]
inc eax
call fcn.004010d4
mov ebx, eax
xor esi, esi
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], eax
jmp 0x403332
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.0040165c
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.0040796c
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], eax
inc esi
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
push edi
call sub.advapi32.dll_RegEnumValueA
cmp eax, 0x103
jne 0x403315
mov eax, ebx
call fcn.004010ec
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403373
lea eax, [ebp - 0x10]
call fcn.00401530
ret

Function at 0x40346c
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffffc
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov edi, dword [ebp + 8]
cmp byte [ebx + 0x18], 0
jne 0x4034e8
mov byte [ebp - 0x1004], 0
mov eax, dword [ebx + 0x19]
call fcn.0040189c
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
mov eax, esi
call fcn.0040189c
push eax
mov eax, dword [ebp - 4]
call fcn.0040189c
push eax
mov eax, dword [ebx + 0x1d]
call fcn.0040189c
push eax
call sub.kernel32.dll_GetPrivateProfileStringA
test eax, eax
je 0x4034df
mov eax, edi
lea edx, [ebp - 0x1004]
mov ecx, 0x1000
call fcn.0040168c
jmp 0x403519
mov eax, edi
call fcn.00401530
jmp 0x403519
mov eax, edi
mov edx, esi
call fcn.00401584
mov eax, dword [ebx + 0x19]
call fcn.0040189c
push eax
mov eax, esi
call fcn.0040189c
push eax
mov eax, dword [ebp - 4]
call fcn.0040189c
push eax
mov eax, dword [ebx + 0x1d]
call fcn.0040189c
push eax
call sub.kernel32.dll_WritePrivateProfileStringA
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x405f44
Capabilities:
Get file attributes

Disassembly:
call fcn.004028b4
push eax
call sub.kernel32.dll_GetFileAttributesA
inc eax
je 0x405f58
dec eax
and al, 0x10
sete al
ret
Function at 0x406110
Capabilities:
Read .ini file

Disassembly:
or eax, 0
je 0x406102
lea eax, [esi + 4]
call fcn.00402db8
mov dword [esi], eax
lea edx, [esi + 4]
inc eax
add esi, eax
mov eax, edi
call fcn.0040796c
cmp byte [esi + 4], 0
jne 0x4060e5
pop eax
call fcn.004010ec
pop ecx
pop ebx
pop edi
pop esi
ret
push esi
push edi
push ebx
push ecx
mov ebx, eax
mov eax, 0x8003
mov edi, edx
call fcn.004010d4
mov esi, eax
push eax
or byte [ebx + 0x18], 0
jne 0x406145
push dword [ebx + 0x19]
mov eax, 0x7fff
push eax
lea eax, [esi + 4]
push eax
push dword [ebx + 0x1d]
call sub.kernel32.dll_GetPrivateProfileSectionA
jmp 0x4060e0
push ebx
push esi
push edx
push ebp
mov edx, 0
mov ebp, dword [edi + 0x1c]
mov ebx, 0x7ffd
or ebp, ebp
je 0x406186
or ebx, ebx
je 0x406186
push edx
mov eax, edi
call fcn.004079d8
push eax
call fcn.00402db8
pop eax
xor ecx, 0xffffffff
mov edx, esi
sub ebx, ecx
ja 0x40617a
add ecx, ebx
xor ebx, ebx
add esi, ecx
call fcn.004011b8
pop edx
inc edx
dec ebp
jmp 0x406158
mov word [esi], 0
pop ebp
pop edx
pop esi
pop ebx
mov eax, ebx
call fcn.0040344c
push dword [ebx + 0x19]
push esi
push dword [ebx + 0x1d]
call sub.kernel32.dll_WritePrivateProfileSectionA
pop eax
call fcn.004010ec
pop ecx
pop ebx
pop edi
pop esi
ret

Function at 0x406f28
Capabilities:
Hide graphical window

Disassembly:
and byte [eax + 0x37], 0xef
test dl, dl
je 0x406f34
or byte [eax + 0x37], 0x10
mov byte [eax + 0x52], dl
mov ecx, dword [eax + 0x28]
jecxz 0x406f50
push eax
je 0x406f51
call dword [0x40c0fc]
pop eax
push 5
push dword [eax + 0x28]
call sub.user32.dll_ShowWindow
ret
mov byte [eax + 0x177], dl
push 0
push ecx
call sub.user32.dll_ShowWindow
pop eax
call dword [0x40c0fc]
ret

Function at 0x407ff8
Capabilities:
Capture screenshot

Disassembly:
push ebx
mov ebx, eax
call fcn.00407fac
je 0x40802a
mov eax, ebx
push edx
call fcn.00404b70
pop edx
cmp eax, edx
je 0x40802a
test edx, edx
mov eax, ebx
jne 0x40801c
pop ebx
inc edx
jmp fcn.00404b60
mov byte [ebx + 0x49], dl
xor edx, edx
call fcn.00404b60
xchg ebx, eax
cmp eax, 0
pop ebx
jne fcn.00408048
ret
Function at 0x409bc0
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040188c
xor eax, eax
push ebp
push 0x409c31
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00405e9c
mov edx, dword [ebp - 8]
mov eax, 0x40d788
call fcn.00401584
xor eax, eax
mov dword [0x40d784], eax
push 0
push 0x409ad4
call sub.user32.dll_EnumWindows
mov ebx, dword [0x40d784]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409c38
lea eax, [ebp - 8]
mov edx, 2
call fcn.00401554
ret

Function at 0x409c40
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push ecx
xor ebx, ebx
push eax
push 0xffffffffffffffff
push 0x1f0fff
call sub.kernel32.dll_OpenProcess
mov esi, eax
push esp
push esi
call sub.kernel32.dll_GetExitCodeProcess
test esi, esi
je 0x409c6f
mov eax, dword [esp]
push eax
push esi
call sub.kernel32.dll_TerminateProcess
cmp eax, 1
sbb ebx, ebx
inc ebx
push esi
call sub.kernel32.dll_CloseHandle
mov eax, ebx
pop edx
pop esi
pop ebx
ret
Function at 0x40a4bc
Capabilities:
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
xor edx, edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40a563
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x40d770]
push dword [eax + 0x28]
push 0x40a578
push ebx
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.00401764
mov edx, dword [ebp - 0x24]
mov eax, dword [0x40d76c]
call fcn.0040a454
lea eax, [ebp - 0x1e]
mov edx, 0x1e
call fcn.004026d4
mov dword [ebp - 0x1a], 3
mov word [ebp - 0xe], 0x14
lea edx, [ebp - 0x28]
mov eax, ebx
call fcn.004030b8
lea eax, [ebp - 0x28]
mov edx, 0x40a584
call fcn.004016ac
mov eax, dword [ebp - 0x28]
call fcn.0040189c
mov dword [ebp - 0x16], eax
lea eax, [ebp - 0x1e]
push eax
call sub.shell32.dll_SHFileOperationA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a56a
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.00401554
ret

Function at 0x40a8d8
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x48], ebx
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040188c
mov eax, dword [ebp - 8]
call fcn.0040188c
lea esi, [ebp - 0x44]
xor eax, eax
push ebp
push 0x40a9c1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor ecx, ecx
mov edx, 0x3c
call fcn.00401218
mov dword [esi], 0x3c
xor eax, eax
mov dword [esi + 8], eax
mov eax, dword [ebp - 4]
call fcn.0040189c
mov dword [esi + 0x10], eax
lea edx, [ebp - 0x48]
mov eax, dword [ebp - 4]
call fcn.004030cc
mov eax, dword [ebp - 0x48]
call fcn.0040189c
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 8]
call fcn.0040189c
mov dword [esi + 0x14], eax
mov dword [esi + 0x1c], ebx
mov eax, 0x400
mov dword [esi + 4], eax
cmp dword [ebp + 8], 1
jne 0x40a96f
or eax, 0x40
or eax, 0x200
mov dword [esi + 4], eax
push esi
call sub.shell32.dll_ShellExecuteExA
jmp 0x40a983
mov eax, dword [0x40c458]
mov eax, dword [eax]
call fcn.00407418
push 0x32
mov eax, dword [esi + 0x38]
push eax
call sub.kernel32.dll_WaitForSingleObject
cmp eax, 0x102
je 0x40a977
mov eax, dword [esi + 0x38]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a9c8
lea eax, [ebp - 0x48]
call fcn.00401530
lea eax, [ebp - 8]
mov edx, 2
call fcn.00401554
ret