joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417225
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, eax
push edi
xor eax, eax
lea ebx, [esi + 0x38]
lea ecx, [ebx + 0x10]
mov edi, ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
or dword [esi + 0x1c], 0x80000
xor eax, eax
mov edi, ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor edx, edx
mov edi, 0x100000
mov dword [ebp - 0xc], 0x441ad8
mov dword [ebp - 0x10], edx
test dword [esi + 0x1c], edi
je 0x41726e
mov eax, dword [ebx + 0x2c]
or eax, 1
mov dword [ebx + 0x20], eax
push edx
push ecx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push 1
lea eax, [ebp - 0x10]
push eax
push dword [esi + 0x74]
mov dword [ebp - 4], edx
call dword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
jne 0x4172ae
mov eax, dword [esi + 0x1c]
test eax, 0x40000
je 0x4172e9
or eax, 0x20000
mov dword [esi + 0x1c], eax
mov eax, dword [ebp - 8]
mov dword [ebx + 0x14], eax
inc dword [esi + 0x30]
jmp 0x417339
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x4172e9
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call edi
test eax, eax
jg 0x4172cb
call edi
jmp 0x4172d7
call edi
and eax, 0xffff
or eax, 0x80070000
mov ecx, dword [ebp + 8]
mov dword [ebx + 0x10], eax
mov eax, ebx
call fcn.0041bced
inc dword [esi + 0x30]
jmp 0x417343
or dword [esi + 0x1c], 0x20000
mov eax, dword [esi + 0x1c]
inc dword [esi + 0x30]
test edi, eax
je 0x417343
lea eax, [ebx + 0x30]
cmp dword [eax], 0xffffffff
jne 0x417343
push 4
push 0xffffffffffffffff
push ebx
push 0x418a19
push dword [ebx + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
test eax, eax
jne 0x417343
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x41732a
call esi
jmp 0x417336
call esi
and eax, 0xffff
or eax, 0x80070000
mov dword [ebx + 0x10], eax
mov ecx, dword [ebp + 8]
mov eax, ebx
call fcn.0041bced
pop edi
pop esi
pop ebx
leave
ret
Function at 0x417a65
Capabilities:
Set socket configuration

Disassembly:
push ebx
mov ebx, eax
mov eax, dword [ebx + 0x2c]
push esi
mov esi, ecx
cmp eax, 0xffffffff
jne 0x417acb
mov eax, dword [esi + 0x1c]
test eax, 0x800
je 0x417b27
and eax, 0xfffff7ff
dec dword [esi + 0x34]
mov dword [esi + 0x1c], eax
jne 0x417aa6
test al, 1
jne 0x417aa6
test al, 0x40
je 0x417aa6
and eax, 0xffffffbf
mov dword [esi + 0x1c], eax
test al, 0x20
je 0x417aa6
mov eax, dword [esi + 8]
dec dword [eax + 0xc]
cmp dword [esi + 0x6c], 0
je 0x417b27
mov eax, dword [ebx + 0x10]
call fcn.0041c424
mov ebx, eax
mov ecx, ebx
call fcn.0041b96d
push 0xffffffffffffffff
push esi
mov dword [edi + 4], eax
mov dword [edi + 8], ebx
call dword [esi + 0x6c]
jmp 0x417b08
cmp dword [ebx + 0x10], 0
jl 0x417b0c
push 4
lea ecx, [esi + 0x74]
push ecx
push 0x700b
push 0xffff
push eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x417b0c
lea eax, [esi + 0x84]
mov ecx, dword [eax]
mov dword [ebx + 0x158], ecx
mov dword [eax], ebx
mov eax, dword [esi + 0x6c]
test eax, eax
je 0x417b27
push 0
push esi
call eax
pop ecx
pop ecx
jmp 0x417b27
push dword [ebx + 0x2c]
call dword [sym.imp.WS2_32.dll_closesocket]
or dword [ebx + 0x2c], 0xffffffff
test dword [esi + 0x1c], 0x800
je 0x417b27
call fcn.00417078
dec dword [esi + 0x30]
test byte [esi + 0x1c], 1
mov eax, dword [esi + 0x30]
je 0x417b42
test eax, eax
jne 0x417b42
mov ecx, esi
pop esi
mov edx, edi
pop ebx
jmp fcn.004195da
pop esi
pop ebx
ret

Function at 0x417b45
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
dec dword [esi + 0x34]
jne 0x417b69
mov eax, dword [esi + 0x1c]
test al, 1
jne 0x417b69
test al, 0x40
je 0x417b69
and eax, 0xffffffbf
mov dword [esi + 0x1c], eax
test al, 0x20
je 0x417b69
mov eax, dword [esi + 8]
dec dword [eax + 0xc]
mov eax, dword [edi + 0xc]
mov ecx, dword [edi + 8]
mov dword [eax], ecx
mov eax, dword [edi + 8]
mov ecx, dword [edi + 0xc]
mov dword [eax + 4], ecx
mov eax, dword [edi + 0x10]
test eax, eax
jl 0x417bb9
push 0
push 0
push 0x7010
push 0xffff
push dword [esi + 0x74]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x417bb1
mov eax, esi
call fcn.00416bd6
or dword [esi + 0x1c], 0x18000
inc dword [ebx + 0x60]
push 0
jmp 0x417bd3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x417bbe
call fcn.0041c424
mov ecx, eax
mov dword [ebp - 4], ecx
call fcn.0041b96d
mov dword [ebx + 4], eax
mov eax, dword [ebp - 4]
push 0xffffffffffffffff
mov dword [ebx + 8], eax
push edi
call dword [edi + 0x2c]
dec dword [esi + 0x30]
test byte [esi + 0x1c], 1
mov eax, dword [esi + 0x30]
pop ecx
pop ecx
je 0x417bf2
test eax, eax
jne 0x417bf2
mov ecx, esi
mov edx, ebx
call fcn.004195da
leave
ret
Function at 0x418a84
Capabilities:
Read file on windows

Disassembly:
test dword [esi + 0x1c], 0x1000000
push ebx
push edi
lea ebx, [esi + 0x38]
je 0x418ab3
push 0x10
push ebx
push 0x418931
call dword [sym.imp.KERNEL32.dll_QueueUserWorkItem]
test eax, eax
jne 0x418b6d
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x418b47
xor eax, eax
lea ecx, [ebx + 0x10]
mov edi, ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
test dword [esi + 0x1c], 0x100000
je 0x418ad1
mov eax, dword [ebx + 0x2c]
or eax, 1
mov dword [ebx + 0x20], eax
push ecx
push 0
push 0
push 0x441ad9
push dword [esi + 0x78]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x418af7
call edi
cmp eax, 0x3e5
jne 0x418b47
test dword [esi + 0x1c], 0x100000
je 0x418b6d
xor eax, eax
cmp dword [ebx + 0x2c], eax
jne 0x418b27
push eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebx + 0x2c], eax
test eax, eax
jne 0x418b27
push str.CreateEvent
call edi
push eax
call fcn.0041b8e6
pop ecx
pop ecx
lea eax, [ebx + 0x30]
cmp dword [eax], 0xffffffff
jne 0x418b6d
push 4
push 0xffffffffffffffff
push ebx
push 0x418a19
push dword [ebx + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
test eax, eax
jne 0x418b6d
call edi
test eax, eax
jg 0x418b51
call edi
jmp 0x418b5d
call edi
and eax, 0xffff
or eax, 0x80070000
mov ecx, dword [esp + 0xc]
mov dword [ebx + 0x10], eax
mov eax, ebx
call fcn.0041bced
jmp 0x418b74
mov eax, esi
call fcn.0041954c
or dword [esi + 0x1c], 0x20000
inc dword [esi + 0x30]
pop edi
pop ebx
ret
Function at 0x41a38e
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
mov esi, eax
and dword [esi + 0x1c], 0xfffffeff
dec dword [esi + 0x34]
mov ebx, dword [esi + 8]
mov eax, dword [esi + 0x1c]
jne 0x41a3bf
test al, 1
jne 0x41a3bf
test al, 0x40
je 0x41a3bf
and eax, 0xffffffbf
mov dword [esi + 0x1c], eax
test al, 0x20
je 0x41a3bf
dec dword [ebx + 0xc]
mov eax, dword [esi + 0x1c]
test eax, 0x20000
je 0x41a40d
test eax, 0x2000000
je 0x41a40d
push edi
xor eax, eax
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 4]
push eax
push 1
lea eax, [ebp - 0x18]
push eax
push dword [esi + 0x74]
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
pop edi
test eax, eax
jne 0x41a40d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov ecx, esi
call fcn.0041b96d
mov dword [ebx + 4], eax
mov dword [ebx + 8], esi
or eax, 0xffffffff
jmp 0x41a421
mov eax, dword [esi + 0x78]
test eax, eax
je 0x41a41f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi + 0x78], 0
xor eax, eax
pop esi
pop ebx
leave
ret

Function at 0x41a556
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [ebx], 0
push edi
je 0x41a567
or eax, 0xffffffff
jmp 0x41a5bb
lea eax, [ebp - 0x18]
push eax
push dword [esi + 0x74]
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0x41a580
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx], eax
push dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
push dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
lea edi, [ebp - 0x18]
call fcn.0041a4b3
pop ecx
pop ecx
push eax
push dword [esi + 0x74]
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
test eax, eax
jne 0x41a5b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
je 0x41a567
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx], eax
jmp 0x41a562
xor eax, eax
pop edi
leave
ret
Function at 0x41a5be
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
xor eax, eax
push edi
mov word [ebp - 4], ax
mov word [ebp - 2], ax
cmp dword [ebx], eax
jne 0x41a65b
push 7
push dword [esi + 0x74]
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
test eax, eax
jne 0x41a5ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x41a659
push dword [ebp - 4]
push dword [esi + 0x74]
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
test eax, eax
je 0x41a5e6
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [ebp - 0x20]
push eax
push dword [esi + 0x74]
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je 0x41a657
movsx ecx, word [ebp - 0x20]
movsx eax, word [ebp - 0x1e]
imul eax, ecx
lea ecx, [ebp - 8]
push ecx
push dword [ebp - 4]
push eax
push 0x20
push dword [esi + 0x74]
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterW]
test eax, eax
je 0x41a650
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push dword [ebp - 8]
push 7
push dword [esi + 0x74]
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputAttribute]
test eax, eax
jne 0x41a661
call edi
cmp eax, 0x57
je 0x41a604
call edi
mov dword [ebx], eax
or eax, 0xffffffff
pop edi
leave
ret
and dword [0x440458], 0
lea ecx, [ebp - 0x20]
call fcn.0041a425
xor eax, eax
jmp 0x41a65e
Function at 0x41c251
Capabilities:
Create tcp socket
Create udp socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x434
mov eax, dword [0x43f600]
xor eax, esp
mov dword [esp + 0x430], eax
push ebx
push esi
push edi
lea eax, [esp + 0x2a8]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x41c292
push str.WSAStartup
push eax
call fcn.0041b8e6
pop ecx
pop ecx
push 0
mov ebx, str.0.0.0.0
lea esi, [esp + 0x14]
call fcn.00415cb2
mov esi, eax
mov edi, 0x442e50
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop ecx
movsd dword es:[edi], dword [esi]
push 7
pop ecx
movsd dword es:[edi], dword [esi]
xor eax, eax
push 0x17
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
pop eax
push 0
mov word [esp + 0x14], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x12], ax
lea eax, [esp + 0x18]
push eax
call fcn.0041d534
pop ecx
push 7
pop ecx
push 0
lea esi, [esp + 0x14]
mov edi, 0x442e60
push 1
rep movsd dword es:[edi], dword [esi]
mov esi, dword [sym.imp.WS2_32.dll_socket]
push 2
call esi
mov edi, eax
cmp edi, 0xffffffff
je 0x41c365
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x34]
push eax
push 0x2005
push 0xffff
push edi
mov dword [esp + 0x20], 0x274
call dword [sym.imp.WS2_32.dll_getsockopt]
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
neg eax
sbb eax, eax
inc eax
cmp eax, 0xffffffff
jne 0x41c33e
push str.getsockopt
call ebx
push eax
call fcn.0041b8e6
pop ecx
pop ecx
test dword [esp + 0x30], 0x20000
jne 0x41c352
mov dword [0x442e80], 1
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
cmp eax, 0xffffffff
jne 0x41c385
push str.closesocket
jmp 0x41c37b
mov ebx, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call ebx
call fcn.0041c22e
test eax, eax
jne 0x41c385
push str.socket
call ebx
push eax
call fcn.0041b8e6
pop ecx
pop ecx
push 0
xor edi, edi
inc edi
push edi
push 0x17
call esi
mov esi, eax
cmp esi, 0xffffffff
je 0x41c3f5
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x34]
push eax
push 0x2005
push 0xffff
push esi
mov dword [esp + 0x20], 0x274
call dword [sym.imp.WS2_32.dll_getsockopt]
neg eax
sbb eax, eax
inc eax
cmp eax, 0xffffffff
jne 0x41c3d2
push str.getsockopt
call ebx
push eax
call fcn.0041b8e6
pop ecx
pop ecx
test dword [esp + 0x30], 0x20000
jne 0x41c3e2
mov dword [0x442e7c], edi
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
cmp eax, 0xffffffff
jne 0x41c40f
push str.closesocket
jmp 0x41c405
call ebx
call fcn.0041c22e
test eax, eax
jne 0x41c40f
push str.socket
call ebx
push eax
call fcn.0041b8e6
pop ecx
pop ecx
mov ecx, dword [esp + 0x43c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041ef20
mov esp, ebp
pop ebp
ret

Function at 0x41da27
Capabilities:
Hash data via wincrypt

Disassembly:
mov eax, dword [esp + 8]
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x41da2e
sub eax, ecx
sar eax, 1
push 0
add eax, eax
push eax
push dword [esp + 0x10]
mov eax, dword [esp + 0x10]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x41da5c
call fcn.00403741
jmp 0x41da5e
xor eax, eax
ret 8
Function at 0x41e475
Capabilities:
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
sub esp, 0x80
lea ebp, [esp - 4]
mov eax, dword [0x43f600]
xor eax, ebp
mov dword [ebp + 0x80], eax
push 0x30
mov eax, 0x434038
call fcn.00424320
mov eax, dword [ebp + 0x8c]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x28], ebx
call fcn.0041e08e
mov dword [ebp - 0x20], eax
xor esi, esi
inc esi
lea edi, [ebp - 0x18]
mov dword [ebp - 4], esi
call fcn.0041e339
mov byte [ebp - 4], 2
mov dword [esp], 0x4397b0
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0040635c
mov byte [ebp - 4], 3
push dword [ebp - 0x20]
mov edi, dword [ebp - 0x24]
push edi
mov ecx, eax
call fcn.00406be1
mov dword [ebp - 0x28], esi
lea esi, [ebp - 0x1c]
call fcn.0040172e
lea esi, [ebp - 0x18]
call fcn.0040172e
lea esi, [ebp - 0x14]
call fcn.0040172e
mov dword [ebp - 4], 4
mov dword [ebp - 0x18], ebx
lea eax, [ebp - 0x18]
push eax
mov byte [ebp - 4], 5
call fcn.0041da61
cmp eax, ebx
pop ecx
jl 0x41e670
mov dword [ebp - 0x14], ebx
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push 0x8003
mov byte [ebp - 4], 6
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x41e54c
call fcn.00403741
jmp 0x41e54e
xor eax, eax
cmp eax, ebx
jl 0x41e663
push dword [edi]
lea eax, [ebp - 0x14]
push eax
call fcn.0041da27
cmp eax, ebx
jl 0x41e656
push 0x7f
lea eax, [ebp + 1]
push ebx
push eax
mov byte [ebp], bl
call fcn.00423bc0
add esp, 0xc
push ebx
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp]
push eax
push 2
push dword [ebp - 0x14]
mov dword [ebp - 0x20], 0x80
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x41e5a1
call fcn.00403741
jmp 0x41e5a3
xor eax, eax
cmp eax, ebx
jl 0x41e645
mov eax, edi
call fcn.00406e52
xor edi, edi
cmp edi, dword [ebp - 0x20]
jae 0x41e5f6
mov eax, dword [0x440448]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 4], 7
movzx eax, byte [ebp + edi]
push eax
lea eax, [ebp - 0x1c]
push str._02X
push eax
call fcn.0040127e
add esp, 0xc
push dword [ebp - 0x24]
lea eax, [ebp - 0x1c]
call fcn.00401171
lea esi, [ebp - 0x1c]
mov byte [ebp - 4], 6
call fcn.0040172e
inc edi
jmp 0x41e5b4
cmp dword [ebp - 0x14], ebx
je 0x41e607
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov dword [ebp - 0x14], ebx
cmp dword [ebp - 0x18], ebx
je 0x41e61f
push ebx
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test eax, eax
jne 0x41e61f
call fcn.00403741
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x80]
xor ecx, ebp
call fcn.0041ef20
add ebp, 0x84
leave
ret
mov dword [ebp - 0x38], eax
push 0x43b024
lea eax, [ebp - 0x38]
push eax
call fcn.00423ebb
mov dword [ebp - 0x34], eax
push 0x43b024
lea eax, [ebp - 0x34]
jmp 0x41e650
mov dword [ebp - 0x2c], eax
push 0x43b024
lea eax, [ebp - 0x2c]
jmp 0x41e650
mov dword [ebp - 0x30], eax
push 0x43b024
lea eax, [ebp - 0x30]
jmp 0x41e650
Function at 0x41e683
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
sub esp, 0x11c
lea ebp, [esp - 4]
mov eax, dword [0x43f600]
xor eax, ebp
mov dword [ebp + 0x11c], eax
push 0x34
mov eax, 0x433a4e
call fcn.004242ed
xor esi, esi
lea eax, [ebp - 0x40]
mov dword [ebp - 4], esi
push eax
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [0x440448]
mov dword [ebp - 0x14], eax
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
movzx eax, word [ebp - 0x40]
cmp eax, esi
je 0x41e6fe
cmp eax, 6
je 0x41e6f7
cmp eax, 9
je 0x41e6f0
push eax
lea eax, [ebp - 0x14]
push 0x4397c4
push eax
call fcn.0040127e
add esp, 0xc
jmp 0x41e70b
push 0x4397b8
jmp 0x41e703
push 0x4397bc
jmp 0x41e703
push 0x4397c0
lea eax, [ebp - 0x14]
call fcn.0041df78
mov eax, dword [0x440448]
mov dword [ebp], 0x11c
mov dword [edi], eax
lea eax, [ebp]
push eax
mov dword [ebp - 0x18], ebx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x41e889
mov eax, dword [0x440448]
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 2
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push dword [ebp + 4]
push str._ld__ld
push eax
call fcn.0040127e
mov eax, dword [ebp + 4]
add esp, 0x10
sub eax, 4
je 0x41e825
dec eax
je 0x41e7cc
dec eax
jne 0x41e864
mov eax, dword [ebp + 8]
sub eax, esi
je 0x41e7ad
dec eax
je 0x41e78e
dec eax
jne 0x41e864
cmp byte [ebp + 0x11a], bl
jne 0x41e864
push str.Win8
jmp 0x41e85b
lea eax, [ebp - 0x10]
cmp byte [ebp + 0x11a], bl
jne 0x41e7a3
push str.Win7
jmp 0x41e85e
push str.WinSrv2008R2
jmp 0x41e85e
lea eax, [ebp - 0x10]
cmp byte [ebp + 0x11a], bl
jne 0x41e7c2
push str.Vista
jmp 0x41e85e
push str.WinSrv2008
jmp 0x41e85e
mov eax, dword [ebp + 8]
sub eax, esi
je 0x41e81e
dec eax
je 0x41e817
dec eax
jne 0x41e864
cmp byte [ebp + 0x11a], bl
jne 0x41e7f3
cmp word [ebp - 0x40], 9
jne 0x41e7f3
push str.WinXpProfX64Edition
jmp 0x41e85b
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0x59
call esi
test eax, eax
jne 0x41e808
push str.WinSrv2003
jmp 0x41e85b
push 0x59
call esi
test eax, eax
je 0x41e864
push str.WinSrv2003R2
jmp 0x41e85b
push str.WinXP
jmp 0x41e85b
push str.Win2000
jmp 0x41e85b
cmp dword [ebp + 8], esi
je 0x41e844
cmp dword [ebp + 8], 0xa
je 0x41e83d
cmp dword [ebp + 8], 0x5a
jne 0x41e864
push str.WinMe
jmp 0x41e85b
push str.Win98
jmp 0x41e85b
cmp dword [ebp + 0x10], 2
jne 0x41e851
push str.WinNT4.0
jmp 0x41e85b
cmp dword [ebp + 0x10], ebx
jne 0x41e864
push str.Win95
lea eax, [ebp - 0x10]
push eax
call fcn.00401148
call fcn.0041dbd5
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
push str._s_ld_s_d
push edi
call fcn.0040127e
add esp, 0x18
lea esi, [ebp - 0x10]
call fcn.0040172e
lea esi, [ebp - 0x14]
call fcn.0040172e
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x11c]
xor ecx, ebp
call fcn.0041ef20
add ebp, 0x120
leave
ret
Function at 0x41eadc
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x440c58], 0
push esi
jne 0x41ea4f
call fcn.0041e975
test eax, eax
je 0x41ea92
mov eax, dword [0x440c58]
cmp eax, 1
jne 0x41ea70
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x41ea92
pop esi
ret
push eax
call dword [0x440c60]
test eax, eax
jne 0x41eada
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x41ea96
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x440c58]
call dword [0x440c60]
mov edi, eax
test edi, edi
je 0x41eabb
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x41ead7
mov edi, esi
add esi, 0xff0
push edi
push dword [0x440c58]
call dword [0x440c5c]
add edi, 0x10
cmp edi, esi
jb 0x41eac3
mov eax, edi
pop edi
pop esi
ret
jmp 0x41ea3c

Function at 0x41ef20
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43f600]
jne 0x41ef2a
repz ret
jmp fcn.004243f7

Function at 0x42e6b3
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00424f77
and dword [ebp - 4], 0
cmp dword [0x441854], 0
mov ebx, eax
jne 0x42e764
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x42e815
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x42e815
push eax
call fcn.00424f05
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x441854], eax
call esi
push eax
call fcn.00424f05
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x441858], eax
call esi
push eax
call fcn.00424f05
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x44185c], eax
call esi
push eax
call fcn.00424f05
pop ecx
mov dword [0x441864], eax
test eax, eax
je 0x42e764
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00424f05
pop ecx
mov dword [0x441860], eax
mov eax, dword [0x441860]
cmp eax, ebx
je 0x42e7bc
cmp dword [0x441864], ebx
je 0x42e7bc
push eax
call fcn.00424f80
push dword [0x441864]
mov esi, eax
call fcn.00424f80
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x42e7bc
test edi, edi
je 0x42e7bc
call esi
test eax, eax
je 0x42e7b3
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x42e7b3
test byte [ebp - 0xc], 1
jne 0x42e7bc
or dword [ebp + 0x10], 0x200000
jmp 0x42e7f5
mov eax, dword [0x441858]
cmp eax, ebx
je 0x42e7f5
push eax
call fcn.00424f80
pop ecx
test eax, eax
je 0x42e7f5
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x42e7f5
mov eax, dword [0x44185c]
cmp eax, ebx
je 0x42e7f5
push eax
call fcn.00424f80
pop ecx
test eax, eax
je 0x42e7f5
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x441854]
call fcn.00424f80
pop ecx
test eax, eax
je 0x42e815
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x42e817
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43296c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x43299d
call fcn.0042226e
mov dword [eax], esi
call fcn.0042225b
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0041fa4c
add esp, 0x14
push 0x16
pop eax
jmp 0x4329f2
test dword [ebp + 0xc], 0xfffffff9
jne 0x432979
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4329ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00422281
pop ecx
call fcn.0042225b
mov eax, dword [eax]
jmp 0x4329f2
test al, 0x10
jne 0x4329f0
test al, 1
je 0x4329f0
test byte [ebp + 0xc], 2
je 0x4329f0
call fcn.0042226e
mov dword [eax], 5
call fcn.0042225b
mov dword [eax], 0xd
jmp 0x4329c1
xor eax, eax
pop esi
pop ebp
ret
Function at 0x10003980
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0xc], 0
lea eax, [ebp - 0xc]
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x100039fd
lea ecx, [ebp - 8]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x100039fd
mov dword [ebp - 0x1c], 1
mov edx, dword [ebp - 8]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 2
push 0
push 0
push 0x10
lea ecx, [ebp - 0x1c]
push ecx
push 0
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x100039f6
mov dword [ebp - 0x20], 0
jmp 0x100039fd
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret