joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401990
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff80
mov byte [0x4046f8], 0
mov dword [0x4098c4], 0x4c
mov eax, dword [ebp + 8]
mov dword [0x4098c8], eax
mov eax, dword [0x404138]
mov dword [0x4098cc], eax
mov dword [0x4098dc], 0
mov dword [0x4098e0], 0x4046f8
mov dword [0x4098e4], 0x1000
mov dword [0x4098d0], 0x4040b6
mov dword [0x4098e8], 0x4056f8
mov dword [0x4098ec], 0x100
mov dword [0x4098f4], 0x40408e
mov dword [0x4098f8], 0x281000
push 0x4098c4
call sub.comdlg32.dll_GetOpenFileNameA
or eax, eax
je 0x401b2f
push 0
push 0
push 3
push 0
push 0
push 0x80000000
push 0x4046f8
call sub.kernel32.dll_CreateFileA
cmp eax, 0xffffffff
je 0x401b16
mov dword [0x404150], eax
push 0
push 0x40408a
push 0x4000
push 0x4057f8
push dword [0x404150]
call sub.kernel32.dll_ReadFile
cmp eax, 0xffffffff
je 0x401afd
cmp dword [0x40408a], 0
je 0x401afd
push dword [0x404150]
call sub.kernel32.dll_CloseHandle
push dword [ebp + 8]
call fcn.00401905
or eax, eax
jne 0x401ae4
push 0x4046f8
push 0
push 0x401
push dword [0x404144]
call sub.user32.dll_SendMessageA
xor esi, esi
jmp 0x401ac4
mov ebx, dword [esi*4 + 0x404154]
xor edx, edx
mov dl, byte [esi + 0x407650]
push 0
push edx
push 0xc8
push ebx
call sub.user32.dll_SendMessageA
inc esi
cmp esi, 0x168
jb 0x401aa6
push 0
push 0x3ea
push dword [0x404148]
call sub.user32.dll_EnableMenuItem
leave
ret 4
push 0x4040fd
push 0
push 0x401
push dword [0x404144]
call sub.user32.dll_SendMessageA
jmp 0x401b46
push 0x40410a
push 0
push 0x401
push dword [0x404144]
call sub.user32.dll_SendMessageA
jmp 0x401b46
push 0x4040e8
push 0
push 0x401
push dword [0x404144]
call sub.user32.dll_SendMessageA
jmp 0x401b46
push 0x4040d2
push 0
push 0x401
push dword [0x404144]
call sub.user32.dll_SendMessageA
mov dword [0x40408a], 0
push 2
push 0x3ea
push dword [0x404148]
call sub.user32.dll_EnableMenuItem
leave
ret 4

Function at 0x401bc8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
call fcn.00401b66
mov byte [0x4046f8], 0
mov dword [0x4098c4], 0x4c
mov eax, dword [ebp + 8]
mov dword [0x4098c8], eax
mov eax, dword [0x404138]
mov dword [0x4098cc], eax
mov dword [0x4098dc], 0
mov dword [0x4098e0], 0x4046f8
mov dword [0x4098e4], 0x1000
mov dword [0x4098d0], 0x4040b6
mov dword [0x4098e8], 0x4056f8
mov dword [0x4098ec], 0x100
mov dword [0x4098f4], 0x4040a2
mov dword [0x4098f8], 2
push 0x4098c4
call sub.comdlg32.dll_GetSaveFileNameA
or eax, eax
je 0x401c91
push 0
push 0
push 4
push 0
push 0
push 0x40000000
push 0x4046f8
call sub.kernel32.dll_CreateFileA
cmp eax, 0xffffffff
je 0x401c91
mov ebx, eax
push 0
lea eax, [ebp - 4]
push eax
push dword [0x40408a]
push 0x4057f8
push ebx
call sub.kernel32.dll_WriteFile
push ebx
call sub.kernel32.dll_CloseHandle
leave
ret 4
Function at 0x401e3f
Capabilities:
Hide graphical window

Disassembly:
push 0x30
push 0x409894
call sub.kernel32.dll_RtlZeroMemory
mov dword [0x409894], 0x30
push 0xc9
push dword [0x404138]
call sub.user32.dll_LoadIconA
mov dword [0x4098ac], eax
push 0x7f00
push 0
call sub.user32.dll_LoadCursorA
mov dword [0x4098b0], eax
mov dword [0x409898], 0
mov dword [0x40989c], 0x401c95
mov dword [0x4098a4], 0
mov dword [0x4098a0], 0
push dword [0x404138]
pop dword [0x4098a8]
mov dword [0x4098b4], 0x10
mov dword [0x4098b8], 0
mov dword [0x4098bc], 0x404052
push 0x409894
call sub.user32.dll_RegisterClassExA
push 0x65
push dword [0x404138]
call sub.user32.dll_LoadMenuA
mov dword [0x404148], eax
push 1
push eax
call sub.user32.dll_GetSubMenu
mov dword [0x40414c], eax
push 0
push dword [0x404138]
push dword [0x404148]
push 0
push 0x2d0
push 0x2c6
push 0xa
push 0x64
push 0xce0000
push section..data
push str.Edit
push 0x200
call sub.user32.dll_CreateWindowExA
mov dword [0x404140], eax
push 0
push dword [0x40413c]
push 0x30
push dword [0x404140]
call sub.user32.dll_SendMessageA
push 5
push dword [0x404140]
call sub.user32.dll_ShowWindow
push dword [0x404140]
call sub.user32.dll_UpdateWindow
push 0
push 0
push 0
push 0x409878
call sub.user32.dll_GetMessageA
or eax, eax
je 0x401f89
push 0x409878
call sub.user32.dll_TranslateMessage
push 0x409878
call sub.user32.dll_DispatchMessageA
jmp 0x401f5f
ret
Function at 0x100027a0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x1000fbf0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov al, byte [esp + 0x3c]
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov byte [esp + 0x10], al
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov ecx, dword [esp + 0x44]
push ebx
mov dword [esp + 0x40], ebx
mov byte [esp + 0x28], al
mov edx, dword [ecx]
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], edx
call fcn.10002af0
mov eax, dword [0x100101e4]
lea ecx, [esp + 0x10]
push eax
push ebx
push ecx
lea ecx, [esp + 0x30]
call fcn.100028f0
lea edx, [esp + 0x20]
lea eax, [esp + 8]
push edx
push eax
mov ecx, esi
mov byte [esp + 0x44], 1
call fcn.10002f90
mov esi, dword [eax]
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x28]
cmp eax, ebx
mov dword [esp + 0xc], ecx
je 0x10002847
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x1000283e
cmp al, 0xff
je 0x1000283e
dec al
mov byte [ecx], al
jmp 0x10002847
push ecx
call fcn.1000526a
add esp, 4
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], ebx
cmp eax, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
je 0x10002878
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x1000286f
cmp al, 0xff
je 0x1000286f
dec al
mov byte [ecx], al
jmp 0x10002878
push ecx
call fcn.1000526a
add esp, 4
mov ecx, dword [esp + 0x34]
lea eax, [esi + 0x10]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret 4

Function at 0x10003f00
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x10003f32
lea eax, [esp + 4]
push eax
push 0x101
call sub.WSOCK32.dll_WSAStartup
test eax, eax
je 0x10003f2c
or eax, 0xffffffff
pop esi
add esp, 0x190
ret
mov dword [esi], 1
xor eax, eax
pop esi
add esp, 0x190
ret
Function at 0x100044b0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Resolve dns
Set socket configuration

