joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404410
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x154
push esi
mov esi, dword [esp + 0x15c]
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov al, byte [esi]
mov dword [esp + 0x18], 0x44
test al, al
je 0x40448d
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x40446f
cmp byte [ecx + esi - 1], 0x5c
je 0x40446f
mov eax, dword [esp + 0x164]
lea ecx, [esp + 0x5c]
push eax
push esi
push str._s_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0x4044a8
mov edx, dword [esp + 0x164]
lea eax, [esp + 0x5c]
push edx
push esi
push 0x423484
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
jmp 0x4044a8
mov ecx, dword [esp + 0x164]
lea edx, [esp + 0x5c]
push ecx
push 0x42348c
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
cmp byte [esi], 0
jne 0x4044af
xor esi, esi
lea eax, [esp + 8]
lea ecx, [esp + 0x18]
push eax
push ecx
push esi
push 0
push 0
push 0
push 0
lea edx, [esp + 0x78]
push 0
push edx
push 0
call dword [sym.imp.KeRNeL32.dll_CreateProcessA]
pop edi
pop esi
add esp, 0x154
ret
Function at 0x406240
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x41cad8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x423d4c]
push esi
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], 0
push ecx
lea ecx, [esp + 8]
call fcn.00415dea
test eax, eax
jne 0x40629d
lea ecx, [esp + 4]
mov dword [esp + 0x10], 0xffffffff
call fcn.00415831
xor eax, eax
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
mov edx, dword [esp + 4]
mov esi, dword [esp + 0x18]
push 1
push 0
push 0
push edx
push 0
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
ja 0x4062f8
mov eax, dword [esp + 0x20]
test eax, eax
jle 0x4062d5
mov ecx, dword [0x425394]
push 0x30
push ecx
push eax
push esi
call fcn.00404f40
add esp, 0x10
lea ecx, [esp + 4]
mov dword [esp + 0x10], 0xffffffff
call fcn.00415831
xor eax, eax
pop esi
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
lea ecx, [esp + 4]
mov dword [esp + 0x10], 0xffffffff
call fcn.00415831
mov ecx, dword [esp + 8]
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x4068b0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x41cb58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
lea eax, [esp]
push eax
call fcn.00406810
mov eax, dword [esp]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4068fd
lea ecx, [esp]
mov dword [esp + 0xc], 0xffffffff
call fcn.00415831
xor eax, eax
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
push 1
push 0
push 0
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
mov dword [esp + 0xc], 0xffffffff
lea ecx, [esp]
ja 0x406935
call fcn.00415831
xor eax, eax
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
call fcn.00415831
mov ecx, dword [esp + 4]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x406950
Capabilities:
Get common file path
Read .ini file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41cb86
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0x588
test eax, eax
push ebp
push esi
push edi
mov ebp, ecx
je 0x406b05
push eax
mov ecx, ebp
call fcn.0041592a
mov eax, dword [esp + 0x5a8]
lea esi, [ebp + 4]
push eax
mov ecx, esi
call fcn.0041592a
mov ecx, dword [esi]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x4069c1
lea edx, [esp + 0x94]
push edx
push 0xfa
call dword [sym.imp.KeRNeL32.dll_GetCurrentDirectoryA]
lea eax, [esp + 0x94]
mov ecx, esi
push eax
call fcn.0041592a
mov ecx, dword [0x423d4c]
mov dword [esp + 0xc], ecx
push esi
lea ecx, [esp + 0x10]
mov dword [esp + 0x5a0], 0
call fcn.004158da
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx - 8]
test eax, eax
jle 0x406a00
cmp byte [eax + ecx - 1], 0x5c
je 0x406a00
push 0x423480
lea ecx, [esp + 0x10]
call fcn.00415aa3
push ebp
lea ecx, [esp + 0x10]
call fcn.00415aca
mov edx, dword [esp + 0xc]
lea eax, [esp + 0x194]
push edx
push 0x3fc
push eax
call dword [sym.imp.KeRNeL32.dll_GetPrivateProfileSectionNamesA]
cmp eax, 1
ja 0x406a42
lea ecx, [esp + 0xc]
mov dword [esp + 0x59c], 0xffffffff
call fcn.00415831
xor eax, eax
jmp 0x406b05
lea ecx, [esp + 0x194]
lea esi, [esp + 0x194]
test ecx, ecx
je 0x406aec
mov edi, dword [sym.imp.KeRNeL32.dll_GetPrivateProfileStringA]
cmp byte [esi], 0
je 0x406aec
push esi
lea ecx, [esp + 0x14]
call fcn.0041585b
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
push edx
lea eax, [esp + 0x58]
push 0x3c
push eax
push 0x425168
push str.Name
push ecx
mov byte [esp + 0x5b4], 1
call edi
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push 0x3c
push eax
push 0x425168
push str.File
push ecx
call edi
lea edx, [esp + 0x14]
lea eax, [esp + 0x54]
push edx
push eax
mov ecx, ebp
call fcn.00406ba0
test eax, eax
je 0x406b1f
mov ecx, dword [esp + 0x10]
mov byte [esp + 0x59c], 0
mov eax, dword [ecx - 8]
lea ecx, [esp + 0x10]
lea esi, [esi + eax + 1]
call fcn.00415831
test esi, esi
jne 0x406a5e
lea ecx, [esp + 0xc]
mov dword [esp + 0x59c], 0xffffffff
call fcn.00415831
mov eax, 1
mov ecx, dword [esp + 0x594]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x594
ret 8
lea ecx, [esp + 0x10]
mov byte [esp + 0x59c], 0
call fcn.00415831
lea ecx, [esp + 0xc]
mov dword [esp + 0x59c], 0xffffffff
call fcn.00415831
xor eax, eax
jmp 0x406b05

Function at 0x408620
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x408630
pop esi
xor eax, eax
pop ebx
ret 8
mov ebx, dword [esp + 0xc]
test ebx, ebx
jne 0x40863f
pop esi
xor eax, eax
pop ebx
ret 8
mov edx, dword [esp + 0x10]
test edx, edx
jne 0x40864e
pop esi
xor eax, eax
pop ebx
ret 8
push edi
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
push 1
push eax
mov eax, dword [esi + 0x18]
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
neg eax
sbb eax, eax
pop edi
pop esi
inc eax
pop ebx
ret 8
Function at 0x4086c0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [ecx]
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0x14]
push edi
test eax, eax
je 0x40870a
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40870a
test ebx, ebx
je 0x40870a
cmp dword [ebp], 0
jbe 0x40870a
push ebp
lea edx, [esp + 0x1c]
push ebx
push edx
push 0
push eax
mov eax, dword [ecx + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40870a
cmp dword [esp + 0x18], 1
jne 0x40870a
pop edi
mov eax, ebx
pop ebp
pop ebx
ret 0x10
mov edi, dword [esp + 0x1c]
test edi, edi
je 0x408746
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push esi
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop esi
mov dword [ebp], ecx
pop edi
mov eax, ebx
pop ebp
pop ebx
ret 0x10
mov dword [ebp], 0
pop edi
pop ebp
xor eax, eax
pop ebx
ret 0x10

Function at 0x408760
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [ecx]
sub esp, 8
test eax, eax
je 0x4087a6
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4087a6
lea edx, [esp + 0xc]
mov dword [esp + 0xc], 4
push edx
lea edx, [esp + 8]
push edx
lea edx, [esp + 8]
push edx
push 0
push eax
mov eax, dword [ecx + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4087a6
mov eax, dword [esp]
cmp eax, 4
mov eax, dword [esp + 4]
je 0x4087aa
mov eax, dword [esp + 0x10]
add esp, 8
ret 8

Function at 0x409150
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41ccc8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
mov ebx, ecx
push esi
push edi
lea ecx, [esp + 0xc]
call fcn.00415e95
mov eax, dword [esp + 0x2c]
push 0
push 0
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 0
call fcn.00415fa7
test eax, eax
jne 0x4091bb
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xffffffff
call fcn.00415eea
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc
lea ecx, [esp + 0xc]
call fcn.004162a1
mov edi, eax
test edi, edi
jne 0x4091f1
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xffffffff
call fcn.00415eea
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc
push edi
call fcn.00415bc9
mov esi, eax
add esp, 4
test esi, esi
jne 0x409227
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xffffffff
call fcn.00415eea
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc
push edi
push esi
lea ecx, [esp + 0x14]
call fcn.004160c4
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
push ecx
push edx
push esi
mov ecx, ebx
call fcn.00408fc0
push esi
mov edi, eax
call fcn.00415bf2
add esp, 4
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xffffffff
call fcn.00415eea
mov ecx, dword [esp + 0x1c]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc
Function at 0x4092d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41cce8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
mov ebx, ecx
push esi
push edi
lea ecx, [esp + 0xc]
call fcn.00415e95
mov eax, dword [esp + 0x2c]
push 0
push 0
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 0
call fcn.00415fa7
test eax, eax
jne 0x40933b
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xffffffff
call fcn.00415eea
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc
lea ecx, [esp + 0xc]
call fcn.004162a1
mov edi, eax
test edi, edi
jne 0x409371
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xffffffff
call fcn.00415eea
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc
push edi
call fcn.00415bc9
mov esi, eax
add esp, 4
test esi, esi
jne 0x4093a7
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xffffffff
call fcn.00415eea
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc
push edi
push esi
lea ecx, [esp + 0x14]
call fcn.004160c4
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
push ecx
push edx
push esi
mov ecx, ebx
call fcn.00409280
push esi
mov edi, eax
call fcn.00415bf2
add esp, 4
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xffffffff
call fcn.00415eea
mov ecx, dword [esp + 0x1c]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc

Function at 0x409660
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41cd08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
mov ebx, ecx
push esi
push edi
lea ecx, [esp + 0xc]
call fcn.00415e95
mov eax, dword [esp + 0x2c]
push 0
push 0
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 0
call fcn.00415fa7
test eax, eax
jne 0x4096cb
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xffffffff
call fcn.00415eea
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc
lea ecx, [esp + 0xc]
call fcn.004162a1
mov edi, eax
test edi, edi
jne 0x409701
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xffffffff
call fcn.00415eea
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc
push edi
call fcn.00415bc9
mov esi, eax
add esp, 4
test esi, esi
jne 0x409737
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xffffffff
call fcn.00415eea
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc
push edi
push esi
lea ecx, [esp + 0x14]
call fcn.004160c4
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x30]
push ecx
push edx
push esi
mov ecx, ebx
call fcn.00409400
push esi
mov edi, eax
call fcn.00415bf2
add esp, 4
lea ecx, [esp + 0xc]
mov dword [esp + 0x24], 0xffffffff
call fcn.00415eea
mov ecx, dword [esp + 0x1c]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 0xc
Function at 0x409790
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
mov esi, dword [0x42a49c]
push edi
mov edi, ecx
test esi, esi
jne 0x4097a5
pop edi
xor eax, eax
pop esi
ret 0xc
mov eax, dword [esp + 0xc]
push 2
push eax
push esi
call dword [sym.imp.KeRNeL32.dll_FindResourceA]
test eax, eax
jne 0x4097bc
pop edi
pop esi
ret 0xc
push eax
push esi
call dword [sym.imp.KeRNeL32.dll_LoadResource]
test eax, eax
jne 0x4097cd
pop edi
pop esi
ret 0xc
push eax
call dword [sym.imp.KeRNeL32.dll_LockResource]
test eax, eax
jne 0x4097dd
pop edi
pop esi
ret 0xc
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
push eax
mov ecx, edi
call fcn.00408dc0
pop edi
pop esi
ret 0xc

Function at 0x409e70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
mov esi, dword [0x42a49c]
push edi
mov edi, ecx
test esi, esi
jne 0x409e85
pop edi
xor eax, eax
pop esi
ret 8
mov eax, dword [esp + 0xc]
push str.PALETTE
push eax
push esi
call dword [sym.imp.KeRNeL32.dll_FindResourceA]
test eax, eax
jne 0x409e9f
pop edi
pop esi
ret 8
push eax
push esi
call dword [sym.imp.KeRNeL32.dll_LoadResource]
test eax, eax
jne 0x409eb0
pop edi
pop esi
ret 8
push eax
call dword [sym.imp.KeRNeL32.dll_LockResource]
test eax, eax
jne 0x409ec0
pop edi
pop esi
ret 8
mov ecx, dword [esp + 0x10]
push ecx
push eax
mov ecx, edi
call fcn.00409880
pop edi
pop esi
ret 8

Function at 0x40ffe9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x424b38
cmp edx, dword [eax]
je 0x41000b
add eax, 8
inc ecx
cmp eax, 0x424bc8
jl 0x40fffc
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x424b38]
jne 0x410139
mov eax, dword [0x42c458]
cmp eax, 1
je 0x410113
test eax, eax
jne 0x41003c
cmp dword [0x4241b4], 1
je 0x410113
cmp edx, 0xfc
je 0x410139
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KeRNeL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x410073
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040e360
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040c170
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4100b6
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040c170
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x41f814
push edi
call fcn.0040b4f0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040e360
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040e370
lea eax, [ebp - 0xa0]
push 0x41f7f4
push eax
call fcn.0040e370
push dword [esi + 0x424b3c]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040e370
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00412cf7
add esp, 0x2c
pop edi
jmp 0x410139
lea eax, [ebp + 8]
lea esi, [esi + 0x424b3c]
push 0
push eax
push dword [esi]
call fcn.0040c170
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KeRNeL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KeRNeL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x106b8058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x106b81a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x106b807e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x106b806a
add dl, dl
jne 0x106b8089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x106b80dc
xor eax, eax
add dl, dl
jne 0x106b8096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x106b817d
add dl, dl
jne 0x106b80a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x106b80b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x106b80bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x106b80c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x106b80d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x106b8075
mov eax, 1
add dl, dl
jne 0x106b80ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x106b80f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x106b80e1
sub eax, ebx
mov ebx, 1
jne 0x106b8128
mov ecx, 1
add dl, dl
jne 0x106b810e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x106b8119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x106b8105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x106b8075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x106b813f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x106b814a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x106b8136
cmp eax, 0x7d00
jae 0x106b816d
cmp eax, 0x500
jb 0x106b8168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x106b8075
cmp eax, 0x7f
ja 0x106b8170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x106b8075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x106b819e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x106b8075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x411ad0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4a00fb
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.00494df7
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x411b52
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0049293a
mov eax, dword [eax]
push 0x594204
push eax
call fcn.00484a94
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00495082
test bl, bl
je 0x411b52
push 0x594204
lea ecx, [esp + 0xc]
call fcn.00495412
push 0x597d50
lea ecx, [esp + 0xc]
call fcn.00495412
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 0x411b8e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00495082
jmp 0x411c59
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 0x411c12
lea edx, [esp + 0x7c]
push 0x597d4c
push edx
call fcn.00484a94
add esp, 8
test eax, eax
je 0x411c12
lea eax, [esp + 0x7c]
push 0x597d48
push eax
call fcn.00484a94
add esp, 8
test eax, eax
je 0x411c12
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 0x411ba2
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.00495082
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 0x412450
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 0x4124b2
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 0x4124c0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4a017b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x5a19bc]
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 0x4125f8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x412526
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00495082
xor eax, eax
jmp 0x41266f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.004951bf
push esi
lea ecx, [esp + 0xc]
call fcn.0049544e
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 0x41264d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.00412450
test eax, eax
jne 0x41264d
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.00412450
test eax, eax
jne 0x41264d
lea eax, [esp + 0x14]
push str.__1_
push eax
call fcn.00485b10
mov esi, eax
add esp, 8
test esi, esi
jne 0x41262c
lea ecx, [esp + 0x14]
push 0x597d60
push ecx
call fcn.00485a90
mov esi, eax
add esp, 8
test esi, esi
jne 0x41262c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x41262f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0049516f
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x41253e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00495082
xor eax, eax
jmp 0x41266f
mov byte [esi], 0
push 0x597d5c
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.00495082
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