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

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push ebp
xor ebp, ebp
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x1c]
mov dword [eax], ebp
mov eax, dword [esp + 0x20]
push edx
push eax
push ecx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x1c], ebp
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [esp + 8], eax
cmp eax, ebp
jne 0x430c31
push edi
mov edi, dword [esp + 0x14]
cmp edi, ebp
je 0x430c0f
push ebx
push esi
lea esp, [esp]
mov eax, dword [edi + 4]
cmp eax, 2
jne 0x430add
lea ebx, [eax + 0xe]
jmp 0x430ae9
cmp eax, 0x17
jne 0x430b88
lea ebx, [eax + 5]
cmp dword [edi + 0x18], ebp
je 0x430b88
mov eax, dword [edi + 0x10]
cmp eax, ebp
jbe 0x430b88
cmp eax, ebx
jb 0x430b88
push 0x20
call dword [0x47604c]
mov esi, eax
add esp, 4
cmp esi, ebp
je 0x430b95
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 ebx
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x18], ebp
mov dword [esi + 0x14], ebp
mov dword [esi + 0x1c], ebp
call dword [0x47604c]
add esp, 4
mov dword [esi + 0x18], eax
cmp eax, ebp
je 0x430b9f
mov ecx, dword [edi + 0x18]
push ebx
push ecx
push eax
call sub.MSVCR100.dll_memcpy
mov eax, dword [edi + 0x14]
add esp, 0xc
cmp eax, ebp
je 0x430b6f
push eax
call dword [0x476058]
add esp, 4
mov dword [esi + 0x14], eax
cmp eax, ebp
je 0x430bb3
cmp dword [esp + 0x10], ebp
jne 0x430b79
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x430b84
mov dword [eax + 0x1c], esi
mov dword [esp + 0x18], esi
mov edi, dword [edi + 0x1c]
cmp edi, ebp
jne 0x430ad0
jmp 0x430bcf
mov dword [esp + 0x14], 8
jmp 0x430bcf
push esi
mov dword [esp + 0x18], 8
call dword [0x476050]
add esp, 4
jmp 0x430bcf
mov edx, dword [esi + 0x18]
push edx
mov dword [esp + 0x18], 8
call dword [0x476050]
push esi
call dword [0x476050]
add esp, 8
mov eax, dword [esp + 0x1c]
pop esi
pop ebx
cmp eax, ebp
je 0x430be0
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [esp + 0xc], ebp
je 0x430c09
mov eax, dword [esp + 8]
push eax
call fcn.00430a40
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x10]
add esp, 4
mov ecx, ebp
pop edi
mov dword [esp + 4], ebp
mov dword [edx], ecx
pop ebp
add esp, 0x10
ret
cmp dword [esp + 8], ebp
jne 0x430c22
push 0x2af9
mov dword [esp + 0x10], 0x2af9
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0xc]
mov dword [edx], ecx
pop edi
pop ebp
add esp, 0x10
ret

