joyce8/EMBER2024-capa huggingface dataset:
Function at 0x472868
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x4728f1
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4e2c3c
push 0x101
call sub.wsock32.dll_WSAStartup
mov ebx, eax
test ebx, ebx
je 0x4728db
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.0040cdc0
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0xb
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0xc], 0
mov eax, 0x472908
mov dword [ebp - 8], eax
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x18]
push eax
push 2
mov ecx, dword [0x4e1da8]
mov dl, 1
mov eax, dword [0x471bcc]
call fcn.0040d6e4
call fcn.00404248
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4728f8
lea eax, [ebp - 0x1c]
call fcn.004048cc
ret

Function at 0x472fbc
Capabilities:
Connect socket

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, ebx
call fcn.00472ee0
mov cl, 1
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.00403bf4
push 0x10
lea eax, [ebx + 0x18]
push eax
mov eax, dword [ebx + 4]
push eax
call sub.wsock32.dll_connect
mov edx, 0x473020
call fcn.004727b0
mov byte [ebx + 0x29], 0
test byte [ebx + 0x28], 0x10
jne 0x473012
cmp dword [ebx + 4], 0xffffffff
setne al
mov byte [ebx + 8], al
mov cl, 2
mov edx, ebx
mov eax, ebx
mov si, 0xffff
call fcn.00403bf4
pop esi
pop ebx
ret

Function at 0x4731a0
Capabilities:
Resolve dns

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, edx
mov eax, ebx
call fcn.00404d8c
push eax
call sub.wsock32.dll_gethostbyname
mov ebx, eax
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 4
call fcn.004031c4
test ebx, ebx
je 0x4731eb
mov eax, ebx
mov edx, dword [eax + 0xc]
mov edx, dword [edx]
mov cl, byte [edx]
mov byte [esp + 4], cl
mov cl, byte [edx + 1]
mov byte [esp + 5], cl
mov cl, byte [edx + 2]
mov byte [esp + 6], cl
mov al, byte [edx + 3]
mov byte [esp + 7], al
mov eax, dword [esp + 4]
mov dword [esp], eax
mov eax, dword [esp]
pop ecx
pop edx
pop ebx
ret
Function at 0x4732c8
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x4732f9
mov ecx, dword [0x4e1f64]
mov dl, 1
mov eax, dword [0x471bcc]
call fcn.0040d6a8
call fcn.00404248
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 4], ebx
inc ebx
jne 0x473326
mov ecx, dword [0x4e1af8]
mov dl, 1
mov eax, dword [0x471bcc]
call fcn.0040d6a8
call fcn.00404248
xor eax, eax
push ebp
push 0x4733a7
push dword fs:[eax]
mov dword fs:[eax], esp
xor ecx, ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xffff
call fcn.00403bf4
cmp byte [ebp + 8], 0
je 0x473381
mov eax, dword [ebp + 0x14]
push eax
mov ax, word [ebp + 0x10]
push eax
push 0
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.00473230
mov eax, dword [ebp - 4]
lea esi, [ebp - 0x18]
lea edi, [eax + 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00472f3c
jmp 0x47339d
mov eax, dword [ebp + 0x14]
push eax
mov ax, word [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
push 0
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.00472a9c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4733c4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4735a8
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffff0
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00472d64
xor eax, eax
push ebp
push 0x473719
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 0xc], 0
je 0x473703
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
je 0x4735f3
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x4735fd
call fcn.004042f4
jmp 0x473720
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.004206d4
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x1010]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov ecx, 0x1000
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov ebx, eax
test ebx, ebx
jle 0x4736f8
push 0
push ebx
lea eax, [ebp - 0x1010]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_send
mov ecx, eax
cmp ecx, 0xffffffff
jne 0x4736ab
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x2733
je 0x473698
lea eax, [ebp - 0x10]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00403bf4
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
push ebp
call fcn.00473560
pop ecx
mov eax, dword [ebp - 4]
mov dl, byte [0x47372c]
cmp dl, byte [eax + 0x28]
je 0x4736ff
call fcn.0040d5cc
jmp 0x4736ff
mov eax, dword [ebp - 0xc]
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.004206f4
jmp 0x4736ff
cmp ecx, ebx
jge 0x4736c7
mov eax, dword [ebp - 0xc]
add eax, ecx
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.004206f4
jmp 0x4735fd
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov edx, dword [eax]
call dword [edx]
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.004206d4
cmp edx, dword [esp + 4]
jne 0x4736e7
cmp eax, dword [esp]
pop edx
pop eax
jne 0x4735fd
push ebp
call fcn.00473560
pop ecx
jmp 0x4736ff
push ebp
call fcn.00473560
pop ecx
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x473720
mov eax, dword [ebp - 4]
call fcn.00472d70
ret
mov al, byte [ebp - 5]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x473730
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov esi, ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x473852
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00472d64
xor eax, eax
push ebp
push 0x473835
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x473780
call fcn.004042f4
jmp 0x47383c
push 0
push esi
push ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_send
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x47381f
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x47381f
lea eax, [ebp - 0xc]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00403bf4
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0xc], 0
je 0x47381f
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0040cdc0
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
mov eax, 0x47386c
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x4e1da8]
mov dl, 1
mov eax, dword [0x471bcc]
call fcn.0040d6e4
call fcn.00404248
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47383c
mov eax, dword [ebp - 4]
call fcn.00472d70
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x473859
lea eax, [ebp - 0x28]
call fcn.004048cc
ret
Function at 0x4738b8
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov ebx, ecx
mov esi, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x473a02
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00472d64
xor eax, eax
push ebp
push 0x4739e5
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
cmp ebx, 0xffffffff
jne 0x47391d
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x47391d
lea eax, [ebp - 8]
push eax
push 0x4004667f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_ioctlsocket
jmp 0x4739cf
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x473930
call fcn.004042f4
jmp 0x4739ec
push 0
push ebx
push esi
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.wsock32.dll_recv
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x4739cf
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x4739cf
lea eax, [ebp - 0xc]
push eax
mov cl, 2
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00403bf4
mov eax, dword [ebp - 4]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 8]
cmp dword [ebp - 0xc], 0
je 0x4739cf
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0040cdc0
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
mov eax, 0x473a1c
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x4e1da8]
mov dl, 1
mov eax, dword [0x471bcc]
call fcn.0040d6e4
call fcn.00404248
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4739ec
mov eax, dword [ebp - 4]
call fcn.00472d70
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x473a09
lea eax, [ebp - 0x28]
call fcn.004048cc
ret

Function at 0x49164c
Capabilities:
Check os version

Disassembly:
add esp, 0xffffff6c
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
cmp dword [esp + 0x10], 2
jne 0x491671
cmp dword [esp + 4], 5
jb 0x491671
mov al, 1
jmp 0x491673
xor eax, eax
add esp, 0x94
ret
Function at 0x4b06e4
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x4b06ec
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x4b08de
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebx + 8]
lea ecx, [ebp - 0xc]
mov edx, 0x4b08f4
mov eax, esi
call fcn.004ae570
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0xc]
call fcn.00404920
lea ecx, [ebp - 0x10]
mov edx, 0x4b0908
mov eax, esi
call fcn.004ae570
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0x28]
call fcn.00404920
lea ecx, [ebp - 0x14]
mov edx, 0x4b0920
mov eax, esi
call fcn.004ae570
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x10]
call fcn.00404920
lea ecx, [ebp - 0x18]
mov edx, 0x4b093c
mov eax, esi
call fcn.004ae570
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x14]
call fcn.00404920
lea ecx, [ebp - 0x1c]
mov edx, 0x4b0958
mov eax, esi
call fcn.004ae570
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + 0x24]
call fcn.00404920
lea ecx, [ebp - 0x24]
mov edx, 0x4b0970
mov eax, esi
call fcn.004ae570
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.00409200
mov eax, dword [ebp - 0x20]
or edx, 0xffffffff
call fcn.00409748
mov edi, eax
mov dword [ebx + 0x18], edi
test edi, edi
setge al
mov byte [ebx + 0x4c], al
lea ecx, [ebp - 0x28]
mov edx, 0x4b0988
mov eax, esi
call fcn.004ae570
mov eax, dword [ebp - 0x28]
call fcn.004a7234
fstp qword [ebx + 0x30]
wait
lea ecx, [ebp - 0x2c]
mov edx, 0x4b0998
mov eax, esi
call fcn.004ae570
mov eax, dword [ebp - 0x2c]
call fcn.004a7234
fstp qword [ebx + 0x40]
wait
lea ecx, [ebp - 0x30]
mov edx, 0x4b09b0
mov eax, esi
call fcn.004ae570
mov eax, dword [ebp - 0x30]
or edx, 0xffffffff
call fcn.00409748
inc eax
je 0x4b0881
lea ecx, [ebp - 0x34]
mov edx, 0x4b09b0
mov eax, esi
call fcn.004ae570
mov eax, dword [ebp - 0x34]
call fcn.0040970c
mov edi, eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov dword [ebp - 8], eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov ecx, edx
mov eax, ecx
push ecx
mov ecx, 0x3c
cdq
idiv ecx
pop ecx
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, 0x3c
cdq
idiv ecx
mov edi, edx
push 0
mov ecx, edi
mov dx, word [ebp - 4]
mov ax, word [ebp - 8]
call fcn.0040b390
fstp qword [ebp - 0x3c]
wait
call fcn.0040b754
fadd qword [ebp - 0x3c]
fstp qword [ebx + 0x38]
wait
jmp 0x4b089c
lea ecx, [ebp - 0x40]
mov edx, 0x4b09b0
mov eax, esi
call fcn.004ae570
mov eax, dword [ebp - 0x40]
call fcn.004a7234
fstp qword [ebx + 0x38]
wait
lea ecx, [ebp - 0x44]
mov edx, 0x4b09c0
mov eax, esi
call fcn.004ae570
mov edx, dword [ebp - 0x44]
lea eax, [ebx + 0x48]
call fcn.00404920
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b08e5
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.004048f0
lea eax, [ebp - 0x34]
mov edx, 0xb
call fcn.004048f0
ret
Function at 0x4b7638
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
push ebp
push 0x4b7692
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.004b7628
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.004a5ea0
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.004a5aa0
mov edx, dword [esi + 8]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b7699
lea eax, [ebp - 4]
call fcn.004048cc
ret

Function at 0x4d4e4c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, eax
push 0x104
lea eax, [ebp - 0x104]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov edx, ebx
lea eax, [ebp - 0x104]
call fcn.004d4e14
mov eax, dword [ebx]
call fcn.00404b8c
mov edx, dword [ebx]
cmp byte [edx + eax - 1], 0x5c
je 0x4d4e92
mov eax, ebx
mov edx, 0x4d4ea0
call fcn.00404b94
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4d4ea4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, eax
push 0x104
lea eax, [ebp - 0x104]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
mov edx, ebx
lea eax, [ebp - 0x104]
call fcn.004d4e14
mov eax, dword [ebx]
call fcn.00404b8c
mov edx, dword [ebx]
cmp byte [edx + eax - 1], 0x5c
je 0x4d4eea
mov eax, ebx
mov edx, 0x4d4ef8
call fcn.00404b94
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4d6de4
Capabilities:
Check os version

Disassembly:
add esp, 0xffffff6c
mov eax, esp
mov edx, 0x94
call fcn.00407c54
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
cmp dword [esp + 4], 5
jb 0x4d6e18
cmp dword [esp + 8], 1
jb 0x4d6e18
cmp dword [esp + 0x10], 2
je 0x4d6e1c
xor eax, eax
jmp 0x4d6e1e
mov al, 1
add esp, 0x94
ret
Function at 0x4dc1e8
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.00404d7c
xor eax, eax
push ebp
push 0x4dc2f6
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x14], eax
push 0xf003f
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
setne byte [ebp - 5]
cmp byte [ebp - 5], 0
je 0x4dc2e0
xor eax, eax
push ebp
push 0x4dc2d9
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xf01ff
mov eax, dword [ebp - 4]
call fcn.00404d8c
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
setne byte [ebp - 5]
cmp byte [ebp - 5], 0
je 0x4dc2c2
xor eax, eax
push ebp
push 0x4dc2bb
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_QueryServiceStatus
cmp dword [ebp - 0x2c], 1
jne 0x4dc2a0
lea eax, [ebp - 0x14]
push eax
push 0
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_StartServiceA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 5], al
jmp 0x4dc2a4
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4dc2c2
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4dc2e0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_CloseServiceHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4dc2fd
lea eax, [ebp - 4]
call fcn.004048cc
ret
Function at 0x4ddd30
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov ecx, 5
push 0
push 0
dec ecx
jne 0x4ddd38
push ebx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404d7c
xor eax, eax
push ebp
push 0x4dde4a
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x14]
xor eax, eax
call fcn.00402b58
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.00409d7c
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 8]
mov ecx, 0x4dde60
call fcn.00404bd8
call fcn.0040b754
add esp, 0xfffffff8
fstp qword [esp]
wait
lea edx, [ebp - 0x18]
mov eax, 0x4dde70
call fcn.0040c424
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 0xc]
mov ecx, 0x4dde84
call fcn.00404bd8
mov eax, dword [ebp - 8]
call fcn.00409bcc
test al, al
jne 0x4dddc5
push 0
mov eax, dword [ebp - 8]
call fcn.00404d8c
push eax
call sub.kernel32.dll_CreateDirectoryA
lea eax, [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.00404bd8
mov eax, dword [ebp - 0x1c]
call fcn.00409bbc
test al, al
jne 0x4dde14
lea eax, [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.00404bd8
mov edx, dword [ebp - 0x20]
mov eax, ebx
call fcn.004ddf28
lea eax, [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.00404bd8
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 4]
mov eax, ebx
call fcn.004dde8c
jmp 0x4dde2f
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.00404bd8
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 4]
mov eax, ebx
call fcn.004dde8c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4dde51
lea eax, [ebp - 0x28]
mov edx, 0xa
call fcn.004048f0
ret
Function at 0x402039
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x460
mov eax, 0x439596
call fcn.00422e53
mov esi, ecx
mov edi, dword [ebp + 8]
cmp dword [edi + 0x14], 8
jb 0x402057
mov eax, dword [edi]
jmp 0x402059
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40217b
test al, 0x10
jne 0x40217b
xor ebx, ebx
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x46c], ebx
jb 0x402081
mov edi, dword [edi]
lea eax, [ebp - 0x46c]
push eax
lea eax, [ebp - 0x224]
push eax
push 0x104
push edi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
push 7
xor eax, eax
mov dword [ebp - 0x244], ebx
pop edi
mov dword [ebp - 0x240], edi
mov word [ebp - 0x254], ax
cmp word [ebp - 0x224], ax
je 0x4020c9
lea eax, [ebp - 0x224]
push eax
call fcn.0041e578
pop ecx
push eax
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x254]
call fcn.0040c37a
mov dword [ebp - 4], ebx
xor ecx, ecx
mov eax, dword [ebp - 0x46c]
mov word [eax], cx
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x464]
call fcn.00402686
xor eax, eax
mov dword [ebp - 0x228], edi
mov dword [ebp - 0x22c], ebx
mov word [ebp - 0x23c], ax
lea eax, [ebp - 0x23c]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x254]
mov ecx, esi
push eax
call fcn.00402299
test al, al
jne 0x402136
mov byte [ebp - 0x465], bl
jmp 0x40214c
push ebx
push ebx
lea eax, [ebp - 0x23c]
mov ecx, esi
push eax
call fcn.00401a4a
mov byte [ebp - 0x465], al
push ebx
push 1
lea ecx, [ebp - 0x23c]
call fcn.0040c6b0
lea ecx, [ebp - 0x464]
call fcn.004026a8
push ebx
push 1
lea ecx, [ebp - 0x254]
call fcn.0040c6b0
mov al, byte [ebp - 0x465]
jmp 0x4021b2
xor ebx, ebx
add esi, 0xc
push ebx
push 0x442998
mov ecx, esi
call fcn.0040c37a
push str.File_not_found:
call fcn.0041e578
pop ecx
push eax
push str.File_not_found:
mov ecx, esi
call fcn.004054e4
push 0xffffffffffffffff
push ebx
push edi
mov ecx, esi
call fcn.0040543e
xor al, al
call fcn.00422e02
ret 4
Function at 0x40bbba
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x424
mov eax, 0x43a2b6
call fcn.00422ebf
mov eax, dword [ebp + 0xc]
xor esi, esi
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x41c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x420], eax
mov dword [ebp - 0x430], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], esi
mov dword [ebp - 0x418], esi
push 0x60
push esi
push ebx
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x40bc37
push 2
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x40bc37
call fcn.0040a58e
mov esi, eax
jmp 0x40bd42
push dword [ebp - 0x420]
push dword [ebp - 0x41c]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
jne 0x40bc5a
call fcn.0040a58e
jmp 0x40bd35
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x420], eax
test eax, eax
je 0x40bc50
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [ebp - 0x41c], ebx
lea ecx, [ebx + 1]
cmp ecx, ebx
jae 0x40bc8d
mov esi, 0x8007000e
jmp 0x40bd37
xor eax, eax
mov byte [ebp - 4], 2
shld eax, ecx, 1
add ecx, ecx
cmp eax, esi
ja 0x40bcc6
cmp ecx, 0xffffffff
ja 0x40bcc6
cmp ecx, 0x400
jbe 0x40bcb8
push ecx
lea ecx, [ebp - 0x418]
call fcn.0040a569
jmp 0x40bce4
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
jmp 0x40bce4
push 0x80070216
call fcn.0040af67
mov eax, 0x40bcd6
ret
mov dword [ebp - 4], 1
cmp dword [ebp - 0x418], 0
je 0x40bc83
push ebx
push dword [ebp - 0x418]
push ebx
push dword [ebp - 0x420]
push esi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x40bc50
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.0040ba63
mov esi, eax
test edi, edi
je 0x40bd42
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x40bd5b
lea ecx, [ebp - 0x418]
call fcn.0040a554
mov eax, esi
call fcn.00422e11
ret 0x10
Function at 0x40c997
Capabilities:
Get common file path

Disassembly:
push 4
mov eax, 0x43a377
call fcn.00422e20
mov edi, ecx
mov dword [ebp - 0x10], edi
push dword [ebp + 8]
lea ecx, [edi + 4]
mov dword [edi], vtable.BugsplatReport.0
call fcn.0041131c
push dword [ebp + 0xc]
xor ebx, ebx
lea ecx, [edi + 8]
mov dword [ebp - 4], ebx
call fcn.0041131c
push dword [ebp + 0x10]
lea ecx, [edi + 0xc]
mov byte [ebp - 4], 1
call fcn.0041131c
mov eax, dword [0x44c5d0]
mov dword [edi + 0x10], eax
mov eax, dword [0x44c5d0]
mov dword [edi + 0x14], eax
mov eax, dword [0x44c5d0]
mov dword [edi + 0x18], eax
mov eax, dword [0x44c5d0]
mov dword [edi + 0x1c], eax
mov eax, dword [0x44c5d0]
mov dword [edi + 0x20], eax
mov eax, dword [0x44c5d0]
mov dword [edi + 0x24], eax
push str.0.0.0.0
lea ecx, [edi + 0x28]
mov byte [ebp - 4], 8
call fcn.0041110a
mov eax, dword [0x44c5d0]
lea esi, [edi + 0x54]
mov dword [edi + 0x2c], eax
mov dword [edi + 0x30], ebx
mov dword [edi + 0x34], ebx
mov dword [edi + 0x38], ebx
mov eax, dword [0x44c5d0]
mov dword [edi + 0x3c], eax
mov eax, dword [0x44c5d0]
mov dword [edi + 0x40], eax
mov byte [edi + 0x44], bl
mov word [edi + 0x46], bx
mov byte [edi + 0x48], bl
mov eax, dword [0x44c5d0]
mov dword [edi + 0x4c], eax
mov eax, dword [0x44c5d0]
mov dword [edi + 0x50], eax
mov eax, dword [0x44c5d0]
push esi
mov dword [edi + 0x25c], eax
push 0x104
mov byte [edi + 0x260], bl
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push str.bugsplat.log
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x442a08
lea eax, [ebp + 8]
mov dword [ebp + 8], ebx
push esi
push eax
call fcn.0041f6b8
add esp, 0xc
cmp dword [ebp + 8], ebx
je 0x40caa3
push dword [ebp + 8]
call fcn.0041f833
pop ecx
mov eax, edi
call fcn.00422dee
ret 0xc