joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407fb5
Capabilities:
Get session information
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
lea ecx, [ebp - 0x1c]
call fcn.00403a4f
lea ecx, [ebp - 0x18]
call fcn.00403a4f
lea ecx, [ebp - 0x20]
call fcn.00403a4f
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0041680f
add esp, 0xc
xor ebx, ebx
test eax, eax
jl 0x4080a8
lea ecx, [ebp - 0x14]
call fcn.00403a4f
lea ecx, [ebp - 0x10]
call fcn.00403a4f
push dword [ebp - 0x1c]
mov esi, 0x425334
push dword [ebp - 0x18]
lea eax, [ebp - 0x14]
push esi
push eax
call fcn.0040aa40
add esp, 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push 5
push 0xffffffffffffffff
push ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
test eax, eax
je 0x408122
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 7
push 0xffffffffffffffff
push ebx
mov dword [ebp - 4], ebx
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
push dword [ebp - 8]
lea eax, [ebp - 0x10]
push dword [ebp - 0xc]
push esi
push eax
call fcn.0040aa40
add esp, 0x10
push dword [ebp - 8]
call sub.WTSAPI32.dll_WTSFreeMemory
push dword [ebp - 0xc]
call sub.WTSAPI32.dll_WTSFreeMemory
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0x14]
push esi
push edi
call dword [0x42409c]
test eax, eax
lea eax, [esi - 0x10]
jne 0x40809b
call fcn.004045a2
lea eax, [edi - 0x10]
call fcn.004045a2
jmp 0x4080fa
call fcn.004045a2
lea eax, [edi - 0x10]
call fcn.004045a2
lea ecx, [ebp - 0x10]
call fcn.00403a4f
lea ecx, [ebp - 0x14]
call fcn.00403a4f
push 0x23b7
lea eax, [ebp - 0x14]
push eax
call fcn.00403b50
push 0x23b8
lea eax, [ebp - 0x10]
push eax
call fcn.00403b50
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x10]
push 0x50040
push esi
push edi
push ebx
call dword [fcn.00424298]
lea eax, [esi - 0x10]
call fcn.004045a2
lea eax, [edi - 0x10]
call fcn.004045a2
mov bl, 1
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
call fcn.004045a2
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.004045a2
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.004045a2
pop edi
pop esi
mov al, bl
pop ebx
leave
ret
call dword [fcn.004240d4]
cmp eax, 5
je 0x40813c
mov edi, 0x96ab93
mov eax, 0x431e90
call fcn.00411031
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.004045a2
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
jmp 0x408094
Function at 0x408f1b
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1dc
cmp byte [0x43149f], 0
jne 0x40907b
lea eax, [ebp - 0x1dc]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x409075
call fcn.00403e1c
push 0x3a
mov dword [ebp - 0x10], eax
pop eax
mov ecx, 0x4264b0
cmp dword [ecx], 0x2c
je 0x408f6c
sub ecx, 0x10
dec eax
cmp ecx, 0x426110
jge 0x408f5b
push ebx
push esi
shl eax, 4
mov ecx, dword [eax + 0x426114]
mov ebx, dword [eax + 0x42611c]
push edi
mov edi, dword [eax + 0x426118]
push 4
mov dword [ebp - 8], ecx
pop eax
cmp dword [eax*8 + 0x4264c0], ecx
je 0x408f96
dec eax
jns 0x408f8a
mov esi, dword [eax*8 + 0x4264c4]
lea ecx, [ebp - 0xc]
call fcn.00403a4f
push edi
lea eax, [ebp - 0xc]
push eax
call fcn.00403b50
lea ecx, [ebp - 4]
call fcn.00403a4f
push ebx
lea eax, [ebp - 4]
push eax
call fcn.00403b50
mov edi, dword [ebp - 4]
xor ebx, ebx
inc ebx
cmp byte [0x431477], 0
je 0x408fde
mov esi, dword [ebp - 0xc]
push esi
push dword [ebp - 8]
call fcn.0040b227
jmp 0x409052
lea ecx, [ebp - 4]
call fcn.00403a4f
lea eax, [ebp - 0x4c]
call fcn.0041d08b
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [ecx - 0xc], eax
mov dword [ebp - 0x24], 0x3e8
jne 0x409007
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], eax
jmp 0x409018
mov dword [ebp - 0x1c], 0x40b2f1
lea eax, [ebp - 4]
mov dword [ebp - 0x14], 1
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
push edi
mov eax, esi
mov esi, dword [ebp - 0xc]
push esi
push dword [ecx + 4]
lea ecx, [ebp - 0x4c]
or eax, 0x50000
push ecx
call fcn.0041d0e8
mov ebx, eax
lea eax, [ebp - 0x38]
mov dword [ebp - 0x4c], 0x429bf4
call fcn.0041d951
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.004045a2
lea eax, [edi - 0x10]
call fcn.004045a2
lea eax, [esi - 0x10]
call fcn.004045a2
push 1
push 0x3009
call fcn.0040587b
pop ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor eax, eax
leave
ret
Function at 0x40ff5f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
xor edi, edi
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp + 8]
mov dword [ebp - 8], edi
push dword [ebx]
mov dword [ebp - 0xc], edi
call esi
cmp eax, edi
jle 0x40ff94
and eax, 0xffff
or eax, 0x80070000
cmp eax, edi
mov dword [ebp - 4], eax
jne 0x40ffe9
mov eax, dword [ebp - 8]
shr eax, 1
lea eax, [eax + eax + 2]
push eax
call fcn.0040f85a
cmp eax, edi
pop ecx
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
je 0x40ffe2
cmp dword [ebp - 8], edi
je 0x40ffdd
lea ecx, [ebp - 8]
push ecx
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp + 8]
push dword [ebx]
call esi
cmp eax, edi
jle 0x40ffd8
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
jmp 0x40ffe9
mov word [eax], di
jmp 0x40ffe9
mov dword [ebp - 4], 0x8007000e
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 8

Function at 0x4100ac
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0xc]
push 4
push 0
push dword [esp + 0x18]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jle 0x4100d5
and eax, 0xffff
or eax, 0x80070000
ret 0xc

Function at 0x4100d8
Capabilities:
Set registry value

Disassembly:
push 8
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0xc]
push 0xb
push 0
push dword [esp + 0x18]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jle 0x410101
and eax, 0xffff
or eax, 0x80070000
ret 0x10

Function at 0x410104
Capabilities:
Set registry value

Disassembly:
push dword [esp + 0xc]
call dword [fcn.00424078]
lea eax, [eax + eax + 2]
push eax
push dword [esp + 0x10]
mov eax, dword [esp + 0xc]
push 1
push 0
push dword [esp + 0x18]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jle 0x410139
and eax, 0xffff
or eax, 0x80070000
ret 0xc

Function at 0x410333
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push esi
push edi
push 0xf003f
push dword [ebp + 8]
xor esi, esi
push dword [ecx]
lea eax, [ebp - 4]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], esi
call fcn.0040fc40
cmp eax, esi
jne 0x4103ad
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x410377
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 4]
call fcn.00410333
cmp eax, esi
jne 0x4103ad
lea eax, [ebp - 0x14]
push eax
push esi
push esi
push esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 8], pe_nt_image_headers32
call edi
test eax, eax
je 0x410364
lea esi, [ebp - 4]
call fcn.0040fbc8
push dword [ebp + 8]
mov eax, dword [ebp - 0xc]
call fcn.0040fb6c
lea esi, [ebp - 4]
mov edi, eax
call fcn.0040fbc8
mov eax, edi
pop edi
pop esi
leave
ret 4
Function at 0x413051
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
xor eax, eax
add edx, 0x89
cmp dword [ebp + 8], eax
jbe 0x413079
push ebx
inc eax
mov dword [ebp - 4], eax
add al, dl
mov bl, 0x21
imul bl
xor byte [ecx], al
mov eax, dword [ebp - 4]
inc ecx
cmp eax, dword [ebp + 8]
jb 0x413063
pop ebx
leave
ret

Function at 0x4140f9
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
jg 0x414106
xor eax, eax
pop ebp
ret
mov eax, dword [ebp + 0xc]
push ebx
push edi
push 3
pop edi
jmp 0x41416a
sub dword [ebp + 0x10], 4
js 0x4141f4
movzx edx, byte [ecx]
shr edx, 2
mov dl, byte [edx + esi]
mov byte [eax], dl
movzx ebx, byte [ecx + 1]
xor edx, edx
mov dl, byte [ecx]
shr ebx, 4
add eax, 4
and edx, edi
shl edx, 4
add edx, esi
mov dl, byte [ebx + edx]
mov byte [eax - 3], dl
movzx ebx, byte [ecx + 2]
xor edx, edx
mov dl, byte [ecx + 1]
shr ebx, 6
add ebx, esi
and edx, 0xf
mov dl, byte [ebx + edx*4]
mov byte [eax - 2], dl
xor edx, edx
mov dl, byte [ecx + 2]
add ecx, edi
and edx, 0x3f
mov dl, byte [edx + esi]
sub dword [ebp + 8], edi
mov byte [eax - 1], dl
cmp dword [ebp + 8], 2
jg 0x414110
mov edx, dword [ebp + 8]
dec edx
je 0x4141c6
dec edx
jne 0x414201
sub dword [ebp + 0x10], edi
js 0x4141f4
movzx edx, byte [ecx]
shr edx, 2
mov dl, byte [edx + esi]
mov byte [eax], dl
movzx ebx, byte [ecx + 1]
xor edx, edx
mov dl, byte [ecx]
shr ebx, 4
and edx, edi
shl edx, 4
add edx, esi
mov dl, byte [ebx + edx]
mov byte [eax + 1], dl
movzx ecx, byte [ecx + 1]
and ecx, 0xf
mov cl, byte [esi + ecx*4]
mov byte [eax + 2], cl
add eax, edi
cmp byte [ebp + 0x14], 0
je 0x414201
mov ecx, dword [ebp + 0x10]
dec ecx
js 0x4141f4
mov byte [eax], 0x3d
inc eax
jmp 0x414201
mov edx, dword [ebp + 0x10]
sub edx, 2
js 0x4141f4
movzx ebx, byte [ecx]
shr ebx, 2
mov bl, byte [ebx + esi]
mov byte [eax], bl
movzx ecx, byte [ecx]
and ecx, edi
shl ecx, 4
mov cl, byte [ecx + esi]
mov byte [eax + 1], cl
inc eax
inc eax
cmp byte [ebp + 0x14], 0
je 0x414201
add edx, 0xfffffffe
jns 0x4141f8
xor eax, eax
jmp 0x414204
mov byte [eax], 0x3d
mov byte [eax + 1], 0x3d
inc eax
inc eax
sub eax, dword [ebp + 0xc]
pop edi
pop ebx
pop ebp
ret
Function at 0x41b414
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
or dword [ebp - 0x14], 0xffffffff
push ebx
push esi
push edi
xor edi, edi
mov esi, 0x80004005
push 0x429a5c
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x10], edi
call dword [fcn.004240e0]
mov ebx, eax
cmp ebx, edi
mov dword [ebp - 0x24], ebx
jne 0x41b452
mov eax, esi
jmp 0x41b607
mov esi, dword [fcn.00424118]
push 0x429a4c
push ebx
call esi
cmp eax, edi
mov dword [ebp - 0xc], eax
je 0x41b5bf
push 0x429a38
push ebx
call esi
cmp eax, edi
mov dword [ebp - 0x30], eax
je 0x41b5bf
push 0x429a24
push ebx
call esi
cmp eax, edi
mov dword [ebp - 0x2c], eax
je 0x41b5bf
push 0x429a10
push ebx
call esi
mov ebx, eax
cmp ebx, edi
je 0x41b5bf
push 0x4299fc
push dword [ebp - 0x24]
call esi
cmp eax, edi
mov dword [ebp - 0x20], eax
je 0x41b5bf
push 0x4299ec
push dword [ebp - 0x24]
call esi
cmp eax, edi
mov dword [ebp - 0x38], eax
je 0x41b5bf
push edi
push edi
push edi
push edi
push edi
call dword [ebp - 0xc]
cmp eax, edi
mov dword [ebp - 4], eax
je 0x41b5bf
mov eax, dword [ebp + 0x10]
push 4
pop esi
push esi
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
push 2
push dword [ebp - 4]
call ebx
push esi
lea eax, [ebp - 0x1c]
push eax
push 6
push dword [ebp - 4]
call ebx
push esi
lea eax, [ebp - 0x1c]
push eax
push 5
push dword [ebp - 4]
call ebx
push edi
push 0x80000000
push edi
push edi
push dword [ebp + 8]
push dword [ebp - 4]
call dword [ebp - 0x30]
cmp eax, edi
mov dword [ebp - 8], eax
je 0x41b5bf
or dword [ebp - 0x28], 0xffffffff
push edi
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x28]
push eax
push 0x20000013
push dword [ebp - 8]
mov dword [ebp - 0x34], esi
call dword [ebp - 0x38]
cmp dword [ebp - 0x28], 0xc8
je 0x41b556
mov dword [ebp - 0x18], 0x80004005
jmp 0x41b5bf
push edi
push edi
push 2
push edi
push edi
push 0x40000000
push dword [ebp + 0xc]
call dword [0x42407c]
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
je 0x41b5bf
mov esi, 0x10000
push esi
call fcn.0040f85a
pop ecx
mov dword [ebp - 0x10], eax
cmp eax, edi
jmp 0x41b5a3
cmp dword [ebp - 0xc], edi
je 0x41b5bc
push edi
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0xc]
mov dword [ebp - 0x38], edi
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call dword [0x42412c]
test eax, eax
je 0x41b5bf
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp - 0x10]
mov dword [ebp - 0xc], edi
push dword [ebp - 8]
call dword [ebp - 0x2c]
test eax, eax
jne 0x41b585
jmp 0x41b5bf
mov dword [ebp - 0x18], edi
push dword [ebp - 0x10]
call fcn.0040f86e
cmp dword [ebp - 8], edi
pop ecx
je 0x41b5d3
push dword [ebp - 8]
call dword [ebp - 0x20]
cmp dword [ebp - 4], edi
je 0x41b5de
push dword [ebp - 4]
call dword [ebp - 0x20]
cmp dword [ebp - 0x14], 0xffffffff
je 0x41b5fb
push dword [ebp - 0x14]
call dword [fcn.00424070]
cmp dword [ebp - 0x18], edi
jge 0x41b5fb
push dword [ebp + 0xc]
call dword [fcn.004240f0]
push dword [ebp - 0x24]
call dword [fcn.0042411c]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41bdfe
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push 0x20
push 2
push eax
mov byte [ebp - 0x10], bl
mov byte [ebp - 0xf], bl
mov byte [ebp - 0xe], bl
mov byte [ebp - 0xd], bl
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x41be59
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push ebx
call sub.ADVAPI32.dll_CheckTokenMembership
test eax, eax
jne 0x41be50
mov dword [ebp - 4], ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
xor eax, eax
cmp dword [ebp - 4], 1
pop ebx
sete al
leave
ret

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

Disassembly:
sub esp, 0x190
push ebx
xor ebx, ebx
push ebp
mov ebp, dword [esp + 0x19c]
inc ebx
test ebp, ebp
je 0x41be82
mov dword [ebp], 0x424470
lea eax, [esp + 8]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x41bea5
test ebp, ebp
je 0x41bea1
mov dword [ebp], 0x429b30
xor al, al
jmp 0x41befa
push esi
mov esi, dword [sym.imp.WS2_32.dll_socket]
push 6
push ebx
push 2
call esi
cmp eax, 0xffffffff
jne 0x41bec7
test ebp, ebp
je 0x41bec3
mov dword [ebp], 0x429b38
xor bl, bl
jmp 0x41bef1
push edi
mov edi, dword [sym.imp.WS2_32.dll_closesocket]
push eax
call edi
push 0x11
push 2
push 2
call esi
cmp eax, 0xffffffff
jne 0x41beed
test ebp, ebp
je 0x41bee9
mov dword [ebp], 0x429b34
xor bl, bl
jmp 0x41bef0
push eax
call edi
pop edi
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov al, bl
pop esi
pop ebp
pop ebx
add esp, 0x190
ret

Function at 0x41bf2a
Capabilities:
Connect socket
Get socket status
Initialize winsock library
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b0
push ebx
lea eax, [ebp - 0x2b0]
push eax
xor ebx, ebx
push 0x202
inc ebx
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x41bf54
xor al, al
jmp 0x41c000
push esi
push 6
push ebx
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41bf6e
xor bl, bl
jmp 0x41bff7
lea eax, [ebp - 4]
push eax
push 0x8004667e
push esi
mov dword [ebp - 4], ebx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
jne 0x41bfee
push dword [ebp + 8]
mov word [ebp - 0x1c], 2
mov dword [ebp - 0x18], 0x100007f
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x1a], ax
push 0x10
lea eax, [ebp - 0x1c]
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x41bff0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x41bfee
xor eax, eax
lea ecx, [ebp - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x120]
push ecx
push eax
push eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0x16e360
mov dword [ebp - 0x11c], esi
mov dword [ebp - 0x120], ebx
call dword [sym.imp.WS2_32.dll_select]
cmp eax, ebx
je 0x41bff0
xor bl, bl
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov al, bl
pop esi
pop ebx
leave
ret
Function at 0x41c5c4
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x42c
push ebx
push esi
push edi
push 1
call dword [0x424224]
mov dword [ebp - 0xc], eax
mov eax, dword [0x4316e4]
mov esi, 0x4316e4
mov ecx, esi
call dword [eax + 4]
mov ebx, 0x430cc8
mov byte [ebp - 0x10], al
xor edi, edi
mov dword [ebp - 8], ebx
push dword [ebp - 8]
push dword [ebp + 8]
call dword [fcn.00424094]
test eax, eax
je 0x41c739
add dword [ebp - 8], 0x2a
inc edi
cmp dword [ebp - 8], 0x430d46
jl 0x41c5f7
cmp byte [ebp - 0x10], 0
je 0x41c629
mov eax, dword [0x4316e4]
mov ecx, esi
call dword [eax + 8]
xor edi, edi
push edi
push edi
push 3
push edi
push 3
push 0x80000000
push dword [ebp + 8]
mov byte [ebp - 1], 0
call dword [0x42407c]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x41c6d7
xor eax, eax
push eax
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
mov ecx, pe_nt_image_headers32
lea edi, [ebp - 0x42c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x28]
push eax
push 0x400
lea eax, [ebp - 0x42c]
push eax
push 0xc
lea eax, [ebp - 0x24]
push eax
push 0x2d1400
push dword [ebp - 8]
mov byte [ebp - 0x1c], 0
call dword [0x424228]
test eax, eax
je 0x41c6cc
mov eax, dword [ebp - 0x420]
test eax, eax
je 0x41c6b6
push 0x429be8
lea edx, [ebp + eax - 0x42c]
call fcn.00413f86
test eax, eax
pop ecx
je 0x41c6b6
mov byte [ebp - 1], 1
cmp dword [ebp - 0x410], 7
je 0x41c6c8
cmp dword [ebp - 0x410], 4
jne 0x41c6cc
mov byte [ebp - 1], 1
push dword [ebp - 8]
call dword [fcn.00424070]
xor edi, edi
mov eax, dword [0x4316e4]
mov ecx, esi
call dword [eax + 4]
mov byte [ebp - 0x10], al
mov eax, dword [0x430cc0]
imul eax, eax, 0x2a
push 0x15
push dword [ebp + 8]
add eax, ebx
push eax
call dword [fcn.00424134]
mov eax, dword [0x430cc0]
mov bl, byte [ebp - 1]
mov byte [eax + 0x430cc4], bl
inc eax
cmp eax, 3
mov dword [0x430cc0], eax
jl 0x41c719
mov dword [0x430cc0], edi
cmp byte [ebp - 0x10], 0
je 0x41c729
mov eax, dword [0x4316e4]
mov ecx, esi
call dword [eax + 8]
push dword [ebp - 0xc]
call dword [0x424224]
pop edi
pop esi
mov al, bl
pop ebx
leave
ret
mov bl, byte [edi + 0x430cc4]
jmp 0x41c719

Function at 0x41e846
Capabilities:
Generate random numbers via winapi

Disassembly:
call fcn.0041cc1f
push dword [esp + 4]
mov eax, dword [eax + 4]
push dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x41e881
push esi
mov esi, dword [fcn.004240d4]
call esi
test eax, eax
jg 0x41e872
call esi
jmp 0x41e87e
call esi
and eax, 0xffff
or eax, 0x80070000
pop esi
jmp 0x41e883
xor eax, eax
ret 8
Function at 0x41fd60
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
push edi
lea eax, [ebp - 0x14]
push eax
call dword [0x424050]
push 0
push 0x3e8
push dword [ebp - 0x10]
push dword [ebp - 0x14]
call fcn.00423080
mov esi, dword [0x424054]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x1c]
push eax
mov ebx, edx
call esi
rdtsc
and dword [ebp - 4], 0
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], eax
mov edi, 0xc350
lea eax, [ebp - 0xc]
push eax
call esi
inc dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
sub ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 8]
sbb eax, dword [ebp - 0x18]
cmp eax, ebx
ja 0x41fdcc
jb 0x41fdc7
cmp ecx, dword [ebp - 0x2c]
jae 0x41fdcc
cmp dword [ebp - 4], edi
jl 0x41fda7
lea eax, [ebp - 0xc]
push eax
call esi
rdtsc
cmp dword [ebp - 4], edi
mov ebx, edx
mov esi, eax
jl 0x41fdec
mov edi, 0x6adf307c
mov eax, 0x431e90
call fcn.00411031
push dword [ebp - 0x10]
sub esi, dword [ebp - 0x24]
push dword [ebp - 0x14]
sbb ebx, dword [ebp - 0x20]
push ebx
push esi
call fcn.00423040
mov ecx, dword [ebp - 0xc]
sub ecx, dword [ebp - 0x1c]
mov esi, dword [ebp - 8]
sbb esi, dword [ebp - 0x18]
push esi
push ecx
push edx
push eax
call fcn.00423080
pop edi
pop esi
pop ebx
leave
ret

Function at 0x41ff02
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a0
push ebx
push esi
push edi
push 0xfa2
call fcn.0040f85a
mov edi, eax
mov eax, dword [ebp + 8]
mov dword [eax], edi
pop ecx
lea eax, [ebp - 0x1a0]
push eax
xor esi, esi
push 0x202
mov word [edi], si
call dword [sym.imp.WS2_32.dll_WSAStartup]
lea eax, [ebp - 4]
push eax
push esi
call fcn.00421c37
mov ebx, eax
cmp ebx, esi
pop ecx
pop ecx
mov dword [ebp - 8], ebx
je 0x420017
mov eax, dword [ebp - 4]
cmp eax, esi
mov word [0x431168], si
jle 0x41fffd
add ebx, 0x74
mov dword [ebp - 4], eax
mov esi, 0x7d0
and word [0x431168], 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x431168
lea eax, [ebx - 0x60]
push eax
mov dword [ebp - 0xc], 0x104
call sub.WS2_32.dll_WSCGetProviderPath
and word [0x431370], 0
cmp dword [ebx - 0x4c], 0
je 0x41ffee
push 0x42b310
mov eax, ebx
call fcn.00413ff7
test eax, eax
pop ecx
jne 0x41ffee
push esi
push edi
mov eax, ebx
call fcn.0041fe3a
test al, al
pop ecx
pop ecx
je 0x41ffce
push esi
push edi
mov eax, 0x424e28
call fcn.0041fe3a
pop ecx
pop ecx
push esi
push edi
mov eax, 0x431168
call fcn.0041fe3a
test al, al
pop ecx
pop ecx
je 0x41ffee
push esi
push edi
mov eax, 0x424e28
call fcn.0041fe3a
pop ecx
pop ecx
add ebx, 0x274
dec dword [ebp - 4]
jne 0x41ff6d
mov eax, dword [ebp + 8]
push dword [eax]
call fcn.0041106b
push dword [ebp - 8]
call fcn.0040f96d
pop ecx
pop ecx
call dword [sym.imp.WS2_32.dll_WSACleanup]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4206f7
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x420728
push edi
mov edi, 0x333
mov eax, 0x431e90
call fcn.00411031
mov eax, 0x80004005
pop edi
jmp 0x42072a
xor eax, eax
add esp, 0x190
ret

Function at 0x421d09
Capabilities:
Parse pe header

Disassembly:
push ebx
xor ebx, ebx
cmp byte [esi + 0x20a], bl
jne 0x421db4
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push esi
call dword [0x42407c]
cmp eax, 0xffffffff
mov dword [esi + 0x20c], eax
je 0x421d9f
push ebx
push eax
call dword [0x424080]
cmp eax, 0xffffffff
mov dword [esi + 0x210], eax
je 0x421d9f
push ebx
push ebx
push ebx
push 2
push ebx
push dword [esi + 0x20c]
call dword [0x424084]
cmp eax, ebx
mov dword [esi + 0x214], eax
je 0x421d9f
push ebx
push ebx
push ebx
push 4
push eax
call dword [0x424088]
cmp eax, ebx
mov dword [esi + 0x218], eax
je 0x421d9f
mov dword [esi + 0x21c], eax
cmp word [eax], 0x5a4d
jne 0x421d9f
mov ecx, dword [eax + 0x3c]
add eax, ecx
mov dword [esi + 0x220], eax
cmp dword [eax], 0x4550
je 0x421dad
mov eax, esi
call fcn.00421db8
mov eax, 0x80004005
pop ebx
ret
mov byte [esi + 0x20a], 1
xor eax, eax
pop ebx
ret