Function at 0x431010
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push 0
push 0
push eax
push ecx
push 0
push 0
call dword [sym.imp.MSVCR100.dll__beginthreadex]
add esp, 0x18
test eax, eax
je 0x431034
cmp eax, 0xffffffff
jne 0x431036
xor eax, eax
ret
Function at 0x433d40
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
sub esp, 0x14
push esi
push 0
push ebx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 4
mov dword [esp + 0x1c], esi
call sub.MSVCR100.dll_memset
mov eax, dword [esp + 0x2c]
add esp, 0xc
push 0xf0000000
push eax
push 0
push 0
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x433e20
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 4]
lea edx, [esp]
push edx
push 0
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x433e01
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp]
push 0
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x433e01
mov ecx, dword [esp]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push 0
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
push eax
push 4
push ecx
call ebp
test eax, eax
je 0x433e00
cmp esi, dword [esp + 0xc]
jb 0x433e00
mov eax, dword [esp + 4]
push 0
lea edx, [esp + 0x18]
push edx
push ebx
push 2
push eax
call ebp
pop ebp
mov eax, dword [esp]
test eax, eax
je 0x433e0f
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [esp + 4]
test eax, eax
je 0x433e20
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
add esp, 0x14
ret
Function at 0x4361b0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x476018]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call dword [sym.imp.MSVCR100.dll_getenv]
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x436216
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x436216
lea edx, [esp]
push edx
call dword [0x476058]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00418a8f
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor ecx, esp
xor eax, eax
call fcn.00418a8f
add esp, 0x108
ret
Function at 0x43f2b0
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
push str.Connected_for_receive
push 0x46f3d4
push ecx
call fcn.00428a80
add esp, 0xc
mov eax, esi
mov dword [esi], 1
call fcn.0043e3f0
test eax, eax
jne 0x43f2e0
mov eax, esi
jmp fcn.0043e820
ret
Function at 0x43f760
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x8c
mov eax, dword [0x476018]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
push ebp
push esi
push edi
mov ebx, ecx
mov esi, dword [ebx + 0x5c8]
mov ebp, dword [ebx]
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 0x80
mov edx, dword [esi + 0x154]
mov eax, dword [esi + 0x15c]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esi + 0x14]
push 0
add edx, 4
push edx
push eax
push ecx
mov dword [esp + 0x2c], ebx
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [esi + 0x148], 0
mov dword [esi + 0x14c], eax
jne 0x43f7e7
mov edx, dword [esp + 0x10]
push edx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esi + 0xc8]
push ecx
call sub.MSVCR100.dll_memcpy
mov edx, dword [esp + 0x1c]
add esp, 0xc
mov dword [esi + 0x148], edx
mov eax, dword [esi + 0x14c]
cmp eax, 4
jge 0x43f822
push str.Received_too_short_packet
push ebp
call fcn.00428bd0
add esp, 8
mov dword [esi + 0xc], 7
xor eax, eax
mov ecx, dword [esp + 0x98]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00418a8f
add esp, 0x8c
ret
mov edx, dword [esi + 0x15c]
movzx ecx, byte [edx]
movzx edx, byte [edx + 1]
shl cx, 8
movzx ecx, cx
or ecx, edx
mov dword [esi + 0xc], ecx
add ecx, 0xfffffffd
cmp ecx, 3
ja case.default.0x43f847
jmp dword [ecx*4 + 0x43f990]
cmp eax, 4
jle case.0x43f847.4
mov ecx, dword [esi + 0x15c]
movzx edx, byte [ecx + 2]
movzx ecx, byte [ecx + 3]
shl dx, 8
movzx edx, dx
or edx, ecx
movzx ecx, word [esi + 0x40]
inc ecx
and ecx, 0xffff
cmp ecx, edx
jne case.0x43f847.4
mov edx, dword [esi + 0x15c]
add eax, 0xfffffffc
push eax
add edx, 4
push edx
push 1
push ebx
call fcn.00429060
mov edi, eax
add esp, 0x10
test edi, edi
je 0x43f8b3
mov ecx, 5
mov eax, esi
call fcn.0043f6e0
mov eax, edi
jmp 0x43f809
mov eax, dword [esi + 0x14c]
sub eax, 4
cdq
add dword [ebp + 0xb0], eax
mov ecx, dword [ebp + 0xb0]
adc dword [ebp + 0xb4], edx
mov eax, dword [ebp + 0xb4]
push eax
push ecx
push ebp
call fcn.00434e50
add esp, 0xc
jmp case.0x43f847.4
mov edi, dword [esi + 0x15c]
lea ebx, [eax - 4]
mov eax, dword [esi + 0x15c]
movzx edx, byte [eax + 2]
shl dx, 8
movzx ecx, dx
movzx edx, byte [eax + 3]
push ebx
add edi, 4
or ecx, edx
push 0
push edi
mov dword [esi + 8], ecx
call dword [sym.imp.MSVCR100.dll_memchr]
add esp, 0xc
test eax, eax
je 0x43f92e
sub eax, edi
cmp eax, ebx
jae 0x43f92e
push edi
push str.TFTP_error:__s_n
push ebp
call fcn.00428a80
add esp, 0xc
mov ebx, dword [esp + 0x14]
push ebx
call fcn.004350b0
add esp, 4
test eax, eax
je 0x43f807
mov ecx, 5
mov eax, esi
call fcn.0043f6e0
mov eax, 0x2a
jmp 0x43f809
add eax, 0xfffffffe
push eax
mov eax, dword [esi + 0x15c]
add eax, 2
push eax
push esi
call fcn.0043e560
add esp, 0xc
test eax, eax
je case.0x43f847.4
jmp 0x43f809
push str.Internal_error:_Unexpected_packet
push 0x46f048
push ebp
call fcn.00428bd0
add esp, 0xc
jmp case.0x43f847.4
Function at 0x441410
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x476018]
xor eax, esp
mov dword [esp + 0x190], eax
lea eax, [esp]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x441445
push eax
push str.WSAStartup_failed___d_
push esi
call fcn.00428bd0
add esp, 0xc
jmp 0x44147e
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [esp]
cmp al, 2
jne 0x441470
shr eax, 8
test al, al
jne 0x441470
xor eax, eax
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.00418a8f
add esp, 0x194
ret
push str.insufficient_winsock_version_to_support_telnet
push esi
call fcn.00428bd0
add esp, 8
mov ecx, dword [esp + 0x190]
xor ecx, esp
mov eax, 2
call fcn.00418a8f
add esp, 0x194
ret

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

