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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x71d5e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [eax]
push esi
mov esi, dword [eax + 0x688]
push edi
mov dword [ebp - 0x8c], eax
lea eax, [ebp - 0x88]
push eax
mov dword [ebp - 0x88], 0x80
mov edx, dword [esi + 0x154]
mov eax, dword [esi + 0x15c]
lea ecx, [ebp - 0x84]
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 0x641a04
mov edx, dword [ebp - 0x88]
push edx
lea eax, [ebp - 0x84]
push eax
lea ecx, [esi + 0xc8]
push ecx
call fcn.005061a0
mov edx, dword [ebp - 0x88]
add esp, 0xc
mov dword [esi + 0x148], edx
mov edx, dword [esi + 0x14c]
cmp edx, 4
jge 0x641a37
push str.Received_too_short_packet
push ebx
call fcn.0062fef0
add esp, 8
mov dword [esi + 0xc], 7
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005000ee
mov esp, ebp
pop ebp
ret
lea eax, [esi + 0x15c]
call fcn.00640810
movzx eax, ax
mov dword [esi + 0xc], eax
add eax, 0xfffffffd
cmp eax, 3
ja case.default.0x641a54
jmp dword [eax*4 + 0x641b84]
cmp edx, 4
jle case.0x641a54.4
lea eax, [esi + 0x15c]
call fcn.00640820
movzx ecx, word [esi + 0x40]
inc ecx
cmp cx, ax
jne case.0x641a54.4
mov eax, dword [ebp - 0x8c]
add edx, 0xfffffffc
push edx
mov edx, dword [esi + 0x15c]
add edx, 4
push edx
push 1
push eax
call fcn.006302a0
mov edi, eax
add esp, 0x10
test edi, edi
je 0x641ac1
mov ecx, 5
mov eax, esi
call fcn.006418f0
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005000ee
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x14c]
sub eax, 4
cdq
add dword [ebx + 0x70], eax
adc dword [ebx + 0x74], edx
mov ecx, dword [ebx + 0x74]
mov edx, dword [ebx + 0x70]
push ecx
push edx
push ebx
call fcn.00638cb0
jmp 0x641b45
lea eax, [esi + 0x15c]
call fcn.00640820
mov ecx, dword [esi + 0x15c]
add ecx, 4
push ecx
movzx eax, ax
push 0x6d6724
push ebx
mov dword [esi + 8], eax
call fcn.0062fe70
jmp 0x641b45
add edx, 0xfffffffe
push edx
mov edx, dword [esi + 0x15c]
add edx, 2
push edx
push esi
call fcn.006408b0
add esp, 0xc
test eax, eax
je case.0x641a54.4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005000ee
mov esp, ebp
pop ebp
ret
push str.Internal_error:_Unexpected_packet
push 0x68b7c4
push ebx
call fcn.0062fef0
add esp, 0xc
mov eax, dword [ebp - 0x8c]
push eax
call fcn.00638e90
add esp, 4
test eax, eax
je 0x641a24
mov ecx, 5
mov eax, esi
call fcn.006418f0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 0x2a
pop ebx
call fcn.005000ee
mov esp, ebp
pop ebp
ret
Function at 0x6434f0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x71d5e0]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x643538
push eax
push str.WSAStartup_failed___d_
push esi
call fcn.0062fef0
add esp, 0xc
mov eax, 2
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005000ee
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x64355f
shr eax, 8
test al, al
jne 0x64355f
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005000ee
mov esp, ebp
pop ebp
ret
push str.insufficient_winsock_version_to_support_telnet
push esi
call fcn.0062fef0
mov ecx, dword [ebp - 4]
xor ecx, ebp
add esp, 8
mov eax, 2
call fcn.005000ee
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [edi + 0x190]
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 0x643735
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.0062fef0
add esp, 0xc
mov esi, dword [ebp + 8]
mov ecx, dword [edi]
mov eax, ebx
mov ebx, str.SENT
call fcn.006435f0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x6444b0
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
mov ebx, dword [eax + 0x128]
mov dword [ebp - 4], eax
jne 0x6445fe
push esi
push edi
lea edi, [ebx + 0x1cb0]
lea esi, [ebx + 0x1eb0]
mov dword [esi], edi
cmp edi, esi
jae 0x6444e6
mov byte [edi], 0xff
inc dword [esi]
mov eax, dword [esi]
cmp eax, esi
jae 0x6444f1
mov byte [eax], 0xfa
inc dword [esi]
mov eax, dword [esi]
cmp eax, esi
jae 0x6444fc
mov byte [eax], 0x1f
inc dword [esi]
movzx ecx, word [ebx + 0x1ca8]
push ecx
call dword [sym.imp.WS2_32.dll_htons]
movzx edx, ax
movzx eax, word [ebx + 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 0x64452e
mov dl, byte [ebp + 0xc]
mov byte [eax], dl
inc dword [esi]
mov eax, dword [esi]
cmp eax, esi
jae 0x64453b
mov dl, byte [ebp + 0xd]
mov byte [eax], dl
inc dword [esi]
mov eax, dword [esi]
cmp eax, esi
jae 0x644545
mov byte [eax], cl
inc dword [esi]
mov eax, dword [esi]
cmp eax, esi
jae 0x64454f
mov byte [eax], ch
inc dword [esi]
mov eax, dword [esi]
cmp eax, esi
jae 0x64455a
mov byte [eax], 0xff
inc dword [esi]
mov eax, dword [esi]
cmp eax, esi
jae 0x644565
mov byte [eax], 0xf0
inc dword [esi]
mov eax, dword [esi]
mov dword [ebx + 0x1eb4], eax
sub eax, edi
sub eax, 2
push eax
mov dword [esi], edi
mov esi, dword [ebp - 4]
lea eax, [ebx + 0x1cb2]
push 0x3e
call fcn.00643a60
mov esi, dword [sym.imp.WS2_32.dll_send]
add esp, 8
push 0
push 3
push edi
mov edi, dword [ebp + 8]
mov edx, dword [edi + 0x190]
push edx
call esi
test eax, eax
jns 0x6445bb
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.0062fef0
add esp, 0xc
lea ecx, [ebx + 0x1cb3]
push 4
push ecx
call fcn.00644360
mov edx, dword [edi + 0x190]
add esp, 8
push 0
push 2
add ebx, 0x1cb7
push ebx
push edx
call esi
pop edi
pop esi
test eax, eax
jns 0x6445fe
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.0062fef0
add esp, 0xc
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x6450b0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x71d5e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
mov ebx, dword [esi + 0x194]
mov eax, dword [esi]
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x14]
push edx
push ebx
mov dword [ebp - 0x1c], eax
or edi, 0xffffffff
mov dword [ebp - 0x18], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x645105
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x14]
push ecx
push ebx
mov dword [ebp - 0x18], 0x10
call dword [sym.imp.WS2_32.dll_accept]
mov edi, eax
push ebx
push esi
call fcn.00632ef0
add esp, 8
cmp edi, 0xffffffff
jne 0x64513b
mov edx, dword [ebp - 0x1c]
push str.Error_accept__ing_server_connect
push edx
call fcn.0062fef0
add esp, 8
pop edi
pop esi
mov eax, 0x1e
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005000ee
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0x1c]
push str.Connection_accepted_from_server_n
push ebx
call fcn.0062fe70
push 1
push edi
mov dword [esi + 0x3c8], 0
mov dword [esi + 0x194], edi
call fcn.00653790
mov dword [esi + 0x1a4], 1
mov eax, dword [ebx + 0x1b0]
add esp, 0x10
test eax, eax
je 0x6451a6
mov ecx, dword [ebx + 0x1b4]
push 1
push edi
push ecx
call eax
add esp, 0xc
test eax, eax
je 0x6451a6
call fcn.00644fe0
pop edi
pop esi
mov eax, 0x2a
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005000ee
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.005000ee
mov esp, ebp
pop ebp
ret
Function at 0x648840
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
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 0x648874
push str.Couldnt_set_desired_mode
push ebx
call fcn.0062fef0
add esp, 8
lea eax, [esi + 0x11]
pop esi
pop ebx
pop ebp
ret
cmp ecx, 0xc8
je 0x64888b
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200_n
push ebx
call fcn.0062fe70
add esp, 0xc
mov eax, dword [ebp + 8]
cmp eax, 0x13
jne 0x6488a2
push edi
call fcn.006487d0
add esp, 4
mov esi, eax
pop esi
pop ebx
pop ebp
ret
cmp eax, 0x14
jne 0x6488b6
push edi
call fcn.00645c60
add esp, 4
mov esi, eax
pop esi
pop ebx
pop ebp
ret
cmp eax, 0x15
jne 0x6488c8
mov eax, edi
call fcn.00648820
mov esi, eax
pop esi
pop ebx
pop ebp
ret
cmp eax, 0x16
jne 0x6488d6
mov eax, edi
call fcn.00648830
mov esi, eax
mov eax, esi
pop esi
pop ebx
pop ebp
ret
Function at 0x64fd20
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x71d5e0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
call fcn.0051a411
add esp, 4
mov byte [ebp - 0x108], 0
test eax, eax
je 0x64fd84
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [ebp - 0x108], 0
je 0x64fd84
lea edx, [ebp - 0x108]
push edx
call dword [0x724928]
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005000ee
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.005000ee
mov esp, ebp
pop ebp
ret

