joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45d8d9
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 0x45d90a
mov ecx, dword [0x4a5908]
mov dl, 1
mov eax, dword [0x45bc25]
call fcn.0040d281
call fcn.0040499d
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 0x45d937
mov ecx, dword [0x4a5868]
mov dl, 1
mov eax, dword [0x45bc25]
call fcn.0040d281
call fcn.0040499d
xor eax, eax
push ebp
push 0x45d9b3
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.0040440d
cmp byte [ebp + 8], 0
je 0x45d98f
mov eax, dword [ebp + 0x10]
push eax
mov ax, word [ebp + 0xc]
push eax
push 1
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.0045d739
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 eax, dword [ebp - 4]
call fcn.0045d351
jmp 0x45d9a9
mov eax, dword [ebp + 0x10]
push eax
mov ax, word [ebp + 0xc]
push eax
push 0
push 1
mov ecx, dword [ebp - 8]
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.0045ce2d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45d9d0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x45dbb1
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.0045d0f5
xor eax, eax
push ebp
push 0x45dd22
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 0x45dd0c
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
je 0x45dbfc
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x45dc06
call fcn.00404a49
jmp 0x45dd29
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00418261
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 0x45dd01
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 0x45dcb4
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x2733
je 0x45dca1
lea eax, [ebp - 0x10]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.0040440d
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.0045db69
pop ecx
mov eax, dword [ebp - 4]
mov dl, byte [0x45dd35]
cmp dl, byte [eax + 0x28]
je 0x45dd08
call fcn.0040d1a5
jmp 0x45dd08
mov eax, dword [ebp - 0xc]
cdq
push edx
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
call fcn.00418281
jmp 0x45dd08
cmp ecx, ebx
jge 0x45dcd0
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.00418281
jmp 0x45dc06
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.00418261
cmp edx, dword [esp + 4]
jne 0x45dcf0
cmp eax, dword [esp]
pop edx
pop eax
jne 0x45dc06
push ebp
call fcn.0045db69
pop ecx
jmp 0x45dd08
push ebp
call fcn.0045db69
pop ecx
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45dd29
mov eax, dword [ebp - 4]
call fcn.0045d101
ret
mov al, byte [ebp - 5]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45dd39
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 0x45de5b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0045d0f5
xor eax, eax
push ebp
push 0x45de3e
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 0x45dd89
call fcn.00404a49
jmp 0x45de45
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 0x45de28
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x45de28
lea eax, [ebp - 0xc]
push eax
mov cl, 1
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.0040440d
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 0x45de28
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0040c999
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, 0x45de75
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 [0x45bc25]
call fcn.0040d2bd
call fcn.0040499d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45de45
mov eax, dword [ebp - 4]
call fcn.0045d101
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45de62
lea eax, [ebp - 0x28]
call fcn.00405001
ret
Function at 0x45dec1
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 0x45e00b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0045d0f5
xor eax, eax
push ebp
push 0x45dfee
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
cmp ebx, 0xffffffff
jne 0x45df26
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
je 0x45df26
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 0x45dfd8
mov eax, dword [ebp - 4]
cmp byte [eax + 8], 0
jne 0x45df39
call fcn.00404a49
jmp 0x45dff5
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 0x45dfd8
call sub.wsock32.dll_WSAGetLastError
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0x2733
je 0x45dfd8
lea eax, [ebp - 0xc]
push eax
mov cl, 2
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 4]
mov si, 0xfffe
call fcn.0040440d
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 0x45dfd8
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 0xc]
call fcn.0040c999
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, 0x45e025
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 [0x45bc25]
call fcn.0040d2bd
call fcn.0040499d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45dff5
mov eax, dword [ebp - 4]
call fcn.0045d101
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45e012
lea eax, [ebp - 0x28]
call fcn.00405001
ret
Function at 0x460a35
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 0x460a4d
add esp, 0xfffffff0
call fcn.00404535
mov byte [ebp - 1], dl
mov ebx, eax
xor eax, eax
push ebp
push 0x460b7a
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, ebx
call fcn.0041c5e5
mov byte [ebx + 0x10210], 0
mov eax, 0x400
call fcn.00402dc9
mov dword [ebx + 0x10068], eax
push ebx
push 0x4612b9
call fcn.0044eb01
mov dword [ebx + 0x10060], eax
mov dword [ebx + 0x10208], 1
mov byte [ebx + 0x1006c], 0
push 0x460ba1
push 0
push 0xffffffffffffffff
push 0
call sub.kernel32.dll_CreateEventA
mov dword [ebx + 0x10248], eax
mov ecx, 0x460bad
mov dl, 8
mov eax, ebx
call fcn.00461239
lea eax, [ebx + 0x10070]
push eax
push 0x101
call sub.wsock32.dll_WSAStartup
test eax, eax
jne 0x460b4a
xor eax, eax
push ebp
push 0x460b34
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 0x460b0d
lea ecx, [ebp - 8]
mov dx, 0x2733
mov eax, ebx
call fcn.00461085
push 4
push 0x460bc1
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 0x460b58
lea ecx, [ebp - 0xc]
mov dx, 0x2733
mov eax, ebx
call fcn.00461085
mov byte [ebx + 0x10210], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x460b81
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00405025
ret

Function at 0x460c15
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 0x460ce9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0x1024c]
test eax, eax
je 0x460c44
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 0x460cb0
xor eax, eax
push ebp
push 0x460c9a
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 0x460c90
lea ecx, [ebp - 8]
mov dx, 0x2733
mov eax, ebx
call fcn.00461085
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x460cbe
lea ecx, [ebp - 0xc]
mov dx, 0x2733
mov eax, ebx
call fcn.00461085
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 0x460cf0
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00405025
ret
Function at 0x460ee9
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 0x460f01
shr ebx, 2
mov esi, dword [edx + ebx*4]
dec ebx
push esi
jns 0x460efa
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 0x460f9c
test esi, esi
jle 0x460f33
mov ecx, 0x461045
mov dl, 1
mov eax, dword [0x4085f9]
call fcn.0040d1c5
call fcn.0040499d
jmp 0x460f92
cmp word [ebx + 0x10242], 0
jne 0x460f55
mov ecx, 0x461045
mov dl, 1
mov eax, dword [0x4085f9]
call fcn.0040d1c5
call fcn.0040499d
jmp 0x460f92
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 0x460f91
mov ecx, 0x461045
mov dl, 1
mov eax, dword [0x4085f9]
call fcn.0040d1c5
call fcn.0040499d
jmp 0x460f92
inc esi
cmp dword [ebp + 8], 0
je 0x460f17
mov byte [ebx + 0x1006c], 0
mov eax, ebx
call fcn.00460d85
cmp dword [ebx + 0x10044], 0
jne 0x460fc9
mov ecx, 0x46105d
mov dl, 1
mov eax, dword [0x460605]
call fcn.0040d1c5
call fcn.0040499d
mov ecx, 0x461075
mov dl, 2
mov eax, ebx
call fcn.00461239
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 0x46102f
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 0x46132d
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 0x461401
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 0x4613eb
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, 0x461415
call fcn.0040a81d
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 0x461408
lea eax, [ebp - 8]
call fcn.00405001
ret
Function at 0x461601
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.004054b1
xor eax, eax
push ebp
push 0x46172e
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.00405055
mov dword [ebx + 0x10224], esi
mov dword [ebx + 0x10220], 0x461571
mov edx, 0xfa0
mov eax, ebx
call fcn.00460c15
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.00460ee9
call sub.kernel32.dll_GetTickCount
mov esi, eax
jmp 0x461696
mov eax, dword [0x4a5978]
mov eax, dword [eax]
call fcn.00457779
cmp dword [ebx + 0xc], 0
jne 0x461712
call sub.kernel32.dll_GetTickCount
sub eax, esi
cmp eax, 0x32
jb 0x46168a
jmp 0x461712
mov edx, dword [edi]
mov eax, ebx
call fcn.00460c15
inc dword [edi]
cmp dword [edi], 0xffff
jne 0x4616c3
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.00460ee9
call sub.kernel32.dll_GetTickCount
mov esi, eax
jmp 0x461700
mov eax, dword [0x4a5978]
mov eax, dword [eax]
call fcn.00457779
cmp dword [ebx + 0xc], 0
jne 0x461712
call sub.kernel32.dll_GetTickCount
sub eax, esi
cmp eax, 0x32
jb 0x4616f4
cmp dword [ebx + 0xc], 0
je 0x4616aa
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x461735
lea eax, [ebp - 4]
call fcn.00405001
ret
Function at 0x473085
Capabilities:
Check os version
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff50
push ebx
push esi
mov ecx, 0x4731e1
mov dl, 1
mov eax, dword [0x472a15]
call fcn.00472b7d
mov dword [ebp - 4], eax
xor edx, edx
push ebp
push 0x4731c1
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x1c]
xor ecx, ecx
mov edx, 0x18
call fcn.00403949
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 0x47313a
lea eax, [ebp - 0x1c]
push eax
push 0x60000
push 0x4a7ac8
mov eax, dword [0x4a5650]
mov eax, dword [eax]
call eax
test eax, eax
jne 0x47311b
mov eax, dword [0x4a7ac8]
call fcn.00472f7d
mov eax, dword [0x4a7ac8]
push eax
call sub.kernel32.dll_CloseHandle
lea eax, [ebp - 0x1c]
push eax
push 6
push 0x4a7ac8
mov eax, dword [0x4a5650]
mov eax, dword [eax]
call eax
test eax, eax
jne 0x4731a4
mov dword [ebp - 0xb0], 0x94
lea eax, [ebp - 0xb0]
push eax
call sub.kernel32.dll_GetVersionExA
cmp dword [ebp - 0xac], 5
jne 0x473188
mov eax, dword [ebp - 0xa8]
test eax, eax
jne 0x47316e
mov esi, 0x30000
jmp 0x473188
cmp eax, 1
jne 0x47317a
mov esi, 0x39000
jmp 0x473188
xor eax, eax
mov dword [0x4a7ac8], eax
call fcn.00404a49
jmp 0x4731ce
push 0x1000
push esi
push 0
push 6
mov eax, dword [0x4a7ac8]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [0x4a7acc], eax
jmp 0x4731ab
xor eax, eax
mov dword [0x4a7ac8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4731c8
mov eax, dword [ebp - 4]
call fcn.00404211
ret
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4731f9
Capabilities:
Read file via mapping

Disassembly:
push ebx
push esi
mov ebx, edx
cmp ebx, 0x80000000
jb 0x473218
cmp ebx, 0xa0000000
jae 0x473218
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 0x473294
mov eax, esi
and eax, 0x80
test eax, eax
je 0x473245
and esi, 0xffc00000
and ebx, 0x3fffff
add esi, ebx
mov ebx, esi
jmp 0x473299
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 0x47328f
and eax, 0xfffff000
and ebx, 0xfff
add eax, ebx
mov ebx, eax
push edx
call sub.kernel32.dll_UnmapViewOfFile
jmp 0x473299
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 0x4732a1
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 0x473314
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, ebx
mov eax, dword [0x4a7acc]
call fcn.004731f9
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 0x4732f5
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x47331e
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 0x47331e
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x473329
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 0x4733a2
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, ebx
mov eax, dword [0x4a7acc]
call fcn.004731f9
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 0x47337f
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4733ac
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 0x4733ac
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x4733b5
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 0x4734b6
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 0x4734ac
call fcn.00473085
test eax, eax
jne 0x473408
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4734c0
mov eax, 0xffdff124
call fcn.004732a1
add eax, 0x44
call fcn.004732a1
mov ebx, eax
test ebx, ebx
je 0x4734ac
cmp dword [ebp - 0x90], 5
jne 0x473454
mov eax, dword [ebp - 0x8c]
test eax, eax
jne 0x473443
mov esi, 0xa0
mov edi, 0xa4
jmp 0x47345e
cmp eax, 1
jne 0x47345e
mov esi, 0x88
mov edi, 0x8c
jmp 0x47345e
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4734c0
lea eax, [esi + ebx]
call fcn.004732a1
mov esi, eax
test esi, esi
jne 0x473476
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4734c0
lea eax, [edi + ebx]
call fcn.004732a1
mov ebx, eax
test ebx, ebx
jne 0x47348e
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4734c0
lea eax, [esi + 4]
mov edx, ebx
call fcn.00473329
mov edx, esi
mov eax, ebx
call fcn.00473329
mov eax, dword [0x4a7ac8]
push eax
call sub.kernel32.dll_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4734c0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x473571
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 0x47359d
mov eax, dword [ebp - 4]
call fcn.004054c1
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
setne al
neg al
sbb eax, eax
mov dword [ebp - 8], eax
jmp 0x4735a2
xor eax, eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
pop ecx
pop ecx
pop ebp
ret

Function at 0x47368d
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 0x473704
cmp dword [ebp - 8], 0
je 0x4736fd
cmp dword [ebp - 0xc], 0
jbe 0x4736fd
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
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
test eax, eax
je 0x4736f4
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
jne 0x4736eb
xor eax, eax
mov dword [ebp - 0x10], eax
jmp 0x47370b
mov dword [ebp - 0x10], 0xfffffffc
jmp 0x47370b
mov dword [ebp - 0x10], 0xfffffffd
jmp 0x47370b
xor eax, eax
mov dword [ebp - 0x10], eax
jmp 0x47370b
mov dword [ebp - 0x10], 0xfffffffe
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret 8

Function at 0x476475
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 0x4764a2
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x44]
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 0xffffffff
je 0x4764a2
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