joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4540f0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x454107
add esp, 0xfffffff0
call fcn.004035a8
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00419a04
mov eax, dword [0x4610a0]
cmp word [eax + 2], 0
jne 0x45412f
mov eax, dword [0x4610a0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004557e0
mov eax, dword [0x46114c]
cmp word [eax + 2], 0
jne 0x454149
mov eax, dword [0x46114c]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004559d8
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x411c8c]
call fcn.00403254
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x411c8c]
call fcn.00403254
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41bf40]
call fcn.00423314
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x4542d0
mov eax, dword [0x460fb8]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.004236e4
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x455f88
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x460fb8]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040c820
test eax, eax
je 0x45423e
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408a00
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c848
test eax, eax
je 0x454252
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.004042c8
mov eax, dword [0x460ea8]
cmp byte [eax], 0
jne 0x454286
mov eax, ebx
call fcn.004543f8
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.00456164
mov eax, ebx
call fcn.00456b28
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4542c6
call fcn.00403600
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x454678
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x462bb8]
cmp dword [eax + 0x30], 0
je 0x454722
cmp dword [ebx + 0x94], 0
jne 0x45471c
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x454608
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45471c
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x4546e2
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45471c
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00414064
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4546f1
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x455284
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x4552b9
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404148
jmp 0x4552c6
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004040ac
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x456340
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x456381
mov eax, esi
call fcn.0043ca9c
test al, al
je 0x456381
mov eax, dword [ebx + 0x84]
call fcn.0043c798
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x456381
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043c798
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x457140
Capabilities:
Suspend thread

Disassembly:
mov byte [eax + 0xd], 1
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_SuspendThread
ret

Function at 0x457150
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 1
jne 0x457165
mov byte [ebx + 0xd], 0
pop ebx
ret

Function at 0x457268
Capabilities:
Terminate thread

Disassembly:
push ebx
push esi
mov ebx, eax
push 0
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_TerminateThread
mov eax, ebx
call fcn.004571d4
mov esi, eax
mov eax, ebx
call fcn.00403284
mov eax, esi
pop esi
pop ebx
ret
Function at 0x4576e0
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe2c
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x457780
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x1d4]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
xor ebx, ebx
push 0x40
lea eax, [ebp - 0x44]
push eax
call sub.wsock32.dll_gethostname
lea eax, [ebp - 0x44]
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x45776a
mov esi, dword [eax + 0xc]
xor ebx, ebx
jmp 0x457743
push dword [edi]
call sub.wsock32.dll_inet_ntoa
mov edx, eax
lea eax, [ebp - 4]
call fcn.00404250
inc ebx
mov edi, dword [esi + ebx*4]
test edi, edi
jne 0x457731
call sub.wsock32.dll_WSACleanup
cmp dword [ebp - 4], 0
je 0x457764
mov eax, dword [ebp - 4]
mov edx, 0x457798
call fcn.00404464
jne 0x457768
xor ebx, ebx
jmp 0x45776a
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x457787
lea eax, [ebp - 4]
call fcn.00404058
ret

Function at 0x4577a4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
add esp, 0xfffffff0
lea eax, [esp + 0xc]
push eax
push 0x457810
push 0x80000002
call sub.advapi32.dll_RegOpenKeyA
test eax, eax
jne 0x457801
mov dword [esp], 4
push esp
lea eax, [esp + 8]
push eax
push 0
push 0
push 0x457840
mov eax, dword [esp + 0x20]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4577ee
cmp byte [esp + 4], 1
sete bl
jmp 0x4577f5
call fcn.004576e0
mov ebx, eax
mov eax, dword [esp + 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
jmp 0x457808
call fcn.004576e0
mov ebx, eax
mov eax, ebx
add esp, 0x10
pop ebx
ret

Function at 0x457c38
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor ecx, ecx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404508
xor eax, eax
push ebp
push 0x457cf9
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
mov eax, 0x457d10
call fcn.0040465c
test eax, eax
jne 0x457c80
lea eax, [ebp - 4]
mov ecx, dword [ebp - 4]
mov edx, 0x457d1c
call fcn.00404364
test bl, bl
je 0x457cbf
lea edx, [ebp - 8]
mov eax, 0x457d2c
call fcn.004578b8
cmp dword [ebp - 8], 0
je 0x457cbf
push 1
push 0
mov eax, dword [ebp - 4]
call fcn.00404518
push eax
mov eax, dword [ebp - 8]
call fcn.00404518
push eax
push 0x457d34
call sub.user32.dll_GetDesktopWindow
push eax
call sub.shell32.dll_ShellExecuteA
jmp 0x457cde
push 1
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404518
push eax
push 0x457d34
call sub.user32.dll_GetDesktopWindow
push eax
call sub.shell32.dll_ShellExecuteA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x457d00
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040407c
ret
Function at 0x457d3c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
xor edx, edx
mov dword [ebp - 0x110], edx
mov dword [ebp - 0x114], edx
mov dword [ebp - 0x10c], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x457df2
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x106]
push eax
push 0x104
call sub.kernel32.dll_GetTempPathA
lea edx, [ebp - 0x10c]
lea eax, [ebp - 0x106]
call fcn.00408bb0
mov eax, dword [ebp - 0x10c]
mov edx, ebx
call fcn.0040c668
mov eax, dword [ebx]
call fcn.00457e00
test al, al
jne 0x457dd4
lea edx, [ebp - 0x114]
mov eax, dword [0x461130]
mov eax, dword [eax]
call fcn.00455cf0
mov eax, dword [ebp - 0x114]
lea edx, [ebp - 0x110]
call fcn.004087d0
mov eax, dword [ebp - 0x110]
mov edx, ebx
call fcn.0040c668
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x457df9
lea eax, [ebp - 0x114]
mov edx, 3
call fcn.0040407c
ret

