joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004fb0
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x100c034]
mov dword [ebp - 0x10], eax
push 0x12
push 0
push 0
push 0x1001270
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x100501c
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1001bb8
lea eax, [ebp - 0x90]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0x1001ba8
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea ecx, [ebp - 0x90]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor edx, edx
jne 0x1004fdd
or eax, 0xffffffff
jmp 0x1005090
mov dword [ebp - 4], 0
mov eax, 1
test eax, eax
je 0x100504f
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.010050b0
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x1005044
jmp 0x100504f
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
jmp 0x1005023
push 0
push 0
push 0x1001b88
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0x1001ba8
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea edx, [ebp - 0x110]
push edx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
xor eax, eax
jne 0x100504f
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
xor eax, eax
mov ecx, dword [ebp - 0x10]
call fcn.01005938
mov esp, ebp
pop ebp
ret
Function at 0x1005b0e
Capabilities:
Accept command line arguments

Disassembly:
push 0x18
push 0x1001e20
call fcn.01006d9c
mov ebx, 0x94
push ebx
push 0
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x1005b4f
mov dword [esi], ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
push esi
test eax, eax
jne 0x1005b59
push eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, 0xff
jmp 0x1005c9f
mov eax, dword [esi + 0x10]
mov dword [0x100cbb4], eax
mov eax, dword [esi + 4]
mov dword [0x100cbc0], eax
mov eax, dword [esi + 8]
mov dword [0x100cbc4], eax
mov eax, dword [esi + 0xc]
and eax, 0x7fff
mov dword [0x100cbb8], eax
xor ebx, ebx
push ebx
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [0x100cbb4], 2
je 0x1005b9a
or byte [0x100cbb9], 0x80
mov eax, dword [0x100cbc0]
shl eax, 8
add eax, dword [0x100cbc4]
mov dword [0x100cbbc], eax
call fcn.01005aad
mov dword [ebp - 0x1c], eax
push 1
call fcn.01006d3e
pop ecx
test eax, eax
jne 0x1005bc9
push 0x1c
call fcn.01005a7f
pop ecx
call fcn.01006c11
test eax, eax
jne 0x1005bda
push 0x10
call fcn.01005a7f
pop ecx
mov dword [ebp - 4], ebx
call fcn.010067d8
test eax, eax
jge 0x1005bee
push 0x1b
call fcn.01005a50
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x100e6f4], eax
call fcn.010066ab
mov dword [0x100cba4], eax
call fcn.01006603
test eax, eax
jge 0x1005c14
push 8
call fcn.01005a50
pop ecx
call fcn.010063ab
test eax, eax
jge 0x1005c25
push 9
call fcn.01005a50
pop ecx
call fcn.01005f17
mov dword [ebp - 0x24], eax
cmp eax, ebx
je 0x1005c38
push eax
call fcn.01005a50
pop ecx
mov eax, dword [0x100cbd4]
mov dword [0x100cbd8], eax
push eax
push dword [0x100cbcc]
push dword [0x100cbc8]
call fcn.01004b70
add esp, 0xc
mov esi, eax
mov dword [ebp - 0x28], esi
cmp dword [ebp - 0x1c], ebx
jne 0x1005c67
push esi
call fcn.01006027
call fcn.0100605d
jmp 0x1005c99
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.01006dd7
ret
Function at 0x1006085
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 8]
push esi
xor esi, esi
mov dword [ebp - 4], esi
cmp ecx, dword [esi*8 + 0x100c040]
je 0x10060a7
inc esi
cmp esi, 0x13
mov dword [ebp - 4], esi
jb 0x1006095
cmp esi, 0x13
je 0x10061e3
mov eax, dword [0x100cbac]
cmp eax, 1
push ebx
je 0x10061b2
test eax, eax
jne 0x10060d0
cmp dword [0x100c03c], 1
je 0x10061b2
cmp ecx, 0xfc
je 0x10061e2
push edi
push 6
pop ecx
mov esi, 0x10021f0
mov edi, 0x100cbf8
rep movsd dword es:[edi], dword [esi]
push 0x104
mov ebx, 0x100cc12
push ebx
movsw word es:[edi], word [esi]
push 0
mov byte [0x100cd16], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x100611e
push 5
pop ecx
mov esi, 0x10021d8
mov edi, 0x100cc12
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1006123
sub eax, edx
inc eax
cmp eax, 0x3c
jbe 0x1006156
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1006137
sub eax, edx
push 3
lea eax, [eax + 0x100cbd7]
push 0x10021d4
push eax
call fcn.01008870
add esp, 0xc
mov edx, 0x100cbf8
mov edi, edx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x100615e
mov eax, dword [ebp - 4]
mov eax, dword [eax*8 + 0x100c044]
mov esi, 0x10021d0
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x100617a
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1006186
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x12010
mov ecx, eax
and ecx, 3
push 0x10021a8
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.01008768
add esp, 0xc
pop edi
jmp 0x10061e2
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x10061e2
mov edx, dword [esi*8 + 0x100c044]
mov ecx, edx
lea esi, [ecx + 1]
mov bl, byte [ecx]
inc ecx
test bl, bl
jne 0x10061ca
push 0
sub ecx, esi
lea esi, [ebp - 8]
push esi
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebx
pop esi
leave
ret
Function at 0x10066ab
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x100d018]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push edi
xor ebx, ebx
xor edi, edi
cmp eax, ebx
jne 0x10066f7
call esi
mov edi, eax
cmp edi, ebx
je 0x10066dd
mov dword [0x100d018], 1
jmp 0x10066fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x10066f2
push 2
pop eax
mov dword [0x100d018], eax
jmp 0x10066f7
mov eax, dword [0x100d018]
cmp eax, 1
jne 0x1006774
cmp edi, ebx
jne 0x1006708
call esi
mov edi, eax
cmp edi, ebx
je 0x100677d
cmp word [edi], bx
mov eax, edi
je 0x100671d
inc eax
inc eax
cmp word [eax], bx
jne 0x100670f
inc eax
inc eax
cmp word [eax], bx
jne 0x100670f
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push ebx
push ebx
sub eax, edi
push ebx
sar eax, 1
inc eax
push eax
push edi
push ebx
push ebx
mov dword [ebp - 0xc], eax
call esi
mov ecx, eax
cmp ecx, ebx
mov dword [ebp - 8], ecx
je 0x100676b
call fcn.01008999
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x100676b
push ebx
push ebx
push dword [ebp - 8]
push eax
push dword [ebp - 0xc]
push edi
push ebx
push ebx
call esi
test eax, eax
jne 0x1006768
push dword [ebp - 4]
call fcn.01005d15
pop ecx
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x10067cc
cmp eax, 2
je 0x1006781
cmp eax, ebx
je 0x1006781
xor eax, eax
jmp 0x10067ce
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov esi, eax
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x100677d
cmp byte [esi], bl
je 0x100679e
inc eax
cmp byte [eax], bl
jne 0x1006794
inc eax
cmp byte [eax], bl
jne 0x1006794
sub eax, esi
inc eax
mov edi, eax
mov ecx, edi
call fcn.01008999
cmp eax, ebx
je 0x10067c5
mov ecx, edi
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 4]
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1008768
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x100d190], ebx
push esi
push edi
jne 0x10087ea
push 0x1002360
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x1008825
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1002354
push edi
call esi
test eax, eax
mov dword [0x100d190], eax
je 0x1008825
push 0x1002344
push edi
call esi
push 0x1002330
push edi
mov dword [0x100d194], eax
call esi
cmp dword [0x100cbb4], 2
mov dword [0x100d198], eax
jne 0x10087ea
push 0x1002314
push edi
call esi
test eax, eax
mov dword [0x100d1a0], eax
je 0x10087ea
push 0x10022fc
push edi
call esi
mov dword [0x100d19c], eax
mov eax, dword [0x100d19c]
test eax, eax
je 0x100882f
call eax
test eax, eax
je 0x1008816
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x100d1a0]
test eax, eax
je 0x1008816
test byte [ebp - 8], 1
jne 0x100882f
cmp dword [0x100cbc0], 4
jb 0x1008829
or byte [ebp + 0x12], 0x20
jmp 0x100884e
xor eax, eax
jmp 0x100885e
or byte [ebp + 0x12], 4
jmp 0x100884e
mov eax, dword [0x100d194]
test eax, eax
je 0x100884e
call eax
mov ebx, eax
test ebx, ebx
je 0x100884e
mov eax, dword [0x100d198]
test eax, eax
je 0x100884e
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x100d190]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10092e2
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
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 0x1009313
mov eax, dword fs:[4]
mov dword [ebp + 8], eax
mov eax, dword fs:[8]
mov dword [ebp - 4], eax
cmp ebx, dword [ebp - 4]
jb 0x100931a
cmp ebx, dword [ebp + 8]
jae 0x100931a
xor eax, eax
jmp 0x100950a
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x100932b
xor eax, eax
inc eax
jmp 0x1009509
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x1009341
cmp ecx, edx
jae 0x1009486
cmp dword [eax + 4], 0
je 0x100934a
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x1009332
cmp dword [ebp + 8], 0
je 0x100936c
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x1009486
cmp eax, esi
jae 0x1009486
mov eax, dword [0x100d1b8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x1009391
cmp dword [esi*4 + 0x100d1c0], edi
je 0x100948a
inc esi
cmp esi, eax
jl 0x100937f
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1009506
cmp dword [ebp - 8], 0x1000000
jne 0x1009506
test byte [ebp - 0xc], 0xcc
je 0x100940f
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x1009506
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x1009506
cmp word [eax + 0x18], 0x10b
jne 0x1009506
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x1009506
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x100940f
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x100940f
test byte [ecx + 0x27], 0x80
jne 0x1009486
push 1
push 0x100d200
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x1009323
mov ecx, dword [0x100d1b8]
test ecx, ecx
mov edx, ecx
jle 0x1009443
lea eax, [ecx*4 + 0x100d1bc]
cmp dword [eax], edi
je 0x1009443
dec edx
sub eax, 4
test edx, edx
jg 0x1009437
test edx, edx
jne 0x1009474
push 0xf
pop ebx
cmp ecx, ebx
jg 0x1009450
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x1009468
lea eax, [edx*4 + 0x100d1c0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x1009456
cmp ecx, 0x10
jge 0x1009474
inc ecx
mov dword [0x100d1b8], ecx
push 0
push 0x100d200
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x1009323
xor eax, eax
jmp 0x1009509
test esi, esi
jle 0x1009323
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x100d200
call ebx
test eax, eax
jne 0x1009323
cmp dword [esi*4 + 0x100d1c0], edi
je 0x10094e0
mov eax, dword [0x100d1b8]
lea esi, [eax - 1]
test esi, esi
jl 0x10094ce
cmp dword [esi*4 + 0x100d1c0], edi
je 0x10094ca
dec esi
jns 0x10094be
test esi, esi
jge 0x10094de
cmp eax, 0x10
jge 0x10094d9
inc eax
mov dword [0x100d1b8], eax
lea esi, [eax - 1]
jmp 0x10094e0
je 0x10094f8
xor ecx, ecx
test esi, esi
jl 0x10094f8
lea eax, [ecx*4 + 0x100d1c0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x10094e6
push 0
push 0x100d200
call ebx
jmp 0x1009323
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1009dde
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x100c034]
xor ecx, ecx
cmp dword [ebp + 0x10], ecx
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 0x420], edi
mov dword [ebp - 0x418], ecx
mov dword [ebp - 0x41c], ecx
jne 0x1009e15
xor eax, eax
jmp 0x1009fc8
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x100e5e0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x1009e4a
push 2
push ecx
push ecx
push dword [ebp + 8]
call fcn.0100ae36
add esp, 0x10
xor ecx, ecx
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x1009f18
cmp dword [ebp + 0x10], ecx
mov dword [ebp - 0x414], edi
mov dword [ebp - 0x40c], ecx
jbe 0x1009f96
jmp 0x1009e71
xor ecx, ecx
mov dword [ebp - 0x410], ecx
mov ecx, dword [ebp - 0x414]
sub ecx, dword [ebp - 0x420]
lea eax, [ebp - 0x408]
cmp ecx, dword [ebp + 0x10]
jae 0x1009ec7
mov edx, dword [ebp - 0x414]
inc dword [ebp - 0x414]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x1009eb2
inc dword [ebp - 0x41c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x410]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x410]
cmp dword [ebp - 0x410], 0x400
jl 0x1009e89
mov edi, eax
lea eax, [ebp - 0x408]
sub edi, eax
push 0
lea eax, [ebp - 0x424]
push eax
push edi
lea eax, [ebp - 0x408]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1009f45
mov eax, dword [ebp - 0x424]
add dword [ebp - 0x418], eax
cmp eax, edi
jl 0x1009f51
mov eax, dword [ebp - 0x414]
sub eax, dword [ebp - 0x420]
cmp eax, dword [ebp + 0x10]
jb 0x1009e6f
jmp 0x1009f51
push ecx
lea ecx, [ebp - 0x424]
push ecx
push dword [ebp + 0x10]
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1009f45
mov eax, dword [ebp - 0x424]
and dword [ebp - 0x40c], 0
mov dword [ebp - 0x418], eax
jmp 0x1009f51
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x40c], eax
mov eax, dword [ebp - 0x418]
test eax, eax
jne 0x1009fc0
cmp dword [ebp - 0x40c], eax
je 0x1009f90
push 5
pop esi
cmp dword [ebp - 0x40c], esi
jne 0x1009f82
call fcn.010098ba
mov dword [eax], 9
call fcn.010098d2
mov dword [eax], esi
jmp 0x1009fbb
push dword [ebp - 0x40c]
call fcn.010098ea
pop ecx
jmp 0x1009fbb
mov edi, dword [ebp - 0x420]
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x1009fa8
cmp byte [edi], 0x1a
jne 0x1009fa8
xor eax, eax
jmp 0x1009fc6
call fcn.010098ba
mov dword [eax], 0x1c
call fcn.010098d2
and dword [eax], 0
or eax, 0xffffffff
jmp 0x1009fc6
sub eax, dword [ebp - 0x41c]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
pop edi
call fcn.01005938
leave
ret
Function at 0x100b0f9
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
push edi
push 4
pop eax
call fcn.0100b210
mov dword [ebp - 8], esp
push 0x1c
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x100b1f5
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, dword [ebp - 0x4c]
xor esi, esi
cmp dword [0x100cbb4], 2
jne 0x100b17a
push 0x1002264
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, esi
je 0x100b17a
push 0x1002f4c
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x100b17a
lea ecx, [ebp - 4]
push ecx
mov dword [ebp - 4], esi
call eax
cmp eax, 1
pop ecx
jne 0x100b17a
cmp dword [ebp - 4], esi
jbe 0x100b17a
mov esi, dword [ebp - 4]
mov edx, dword [0x100cbb4]
mov ebx, edx
dec ebx
neg ebx
sbb ebx, ebx
and ebx, 0x103
lea ecx, [edi - 1]
lea eax, [esi + edi - 1]
not ecx
inc ebx
and eax, ecx
mov dword [ebp - 4], eax
je 0x100b1a3
add eax, edi
mov dword [ebp - 4], eax
lea ecx, [edi + edi]
cmp eax, ecx
jae 0x100b1af
mov dword [ebp - 4], ecx
mov eax, ecx
lea esi, [edi - 1]
not esi
and esi, dword [ebp - 8]
sub esi, eax
cmp edx, 1
jne 0x100b1c1
push 0x11
pop edi
mov ecx, dword [ebp - 0xc]
add edi, ecx
cmp esi, edi
jb 0x100b1f5
push 4
push 0x1000
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x100b1f5
lea eax, [ebp - 0x10]
push eax
push ebx
push dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x100b1f5
xor eax, eax
inc eax
jmp 0x100b1f7
xor eax, eax
lea esp, [ebp - 0x5c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x408fa0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4690bb
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.0045dc01
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x409022
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0045b980
mov eax, dword [eax]
push 0x48a1f0
push eax
call fcn.0044e5b4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0045de8c
test bl, bl
je 0x409022
push 0x48a1f0
lea ecx, [esp + 0xc]
call fcn.0045e21c
push 0x48dd64
lea ecx, [esp + 0xc]
call fcn.0045e21c
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 0x40905e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0045de8c
jmp 0x409129
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 0x4090e2
lea edx, [esp + 0x7c]
push 0x48dd60
push edx
call fcn.0044e5b4
add esp, 8
test eax, eax
je 0x4090e2
lea eax, [esp + 0x7c]
push 0x48dd5c
push eax
call fcn.0044e5b4
add esp, 8
test eax, eax
je 0x4090e2
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 0x409072
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.0045de8c
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 0x409920
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 0x409982
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 0x409990
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x46913b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4942d8]
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 0x409ac8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x4099f6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045de8c
xor eax, eax
jmp 0x409b3f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0045dfc9
push esi
lea ecx, [esp + 0xc]
call fcn.0045e258
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x48dd9c
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x409b1d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.00409920
test eax, eax
jne 0x409b1d
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 closesocket
mov ecx, edi
call fcn.00409920
test eax, eax
jne 0x409b1d
lea eax, [esp + 0x14]
push 0x48dd78
push eax
call fcn.0044f5f0
mov esi, eax
add esp, 8
test esi, esi
jne 0x409afc
lea ecx, [esp + 0x14]
push 0x48dd74
push ecx
call fcn.0044f570
mov esi, eax
add esp, 8
test esi, esi
jne 0x409afc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x409aff
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0045df79
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x409a0e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045de8c
xor eax, eax
jmp 0x409b3f
mov byte [esi], 0
push 0x48dd70
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.0045de8c
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