Function at 0x64fda0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.0064fd20

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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x2c]
push ebx
mov ebx, dword [ecx]
mov dword [ebp - 4], ecx
mov ecx, dword [ebx + 0x1ec]
push esi
push edi
mov esi, ecx
test ecx, ecx
jne 0x654c71
mov esi, dword [eax + 0x28]
mov ecx, dword [eax + 0x24]
mov edx, dword [eax + 0x20]
push ecx
push edx
call fcn.0062f8f0
push edx
push eax
call fcn.0062f920
mov ecx, eax
mov eax, esi
mov dword [ebp + 8], edx
cdq
add esp, 0x10
mov edi, eax
sub edi, ecx
mov esi, edx
sbb esi, dword [ebp + 8]
cmp dword [ebx + 0x1e0], 0
je 0x654cdd
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x184]
mov eax, dword [eax + 0x180]
push edx
push eax
call fcn.0062f8f0
push edx
push eax
call fcn.0062f920
mov ecx, eax
mov eax, dword [ebx + 0x1e0]
mov dword [ebp + 8], edx
cdq
add esp, 0x10
sub eax, ecx
sbb edx, dword [ebp + 8]
cmp esi, edx
jl 0x654cdd
jg 0x654ce1
cmp edi, eax
jae 0x654ce1
mov eax, edi
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x655f50
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push esi
mov byte [esi], 0
call dword [sym.imp.WS2_32.dll_gethostname]
mov byte [esi + edi - 1], 0
test eax, eax
jne 0x655f83
push 0x2e
push esi
call fcn.00514070
add esp, 8
test eax, eax
je 0x655f81
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
pop ebp
ret
Function at 0x656060
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x71d5e0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0xf0000000
push 1
push 0
push 0
lea eax, [ebp - 0x1c]
mov esi, 8
push eax
mov dword [ebp - 0x20], esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x6560f1
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], esi
lea esi, [ebp - 0xc]
mov eax, ebx
mov word [ebp - 0x18], 0x208
mov dword [ebp - 0x14], 0x6601
call fcn.00655fd0
mov ecx, esi
push 8
push ecx
call fcn.0065afd0
mov ecx, dword [ebp - 0x1c]
add esp, 8
lea edx, [ebp - 0x24]
push edx
push 0
push 0
push 0x14
lea eax, [ebp - 0x18]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x656102
mov edx, dword [ebp - 0x1c]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005000ee
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [edi], ecx
mov edx, dword [eax + 4]
mov eax, dword [ebp - 0x20]
push eax
lea ecx, [ebp - 0x20]
push ecx
push edi
push 0
push 0
mov dword [edi + 4], edx
mov edx, dword [ebp - 0x24]
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov ecx, dword [ebp - 0x1c]
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
pop esi
call fcn.005000ee
mov esp, ebp
pop ebp
ret
Function at 0x656270
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x656281
sub eax, edx
mov esi, eax
lea eax, [esi + esi]
push eax
mov dword [ebp - 0xc], eax
call dword [0x72491c]
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x6562ac
pop edi
pop esi
lea eax, [ebx + 0x1b]
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, ebx
call fcn.00656240
push 0xf0000000
push 1
push 0
push 0
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
mov esi, dword [ebp + 0x10]
test eax, eax
je 0x65632b
mov edx, dword [ebp - 8]
lea ecx, [ebp - 4]
push ecx
push 0
push 0
push 0x8002
push edx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x65631f
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
push 0
push eax
push ebx
push ecx
mov dword [ebp - 0x10], 0x10
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
mov eax, dword [ebp - 4]
push 0
lea edx, [ebp - 0x10]
push edx
push esi
push 2
push eax
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov edx, dword [ebp - 8]
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
mov dword [esi + 0x10], eax
push ebx
mov byte [esi + 0x14], al
call dword [0x724920]
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x658a40
Capabilities:
Read file on windows

Disassembly:
push edi
mov edi, eax
mov eax, dword [esi]
cmp dword [eax + 4], 3
jne 0x658a62
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x658a56
xor eax, eax
pop edi
ret
mov eax, dword [eax + 8]
push eax
push edi
push 1
push ebx
call ecx
jmp 0x658a92
cmp dword [esi + 8], 0
jne 0x658a85
mov ecx, dword [eax + 8]
push 0x6e7d10
push ecx
call fcn.00500dcd
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x658a85
or eax, 0xffffffff
pop edi
ret
mov edx, dword [esi + 8]
push edx
push edi
push 1
push ebx
call fcn.0050282b
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x658ab4
mov eax, dword [esi + 8]
test eax, eax
je 0x658aae
push eax
call fcn.00500814
add esp, 4
mov dword [esi + 8], edi
mov eax, dword [esi]
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, edi
pop edi
ret
Function at 0x65bc50
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x14]
lea eax, [ecx + eax*2 + 0xc]
push edi
push eax
call dword [0x72491c]
mov edi, eax
add esp, 4
test edi, edi
jne 0x65bc7b
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], eax
mov edx, dword [esi + 0xc]
add edx, eax
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [edi + 8], edx
cmp ebx, dword [esi + 0x10]
jbe 0x65bcc2
push eax
mov eax, dword [esi]
call eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [edi + 4]
mov eax, dword [esi + 4]
push ebx
push ecx
push edx
call eax
mov ebx, dword [edi + 8]
mov ecx, dword [edi + 4]
add ebx, dword [esi + 0xc]
mov edx, dword [esi + 8]
push ecx
push ebx
call edx
mov eax, dword [esi + 0x14]
add esp, 0x18
mov dword [ebp + 0x10], eax
jmp 0x65bcc5
mov ebx, dword [ebp + 0xc]
mov ecx, dword [edi + 4]
mov edx, dword [esi]
push ecx
call edx
mov eax, dword [edi + 8]
mov ecx, dword [esi]
push eax
call ecx
mov eax, dword [ebp + 0x10]
add esp, 8
mov dword [ebp - 4], 0
test eax, eax
je 0x65bd26
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
lea esp, [esp]
mov dl, byte [ebx]
xor dl, 0x36
mov byte [ebp + 0xb], dl
mov ecx, dword [edi + 4]
mov edx, dword [esi + 4]
push 1
lea eax, [ebp + 0xb]
push eax
push ecx
call edx
mov al, byte [ebx]
xor al, 0x5c
mov byte [ebp + 0xb], al
mov edx, dword [edi + 8]
mov eax, dword [esi + 4]
push 1
lea ecx, [ebp + 0xb]
push ecx
push edx
inc ebx
call eax
add esp, 0x18
dec dword [ebp - 8]
jne 0x65bcf0
mov ecx, dword [ebp - 4]
pop ebx
cmp ecx, dword [esi + 0x10]
jae 0x65bd5f
nop
mov edx, dword [edi + 4]
mov eax, dword [esi + 4]
push 1
push 0x6dfb65
push edx
call eax
mov ecx, dword [edi + 8]
mov edx, dword [esi + 4]
push 1
push 0x6dfb66
push ecx
call edx
mov eax, dword [ebp - 4]
inc eax
add esp, 0x18
mov dword [ebp - 4], eax
cmp eax, dword [esi + 0x10]
jb 0x65bd30
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x65d66a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x65d6b2
call fcn.004155c9
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x65d6b2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x65d6f5
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x65d6de
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x65d6de
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x68], 0
je 0x65d6f2
mov ecx, dword [esi + 0x68]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x66615e
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 0x666185
call fcn.00503621
mov dword [eax], esi
call fcn.0050360e
push 0x16
pop esi
mov dword [eax], esi
call fcn.00509314
mov eax, esi
jmp 0x6661da
test dword [ebp + 0xc], 0xfffffff9
jne 0x66616b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x6661b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00503634
pop ecx
call fcn.0050360e
mov eax, dword [eax]
jmp 0x6661da
test al, 0x10
jne 0x6661d8
test al, 1
je 0x6661d8
test byte [ebp + 0xc], 2
je 0x6661d8
call fcn.00503621
mov dword [eax], 5
call fcn.0050360e
mov dword [eax], 0xd
jmp 0x6661a9
xor eax, eax
pop esi
pop ebp
ret
Function at 0x4014c0
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
push ebx
mov ebx, dword [eax + 4]
test ebx, ebx
je 0x4015c1
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push esi
push edi
mov eax, dword [0x41b280]
cmp dword [eax], 0
mov edi, eax
jne 0x4014fb
push 0xf0000000
push 0x18
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x4014fb
mov dword [edi], eax
jmp 0x40153f
push 0x2c
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x40153f
push 0x2c
push 0
push esi
call fcn.00401100
add esp, 0xc
lea ecx, [esi + 0xc]
push ecx
mov word [esi], 0x208
mov word [esi + 4], 0x6610
mov byte [esi + 8], 0x20
mov edx, dword [edi]
push 0x20
push edx
call ebp
neg eax
sbb eax, eax
and eax, esi
mov ecx, dword [ebx]
mov dword [ecx + 0x20], eax
mov eax, dword [0x41b280]
cmp dword [eax], 0
mov edi, eax
jne 0x40156a
push 0xf0000000
push 0x18
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x40156a
mov dword [edi], eax
jmp 0x4015ae
push 0x2c
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x4015ae
push 0x2c
push 0
push esi
call fcn.00401100
add esp, 0xc
lea edx, [esi + 0xc]
push edx
mov word [esi], 0x208
mov word [esi + 4], 0x6610
mov byte [esi + 8], 0x20
mov eax, dword [edi]
push 0x20
push eax
call ebp
neg eax
sbb eax, eax
and eax, esi
mov ecx, dword [ebx]
mov dword [ecx + 0x28], eax
mov ebx, dword [ebx + 4]
test ebx, ebx
jne 0x4014d5
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x401820
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [0x41b258]
push ebx
push esi
push edi
push eax
mov eax, dword [ebp + 8]
call fcn.00401720
test eax, eax
mov dword [esp + 0x18], eax
je 0x4019a8
mov eax, dword [0x41b280]
lea ecx, [esp + 0xc]
push ecx
push 0xe
call fcn.00402950
lea edx, [esp + 0xc]
mov esi, eax
mov eax, dword [0x41b280]
push edx
push 0xf
mov dword [esp + 0x1c], esi
call fcn.00402950
mov edi, eax
lea eax, [esp + 0xc]
push eax
mov eax, dword [0x41b280]
push 1
mov dword [esp + 0x24], edi
call fcn.00402950
test esi, esi
mov dword [esp + 0x10], eax
je 0x4019a8
test edi, edi
je 0x4019a8
test eax, eax
je 0x4019a8
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push 0x10830
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [esp + 0x18]
mov edx, dword [ebp + 8]
mov esi, eax
mov dword [esi], ecx
mov dword [esi + 4], edx
mov eax, dword [edi]
test eax, eax
je 0x4018d9
push eax
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
jmp 0x4018db
xor eax, eax
mov ecx, dword [esp + 0x14]
mov dword [esi + 0xc], eax
mov eax, dword [edi]
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x10]
mov dword [esi + 8], eax
mov edx, dword [ecx]
mov ecx, dword [0x41b288]
push ecx
mov ecx, dword [0x419024]
mov dword [esi + 0x14], edx
mov edx, dword [esi]
push eax
mov byte [esi + 0x20], 0
mov byte [esi + 0x21], 0
mov eax, dword [edx + 0x18]
push eax
push ecx
lea edx, [esi + 0x1002a]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
call fcn.00402ee0
test eax, eax
je 0x401933
mov edi, dword [esi]
push eax
call fcn.00402bf0
jmp 0x401935
xor eax, eax
xor ecx, ecx
cmp eax, ecx
mov dword [esi + 0x28], eax
jne 0x401943
call fcn.004065d0
push ecx
push ecx
push esi
push 0x402620
push ecx
push ecx
mov dword [esi + 0x18], ecx
mov dword [esi + 0x1c], ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0xc]
push eax
push 0
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
push eax
call edi
push esi
push 0
call ebx
push eax
call edi
mov eax, dword [esp + 0x10]
push eax
push 0
call ebx
push eax
call edi
mov ecx, dword [esp + 0x1c]
push ecx
push 0
call ebx
push eax
call edi
mov edx, dword [esp + 0x14]
push edx
push 0
call ebx
push eax
call edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4