joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44bdd7
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.004432e6
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongA]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x44be13
call fcn.0044bff4
mov dword [esi + 0xc], 1
jmp 0x44be18
call fcn.0044bff4
cmp dword [esi], 0
je 0x44be63
push edi
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov esi, dword [ebp + 0x10]
mov edi, eax
mov ecx, esi
test edi, edi
jle 0x44be3e
push edi
call fcn.00439789
lea ecx, [edi + 1]
push ecx
jmp 0x44be4d
push 0xff
call fcn.00407330
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, esi
call fcn.0041e840
pop edi
jmp 0x44be87
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, 0xffffffff
jne 0x44be87
push dword [esi]
push dword [ebp - 4]
call fcn.004659e2
pop esi
leave
ret 0xc

Function at 0x44bf4b
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.0044bff4
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x44bf93
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00439789
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.0041e840
jmp 0x44bf9e
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.004659e2
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x45deb8
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push edi
cmp dword [ecx + 0x58], esi
je 0x45df0b
push esi
push dword [ebp + 8]
call fcn.0045e09e
mov edi, eax
test edi, edi
je 0x45df06
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x45df06
mov eax, dword [ebp - 8]
jmp 0x45df1d
mov eax, dword [ebp + 0x10]
jmp 0x45df1d
push dword [ecx + 0x6c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
pop edi
pop esi
leave
ret 0xc
Function at 0x45f936
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor edi, edi
mov eax, ecx
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], edi
je 0x45f97b
call fcn.00460d34
push 0xf0
push dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x45f978
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x45f9c2
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov eax, dword [ebp - 4]
push ebx
xor ebx, ebx
inc ebx
test edi, edi
je 0x45f99e
mov ecx, dword [eax]
push dword [ebp + 0x10]
push edi
mov esi, dword [ecx + 0x20]
mov ecx, esi
push dword [ebp + 8]
call dword [0x5c2b00]
mov ecx, dword [ebp - 4]
call esi
mov ebx, eax
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x70]
test edi, edi
je 0x45f9bf
mov edx, dword [edi]
push dword [ebp + 0x10]
mov esi, dword [edx + 0xa0]
mov ecx, esi
call dword [0x5c2b00]
mov ecx, edi
call esi
mov eax, ebx
pop ebx
pop edi
pop esi
leave
ret 0xc

Function at 0x467868
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov dword [ebp - 4], ebx
test byte [esi + 4], 1
mov edi, dword [esi + 0xc]
jne 0x4678be
push 5
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x467897
call fcn.00446d3d
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4678ac
call fcn.00446d3d
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4678be
call fcn.00446d3d
call fcn.00460d34
cmp dword [eax + 0x3c], 0
je 0x4678d3
push edi
mov ecx, ebx
call fcn.00466f8b
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.00467ab9
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x4678fc
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x467908
mov edi, ebx
mov dword [eax + 0x88], ebx
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x485e94
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
push edi
test esi, esi
jne 0x485ead
call fcn.00460d34
mov esi, dword [eax + 0xc]
push 0x5cc028
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x485eef
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x485eef
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x485eef
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.00485ef8
jmp 0x485ef1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x501623
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.0056899b
call fcn.00460d88
cmp dword [eax + 0x14], 0
jne 0x50163e
mov ecx, esi
pop esi
jmp fcn.00500947
pop esi
ret

Function at 0x52c8f8
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call fcn.00440014
call fcn.00460d88
cmp dword [eax + 0x14], 0
jne 0x52c913
mov ecx, esi
pop esi
jmp fcn.0052c169
pop esi
ret

Function at 0x55b4c4
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
call fcn.00598385
pop ecx
test eax, eax
jne 0x55b506
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str._s_s_X.tmp
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.00402250
add esp, 0x18
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x55b4cc
leave
ret
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
leave
ret

Function at 0x5a1358
Capabilities:
Read file on windows

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

Function at 0x5a5997
Capabilities:
Set environment variable

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

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x42e072
nop
nop
mov ebx, 0x407ef8
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x4423323
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x42e060
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
je 0x42e0d2
nop
nop
nop
mov ebx, 0x42cd70
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x2a4d75d1
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x42e0c0
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x10014baf
Capabilities:
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor esi, esi
lea eax, [ebp - 8]
push eax
push 0x10064f30
push 1
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
mov dword [0x10064d20], esi
mov dword [0x10064d1c], esi
mov dword [0x10064d18], esi
mov dword [0x10064d14], esi
call dword [sym.imp.api_ms_win_core_version_l1_1_0.dll_GetFileVersionInfoSizeExW]
mov ebx, eax
test ebx, ebx
je 0x10014c7d
push edi
push ebx
call fcn.1001ec41
mov edi, eax
pop ecx
test edi, edi
je 0x10025dca
push ebx
push esi
push edi
call sub.msvcrt.dll_memset
add esp, 0xc
push edi
push ebx
push esi
push 0x10064f30
push 3
call dword [sym.imp.api_ms_win_core_version_l1_1_0.dll_GetFileVersionInfoExW]
test eax, eax
je 0x10014c82
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x10008180
push edi
call dword [sym.imp.api_ms_win_core_version_l1_1_0.dll_VerQueryValueW]
test eax, eax
je 0x10014c67
mov ecx, dword [ebp - 4]
movzx eax, word [ecx + 0xa]
mov dword [0x10064d20], eax
movzx eax, word [ecx + 8]
mov dword [0x10064d1c], eax
movzx eax, word [ecx + 0xe]
mov dword [0x10064d18], eax
movzx eax, word [ecx + 0xc]
mov dword [0x10064d14], eax
test edi, edi
je 0x10014c72
push edi
call fcn.1001ec6a
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
xor esi, esi
inc esi
jmp 0x10014c73
mov esi, 0x80004005
jmp 0x10014c67
mov esi, 0x8007000e
jmp 0x10014c72

Function at 0x10015282
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x100152bb
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x100152a2
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x100152b3
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x100152bd
inc edi
add eax, 0x28
cmp edi, esi
jb 0x10015298
xor eax, eax
pop edi
pop esi
ret
Function at 0x534270
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xce000]
push edi
jmp 0x53428a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x534291
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x534280
mov eax, 1
add ebx, ebx
jne 0x5342a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5342b4
jne 0x5342d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5342d3
dec eax
add ebx, ebx
jne 0x5342c0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x534298
add ebx, ebx
jne 0x5342cf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x534325
xor ecx, ecx
sub eax, 3
jb 0x5342eb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x53435a
sar eax, 1
mov ebp, eax
jmp 0x5342f6
add ebx, ebx
jne 0x5342f6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5342c4
inc ecx
add ebx, ebx
jne 0x534304
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5342c4
add ebx, ebx
jne 0x534311
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x534306
jne 0x534322
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x534306
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x534344
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x534336
jmp 0x534286
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x534344
add edi, ecx
jmp 0x534286
pop esi
lea edi, [esi + 0x12f000]
mov ecx, 8
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x534366
mov eax, dword [edi]
mov bl, byte [edi + 4]
xchg ah, al
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x53436b
lea edi, [esi + 0x131000]
mov eax, dword [edi]
or eax, eax
je 0x5343dc
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x138fc4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1390e8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x534391
mov ecx, edi
jns 0x5343c0
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1390f0]
or eax, eax
je 0x5343d6
mov dword [ebx], eax
add ebx, 4
jmp 0x5343ae
call dword [esi + 0x1390ec]
mov ebp, dword [esi + 0x1390f4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x534410
sub esp, 0xffffff80
jmp 0x49add5
Function at 0x10056be0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10119e00
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [esp + 0x30]
push ebp
push esi
push edi
mov ecx, dword [eax]
push ecx
lea ecx, [esp + 0x10]
call fcn.1010e934
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0
xor ebp, ebp
call fcn.1005cd40
mov ecx, dword [esp + 0x40]
mov byte [esp + 0x2c], 1
cmp ecx, 3
ja case.default.0x10056c34
jmp dword [ecx*4 + 0x10056d9c]
mov al, byte [esi]
test al, al
je 0x10056c62
cmp al, 0x20
je 0x10056c4e
cmp al, 0xa1
jne 0x10056c62
cmp byte [esi + 1], al
jne 0x10056c62
test al, 0x80
je 0x10056c5a
mov al, byte [esi + 1]
inc esi
test al, al
je 0x10056c62
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x10056c41
test ecx, ecx
je case.default.0x10056c34
mov dl, byte [esi]
xor ecx, ecx
test dl, dl
mov eax, esi
je case.default.0x10056c34
mov edi, dword [esp + 0x3c]
mov dl, byte [eax]
test dl, 0x80
je 0x10056ca8
cmp dl, 0xa1
jne 0x10056c9c
cmp byte [eax + 1], 0xa1
jne 0x10056c9c
test ecx, ecx
jne 0x10056c94
mov edi, eax
mov ecx, 1
inc eax
jmp 0x10056cbc
mov dl, byte [eax + 1]
inc eax
xor ecx, ecx
test dl, dl
je 0x10056cd6
jmp 0x10056cbc
cmp dl, 0x20
jne 0x10056cba
test ecx, ecx
jne 0x10056cb3
mov edi, eax
mov ecx, 1
jmp 0x10056cbc
xor ecx, ecx
mov dl, byte [eax + 1]
inc eax
test dl, dl
jne 0x10056c7c
cmp ecx, 1
jne case.default.0x10056c34
mov dl, byte [edi]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x10056c34
mov dl, byte [eax - 1]
lea edi, [eax - 1]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x10056c34
mov al, byte [esi]
test al, al
je 0x10056d2e
test al, 0x80
mov byte [esp + 0x3c], al
je 0x10056d14
mov cl, byte [esi + 1]
test cl, cl
je 0x10056d2e
cmp al, 0xa1
jne 0x10056d04
cmp cl, al
je 0x10056d11
mov ax, word [esi]
lea ecx, [esp + 0x10]
push eax
call fcn.1005cfd0
inc esi
jmp 0x10056d26
cmp al, 0x20
je 0x10056d26
mov ecx, dword [esp + 0x3c]
push ecx
lea ecx, [esp + 0x14]
call fcn.1005d010
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x10056ced
push 0
lea ecx, [esp + 0x14]
call fcn.1005d010
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.10071860
mov edx, dword [esp + 0x38]
add esp, 4
test ebp, ebp
mov dword [edx], eax
je 0x10056d61
mov al, byte [esp + 0x3c]
mov byte [ebp], al
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 0
mov dword [esp + 0x10], 0x102af800
call fcn.1005cf40
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call fcn.1010e8c6
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x10058e40
Capabilities:
Access peb ldr_data
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x10119f88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x102dfdc0]
push ebx
push esi
push edi
mov dword [esp + 0xc], eax
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x2c]
lea ecx, [esp + 0x2c]
push esi
lea edx, [esp + 0x10]
push ecx
lea eax, [esp + 0x18]
push edx
push eax
push edi
mov dword [esp + 0x30], 0
call fcn.10058910
add esp, 0x14
dec esi
neg esi
sbb esi, esi
mov eax, dword [esp + 0xc]
mov ebx, dword [esp + 0x24]
add esi, 3
lea edx, [esp + 0x30]
lea ecx, [esi + esi*2]
push edx
push 0x20006
push 0
lea esi, [edi + ecx*4]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov dword [ebx], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x10058ee2
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x30]
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x10058f9b
mov edx, dword [esi + 8]
push edx
call fcn.10070490
add esp, 4
test eax, eax
mov eax, dword [esi + 8]
je 0x10058f32
cmp eax, 0x80000301
jne 0x10058f00
mov eax, dword [esi]
jmp 0x10058f0d
push 0
push esi
push 0x7d1
call fcn.10075cb0
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x24]
push 4
push ecx
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x38]
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x10058f90
jmp 0x10058f8a
cmp eax, 0x80000004
jne 0x10058f61
mov esi, dword [esi]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esp + 0x30]
not ecx
push ecx
mov ecx, dword [esp + 0x30]
push esi
push 1
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x10058f90
jmp 0x10058f8a
cmp eax, reloc.WS2_32.dll_getpeername
jne 0x10058f90
mov esi, dword [esi]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov eax, dword [esi + 4]
add esi, 8
push eax
push esi
push 3
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x10058f90
mov dword [ebx], 1
mov eax, dword [esp + 0x30]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0xffffffff
call fcn.1010e8c6
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x10066ab0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x1011ab7b
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.1010e63b
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x10066b32
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.1010b766
mov eax, dword [eax]
push 0x102cdd34
push eax
call fcn.100fd3f4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.1010e8c6
test bl, bl
je 0x10066b32
push 0x102cdd34
lea ecx, [esp + 0xc]
call fcn.1010ec56
push 0x102cdd40
lea ecx, [esp + 0xc]
call fcn.1010ec56
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 0x10066b6e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.1010e8c6
jmp 0x10066c39
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 0x10066bf2
lea edx, [esp + 0x7c]
push 0x102cdd3c
push edx
call fcn.100fd3f4
add esp, 8
test eax, eax
je 0x10066bf2
lea eax, [esp + 0x7c]
push 0x102cdd38
push eax
call fcn.100fd3f4
add esp, 8
test eax, eax
je 0x10066bf2
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 0x10066b82
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.1010e8c6
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 0x100678d0
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 0x10067932
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 0x10067940
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x1011ac3b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x102dfdc0]
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 0x10067a78
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x100679a6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.1010e8c6
xor eax, eax
jmp 0x10067aef
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.1010ea03
push esi
lea ecx, [esp + 0xc]
call fcn.1010ec92
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x102cdd7c
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x10067acd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.100678d0
test eax, eax
jne 0x10067acd
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.100678d0
test eax, eax
jne 0x10067acd
lea eax, [esp + 0x14]
push 0x102cdd58
push eax
call fcn.100fe540
mov esi, eax
add esp, 8
test esi, esi
jne 0x10067aac
lea ecx, [esp + 0x14]
push 0x102cdd54
push ecx
call fcn.100fe4c0
mov esi, eax
add esp, 8
test esi, esi
jne 0x10067aac
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x10067aaf
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.1010e9b3
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x100679be
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.1010e8c6
xor eax, eax
jmp 0x10067aef
mov byte [esi], 0
push 0x102cdd50
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.1010e8c6
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