joyce8/EMBER2024-capa huggingface dataset:
Function at 0x420ae0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov dword [ebp - 8], 1
mov dword [ebp - 4], 0
test eax, eax
jne 0x420b32
mov edi, dword [ebp + 8]
mov ebx, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea eax, [ebp - 8]
push eax
push 0xfffffffffffffffb
push 0xffff
push edi
call ebx
push 4
lea ecx, [ebp - 4]
push ecx
push 4
push 0xffff
push edi
mov esi, eax
call ebx
pop edi
or eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x420b6b
mov edi, dword [ebp + 8]
mov ebx, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea edx, [ebp - 4]
push edx
push 0xfffffffffffffffb
push 0xffff
push edi
call ebx
push 4
mov esi, eax
lea eax, [ebp - 4]
push eax
push 4
push 0xffff
push edi
call ebx
pop edi
or eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x420ba4
mov edi, dword [ebp + 8]
mov ebx, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea ecx, [ebp - 4]
push ecx
push 0xfffffffffffffffb
push 0xffff
push edi
call ebx
push 4
lea edx, [ebp - 8]
push edx
push 4
push 0xffff
push edi
mov esi, eax
call ebx
pop edi
or eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x420e50
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [ebp - 4]
mov ebx, dword [ebp + 0xc]
xor ecx, ecx
mov dword [ebp - 8], eax
cmp edx, ecx
ja 0x420e88
jb 0x420e7e
cmp eax, ebx
jae 0x420e88
mov eax, ebx
mov edx, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
mov ecx, dword [ebp + 0x18]
push 0
push eax
push edx
push ecx
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esi + 8], eax
test eax, eax
jne 0x420eae
call fcn.0041b720
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
mov edx, dword [ebp + 0x10]
test ebx, ebx
jne 0x420ebf
mov ecx, dword [ebp - 8]
sub ecx, edx
mov dword [esi + 4], ecx
jmp 0x420ec2
mov dword [esi + 4], ebx
mov ecx, dword [ebp + 0x1c]
mov dword [esi + 0x10], edx
mov edx, dword [ebp + 0x14]
push 0
mov dword [esi + 0x14], edx
mov edx, dword [esi + 4]
push edx
mov edx, dword [esi + 0x10]
push edx
mov edx, dword [esi + 0x14]
push edx
push ecx
push eax
mov dword [esi + 0x18], ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFileEx]
mov dword [esi], eax
test eax, eax
jne 0x420f10
call fcn.0041b720
mov edi, eax
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
mov dword [esi + 8], 0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x4210b0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
xor eax, eax
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x24]
mov word [ebp - 0x24], ax
mov eax, dword [ebp + 8]
push edx
push eax
mov dword [ebp - 8], 0x1c
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x4210df
xor eax, eax
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push ecx
push edx
push eax
lea ecx, [ebp - 4]
push ecx
lea edx, [ebp - 0x24]
push edx
call fcn.00420f90
add esp, 0x14
mov esp, ebp
pop ebp
ret