Disassembly:
push ecx
mov edx, dword [edi + 0x1a8]
mov al, byte [esp + 8]
push esi
mov esi, dword [edi]
push 0
push 3
lea ecx, [esp + 0xc]
push ecx
push edx
mov byte [esp + 0x14], 0xff
mov byte [esp + 0x15], al
mov byte [esp + 0x16], bl
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x441654
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.00428bd0
add esp, 0xc
mov esi, dword [esp + 0xc]
mov ecx, dword [edi]
push str.SENT
mov eax, ebx
call fcn.00441510
add esp, 4
pop esi
pop ecx
ret
Function at 0x442360
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
cmp dword [esp + 0xc], 0x1f
mov eax, dword [esp + 8]
mov eax, dword [eax]
push ebp
mov ebp, dword [eax + 0x184]
mov dword [esp + 4], eax
jne 0x4424b7
push ebx
push esi
push edi
lea ebx, [ebp + 0x1cb0]
lea edi, [ebp + 0x1eb0]
mov dword [edi], ebx
cmp ebx, edi
jae 0x442397
mov byte [ebx], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x4423a2
mov byte [eax], 0xfa
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x4423ad
mov byte [eax], 0x1f
inc dword [edi]
movzx ecx, word [ebp + 0x1ca8]
mov esi, dword [sym.imp.WS2_32.dll_htons]
push ecx
call esi
movzx edx, ax
movzx eax, word [ebp + 0x1caa]
push eax
mov dword [esp + 0x20], edx
call esi
movzx ecx, ax
mov eax, dword [edi]
cmp eax, edi
jae 0x4423df
mov dl, byte [esp + 0x1c]
mov byte [eax], dl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x4423ed
mov dl, byte [esp + 0x1d]
mov byte [eax], dl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x4423f7
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x442401
mov byte [eax], ch
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x44240c
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x442417
mov byte [eax], 0xf0
inc dword [edi]
mov eax, dword [edi]
mov esi, dword [esp + 0x10]
mov dword [ebp + 0x1eb4], eax
sub eax, ebx
sub eax, 2
push eax
lea eax, [ebp + 0x1cb2]
push 0x3e
mov dword [edi], ebx
call fcn.00441860
mov edi, dword [esp + 0x20]
mov edx, dword [edi + 0x1a8]
add esp, 8
push 0
push 3
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_send]
push edx
call ebx
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jns 0x442472
call esi
push eax
mov eax, dword [esp + 0x14]
push str.Sending_data_failed___d_
push eax
call fcn.00428bd0
add esp, 0xc
lea ecx, [ebp + 0x1cb3]
push ecx
push edi
mov eax, 4
call fcn.004420f0
mov edx, dword [edi + 0x1a8]
add esp, 8
push 0
push 2
add ebp, 0x1cb7
push ebp
push edx
call ebx
test eax, eax
jns 0x4424b4
call esi
push eax
mov eax, dword [esp + 0x14]
push str.Sending_data_failed___d_
push eax
call fcn.00428bd0
add esp, 0xc
pop edi
pop esi
pop ebx
pop ebp
pop ecx
ret
Function at 0x443030
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x88
mov eax, dword [0x476018]
xor eax, esp
mov dword [esp + 0x84], eax
push ebx
push ebp
mov ebp, dword [esi + 0x1ac]
push edi
mov edi, dword [esi]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
push ebp
or ebx, 0xffffffff
mov dword [esp + 0x18], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x44308a
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x14]
push eax
push ebp
mov dword [esp + 0x18], 0x80
call dword [sym.imp.WS2_32.dll_accept]
mov ebx, eax
push ebp
push esi
call fcn.0042de10
add esp, 8
cmp ebx, 0xffffffff
jne 0x4430c4
push str.Error_accept__ing_server_connect
push edi
call fcn.00428bd0
add esp, 8
pop edi
pop ebp
mov eax, 0x1e
pop ebx
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.00418a8f
add esp, 0x88
ret
push str.Connection_accepted_from_server_n
push edi
call fcn.00428a80
push 1
xor ebp, ebp
push ebx
mov dword [esi + 0x2cc], ebp
mov dword [esi + 0x1ac], ebx
call fcn.004562a0
add esp, 0x10
mov dword [esi + 0x1bc], 1
cmp dword [edi + 0x640], ebp
je 0x443166
push 1
push edi
call fcn.00426520
mov ecx, dword [edi + 0x644]
mov edx, dword [edi + 0x640]
push 1
push ebx
push ecx
call edx
push ebp
push edi
mov ebx, eax
call fcn.00426520
add esp, 0x1c
cmp ebx, ebp
je 0x443166
mov eax, dword [esi + 0x1ac]
cmp eax, 0xffffffff
je 0x443143
push eax
push esi
call fcn.0042de10
add esp, 8
mov dword [esi + 0x1ac], 0xffffffff
pop edi
mov dword [esi + 0x2d4], ebp
pop ebp
mov eax, 0x2a
pop ebx
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.00418a8f
add esp, 0x88
ret
mov ecx, dword [esp + 0x90]
pop edi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00418a8f
add esp, 0x88
ret
Function at 0x446c50
Capabilities:
Check http status code

