joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47d340
Capabilities:
Resolve dns

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push ebx
push ebp
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x1c]
xor ebx, ebx
mov dword [eax], ebx
mov eax, dword [esp + 0x20]
push edx
push eax
push ecx
mov dword [esp + 0x1c], ebx
xor ebp, ebp
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [esp + 8], eax
cmp eax, ebx
jne 0x47d494
push edi
mov edi, dword [esp + 0x14]
cmp edi, ebx
je 0x47d489
push esi
push 0x20
call dword [0x64f868]
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x47d427
mov edx, dword [edi]
mov dword [esi], edx
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov ecx, dword [edi + 8]
mov dword [esi + 8], ecx
mov edx, dword [edi + 0xc]
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x1c], ebx
mov eax, dword [edi + 0x10]
cmp eax, ebx
jbe 0x47d3ef
cmp dword [edi + 0x18], ebx
je 0x47d3ef
push eax
mov dword [esi + 0x10], eax
call dword [0x64f868]
add esp, 4
mov dword [esi + 0x18], eax
cmp eax, ebx
je 0x47d431
mov ecx, dword [esi + 0x10]
mov edx, dword [edi + 0x18]
push ecx
push edx
push eax
call fcn.0058c780
add esp, 0xc
mov eax, dword [edi + 0x14]
cmp eax, ebx
je 0x47d407
push eax
call dword [0x64f874]
add esp, 4
mov dword [esi + 0x14], eax
cmp eax, ebx
je 0x47d43b
cmp dword [esp + 0x14], ebx
jne 0x47d411
mov dword [esp + 0x14], esi
cmp ebp, ebx
je 0x47d418
mov dword [ebp + 0x1c], esi
mov edi, dword [edi + 0x1c]
mov ebp, esi
cmp edi, ebx
jne 0x47d387
jmp 0x47d45e
mov dword [esp + 0x10], 8
jmp 0x47d45e
mov dword [esp + 0x10], 8
jmp 0x47d454
mov eax, dword [esi + 0x18]
mov dword [esp + 0x10], 8
cmp eax, ebx
je 0x47d454
push eax
call dword [0x64f86c]
add esp, 4
push esi
call dword [0x64f86c]
add esp, 4
mov eax, dword [esp + 0x18]
pop esi
cmp eax, ebx
je 0x47d46e
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [esp + 0xc], ebx
je 0x47d485
mov eax, dword [esp + 0x10]
push eax
call fcn.0047d2f0
add esp, 4
mov dword [esp + 0x10], ebx
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x28]
mov dword [edx], ecx
pop edi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x47d680
Capabilities:
Create udp socket

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
push 0x48
push 1
mov esi, eax
mov ebx, ecx
call dword [0x64f878]
mov edi, eax
xor eax, eax
add esp, 8
mov dword [esp + 0x10], 0xc
mov dword [ebx + 0x350], edi
cmp edi, eax
je 0x47d73f
mov dword [ebx + 0x340], esi
mov dword [ebx + 0x348], eax
mov dword [ebx + 0x34c], eax
mov dword [ebx + 0x344], eax
mov dword [edi], eax
mov eax, dword [esp + 0x18]
push esi
lea ebp, [edi + 0x10]
push eax
mov esi, ebp
mov dword [edi + 4], 0xffffffff
call fcn.0047d4f0
add esp, 8
test eax, eax
je 0x47d73f
mov ecx, dword [ebx + 0x33c]
push ecx
call fcn.0046dfb0
mov edx, dword [esp + 0x1c]
push edx
call dword [0x64f874]
add esp, 8
mov dword [ebx + 0x33c], eax
test eax, eax
je 0x47d73f
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi + 4], eax
cmp eax, 0xffffffff
je 0x47d73f
push ebp
push 0x47d590
call fcn.004a6300
add esp, 8
mov dword [edi], eax
test eax, eax
jne 0x47d761
call fcn.0058da15
mov eax, dword [eax]
mov dword [esp + 0x10], eax
add ebx, 0x33c
push ebx
call fcn.0047d620
mov ecx, dword [esp + 0x14]
add esp, 4
push ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret
Function at 0x481fc0
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
push str.Connected_for_receive
push 0x600b18
push ecx
call fcn.00477120
add esp, 0xc
mov eax, esi
mov dword [esi], 1
call fcn.00481190
test eax, eax
jne 0x481ff0
mov eax, esi
jmp fcn.004815c0
ret
Function at 0x482410
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x88
mov eax, dword [0x65ee20]
xor eax, esp
mov dword [esp + 0x84], eax
push ebx
push ebp
mov ebp, dword [esp + 0x94]
push esi
mov esi, dword [ebp + 0x360]
push edi
mov edi, dword [ebp]
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 0x80
mov edx, dword [esi + 0x154]
mov eax, dword [esi + 0x15c]
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esi + 0x14]
push 0
add edx, 4
push edx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [esi + 0x148], 0
mov dword [esi + 0x14c], eax
jne 0x482499
mov edx, dword [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esi + 0xc8]
push ecx
call fcn.0058c780
mov edx, dword [esp + 0x1c]
add esp, 0xc
mov dword [esi + 0x148], edx
mov ecx, dword [esi + 0x14c]
cmp ecx, 4
jge 0x4824d4
push str.Received_too_short_packet
push edi
call fcn.004771b0
add esp, 8
mov dword [esi + 0xc], 7
xor eax, eax
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0058845d
add esp, 0x88
ret
mov edx, dword [esi + 0x15c]
movzx ax, byte [edx]
movzx edx, byte [edx + 1]
shl ax, 8
movzx eax, ax
or eax, edx
mov dword [esi + 0xc], eax
add eax, 0xfffffffd
cmp eax, 3
ja case.default.0x4824fa
jmp dword [eax*4 + 0x482614]
cmp ecx, 4
jle case.0x4824fa.4
mov eax, dword [esi + 0x15c]
movzx dx, byte [eax + 2]
movzx eax, byte [eax + 3]
shl dx, 8
movzx edx, dx
or edx, eax
movzx eax, word [esi + 0x40]
inc eax
and eax, 0xffff
cmp eax, edx
jne case.0x4824fa.4
add ecx, 0xfffffffc
push ecx
mov ecx, dword [esi + 0x15c]
add ecx, 4
push ecx
push 1
push ebp
call fcn.00477480
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x482566
mov ecx, 5
mov eax, esi
call fcn.00482390
mov eax, ebx
jmp 0x4824bb
mov eax, dword [esi + 0x14c]
sub eax, 4
cdq
add dword [edi + 0x38], eax
mov eax, dword [edi + 0x38]
adc dword [edi + 0x3c], edx
mov edx, dword [edi + 0x3c]
push edx
push eax
push edi
call fcn.0047b700
jmp 0x4825e8
mov eax, dword [esi + 0x15c]
movzx cx, byte [eax + 2]
movzx eax, byte [eax + 3]
shl cx, 8
movzx edx, cx
mov ecx, dword [esi + 0x15c]
add ecx, 4
push ecx
or edx, eax
push 0x600b18
push edi
mov dword [esi + 8], edx
call fcn.00477120
jmp 0x4825e8
mov edx, dword [esi + 0x15c]
add ecx, 0xfffffffe
push ecx
add edx, 2
push edx
push esi
call fcn.00481370
add esp, 0xc
test eax, eax
je case.0x4824fa.4
jmp 0x4824bb
push str.Internal_error:_Unexpected_packet
push 0x5fc1f4
push edi
call fcn.004771b0
add esp, 0xc
push ebp
call fcn.0047b7c0
add esp, 4
test eax, eax
je 0x4824b9
mov ecx, 5
mov eax, esi
call fcn.00482390
mov eax, 0x2a
jmp 0x4824bb
Function at 0x4842d0
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
mov edx, dword [edi + 0xc8]
mov al, byte [esp + 8]
push esi
mov esi, dword [edi]
push 0
push 3
lea ecx, [esp + 0xc]
push ecx
push edx
mov byte [esp + 0x14], 0xff
mov byte [esp + 0x15], al
mov byte [esp + 0x16], bl
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jge 0x484314
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.004771b0
add esp, 0xc
mov esi, dword [esp + 0xc]
mov ecx, dword [edi]
push str.SENT
mov eax, ebx
call fcn.004841d0
add esp, 4
pop esi
pop ecx
ret
Function at 0x485970
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x18
mov eax, dword [0x65ee20]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
push ebp
mov ebp, dword [esi]
push edi
mov edi, dword [esi + 0xcc]
push 1
push 0
push esi
or ebx, 0xffffffff
mov dword [esp + 0x18], 0x10
call fcn.004775e0
add esp, 0xc
test eax, eax
jle 0x4859d9
mov ecx, 0x3e8
cmp eax, ecx
jge 0x4859b0
mov ecx, eax
push ecx
push 0xffffffffffffffff
push edi
call fcn.0048dd30
add esp, 0xc
cmp eax, 0xffffffff
je 0x485a71
test eax, eax
jne 0x4859fe
push 1
push eax
push esi
call fcn.004775e0
add esp, 0xc
test eax, eax
jg 0x4859a5
push str.Timeout_while_waiting_for_server_connect
push ebp
call fcn.004771b0
add esp, 8
pop edi
pop ebp
mov eax, 0x1c
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0058845d
add esp, 0x18
ret
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x485a2e
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x14]
push eax
push edi
mov dword [esp + 0x18], 0x10
call dword [sym.imp.WS2_32.dll_accept]
mov ebx, eax
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
cmp ebx, 0xffffffff
jne 0x485a41
push str.Error_accept__ing_server_connect
jmp 0x485a76
push str.Connection_accepted_from_server_n
push ebp
call fcn.00477120
push 1
push ebx
mov dword [esi + 0xcc], ebx
call fcn.00492b10
add esp, 0x10
pop edi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.0058845d
add esp, 0x18
ret
push str.Error_while_waiting_for_server_connect
push ebp
call fcn.004771b0
mov ecx, dword [esp + 0x28]
add esp, 8
pop edi
pop ebp
pop ebx
xor ecx, esp
mov eax, 0x1e
call fcn.0058845d
add esp, 0x18
ret
Function at 0x48dd30
Capabilities:
Check for time delay via gettickcount
Get socket status