Function at 0x421100
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
mov edi, dword [ebp + 0xc]
mov ecx, dword [edi + 4]
push 0
push 0x80
push 3
push 0
push 1
push Ordinal_1
test ecx, ecx
je 0x42112e
mov eax, dword [ebp + 8]
push eax
call fcn.00420d20
jmp 0x421138
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x42119d
call fcn.0041b720
test eax, eax
js 0x4211b0
mov eax, dword [edi]
lea edx, [ebp - 4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x421167
call fcn.0041b720
test eax, eax
js 0x4211b0
mov eax, dword [ebp - 8]
push esi
mov esi, dword [ebp - 4]
test esi, esi
jne 0x421173
test eax, eax
je 0x4211a1
mov edx, dword [ebp + 0x14]
xor ecx, ecx
cmp esi, ecx
ja 0x4211a1
jb 0x421182
cmp eax, edx
ja 0x4211a1
mov eax, dword [edi]
mov ecx, dword [ebp + 0x10]
push 4
push 2
push 0
push 0
push 0
push eax
call fcn.00420e50
pop esi
pop edi
mov esp, ebp
pop ebp
ret
mov dword [edi], eax
jmp 0x421146
or eax, esi
mov eax, 0x800703ee
je 0x4211af
mov eax, 0x800700df
pop esi
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x421410
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac
mov eax, dword [0x5bbfb0]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
xor eax, eax
push esi
mov esi, dword [ebp + 0x10]
mov dword [esi + 2], eax
mov dword [esi + 6], eax
mov dword [esi + 0xa], eax
mov dword [esi + 0xe], eax
mov dword [esi + 0x12], eax
push edi
mov dword [esi + 0x16], eax
mov dword [ebp - 0xa8], eax
mov word [esi + 0x1a], ax
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0xa4], eax
mov dword [ebp - 0xa0], eax
mov dword [ebp - 0x9c], eax
mov dword [ebp - 0x98], eax
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x90], eax
movzx eax, word [esi]
push 3
lea edx, [ebp - 0x84]
push ecx
lea ecx, [ebp - 0x88]
mov dword [ebp - 0xac], 0x100
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0x88], edx
call fcn.00421250
mov edx, dword [ebp - 0x88]
lea eax, [ebp - 0x8c]
push eax
lea ecx, [ebp - 0xac]
push ecx
push 0
push edx
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov edi, eax
mov eax, dword [ebp - 0x88]
lea ecx, [ebp - 0x84]
cmp eax, ecx
je 0x4214d9
push eax
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
test edi, edi
je 0x4214f6
push edi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00538458
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [ebp - 0x8c]
xor edi, edi
mov eax, ebx
test ebx, ebx
je 0x421531
mov ecx, dword [eax + 4]
cmp ecx, 2
je 0x42151b
cmp ecx, 0x17
je 0x42151b
mov eax, dword [eax + 0x1c]
test eax, eax
jne 0x421505
jmp 0x421531
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 0x18]
push edx
push eax
push esi
call sub.MSVCR100.dll_memcpy
add esp, 0xc
mov edi, 1
push ebx
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
pop ebx
test edi, edi
je 0x42155d
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.WS2_32.dll_htons]
mov word [esi + 2], ax
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00538458
mov esp, ebp
pop ebp
ret
push 0x2af9
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.00538458
mov esp, ebp
pop ebp
ret
Function at 0x423b40
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, ecx
mov eax, dword [ebx + 4]
mov ecx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
cmp esi, dword [eax]
jne 0x423b6f
cmp ecx, eax
jne 0x423b6f
mov ecx, ebx
call fcn.00423810
mov eax, dword [ebx + 4]
mov ecx, dword [eax]
mov eax, dword [ebp + 8]
pop esi
mov dword [eax], ecx
pop ebx
pop ebp
ret 0xc
cmp esi, ecx
je 0x423c2b
push edi
mov edx, dword [esi]
mov dword [ebp + 0xc], edx
mov edx, dword [esi + 8]
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x423b85
sub eax, edi
add eax, edx
mov edi, 0x811c9dc5
cmp edx, eax
je 0x423bb0
lea esp, [esp]
movsx ecx, byte [edx]
imul edi, edi, 0x1000193
inc edx
xor edi, ecx
cmp edx, eax
jne 0x423ba0
mov ecx, dword [ebx + 0x20]
mov eax, ecx
and eax, edi
cmp dword [ebx + 0x24], eax
ja 0x423bc5
shr ecx, 1
or edx, 0xffffffff
sub edx, ecx
add eax, edx
mov ecx, dword [ebx + 0x10]
cmp dword [ecx + eax*8 + 4], esi
lea ecx, [ecx + eax*8]
jne 0x423bee
cmp dword [ecx], esi
jne 0x423be6
mov edx, dword [ebx + 4]
mov dword [ecx], edx
mov ecx, dword [ebx + 4]
mov edx, dword [ebx + 0x10]
mov dword [edx + eax*8 + 4], ecx
jmp 0x423bf6
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
jmp 0x423bf6
cmp dword [ecx], esi
jne 0x423bf6
mov edx, dword [esi]
mov dword [ecx], edx
cmp esi, dword [ebx + 4]
je 0x423c1e
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov dword [eax], ecx
mov edx, dword [esi]
mov eax, dword [esi + 4]
lea ecx, [esi + 8]
mov dword [edx + 4], eax
call fcn.0041cb60
push esi
call sub.mfc100u.dll_delete
add esp, 4
dec dword [ebx + 8]
mov esi, dword [ebp + 0xc]
cmp esi, dword [ebp + 0x10]
jne 0x423b78
pop edi
mov eax, dword [ebp + 8]
mov dword [eax], esi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x425ac0
Capabilities:
Parse credit card information

Disassembly:
lea ecx, [edx - 2]
cmp ecx, 0xa
ja case.default.0x425acc
jmp dword [ecx*4 + 0x425c28]
cmp al, 0x40
jne 0x425add
mov eax, 4
ret
mov cl, al
or cl, 0x20
cmp cl, 0x61
jb 0x425aec
cmp cl, 0x7a
jbe 0x425b3c
cmp al, 0x30
jl 0x425af4
cmp al, 0x39
jle 0x425b3c
cmp al, 0x2d
je 0x425b3c
cmp al, 0x5f
je 0x425b3c
cmp al, 0x2e
je 0x425b3c
cmp al, 0x21
je 0x425b3c
cmp al, 0x7e
je 0x425b3c
cmp al, 0x2a
je 0x425b3c
cmp al, 0x27
je 0x425b3c
cmp al, 0x28
je 0x425b3c
cmp al, 0x29
je 0x425b3c
cmp al, 0x25
je 0x425b3c
cmp al, 0x3b
je 0x425b3c
cmp al, 0x3a
je 0x425b3c
cmp al, 0x26
je 0x425b3c
cmp al, 0x3d
je 0x425b3c
cmp al, 0x2b
je 0x425b3c
cmp al, 0x24
je 0x425b3c
cmp al, 0x2c
jne case.default.0x425acc
mov eax, 3
ret
cmp al, 0x5b
jne 0x425b4c
mov eax, 5
ret
mov cl, al
or cl, 0x20
cmp cl, 0x61
jb 0x425b5b
cmp cl, 0x7a
jbe 0x425b6f
cmp al, 0x30
jl 0x425b63
cmp al, 0x39
jle 0x425b6f
cmp al, 0x2e
je 0x425b6f
cmp al, 0x2d
jne case.default.0x425acc
mov eax, 6
ret
mov cl, al
or cl, 0x20
cmp cl, 0x61
jb 0x425b84
cmp cl, 0x7a
jbe 0x425b6f
cmp al, 0x30
jl 0x425b8c
cmp al, 0x39
jle 0x425b6f
cmp al, 0x2e
je 0x425b6f
cmp al, 0x2d
je 0x425b6f
cmp al, 0x3a
jne case.default.0x425acc
mov eax, 0xb
ret
cmp al, 0x5d
jne case.0x425acc.5
mov eax, 8
ret
cmp al, 0x30
jl 0x425bb4
cmp al, 0x39
jle 0x425bda
mov cl, al
or cl, 0x20
cmp cl, 0x61
jb 0x425bc3
cmp cl, 0x66
jbe 0x425bda
cmp al, 0x3a
je 0x425bda
cmp al, 0x2e
je 0x425bda
cmp edx, 7
jne case.default.0x425acc
cmp al, 0x25
jne case.default.0x425acc
mov eax, 9
ret
mov eax, 7
ret
cmp al, 0x5d
je 0x425ba6
mov cl, al
or cl, 0x20
cmp cl, 0x61
jb 0x425bf3
cmp cl, 0x7a
jbe 0x425c0f
cmp al, 0x30
jl 0x425bfb
cmp al, 0x39
jle 0x425c0f
cmp al, 0x25
je 0x425c0f
cmp al, 0x2e
je 0x425c0f
cmp al, 0x2d
je 0x425c0f
cmp al, 0x5f
je 0x425c0f
cmp al, 0x7e
jne case.default.0x425acc
mov eax, 0xa
ret
sub al, 0x30
cmp al, 9
mov eax, 0xc
jbe 0x425c25
mov eax, 1
ret
Function at 0x428ef0
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
push esi
mov esi, ecx
cmp dword [ebp + 0xc], ebx
je 0x428f5f
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x1c]
push 0x30
push eax
push ecx
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
je 0x428fd5
mov eax, dword [ebp + 8]
mov edx, dword [esi + 0x1c]
xor ecx, ecx
cmp word [eax], 2
setne cl
dec ecx
and ecx, 0xfffffff4
add ecx, 0x1c
push ecx
push eax
push edx
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x428f54
cmp eax, 0xffffffff
jne 0x428f4c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x428f54
pop esi
xor eax, eax
pop ebx
pop ebp
ret 8
pop esi
mov eax, 1
pop ebx
pop ebp
ret 8
mov eax, dword [ebp + 8]
xor ecx, ecx
cmp word [eax], 2
setne cl
dec ecx
and ecx, 0xfffffff4
add ecx, 0x1c
push ecx
push eax
mov eax, dword [esi + 0x1c]
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x428fd5
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x1c]
push 0x23
push ecx
push edx
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
je 0x428fd5
mov dword [esi + 0x4c], 1
push 0
mov dword [esi + 0x50], 1
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esi]
mov edx, dword [eax + 0xb0]
mov ecx, esi
call edx
cmp eax, 2
jne 0x428f54
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x428fce
mov eax, 0x4c7
push eax
call dword [sym.imp.WS2_32.dll_WSASetLastError]
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 8

Function at 0x429220
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x18c]
push edi
test eax, eax
jne 0x4292dc
mov ebx, dword [sym.imp.KERNEL32.dll_SetLastError]
lea esp, [esp]
mov ecx, dword [esi + 0x2c]
mov eax, dword [esi + 0x5c]
mov edx, dword [esi + 0x1c]
push 0
push ecx
push eax
push edx
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
test edi, edi
jle 0x4292af
push 0
call ebx
mov eax, dword [esi + 0x5c]
mov edx, dword [esi]
push edi
push eax
mov eax, dword [edx + 0xc0]
mov ecx, esi
call eax
cmp eax, 2
jne 0x4292b8
mov edx, dword [esi + 0x24]
push edx
push str._C_CNNID:__Iu__OnReceive___event_return_HR_ERROR__connection_will_be_closed___n
call fcn.004fb3e0
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x429294
mov eax, 0x4c7
mov dword [esi + 0x10], 4
mov dword [esi + 0x14], eax
mov ecx, 1
mov dword [esi + 0x18], ecx
pop edi
mov dword [esi + 0xc], ecx
pop esi
xor eax, eax
pop ebx
ret
cmp edi, 0xffffffff
je 0x4292cf
test edi, edi
je 0x4292e5
mov ecx, dword [esi + 0x18c]
test ecx, ecx
je 0x429240
pop edi
pop esi
mov eax, 1
pop ebx
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x429294
pop edi
pop esi
mov eax, 1
pop ebx
ret
mov dword [esi + 0x10], 5
mov dword [esi + 0x14], 0
mov ecx, 1
mov dword [esi + 0x18], ecx
pop edi
mov dword [esi + 0xc], ecx
pop esi
xor eax, eax
pop ebx
ret
Function at 0x429310
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x18]
push esi
mov esi, ecx
mov ecx, dword [ebx + 0x14]
sub eax, ecx
push edi
je 0x4293b6
lea esp, [esp]
mov edx, dword [esi + 0x2c]
cmp eax, edx
jl 0x429339
mov eax, edx
push 0
push eax
mov eax, dword [esi + 0x1c]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_send]
mov edi, eax
test edi, edi
jle 0x4293a3
lea ebx, [esi + 0x154]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
sub dword [esi + 0x188], edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x14]
mov edx, dword [esi]
push edi
push eax
mov eax, dword [edx + 0xb8]
mov ecx, esi
call eax
cmp eax, 2
jne 0x429399
mov ecx, dword [esi + 0x24]
push ecx
push str._C_CNNID:__Iu__OnSend___event_should_not_return_HR_ERROR____n
call fcn.004fb3e0
add esp, 8
push edi
mov ecx, ebx
call fcn.004289b0
jmp 0x4293a8
cmp edi, 0xffffffff
je 0x4293c2
mov ecx, dword [ebx + 0x14]
mov eax, dword [ebx + 0x18]
sub eax, ecx
jne 0x429330
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret 8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x4293e4
mov edx, dword [ebp + 0xc]
pop edi
pop esi
mov dword [edx], 1
mov eax, 1
pop ebx
pop ebp
ret 8
mov ecx, 1
pop edi
mov dword [esi + 0x14], eax
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], 3
mov dword [esi + 0x18], ecx
pop esi
xor eax, eax
pop ebx
pop ebp
ret 8

Function at 0x42a230
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
lea eax, [esi + 0x44]
push eax
push 0
push esi
push 0x42a030
push 0
push 0
call dword [sym.imp.MSVCR100.dll__beginthreadex]
xor ecx, ecx
add esp, 0x18
test eax, eax
setne cl
mov dword [esi + 0x40], eax
pop esi
mov eax, ecx
ret
Function at 0x42bec0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
movzx ecx, word [edx]
mov eax, 0x811c9dc5
test cx, cx
je 0x42bef9
push esi
lea esi, [ecx - 0x41]
add edx, 2
cmp si, 0x19
ja 0x42bee5
add ecx, 0x20
imul eax, eax, 0x1000193
movzx ecx, cx
xor eax, ecx
movzx ecx, word [edx]
test cx, cx
jne 0x42bed6
pop esi
pop ebp
ret 4

Function at 0x42e5d0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x24]
cdq
push esi
mov esi, eax
mov eax, dword [ebp + 0x20]
push edi
mov edi, eax
or edi, ecx
jne 0x42e646
mov eax, esi
mov ecx, edx
movzx edi, byte [ebp + 0xc]
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
mov esi, dword [ebp + 0x28]
setne bl
and edi, 7
mov dword [esi], 0
mov edx, 2
add ebx, ebx
add ebx, ebx
add ebx, ebx
or ebx, edi
movzx edi, byte [ebp + 0x10]
shl ebx, 4
and edi, 0xf
or ebx, edi
mov edi, dword [ebp + 0x14]
mov dword [esi], ebx
xor ebx, ebx
test edi, edi
setne bl
shl ebx, 0xf
or dword [esi], ebx
test ecx, ecx
ja 0x42e687
jb 0x42e639
cmp eax, 0x7e
jae 0x42e65e
movzx eax, al
and eax, 0x7f
shl eax, 8
or dword [esi], eax
jmp 0x42e6a2
cmp ecx, edx
ja 0x42e5eb
jb 0x42e650
cmp eax, esi
jae 0x42e5eb
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
xor eax, eax
pop esi
pop ebp
ret
test ecx, ecx
ja 0x42e687
jb 0x42e66b
cmp eax, 0xffff
ja 0x42e687
or dword [esi], 0x7e00
push eax
call dword [sym.imp.WS2_32.dll_htons]
movzx ecx, ax
shl ecx, 0x10
or dword [esi], ecx
mov edx, 4
jmp 0x42e6a2
or dword [esi], 0x7f00
push ecx
push eax
call fcn.00420a30
mov dword [esi + 6], edx
add esp, 8
mov dword [esi + 2], eax
mov edx, 0xa
mov ecx, dword [ebp + 0x18]
test edi, edi
je 0x42e6c9
mov eax, dword [edi]
mov dword [edx + esi], eax
xor eax, eax
cmp dword [ebp + 0x1c], eax
jle 0x42e6c6
mov ebx, eax
and ebx, 3
mov bl, byte [ebx + edi]
xor byte [eax + ecx], bl
inc eax
cmp eax, dword [ebp + 0x1c]
jl 0x42e6b5
add edx, 4
mov eax, dword [ebp + 0x2c]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp + 0x1c]
pop ebx
mov dword [eax + 4], esi
pop edi
mov dword [eax], edx
mov dword [eax + 8], ecx
mov eax, 1
pop esi
pop ebp
ret
Function at 0x43b510
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
push esi
xor esi, esi
test edx, edx
je 0x43b554
mov al, byte [edx]
test al, al
je 0x43b554
push edi
mov edi, 0x100
movsx eax, al
or eax, edi
mov ecx, eax
shr ecx, 2
xor ecx, eax
imul eax, eax
and ecx, 0xf
add edi, 0x100
rol esi, cl
inc edx
xor esi, eax
mov al, byte [edx]
test al, al
jne 0x43b527
mov eax, esi
shr eax, 0x10
pop edi
xor eax, esi
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x43b560
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
xor edi, edi
test esi, esi
je 0x43b5b7
mov al, byte [esi]
test al, al
je 0x43b5b7
push ebx
mov ebx, 0x100
jmp 0x43b580
movsx eax, al
push eax
call fcn.004787e0
or eax, ebx
mov ecx, eax
shr ecx, 2
xor ecx, eax
imul eax, eax
and ecx, 0xf
add esp, 4
rol edi, cl
inc esi
add ebx, 0x100
xor edi, eax
mov al, byte [esi]
test al, al
jne 0x43b580
mov eax, edi
shr eax, 0x10
pop ebx
xor eax, edi
pop edi
pop esi
ret
pop edi
xor eax, eax
pop esi
ret

Function at 0x440410
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.004401a0
Function at 0x44bad0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
pop edi
pop esi
ret

Function at 0x451ef0
Capabilities:
Allocate thread local storage

Disassembly:
push 0
push 0
push 0
call fcn.00430610
add esp, 0xc
test eax, eax
jne 0x451f05
xor eax, eax
ret
push 0
push 0x5bf3f0
call fcn.0044bab0
add esp, 8
test eax, eax
je 0x451f02
push ebx
push 0
push 0x5bf3f4
call fcn.0044bab0
add esp, 8
test eax, eax
je 0x451f92
mov eax, dword [0x5bf400]
mov ecx, dword [0x5b8ab8]
push esi
push eax
push ecx
xor ecx, ecx
lea ebx, [ecx + 1]
call fcn.00451d30
mov esi, eax
add esp, 8
test esi, esi
je 0x451f7a
push esi
call fcn.00451c00
add esp, 4
test eax, eax
jne 0x451f67
push esi
call fcn.004511b0
add esp, 4
xor esi, esi
jmp 0x451f7a
push 0x1c
push str.OpenSSL_NIST_SP_800_90A_DRBG
push esi
mov dword [esi + 0x58], ebx
call fcn.00451230
add esp, 0xc
mov dword [0x5bf3f8], esi
test esi, esi
pop esi
jne 0x451fa3
push 0x5bf3f4
call fcn.0044bb20
add esp, 4
push 0x5bf3f0
call fcn.0044bb20
add esp, 4
xor eax, eax
pop ebx
ret
mov eax, ebx
pop ebx
ret
Function at 0x454420
Capabilities:
Access the windows event log
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x208
call fcn.00538850
mov eax, dword [0x5bbfb0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
test esi, esi
je 0x454495
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x454495
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
push ecx
lea edx, [ebp - 0x204]
push 0x200
push edx
call sub.MSVCR100.dll__vsnprintf
add esp, 0x10
test eax, eax
jns 0x454478
mov eax, 0x200
push 0
lea ecx, [ebp - 0x208]
push ecx
push eax
lea edx, [ebp - 0x204]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x4545de
mov ebx, dword [ebp + 8]
mov eax, ebx
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4544a0
sub eax, edx
lea edi, [eax + 1]
lea eax, [edi + edi]
call fcn.00538880
mov esi, esp
test esi, esi
jne 0x4544c4
mov esi, str.no_stack_
jmp 0x45454f
push edi
push esi
push edi
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x4544f1
test edi, edi
je 0x4544f1
lea ebx, [ebx]
mov ecx, dword [ebp + 8]
movsx dx, byte [eax + ecx]
mov word [esi + eax*2], dx
inc eax
cmp eax, edi
jb 0x4544e0
xor eax, eax
test edi, edi
je 0x45454f
cmp word [esi + eax*2], 0x25
jne case.0x454514.43
lea ecx, [esi + eax*2 + 2]
movzx edx, word [ecx]
add edx, 0xffffffd6
cmp edx, 0x49
ja case.0x454514.43
movzx edx, byte [edx + 0x454610]
jmp dword [edx*4 + 0x4545f8]
inc eax
add ecx, 2
jmp 0x454502
mov ecx, 0x53
mov word [esi + eax*2 + 2], cx
jmp case.0x454514.43
mov edx, 0x73
jmp 0x454545
mov ecx, 0x43
mov word [esi + eax*2 + 2], cx
jmp case.0x454514.43
mov edx, 0x63
mov word [esi + eax*2 + 2], dx
inc eax
cmp eax, edi
jb 0x4544f7
lea eax, [ebp + 0xc]
push eax
push esi
lea ecx, [ebp - 0x204]
push 0xff
push ecx
call sub.MSVCR100.dll__vsnwprintf
xor edx, edx
add esp, 0x10
mov word [ebp - 6], dx
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x4545c8
call fcn.004542e0
test eax, eax
jle 0x4545c8
push str.OpenSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x4545de
push 0
lea ecx, [ebp - 0x208]
push ecx
push 0
push 1
push 0
push 0
push 0
push 1
lea eax, [ebp - 0x204]
push esi
mov dword [ebp - 0x208], eax
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
jmp 0x4545de
push 0x10
push str.OpenSSL:_FATAL
lea edx, [ebp - 0x204]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
lea esp, [ebp - 0x214]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00538458
mov esp, ebp
pop ebp
ret

Function at 0x454690
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 0x10]
xor cl, cl
test edi, edi
je 0x4546b6
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, dword [esp + 0x14]
sub esi, eax
mov dl, byte [esi + eax]
mov bl, byte [eax]
xor dl, bl
or cl, dl
inc eax
dec edi
jne 0x4546a7
pop esi
pop ebx
movzx eax, cl
pop edi
ret