joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1002fd86
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x10023267
call fcn.1001fe29
mov edx, dword [ebp + 0x10]
xor esi, esi
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x41c], edx
mov dword [ebp - 0x428], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x430], esi
mov dword [ebp - 0x418], esi
push 2
push esi
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x420], edi
test edi, edi
jne 0x1002fde7
call fcn.1002c2aa
mov esi, eax
jmp 0x1002feff
push esi
push ebx
push dword [ebp - 0x41c]
push edi
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_FindResourceExW]
mov ebx, eax
test ebx, ebx
jne 0x1002fe06
call fcn.1002c2aa
jmp 0x1002fef6
push ebx
push edi
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadResource]
mov dword [ebp - 0x424], eax
test eax, eax
je 0x1002fdfc
push ebx
push edi
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_SizeofResource]
mov ebx, eax
mov dword [ebp - 0x41c], ebx
lea ecx, [ebx + 1]
cmp ecx, ebx
jae 0x1002fe52
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x1002fe48
lea ecx, [ebp - 0x418]
call fcn.1002da9e
mov esi, 0x8007000e
jmp 0x1002ff18
push 2
pop edx
mov byte [ebp - 4], 2
call fcn.10029b47
cmp eax, 0x400
jbe 0x1002fe79
push eax
lea ecx, [ebp - 0x418]
call fcn.1002bfe3
mov eax, dword [ebp - 0x418]
jmp 0x1002fe85
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
mov dword [ebp - 4], 1
jmp 0x1002feaf
test eax, eax
jne 0x1002feba
mov esi, 0x8007000e
jmp 0x1002fef8
push ebx
push eax
push ebx
push dword [ebp - 0x424]
push esi
push 3
call dword [sym.imp.api_ms_win_core_string_l1_1_0.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x1002fdfc
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x430]
push dword [ebp - 0x418]
call fcn.1002fc2d
mov esi, eax
push edi
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x1002ff18
lea ecx, [ebp - 0x418]
call fcn.1002da9e
lea ecx, [ebp - 0x428]
call fcn.1002a48e
mov eax, esi
call fcn.1001fd7b
ret 0x10
Function at 0x10031867
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, ecx
push esi
push edi
test edx, edx
jne 0x10031884
mov ecx, 0x80004005
call fcn.1002c34b
xor eax, eax
mov edi, edx
mov dword [ebp - 4], eax
mov esi, eax
mov ecx, edi
lea eax, [ecx + 2]
mov dword [ebp - 8], eax
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 4]
jne 0x10031895
sub ecx, dword [ebp - 8]
sar ecx, 1
inc ecx
lea edi, [edi + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x1003188d
push esi
push edx
push 7
xor eax, eax
push eax
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x100318cd
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push ebx
push esi
mov esi, ecx
push edi
test edx, edx
jne 0x100318e8
mov ecx, 0x80004005
call fcn.1002c34b
mov ecx, edx
xor ebx, ebx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x100318ef
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push ebx
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x1003ccce
Capabilities:
Get keyboard layout

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10064318]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, edx
mov esi, ecx
call fcn.1003cc79
cmp byte [edi], 0
je 0x1003cd6f
mov eax, dword [esi]
lea ecx, [ebp - 8]
push ebx
push ecx
push esi
mov esi, dword [eax + 0x24]
xor ebx, ebx
mov ecx, esi
mov dword [ebp - 8], ebx
call dword [0x10066528]
call esi
test eax, eax
js 0x1003cd57
mov eax, dword [ebp - 8]
lea edx, [ebp - 0xc]
push edx
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x18]
mov ecx, esi
call dword [0x10066528]
call esi
test eax, eax
js 0x1003cd57
cmp dword [ebp - 0xc], ebx
je 0x1003cd57
push ebx
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push 0x1000f8ec
push dword [ebp - 0xc]
mov esi, eax
call dword [sym.imp.USER32.dll_GetPropW]
test eax, eax
je 0x1003cd53
mov eax, 0x804
cmp si, ax
jne 0x1003cd55
mov bl, 1
mov byte [edi], bl
mov eax, dword [ebp - 8]
pop ebx
test eax, eax
je 0x1003cd6f
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x10066528]
call esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1001f1e0
mov esp, ebp
pop ebp
ret
Function at 0x10047ac9
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 1
pop eax
test eax, eax
je 0x10048133
lea eax, [ebp - 0x230]
mov dword [ebp - 0x3a0], eax
cmp dword [ebp - 0x6fc], 0
jne 0x10047c08
and byte [ebp - 0x77c], 0
and byte [ebp - 0x77b], 0
mov byte [ebp - 0x77a], 4
and byte [ebp - 0x779], 0
mov byte [ebp - 0x778], 0xb8
mov byte [ebp - 0x777], 0xc1
mov byte [ebp - 0x776], 0xa7
mov byte [ebp - 0x775], 0xab
mov byte [ebp - 0x774], 0x89
mov byte [ebp - 0x773], 0x94
mov byte [ebp - 0x772], 0x9c
mov byte [ebp - 0x771], 0x89
mov byte [ebp - 0x770], 0x9a
mov byte [ebp - 0x76f], 0x96
mov byte [ebp - 0x76e], 0xdb
mov byte [ebp - 0x76d], 0xbd
mov byte [ebp - 0x76c], 0x92
xchg edx, eax
xchg edx, eax
mov byte [ebp - 0x76b], 0x97
mov byte [ebp - 0x76a], 0x9e
mov byte [ebp - 0x769], 0x88
mov byte [ebp - 0x768], 0xa7
mov byte [ebp - 0x767], 0xb8
mov byte [ebp - 0x766], 0x94
mov byte [ebp - 0x765], 0x96
mov byte [ebp - 0x764], 0x96
mov byte [ebp - 0x763], 0x94
mov byte [ebp - 0x762], 0x95
mov byte [ebp - 0x761], 0xdb
mov byte [ebp - 0x760], 0xbd
mov byte [ebp - 0x75f], 0x92
mov byte [ebp - 0x75e], 0x97
mov byte [ebp - 0x75d], 0x9e
mov byte [ebp - 0x75c], 0x88
mov byte [ebp - 0x75b], 0xa7
mov byte [ebp - 0x75a], 0xa8
mov byte [ebp - 0x759], 0x82
mov byte [ebp - 0x758], 0x88
mov byte [ebp - 0x757], 0x8f
mov byte [ebp - 0x756], 0x9e
mov byte [ebp - 0x755], 0x96
mov byte [ebp - 0x754], 0xa7
mov byte [ebp - 0x753], 0x88
mov byte [ebp - 0x752], 0x82
mov byte [ebp - 0x751], 0x96
mov byte [ebp - 0x750], 0x88
mov byte [ebp - 0x74f], 0x89
mov byte [ebp - 0x74e], 0x8d
mov byte [ebp - 0x74d], 0xd5
mov byte [ebp - 0x74c], 0x9f
mov byte [ebp - 0x74b], 0x97
mov byte [ebp - 0x74a], 0x97
mov byte [ebp - 0x749], 0xfb
lea eax, [ebp - 0x77c]
push eax
call fcn.1004609d
pop ecx
mov al, byte [ebp - 0x12c]
mov byte [ebp - 0x778], al
push 0x30
lea eax, [ebp - 0x77c]
push eax
call fcn.1004609d
pop ecx
push eax
lea eax, [ebp - 0x504]
push eax
call fcn.10045ffe
add esp, 0xc
invalid
Function at 0x1004d207
Capabilities:
Get keyboard layout
Log keystrokes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
xor esi, esi
mov dword [ebp - 8], 0x80004005
mov ebx, ecx
push esi
mov dword [ebp - 0x10], ebx
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov dword [ebp - 0xc], eax
lea edx, [ebx + 2]
mov ax, word [ebx]
add ebx, 2
cmp ax, si
jne 0x1004d22c
sub ebx, edx
sar ebx, 1
test ebx, ebx
jle 0x1004d39a
push edi
lea esi, [ebx + ebx]
xor ecx, ecx
push 0x1c
pop edx
mov eax, esi
mov dword [ebp - 0x14], esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1001ec41
mov edi, eax
mov dword [ebp - 0x18], edi
pop ecx
test edi, edi
je 0x1004d399
xor ecx, ecx
mov dword [ebp - 8], ecx
test ebx, ebx
jle 0x1004d377
mov edx, dword [ebp - 0xc]
mov eax, ebx
neg eax
mov esi, edi
test edx, edx
je 0x1004d302
mov dword [ebp - 4], eax
add edi, 0xffffffe4
mov eax, dword [ebp - 0x10]
push edx
push 0
mov dword [esi], 1
movzx eax, word [eax + ecx*2]
push eax
mov word [esi + 4], ax
call dword [sym.imp.USER32.dll_MapVirtualKeyExW]
and dword [esi + 8], 0
mov word [esi + 6], ax
call dword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount]
mov edx, dword [ebp - 4]
add eax, edx
and dword [esi + 0x10], 0
mov dword [esi + 0xc], eax
push 0x1c
pop eax
add esi, eax
add edi, eax
mov dword [ebp - 4], esi
mov esi, edi
mov dword [ebp - 0x1c], edi
mov edi, dword [ebp - 4]
push 7
pop ecx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 8]
add edi, eax
or dword [esi + 8], 2
add esi, eax
inc ecx
inc edx
mov dword [ebp - 4], edx
mov edx, dword [ebp - 0xc]
mov dword [ebp - 8], ecx
cmp ecx, ebx
jl 0x1004d28e
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
jmp 0x1004d37a
xor ecx, ecx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], ecx
add edi, 0xffffffe4
mov eax, dword [ebp - 0x10]
push 0
mov dword [esi], 1
movzx eax, word [eax + ecx*2]
push eax
mov word [esi + 4], ax
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
and dword [esi + 8], 0
mov word [esi + 6], ax
call dword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount]
mov edx, dword [ebp - 0xc]
add eax, edx
and dword [esi + 0x10], 0
mov dword [esi + 0xc], eax
push 0x1c
pop eax
add esi, eax
add edi, eax
mov dword [ebp - 0xc], esi
mov esi, edi
mov dword [ebp - 0x1c], edi
mov edi, dword [ebp - 0xc]
push 7
pop ecx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 8]
add edi, eax
or dword [esi + 8], 2
add esi, eax
inc ecx
inc edx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], edx
cmp ecx, ebx
jl 0x1004d30d
jmp 0x1004d2fa
push 0x1c
pop eax
push eax
push edi
push esi
call dword [sym.imp.USER32.dll_SendInput]
sub esi, eax
neg esi
push edi
sbb esi, esi
and esi, 0x80004005
mov dword [ebp - 8], esi
call fcn.1001ec6a
pop ecx
pop edi
mov eax, dword [ebp - 8]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1005413e
Capabilities:
Create thread

Disassembly:
mov eax, dword [0x10064c04]
push esi
xor esi, esi
test eax, eax
jne 0x1005415e
push esi
push esi
push 1
push esi
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_CreateEventW]
mov dword [0x10064c04], eax
test eax, eax
je 0x100541b0
push eax
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_ResetEvent]
lock inc dword [0x10064a94]
push 0x10064c0c
push esi
push 0x10064bf8
push 0x100543d0
push esi
push esi
call dword [sym.imp.msvcrt.dll__beginthreadex]
add esp, 0x18
mov dword [0x10064c08], eax
test eax, eax
je 0x1005419e
push 0xffffffffffffffff
push dword [0x10064c04]
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_WaitForSingleObject]
push dword [0x10064c04]
call dword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov dword [0x10064c04], esi
pop esi
ret

Function at 0x1005fa2f
Capabilities:
Allocate or change rwx memory

Disassembly:
mov eax, dword [0x10065680]
push esi
push edi
test eax, eax
jne 0x1005fa48
call fcn.1005fb04
test eax, eax
je 0x1005fa94
mov eax, dword [0x10065680]
cmp eax, 1
jne 0x1005fa64
push 0xd
push 8
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_GetProcessHeap]
push eax
call dword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapAlloc]
test eax, eax
je 0x1005fa94
jmp 0x1005fada
push eax
call dword [sym.imp.api_ms_win_core_interlocked_l1_1_0.dll_InterlockedPopEntrySList]
mov ecx, eax
test ecx, ecx
je 0x1005fa7d
xor eax, eax
mov edi, ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosb byte es:[edi], al
mov eax, ecx
jmp 0x1005fada
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x1005fa98
xor eax, eax
jmp 0x1005fada
mov eax, dword [esi]
push dword [0x10065680]
call dword [sym.imp.api_ms_win_core_interlocked_l1_1_0.dll_InterlockedPopEntrySList]
mov edi, eax
test edi, edi
je 0x1005fabe
push 0x8000
push 0
push esi
call dword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_VirtualFree]
mov eax, edi
jmp 0x1005fada
lea edi, [esi + 0xff0]
push esi
push dword [0x10065680]
call dword [sym.imp.api_ms_win_core_interlocked_l1_1_0.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x1005fac4
mov eax, esi
pop edi
pop esi
ret
Function at 0x40d300
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41208d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push ebx
mov dword [esp + 0xc], esi
call dword [0x413940]
mov dword [esi], vtable.MdiChild.1.0
mov dword [esi + 8], vtable.MdiChild.0
mov eax, dword [0x413234]
mov dword [esp + 0x14], ebx
mov dword [esi + 0x1c], eax
mov ecx, eax
mov edx, 1
lock xadd dword [ecx], edx
mov eax, dword [0x413234]
mov dword [esi + 0x24], eax
mov ecx, eax
mov edx, 1
lock xadd dword [ecx], edx
mov eax, dword [0x413234]
mov dword [esi + 0x34], eax
mov ecx, eax
mov edx, 1
lock xadd dword [ecx], edx
push 1
push 0x37
mov ecx, esi
mov byte [esp + 0x1c], 3
call dword [0x413710]
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov byte [esi + 0x21], bl
mov dword [esi + 0x28], ebx
mov byte [esi + 0x30], bl
mov byte [esi + 0x38], 1
mov byte [esi + 0x20], 1
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x429000
Capabilities:
Parse pe header
Read file on windows

Disassembly:
sub esp, 0x40
lea eax, [esp + 0x44]
lea ecx, [esp]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebp
push esi
mov esi, dword [esp + 0x50]
push edi
push 0
push eax
push 0x40
push ecx
push esi
call ebx
test eax, eax
je 0x429175
cmp dword [esp + 0x54], 0x40
jne 0x429175
cmp word [esp + 0x10], 0x5a4d
jne 0x429175
mov edx, dword [esp + 0x4c]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push edx
push esi
call ebp
cmp eax, 0xffffffff
je 0x429175
lea eax, [esp + 0x54]
push 0
push eax
push 0xf8
push 0x42f960
push esi
call ebx
test eax, eax
je 0x429175
cmp dword [esp + 0x54], 0xf8
jne 0x429175
cmp dword [0x42f960], 0x4550
jne 0x429175
mov eax, dword [0x42f976]
test ah, 0x20
jne 0x429175
mov edx, dword [0x42fa80]
xor eax, eax
mov ax, word [0x42f966]
add eax, edx
lea eax, [eax + eax*4]
shl eax, 3
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [0x42fa58], eax
je 0x429175
push 1
push 0
push 0
push esi
call ebp
mov dword [0x42fa6c], eax
xor eax, eax
mov ax, word [0x42f966]
mov edx, dword [0x42fa58]
lea ecx, [esp + 0x54]
push 0
lea edi, [eax + eax*4]
push ecx
shl edi, 3
push edi
push edx
push esi
call ebx
test eax, eax
je 0x429175
cmp dword [esp + 0x54], edi
jne 0x429175
push 1
push 0
push 0
push esi
call ebp
mov ecx, dword [0x42fa80]
lea ecx, [ecx + ecx*4]
lea edx, [eax + ecx*8]
mov eax, dword [0x42f9b4]
cmp edx, eax
ja 0x429175
mov edi, dword [0x42fa58]
mov ecx, dword [0x42f988]
mov eax, dword [edi + 0x10]
mov edx, dword [edi + 0xc]
add eax, edx
cmp ecx, eax
jae 0x429175
xor eax, eax
push 2
mov ax, word [0x42f966]
push 0
push 0
push esi
lea ecx, [eax + eax*4]
mov ebx, dword [edi + ecx*8 - 0x18]
lea edi, [edi + ecx*8]
call ebp
mov edx, dword [edi - 0x14]
add edx, ebx
cmp eax, edx
jne 0x429175
cmp dword [edi - 0x20], ebx
ja 0x429175
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x40
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x40
ret
Function at 0x42b769
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x42f190
cmp edx, dword [eax]
je 0x42b78b
add eax, 8
inc ecx
cmp eax, 0x42f220
jl 0x42b77c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x42f190]
jne 0x42b8b9
mov eax, dword [0x42fbb0]
cmp eax, 1
je 0x42b893
test eax, eax
jne 0x42b7bc
cmp dword [0x42f0e4], 1
je 0x42b893
cmp edx, 0xfc
je 0x42b8b9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x42b7f3
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0042c670
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0042c490
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x42b836
lea eax, [ebp - 0x1a4]
push eax
call fcn.0042c490
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x42e45c
push edi
call fcn.0042cf00
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0042c670
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0042c680
lea eax, [ebp - 0xa0]
push 0x42e43c
push eax
call fcn.0042c680
push dword [esi + 0x42f194]
lea eax, [ebp - 0xa0]
push eax
call fcn.0042c680
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0042ce75
add esp, 0x2c
pop edi
jmp 0x42b8b9
lea eax, [ebp + 8]
lea esi, [esi + 0x42f194]
push 0
push eax
push dword [esi]
call fcn.0042c490
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 0x4011b0
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x974
mov eax, dword [0x4890a0]
xor eax, esp
mov dword [esp + 0x96c], eax
push ebx
push ebp
push esi
push edi
push 0xfa0
mov ecx, 0x4db750
call fcn.0040ee60
xor ebp, ebp
add esp, 4
cmp eax, ebp
je 0x40123a
cmp eax, 7
ja 0x4011fd
shl eax, 7
add eax, 0x4d45f0
push eax
push 0x100
lea eax, [esp + 0x578]
push eax
jmp 0x40120f
push 0x482ec8
push 0x100
lea ecx, [esp + 0x578]
push ecx
call fcn.004329ff
add esp, 0xc
push 0x30
lea edx, [esp + 0x574]
push edx
push 0x481668
call dword [sym.imp.user32.dll_GetFocus]
push eax
call dword [sym.imp.user32.dll_MessageBoxW]
xor eax, eax
jmp 0x401423
push 0x4816bc
push 0x80
push 0x4816f0
xor edi, edi
lea esi, [esp + 0x274]
mov ecx, 0x481708
call fcn.00419ff0
mov eax, esi
push eax
push 0x4d6970
lea ecx, [esp + 0x37c]
push 0x481724
push ecx
mov edx, 0x104
call fcn.00401130
lea edx, [esp + 0x384]
push edx
mov ecx, 0x4db758
call fcn.0040ee60
add esp, 0x20
test eax, eax
je 0x4012a6
push 0xfa0
mov ecx, 0x4db758
call fcn.0040ee60
add esp, 4
push 0x4d6970
lea eax, [esp + 0x774]
push 0x481730
push eax
mov edx, 0x104
call fcn.00401130
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x774]
push edx
call dword [sym.imp.kernel32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x40140c
test byte [esp + 0x18], 0x10
jne 0x4013f8
lea eax, [esp + 0x44]
push eax
push 0x4d6970
lea ecx, [esp + 0x370]
push 0x481724
push ecx
mov edx, 0x104
call fcn.00401130
lea edx, [esp + 0x378]
push edx
lea ecx, [esp + 0x24]
call fcn.0040ee60
add esp, 0x14
test eax, eax
jne 0x4013f8
mov esi, dword [0x4db744]
mov eax, dword [0x4db748]
cmp esi, eax
jl 0x40135c
add eax, 8
mov dword [0x4db748], eax
imul eax, eax, 0x288
push eax
mov eax, dword [0x4d6b78]
push eax
call fcn.004327e4
add esp, 8
mov dword [0x4d6b78], eax
imul esi, esi, 0x288
add esi, dword [0x4d6b78]
push 0x103
lea ecx, [esp + 0x48]
push ecx
push 0x104
push esi
call fcn.004319f5
mov edx, dword [0x4db744]
mov eax, dword [0x4d6b78]
imul edx, edx, 0x288
mov esi, dword [esp + 0x20]
add eax, edx
xor ecx, ecx
mov word [eax + 0x206], cx
mov edx, dword [esi + 8]
push 0x3f
push edx
add eax, 0x208
push 0x40
push eax
call fcn.004319f5
mov eax, dword [0x4db744]
mov ebx, dword [0x4d6b78]
mov ecx, eax
imul ecx, ecx, 0x288
inc eax
mov dword [0x4db744], eax
mov eax, dword [esp + 0x34]
xor edx, edx
add esp, 0x20
mov word [ecx + ebx + 0x286], dx
cmp eax, ebp
je 0x4013e7
push eax
call fcn.00431ac8
add esp, 4
push esi
call fcn.00431ac8
add esp, 4
mov dword [esp + 0x14], ebp
mov dword [esp + 0x10], ebp
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.kernel32.dll_FindNextFileW]
test eax, eax
jne 0x4012da
mov eax, 0x80
cmp dword [0x4db744], eax
jle 0x40141e
mov dword [0x4db744], eax
mov eax, 1
mov ecx, dword [esp + 0x97c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00431784
add esp, 0x974
ret
Function at 0x401dc0
Capabilities:
Create process on windows
Terminate process

Disassembly:
sub esp, 0x20c
mov eax, dword [0x4890a0]
xor eax, esp
mov dword [esp + 0x208], eax
push edi
mov edi, ecx
mov ecx, 0x481b18
call fcn.0041a230
mov eax, dword [0x4db758]
mov ecx, dword [eax + 0x150]
push 0x40
push 0x481b34
push ecx
call dword [sym.imp.user32.dll_GetFocus]
push eax
call dword [sym.imp.user32.dll_MessageBoxW]
push 0x104
lea edx, [esp + 8]
push edx
push 0
call dword [sym.imp.kernel32.dll_GetModuleFileNameW]
push 1
push 0
push 0
lea eax, [esp + 0x10]
push eax
push 0x481b48
push 0
call dword [sym.imp.shell32.dll_ShellExecuteW]
push 0
call dword [sym.imp.kernel32.dll_ExitProcess]
Function at 0x405c70
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
sub esp, 0x218
mov eax, dword [0x4890a0]
xor eax, esp
mov dword [esp + 0x214], eax
lea eax, [esp]
push eax
push 0x20019
push 0
push 0x4828f8
push 0x80000000
mov byte [esp + 0x20], 0
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405d50
push esi
mov esi, dword [sym.imp.advapi32.dll_RegQueryValueExA]
lea ecx, [esp + 8]
push ecx
push eax
lea edx, [esp + 0x14]
push edx
push eax
push eax
mov eax, dword [esp + 0x18]
push eax
call esi
test eax, eax
jne 0x405d0e
cmp dword [esp + 8], 0x104
jae 0x405d0e
lea ecx, [esp + 8]
push ecx
mov ecx, dword [esp + 8]
lea edx, [esp + 0x118]
push edx
lea eax, [esp + 0x14]
push eax
push 0
push 0
push ecx
call esi
test eax, eax
jne 0x405d0e
push 0x104
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x11c]
push eax
call dword [sym.imp.kernel32.dll_ExpandEnvironmentStringsA]
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.advapi32.dll_RegCloseKey]
cmp byte [esp + 0x10], 0
mov dword [0x4db73c], 0
pop esi
je 0x405d50
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov dword [0x4db73c], eax
test eax, eax
je 0x405d50
push 0x482934
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [0x4db740], eax
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.00431784
add esp, 0x218
ret