joyce8/EMBER2024-capa huggingface dataset:
Function at 0x419770
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4287c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
mov esi, ecx
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x30]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x28]
push edx
push eax
push ecx
mov dword [esp + 0x2c], 0
call dword [sym.imp.MSVCRT.dll__fcvt]
add esp, 0x14
lea ecx, [esp + 4]
push eax
call fcn.00424c60
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 4]
push edx
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_atol]
add esp, 4
mov ecx, esi
push eax
call fcn.0041bd00
lea ecx, [esp + 4]
mov dword [esp + 0x18], 0xffffffff
call fcn.00424c5a
mov ecx, dword [esp + 0x10]
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret 0x14

Function at 0x41bc60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x428aa8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
mov esi, ecx
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x30]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x28]
push edx
push eax
push ecx
mov dword [esp + 0x2c], 0
call dword [sym.imp.MSVCRT.dll__fcvt]
add esp, 0x14
lea ecx, [esp + 4]
push eax
call fcn.00424c60
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 4]
push edx
push eax
push ecx
call dword [sym.imp.MSVCRT.dll_atol]
add esp, 4
mov ecx, esi
push eax
call fcn.0041bd00
lea ecx, [esp + 4]
mov dword [esp + 0x18], 0xffffffff
call fcn.00424c5a
mov ecx, dword [esp + 0x10]
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret 0x14
Function at 0x4012a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4012b7
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4012e8
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x4012e4
cmp esi, eax
jae 0x4012e8
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x4012d4
cmp esi, eax
jb 0x4012ee
pop esi
pop edi
xor eax, eax
pop ebp
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x4013b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov eax, dword [edi]
lea ecx, [esp]
push ecx
push esi
add eax, eax
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x14]
push 0
mov dword [edi], 0
mov ecx, dword [eax]
push str.Name
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40141e
mov eax, dword [esp + 8]
cmp eax, 1
je 0x4013ef
cmp eax, 2
jne 0x40140a
test esi, esi
mov eax, dword [esp]
je 0x401418
test eax, eax
je 0x401413
test al, 1
jne 0x40140a
mov edx, eax
shr edx, 1
cmp word [esi + edx*2 - 2], 0
je 0x401418
mov eax, 0xd
pop ecx
ret 4
mov word [esi], 0
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop ecx
ret 4
Function at 0x402280
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x417200
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov eax, dword [0x41c060]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
cmp esi, ebx
jne 0x4022c8
push str..EDID.cpp
push 0x21
push str.RtkAudioService
call fcn.00401000
add esp, 0xc
jmp 0x40245b
push esi
call fcn.00401000
add esp, 4
mov dword [esp + 0x1c], ebx
lea eax, [esp + 0x14]
push eax
mov ecx, str.SYSTEMCurrentControlSetEnum_
mov dword [esp + 0x30], ebx
call fcn.00401980
mov eax, esi
mov byte [esp + 0x2c], 1
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4022f2
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [esp + 0x1c]
push ecx
call fcn.00401d90
push 0x12
push str.Device_Parameters
lea edx, [esp + 0x1c]
push edx
call fcn.00401d90
mov eax, dword [esp + 0x14]
push eax
push str.RtkAudioService
call fcn.00401000
mov edx, dword [esp + 0x1c]
add esp, 8
lea ecx, [esp + 0x18]
push ecx
push 0x20019
push ebx
push edx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x2c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x402389
mov edx, dword [esp + 0x34]
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x20]
push ecx
push edx
lea eax, [esp + 0x20]
push eax
push ebx
push str.EDID
mov ebp, esi
push esi
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], 0x100
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
je 0x4023ca
mov edi, eax
jmp 0x4023d8
push str..EDID.cpp
push 0x2e
push str.RtkAudioService
call fcn.00401000
mov byte [esp + 0x38], bl
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
add esp, 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40245b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x40245b
mov edi, dword [esp + 0x18]
sub edi, 3
neg edi
sbb edi, edi
and edi, 0xd
cmp esi, ebx
je 0x4023e9
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ebp, ebp
mov dword [esp + 0x1c], ebp
cmp edi, ebx
jne 0x40242c
mov ecx, dword [esp + 0x34]
push ecx
call fcn.004027a0
mov esi, eax
mov byte [esp + 0x2c], bl
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40241d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp ebp, ebx
je 0x402428
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x40245d
mov byte [esp + 0x2c], bl
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x402450
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp ebp, ebx
je 0x40245b
push ebp
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 4
Function at 0x403c40
Capabilities:
Create thread

Disassembly:
sub esp, 8
test eax, eax
push ebx
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
je 0x403ce1
mov dword [ebp + 0x290], eax
xor ebx, ebx
mov edi, ebp
push 0
push 0
push 0
push 0
mov dword [edi + 4], 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
test eax, eax
mov dword [edi], eax
je 0x403c97
mov eax, dword [edi + 4]
mov ecx, dword [edi]
push eax
push ecx
mov ecx, ebx
lea esi, [esp + 0x18]
mov eax, ebp
call fcn.00403d70
mov edx, dword [eax]
mov dword [edi + 8], edx
mov eax, dword [eax + 4]
mov dword [edi + 0xc], eax
add ebx, 1
add edi, 0x10
cmp ebx, 0x28
jl 0x403c5d
push 0
push 0
push 0
push 0
mov dword [ebp + 0x284], 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
test eax, eax
mov dword [ebp + 0x280], eax
je 0x403ce1
lea ecx, [esp + 0x1c]
push ecx
push 0
push ebp
push 0x403e70
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp + 0x294], eax
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 8
ret 4

Function at 0x405010
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
push esi
push edi
mov edi, dword [0x41e810]
test edi, edi
mov esi, eax
mov eax, 0x41a2e0
jne 0x40502a
mov eax, str.REALTEK
push eax
push str.RtkAudioService
call fcn.00401000
lea ebx, [esi + 0x58]
add esp, 8
mov eax, edi
mov ecx, ebx
mov dword [esi + 0x358], edi
call fcn.00405bc0
cmp dword [esi + 0x8c], 0
je 0x405112
call fcn.00405650
test eax, eax
jne 0x405081
push str..Service.cpp
push 0x286
push str.RtkAudioService
call fcn.00401000
add esp, 0xc
pop edi
pop esi
mov eax, 2
pop ebx
pop ecx
ret
call fcn.004056b0
test eax, eax
jne 0x4050ab
push str..Service.cpp
push 0x28a
push str.RtkAudioService
call fcn.00401000
add esp, 0xc
pop edi
pop esi
mov eax, 3
pop ebx
pop ecx
ret
cmp dword [esi + 0x88], 0
je 0x4050e3
call fcn.00405710
test eax, eax
jne 0x4050de
push str..Service.cpp
push 0x290
push str.RtkAudioService
call fcn.00401000
add esp, 0xc
pop edi
pop esi
mov eax, 4
pop ebx
pop ecx
ret
call fcn.00407df0
mov eax, dword [esi + 0x64]
test eax, eax
mov dword [esi + 8], eax
je 0x405112
lea eax, [esp + 0xc]
push eax
push 0
push esi
push 0x405120
push 0
push 0
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x354], eax
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x408170
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x416f20
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
mov eax, dword [0x41c060]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0xc], ebx
lea eax, [esp + 0x10]
push eax
push 0x419fd0
push 0x17
push ebx
mov byte [esp + 0x30], 1
push 0x419fc0
mov dword [esp + 0x28], 0xffffffff
call dword [sym.imp.ole32.dll_CoCreateInstance]
cmp eax, ebx
jl 0x408239
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
lea edx, [esp + 0xc]
push edx
push 9
push ebx
push eax
mov eax, dword [ecx + 0xc]
call eax
cmp eax, ebx
jl 0x408239
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
lea edx, [esp + 0x14]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
mov esi, dword [esp + 0x14]
mov byte [esp + 0x20], bl
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x40820d
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x20], 0xffffffff
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x408225
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x18
ret
mov byte [esp + 0x20], bl
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x40824d
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x20], 0xffffffff
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x408265
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
or eax, 0xffffffff
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x18
ret

Function at 0x40889c
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x41c060]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.004087db
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00409c70
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x4088eb
cmp dword [ebp - 0x1c], 5
jb 0x408903
jmp 0x4088ff
cmp dword [ebp - 0x10], 1
jne 0x408903
cmp dword [ebp - 0x1c], 4
ja 0x4088ff
jne 0x408903
cmp dword [ebp - 0x18], 0
jbe 0x408903
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4182bc
call fcn.00403f50
test eax, eax
jge 0x408924
mov byte [0x41e00c], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00408c70
add ebp, 0x78
leave
ret

Function at 0x408c70
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41c060]
jne 0x408c7a
repz ret
jmp fcn.00409fe8
Function at 0x40d9fc
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x41c930]
je 0x40da17
inc edi
cmp edi, 0x17
jb 0x40da08
cmp edi, 0x17
jae 0x40db97
push ebp
push 3
call fcn.004114f9
cmp eax, 1
pop ecx
je 0x40db63
push 3
call fcn.004114f9
test eax, eax
pop ecx
jne 0x40da4b
cmp dword [0x41c05c], 1
je 0x40db63
cmp ebx, 0xfc
je 0x40db96
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x41d980
push ebp
call fcn.0040f26b
add esp, 0xc
test eax, eax
je 0x40da81
push esi
push esi
push esi
push esi
push esi
call fcn.0040a0f6
add esp, 0x14
push 0x104
mov esi, 0x41d999
push esi
push 0
mov byte [0x41da9d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40dac5
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0040f26b
add esp, 0xc
test eax, eax
je 0x40dac5
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0040a0f6
add esp, 0x14
push esi
call fcn.0040f2d0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40db0a
push esi
call fcn.0040f2d0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x41dc94
push 0x4189ec
sub ecx, eax
push ecx
push eax
call fcn.0040fdc6
add esp, 0x14
test eax, eax
je 0x40db0a
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0040a0f6
add esp, 0x14
jmp 0x40db0c
xor esi, esi
push 0x4189e8
push ebx
push ebp
call fcn.0040fd03
add esp, 0xc
test eax, eax
je 0x40db2c
push esi
push esi
push esi
push esi
push esi
call fcn.0040a0f6
add esp, 0x14
push dword [edi*8 + 0x41c934]
push ebx
push ebp
call fcn.0040fd03
add esp, 0xc
test eax, eax
je 0x40db4e
push esi
push esi
push esi
push esi
push esi
call fcn.0040a0f6
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0041133c
add esp, 0xc
jmp 0x40db96
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x40db96
cmp ebp, 0xffffffff
je 0x40db96
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x41c934]
push dword [esi]
call fcn.0040f2d0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x41133c
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0040b0a2
xor ebx, ebx
cmp dword [0x41df28], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x411412
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4114f2
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x4114f2
push eax
call fcn.0040b034
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x41df28], eax
call esi
push eax
call fcn.0040b034
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x41df2c], eax
call esi
push eax
call fcn.0040b034
mov dword [0x41df30], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0040d789
test eax, eax
pop ecx
pop ecx
je 0x4113e0
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040a0f6
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x411412
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0040b034
cmp eax, ebx
pop ecx
mov dword [0x41df38], eax
je 0x411412
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040b034
pop ecx
mov dword [0x41df34], eax
mov eax, dword [0x41df34]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x411497
cmp dword [0x41df38], ecx
je 0x411497
push eax
call fcn.0040b0ab
push dword [0x41df38]
mov esi, eax
call fcn.0040b0ab
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x411497
cmp edi, ebx
je 0x411497
call esi
cmp eax, ebx
je 0x411464
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x411464
test byte [ebp - 0x18], 1
jne 0x411497
lea eax, [ebp - 0x10]
push eax
call fcn.0040d7c0
test eax, eax
pop ecx
je 0x41147f
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040a0f6
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x41148e
or dword [ebp + 0x10], 0x200000
jmp 0x4114d2
or dword [ebp + 0x10], 0x40000
jmp 0x4114d2
mov eax, dword [0x41df2c]
cmp eax, dword [ebp - 8]
je 0x4114d2
push eax
call fcn.0040b0ab
cmp eax, ebx
pop ecx
je 0x4114d2
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x4114d2
mov eax, dword [0x41df30]
cmp eax, dword [ebp - 8]
je 0x4114d2
push eax
call fcn.0040b0ab
cmp eax, ebx
pop ecx
je 0x4114d2
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x41df28]
call fcn.0040b0ab
cmp eax, ebx
pop ecx
je 0x4114f2
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4114f4
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402287
Capabilities:
Encode data using xor

Disassembly:
push esi
mov ecx, dword [0x4085d0]
mov esi, dword [esp + 0xc]
mov eax, esi
dec esi
test eax, eax
je 0x4022ba
mov edx, dword [esp + 8]
mov al, byte [edx]
inc edx
xor al, cl
movzx eax, al
shr ecx, 8
mov eax, dword [eax*4 + 0x4081d0]
xor eax, ecx
mov ecx, eax
mov eax, esi
dec esi
test eax, eax
jne 0x40229d
pop esi
mov dword [0x4085d0], ecx
ret

Function at 0x404579
Capabilities:
Encode data using xor

Disassembly:
push esi
xor eax, eax
push edi
cmp dword [0x40870e], eax
ja 0x40458f
mov dword [0x4086ec], eax
jmp 0x404672
mov esi, 0x800
cmp dword [0x40870e], esi
ja 0x4045a2
mov esi, dword [0x40870e]
push esi
xor edi, edi
push dword [0x4086e8]
push dword [0x407a84]
call dword [0x4092c0]
mov dword [0x4086ec], eax
cmp dword [0x407a94], edi
je 0x404614
cmp eax, 0xffffffff
je 0x404614
cmp eax, esi
je 0x404614
cmp eax, edi
jl 0x404614
mov eax, dword [0x407a98]
push eax
mov ax, word [0x407a9c]
inc ax
push eax
call fcn.00401ea4
cmp dword [0x4086ec], edi
jne 0x404605
push esi
push dword [0x4086e8]
push dword [0x407a84]
call dword [0x4092c0]
mov dword [0x4086ec], eax
cmp dword [0x4086ec], 0xffffffff
je 0x404614
mov esi, dword [0x4086ec]
cmp dword [0x4086ec], esi
je 0x404623
push 2
call fcn.0040286e
mov eax, dword [0x4086ec]
mov ecx, dword [0x4086e8]
sub dword [0x40870e], eax
mov dword [0x40871c], ecx
cmp dword [0x407a88], 0
je 0x404667
mov esi, ecx
lea edi, [eax - 1]
test eax, eax
je 0x404667
call 0x405d92
xor byte [esi], al
movzx eax, byte [esi]
push eax
inc esi
call 0x405dab
add esp, 4
mov eax, edi
dec edi
test eax, eax
jne 0x40464c
mov eax, dword [0x4086ec]
dec dword [0x4086ec]
pop edi
pop esi
ret
Function at 0x407820
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4642ab
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.00458fd8
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x4078a2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00456f27
mov eax, dword [eax]
push 0x47a1c0
push eax
call fcn.00449e24
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00459263
test bl, bl
je 0x4078a2
push 0x47a1c0
lea ecx, [esp + 0xc]
call fcn.004595f3
push 0x47dd28
lea ecx, [esp + 0xc]
call fcn.004595f3
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 0x4078de
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00459263
jmp 0x4079a9
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 0x407962
lea edx, [esp + 0x7c]
push 0x47dd24
push edx
call fcn.00449e24
add esp, 8
test eax, eax
je 0x407962
lea eax, [esp + 0x7c]
push 0x47dd20
push eax
call fcn.00449e24
add esp, 8
test eax, eax
je 0x407962
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 0x4078f2
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.00459263
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 0x408c00
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 0x408c62
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 0x408c70
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x46440b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4841d0]
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 0x408da8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x408cd6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00459263
xor eax, eax
jmp 0x408e1f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.004593a0
push esi
lea ecx, [esp + 0xc]
call fcn.0045962f
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 0x408dfd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push 0x80000000
call fcn.00408c00
test eax, eax
jne 0x408dfd
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 0x80000000
mov ecx, edi
call fcn.00408c00
test eax, eax
jne 0x408dfd
lea eax, [esp + 0x14]
push str.__1_
push eax
call fcn.0044ae60
mov esi, eax
add esp, 8
test esi, esi
jne 0x408ddc
lea ecx, [esp + 0x14]
push 0x47dd38
push ecx
call fcn.0044ade0
mov esi, eax
add esp, 8
test esi, esi
jne 0x408ddc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x408ddf
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00459350
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x408cee
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00459263
xor eax, eax
jmp 0x408e1f
mov byte [esi], 0
push 0x47dd34
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.00459263
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