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

Disassembly:
sub esp, 0x35c
push ebx
push esi
push edi
mov ebx, ecx
push ebp
mov ebp, edx
call fcn.0049a1e0
test eax, eax
je 0x49a284
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x35c
ret
lea eax, [esp + 0x20]
mov edi, ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA_1]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
shr ecx, 2
mov esi, edi
lea edi, [esp + 0x268]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ax, word [0x4a10c0]
mov edi, ebx
mov word [esp + 0x64], ax
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 + 0x64]
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, 0x4a10c0
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 + 0x64]
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]
test ebp, ebp
je 0x49a3c6
cmp byte [ebp], 0
je 0x49a3c6
mov edi, 0x4a10bc
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 + 0x64]
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, 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 + 0x64]
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, 0x4a10c0
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 + 0x64]
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]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x20]
push eax
push ecx
lea edx, [esp + 0x6c]
push 0
lea eax, [esp + 0x274]
push 0
push 0
push 0
push 0
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x35c
ret
Function at 0x49bd10
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x49bd6b
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
mov edx, dword [esp + 4]
push eax
mov dword [esp + 0xc], 0x104
push ecx
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
lea ecx, [esp + 0xc]
mov edx, dword [esp + 0x114]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA_1]
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 4

Function at 0x49bd80
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x208
push ebx
push esi
push edi
mov ebx, edx
push ebp
mov edi, ecx
xor esi, esi
push ebx
mov eax, dword [esp + 0x220]
push esi
push eax
mov ebp, dword [sym.imp.SHELL32.dll_ShellExecuteA]
push edi
push 0x4a1154
push esi
call ebp
cmp eax, 0x20
jg 0x49be73
mov ecx, edi
call fcn.0049a1e0
test eax, eax
jne 0x49bdc4
xor eax, eax
jmp 0x49be7a
lea eax, [esp + 0x10]
mov edx, 0x4a114c
push eax
mov ecx, SysReAllocString
call fcn.0049bd10
test eax, eax
jne 0x49be78
lea eax, [esp + 0x10]
push 0x4a1138
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x10]
lea edx, [esp + 0x10]
push eax
mov ecx, SysReAllocString
call fcn.0049bd10
test eax, eax
jne 0x49be78
lea eax, [esp + 0x10]
push 0x4a1130
push eax
call fcn.004a0e20
add esp, 8
mov ebp, eax
test ebp, ebp
jne 0x49be4a
lea eax, [esp + 0x10]
push 0x4a112c
push eax
call fcn.004a0e20
add esp, 8
mov ebp, eax
test ebp, ebp
jne 0x49be4a
lea eax, [esp + 0x10]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenA_1]
push eax
call ebp
lea ebp, [esp + eax + 0xf]
jmp 0x49be4e
mov byte [ebp], 0
push 0x4a1044
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x10]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
cmp eax, 0x1f
jbe 0x49be78
mov esi, 1
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x208
ret 4
Function at 0x49c350
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov esi, edx
mov edi, dword [esp + 0xc]
mov edx, dword [ecx + 2]
xor edx, dword [ecx + 6]
xor edx, dword [ecx + 0xa]
add edi, edx
xor edx, edx
mov eax, dword [ecx + 6]
inc edx
xor dword [edi + edx*4 - 4], eax
inc edx
mov eax, dword [ecx + 0xa]
xor dword [edi + edx*4 - 4], eax
cmp edx, 0x14
jl 0x49c365
mov ecx, dword [esi]
call fcn.0049f5e0
mov dword [esi], 0
cmp word [0x4a11b8], 0
je 0x49c39d
cmp word [0x4a11c0], 0
je 0x49c39d
call edi
push 0
push 0x4a1238
push 0x4a1228
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
pop edi
pop esi
ret 4

Function at 0x49c420
Capabilities:
Get common file path
Get disk information

Disassembly:
sub esp, 0x318
lea eax, [esp + 0x110]
push ebx
push esi
xor ebx, ebx
push edi
mov byte [0x4a4948], bl
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA_1]
test eax, eax
jne 0x49c457
mov byte [esp + 0x11c], 0x63
mov byte [esp + 0x11d], bl
xor edx, edx
lea edi, [esp + 0x11c]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x49c4a0
mov ebx, 0x5c
cmp byte [esp + edx + 0x11c], bl
je 0x49c498
inc edx
lea edi, [esp + 0x11c]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, edx
jg 0x49c475
jmp 0x49c4a0
mov byte [esp + edx + 0x11d], 0
lea eax, [esp + 0x18]
push 0x104
lea ecx, [esp + 0x18]
push eax
lea edx, [esp + 0x18]
push ecx
lea eax, [esp + 0x18]
push edx
lea ecx, [esp + 0x230]
push eax
lea edx, [esp + 0x130]
push 0x104
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x49c4ee
lea eax, [esp + 0x18]
push 0xa
mov ecx, dword [esp + 0x10]
push eax
push ecx
call fcn.004a0c50
add esp, 0xc
jmp 0x49c4fd
mov edx, 0x4a1284
mov ecx, 0x4a126c
call fcn.0049f5f0
xor eax, eax
mov edx, 0x38
mov cl, byte [esp + eax + 0x18]
cmp cl, 0x30
jl 0x49c51a
cmp cl, 0x39
jg 0x49c51a
mov byte [eax + 0x4a4940], cl
jmp 0x49c520
mov byte [eax + 0x4a4940], dl
inc eax
cmp eax, 8
jl 0x49c504
mov edi, 0x4a4940
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov cl, byte [esp + 0x1a]
mov al, byte [esp + 0x1f]
mov dl, byte [esp + 0x18]
mov byte [0x4a4940], cl
mov cl, byte [esp + 0x1b]
mov byte [0x4a4943], al
mov al, byte [esp + 0x1d]
mov byte [0x4a4942], dl
mov byte [0x4a4944], cl
mov byte [0x4a4941], al
mov byte [0x4a4945], 0
cmp byte [esp + 0x1a], 0x30
jne 0x49c595
mov al, byte [esp + 0x1a]
inc al
mov byte [0x4a4940], al
mov edx, 0x4a1264
mov ecx, 0x4a4940
call fcn.0049fa60
pop edi
mov dword [0x4a49d4], eax
pop esi
pop ebx
add esp, 0x318
ret
Function at 0x49e240
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
lea eax, [esp + 8]
push ebx
push esi
push edi
push ebp
push eax
push 0x4a1198
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x49e26c
mov ax, 2
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret
push 0xbb80
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc_1]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock_1]
mov ebp, eax
test ebp, ebp
jne 0x49e292
mov ax, 3
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret
mov dword [esp + 0x10], 0xbb80
lea eax, [esp + 0x10]
push eax
push ebp
push 0x4a1198
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
je 0x49e2e7
push ebp
mov esi, dword [sym.imp.KERNEL32.dll_GlobalHandle_1]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock_1]
push ebp
call esi
push eax
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalFree_1]
call ebp
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ax, 3
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
dec dword [esp + 0x10]
push eax
mov edx, dword [esp + 0x14]
push ecx
mov ecx, ebp
xor ebx, ebx
call fcn.0049f770
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
lea eax, [ecx + 8]
mov dword [esp + 0x10], edx
cmp edx, ebx
jle 0x49e32e
mov ecx, 0xc
mov esi, eax
mov edi, dword [0x4a4b78]
repe cmpsb byte [esi], byte es:[edi]
je 0x49e32e
add eax, 0xc
inc ebx
cmp ebx, dword [esp + 0x10]
jl 0x49e313
push ebp
mov esi, dword [sym.imp.KERNEL32.dll_GlobalHandle_1]
call esi
push eax
mov edi, dword [sym.imp.KERNEL32.dll_GlobalUnlock_1]
call edi
push ebp
call esi
push eax
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalFree_1]
call ebp
mov eax, dword [esp + 0x14]
push eax
call esi
push eax
call edi
mov eax, dword [esp + 0x14]
push eax
call esi
push eax
call ebp
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, dword [esp + 0x10]
je 0x49e384
or byte [0x4a494a], 0x20
mov ax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret
xor ax, ax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret
Function at 0x49ebb0
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov eax, 4
push esi
push edi
mov edi, dword [ecx + 0xc]
mov esi, edx
sub edi, 0x5c5c5c5d
mov ebx, dword [ecx]
add ecx, 4
xor ebx, edi
add esi, 4
dec eax
mov dword [esi - 4], ebx
jne 0x49ebc3
mov dword [edx + 0x10], 0
pop edi
pop esi
pop ebx
ret

Function at 0x49f0f0
Capabilities:
Create process on windows
Create process suspended

Disassembly:
sub esp, 0x35c
lea eax, [esp + 0x258]
push esi
push edi
push 0x104
mov edi, ecx
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA_1]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x49f125
xor eax, eax
pop edi
pop esi
add esp, 0x35c
ret
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
lea edi, [esp + 0x5c]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4a1398
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 + 0x5c]
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, 0x4a4a50
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 + 0x5c]
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]
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA_1]
lea ecx, [esp + 8]
lea edx, [esp + 0x18]
push ecx
push edx
lea eax, [esp + 0x64]
push 0
lea ecx, [esp + 0x26c]
push 0
push 0
push 0
push 0
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x49f212
mov eax, dword [esp + 8]
inc dword [0x4a49c4]
mov dword [0x4a1318], 1
mov dword [0x4a4934], eax
mov eax, dword [esp + 0xc]
pop edi
mov dword [0x4a492c], eax
mov eax, 1
pop esi
add esp, 0x35c
ret
xor eax, eax
pop edi
pop esi
add esp, 0x35c
ret

Function at 0x49f3b0
Capabilities:
Read file on windows

Disassembly:
sub esp, 4
lea eax, [esp]
push esi
mov esi, ecx
push 0
push eax
mov ecx, dword [0x4a1324]
push 4
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esi]
xor eax, 0x20200000
shr eax, 0x12
mov dword [esi], eax
pop esi
add esp, 4
ret

Function at 0x49f3e0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, ecx
shl eax, 0x12
push 0
xor eax, 0x20202020
mov dword [esp + 4], ecx
lea ecx, [esp + 8]
mov edx, dword [0x4a1324]
mov dword [esp + 4], eax
push ecx
lea eax, [esp + 8]
push 4
push eax
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
add esp, 8
ret
Function at 0x49f570
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 4
movzx eax, cx
push esi
push edi
mov esi, edx
push 0x4a13f4
push eax
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA_1]
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x49f5b6
push eax
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [esi], eax
test eax, eax
je 0x49f5b6
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x49f5c9
jmp 0x49f5ba
mov esi, dword [esp + 8]
mov edx, 0x4a13ec
mov ecx, 0x4a13c0
call fcn.0049f5f0
mov eax, esi
pop edi
pop esi
add esp, 4
ret

Function at 0x49f5f0
Capabilities:
Terminate process

Disassembly:
sub esp, 0x10
mov eax, 0x4a13fc
push ebx
push esi
push edi
mov ebx, ecx
lea esi, [esp + 0xc]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov edi, edx
mov dword [esi], ecx
mov ecx, 0xffffffff
mov dword [esi + 4], eax
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 + 0xc]
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 0x10
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea esi, [esp + 0x10]
push esi
push ebx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0xffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4a0990
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x64
lea eax, [esp + 0x44]
push ebx
push esi
push edi
push ebp
mov edi, edx
mov esi, ecx
push eax
push esi
call dword [sym.imp.GDI32.dll_GetClipBox]
lea ecx, [esp + 0x18]
push ecx
push edi
call dword [sym.imp.USER32.dll_GetClientRect_1]
push esi
mov edi, dword [sym.imp.GDI32.dll_CreateCompatibleDC_1]
call edi
mov dword [esp + 0x14], eax
push esi
call edi
mov edi, dword [esp + 0x78]
mov dword [esp + 0x10], eax
push edi
call fcn.004a07b0
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x1c]
push eax
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov ecx, dword [esp + 0x14]
push eax
mov dword [esp + 0x30], eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x34]
push 0
mov dword [esp + 0x3c], eax
push ecx
push esi
call dword [sym.imp.GDI32.dll_SelectPalette]
mov dword [esp + 0x40], eax
push esi
call dword [sym.imp.GDI32.dll_RealizePalette_1]
push edi
call fcn.004a08b0
mov ebp, eax
push edi
call fcn.004a08d0
mov dword [esp + 0x28], eax
push edi
call fcn.004a08f0
mov ebx, eax
push 0
push edi
push ebp
push 4
push edi
push esi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov ecx, dword [esp + 0x10]
push eax
push ecx
xor edi, edi
mov dword [esp + 0x38], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x18]
test eax, eax
jle 0x4a0adf
xor ebp, ebp
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x1c]
mov dword [esp + 0x44], edi
add edi, dword [esp + 0x28]
test eax, eax
mov dword [esp + 0x4c], edi
jle 0x4a0ad3
lea eax, [esp + 0x44]
lea ecx, [esp + 0x54]
lea edx, [esp + 0x64]
push eax
mov dword [esp + 0x4c], ebp
push ecx
add ebp, ebx
push edx
mov dword [esp + 0x5c], ebp
call dword [sym.imp.USER32.dll_IntersectRect]
test eax, eax
je 0x4a0ac7
mov eax, dword [esp + 0x10]
push 0xcc0020
mov ecx, dword [esp + 0x2c]
push 0
mov edx, dword [esp + 0x50]
push 0
push eax
push ebx
mov eax, dword [esp + 0x58]
push ecx
push edx
push eax
push esi
call dword [sym.imp.GDI32.dll_BitBlt_1]
mov eax, dword [esp + 0x24]
sub eax, dword [esp + 0x1c]
cmp eax, ebp
jg 0x4a0a7f
mov eax, dword [esp + 0x20]
sub eax, dword [esp + 0x18]
cmp eax, edi
jg 0x4a0a65
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x14]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x10]
push ecx
push edx
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x40]
push 1
push ecx
push esi
call dword [sym.imp.GDI32.dll_SelectPalette]
mov ecx, dword [esp + 0x2c]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
push ecx
call esi
mov ecx, dword [esp + 0x30]
push ecx
call esi
mov eax, dword [esp + 0x34]
push eax
call esi
mov eax, dword [esp + 0x14]
mov esi, dword [sym.imp.GDI32.dll_DeleteDC]
push eax
call esi
mov ecx, dword [esp + 0x10]
push ecx
call esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x64
ret 4
Function at 0x40c0a0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x47f1db
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.00473f1e
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40c122
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00471e30
mov eax, dword [eax]
push 0x49bcb0
push eax
call fcn.00464b44
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004741a9
test bl, bl
je 0x40c122
push 0x49bcb0
lea ecx, [esp + 0xc]
call fcn.00474539
push 0x49bcbc
lea ecx, [esp + 0xc]
call fcn.00474539
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 0x40c15e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004741a9
jmp 0x40c229
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 0x40c1e2
lea edx, [esp + 0x7c]
push 0x49bcb8
push edx
call fcn.00464b44
add esp, 8
test eax, eax
je 0x40c1e2
lea eax, [esp + 0x7c]
push 0x49bcb4
push eax
call fcn.00464b44
add esp, 8
test eax, eax
je 0x40c1e2
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 0x40c172
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.004741a9
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 0x40ca30
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 0x40ca92
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 0x40caa0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x47f25b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4a5668]
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 0x40cbd8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40cb06
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004741a9
xor eax, eax
jmp 0x40cc4f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.004742e6
push esi
lea ecx, [esp + 0xc]
call fcn.00474575
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 0x40cc2d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.0040ca30
test eax, eax
jne 0x40cc2d
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.0040ca30
test eax, eax
jne 0x40cc2d
lea eax, [esp + 0x14]
push 0x49bccc
push eax
call fcn.00465bc0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40cc0c
lea ecx, [esp + 0x14]
push 0x49bcc8
push ecx
call fcn.00465b40
mov esi, eax
add esp, 8
test esi, esi
jne 0x40cc0c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40cc0f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00474296
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40cb1e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004741a9
xor eax, eax
jmp 0x40cc4f
mov byte [esi], 0
push 0x49bcc4
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.004741a9
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