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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x14]
mov edx, 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 0x10023436
push edi
mov edi, dword [ebp - 0x10]
cmp edi, ebx
je 0x10023418
push esi
cmp dword [edi + 4], 2
jne 0x1002339c
cmp dword [edi + 0x18], ebx
je 0x1002339c
mov eax, dword [edi + 0x10]
cmp eax, ebx
jbe 0x1002339c
cmp eax, 0x10
jb 0x1002339c
push 0x20
call dword [section..data]
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x100233a9
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 [section..data]
add esp, 4
mov dword [esi + 0x18], eax
cmp eax, ebx
je 0x100233b2
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 0x10023387
push eax
call dword [0x1019300c]
add esp, 4
mov dword [esi + 0x14], eax
cmp eax, ebx
je 0x100233c5
cmp dword [ebp - 4], ebx
jne 0x1002338f
mov dword [ebp - 4], esi
mov eax, dword [ebp - 0xc]
cmp eax, ebx
je 0x10023399
mov dword [eax + 0x1c], esi
mov dword [ebp - 0xc], esi
mov edi, dword [edi + 0x1c]
cmp edi, ebx
jne 0x100232e2
jmp 0x100233e0
mov dword [ebp - 8], 8
jmp 0x100233e0
push esi
mov dword [ebp - 8], 8
call dword [0x10193004]
add esp, 4
jmp 0x100233e0
mov edx, dword [esi + 0x18]
push edx
mov dword [ebp - 8], 8
call dword [0x10193004]
push esi
call dword [0x10193004]
add esp, 8
mov eax, dword [ebp - 0x10]
pop esi
cmp eax, ebx
je 0x100233ef
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [ebp - 8], ebx
je 0x10023413
mov eax, dword [ebp - 4]
push eax
call fcn.10023260
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 8]
add esp, 4
mov ecx, ebx
pop edi
mov dword [ebp - 4], ebx
mov dword [edx], ecx
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 4], ebx
jne 0x1002342a
push 0x2af9
mov dword [ebp - 8], 0x2af9
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 8]
mov dword [edx], ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10024b40
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push 0
push 0
push eax
push ecx
push 0
push 0
call fcn.1011dae5
add esp, 0x18
test eax, eax
je 0x10024b64
cmp eax, 0xffffffff
jne 0x10024b66
xor eax, eax
pop ebp
ret
Function at 0x100255f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1bc
mov eax, dword [0x1019ca20]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x1019eab4], 0
push esi
mov esi, ecx
mov dword [ebp - 0x160], esi
jne 0x10025628
call fcn.100255e0
test eax, eax
je 0x10025639
mov dword [0x1019eab4], 1
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10118be7
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x654]
test eax, eax
je 0x1002565a
push 0x400
push eax
call fcn.10048b40
add esp, 8
call fcn.100255e0
test eax, eax
jne 0x10025628
push ebx
push edi
lea esp, [esp]
mov esi, 2
lea edi, [ebp - 0x44]
mov dword [ebp - 0x158], 4
lea eax, [ebp - 0x17c]
push eax
call fcn.1001f6b0
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
mov ebx, dword [eax]
mov eax, dword [eax + 0xc]
push 1
mov dword [ebp - 0x150], ecx
mov dword [ebp - 0x14c], edx
mov dword [ebp - 0x148], eax
call fcn.100120c0
mov edx, dword [ebp - 0x150]
add esp, 8
push edx
push ebx
lea ecx, [esi - 1]
push 0
push ecx
call fcn.1011d400
mov dword [ebp - 0x154], eax
lea eax, [ebp - 0x19c]
mov ebx, esi
imul ebx, dword [ebp - 0x14c]
push eax
mov dword [ebp - 0x150], edx
call fcn.1001f6b0
mov ecx, dword [eax + 8]
lea edx, [ebp - 0x1bc]
push edx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 0x164], 0
call fcn.1001f6b0
mov edx, dword [ebp - 0x164]
add esp, 8
lea ecx, [esi + 1]
mov dword [ebp - 0x15c], ecx
mov ecx, dword [ebp - 0x168]
add ecx, dword [eax]
push 0
adc edx, dword [eax + 4]
mov eax, dword [ebp - 0x15c]
push eax
push edx
push ecx
call fcn.1011d400
shld edx, eax, 8
xor dword [ebp - 0x150], edx
lea ecx, [ebp - 0x1ac]
shl eax, 8
xor dword [ebp - 0x154], eax
push ecx
call fcn.1001f6b0
lea edx, [ebp - 0x18c]
add eax, 8
push edx
mov dword [ebp - 0x16c], eax
call fcn.1001f6b0
mov ecx, dword [ebp - 0x16c]
mov edx, dword [ecx]
add edx, dword [eax]
mov eax, dword [ebp - 0x154]
mov ecx, dword [ebp - 0x150]
add esi, 2
imul edx, esi
mov esi, dword [ebp - 0x15c]
shl edx, 0x10
mov dword [edi], eax
xor ebx, edx
mov edx, dword [ebp - 0x148]
mov dword [edi + 4], ecx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], edx
add esp, 8
add edi, 0x10
dec dword [ebp - 0x158]
jne 0x10025672
fld qword [0x1013fe58]
sub esp, 8
fstp qword [esp]
lea eax, [ebp - 0x44]
push 0x40
push eax
call fcn.100489b0
add esp, 0x10
call fcn.100255e0
test eax, eax
je 0x10025660
lea ecx, [ebp - 0x144]
push 0x100
push ecx
mov byte [ebp - 0x144], 0
call fcn.10048c80
add esp, 8
cmp byte [ebp - 0x144], 0
pop edi
pop ebx
je 0x10025811
lea edx, [ebp - 0x144]
push 0x400
push edx
call fcn.10048b40
add esp, 8
call fcn.100255e0
test eax, eax
jne 0x10025628
mov eax, dword [ebp - 0x160]
push str.libcurl_is_now_using_a_weak_random_seed__n
push eax
call fcn.1001fc70
add esp, 8
call fcn.100255e0
mov ecx, dword [ebp - 4]
neg eax
sbb eax, eax
and eax, 0xffffffdd
xor ecx, ebp
add eax, 0x23
pop esi
call fcn.10118be7
mov esp, ebp
pop ebp
ret
Function at 0x10032a50
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
push str.Connected_for_receive
push 0x1013e7cc
push ecx
call fcn.1001fc70
add esp, 0xc
mov eax, esi
mov dword [esi], 1
call fcn.10031b50
test eax, eax
jne 0x10032a84
mov eax, esi
pop ebp
jmp fcn.10031ff0
pop ebp
ret
Function at 0x10032ee0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x1019ca20]
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 + 0x510]
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 0x10032f74
mov edx, dword [ebp - 0x88]
push edx
lea eax, [ebp - 0x84]
push eax
lea ecx, [esi + 0xc8]
push ecx
call fcn.1011b7f0
mov edx, dword [ebp - 0x88]
add esp, 0xc
mov dword [esi + 0x148], edx
mov edx, dword [esi + 0x14c]
cmp edx, 4
jge 0x10032fa7
push str.Received_too_short_packet
push ebx
call fcn.1001fcf0
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.10118be7
mov esp, ebp
pop ebp
ret
lea eax, [esi + 0x15c]
call fcn.10031d00
movzx eax, ax
mov dword [esi + 0xc], eax
add eax, 0xfffffffd
cmp eax, 3
ja case.default.0x10032fc4
jmp dword [eax*4 + 0x10033100]
cmp edx, 4
jle case.0x10032fc4.4
lea eax, [esi + 0x15c]
call fcn.10031d10
movzx ecx, word [esi + 0x40]
inc ecx
cmp cx, ax
jne case.0x10032fc4.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.100200b0
mov edi, eax
add esp, 0x10
test edi, edi
je 0x10033031
mov ecx, 5
mov eax, esi
call fcn.10032e60
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10118be7
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x14c]
sub eax, 4
cdq
add dword [ebx + 0x90], eax
adc dword [ebx + 0x94], edx
mov ecx, dword [ebx + 0x94]
mov edx, dword [ebx + 0x90]
push ecx
push edx
push ebx
call fcn.10029ea0
jmp 0x100330c1
lea eax, [esi + 0x15c]
call fcn.10031d10
mov ecx, dword [esi + 0x15c]
add ecx, 4
push ecx
movzx eax, ax
push 0x1013e7cc
push ebx
mov dword [esi + 8], eax
call fcn.1001fc70
jmp 0x100330c1
add edx, 0xfffffffe
push edx
mov edx, dword [esi + 0x15c]
add edx, 2
push edx
push esi
call fcn.10031da0
add esp, 0xc
test eax, eax
je case.0x10032fc4.4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10118be7
mov esp, ebp
pop ebp
ret
push str.Internal_error:_Unexpected_packet
push 0x10140b7c
push ebx
call fcn.1001fcf0
add esp, 0xc
mov eax, dword [ebp - 0x8c]
push eax
call fcn.1002a140
add esp, 4
test eax, eax
je 0x10032f94
mov ecx, 5
mov eax, esi
call fcn.10032e60
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 0x2a
pop ebx
call fcn.10118be7
mov esp, ebp
pop ebp
ret
Function at 0x10034bc0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x1019ca20]
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 0x10034c08
push eax
push str.WSAStartup_failed___d_
push esi
call fcn.1001fcf0
add esp, 0xc
mov eax, 2
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10118be7
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x10034c2f
shr eax, 8
test al, al
jne 0x10034c2f
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10118be7
mov esp, ebp
pop ebp
ret
push str.insufficient_winsock_version_to_support_telnet
push esi
call fcn.1001fcf0
mov ecx, dword [ebp - 4]
xor ecx, ebp
add esp, 8
mov eax, 2
call fcn.10118be7
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov edx, dword [edi + 0x1a8]
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 0x10034e05
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.1001fcf0
add esp, 0xc
mov esi, dword [ebp + 8]
mov ecx, dword [edi]
mov eax, ebx
mov ebx, str.SENT
call fcn.10034cc0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10035bd0
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 edi
mov edi, dword [eax + 0x164]
mov dword [ebp - 4], eax
jne 0x10035d21
push ebx
push esi
lea ebx, [edi + 0x1cb0]
lea esi, [edi + 0x1eb0]
mov dword [esi], ebx
cmp ebx, esi
jae 0x10035c06
mov byte [ebx], 0xff
inc dword [esi]
mov eax, dword [esi]
cmp eax, esi
jae 0x10035c11
mov byte [eax], 0xfa
inc dword [esi]
mov eax, dword [esi]
cmp eax, esi
jae 0x10035c1c
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 0x10035c4e
mov dl, byte [ebp + 0xc]
mov byte [eax], dl
inc dword [esi]
mov eax, dword [esi]
cmp eax, esi
jae 0x10035c5b
mov dl, byte [ebp + 0xd]
mov byte [eax], dl
inc dword [esi]
mov eax, dword [esi]
cmp eax, esi
jae 0x10035c65
mov byte [eax], cl
inc dword [esi]
mov eax, dword [esi]
cmp eax, esi
jae 0x10035c6f
mov byte [eax], ch
inc dword [esi]
mov eax, dword [esi]
cmp eax, esi
jae 0x10035c7a
mov byte [eax], 0xff
inc dword [esi]
mov eax, dword [esi]
cmp eax, esi
jae 0x10035c85
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.10035130
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 + 0x1a8]
push edx
call esi
test eax, eax
jns 0x10035cdb
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.1001fcf0
add esp, 0xc
lea ecx, [edi + 0x1cb3]
push ecx
mov eax, 4
call fcn.10035a30
mov edx, dword [ebx + 0x1a8]
add esp, 4
push 0
push 2
add edi, 0x1cb7
push edi
push edx
call esi
pop esi
pop ebx
test eax, eax
jns 0x10035d21
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.1001fcf0
add esp, 0xc
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x10036790
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x1019ca20]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
mov ebx, dword [esi + 0x1ac]
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 0x100367e5
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.10022680
add esp, 8
cmp edi, 0xffffffff
jne 0x1003681b
mov edx, dword [ebp - 0x1c]
push str.Error_accept__ing_server_connect
push edx
call fcn.1001fcf0
add esp, 8
pop edi
pop esi
mov eax, 0x1e
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10118be7
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0x1c]
push str.Connection_accepted_from_server_n
push ebx
call fcn.1001fc70
push 1
push edi
mov dword [esi + 0x2c0], 0
mov dword [esi + 0x1ac], edi
call fcn.100474c0
mov dword [esi + 0x1bc], 1
mov eax, dword [ebx + 0x1e8]
add esp, 0x10
test eax, eax
je 0x10036886
mov ecx, dword [ebx + 0x1ec]
push 1
push edi
push ecx
call eax
add esp, 0xc
test eax, eax
je 0x10036886
call fcn.100366c0
pop edi
pop esi
mov eax, 0x2a
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10118be7
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.10118be7
mov esp, ebp
pop ebp
ret
Function at 0x1003a130
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, eax
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
push esi
add eax, edx
xor esi, esi
push edi
mov edi, dword [ebx]
cmp eax, 2
je 0x1003a168
push str.Couldnt_set_desired_mode
push edi
call fcn.1001fcf0
add esp, 8
pop edi
lea eax, [esi + 0x11]
pop esi
pop ebx
pop ebp
ret
cmp ecx, 0xc8
je 0x1003a17f
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200_n
push edi
call fcn.1001fc70
add esp, 0xc
mov eax, dword [ebp + 8]
cmp eax, 0x13
jne 0x1003a197
push ebx
call fcn.1003a0c0
add esp, 4
pop edi
mov esi, eax
pop esi
pop ebx
pop ebp
ret
cmp eax, 0x14
jne 0x1003a1a8
call fcn.100373b0
pop edi
mov esi, eax
pop esi
pop ebx
pop ebp
ret
cmp eax, 0x15
jne 0x1003a1bb
mov eax, ebx
call fcn.1003a110
pop edi
mov esi, eax
pop esi
pop ebx
pop ebp
ret
cmp eax, 0x16
jne 0x1003a1c9
mov eax, ebx
call fcn.1003a120
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret
Function at 0x10043220
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x1019ca20]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
call fcn.1011c93e
add esp, 4
mov byte [ebp - 0x108], 0
test eax, eax
je 0x10043284
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [ebp - 0x108], 0
je 0x10043284
lea edx, [ebp - 0x108]
push edx
call dword [0x1019300c]
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10118be7
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.10118be7
mov esp, ebp
pop ebp
ret

