joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45d6d4
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 0x45d7f6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0045ca90
xor eax, eax
push ebp
push 0x45d7d9
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 0x45d724
call fcn.004043e4
jmp 0x45d7e0
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 0x45d7c3
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x45d7c3
lea eax, [ebp - 0xc]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00403da8
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 0x45d7c3
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0040c334
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, 0x45d810
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x4a5a4c]
mov dl, 1
mov eax, dword [0x45b5c0]
call fcn.0040cc58
call fcn.00404338
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45d7e0
mov eax, dword [ebp - 4]
call fcn.0045ca9c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45d7fd
lea eax, [ebp - 0x28]
call fcn.0040499c
ret
Function at 0x45d85c
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 0x45d9a6
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0045ca90
xor eax, eax
push ebp
push 0x45d989
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
cmp ebx, 0xffffffff
jne 0x45d8c1
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x45d8c1
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 0x45d973
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x45d8d4
call fcn.004043e4
jmp 0x45d990
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 0x45d973
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x45d973
lea eax, [ebp - 0xc]
push eax
mov cl, 2
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.00403da8
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 0x45d973
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0040c334
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, 0x45d9c0
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea eax, [ebp - 0x24]
push eax
push 2
mov ecx, dword [0x4a5a4c]
mov dl, 1
mov eax, dword [0x45b5c0]
call fcn.0040cc58
call fcn.00404338
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45d990
mov eax, dword [ebp - 4]
call fcn.0045ca9c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45d9ad
lea eax, [ebp - 0x28]
call fcn.0040499c
ret
Function at 0x4603d0
Capabilities:
Create udp socket
Initialize winsock library
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
push edi
test dl, dl
je 0x4603e8
add esp, 0xfffffff0
call fcn.00403ed0
mov byte [ebp - 1], dl
mov ebx, eax
xor eax, eax
push ebp
push 0x460515
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, ebx
call fcn.0041bf80
mov byte [ebx + 0x10210], 0
mov eax, 0x400
call fcn.00402764
mov dword [ebx + 0x10068], eax
push ebx
push 0x460c54
call fcn.0044e49c
mov dword [ebx + 0x10060], eax
mov dword [ebx + 0x10208], 1
mov byte [ebx + 0x1006c], 0
push 0x46053c
push 0
push 0xffffffffffffffff
push 0
call sub.kernel32.dll_CreateEventA
mov dword [ebx + 0x10248], eax
mov ecx, 0x460548
mov dl, 8
mov eax, ebx
call fcn.00460bd4
lea eax, [ebx + 0x10070]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
test eax, eax
jne 0x4604e5
xor eax, eax
push ebp
push 0x4604cf
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 2
push 2
call sub.wsock32.dll_socket
mov esi, eax
mov dword [ebx + 0x1024c], esi
inc esi
jne 0x4604a8
lea ecx, [ebp - 8]
mov dx, 0x2733
mov eax, ebx
call fcn.00460a20
push 4
push 0x46055c
push 0xff7f
push 0xffff
mov eax, dword [ebx + 0x1024c]
push eax
call sub.wsock32.dll_setsockopt
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4604f3
lea ecx, [ebp - 0xc]
mov dx, 0x2733
mov eax, ebx
call fcn.00460a20
mov byte [ebx + 0x10210], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46051c
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004049c0
ret

Function at 0x4605b0
Capabilities:
Create udp socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x460684
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0x1024c]
test eax, eax
je 0x4605df
push eax
call sub.wsock32.dll_closesocket
call sub.wsock32.dll_WSACleanup
lea eax, [ebx + 0x10070]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
test eax, eax
jne 0x46064b
xor eax, eax
push ebp
push 0x460635
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 2
push 2
call sub.wsock32.dll_socket
mov esi, eax
mov dword [ebx + 0x1024c], esi
inc esi
jne 0x46062b
lea ecx, [ebp - 8]
mov dx, 0x2733
mov eax, ebx
call fcn.00460a20
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x460659
lea ecx, [ebp - 0xc]
mov dx, 0x2733
mov eax, ebx
call fcn.00460a20
mov eax, dword [ebp - 4]
mov dword [ebx + 0x1003c], eax
mov eax, ebx
mov edx, dword [eax]
call dword [edx + 0xc]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46068b
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004049c0
ret
Function at 0x460884
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
mov ebx, ecx
test ebx, ebx
js 0x46089c
shr ebx, 2
mov esi, dword [edx + ebx*4]
dec ebx
push esi
jns 0x460895
mov edx, esp
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
xor esi, esi
cmp dword [ebp + 8], 0
jne 0x460937
test esi, esi
jle 0x4608ce
mov ecx, 0x4609e0
mov dl, 1
mov eax, dword [0x407f94]
call fcn.0040cb60
call fcn.00404338
jmp 0x46092d
cmp word [ebx + 0x10242], 0
jne 0x4608f0
mov ecx, 0x4609e0
mov dl, 1
mov eax, dword [0x407f94]
call fcn.0040cb60
call fcn.00404338
jmp 0x46092d
mov byte [ebp - 9], 0
mov eax, dword [ebp - 8]
push eax
lea eax, [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
lea edx, [ebp - 9]
mov eax, dword [ebx + 0x10244]
call dword [ebx + 0x10240]
cmp byte [ebp - 9], 0
jne 0x46092c
mov ecx, 0x4609e0
mov dl, 1
mov eax, dword [0x407f94]
call fcn.0040cb60
call fcn.00404338
jmp 0x46092d
inc esi
cmp dword [ebp + 8], 0
je 0x4608b2
mov byte [ebx + 0x1006c], 0
mov eax, ebx
call fcn.00460720
cmp dword [ebx + 0x10044], 0
jne 0x460964
mov ecx, 0x4609f8
mov dl, 1
mov eax, dword [0x45ffa0]
call fcn.0040cb60
call fcn.00404338
mov ecx, 0x460a10
mov dl, 2
mov eax, ebx
call fcn.00460bd4
mov word [ebx + 0x10040], 2
mov ax, word [ebx + 0x10038]
push eax
call sub.wsock32.dll_htons
mov word [ebx + 0x10042], ax
mov eax, 0x10
push eax
lea eax, [ebx + 0x10040]
push eax
push 0
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
push eax
mov eax, dword [ebx + 0x1024c]
push eax
call sub.wsock32.dll_sendto
cmp word [ebx + 0x1022a], 0
je 0x4609ca
mov edx, ebx
mov eax, dword [ebx + 0x1022c]
call dword [ebx + 0x10228]
mov esi, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret 4

Function at 0x460cc8
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x460d9c
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x18]
push eax
push 0
push 0xffff
lea eax, [ebx + 0x30]
push eax
mov eax, dword [ebx + 0x1024c]
push eax
call sub.wsock32.dll_recvfrom
mov dword [ebx + 0x10030], eax
cmp word [ebx + 0x10222], 0
je 0x460d86
lea eax, [ebp - 8]
push eax
xor eax, eax
mov al, byte [ebp - 0x14]
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x34], 0
xor eax, eax
mov al, byte [ebp - 0x13]
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x2c], 0
xor eax, eax
mov al, byte [ebp - 0x12]
mov dword [ebp - 0x28], eax
mov byte [ebp - 0x24], 0
xor eax, eax
mov al, byte [ebp - 0x11]
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x1c], 0
lea edx, [ebp - 0x38]
mov ecx, 3
mov eax, 0x460db0
call fcn.0040a1b8
mov ax, word [ebp - 0x16]
push eax
call sub.wsock32.dll_ntohs
mov edx, dword [ebp - 8]
push edx
movzx eax, ax
push eax
mov ecx, dword [ebx + 0x10030]
mov edx, ebx
mov eax, dword [ebx + 0x10224]
call dword [ebx + 0x10220]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x460da3
lea eax, [ebp - 8]
call fcn.0040499c
ret
Function at 0x460f9c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
mov esi, eax
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.00404e4c
xor eax, eax
push ebp
push 0x4610c9
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebx + 0xc], eax
lea eax, [ebx + 0x10034]
mov edx, dword [ebp - 4]
call fcn.004049f0
mov dword [ebx + 0x10224], esi
mov dword [ebx + 0x10220], 0x460f0c
mov edx, 0xfa0
mov eax, ebx
call fcn.004605b0
mov eax, dword [ebx + 0x1003c]
mov dword [ebx + 0x10038], eax
lea eax, [ebp - 8]
mov edx, dword [ebx + 0x1003c]
mov dword [eax], edx
push 4
lea edx, [ebp - 8]
mov ecx, 3
mov eax, ebx
call fcn.00460884
call sub.kernel32.dll_GetTickCount_1
mov esi, eax
jmp 0x461031
mov eax, dword [0x4a5978]
mov eax, dword [eax]
call fcn.00457114
cmp dword [ebx + 0xc], 0
jne 0x4610ad
call sub.kernel32.dll_GetTickCount_1
sub eax, esi
cmp eax, 0x32
jb 0x461025
jmp 0x4610ad
mov edx, dword [edi]
mov eax, ebx
call fcn.004605b0
inc dword [edi]
cmp dword [edi], 0xffff
jne 0x46105e
mov dword [edi], 0xfa0
mov eax, dword [ebx + 0x1003c]
mov dword [ebx + 0x10038], eax
lea eax, [ebp - 8]
mov edx, dword [ebx + 0x1003c]
mov dword [eax], edx
push 4
lea edx, [ebp - 8]
mov ecx, 3
mov eax, ebx
call fcn.00460884
call sub.kernel32.dll_GetTickCount_1
mov esi, eax
jmp 0x46109b
mov eax, dword [0x4a5978]
mov eax, dword [eax]
call fcn.00457114
cmp dword [ebx + 0xc], 0
jne 0x4610ad
call sub.kernel32.dll_GetTickCount_1
sub eax, esi
cmp eax, 0x32
jb 0x46108f
cmp dword [ebx + 0xc], 0
je 0x461045
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4610d0
lea eax, [ebp - 4]
call fcn.0040499c
ret
Function at 0x472a20
Capabilities:
Check os version
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff50
push ebx
push esi
mov ecx, 0x472b7c
mov dl, 1
mov eax, dword [0x4723b0]
call fcn.00472518
mov dword [ebp - 4], eax
xor edx, edx
push ebp
push 0x472b5c
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x1c]
xor ecx, ecx
mov edx, 0x18
call fcn.004032e4
mov dword [ebp - 0x1c], 0x18
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
add eax, 4
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x1c]
push eax
push 6
push 0x4a7ac8
mov eax, dword [0x4a5650]
mov eax, dword [eax]
call eax
cmp eax, 0xc0000022
jne 0x472ad5
lea eax, [ebp - 0x1c]
push eax
push 0x60000
push 0x4a7ac8
mov eax, dword [0x4a5650]
mov eax, dword [eax]
call eax
test eax, eax
jne 0x472ab6
mov eax, dword [0x4a7ac8]
call fcn.00472918
mov eax, dword [0x4a7ac8]
push eax
call sub.kernel32.dll_CloseHandle_1
lea eax, [ebp - 0x1c]
push eax
push 6
push 0x4a7ac8
mov eax, dword [0x4a5650]
mov eax, dword [eax]
call eax
test eax, eax
jne 0x472b3f
mov dword [ebp - 0xb0], 0x94
lea eax, [ebp - 0xb0]
push eax
call sub.kernel32.dll_GetVersionExA
cmp dword [ebp - 0xac], 5
jne 0x472b23
mov eax, dword [ebp - 0xa8]
test eax, eax
jne 0x472b09
mov esi, 0x30000
jmp 0x472b23
cmp eax, 1
jne 0x472b15
mov esi, 0x39000
jmp 0x472b23
xor eax, eax
mov dword [0x4a7ac8], eax
call fcn.004043e4
jmp 0x472b69
push 0x1000
push esi
push 0
push 6
mov eax, dword [0x4a7ac8]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [0x4a7acc], eax
jmp 0x472b46
xor eax, eax
mov dword [0x4a7ac8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x472b63
mov eax, dword [ebp - 4]
call fcn.00403bac
ret
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x472b94
Capabilities:
Read file via mapping

Disassembly:
push ebx
push esi
mov ebx, edx
cmp ebx, 0x80000000
jb 0x472bb3
cmp ebx, 0xa0000000
jae 0x472bb3
sub ebx, 0x80000000
mov eax, ebx
pop esi
pop ebx
ret
mov edx, ebx
shr edx, 0x16
mov esi, dword [eax + edx*4]
test esi, 1
je 0x472c2f
mov eax, esi
and eax, 0x80
test eax, eax
je 0x472be0
and esi, 0xffc00000
and ebx, 0x3fffff
add esi, ebx
mov ebx, esi
jmp 0x472c34
push 0x1000
and esi, 0xfffff000
push esi
push 0
push 4
mov eax, dword [0x4a7ac8]
push eax
call sub.kernel32.dll_MapViewOfFile
mov esi, eax
mov edx, esi
mov eax, edx
mov ecx, ebx
and ecx, 0x3ff000
shr ecx, 0xc
mov eax, dword [eax + ecx*4]
test al, 1
je 0x472c2a
and eax, 0xfffff000
and ebx, 0xfff
add eax, ebx
mov ebx, eax
push edx
call sub.kernel32.dll_UnmapViewOfFile
jmp 0x472c34
xor eax, eax
pop esi
pop ebx
ret
xor eax, eax
pop esi
pop ebx
ret
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x472c3c
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor edx, edx
push ebp
push 0x472caf
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, ebx
mov eax, dword [0x4a7acc]
call fcn.00472b94
mov ebx, eax
push 0x1000
mov eax, ebx
and eax, 0xfffff000
push eax
push 0
push 4
mov eax, dword [0x4a7ac8]
push eax
call sub.kernel32.dll_MapViewOfFile
test eax, eax
jne 0x472c90
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x472cb9
and ebx, 0xfff
shr ebx, 2
mov ebx, dword [eax + ebx*4]
push eax
call sub.kernel32.dll_UnmapViewOfFile
mov dword [ebp - 4], ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x472cb9
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x472cc4
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
xor edx, edx
push ebp
push 0x472d3d
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, ebx
mov eax, dword [0x4a7acc]
call fcn.00472b94
mov ebx, eax
push 0x1000
mov eax, ebx
and eax, 0xfffff000
push eax
push 0
push 6
mov eax, dword [0x4a7ac8]
push eax
call sub.kernel32.dll_MapViewOfFile
test eax, eax
jne 0x472d1a
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x472d47
and ebx, 0xfff
shr ebx, 2
mov dword [eax + ebx*4], esi
push eax
call sub.kernel32.dll_UnmapViewOfFile
mov dword [ebp - 4], 0xffffffff
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x472d47
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x472d50
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff6c
push ebx
push esi
push edi
xor edx, edx
push ebp
push 0x472e51
push dword fs:[edx]
mov dword fs:[edx], esp
mov dword [ebp - 0x94], 0x94
lea eax, [ebp - 0x94]
push eax
call sub.kernel32.dll_GetVersionExA
cmp dword [ebp - 0x84], 2
jne 0x472e47
call fcn.00472a20
test eax, eax
jne 0x472da3
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x472e5b
mov eax, 0xffdff124
call fcn.00472c3c
add eax, 0x44
call fcn.00472c3c
mov ebx, eax
test ebx, ebx
je 0x472e47
cmp dword [ebp - 0x90], 5
jne 0x472def
mov eax, dword [ebp - 0x8c]
test eax, eax
jne 0x472dde
mov esi, 0xa0
mov edi, 0xa4
jmp 0x472df9
cmp eax, 1
jne 0x472df9
mov esi, 0x88
mov edi, 0x8c
jmp 0x472df9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x472e5b
lea eax, [esi + ebx]
call fcn.00472c3c
mov esi, eax
test esi, esi
jne 0x472e11
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x472e5b
lea eax, [edi + ebx]
call fcn.00472c3c
mov ebx, eax
test ebx, ebx
jne 0x472e29
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x472e5b
lea eax, [esi + 4]
mov edx, ebx
call fcn.00472cc4
mov edx, esi
mov eax, ebx
call fcn.00472cc4
mov eax, dword [0x4a7ac8]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x472e5b
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x472f0c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x472f38
mov eax, dword [ebp - 4]
call fcn.00404e5c
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
setne al
neg al
sbb eax, eax
mov dword [ebp - 8], eax
jmp 0x472f3d
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
pop ecx
pop ecx
pop ebp
ret

Function at 0x473028
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x47309f
cmp dword [ebp - 8], 0
je 0x473098
cmp dword [ebp - 0xc], 0
jbe 0x473098
mov eax, dword [ebp + 8]
push eax
push 0
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetFilePointer_1
push 0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_WriteFile_1
test eax, eax
je 0x47308f
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
jne 0x473086
xor eax, eax
mov dword [ebp - 0x10], eax
jmp 0x4730a6
mov dword [ebp - 0x10], 0xfffffffc
jmp 0x4730a6
mov dword [ebp - 0x10], 0xfffffffd
jmp 0x4730a6
xor eax, eax
mov dword [ebp - 0x10], eax
jmp 0x4730a6
mov dword [ebp - 0x10], 0xfffffffe
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret 8

Function at 0x475e10
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 1
jne 0x475e3d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 0xffffffff
je 0x475e3d
mov eax, dword [ebp - 4]
mov dword [eax + 4], 2
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 2
sete al
neg al
sbb eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
pop ecx
pop ecx
pop ebp
ret
Function at 0x476114
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
sub eax, 1
jb 0x476136
je 0x476241
jmp 0x476251
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00475d54
test eax, eax
je 0x476251
xor eax, eax
push ebp
push 0x47623a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 4]
test eax, eax
je 0x476224
mov eax, dword [ebp - 4]
mov dword [eax + 4], 3
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x50]
xor edx, edx
call fcn.00474f90
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
xor edx, edx
call fcn.00474f90
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x10], edx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x18]
mov edx, dword [ebp - 4]
mov dword [edx + 0x20], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
xor edx, edx
call fcn.00474f90
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
xor edx, edx
call fcn.00474f90
mov eax, dword [ebp - 4]
add eax, 0x48
push eax
push 0
mov eax, dword [ebp - 4]
push eax
push 0x475e58
push 0
push 0
call sub.kernel32.dll_CreateThread_1
mov edx, dword [ebp - 4]
mov dword [edx + 0x44], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
or edx, 0xffffffff
call fcn.00474f90
mov eax, dword [ebp - 4]
cmp dword [eax + 0x44], 0
je 0x476224
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x50]
mov edx, dword [ebp - 8]
call fcn.00474fc0
test eax, eax
jne 0x476224
xor ecx, ecx
or edx, 0xffffffff
mov eax, dword [ebp - 4]
call fcn.00476294
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 4], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x476251
mov eax, dword [ebp - 4]
call fcn.00475df8
ret
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x10], edx
mov eax, dword [ebp - 4]
call fcn.00475e10
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
setne al
neg al
sbb eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0x20], 0
je 0x476275
mov eax, dword [ebp - 4]
mov dword [eax + 0x1c], 0xffffffff
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret

Function at 0x48066c
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404e4c
xor eax, eax
push ebp
push 0x4806ea
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404e5c
mov dword [ebp - 8], eax
cmp dword [ebx + 8], 0
jne 0x4806b5
mov eax, dword [ebx + 4]
call fcn.00404e5c
push eax
push 0
call sub.advapi32.dll_RegisterEventSourceA
mov dword [ebx + 8], eax
push 0
lea eax, [ebp - 8]
push eax
push 0
push 1
push 0
mov eax, dword [ebp + 8]
push eax
mov ax, word [ebp + 0xc]
push eax
push esi
mov eax, dword [ebx + 8]
push eax
call sub.advapi32.dll_ReportEventA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4806f1
lea eax, [ebp - 4]
call fcn.0040499c
ret