Disassembly:
sub esp, 0x320
push ebp
mov ebp, dword [esp + 0x328]
push esi
xor esi, esi
push edi
mov edi, dword [esp + 0x334]
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], esi
cmp ebp, 0xffffffff
jne 0x48dd92
cmp edi, ebp
jne 0x48dd92
mov eax, dword [esp + 0x338]
cmp eax, esi
je 0x48dd86
jge 0x48dd7f
push 0x2726
call dword [sym.imp.WS2_32.dll_WSASetLastError]
pop edi
pop esi
or eax, 0xffffffff
pop ebp
add esp, 0x320
ret
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x320
ret
push ebx
mov ebx, dword [esp + 0x33c]
cmp ebx, esi
jle 0x48ddad
mov esi, ebx
call fcn.0048f820
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
xor ecx, ecx
xor eax, eax
or edx, 0xffffffff
mov dword [esp + 0x24], ecx
mov dword [esp + 0x128], eax
cmp ebp, 0xffffffff
je 0x48dde1
mov ecx, 1
mov dword [esp + 0x12c], ebp
mov dword [esp + 0x128], ecx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x24], ecx
mov edx, ebp
mov dword [esp + 0x22c], eax
cmp edi, 0xffffffff
je 0x48de27
mov dword [esp + 0x230], edi
mov dword [esp + 0x22c], 1
test ecx, ecx
jbe 0x48de0e
cmp dword [esp + eax*4 + 0x28], edi
je 0x48de0e
inc eax
cmp eax, ecx
jb 0x48de03
cmp eax, ecx
jne 0x48de1f
cmp ecx, 0x40
jae 0x48de1f
mov dword [esp + eax*4 + 0x28], edi
inc dword [esp + 0x24]
xor eax, eax
cmp edi, edx
jbe 0x48de27
mov edx, edi
xor ecx, ecx
cmp ebx, eax
setl cl
lea edi, [esp + 0x18]
dec ecx
and ecx, edi
inc edx
mov ebp, ecx
mov dword [esp + 0x20], edx
jmp 0x48de42
xor eax, eax
cmp ebx, eax
jle 0x48de71
mov eax, 0x10624dd3
imul esi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x18], eax
imul eax, eax, 0x3e8
mov edx, esi
sub edx, eax
imul edx, edx, 0x3e8
mov dword [esp + 0x1c], edx
jmp 0x48de7b
jne 0x48de7b
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
push ebp
lea eax, [esp + 0x28]
push eax
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x234]
push ecx
lea edx, [esp + 0x134]
push edx
push eax
call dword [sym.imp.WS2_32.dll_select]
mov edi, eax
cmp edi, 0xffffffff
jne 0x48dedd
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
je 0x48deb4
cmp eax, 0x2714
jne 0x48dedd
test ebx, ebx
jle 0x48de40
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
call fcn.0048f820
push edx
push eax
call fcn.0048f850
mov esi, ebx
sub esi, eax
add esp, 0x10
test esi, esi
jg 0x48de40
pop ebx
test edi, edi
jl 0x48dd72
je 0x48dd86
mov edi, dword [esp + 0x330]
xor esi, esi
cmp edi, 0xffffffff
je 0x48df23
lea eax, [esp + 0x124]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x48df11
mov esi, 1
lea ecx, [esp + 0x20]
push ecx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x48df23
or esi, 4
mov edi, dword [esp + 0x334]
cmp edi, 0xffffffff
je 0x48df56
lea edx, [esp + 0x228]
push edx
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x48df44
or esi, 2
lea eax, [esp + 0x20]
push eax
push edi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x48df56
or esi, 4
pop edi
mov eax, esi
pop esi
pop ebp
add esp, 0x320
ret
Function at 0x48ec60
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], 0
mov dword [eax], 0
call fcn.0048f820
mov esi, dword [esp + 0x1c]
mov ecx, dword [esi + 0xc4]
push ecx
mov ecx, dword [esi + 0xc0]
push ecx
push edx
push eax
call fcn.0048f850
mov ebx, dword [esp + 0x40]
add esp, 0x10
cmp eax, ebx
jg 0x48ed1a
mov edi, dword [esp + 0x28]
mov ebp, dword [esp + 0x24]
lea ebx, [ebx]
mov edx, ebx
sub edx, eax
mov eax, dword [esp + 0x20]
push edx
push 0xffffffffffffffff
push eax
call fcn.0048dd30
add esp, 0xc
test eax, eax
jle 0x48ed3d
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x14]
push ecx
push edi
push ebp
push edx
call fcn.00476e10
add esp, 0x10
cmp eax, 0x51
je 0x48ecf9
test eax, eax
jne 0x48ed40
mov eax, dword [esp + 0x14]
cmp edi, eax
je 0x48ed27
test eax, eax
je 0x48ed3d
sub edi, eax
add ebp, eax
add dword [esp + 0x10], eax
call fcn.0048f820
mov ecx, dword [esi + 0xc4]
push ecx
mov ecx, dword [esi + 0xc0]
push ecx
push edx
push eax
call fcn.0048f850
add esp, 0x10
cmp eax, ebx
jle 0x48ecb0
pop edi
pop esi
pop ebp
mov eax, 0x1c
pop ebx
add esp, 8
ret
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
add eax, edx
pop ebp
mov dword [ecx], eax
xor eax, eax
pop ebx
add esp, 8
ret
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret

Function at 0x48f8b0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x65ee20]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call fcn.00591983
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x48f915
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x48f915
lea edx, [esp]
push edx
call dword [0x64f874]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0058845d
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor ecx, esp
xor eax, eax
call fcn.0058845d
add esp, 0x108
ret
jmp 0x48f8b0

Function at 0x48f930
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x65ee20]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call fcn.00591983
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x48f915
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x48f915
lea edx, [esp]
push edx
call dword [0x64f874]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0058845d
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor ecx, esp
xor eax, eax
call fcn.0058845d
add esp, 0x108
ret
jmp 0x48f8b0
Function at 0x492cc0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
mov eax, 0x474
call fcn.005890e0
mov eax, dword [0x65ee20]
xor eax, esp
mov dword [esp + 0x470], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [esp + 0x3c], 0
test esi, esi
jne 0x492d07
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x470]
xor ecx, esp
call fcn.0058845d
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x48]
push eax
push esi
call fcn.00591aa6
mov edi, eax
add esp, 8
mov eax, 8
call fcn.005890e0
fldz
fstp qword [esp]
lea ecx, [esp + 0x50]
push 0x30
push ecx
call fcn.00492b30
add esp, 0x10
test edi, edi
jl 0x492cf0
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x492cf0
push 0x5ec1fc
push esi
call fcn.00588ff6
add esp, 8
mov dword [esp + 0x40], eax
test eax, eax
je 0x492de1
jmp 0x492d64
mov eax, dword [esp + 0x40]
test ebx, ebx
jle 0x492d72
cmp ebx, 0x400
mov esi, ebx
jl 0x492d77
mov esi, 0x400
push eax
push esi
lea edx, [esp + 0x80]
push 1
push edx
call fcn.00588e30
mov edi, eax
add esp, 0x10
mov dword [esp + 0x44], edi
test edi, edi
jle 0x492dc5
fild dword [esp + 0x44]
mov eax, 8
call fcn.005890e0
lea eax, [esp + 0x80]
fstp qword [esp]
push esi
push eax
call fcn.00492b30
add dword [esp + 0x4c], edi
add esp, 0x10
test ebx, ebx
jle 0x492d60
sub ebx, esi
test ebx, ebx
jg 0x492d60
mov ecx, dword [esp + 0x40]
push ecx
call fcn.00588a05
lea edx, [esp + 0x7c]
push 0x400
push edx
call fcn.004ab260
add esp, 0xc
mov ecx, dword [esp + 0x47c]
mov eax, dword [esp + 0x3c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0058845d
mov esp, ebp
pop ebp
ret
Function at 0x499b70
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
mov eax, 0x74
call fcn.005890e0
mov eax, dword [0x65ee20]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x499cf5
call fcn.004ab770
test eax, eax
je 0x499cf5
push 0
push 0
push 0
push str.DISPLAY
call dword [sym.imp.GDI32.dll_CreateDCA]
mov edi, eax
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov esi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 8
mov ebx, eax
push edi
mov dword [esp + 0x48], ebx
call esi
push 0xa
push edi
mov dword [esp + 0x4c], eax
call esi
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x44]
push 0x10
push eax
push edi
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
mov esi, eax
push esi
push ebx
mov dword [esp + 0x50], esi
call dword [sym.imp.GDI32.dll_SelectObject]
lea ecx, [esp + 0x50]
push ecx
push 0x18
push esi
mov dword [esp + 0x58], eax
call dword [sym.imp.GDI32.dll_GetObjectA]
movzx esi, word [esp + 0x60]
imul esi, dword [esp + 0x58]
imul esi, dword [esp + 0x5c]
push 0x2d5
push str..crypto_rand_rand_win.c
push esi
call fcn.0049b9a0
add esp, 0xc
mov dword [esp + 0x3c], eax
test eax, eax
je 0x499cd6
mov ecx, dword [esp + 0x38]
add ecx, 0xfffffff0
xor ebx, ebx
mov dword [esp + 0x38], ecx
test ecx, ecx
jle 0x499cc9
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
push 0xcc0020
push ebx
push 0
push edi
push 0x10
push edx
push 0
push 0
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x48]
push ecx
push esi
push edx
call dword [sym.imp.GDI32.dll_GetBitmapBits]
push 0
call fcn.004b8c20
mov ecx, dword [esp + 0x40]
push eax
push 0
lea eax, [esp + 0x74]
push eax
push esi
push ecx
call fcn.004b1850
add esp, 0x18
mov eax, 8
call fcn.005890e0
fldz
fstp qword [esp]
lea edx, [esp + 0x70]
push 0x14
push edx
call fcn.00492b30
add ebx, 0x10
add esp, 0x10
cmp ebx, dword [esp + 0x38]
jl 0x499c51
mov eax, dword [esp + 0x3c]
push eax
call fcn.0049bb50
mov ebx, dword [esp + 0x44]
add esp, 4
mov eax, dword [esp + 0x4c]
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
mov esi, dword [sym.imp.GDI32.dll_DeleteDC]
push ebx
call esi
push edi
call esi
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0058845d
mov esp, ebp
pop ebp
ret
Function at 0x49a450
Capabilities:
Capture screenshot

Disassembly:
call fcn.00499d10
jmp fcn.00499b70

Function at 0x4a6300
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push 0
push 0
push eax
push ecx
push 0
push 0
call fcn.0058db7c
add esp, 0x18
test eax, eax
je 0x4a6323
cmp eax, 0xffffffff
jne 0x4a6325
xor eax, eax
ret

Function at 0x4a6360
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, dword [esp + 4]
push ebx
mov ebx, dword [eax + 0x2c]
push esi
push edi
mov edi, dword [ebx]
mov esi, dword [edi + 0x1a4]
test esi, esi
jne 0x4a6379
mov esi, dword [eax + 0x28]
mov ecx, dword [eax + 0x24]
mov edx, dword [eax + 0x20]
push ecx
push edx
call fcn.0048f820
push edx
push eax
call fcn.0048f850
add esp, 0x10
sub esi, eax
cmp dword [edi + 0x19c], 0
je 0x4a63c6
mov eax, dword [ebx + 0xbc]
mov ecx, dword [ebx + 0xb8]
push eax
push ecx
call fcn.0048f820
push edx
push eax
call fcn.0048f850
mov ecx, dword [edi + 0x19c]
sub ecx, eax
add esp, 0x10
cmp esi, ecx
mov eax, ecx
jge 0x4a63c8
mov eax, esi
pop edi
pop esi
pop ebx
ret

Function at 0x4a9380
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x58], ecx
lea eax, [ecx + 1]
ret
Function at 0x4ab850
Capabilities:
Access the windows event log

Disassembly:
mov eax, 0x108
call fcn.005890e0
mov eax, dword [0x65ee20]
xor eax, esp
mov dword [esp + 0x104], eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x4ab8b5
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x4ab8b5
mov ecx, dword [esp + 0x10c]
lea eax, [esp + 0x110]
push eax
push ecx
call fcn.0058d33b
add eax, 0x40
push eax
call fcn.0059258b
add esp, 0xc
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0058845d
add esp, 0x108
ret
mov eax, dword [esp + 0x10c]
lea edx, [esp + 0x110]
push edx
push eax
lea ecx, [esp + 0xc]
push 0xff
push ecx
call fcn.00592453
add esp, 0x10
mov byte [esp + 0x103], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x4ab944
call fcn.004ab770
test eax, eax
je 0x4ab944
push esi
push str.OPENSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
push 0
mov esi, eax
lea eax, [esp + 8]
push eax
push 0
push 1
push 0
push 0
push 0
push 1
lea edx, [esp + 0x28]
push esi
mov dword [esp + 0x28], edx
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0058845d
add esp, 0x108
ret
push 0x10
push str.OpenSSL:_FATAL
lea ecx, [esp + 0xc]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0058845d
add esp, 0x108
ret