joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100650a
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [esi + 0x1b4]
test eax, eax
je 0x1006657
cmp dword [0x100f74c], 0
je 0x1006531
mov dword [0x1024cac], 1
mov cx, word [esi + 0x1b8]
sub cx, word [0x100f724]
push ebx
mov bx, word [esi + 0x1bc]
sub bx, word [0x100f720]
test byte [0x1029a64], 1
mov word [ebp - 4], cx
mov word [ebp - 2], bx
je 0x1006593
movsx ecx, word [0x1024ca2]
movzx edx, word [esi + 0x10]
dec ecx
cmp ecx, edx
jne 0x1006593
mov ecx, dword [esi + 0x1b8]
add ecx, eax
cmp ecx, dword [0x100f714]
jbe 0x1006593
mov edx, dword [esi + 0x70]
push esi
mov eax, edi
call fcn.010061b3
dec bx
dec dword [esi + 0x10]
mov word [ebp - 2], bx
push dword [ebp - 4]
push dword [edi + 0x7b8]
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
movzx eax, word [esi + 0x10]
movsx ecx, word [0x1024ca2]
cmp ecx, eax
lea eax, [ebp - 8]
jne 0x10065d3
push eax
push dword [ebp - 4]
lea eax, [esi + 0xb4]
push dword [esi + 0x1b4]
push eax
push dword [edi + 0x7b8]
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputCharacterA]
jmp 0x10065ef
push 0
push eax
push dword [esi + 0x1b4]
lea eax, [esi + 0xb4]
push eax
push dword [edi + 0x7b8]
call dword [sym.imp.KERNEL32.dll_WriteConsoleA]
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
xor eax, eax
mov ax, word [edi + 0x7c8]
push dword [esi + 0x1b4]
push eax
push dword [edi + 0x7b8]
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputAttribute]
test byte [0x1029a64], 1
je 0x100663c
lea eax, [ebp - 0x20]
push eax
push dword [0x102a458]
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je 0x100663c
cmp word [ebp - 0x1a], bx
jle 0x100663c
movsx eax, word [ebp - 0x1c]
mov dword [esi + 0x14], eax
xor eax, eax
mov dword [esi + 0x1b4], eax
mov dword [esi + 0x1b8], eax
mov dword [esi + 0x1bc], eax
mov dword [esi + 0x1c0], eax
pop ebx
leave
ret
Function at 0x1009922
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call fcn.01009909
test eax, eax
je 0x1009948
push 0
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
jmp 0x1009996
mov eax, dword [ebp + 0x10]
push esi
push edi
add eax, eax
push eax
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
cmp edi, esi
je 0x1009994
mov eax, dword [ebp + 0x10]
push esi
push esi
lea ecx, [eax + eax]
push ecx
push edi
push eax
push dword [ebp + 0xc]
push esi
push 1
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp eax, esi
mov dword [ebp + 0x10], eax
je 0x100998d
push esi
lea ecx, [ebp + 0x10]
push ecx
push eax
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x1009ad0
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [esp + 0x1c]
mov edi, 0x1ff
call dword [sym.imp.USER32.dll_VkKeyScanW]
mov esi, dword [esp + 0x14]
mov word [esi], ax
movzx eax, al
push 2
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
test eax, eax
mov ecx, dword [esp + 0x18]
mov dword [ecx], eax
je 0x1009b0b
movzx ax, byte [esi + 1]
mov word [0x100e02c], ax
mov esi, dword [esp + 0x20]
push 0x10018d4
push esi
call dword [sym.imp.msvcrt.dll_wcscpy]
test byte [0x100e02c], 1
mov ebp, dword [sym.imp.msvcrt.dll__snwprintf]
mov ebx, dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
pop ecx
je 0x1009b4e
push 0x1001dbc
push 0x1001db4
push edi
push esi
call ebp
push esi
call ebx
lea esi, [esi + eax*2]
push esi
call ebx
add esp, 0x18
sub edi, eax
test byte [0x100e02c], 4
je 0x1009b73
push 0x1001da8
push 0x1001db4
push edi
push esi
call ebp
push esi
call ebx
lea esi, [esi + eax*2]
push esi
call ebx
add esp, 0x18
sub edi, eax
test byte [0x100e02c], 2
je 0x1009b8d
push 0x1001d9c
push 0x1001db4
push edi
push esi
call ebp
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
ret 0x10
Function at 0x100a6b8
Capabilities:
Query environment variable
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0xf0
mov eax, dword [0x100f6ec]
or dword [ebp - 0x7c], 0xffffffff
push ebx
xor ebx, ebx
mov dword [ebp + 0x70], eax
mov dword [ebp - 0x78], ebx
call dword [sym.imp.KERNEL32.dll_GetThreadLocale]
lea eax, [ebp - 0x78]
push eax
push 2
push ebx
push 0x1001e00
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100a893
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push edi
push 4
pop edi
push edi
push 0x102a1d4
push edi
push ebx
push 0x1001dec
push dword [ebp - 0x78]
call esi
push edi
push 0x100f7c4
push edi
push ebx
push 0x1001684
push dword [ebp - 0x78]
call esi
mov eax, dword [ebp + 0x7c]
mov ebx, dword [sym.imp.USER32.dll_LoadStringW]
add eax, 0x30
and dword [eax], 0xffffffef
push 0x30
lea eax, [ebp + 0x10]
push eax
push 0x79
push dword [0x10299d0]
call ebx
mov eax, dword [ebp + 0x7c]
push edi
add eax, 0x30
push eax
push edi
push 0
lea eax, [ebp + 0x10]
push eax
push dword [ebp - 0x78]
call esi
push 0x30
lea eax, [ebp + 0x10]
push eax
push 0x7a
push dword [0x10299d0]
call ebx
mov eax, dword [ebp + 0x7c]
push edi
add eax, 0x2c
push eax
push edi
push 0
lea eax, [ebp + 0x10]
push eax
push dword [ebp - 0x78]
call esi
push edi
push 0x102ab80
push edi
push 0
push 0x1001824
push dword [ebp - 0x78]
call esi
push edi
push 0x102ab84
push edi
push 0
push 0x1001808
push dword [ebp - 0x78]
call esi
push edi
push 0x100f75c
push edi
push 0
push 0x1001818
push dword [ebp - 0x78]
call esi
push 0x41
lea eax, [ebp - 0x74]
push eax
push 0x100137c
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
ja 0x100a7df
lea eax, [ebp - 0x74]
push 0x1001dcc
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
pop ecx
pop ecx
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
shl eax, 1
push eax
lea eax, [ebp - 0x74]
push eax
push 1
push 0
push 0x10017fc
push dword [ebp - 0x78]
call esi
call dword [sym.imp.KERNEL32.dll_GetACP]
cmp eax, 0x3a4
jne 0x100a888
mov al, byte [0x1029a64]
test al, 1
je 0x100a888
test al, 2
je 0x100a888
push 0x30
lea eax, [ebp + 0x10]
push eax
push 0xc1
push dword [0x10299d0]
call ebx
mov eax, dword [ebp + 0x7c]
push edi
add eax, 0x50
push eax
push edi
push 0
lea eax, [ebp + 0x10]
push eax
push dword [ebp - 0x78]
call esi
push 0x30
lea eax, [ebp + 0x10]
push eax
push 0xc2
push dword [0x10299d0]
call ebx
mov eax, dword [ebp + 0x7c]
push edi
add eax, 0x54
push eax
push edi
push 0
lea eax, [ebp + 0x10]
push eax
push dword [ebp - 0x78]
call esi
mov eax, dword [0x100f740]
and eax, 0xff00
je 0x100a876
mov dword [ebp - 0x7c], eax
push edi
lea eax, [ebp - 0x7c]
push eax
push edi
push 0
push 0x1001624
push dword [ebp - 0x78]
call esi
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov ecx, dword [ebp + 0x70]
pop ebx
call fcn.0100c260
add ebp, 0x74
leave
ret 4
Function at 0x100a9d4
Capabilities:
Terminate process

Disassembly:
push ecx
mov eax, dword [0x100f6ec]
push esi
mov esi, 0x1028ee0
mov dword [esp + 4], eax
push esi
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
push eax
push esi
push dword [0x1024d10]
call fcn.01009922
mov ecx, dword [esp + 4]
pop esi
add esp, 4
jmp fcn.0100c260
Function at 0x100be51
Capabilities:
Create thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
push 0x1001eb6
xor esi, esi
push esi
call dword [sym.imp.msvcrt.dll_setlocale]
mov edi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
pop ecx
pop ecx
push 0xfffffffffffffff6
mov dword [0x102a3fc], esi
call edi
or ebx, 0xffffffff
cmp eax, ebx
je 0x100bf7a
push 0xfffffffffffffff5
mov dword [0x102a45c], eax
call edi
cmp eax, ebx
je 0x100bf7a
push 0x102a460
push eax
mov dword [0x102a458], eax
mov dword [0x1024d10], eax
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je 0x100bf7a
mov ebx, 0x1029ca0
push ebx
push dword [ebp + 0xc]
mov word [0x102a468], 7
push dword [ebp + 8]
mov word [0x102a478], 7
mov byte [0x102a476], 0x20
call fcn.0100b2d8
cmp eax, esi
je 0x100bee8
push eax
jmp 0x100bf7b
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push esi
push esi
push esi
push esi
call edi
push esi
push esi
push 1
push esi
mov dword [0x1024d08], eax
call edi
push esi
push 1
push 1
push esi
mov dword [0x1024d04], eax
call edi
mov dword [0x1024d00], eax
lea eax, [ebp - 4]
push eax
push esi
push ebx
push 0x100aae0
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, dword [sym.imp.USER32.dll_GetMessageW]
mov dword [0x102a454], eax
jmp 0x100bf46
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push esi
push esi
push dword [0x102a450]
lea eax, [ebp - 0x20]
push eax
call edi
test eax, eax
jne 0x100bf32
push esi
push 0x100a137
call dword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
call fcn.0100a1fd
push 0x100f710
call fcn.0100a6b8
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push ebx
call dword [sym.imp.msvcrt.dll_exit]
int3

Function at 0x100c260
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100f6ec]
jne 0x100c269
ret
jmp 0x100c26e
push ebp
lea ebp, [esp - 0x2a8]
sub esp, 0x328
mov eax, dword [0x100f6ec]
mov dword [ebp + 0x2a4], eax
mov eax, dword [0x102ab90]
test eax, eax
je 0x100c292
call eax
cmp dword [0x102ab94], 0
je 0x100c2d9
push edi
xor eax, eax
and dword [ebp - 0x28], eax
push 0x13
pop ecx
lea edi, [ebp - 0x7c]
rep stosd dword es:[edi], eax
mov ecx, 0xb2
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x80]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x28]
push 0
mov dword [ebp - 0x80], 0xc0000409
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [ebp - 0x30]
push eax
call dword [0x102ab94]
pop edi
push 0x502
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp + 0x2a4]
call fcn.0100c260
add ebp, 0x2a8
leave
ret
Function at 0x100c50c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x5ac]
sub esp, 0x62c
mov eax, dword [0x100f6ec]
mov ecx, dword [ebp + 0x5bc]
push edi
xor edi, edi
cmp dword [ebp + 0x5b8], edi
mov dword [ebp + 0x5a8], eax
mov eax, dword [ebp + 0x5b4]
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x74], edi
mov dword [ecx], eax
jne 0x100c550
mov dword [ebp - 0x74], 0x8000ffff
jmp 0x100c6b0
lea eax, [ebp - 0x78]
push eax
push 1
push edi
push 0x1001f58
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x100c577
mov dword [ebp - 0x74], 0x8000ffff
jmp 0x100c6a1
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp + 0x5b4]
push eax
push edi
push 0x1001f38
push dword [ebp - 0x78]
mov dword [ebp - 0x7c], 0x208
call esi
test eax, eax
je 0x100c5af
mov dword [ebp - 0x74], 0x8000ffff
jmp 0x100c6a0
cmp dword [ebp + 0x5b4], 1
jne 0x100c5a3
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp + 0x3a0]
push eax
lea eax, [ebp + 0x5b4]
push eax
push 0
push 0x1001f20
push dword [ebp - 0x78]
mov dword [ebp - 0x80], 0x208
call esi
test eax, eax
jne 0x100c5a3
cmp dword [ebp + 0x5b4], 1
jne 0x100c5a3
push dword [ebp + 0x5b8]
call sub.msvcrt.dll_wcslen
add eax, dword [ebp - 0x80]
pop ecx
mov ecx, dword [ebp - 0x7c]
lea eax, [eax + ecx + 2]
cmp eax, 0x104
jb 0x100c613
mov dword [ebp - 0x74], 0x8007000e
jmp 0x100c6a0
mov ecx, dword [ebp + 0x3a0]
test cx, cx
je 0x100c63e
lea eax, [ebp + 0x3a0]
inc eax
lea edx, [edi + edi*4]
lea edi, [ecx + edx*2 - 0x30]
inc eax
xor ecx, ecx
mov cx, word [eax]
test cx, cx
jne 0x100c624
cmp di, 0x409
je 0x100c6a0
push dword [ebp + 0x5b8]
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp + 0x198]
push 0x1001f04
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 1
push 0
lea eax, [ebp + 0x198]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test eax, eax
jne 0x100c67b
mov dword [ebp - 0x74], 0x80070006
jmp 0x100c6a0
cmp dword [ebp + 0x5c0], 0
mov ecx, dword [ebp + 0x5bc]
mov dword [ecx], eax
je 0x100c6a0
lea eax, [ebp + 0x198]
push eax
push dword [ebp + 0x5c0]
call sub.msvcrt.dll_wcscpy
pop ecx
pop ecx
pop esi
cmp dword [ebp - 0x78], 0
je 0x100c6b0
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x5a8]
mov eax, dword [ebp - 0x74]
pop edi
call fcn.0100c260
add ebp, 0x5ac
leave
ret 0x10
Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret

Function at 0x41101e
Capabilities:
Terminate process

Disassembly:
jmp 0x413320
jmp fcn.00413360
cmp ecx, dword [0x417060]
jne 0x41332a
repz ret
jmp 0x411096
Function at 0x4085cb
Capabilities:
Parse pe header

Disassembly:
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 0x4085f9
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x408600
cmp ebx, dword [eax + 4]
jae 0x408600
xor eax, eax
jmp 0x4087f0
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x408611
xor eax, eax
inc eax
jmp 0x4087ef
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x408627
cmp ecx, edx
jae 0x40876c
cmp dword [eax + 4], 0
je 0x408630
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x408618
cmp dword [ebp + 8], 0
je 0x408652
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x40876c
cmp eax, esi
jae 0x40876c
mov eax, dword [0xfde908]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x408677
cmp dword [esi*4 + 0xfde910], edi
je 0x408770
inc esi
cmp esi, eax
jl 0x408665
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [0xfdc0ac]
test eax, eax
je 0x4087ec
cmp dword [ebp - 8], 0x1000000
jne 0x4087ec
test byte [ebp - 0xc], 0xcc
je 0x4086f5
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x4087ec
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4087ec
cmp word [eax + 0x18], 0x10b
jne 0x4087ec
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x4087ec
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x4086f5
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x4086f5
test byte [ecx + 0x27], 0x80
jne 0x40876c
push 1
push 0xfde950
call dword [0xfdc0a8]
test eax, eax
jne 0x408609
mov ecx, dword [0xfde908]
test ecx, ecx
mov edx, ecx
jle 0x408729
lea eax, [ecx*4 + 0xfde90c]
cmp dword [eax], edi
je 0x408729
dec edx
sub eax, 4
test edx, edx
jg 0x40871d
test edx, edx
jne 0x40875a
push 0xf
pop ebx
cmp ecx, ebx
jg 0x408736
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x40874e
lea eax, [edx*4 + 0xfde910]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x40873c
cmp ecx, 0x10
jge 0x40875a
inc ecx
mov dword [0xfde908], ecx
push 0
push 0xfde950
call dword [0xfdc0a8]
jmp 0x408609
xor eax, eax
jmp 0x4087ef
test esi, esi
jle 0x408609
mov ebx, dword [0xfdc0a8]
push 1
push 0xfde950
call ebx
test eax, eax
jne 0x408609
cmp dword [esi*4 + 0xfde910], edi
je 0x4087c6
mov eax, dword [0xfde908]
lea esi, [eax - 1]
test esi, esi
jl 0x4087b4
cmp dword [esi*4 + 0xfde910], edi
je 0x4087b0
dec esi
jns 0x4087a4
test esi, esi
jge 0x4087c4
cmp eax, 0x10
jge 0x4087bf
inc eax
mov dword [0xfde908], eax
lea esi, [eax - 1]
jmp 0x4087c6
je 0x4087de
xor ecx, ecx
test esi, esi
jl 0x4087de
lea eax, [ecx*4 + 0xfde910]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x4087cc
push 0
push 0xfde950
call ebx
jmp 0x408609
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x412110
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x48714b
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.0047ba4e
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x412192
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004797cd
mov eax, dword [eax]
push 0x4d11e0
push eax
call fcn.0046c434
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0047bcd9
test bl, bl
je 0x412192
push 0x4d11e0
lea ecx, [esp + 0xc]
call fcn.0047c069
push 0x4d4d84
lea ecx, [esp + 0xc]
call fcn.0047c069
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 0x4121ce
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0047bcd9
jmp 0x412299
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 0x412252
lea edx, [esp + 0x7c]
push 0x4d4d80
push edx
call fcn.0046c434
add esp, 8
test eax, eax
je 0x412252
lea eax, [esp + 0x7c]
push 0x4d4d7c
push eax
call fcn.0046c434
add esp, 8
test eax, eax
je 0x412252
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 0x4121e2
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.0047bcd9
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 0x412a90
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 0x412af2
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 0x412b00
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4871cb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4de3b8]
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 0x412c38
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x412b66
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0047bcd9
xor eax, eax
jmp 0x412caf
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0047be16
push esi
lea ecx, [esp + 0xc]
call fcn.0047c0a5
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x4d4dbc
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x412c8d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.00412a90
test eax, eax
jne 0x412c8d
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.00412a90
test eax, eax
jne 0x412c8d
lea eax, [esp + 0x14]
push 0x4d4d98
push eax
call fcn.0046d4b0
mov esi, eax
add esp, 8
test esi, esi
jne 0x412c6c
lea ecx, [esp + 0x14]
push 0x4d4d94
push ecx
call fcn.0046d430
mov esi, eax
add esp, 8
test esi, esi
jne 0x412c6c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x412c6f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0047bdc6
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x412b7e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0047bcd9
xor eax, eax
jmp 0x412caf
mov byte [esi], 0
push 0x4d4d90
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.0047bcd9
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