Disassembly:
sub esp, 0xe8
push ebx
push ebp
push esi
push edi
push 6
mov ebp, ecx
push 1
push 2
mov dword [esp + 0x30], ebp
call sub.WSOCK32.dll_socket
mov ebx, eax
test ebx, ebx
jge 0x100044f9
call sub.WSOCK32.dll_WSAGetLastError
push eax
lea eax, [esp + 0x34]
push str.socket_failed__errno:_d
push eax
call fcn.10005b88
add esp, 0xc
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xe8
ret 0x10
mov esi, dword [esp + 0xfc]
xor ecx, ecx
mov dword [esp + 0x10], ecx
push esi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
call sub.WSOCK32.dll_inet_addr
cmp eax, 0xffffffff
jne 0x10004572
push esi
call sub.WSOCK32.dll_gethostbyname
test eax, eax
jne 0x10004555
call sub.WSOCK32.dll_WSAGetLastError
push eax
lea edx, [esp + 0x34]
push str.gethostbyname_and_inet_addr_failed__errno:_d
push edx
call fcn.10005b88
add esp, 0xc
push ebx
call sub.WSOCK32.dll_closesocket
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0xe8
ret 0x10
movsx ecx, word [eax + 0xa]
mov eax, dword [eax + 0xc]
mov edx, ecx
lea edi, [esp + 0x14]
mov esi, dword [eax]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x10004576
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x100]
mov ecx, ebp
push eax
mov word [esp + 0x14], 2
call fcn.10004920
lea ecx, [esp + 0x2c]
mov word [esp + 0x12], ax
push ecx
push 0x8004667e
push ebx
mov dword [esp + 0x38], 1
call sub.WSOCK32.dll_ioctlsocket
test eax, eax
jge 0x100045c3
push ebx
call sub.WSOCK32.dll_closesocket
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0xe8
ret 0x10
lea edx, [esp + 0x20]
push edx
call fcn.100061e2
add esp, 4
lea eax, [esp + 0x10]
xor ebp, ebp
push 0x10
push eax
push ebx
call sub.WSOCK32.dll_connect
mov esi, eax
test esi, esi
je 0x1000465b
lea ecx, [esp + 0x28]
push ecx
call fcn.100061e2
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x108]
sub edx, ecx
add esp, 4
cmp edx, eax
jg 0x1000469e
call fcn.10004930
call sub.WSOCK32.dll_WSAGetLastError
cmp esi, 0xffffffff
mov edi, eax
jne 0x10004638
mov eax, ebp
inc ebp
cmp eax, 0xa
jle 0x1000462e
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
xor ebp, ebp
cmp edi, 0x2748
je 0x1000465b
jmp 0x10004648
cmp edi, 0x2733
je 0x10004648
cmp edi, 0x2735
jne 0x1000469e
lea ecx, [esp + 0x10]
push 0x10
push ecx
push ebx
call sub.WSOCK32.dll_connect
mov esi, eax
test esi, esi
jne 0x100045e5
mov edx, dword [esp + 0x104]
mov ecx, dword [esp + 0x24]
push edx
push 0x1001240c
push ebx
call fcn.10003f40
test eax, eax
jge 0x100046b4
call sub.WSOCK32.dll_WSAGetLastError
mov ecx, dword [esp + 0xfc]
push eax
mov eax, dword [esp + 0x104]
lea edx, [esp + 0x34]
push eax
push ecx
push str.status:
push edx
call fcn.10005b88
add esp, 0x14
push ebx
call sub.WSOCK32.dll_closesocket
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0xe8
ret 0x10
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0xe8
ret 0x10
Function at 0x100046d0
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
lea eax, [esp + 0x14]
push edi
mov dword [esp + 0x1c], ecx
push eax
xor esi, esi
call fcn.100061e2
mov eax, dword [esp + 0x1c]
mov ebp, dword [esp + 0x30]
add esp, 4
mov ecx, eax
cmp ebp, esi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], esi
jle 0x100047ab
mov ebx, dword [esp + 0x30]
mov edi, dword [esp + 0x24]
jmp 0x10004716
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, ecx
sub edx, eax
cmp edx, ebx
jg 0x100047ab
sub eax, ecx
mov ecx, dword [esp + 0x1c]
add eax, ebx
push eax
push 0x10012440
push edi
call fcn.10003f40
test eax, eax
jl 0x100047ab
mov ecx, dword [esp + 0x28]
mov eax, ebp
sub eax, esi
push 0
lea edx, [esi + ecx]
push eax
push edx
push edi
call sub.WSOCK32.dll_send
test eax, eax
jg 0x10004794
cmp eax, 0xffffffff
jne 0x100047ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2733
jne 0x100047ab
lea eax, [esp + 0x14]
push eax
call fcn.100061e2
mov eax, dword [esp + 0x14]
add esp, 4
mov ecx, eax
inc eax
cmp ecx, 0x64
mov dword [esp + 0x10], eax
jle 0x100047a3
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [esp + 0x10], 0
jmp 0x100047a3
lea edx, [esp + 0x14]
add esi, eax
push edx
call fcn.100061e2
add esp, 4
cmp esi, ebp
jl 0x1000470e
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x10
Function at 0x100047c0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
lea eax, [esp + 0x18]
push edi
mov dword [esp + 0x20], ecx
push eax
xor edi, edi
call fcn.100061e2
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x34]
add esp, 4
mov ecx, eax
cmp edx, edi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], edi
jle 0x100048b8
mov ebx, dword [esp + 0x34]
mov ebp, dword [esp + 0x28]
jmp 0x1000480a
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov edx, ecx
sub edx, eax
cmp edx, ebx
jg 0x100048ce
sub eax, ecx
mov ecx, dword [esp + 0x20]
add eax, ebx
push eax
push 0x10012444
push ebp
call fcn.10003f40
test eax, eax
jl 0x100048e4
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
sub eax, edi
push 0
lea edx, [edi + ecx]
push eax
push edx
push ebp
call sub.WSOCK32.dll_recv
mov esi, eax
test esi, esi
jg 0x1000489f
call sub.WSOCK32.dll_WSAGetLastError
test ebx, ebx
mov dword [esp + 0x10], eax
je 0x100048b8
cmp esi, 0xffffffff
jne 0x100048fb
cmp eax, 0x2733
jne 0x100048fb
lea eax, [esp + 0x18]
push eax
call fcn.100061e2
mov eax, dword [esp + 0x18]
add esp, 4
mov ecx, eax
inc eax
cmp ecx, 0x64
mov dword [esp + 0x14], eax
jle 0x100048ae
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [esp + 0x14], 0
jmp 0x100048ae
lea edx, [esp + 0x18]
add edi, esi
push edx
call fcn.100061e2
add esp, 4
cmp edi, dword [esp + 0x30]
jl 0x10004802
mov edx, dword [esp + 0x10]
push edx
call sub.WSOCK32.dll_WSASetLastError
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x10
mov eax, dword [esp + 0x10]
push eax
call sub.WSOCK32.dll_WSASetLastError
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x10
call sub.WSOCK32.dll_WSAGetLastError
push eax
call sub.WSOCK32.dll_WSASetLastError
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x10
mov ecx, dword [esp + 0x10]
push ecx
call sub.WSOCK32.dll_WSASetLastError
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 0x10