Function at 0x457e00
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404518
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x457e19
test al, 0x10
jne 0x457e1d
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x458374
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404508
lea esi, [ebp - 0x44]
xor eax, eax
push ebp
push 0x4584fb
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
mov eax, 0x458518
call fcn.0040465c
test eax, eax
jne 0x4583bf
lea eax, [ebp - 4]
mov ecx, dword [ebp - 4]
mov edx, 0x458524
call fcn.00404364
mov eax, esi
mov edx, 0x3c
call fcn.0045937c
mov dword [esi + 8], 0x21
mov dword [esi + 0x14], 0x101
mov dword [esi + 0x20], 0x81
mov dword [esi + 0x28], 0x81
mov dword [esi + 0x30], 0x801
mov dword [esi + 0x38], 0x801
mov eax, 0x21
call fcn.004026ec
mov dword [esi + 4], eax
mov eax, 0x101
call fcn.004026ec
mov dword [esi + 0x10], eax
mov eax, 0x81
call fcn.004026ec
mov dword [esi + 0x1c], eax
mov eax, 0x81
call fcn.004026ec
mov dword [esi + 0x24], eax
mov eax, 0x801
call fcn.004026ec
mov dword [esi + 0x2c], eax
mov eax, 0x801
call fcn.004026ec
mov dword [esi + 0x34], eax
push esi
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.00404318
push eax
mov eax, dword [ebp - 4]
call fcn.00404518
push eax
call sub.wininet.dll_InternetCrackUrlA
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
je 0x4584b5
mov eax, edi
mov edx, dword [esi + 4]
call fcn.00404250
mov eax, dword [ebp - 8]
mov edx, dword [esi + 0x10]
call fcn.00404250
mov eax, dword [ebp + 0x18]
mov edx, dword [esi + 0x2c]
call fcn.00404250
mov eax, dword [ebp + 0x14]
mov edx, dword [esi + 0x1c]
call fcn.00404250
mov eax, dword [ebp + 0x10]
mov edx, dword [esi + 0x24]
call fcn.00404250
mov eax, dword [ebp + 0xc]
mov edx, dword [esi + 0x34]
call fcn.00404250
mov eax, dword [ebp + 8]
mov dx, word [esi + 0x18]
mov word [eax], dx
mov eax, dword [esi + 4]
call fcn.0040270c
mov eax, dword [esi + 0x10]
call fcn.0040270c
mov eax, dword [esi + 0x1c]
call fcn.0040270c
mov eax, dword [esi + 0x24]
call fcn.0040270c
mov eax, dword [esi + 0x2c]
call fcn.0040270c
mov eax, dword [esi + 0x34]
call fcn.0040270c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x458502
lea eax, [ebp - 4]
call fcn.00404058
ret
Function at 0x459158
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
mov esi, eax
xor ebx, ebx
push 0
push 0x80
push 3
push 0
push 3
push 0x40000000
mov eax, esi
call fcn.00404518
push eax
call sub.kernel32.dll_CreateFileA
mov esi, eax
cmp esi, 0xffffffff
je 0x459212
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push esi
call sub.kernel32.dll_GetFileTime
fld qword [ebp + 0x18]
fcomp dword [0x45921c]
fnstsw ax
sahf
je 0x4591bc
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
lea eax, [ebp - 8]
call fcn.00459104
fld qword [ebp + 8]
fcomp dword [0x45921c]
fnstsw ax
sahf
je 0x4591d8
push dword [ebp + 0xc]
push dword [ebp + 8]
lea eax, [ebp - 0x10]
call fcn.00459104
fld qword [ebp + 0x10]
fcomp dword [0x45921c]
fnstsw ax
sahf
je 0x4591f4
push dword [ebp + 0x14]
push dword [ebp + 0x10]
lea eax, [ebp - 0x18]
call fcn.00459104
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push esi
call sub.kernel32.dll_SetFileTime
cmp eax, 1
sbb ebx, ebx
inc ebx
push esi
call sub.kernel32.dll_CloseHandle
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18

Function at 0x45925c
Capabilities:
Get file size

Disassembly:
push ebx
add esp, 0xfffffff4
mov ebx, eax
mov dword [esp], 0xffffffff
mov dword [esp + 4], 0xffffffff
push 0
push 0x80
push 3
push 0
push 3
push 0
mov eax, ebx
call fcn.00404518
push eax
call sub.kernel32.dll_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4592b7
lea eax, [esp + 8]
push eax
push ebx
call sub.kernel32.dll_GetFileSize
mov edx, eax
mov eax, dword [esp + 8]
call fcn.00459220
mov dword [esp], eax
mov dword [esp + 4], edx
push ebx
call sub.kernel32.dll_CloseHandle
mov eax, dword [esp]
mov edx, dword [esp + 4]
add esp, 0xc
pop ebx
ret

Function at 0x4592c4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, eax
mov byte [ebp - 1], 0
cmp dword [ebp + 8], 0
je 0x459347
push ecx
push edx
push edi
call sub.kernel32.dll_FindResourceA
mov ebx, eax
test ebx, ebx
je 0x459347
push ebx
push edi
call sub.kernel32.dll_LoadResource
mov esi, eax
test esi, esi
je 0x459347
push esi
call sub.kernel32.dll_LockResource
mov dword [ebp - 8], eax
push esi
call sub.kernel32.dll_FreeResource
cmp dword [ebp - 8], 0
je 0x459347
push ebx
push edi
call sub.kernel32.dll_SizeofResource
test eax, eax
je 0x459347
xor edx, edx
push ebp
push 0x45933d
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, dword [ebp - 8]
mov ecx, eax
mov eax, dword [ebp + 8]
call fcn.00415f08
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x459347
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4
Function at 0x459f04
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
mov ebx, eax
push esi
push edi
mov esi, ecx
mov eax, esi
test eax, eax
je 0x459f1d
mov eax, dword [esi - 4]
push eax
push esi
mov esi, edx
mov ecx, esi
test ecx, ecx
je 0x459f2a
mov ecx, dword [esi - 4]
add al, cl
inc eax
lea edi, [ebp - 0x100]
mov edx, eax
stosb byte es:[edi], al
mov al, cl
stosb byte es:[edi], al
rep movsb byte es:[edi], byte [esi]
pop esi
pop ecx
rep movsb byte es:[edi], byte [esi]
mov ecx, edx
std
dec edi
mov esi, edi
xor dl, 0xeb
lodsb al, byte [esi]
xor al, dl
stosb byte es:[edi], al
loop 0x459f48
cld
pop edi
pop esi
xor ecx, ecx
mov cl, byte [ebp - 0x100]
inc ecx
lea edx, [ebp - 0x100]
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0x10]
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x459f6c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe7c
push ebx
push esi
push edi
mov dword [ebp - 0x184], ecx
mov esi, edx
mov ebx, eax
lea edx, [ebp - 0x80]
mov ecx, 1
mov eax, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
xor ecx, ecx
mov cl, byte [ebp - 0x80]
lea edx, [ebp - 0x7f]
mov eax, ebx
mov ebx, dword [eax]
call dword [ebx + 0xc]
push esi
push edi
xor eax, eax
lea esi, [ebp - 0x80]
lodsb al, byte [esi]
push esi
push eax
mov ecx, eax
mov edx, eax
mov edi, esi
xor dl, 0xeb
lodsb al, byte [esi]
xor al, dl
stosb byte es:[edi], al
loop 0x459fb3
pop eax
pop esi
lea edi, [ebp - 0x100]
mov cl, byte [esi]
inc ecx
sub eax, ecx
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x180]
stosb byte es:[edi], al
mov ecx, eax
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
mov eax, esi
lea edx, [ebp - 0x100]
call fcn.004042bc
mov eax, dword [ebp - 0x184]
lea edx, [ebp - 0x180]
call fcn.004042bc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x45a544
Capabilities:
Read data from internet
Read file on windows
Receive data

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp byte [eax - 0x1009], 0
je 0x45a595
push 0
mov eax, dword [ebp + 8]
add eax, 0xffffeff8
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x1010]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x1004]
mov eax, dword [eax + 0x130]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x1004]
mov eax, dword [eax + 0x168]
push eax
call sub.kernel32.dll_ReadFile
cmp eax, 1
sbb eax, eax
inc eax
pop ebp
ret
mov eax, dword [ebp + 8]
add eax, 0xffffeff8
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x1010]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x1004]
mov eax, dword [eax + 0x130]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x1004]
mov eax, dword [eax + 0x164]
push eax
call sub.wininet.dll_InternetReadFile
cmp eax, 1
sbb eax, eax
inc eax
pop ebp
ret
Function at 0x45ece4
Capabilities:
Create process on windows
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor ecx, ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x45ee38
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push pe_nt_image_headers32
push 2
push 0
push 3
push 0x40000000
mov eax, dword [0x462c18]
call fcn.00404518
push eax
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x45edab
mov dl, 1
mov eax, dword [0x412398]
call fcn.00403254
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x45ed9b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
mov ecx, 0x45ee44
mov edx, 0x45ee44
mov eax, dword [0x462664]
call fcn.004592c4
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx]
push eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_WriteFile_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45eda2
mov eax, dword [ebp - 0x10]
call fcn.00403284
ret
push 1
push dword [0x462c18]
push 0x45ee54
lea edx, [ebp - 0x1c]
mov eax, dword [0x461130]
mov eax, dword [eax]
call fcn.00455cf0
push dword [ebp - 0x1c]
push 0x45ee54
push dword [ebp - 8]
lea eax, [ebp - 0x18]
mov edx, 5
call fcn.004043d8
mov eax, dword [ebp - 0x18]
call fcn.00404518
push eax
call sub.kernel32.dll_WinExec
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 1
mov eax, dword [ebp - 4]
cmp word [eax + 0x1d2], 0
je 0x45ee18
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x1d4]
call dword [ebx + 0x1d0]
jmp 0x45ee1d
call fcn.00459354
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45ee3f
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.0040407c
ret
Function at 0x41de10
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4875fb
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.0047b91f
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x41de92
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00478fe0
mov eax, dword [eax]
push 0x4a6230
push eax
call fcn.0046b024
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0047bbaa
test bl, bl
je 0x41de92
push 0x4a6230
lea ecx, [esp + 0xc]
call fcn.0047bf3a
push 0x4a9dbc
lea ecx, [esp + 0xc]
call fcn.0047bf3a
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 0x41dece
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0047bbaa
jmp 0x41df99
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 0x41df52
lea edx, [esp + 0x7c]
push 0x4a9db8
push edx
call fcn.0046b024
add esp, 8
test eax, eax
je 0x41df52
lea eax, [esp + 0x7c]
push 0x4a9db4
push eax
call fcn.0046b024
add esp, 8
test eax, eax
je 0x41df52
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 0x41dee2
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.0047bbaa
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 0x41e790
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 0x41e7f2
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 0x41e800
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x48767b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4b0628]
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 0x41e938
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x41e866
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0047bbaa
xor eax, eax
jmp 0x41e9af
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0047bce7
push esi
lea ecx, [esp + 0xc]
call fcn.0047bf76
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 0x41e98d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.0041e790
test eax, eax
jne 0x41e98d
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.0041e790
test eax, eax
jne 0x41e98d
lea eax, [esp + 0x14]
push 0x4a9dd0
push eax
call fcn.0046c130
mov esi, eax
add esp, 8
test esi, esi
jne 0x41e96c
lea ecx, [esp + 0x14]
push 0x4a9dcc
push ecx
call fcn.0046c0b0
mov esi, eax
add esp, 8
test esi, esi
jne 0x41e96c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x41e96f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0047bc97
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x41e87e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0047bbaa
xor eax, eax
jmp 0x41e9af
mov byte [esi], 0
push 0x4a9dc8
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.0047bbaa
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