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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x4fbf60]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [eax]
push esi
mov esi, dword [eax + 0x3e0]
push edi
mov dword [ebp - 0x94], eax
lea eax, [ebp - 0x90]
push eax
mov dword [ebp - 0x90], 0x80
mov edx, dword [esi + 0x154]
mov eax, dword [esi + 0x15c]
lea ecx, [ebp - 0x8c]
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 0x4598f4
mov edx, dword [ebp - 0x90]
push edx
lea eax, [ebp - 0x8c]
push eax
lea ecx, [esi + 0xc8]
push ecx
call fcn.00482e20
mov edx, dword [ebp - 0x90]
add esp, 0xc
mov dword [esi + 0x148], edx
mov edx, dword [esi + 0x14c]
cmp edx, 4
jge 0x459927
push str.Received_too_short_packet
push ebx
call fcn.004492c0
add esp, 8
mov dword [esi + 0xc], 7
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0047f164
mov esp, ebp
pop ebp
ret
lea eax, [esi + 0x15c]
call fcn.00458880
movzx eax, ax
mov dword [esi + 0xc], eax
add eax, 0xfffffffd
cmp eax, 3
ja case.default.0x459944
jmp dword [eax*4 + 0x459a74]
cmp edx, 4
jle case.0x459944.4
lea eax, [esi + 0x15c]
call fcn.00458890
movzx ecx, word [esi + 0x40]
inc ecx
cmp cx, ax
jne case.0x459944.4
mov eax, dword [ebp - 0x94]
lea ecx, [edx - 4]
mov edx, dword [esi + 0x15c]
add edx, 4
push edx
push 1
call fcn.00449640
mov edi, eax
add esp, 8
test edi, edi
je 0x4599af
mov ecx, 5
mov eax, esi
call fcn.004595b0
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0047f164
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x14c]
sub eax, 4
cdq
add dword [ebx + 0x70], eax
mov ecx, dword [ebx + 0x70]
adc dword [ebx + 0x74], edx
mov eax, dword [ebx + 0x74]
push eax
push ecx
mov eax, ebx
call fcn.00453bc0
add esp, 8
jmp case.0x459944.4
lea eax, [esi + 0x15c]
call fcn.00458890
movzx edx, ax
mov eax, dword [esi + 0x15c]
add eax, 4
push eax
push 0x4e1094
push ebx
mov dword [esi + 8], edx
call fcn.00449240
jmp 0x459a37
mov ecx, dword [esi + 0x15c]
add edx, 0xfffffffe
push edx
add ecx, 2
push ecx
push esi
call fcn.00458920
add esp, 0xc
test eax, eax
je case.0x459944.4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0047f164
mov esp, ebp
pop ebp
ret
push str.Internal_error:_Unexpected_packet
push 0x4e0e34
push ebx
call fcn.004492c0
add esp, 0xc
mov edx, dword [ebp - 0x94]
push edx
call fcn.00453c80
add esp, 4
test eax, eax
je 0x459914
mov ecx, 5
mov eax, esi
call fcn.004595b0
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
mov eax, 0x2a
pop ebx
call fcn.0047f164
mov esp, ebp
pop ebp
ret
Function at 0x45ea20
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4fbf60]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [edi]
push ebx
push esi
mov esi, dword [edi + 0x144]
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x14]
push edx
push esi
mov dword [ebp - 0x1c], eax
or ebx, 0xffffffff
mov dword [ebp - 0x18], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x45ea72
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x14]
push ecx
push esi
mov dword [ebp - 0x18], 0x10
call dword [sym.imp.WS2_32.dll_accept]
mov ebx, eax
mov eax, edi
call fcn.00447cd0
cmp ebx, 0xffffffff
jne 0x45eaa4
mov edx, dword [ebp - 0x1c]
push str.Error_accept__ing_server_connect
push edx
call fcn.004492c0
add esp, 8
mov eax, 0x1e
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047f164
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x1c]
push str.Connection_accepted_from_server_n
push esi
call fcn.00449240
push 1
mov edx, ebx
mov dword [edi + 0x144], ebx
call fcn.00467b90
mov dword [edi + 0x154], 1
mov eax, dword [esi + 0x1b0]
add esp, 0xc
test eax, eax
je 0x45eb13
mov ecx, dword [esi + 0x1b4]
push 1
push ebx
push ecx
call eax
add esp, 0xc
test eax, eax
je 0x45eb13
mov esi, ebx
mov eax, edi
call fcn.00447cd0
mov dword [edi + 0x144], 0xffffffff
mov eax, 0x2a
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047f164
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0047f164
mov esp, ebp
pop ebp
ret
Function at 0x460af0
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
push ebx
mov ebx, dword [edi]
shr eax, 0x1f
push esi
add eax, edx
xor esi, esi
cmp eax, 2
je 0x460b26
push str.Couldnt_set_desired_mode
push ebx
call fcn.004492c0
add esp, 8
lea eax, [esi + 0x11]
pop esi
pop ebx
pop ecx
pop ebp
ret
cmp ecx, 0xc8
je 0x460b3d
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200_n
push ebx
call fcn.00449240
add esp, 0xc
mov eax, dword [ebp + 8]
cmp eax, 0x13
jne 0x460b55
push edi
call fcn.0045fc50
add esp, 4
mov esi, eax
pop esi
pop ebx
pop ecx
pop ebp
ret
cmp eax, 0x14
jne 0x460b6a
push edi
call fcn.0045fcb0
add esp, 4
mov esi, eax
pop esi
pop ebx
pop ecx
pop ebp
ret
cmp eax, 0x15
jne 0x460b7d
mov eax, edi
call fcn.0045fdd0
mov esi, eax
pop esi
pop ebx
pop ecx
pop ebp
ret
cmp eax, 0x16
jne 0x460b8b
mov eax, edi
call fcn.0045fde0
mov esi, eax
mov eax, esi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x463460
Capabilities:
Parse pe header

Disassembly:
movsx ecx, al
add ecx, 0xffffff9f
cmp ecx, 0x19
ja case.default.0x46346b
jmp dword [ecx*4 + 0x4634c0]
mov al, 0x41
ret
mov al, 0x42
ret
mov al, 0x43
ret
mov al, 0x44
ret
mov al, 0x45
ret
mov al, 0x46
ret
mov al, 0x47
ret
mov al, 0x48
ret
mov al, 0x49
ret
mov al, 0x4a
ret
mov al, 0x4b
ret
mov al, 0x4c
ret
mov al, 0x4d
ret
mov al, 0x4e
ret
mov al, 0x4f
ret
mov al, 0x50
ret
mov al, 0x51
ret
mov al, 0x52
ret
mov al, 0x53
ret
mov al, 0x54
ret
mov al, 0x55
ret
mov al, 0x56
ret
mov al, 0x57
ret
mov al, 0x58
ret
mov al, 0x59
ret
mov al, 0x5a
ret

Function at 0x463620
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
mov eax, dword [0x4fbf60]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x198]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x463668
push eax
push str.WSAStartup_failed___d_
push esi
call fcn.004492c0
add esp, 0xc
mov eax, 2
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047f164
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [ebp - 0x198]
cmp al, 2
jne 0x46368f
shr eax, 8
test al, al
jne 0x46368f
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047f164
mov esp, ebp
pop ebp
ret
push str.insufficient_winsock_version_to_support_telnet
push esi
call fcn.004492c0
mov ecx, dword [ebp - 4]
xor ecx, ebp
add esp, 8
mov eax, 2
call fcn.0047f164
mov esp, ebp
pop ebp
ret

Function at 0x463870
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [edi + 0x140]
push ebx
push esi
mov esi, dword [edi]
push 0
push 3
lea ecx, [ebp - 4]
mov ebx, eax
mov al, byte [ebp + 8]
push ecx
push edx
mov byte [ebp - 4], 0xff
mov byte [ebp - 3], al
mov byte [ebp - 2], bl
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x4638b5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.004492c0
add esp, 0xc
mov esi, dword [ebp + 8]
mov ecx, dword [edi]
mov eax, ebx
mov ebx, str.SENT
call fcn.00463770
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x464510
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0x1f
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push ebx
push esi
push edi
mov edi, dword [eax + 0x128]
mov dword [ebp - 4], eax
jne 0x46465c
lea ebx, [edi + 0x1cb0]
lea esi, [edi + 0x1eb0]
mov dword [esi], ebx
cmp ebx, esi
jae 0x464546
mov byte [ebx], 0xff
inc dword [esi]
mov eax, dword [esi]
cmp eax, esi
jae 0x464551
mov byte [eax], 0xfa
inc dword [esi]
mov eax, dword [esi]
cmp eax, esi
jae 0x46455c
mov byte [eax], 0x1f
inc dword [esi]
movzx ecx, word [edi + 0x1ca8]
push ecx
call dword [sym.imp.WS2_32.dll_htons]
movzx edx, ax
movzx eax, word [edi + 0x1caa]
push eax
mov dword [ebp + 0xc], edx
call dword [sym.imp.WS2_32.dll_htons]
movzx ecx, ax
mov eax, dword [esi]
cmp eax, esi
jae 0x46458e
mov dl, byte [ebp + 0xc]
mov byte [eax], dl
inc dword [esi]
mov eax, dword [esi]
cmp eax, esi
jae 0x46459b
mov dl, byte [ebp + 0xd]
mov byte [eax], dl
inc dword [esi]
mov eax, dword [esi]
cmp eax, esi
jae 0x4645a5
mov byte [eax], cl
inc dword [esi]
mov eax, dword [esi]
cmp eax, esi
jae 0x4645af
mov byte [eax], ch
inc dword [esi]
mov eax, dword [esi]
cmp eax, esi
jae 0x4645ba
mov byte [eax], 0xff
inc dword [esi]
mov eax, dword [esi]
cmp eax, esi
jae 0x4645c5
mov byte [eax], 0xf0
inc dword [esi]
mov eax, dword [esi]
mov dword [edi + 0x1eb4], eax
sub eax, ebx
sub eax, 2
push eax
mov dword [esi], ebx
mov esi, dword [ebp - 4]
lea eax, [edi + 0x1cb2]
push 0x3e
call fcn.00463c70
mov esi, dword [sym.imp.WS2_32.dll_send]
add esp, 8
push 0
push 3
push ebx
mov ebx, dword [ebp + 8]
mov edx, dword [ebx + 0x140]
push edx
call esi
test eax, eax
jns 0x46461b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
mov eax, dword [ebp - 4]
push str.Sending_data_failed___d_
push eax
call fcn.004492c0
add esp, 0xc
lea ecx, [edi + 0x1cb3]
push 4
push ecx
call fcn.00464a20
mov edx, dword [ebx + 0x140]
add esp, 8
push 0
push 2
add edi, 0x1cb7
push edi
push edx
call esi
test eax, eax
jns 0x46465c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
mov eax, dword [ebp - 4]
push str.Sending_data_failed___d_
push eax
call fcn.004492c0
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x465010
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x4fbf60]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
call fcn.004980b6
add esp, 4
mov byte [ebp - 0x108], 0
test eax, eax
je 0x465074
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [ebp - 0x108], 0
je 0x465074
lea edx, [ebp - 0x108]
push edx
call dword [0x4ffbfc]
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0047f164
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.0047f164
mov esp, ebp
pop ebp
ret

Function at 0x465090
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.00465010
Function at 0x468630
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x10]
push ebx
xor ebx, ebx
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [ebp + 8]
mov dword [eax], ebx
mov eax, dword [ebp + 0xc]
push edx
push eax
push ecx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp - 8], eax
cmp eax, ebx
jne 0x4687c0
push edi
mov edi, dword [ebp - 0x10]
cmp edi, ebx
je 0x4687a2
push esi
nop
cmp dword [edi + 4], 2
jne 0x46872a
cmp dword [edi + 0x18], ebx
je 0x46872a
mov eax, dword [edi + 0x10]
cmp eax, ebx
jbe 0x46872a
cmp eax, 0x10
jb 0x46872a
push 0x20
call dword [0x4ffbf0]
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x468737
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]
push 0x10
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], 0x10
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x1c], ebx
call dword [0x4ffbf0]
add esp, 4
mov dword [esi + 0x18], eax
cmp eax, ebx
je 0x468740
mov ecx, dword [edi + 0x18]
mov edx, dword [ecx]
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov edx, dword [ecx + 8]
mov dword [eax + 8], edx
mov ecx, dword [ecx + 0xc]
mov dword [eax + 0xc], ecx
mov eax, dword [edi + 0x14]
cmp eax, ebx
je 0x468715
push eax
call dword [0x4ffbfc]
add esp, 4
mov dword [esi + 0x14], eax
cmp eax, ebx
je 0x468753
cmp dword [ebp - 4], ebx
jne 0x46871d
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0xc]
cmp eax, ebx
je 0x468727
mov dword [eax + 0x1c], esi
mov dword [ebp - 0xc], esi
mov edi, dword [edi + 0x1c]
cmp edi, ebx
jne 0x468670
jmp 0x46876e
mov dword [ebp - 8], 8
jmp 0x46876e
push esi
mov dword [ebp - 8], 8
call dword [0x4ffbf4]
add esp, 4
jmp 0x46876e
mov edx, dword [esi + 0x18]
push edx
mov dword [ebp - 8], 8
call dword [0x4ffbf4]
push esi
call dword [0x4ffbf4]
add esp, 8
mov eax, dword [ebp - 0x10]
pop esi
cmp eax, ebx
je 0x46877d
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [ebp - 8], ebx
je 0x46879d
mov eax, dword [ebp - 4]
call fcn.004685f0
mov ecx, dword [ebp + 0x10]
mov eax, ebx
pop edi
mov dword [ebp - 4], ebx
mov dword [ecx], eax
mov eax, dword [ebp - 8]
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 4], ebx
jne 0x4687b4
push 0x2af9
mov dword [ebp - 8], 0x2af9
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4689c0
Capabilities:
Create thread

Disassembly:
push 0
push 0
push eax
push 0x4486b0
push 0
push 0
call fcn.004c1ad3
add esp, 0x18
test eax, eax
je 0x4689df
cmp eax, 0xffffffff
jne 0x4689e1
xor eax, eax
ret
Function at 0x469aa0
Capabilities:
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0xf0000000
push 1
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x469ad3
mov ecx, dword [esi]
lea eax, [esi + 4]
push eax
push 0
push 0
push 0x8003
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
pop esi
pop ebp
ret

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

Disassembly:
push ebx
mov ebx, dword [eax + 0x2c]
push esi
push edi
mov edi, dword [ebx]
mov esi, dword [edi + 0x1ec]
test esi, esi
jne 0x46a5c5
mov esi, dword [eax + 0x28]
mov ecx, dword [eax + 0x24]
mov edx, dword [eax + 0x20]
push ecx
push edx
call fcn.00449b70
push edx
push eax
call fcn.00449ba0
add esp, 0x10
sub esi, eax
cmp dword [edi + 0x1e0], 0
je 0x46a612
mov eax, dword [ebx + 0x134]
mov ecx, dword [ebx + 0x130]
push eax
push ecx
call fcn.00449b70
push edx
push eax
call fcn.00449ba0
mov ecx, dword [edi + 0x1e0]
sub ecx, eax
add esp, 0x10
mov eax, ecx
cmp esi, ecx
jge 0x46a614
mov eax, esi
pop edi
pop esi
pop ebx
ret

Function at 0x46bab0
Capabilities:
Get hostname

Disassembly:
push 0x401
push esi
mov byte [esi], 0
call dword [sym.imp.WS2_32.dll_gethostname]
mov byte [esi + 0x400], 0
test eax, eax
jne 0x46bade
push 0x2e
push esi
call fcn.0047ffa0
add esp, 8
test eax, eax
je 0x46badc
mov byte [eax], 0
xor eax, eax
ret

Function at 0x46bae0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push 0x2c
mov ebx, eax
mov edi, ecx
call dword [0x4ffbf0]
mov esi, eax
add esp, 4
test esi, esi
jne 0x46bb05
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esi + 0xc]
lea ecx, [eax + 8]
mov dword [esi], fcn.00469aa0
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
cmp ebx, 0x40
jbe 0x46bb48
push eax
call dword [0x4db288]
mov edx, dword [esi + 4]
push ebx
push edi
push edx
call dword [0x4db28c]
mov edi, dword [esi + 8]
mov eax, dword [esi + 4]
push eax
add edi, 8
push edi
call dword [0x4db290]
add esp, 0x18
mov ebx, 0x10
mov ecx, dword [esi + 4]
push ecx
call dword [0x4db288]
mov edx, dword [esi + 8]
push edx
call dword [0x4db288]
add esp, 8
xor eax, eax
test ebx, ebx
je 0x46bbb1
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jmp 0x46bb70
movzx eax, byte [edi]
xor al, 0x36
push 1
lea ecx, [ebp - 1]
mov byte [ebp - 1], al
mov edx, dword [esi + 4]
push ecx
push edx
call dword [0x4db28c]
movzx eax, byte [edi]
xor al, 0x5c
push 1
lea ecx, [ebp - 1]
mov byte [ebp - 1], al
mov edx, dword [esi + 8]
push ecx
push edx
inc edi
call dword [0x4db28c]
add esp, 0x18
dec dword [ebp - 8]
jne 0x46bb70
cmp ebx, 0x40
jae 0x46bbe8
mov eax, dword [ebp - 0xc]
mov edi, 0x40
sub edi, eax
jmp 0x46bbc0
mov eax, dword [esi + 4]
push 1
push 0x4db270
push eax
call dword [0x4db28c]
mov ecx, dword [esi + 8]
push 1
push 0x4db271
push ecx
call dword [0x4db28c]
add esp, 0x18
dec edi
jne 0x46bbc0
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x47f164
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4fbf60]
jne 0x47f16e
repz ret
jmp fcn.004879a8

Function at 0x495e17
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4fbf60]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00488ee8
and dword [ebp - 0x14], 0
cmp dword [0x501f50], 0
mov dword [ebp - 0x18], eax
jne 0x495eca
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x495f72
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x495f72
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x501f50], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x501f54], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x501f58], eax
call edi
push eax
call esi
mov dword [0x501f60], eax
test eax, eax
je 0x495eca
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x501f5c], eax
mov eax, dword [0x501f5c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x495f23
cmp dword [0x501f60], ecx
je 0x495f23
push eax
call esi
push dword [0x501f60]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x495f23
test ebx, ebx
je 0x495f23
call edi
test eax, eax
je 0x495f1a
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x495f1a
test byte [ebp - 8], 1
jne 0x495f23
or dword [ebp + 0x10], 0x200000
jmp 0x495f56
mov eax, dword [0x501f54]
cmp eax, dword [ebp - 0x18]
je 0x495f56
push eax
call esi
test eax, eax
je 0x495f56
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x495f56
mov eax, dword [0x501f58]
cmp eax, dword [ebp - 0x18]
je 0x495f56
push eax
call esi
test eax, eax
je 0x495f56
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x501f50]
call esi
test eax, eax
je 0x495f72
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x495f74
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047f164
leave
ret
Function at 0x49e6f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4c8bf9
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4fbf60]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov edi, dword [esp + 0x20]
push edi
call fcn.0047f311
mov dword [esi], vtable.boost::program_options::error_with_option_name.0
mov eax, dword [edi + 0xc]
lea edx, [edi + 0x10]
lea ecx, [esi + 0x10]
push edx
mov dword [esp + 0x1c], 0
mov dword [esi + 0xc], eax
call fcn.0049d580
lea eax, [edi + 0x20]
lea ecx, [esi + 0x20]
push eax
mov byte [esp + 0x1c], 1
call fcn.0049db40
push 0xffffffffffffffff
lea ecx, [esi + 0x30]
push 0
lea edx, [edi + 0x30]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push edx
mov byte [esp + 0x24], 2
mov byte [ecx], 0
call fcn.004021a3
push 0xffffffffffffffff
lea ecx, [esi + 0x4c]
push 0
add edi, 0x4c
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push edi
mov byte [esp + 0x24], 3
mov byte [ecx], 0
call fcn.004021a3
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4

Function at 0x4aba30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4ca8c0
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
mov eax, dword [0x4fbf60]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
mov dword [esi + 4], 0
push 0x4d5e58
lea ecx, [esp + 0x10]
mov dword [esp + 0x3c], 0
mov dword [esi], vtable.std::codecvt_wchar_t__char__int_.0
call fcn.00401073
mov byte [esp + 0x38], 1
call fcn.0047e70e
lea ecx, [esp + 0xc]
mov dword [esi + 8], eax
mov dword [esi + 0xc], edx
mov byte [esp + 0x38], 0
call fcn.004010ed
mov dword [esi], vtable.windows_file_codecvt.0
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x34
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x402a90
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004046dc
test esi, esi
jne 0x402ac6
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004047cc
jmp 0x402ae4
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004029a4
mov edi, eax
test esi, esi
je 0x402ae4
cmp dword [ebx], 0
je 0x402ae4
dec esi
jmp 0x402acd
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4037e8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x46900c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403880
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403860
xor eax, eax
push ebp
push 0x403859
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x40389c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403860
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x46900c]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x46900c], ax
mov esp, ebp
pop ebp
ret

Function at 0x404560
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x46b04c], 0
je 0x4045c1
cmp word [0x46b220], 0xd7b2
jne 0x404589
cmp dword [0x46b228], 0
jbe 0x404589
mov eax, 0x46b21c
call dword [0x46b238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x469054
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4045e8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x46901c], 0
jne 0x4045dd
push 0
push 0x469074
push 0x469054
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret