joyce8/EMBER2024-capa huggingface dataset:
Function at 0x418617
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
mov eax, dword [0x42a6ec]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push esi
push edi
xor ebx, ebx
xor esi, esi
xor edi, edi
cmp eax, ebx
jne 0x418660
call ebp
mov esi, eax
cmp esi, ebx
je 0x418646
mov dword [0x42a6ec], 1
jmp 0x418665
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x41865b
push 2
pop eax
mov dword [0x42a6ec], eax
jmp 0x418660
mov eax, dword [0x42a6ec]
cmp eax, 1
jne 0x4186bd
cmp esi, ebx
jne 0x418678
call ebp
mov esi, eax
cmp esi, ebx
jne 0x418678
xor eax, eax
jmp 0x418764
cmp word [esi], bx
mov eax, esi
je 0x41868d
inc eax
inc eax
cmp word [eax], bx
jne 0x41867f
inc eax
inc eax
cmp word [eax], bx
jne 0x41867f
sub eax, esi
inc eax
inc eax
mov ebp, eax
push ebp
call fcn.00410f0c
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x4186b0
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
jmp 0x418764
push ebp
push esi
push edi
call fcn.00410470
add esp, 0xc
jmp 0x4186a2
cmp eax, 2
je 0x4186c6
cmp eax, ebx
jne 0x418671
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebp, eax
cmp ebp, ebx
je 0x418671
cmp byte [ebp], bl
mov esi, ebp
je 0x4186fc
push ebx
push ebx
push 0xffffffffffffffff
push esi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
je 0x418671
push esi
add edi, eax
call fcn.0040fc80
lea esi, [esi + eax + 1]
cmp byte [esi], bl
pop ecx
jne 0x4186d9
inc edi
lea eax, [edi + edi]
push eax
mov dword [esp + 0x18], edi
call fcn.00410f0c
cmp eax, ebx
pop ecx
mov dword [esp + 0x10], eax
je 0x418775
cmp byte [ebp], bl
mov edi, ebp
mov esi, eax
je 0x418756
mov ecx, dword [esp + 0x14]
mov eax, esi
sub eax, dword [esp + 0x10]
sar eax, 1
sub ecx, eax
push ecx
push esi
push 0xffffffffffffffff
push edi
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x41876b
push edi
call fcn.0040fc80
push esi
lea edi, [edi + eax + 1]
call fcn.004108ad
cmp byte [edi], bl
pop ecx
pop ecx
lea esi, [esi + eax*2 + 2]
jne 0x41871c
push ebp
mov word [esi], bx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
push dword [esp + 0x10]
call fcn.0040fe08
pop ecx
push ebp
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x418671
Function at 0x418781
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [0x42a6f0]
push ebp
xor ebp, ebp
cmp eax, ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
jne 0x4187c1
call esi
test eax, eax
je 0x4187a6
mov dword [0x42a6f0], 1
jmp 0x4187c6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x4187bd
mov dword [0x42a6f0], 2
jmp 0x4187cf
xor eax, eax
jmp 0x41881d
cmp eax, 1
jne 0x4187ca
call esi
jmp 0x41881d
cmp eax, 2
jne 0x4187bd
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebp
push ebp
push 0xffffffffffffffff
mov ebx, eax
push ebx
push 1
push ebp
call edi
mov esi, eax
cmp esi, ebp
je 0x418815
lea eax, [esi + esi]
push eax
call fcn.00410f0c
mov ebp, eax
test ebp, ebp
pop ecx
je 0x418815
push esi
push ebp
push 0xffffffffffffffff
push ebx
push 1
push 0
call edi
test eax, eax
jne 0x418819
push ebp
call fcn.0040fe08
pop ecx
xor eax, eax
jmp 0x41881b
mov eax, ebp
pop edi
pop ebx
pop esi
pop ebp
ret
Function at 0x418bcc
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x418bfa
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x418c01
cmp ebx, dword [eax + 4]
jae 0x418c01
xor eax, eax
jmp 0x418df1
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x418c12
xor eax, eax
inc eax
jmp 0x418df0
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x418c28
cmp ecx, edx
jae 0x418d6d
cmp dword [eax + 4], 0
je 0x418c31
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x418c19
cmp dword [ebp + 8], 0
je 0x418c53
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x418d6d
cmp eax, esi
jae 0x418d6d
mov eax, dword [0x42a6f8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x418c78
cmp dword [esi*4 + 0x42a700], edi
je 0x418d71
inc esi
cmp esi, eax
jl 0x418c66
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x418ded
cmp dword [ebp - 8], 0x1000000
jne 0x418ded
test byte [ebp - 0xc], 0xcc
je 0x418cf6
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x418ded
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x418ded
cmp word [eax + 0x18], 0x10b
jne 0x418ded
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x418ded
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x418cf6
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x418cf6
test byte [ecx + 0x27], 0x80
jne 0x418d6d
push 1
push 0x42a740
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x418c0a
mov ecx, dword [0x42a6f8]
test ecx, ecx
mov edx, ecx
jle 0x418d2a
lea eax, [ecx*4 + 0x42a6fc]
cmp dword [eax], edi
je 0x418d2a
dec edx
sub eax, 4
test edx, edx
jg 0x418d1e
test edx, edx
jne 0x418d5b
push 0xf
pop ebx
cmp ecx, ebx
jg 0x418d37
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x418d4f
lea eax, [edx*4 + 0x42a700]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x418d3d
cmp ecx, 0x10
jge 0x418d5b
inc ecx
mov dword [0x42a6f8], ecx
push 0
push 0x42a740
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x418c0a
xor eax, eax
jmp 0x418df0
test esi, esi
jle 0x418c0a
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x42a740
call ebx
test eax, eax
jne 0x418c0a
cmp dword [esi*4 + 0x42a700], edi
je 0x418dc7
mov eax, dword [0x42a6f8]
lea esi, [eax - 1]
test esi, esi
jl 0x418db5
cmp dword [esi*4 + 0x42a700], edi
je 0x418db1
dec esi
jns 0x418da5
test esi, esi
jge 0x418dc5
cmp eax, 0x10
jge 0x418dc0
inc eax
mov dword [0x42a6f8], eax
lea esi, [eax - 1]
jmp 0x418dc7
je 0x418ddf
xor ecx, ecx
test esi, esi
jl 0x418ddf
lea eax, [ecx*4 + 0x42a700]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x418dcd
push 0
push 0x42a740
call ebx
jmp 0x418c0a
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41a37b
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x41a3a9
add al, 0x40
mov byte [ebp + 8], al
lea eax, [ebp + 8]
push eax
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x5c
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test eax, eax
je 0x41a3ae
cmp eax, 1
je 0x41a3ae
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x41a49d
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x4290c8]
push esi
mov esi, dword [ebp + 8]
test esi, esi
mov dword [ebp - 4], eax
je 0x41a51c
push esi
call fcn.0041a37b
test eax, eax
pop ecx
jne 0x41a4e4
call fcn.00414018
mov dword [eax], 0xf
call fcn.0041400f
mov dword [eax], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
call fcn.00412aab
leave
ret
and word [ebp - 6], 0
lea eax, [ebp - 0x218]
push eax
add esi, 0x40
lea eax, [ebp - 0x214]
push eax
mov word [ebp - 0xc], si
mov esi, 0x104
push esi
lea eax, [ebp - 0xc]
push eax
mov word [ebp - 0xa], 0x3a
mov word [ebp - 8], 0x2e
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
jmp 0x41a52f
lea eax, [ebp - 0x214]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x41a4d7
inc eax
cmp eax, esi
ja 0x41a4d7
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x41a566
cmp eax, dword [ebp + 0x10]
jg 0x41a547
mov eax, dword [ebp + 0x10]
add eax, eax
push eax
call fcn.00410f0c
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x41a57b
call fcn.0041400f
mov dword [eax], 0xc
jmp 0x41a4d7
cmp eax, dword [ebp + 0x10]
jle 0x41a57b
call fcn.0041400f
mov dword [eax], 0x22
jmp 0x41a4d7
lea eax, [ebp - 0x214]
push eax
push ecx
call fcn.00412807
pop ecx
pop ecx
jmp 0x41a4d9
Function at 0x41b318
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x42a7cc], ebx
push esi
push edi
jne 0x41b398
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x41b3d3
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x42a7cc], eax
je 0x41b3d3
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x42a7d0], eax
call esi
cmp dword [0x42a21c], 2
mov dword [0x42a7d4], eax
jne 0x41b398
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x42a7dc], eax
je 0x41b398
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x42a7d8], eax
mov eax, dword [0x42a7d8]
test eax, eax
je 0x41b3dd
call eax
test eax, eax
je 0x41b3c4
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x42a7dc]
test eax, eax
je 0x41b3c4
test byte [ebp - 8], 1
jne 0x41b3dd
cmp dword [0x42a228], 4
jb 0x41b3d7
or byte [ebp + 0x12], 0x20
jmp 0x41b3fc
xor eax, eax
jmp 0x41b40c
or byte [ebp + 0x12], 4
jmp 0x41b3fc
mov eax, dword [0x42a7d0]
test eax, eax
je 0x41b3fc
call eax
mov ebx, eax
test ebx, ebx
je 0x41b3fc
mov eax, dword [0x42a7d4]
test eax, eax
je 0x41b3fc
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x42a7cc]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41b6e9
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00416c50
mov eax, dword [0x4290c8]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.004174e6
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x41b81c
push 2
push esi
push dword [ebp + 8]
call fcn.004174e6
add esp, 0xc
cmp eax, ebx
je 0x41b81c
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x41b7bc
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.0040fb60
push 0x8000
push dword [ebp + 8]
call fcn.0041bcf1
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x41b772
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.00417767
add esp, 0xc
cmp eax, 0xffffffff
je 0x41b792
sub edi, eax
test edi, edi
jg 0x41b76a
jmp 0x41b7aa
call fcn.00414018
cmp dword [eax], 5
jne 0x41b7a7
call fcn.0041400f
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.0041bcf1
pop ecx
pop ecx
jmp 0x41b804
jge 0x41b804
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004174e6
push dword [ebp + 8]
call fcn.0041aed9
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x41b804
call fcn.0041400f
mov dword [eax], 0xd
call fcn.00414018
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0x1008]
push dword [ebp + 8]
call fcn.004174e6
add esp, 0xc
mov eax, esi
pop edi
jmp 0x41b81e
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.00412aab
leave
ret
Function at 0x41b82a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x41b9fe
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x42bf20]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x41b9fe
test cl, 0x48
je 0x41b895
cmp byte [eax + 5], 0xa
je 0x41b895
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41b8e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x41b8cf
call fcn.0041400f
mov dword [eax], 9
call fcn.00414018
mov dword [eax], esi
jmp 0x41b8df
cmp eax, 0x6d
je 0x41b9fe
push eax
call fcn.00414021
pop ecx
or eax, 0xffffffff
jmp 0x41ba00
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x41b9f9
test eax, eax
je 0x41b90e
cmp byte [ebx], 0xa
jne 0x41b90e
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x41b917
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x41b9f3
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x41b9e3
cmp al, 0xd
je 0x41b949
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x41b9d5
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x41b963
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x41b95e
add dword [ebp + 0x10], 2
jmp 0x41b9b7
mov dword [ebp + 0x10], eax
jmp 0x41b9d1
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41b98b
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x41b9d1
cmp dword [ebp - 0xc], 0
je 0x41b9d1
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x41b9ac
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x41b9b7
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x41b9d4
cmp ebx, dword [ebp + 0xc]
jne 0x41b9bc
cmp byte [ebp - 1], 0xa
jne 0x41b9bc
mov byte [ebx], 0xa
jmp 0x41b9d4
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004174e6
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x41b9d5
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x41b92d
jmp 0x41b9f3
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x41b9f3
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x41ba00
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41c1ab
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x41c1c4
or eax, 0xffffffff
jmp 0x41c225
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x41c221
push 0x3d
push esi
call fcn.004117a1
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x41c221
cmp esi, eax
je 0x41c221
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x42a23c]
sete cl
cmp eax, dword [0x42a240]
mov dword [ebp - 8], ecx
jne 0x41c207
mov edi, eax
call fcn.0041c14a
mov dword [0x42a23c], eax
cmp eax, ebx
jne 0x41c260
cmp dword [ebp + 0xc], ebx
je 0x41c229
cmp dword [0x42a244], ebx
je 0x41c229
call fcn.0041ba53
test eax, eax
je 0x41c260
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x41c232
xor eax, eax
jmp 0x41c224
push 4
call fcn.00410f0c
cmp eax, ebx
pop ecx
mov dword [0x42a23c], eax
je 0x41c221
mov dword [eax], ebx
cmp dword [0x42a244], ebx
jne 0x41c260
push 4
call fcn.00410f0c
cmp eax, ebx
pop ecx
mov dword [0x42a244], eax
je 0x41c221
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x42a23c]
call fcn.0041c0fd
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x41c2c1
cmp dword [esi], ebx
je 0x41c2c1
lea esi, [esi + edi*4]
push dword [esi]
call fcn.0040fe08
cmp dword [ebp - 8], ebx
pop ecx
jne 0x41c2a4
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x41c302
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x41c29b
mov eax, edi
shl eax, 2
push eax
push dword [0x42a23c]
call fcn.00412c11
cmp eax, ebx
pop ecx
pop ecx
je 0x41c302
jmp 0x41c2fd
cmp dword [ebp - 8], ebx
jne 0x41c36d
cmp edi, ebx
jge 0x41c2d0
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x42a23c]
call fcn.00412c11
cmp eax, ebx
pop ecx
pop ecx
je 0x41c221
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0x42a23c], eax
cmp dword [ebp + 0xc], ebx
je 0x41c357
push dword [ebp - 4]
call fcn.0040fc80
inc eax
inc eax
push eax
call fcn.00410f0c
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x41c357
push dword [ebp - 4]
push esi
call fcn.0040fd10
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x41c350
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.0040fe08
pop ecx
cmp dword [ebp - 8], ebx
je 0x41c365
push dword [ebp - 4]
call fcn.0040fe08
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x41c224
push dword [ebp - 4]
call fcn.0040fe08
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x41c22e
Function at 0x41b350
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x48456b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.00478a03
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x41b3d2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0047680a
mov eax, dword [eax]
push 0x579234
push eax
call fcn.00468d24
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00478c8e
test bl, bl
je 0x41b3d2
push 0x579234
lea ecx, [esp + 0xc]
call fcn.0047901e
push 0x57cda4
lea ecx, [esp + 0xc]
call fcn.0047901e
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x41b40e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00478c8e
jmp 0x41b4d9
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x41b492
lea edx, [esp + 0x7c]
push 0x57cda0
push edx
call fcn.00468d24
add esp, 8
test eax, eax
je 0x41b492
lea eax, [esp + 0x7c]
push 0x57cd9c
push eax
call fcn.00468d24
add esp, 8
test eax, eax
je 0x41b492
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x41b422
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.00478c8e
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x41c730
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x41c792
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x41c7a0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4846cb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x589b94]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x41c8d8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x41c806
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00478c8e
xor eax, eax
jmp 0x41c94f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00478dcb
push esi
lea ecx, [esp + 0xc]
call fcn.0047905a
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x41c92d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push SysReAllocString
call fcn.0041c730
test eax, eax
jne 0x41c92d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push SysReAllocString
mov ecx, edi
call fcn.0041c730
test eax, eax
jne 0x41c92d
lea eax, [esp + 0x14]
push 0x57cdb8
push eax
call fcn.00469f30
mov esi, eax
add esp, 8
test esi, esi
jne 0x41c90c
lea ecx, [esp + 0x14]
push 0x57cdb4
push ecx
call fcn.00469eb0
mov esi, eax
add esp, 8
test esi, esi
jne 0x41c90c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x41c90f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00478d7b
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x41c81e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00478c8e
xor eax, eax
jmp 0x41c94f
mov byte [esi], 0
push 0x57cdb0
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.00478c8e
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4