Function at 0x100432a0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.10043220

Function at 0x10047380
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push str.kernel32
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
test esi, esi
jne 0x100473a4
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push edi
push str.LoadLibraryExA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, dword [ebp + 8]
mov edi, eax
push 0x101465ac
push ebx
mov dword [ebp - 8], edi
call fcn.1011e95c
add esp, 8
test eax, eax
je 0x100473f2
test edi, edi
je 0x100473e1
push 8
push 0
push ebx
call edi
pop edi
pop ebx
mov dword [ebp - 4], eax
pop esi
mov esp, ebp
pop ebp
ret
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop edi
pop ebx
mov dword [ebp - 4], eax
pop esi
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x1004741a
push str.AddDllDirectory
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1004741a
push 0x800
push 0
push ebx
call edi
pop edi
pop ebx
mov dword [ebp - 4], eax
pop esi
mov esp, ebp
pop ebp
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, eax
test edi, edi
je 0x100474b6
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10047433
sub eax, edx
lea eax, [eax + edi + 1]
push eax
call dword [section..data]
mov esi, eax
add esp, 4
test esi, esi
je 0x100474ac
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x100474ac
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10047461
sub eax, edx
mov ecx, 0x5c
mov word [eax + esi], cx
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10047478
sub eax, edx
lea edx, [eax + esi]
mov ecx, ebx
sub edx, ebx
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x10047488
mov eax, dword [ebp - 8]
test eax, eax
je 0x100474a2
push 8
push 0
push esi
call eax
jmp 0x100474a9
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 4], eax
push esi
call dword [0x10193004]
add esp, 4
mov eax, dword [ebp - 4]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10048b40
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
mov eax, 0x474
call fcn.1011d4b0
mov eax, dword [0x1019ca20]
xor eax, esp
mov dword [esp + 0x470], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [esp + 0x3c], 0
test esi, esi
jne 0x10048b87
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x470]
xor ecx, esp
call fcn.10118be7
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x48]
push eax
push esi
call fcn.1011ea3b
add esp, 8
test eax, eax
js 0x10048b70
mov eax, 8
call fcn.1011d4b0
fldz
fstp qword [esp]
lea ecx, [esp + 0x50]
push 0x30
push ecx
call fcn.100489b0
mov ebx, dword [ebp + 0xc]
add esp, 0x10
test ebx, ebx
je 0x10048b70
push 0x1013d6f8
push esi
call fcn.1011c8a5
add esp, 8
mov dword [esp + 0x40], eax
test eax, eax
je 0x10048c61
jmp 0x10048be4
mov eax, dword [esp + 0x40]
test ebx, ebx
jle 0x10048bf2
mov esi, ebx
cmp ebx, 0x400
jl 0x10048bf7
mov esi, 0x400
push eax
push esi
lea edx, [esp + 0x80]
push 1
push edx
call fcn.1011c266
mov edi, eax
add esp, 0x10
mov dword [esp + 0x44], edi
test edi, edi
jle 0x10048c45
fild dword [esp + 0x44]
mov eax, 8
call fcn.1011d4b0
lea eax, [esp + 0x80]
fstp qword [esp]
push esi
push eax
call fcn.100489b0
add dword [esp + 0x4c], edi
add esp, 0x10
test ebx, ebx
jle 0x10048be0
sub ebx, esi
test ebx, ebx
jg 0x10048be0
mov ecx, dword [esp + 0x40]
push ecx
call fcn.1011a803
lea edx, [esp + 0x7c]
push 0x400
push edx
call fcn.1006b670
add esp, 0xc
mov ecx, dword [esp + 0x47c]
mov eax, dword [esp + 0x3c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10118be7
mov esp, ebp
pop ebp
ret
Function at 0x10060580
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0xc]
mov edx, dword [eax + 4]
push ebx
mov ebx, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x10]
dec ecx
push edi
mov edi, dword [esi + 4]
shr ecx, 0x1f
xor edx, edi
dec ecx
and edx, ecx
xor edi, edx
mov dword [esi + 4], edi
xor dword [eax + 4], edx
lea edx, [ebx - 1]
cmp edx, 9
ja case.default.0x100605b2
jmp dword [edx*4 + 0x100606dc]
mov edi, 0xa
cmp ebx, edi
jle case.0x100605b2.10
push ebp
mov edx, dword [esi]
mov ebx, dword [edx + edi*4]
lea ebp, [edx + edi*4]
mov edx, dword [eax]
mov edx, dword [edx + edi*4]
xor edx, ebx
and edx, ecx
xor ebx, edx
mov dword [ebp], ebx
mov ebx, dword [eax]
xor dword [ebx + edi*4], edx
lea ebx, [ebx + edi*4]
inc edi
cmp edi, dword [esp + 0x20]
jl 0x100605c3
pop ebp
mov ebx, dword [esi]
mov edx, dword [eax]
mov edi, dword [ebx + 0x24]
mov edx, dword [edx + 0x24]
xor edx, edi
and edx, ecx
xor edi, edx
mov dword [ebx + 0x24], edi
mov edi, dword [eax]
xor dword [edi + 0x24], edx
mov ebx, dword [esi]
mov edx, dword [eax]
mov edi, dword [ebx + 0x20]
mov edx, dword [edx + 0x20]
xor edx, edi
and edx, ecx
xor edi, edx
mov dword [ebx + 0x20], edi
mov edi, dword [eax]
xor dword [edi + 0x20], edx
mov ebx, dword [esi]
mov edx, dword [eax]
mov edi, dword [ebx + 0x1c]
mov edx, dword [edx + 0x1c]
xor edx, edi
and edx, ecx
xor edi, edx
mov dword [ebx + 0x1c], edi
mov edi, dword [eax]
xor dword [edi + 0x1c], edx
mov ebx, dword [esi]
mov edx, dword [eax]
mov edi, dword [ebx + 0x18]
mov edx, dword [edx + 0x18]
xor edx, edi
and edx, ecx
xor edi, edx
mov dword [ebx + 0x18], edi
mov edi, dword [eax]
xor dword [edi + 0x18], edx
mov ebx, dword [esi]
mov edx, dword [eax]
mov edi, dword [ebx + 0x14]
mov edx, dword [edx + 0x14]
xor edx, edi
and edx, ecx
xor edi, edx
mov dword [ebx + 0x14], edi
mov edi, dword [eax]
xor dword [edi + 0x14], edx
mov ebx, dword [esi]
mov edx, dword [eax]
mov edi, dword [ebx + 0x10]
mov edx, dword [edx + 0x10]
xor edx, edi
and edx, ecx
xor edi, edx
mov dword [ebx + 0x10], edi
mov edi, dword [eax]
xor dword [edi + 0x10], edx
mov ebx, dword [esi]
mov edx, dword [eax]
mov edi, dword [ebx + 0xc]
mov edx, dword [edx + 0xc]
xor edx, edi
and edx, ecx
xor edi, edx
mov dword [ebx + 0xc], edi
mov edi, dword [eax]
xor dword [edi + 0xc], edx
mov ebx, dword [esi]
mov edx, dword [eax]
mov edi, dword [ebx + 8]
mov edx, dword [edx + 8]
xor edx, edi
and edx, ecx
xor edi, edx
mov dword [ebx + 8], edi
mov edi, dword [eax]
xor dword [edi + 8], edx
mov ebx, dword [esi]
mov edx, dword [eax]
mov edi, dword [ebx + 4]
mov edx, dword [edx + 4]
xor edx, edi
and edx, ecx
xor edi, edx
mov dword [ebx + 4], edi
mov edi, dword [eax]
xor dword [edi + 4], edx
mov esi, dword [esi]
mov edx, dword [eax]
mov edi, dword [esi]
mov edx, dword [edx]
xor edx, edi
and edx, ecx
xor edi, edx
mov dword [esi], edi
mov eax, dword [eax]
xor dword [eax], edx
pop edi
pop esi
pop ebx
ret
Function at 0x10062c20
Capabilities:
Hash data with md5

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x5c
push 0
push esi
call fcn.1011b6d0
add esp, 0xc
mov dword [esi], 0x67452301
mov dword [esi + 4], 0xefcdab89
mov dword [esi + 8], 0x98badcfe
mov dword [esi + 0xc], 0x10325476
mov eax, 1
pop esi
ret
Function at 0x10063720
Capabilities:
Hash data using sha224

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x70
push 0
push esi
call fcn.1011b6d0
add esp, 0xc
mov dword [esi], 0xc1059ed8
mov dword [esi + 4], 0x367cd507
mov dword [esi + 8], 0x3070dd17
mov dword [esi + 0xc], 0xf70e5939
mov dword [esi + 0x10], 0xffc00b31
mov dword [esi + 0x14], 0x68581511
mov dword [esi + 0x18], 0x64f98fa7
mov dword [esi + 0x1c], 0xbefa4fa4
mov dword [esi + 0x6c], 0x1c
mov eax, 1
pop esi
ret

Function at 0x10063780
Capabilities:
Hash data using sha256

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x70
push 0
push esi
call fcn.1011b6d0
add esp, 0xc
mov dword [esi], 0x6a09e667
mov dword [esi + 4], 0xbb67ae85
mov dword [esi + 8], 0x3c6ef372
mov dword [esi + 0xc], 0xa54ff53a
mov dword [esi + 0x10], 0x510e527f
mov dword [esi + 0x14], 0x9b05688c
mov dword [esi + 0x18], 0x1f83d9ab
mov dword [esi + 0x1c], 0x5be0cd19
mov dword [esi + 0x6c], 0x20
mov eax, 1
pop esi
ret