Disassembly:
push ebx
mov ebx, eax
mov eax, 0x51eb851f
imul ecx
sar edx, 5
push ebp
mov ebp, dword [esp + 0xc]
mov eax, edx
shr eax, 0x1f
push esi
add eax, edx
xor esi, esi
push edi
mov edi, dword [ebx]
cmp eax, 2
je 0x446c8a
push str.Couldnt_set_desired_mode
push edi
call fcn.00428bd0
add esp, 8
pop edi
lea eax, [esi + 0x11]
pop esi
pop ebp
pop ebx
ret
cmp ecx, 0xc8
je 0x446ca1
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200_n
push edi
call fcn.00428a80
add esp, 0xc
cmp ebp, 0x13
jne 0x446cb6
push ebx
call fcn.00446bd0
add esp, 4
pop edi
mov esi, eax
pop esi
pop ebp
pop ebx
ret
cmp ebp, 0x14
jne 0x446cc7
call fcn.00443cd0
pop edi
mov esi, eax
pop esi
pop ebp
pop ebx
ret
cmp ebp, 0x15
jne 0x446ce0
push 0xd
push 1
push ebx
call fcn.00445ea0
add esp, 0xc
pop edi
mov esi, eax
pop esi
pop ebp
pop ebx
ret
cmp ebp, 0x16
jne 0x446cf4
push 0xe
push 1
push ebx
call fcn.00445ea0
add esp, 0xc
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
Function at 0x45a450
Capabilities:
Get hostname

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
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 0x45a483
push 0x2e
push esi
call dword [sym.imp.MSVCR100.dll_strchr]
add esp, 8
test eax, eax
je 0x45a481
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
ret

Function at 0x45a560
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
sub esp, 0x24
mov eax, dword [0x476018]
xor eax, esp
mov dword [esp + 0x20], eax
push ebp
mov ebp, dword [esp + 0x30]
push 0xf0000000
push 1
push 0
push 0
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x45a607
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
push esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
lea esi, [esp + 0x20]
mov eax, ebp
mov word [esp + 0x14], 0x208
mov dword [esp + 0x18], 0x6601
mov dword [esp + 0x1c], 8
call fcn.0045a4d0
mov ecx, esi
push 8
push ecx
call fcn.0045e780
mov ecx, dword [esp + 0x10]
add esp, 8
lea edx, [esp + 0x10]
push edx
push 0
push 0
push 0x14
lea eax, [esp + 0x24]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
pop esi
test eax, eax
jne 0x45a619
mov edx, dword [esp + 4]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00418a8f
add esp, 0x24
ret
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
mov dword [edi], ecx
mov edx, dword [eax + 4]
mov eax, dword [esp + 8]
push eax
lea ecx, [esp + 0xc]
push ecx
push edi
push 0
push 0
mov dword [edi + 4], edx
mov edx, dword [esp + 0x20]
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov ecx, dword [esp + 4]
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [esp + 0x24]
pop ebp
xor ecx, esp
mov eax, 1
call fcn.00418a8f
add esp, 0x24
ret
Function at 0x45a760
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
sub esp, 0xc
push ebp
mov ebp, dword [esp + 0x18]
push edi
mov edi, ebp
lea ecx, [edi + 1]
mov edi, edi
mov al, byte [edi]
inc edi
test al, al
jne 0x45a770
sub edi, ecx
cmp edi, 0x7fffffff
jbe 0x45a78c
pop edi
mov eax, 0x1b
pop ebp
add esp, 0xc
ret
push esi
test edi, edi
je 0x45a79d
lea eax, [edi + edi]
push eax
call dword [0x47604c]
jmp 0x45a7a8
push 0x46d773
call dword [0x476058]
mov esi, eax
add esp, 4
test esi, esi
jne 0x45a7bb
lea eax, [esi + 0x1b]
pop esi
pop edi
pop ebp
add esp, 0xc
ret
xor eax, eax
test edi, edi
je 0x45a7d1
mov cl, byte [eax + ebp]
mov byte [esi + eax*2], cl
mov byte [esi + eax*2 + 1], 0
inc eax
cmp eax, edi
jb 0x45a7c1
push 0xf0000000
push 1
push 0
push 0
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
mov ebp, dword [esp + 0x24]
test eax, eax
je 0x45a853
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0x8002
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x45a846
mov eax, dword [esp + 0xc]
push 0
lea edx, [edi + edi]
push edx
push esi
push eax
mov dword [esp + 0x24], 0x10
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
mov edx, dword [esp + 0xc]
push 0
lea ecx, [esp + 0x18]
push ecx
push ebp
push 2
push edx
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov ecx, dword [esp + 0x10]
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
mov dword [ebp + 0x10], eax
push esi
mov byte [ebp + 0x14], al
call dword [0x476050]
add esp, 4
pop esi
pop edi
xor eax, eax
pop ebp
add esp, 0xc
ret
Function at 0x45f180
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x14]
lea eax, [ecx + eax*2 + 0xc]
push edi
push eax
call dword [0x47604c]
mov edi, eax
add esp, 4
test edi, edi
jne 0x45f1a5
pop edi
pop esi
pop ecx
ret
lea eax, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], eax
mov edx, dword [esi + 0xc]
push ebx
add edx, eax
push ebp
mov ebp, dword [esp + 0x20]
mov dword [edi + 8], edx
cmp ebp, dword [esi + 0x10]
jbe 0x45f1ec
push eax
mov eax, dword [esi]
call eax
mov ecx, dword [esp + 0x20]
mov edx, dword [edi + 4]
mov eax, dword [esi + 4]
push ebp
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 ebp, dword [esi + 0x14]
add esp, 0x18
jmp 0x45f1f0
mov ebx, dword [esp + 0x1c]
mov eax, dword [edi + 4]
mov ecx, dword [esi]
push eax
call ecx
mov edx, dword [edi + 8]
mov eax, dword [esi]
push edx
call eax
add esp, 8
mov dword [esp + 0x10], 0
test ebp, ebp
je 0x45f24c
mov dword [esp + 0x10], ebp
mov cl, byte [ebx]
xor cl, 0x36
mov byte [esp + 0x18], cl
mov eax, dword [edi + 4]
mov ecx, dword [esi + 4]
push 1
lea edx, [esp + 0x1c]
push edx
push eax
call ecx
mov dl, byte [ebx]
xor dl, 0x5c
mov byte [esp + 0x24], dl
mov ecx, dword [edi + 8]
mov edx, dword [esi + 4]
push 1
lea eax, [esp + 0x28]
push eax
push ecx
inc ebx
call edx
add esp, 0x18
dec ebp
jne 0x45f213
mov eax, dword [esp + 0x10]
pop ebp
pop ebx
cmp eax, dword [esi + 0x10]
jae 0x45f288
mov ecx, dword [edi + 4]
mov edx, dword [esi + 4]
push 1
push str.6_true
push ecx
call edx
mov eax, dword [edi + 8]
mov ecx, dword [esi + 4]
push 1
push 0x46d563
push eax
call ecx
mov eax, dword [esp + 0x20]
inc eax
add esp, 0x18
mov dword [esp + 8], eax
cmp eax, dword [esi + 0x10]
jb 0x45f257
mov eax, edi
pop edi
pop esi
pop ecx
ret
Function at 0x4037a0
Capabilities:
Enumerate gui resources
Get hostname

Disassembly:
mov eax, 0x1c0c
call fcn.0040eb90
mov eax, dword [0x2b89c44]
mov ecx, dword [0x2b89bb8]
shr eax, 3
test eax, eax
jbe 0x4038db
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextVolumeA]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteProfileSectionA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
jmp 0x4037f0
cmp dword [0x2b89c44], 0x959
jne 0x4038bd
push 0
lea eax, [esp + 0x20]
push eax
push 0
push 0x402dbc
push 0
push 0
call edi
push 0
lea ecx, [esp + 0x1020]
push ecx
push 0
call ebx
push 0
push 0
call esi
push 0x402de8
call ebp
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoExW]
push 0
push 0
lea edx, [esp + 0x824]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasA]
push 0
push 0
call esi
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetThreadPriorityBoost]
push 0
lea eax, [esp + 0x1420]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleTitleW]
push 0
push 0x402e50
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceA]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x420]
push edx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push 0
push 0x402e5c
push 0x402e6c
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
mov eax, dword [esp + 0x10]
push eax
call fcn.004035d0
add dword [esp + 0x10], 8
sub dword [esp + 0x14], 1
jne 0x4037f0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c0c
ret
Function at 0x4062eb
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x431aa8]
jne 0x4062f5
repz ret
jmp fcn.0040a8ec

Function at 0x40cfbb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00407c4e
and dword [ebp - 4], 0
cmp dword [0x433138], 0
mov ebx, eax
jne 0x40d06c
push 0x402ca4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40d11d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x402c98
push edi
call esi
test eax, eax
je 0x40d11d
push eax
call fcn.00407bdc
mov dword [esp], 0x402c88
push edi
mov dword [0x433138], eax
call esi
push eax
call fcn.00407bdc
mov dword [esp], 0x402c74
push edi
mov dword [0x43313c], eax
call esi
push eax
call fcn.00407bdc
mov dword [esp], 0x402c58
push edi
mov dword [0x433140], eax
call esi
push eax
call fcn.00407bdc
pop ecx
mov dword [0x433148], eax
test eax, eax
je 0x40d06c
push 0x402c40
push edi
call esi
push eax
call fcn.00407bdc
pop ecx
mov dword [0x433144], eax
mov eax, dword [0x433144]
cmp eax, ebx
je 0x40d0c4
cmp dword [0x433148], ebx
je 0x40d0c4
push eax
call fcn.00407c57
push dword [0x433148]
mov esi, eax
call fcn.00407c57
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40d0c4
test edi, edi
je 0x40d0c4
call esi
test eax, eax
je 0x40d0bb
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40d0bb
test byte [ebp - 0xc], 1
jne 0x40d0c4
or dword [ebp + 0x10], 0x200000
jmp 0x40d0fd
mov eax, dword [0x43313c]
cmp eax, ebx
je 0x40d0fd
push eax
call fcn.00407c57
pop ecx
test eax, eax
je 0x40d0fd
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40d0fd
mov eax, dword [0x433140]
cmp eax, ebx
je 0x40d0fd
push eax
call fcn.00407c57
pop ecx
test eax, eax
je 0x40d0fd
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x433138]
call fcn.00407c57
pop ecx
test eax, eax
je 0x40d11d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40d11f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret