joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10003f70
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [esp + 8]
cmp eax, 1
jne 0x10004077
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp dword [0x1000a418], 0
mov dword [0x1000a658], eax
jne 0x10003fcf
cmp al, 3
jne 0x10003fa6
test eax, 0x80000000
je 0x10003fa6
push 2
call fcn.10005cb0
add esp, 4
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x10003fcf
push str.IsTNT
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10003fcf
push 1
call fcn.10005cb0
add esp, 4
call fcn.100051e0
test eax, eax
jne 0x10003fdd
xor eax, eax
ret 0xc
xor edx, edx
mov ecx, dword [0x1000a658]
mov dl, ch
mov eax, ecx
shr ecx, 0x10
and eax, 0xff
mov dword [0x1000a664], edx
mov dword [0x1000a660], eax
shl eax, 8
mov dword [0x1000a658], ecx
add eax, edx
mov dword [0x1000a65c], eax
call fcn.10004de0
test eax, eax
jne 0x1000401f
call fcn.10005220
xor eax, eax
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x1000c9d4], eax
call fcn.10005b20
cmp dword [0x1000c9d4], 0
mov dword [0x1000a408], eax
je 0x10004068
test eax, eax
je 0x10004068
call fcn.10005260
call fcn.10005b10
call fcn.10005590
call fcn.100054a0
call fcn.10005080
mov eax, 1
inc dword [0x1000a404]
ret 0xc
call fcn.10004e40
call fcn.10005220
xor eax, eax
ret 0xc
test eax, eax
jne 0x100040b4
mov eax, dword [0x1000a404]
test eax, eax
jle 0x100040af
dec eax
cmp dword [0x1000a690], 0
mov dword [0x1000a404], eax
jne 0x10004098
call fcn.100050d0
call fcn.10005440
call fcn.10004e40
call fcn.10005220
mov eax, 1
ret 0xc
xor eax, eax
ret 0xc
cmp eax, 3
jne 0x100040c3
push 0
call fcn.10004f00
add esp, 4
mov eax, 1
ret 0xc

Function at 0x10004de0
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push esi
call fcn.10006040
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1000a650], eax
cmp eax, 0xffffffff
jne 0x10004dfa
xor eax, eax
pop esi
ret
push 0x74
push 1
call fcn.10006eb0
add esp, 8
mov esi, eax
test esi, esi
je 0x10004e3c
push esi
mov eax, dword [0x1000a650]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x10004e3c
push esi
call fcn.10004e70
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi], eax
mov eax, 1
mov dword [esi + 4], 0xffffffff
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x10004e90
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [0x1000a650]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x10004ef3
push 0x74
push 1
call fcn.10006eb0
add esp, 8
mov edi, eax
test edi, edi
je 0x10004ee9
push edi
mov eax, dword [0x1000a650]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x10004ee9
push edi
call fcn.10004e70
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [edi], eax
mov dword [edi + 4], 0xffffffff
jmp 0x10004ef3
push 0x10
call fcn.10004190
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
pop edi
pop esi
ret
Function at 0x10004f00
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x1000a650], 0xffffffff
push esi
je 0x10004f9f
mov esi, dword [esp + 8]
test esi, esi
jne 0x10004f28
mov eax, dword [0x1000a650]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
je 0x10004f91
mov eax, dword [esi + 0x24]
test eax, eax
je 0x10004f38
push eax
call fcn.100042b0
add esp, 4
mov eax, dword [esi + 0x28]
test eax, eax
je 0x10004f48
push eax
call fcn.100042b0
add esp, 4
mov eax, dword [esi + 0x30]
test eax, eax
je 0x10004f58
push eax
call fcn.100042b0
add esp, 4
mov eax, dword [esi + 0x38]
test eax, eax
je 0x10004f68
push eax
call fcn.100042b0
add esp, 4
mov eax, dword [esi + 0x40]
test eax, eax
je 0x10004f78
push eax
call fcn.100042b0
add esp, 4
mov eax, dword [esi + 0x44]
test eax, eax
je 0x10004f88
push eax
call fcn.100042b0
add esp, 4
push esi
call fcn.100042b0
add esp, 4
push 0
mov eax, dword [0x1000a650]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
ret

Function at 0x100050e0
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push edi
call fcn.100051a0
cmp dword [0x1000a694], 1
mov esi, dword [esp + 0x10]
jne 0x10005103
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x1000a690], 1
cmp dword [esp + 0x14], 0
mov ebx, dword [esp + 0x18]
mov byte [0x1000a68c], bl
jne 0x1000515d
cmp dword [0x1000c9cc], 0
je 0x1000514b
mov edi, dword [0x1000c9c8]
sub edi, 4
cmp edi, dword [0x1000c9cc]
jb 0x1000514b
mov eax, dword [edi]
test eax, eax
je 0x10005140
call eax
sub edi, 4
cmp edi, dword [0x1000c9cc]
jae 0x10005138
push 0x1000a024
push 0x1000a01c
call fcn.100051c0
add esp, 8
push 0x1000a02c
push 0x1000a028
call fcn.100051c0
add esp, 8
test ebx, ebx
je 0x1000517c
call fcn.100051b0
pop edi
pop esi
pop ebx
ret
mov dword [0x1000a694], 1
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x10005b20
Capabilities:
Query environment variable

Disassembly:
sub esp, 4
push ebx
push esi
push edi
xor ebx, ebx
push ebp
xor edi, edi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
cmp dword [0x1000a8e4], ebx
jne 0x10005b6f
call esi
cmp eax, ebx
mov edi, eax
je 0x10005b4d
mov dword [0x1000a8e4], 1
jmp 0x10005b6f
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
je 0x10005b65
mov dword [0x1000a8e4], 2
jmp 0x10005b6f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x1000a8e4], 1
jne 0x10005c1e
test edi, edi
jne 0x10005b92
call esi
mov edi, eax
test edi, edi
jne 0x10005b92
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp word [edi], 0
mov esi, edi
je 0x10005bac
add esi, 2
cmp word [esi], 0
jne 0x10005b9a
add esi, 2
cmp word [esi], 0
jne 0x10005b9a
sub esi, edi
push 0
sar esi, 1
push 0
inc esi
push 0
push 0
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebp, eax
test ebp, ebp
je 0x10005c0d
push ebp
call fcn.10004fb0
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x10005c0d
push 0
push 0
push ebp
push ebx
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x10005bfc
push ebx
call fcn.100042b0
add esp, 4
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x1000a8e4], 2
jne 0x10005ca2
test ebx, ebx
jne 0x10005c41
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
jne 0x10005c41
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov ebp, ebx
cmp byte [ebx], 0
je 0x10005c56
inc ebp
cmp byte [ebp], 0
jne 0x10005c48
inc ebp
cmp byte [ebp], 0
jne 0x10005c48
sub ebp, ebx
inc ebp
push ebp
call fcn.10004fb0
mov dword [esp + 0x14], eax
add esp, 4
test eax, eax
jne 0x10005c7b
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov edi, dword [esp + 0x10]
mov esi, ebx
mov ecx, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
Function at 0x10005d10
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1a8
xor ecx, ecx
mov eax, 0x1000a8e8
push ebx
mov edx, dword [esp + 0x1b0]
push esi
push edi
push ebp
cmp dword [eax], edx
je 0x10005d37
add eax, 8
inc ecx
cmp eax, 0x1000a978
jb 0x10005d28
cmp dword [ecx*8 + 0x1000a8e8], edx
lea ebx, [ecx*8]
jne 0x10005efb
cmp dword [0x1000a414], 1
je 0x10005eb7
cmp dword [0x1000a414], 0
jne 0x10005d6e
cmp dword [0x1000a418], 1
je 0x10005eb7
cmp edx, 0xfc
je 0x10005efb
lea eax, [esp + 0xb4]
push 0x104
push eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
call ebp
test eax, eax
jne 0x10005dab
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea ebp, [esp + 0xb4]
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x10005def
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
push 3
repne scasb al, byte es:[edi]
not ecx
lea ebp, [esp + ecx + 0x7c]
push 0x10009330
push ebp
call fcn.10007040
add esp, 0xc
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, ebp
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
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, 0x10009310
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
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, dword [ebx + 0x1000a8ec]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
lea edi, [esp + 0x14]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x12010
and ecx, 3
push str.Microsoft_Visual_C_Runtime_Library
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x1c]
push eax
call fcn.10006fa0
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
cmp dword [0x1000c8c0], 0
je 0x10005ecd
mov eax, dword [0x1000c8c0]
mov esi, dword [eax + 0x48]
cmp esi, 0xffffffff
jne 0x10005ed7
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebx + 0x1000a8ec]
push 0
lea eax, [esp + 0x14]
mov edi, edx
push eax
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
Function at 0x10007ba0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x418
push ebx
push esi
push edi
push ebp
xor edi, edi
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x20], edi
cmp ebp, edi
jne 0x10007bc8
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov edx, dword [esp + 0x42c]
mov eax, edx
and eax, 0xffffffe7
sar eax, 3
add eax, 0x1000c8c0
mov dword [esp + 0x18], eax
mov eax, edx
and eax, 0x1f
mov ebx, dword [esp + 0x18]
shl eax, 2
lea ecx, [eax + eax*8]
mov eax, dword [ebx]
mov dword [esp + 0x1c], ecx
test byte [eax + ecx + 4], 0x20
je 0x10007c09
push 2
push 0
push edx
call fcn.10008110
add esp, 0xc
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
add ecx, dword [eax]
test byte [ecx + 4], 0x80
je 0x10007ca5
mov dword [esp + 0x10], 0
mov ebx, dword [esp + 0x430]
mov eax, ebx
sub eax, dword [esp + 0x430]
cmp eax, ebp
jae 0x10007cde
lea esi, [esp + 0x24]
mov eax, ebx
sub eax, dword [esp + 0x430]
cmp eax, ebp
jae 0x10007c6c
mov al, byte [ebx]
inc ebx
cmp al, 0xa
jne 0x10007c5a
mov byte [esi], 0xd
inc edi
inc esi
mov byte [esi], al
inc esi
mov eax, esi
lea ecx, [esp + 0x24]
sub eax, ecx
cmp eax, 0x400
jl 0x10007c41
lea eax, [esp + 0x24]
push 0
sub esi, eax
lea ecx, [esp + 0x28]
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x1c]
push eax
push esi
push ecx
mov eax, dword [edx]
mov ecx, dword [esp + 0x2c]
mov edx, dword [eax + ecx]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10007cd4
mov eax, dword [esp + 0x14]
add dword [esp + 0x20], eax
cmp eax, esi
jge 0x10007c2c
jmp 0x10007cde
lea eax, [esp + 0x14]
push 0
mov edx, dword [esp + 0x434]
push eax
push ebp
mov ecx, dword [ecx]
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10007cd4
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], eax
jmp 0x10007cde
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x20], 0
jne 0x10007d8a
cmp dword [esp + 0x10], 0
je 0x10007d3a
cmp dword [esp + 0x10], 5
jne 0x10007d1d
call fcn.10007e20
mov dword [eax], 9
call fcn.10007e30
mov ecx, dword [esp + 0x10]
pop ebp
pop edi
mov dword [eax], ecx
mov eax, 0xffffffff
pop esi
pop ebx
add esp, 0x418
ret
mov ecx, dword [esp + 0x10]
push ecx
call fcn.10007da0
add esp, 4
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [eax]
test byte [edx + ecx + 4], 0x40
je 0x10007d64
mov eax, dword [esp + 0x430]
cmp byte [eax], 0x1a
jne 0x10007d64
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
call fcn.10007e20
mov dword [eax], 0x1c
call fcn.10007e30
pop ebp
mov dword [eax], 0
mov eax, 0xffffffff
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x20]
pop ebp
sub eax, edi
pop edi
pop esi
pop ebx
add esp, 0x418
ret
Function at 0x4010cb
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push getpeername
push 0
push str.D:System
push 1
mov ebx, 0x4018b0
call fcn.004016cb
add esp, 0x10
push 0
mov ebx, 0x401870
call fcn.004016cb
add esp, 4
mov dword [ebp - 4], eax
push 0
mov ebx, 0x401890
call fcn.004016cb
add esp, 4
mov dword [ebp - 8], eax
push dword [ebp - 8]
push 0x498542
push dword [ebp - 4]
mov ecx, 3
call fcn.0040106f
add esp, 0xc
mov dword [ebp - 0xc], eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x401147
push ebx
call fcn.004016b3
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x401157
push ebx
call fcn.004016b3
add esp, 4
push getpeername
push 0
push str.D:SystemSystem_helper.exe
push getpeername
push 0
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x401176
mov eax, 0x498560
push eax
push 2
mov ebx, 0x4018d0
call fcn.004016cb
add esp, 0x1c
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x401199
push ebx
call fcn.004016b3
add esp, 4
push getpeername
push 0
push str.D:SystemSystem_helper.exe
push getpeername
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRunSystem_helper
push 0x80000301
push 0
push 3
push 3
mov ebx, 0x401bd0
call fcn.004016cb
add esp, 0x28
call fcn.00401218
push 0x80000301
push 0
push 1
push getpeername
push 0
push 0
push getpeername
push 0
push str.shutdown__s__f__t_1
push 3
mov ebx, 0x401750
call fcn.004016cb
add esp, 0x28
mov eax, 0
jmp 0x401214
mov esp, ebp
pop ebp
ret
Function at 0x401a50
Capabilities:
Access peb ldr_data
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4937c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [0x4c1ed8]
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.004018f0
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 0x401af2
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 0x401bab
mov edx, dword [esi + 8]
push edx
call fcn.00409b70
add esp, 4
test eax, eax
mov eax, dword [esi + 8]
je 0x401b42
cmp eax, 0x80000301
jne 0x401b10
mov eax, dword [esi]
jmp 0x401b1d
push 0
push esi
push 0x7d1
call fcn.0040f170
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 0x401ba0
jmp 0x401b9a
cmp eax, 0x80000004
jne 0x401b71
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 0x401ba0
jmp 0x401b9a
cmp eax, reloc.WS2_32.dll_getpeername
jne 0x401ba0
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 0x401ba0
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.00488e64
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x405900
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4939db
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.00488bd9
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x405982
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00486aec
mov eax, dword [eax]
push 0x4b2b58
push eax
call fcn.004715b3
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00488e64
test bl, bl
je 0x405982
push 0x4b2b58
lea ecx, [esp + 0xc]
call fcn.004891f4
push 0x4b2b64
lea ecx, [esp + 0xc]
call fcn.004891f4
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 0x4059be
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00488e64
jmp 0x405a89
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 0x405a42
lea edx, [esp + 0x7c]
push 0x4b2b60
push edx
call fcn.004715b3
add esp, 8
test eax, eax
je 0x405a42
lea eax, [esp + 0x7c]
push 0x4b2b5c
push eax
call fcn.004715b3
add esp, 8
test eax, eax
je 0x405a42
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 0x4059d2
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.00488e64
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 0x406280
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 0x4062e2
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 0x4062f0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x493a5b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4c1ed8]
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 0x406428
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x406356
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00488e64
xor eax, eax
jmp 0x40649f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00488fa1
push esi
lea ecx, [esp + 0xc]
call fcn.00489230
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 0x40647d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.00406280
test eax, eax
jne 0x40647d
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 accept
mov ecx, edi
call fcn.00406280
test eax, eax
jne 0x40647d
lea eax, [esp + 0x14]
push 0x4b2b74
push eax
call fcn.00472730
mov esi, eax
add esp, 8
test esi, esi
jne 0x40645c
lea ecx, [esp + 0x14]
push 0x4b2b70
push ecx
call fcn.00472580
mov esi, eax
add esp, 8
test esi, esi
jne 0x40645c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40645f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00488f51
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40636e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00488e64
xor eax, eax
jmp 0x40649f
mov byte [esi], 0
push 0x4b2b6c
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.00488e64
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