Function at 0x10004a00
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 8]
dec eax
jne 0x10004a1c
push 0
push 0
push 0
push 0x10004d10
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
ret 0xc
Function at 0x10004d30
Capabilities:
Modify service
Query service status
Start service

Disassembly:
sub esp, 0x1c
push ebp
push esi
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebp, eax
test ebp, ebp
je 0x10004e04
mov eax, dword [esp + 0x2c]
push 0xf01ff
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x10004df1
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 2
push 0xffffffffffffffff
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
jne 0x10004db9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
jne 0x10004db9
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebp
call edi
push esi
call edi
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x1c
ret
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea ecx, [esp + 0xc]
push ebx
push ecx
push esi
call edi
test eax, eax
je 0x10004de9
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esp + 0x14], 2
jne 0x10004de9
push 0x64
call ebx
lea edx, [esp + 0x10]
push edx
push esi
call edi
test eax, eax
jne 0x10004dd2
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x1c
ret
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x1c
ret

Function at 0x10004e10
Capabilities:
Modify service
Query service status
Stop service

Disassembly:
sub esp, 0x20
push ebx
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
test ebx, ebx
mov dword [esp + 4], ebx
je 0x10004ece
mov eax, dword [esp + 0x28]
push esi
push 0xf01ff
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x10004ebc
push edi
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 4
push 0xffffffffffffffff
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
mov edi, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
lea ecx, [esp + 0x10]
push ecx
push esi
call edi
test eax, eax
je 0x10004eb4
cmp dword [esp + 0x14], 1
je 0x10004eb4
lea edx, [esp + 0x10]
push edx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x10004eb4
cmp dword [esp + 0x14], 3
jne 0x10004eb4
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push 0xa
call ebx
lea eax, [esp + 0x10]
push eax
push esi
call edi
cmp dword [esp + 0x14], 3
je 0x10004e9d
mov ebx, dword [esp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
mov eax, 1
pop ebx
add esp, 0x20
ret
xor eax, eax
pop ebx
add esp, 0x20
ret
Function at 0x10004ee0
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1000fc50
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [ebp - 0x10], esp
xor esi, esi
push ebx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], esi
call fcn.10004e10
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x128]
push ebx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x128]
push str.SYSTEMCurrentControlSetServices_sParameters
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea ecx, [ebp - 0x14]
lea edx, [ebp - 0x128]
push ecx
push 0xf003f
push esi
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, esi
je 0x10004f72
lea eax, [ebp - 0x20]
push 0x10010e38
push eax
mov dword [ebp - 0x20], 0x10015760
call fcn.10006414
mov edx, dword [ebp + 0xc]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
mov ecx, dword [ebp - 0x14]
push edx
push 2
push esi
push str.ServiceDll
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
je 0x10004fce
lea edx, [ebp - 0x18]
push 0x10010e38
push edx
mov dword [ebp - 0x18], str.RegSetValueEx_ServiceDll_
call fcn.10006414
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x10004fc8
cmp byte [eax], 0
je 0x10004fc8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 0x10004fdb
ret
push ebx
call fcn.10004d30
add esp, 4
mov esi, eax
jmp 0x10004fde
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10005120
Capabilities:
Create thread

Disassembly:
sub esp, 0x100
lea ecx, [esp]
push esi
mov esi, dword [esp + 0x10c]
push 0x100
mov eax, dword [esi]
push eax
push ecx
call fcn.10006690
mov edx, dword [esi]
push 0x100
lea eax, [esp + 0x14]
push edx
push eax
call fcn.1000644e
add esp, 0x18
lea ecx, [esp + 4]
push 0x10005080
push ecx
call dword [sym.imp.ADVAPI32.dll_RegisterServiceCtrlHandlerA]
test eax, eax
mov dword [0x1001575c], eax
je 0x100051cd
call dword [sym.imp.KERNEL32.dll_FreeConsole]
push 1
push 0
push 2
call fcn.10005020
push 0
push 0
push 4
call fcn.10005020
add esp, 0x18
push 0
push 0
push 0
push 0x10004d10
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x64
call esi
mov eax, dword [0x10015758]
cmp eax, 3
je 0x100051cd
cmp eax, 1
jne 0x100051ba
pop esi
add esp, 0x100
ret 8
Function at 0x414230
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4891ab
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.0047d60c
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x4142b2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0047accd
mov eax, dword [eax]
push 0x639224
push eax
call fcn.0046c394
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0047d897
test bl, bl
je 0x4142b2
push 0x639224
lea ecx, [esp + 0xc]
call fcn.0047dc27
push 0x63cd94
lea ecx, [esp + 0xc]
call fcn.0047dc27
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 0x4142ee
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0047d897
jmp 0x4143b9
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 0x414372
lea edx, [esp + 0x7c]
push 0x63cd90
push edx
call fcn.0046c394
add esp, 8
test eax, eax
je 0x414372
lea eax, [esp + 0x7c]
push 0x63cd8c
push eax
call fcn.0046c394
add esp, 8
test eax, eax
je 0x414372
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 0x414302
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.0047d897
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 0x414bb0
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 0x414c12
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 0x414c20
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x48922b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x6439fc]
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 0x414d58
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x414c86
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0047d897
xor eax, eax
jmp 0x414dcf
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0047d9d4
push esi
lea ecx, [esp + 0xc]
call fcn.0047dc63
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x63cdcc
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x414dad
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push 0x80000000
call fcn.00414bb0
test eax, eax
jne 0x414dad
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 0x80000000
mov ecx, edi
call fcn.00414bb0
test eax, eax
jne 0x414dad
lea eax, [esp + 0x14]
push str.__1_
push eax
call fcn.0046d3d0
mov esi, eax
add esp, 8
test esi, esi
jne 0x414d8c
lea ecx, [esp + 0x14]
push 0x63cda4
push ecx
call fcn.0046d350
mov esi, eax
add esp, 8
test esi, esi
jne 0x414d8c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x414d8f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0047d984
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x414c9e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0047d897
xor eax, eax
jmp 0x414dcf
mov byte [esi], 0
push 0x63cda0
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.0047d897
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