joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10046780
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]
push ebx
mov eax, dword [eax]
mov dword [ebp - 4], eax
mov ebx, dword [eax + 0x164]
jne 0x100468cc
push edi
lea eax, [ebx + 0x1cb0]
lea edi, [ebx + 0x1eb0]
mov dword [edi], eax
cmp eax, edi
jae 0x100467b5
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x100467c0
mov byte [eax], 0xfa
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x100467cb
mov byte [eax], 0x1f
inc dword [edi]
movzx eax, word [ebx + 0x1ca8]
push esi
mov esi, dword [sym.imp.WS2_32.dll_htons]
push eax
call esi
movzx eax, ax
mov dword [ebp + 0xc], eax
movzx eax, word [ebx + 0x1caa]
push eax
call esi
mov ecx, dword [ebp + 0xc]
movzx edx, ax
mov eax, dword [edi]
cmp eax, edi
jae 0x100467fc
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x10046806
mov byte [eax], ch
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x10046810
mov byte [eax], dl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x1004681a
mov byte [eax], dh
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x10046825
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x10046830
mov byte [eax], 0xf0
inc dword [edi]
mov eax, dword [edi]
mov dword [ebx + 0x1eb4], eax
lea esi, [ebx + 0x1cb0]
sub eax, esi
sub eax, 2
push eax
lea eax, [ebx + 0x1cb2]
push eax
mov dword [edi], esi
mov edi, dword [ebp - 4]
push 0x3e
push edi
call fcn.10046180
add esp, 0x10
push 0
push 3
push esi
mov esi, dword [ebp + 8]
push dword [esi + 0x1a8]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x10046888
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 0x100aa5cc
push edi
call fcn.10033a50
add esp, 0xc
push 4
lea eax, [ebx + 0x1cb3]
push eax
push esi
call fcn.10046e10
add esp, 0xc
lea eax, [ebx + 0x1cb7]
push 0
push 2
push eax
push dword [esi + 0x1a8]
call dword [sym.imp.WS2_32.dll_send]
pop esi
test eax, eax
jns 0x100468cb
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.10033a50
add esp, 0xc
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10048a00
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx]
mov eax, dword [eax]
cmp edx, 3
ja case.default.0x10048a12
jmp dword [edx*4 + 0x10048a68]
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.10048660
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.100475c0
mov dword [ebp + 8], ecx
pop ebp
jmp fcn.10047860
push str.TFTP_finished
push 0x100aaea8
push eax
call fcn.100339d0
add esp, 0xc
xor eax, eax
pop ebp
ret
push str.Internal_state_machine_error
push 0x100aaecc
push eax
call fcn.10033a50
add esp, 0xc
mov eax, 0x47
pop ebp
ret
Function at 0x10048a80
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x100af440]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [eax + 0x6b8]
push edi
mov edi, dword [eax]
mov dword [ebp - 0x8c], eax
lea eax, [ebp - 0x88]
push eax
mov dword [ebp - 0x88], 0x80
lea eax, [ebp - 0x84]
push eax
mov eax, dword [esi + 0x154]
push 0
add eax, 4
push eax
push dword [esi + 0x15c]
lea ebx, [esi + 0x15c]
push dword [esi + 0x14]
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [esi + 0x148], 0
mov dword [esi + 0x14c], eax
jne 0x10048b17
push dword [ebp - 0x88]
lea eax, [ebp - 0x84]
push eax
lea eax, [esi + 0xc8]
push eax
call fcn.100649a0
mov eax, dword [ebp - 0x88]
add esp, 0xc
mov dword [esi + 0x148], eax
mov edx, dword [esi + 0x14c]
cmp edx, 4
jge 0x10048b4a
push str.Received_too_short_packet
push edi
call fcn.10033a50
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.10061e3f
mov esp, ebp
pop ebp
ret
push ebx
call fcn.10048280
movzx eax, ax
mov dword [esi + 0xc], eax
add eax, 0xfffffffd
add esp, 4
cmp eax, 3
ja case.default.0x10048b65
jmp dword [eax*4 + 0x10048c88]
cmp edx, 4
jle case.0x10048b65.4
push ebx
call fcn.100482a0
movzx ecx, word [esi + 0x40]
inc ecx
add esp, 4
cmp cx, ax
jne case.0x10048b65.4
lea eax, [edx - 4]
push eax
mov eax, dword [ebx]
add eax, 4
push eax
push 1
push dword [ebp - 0x8c]
call fcn.10033ca0
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x10048bca
push 5
push esi
call fcn.10048a00
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10061e3f
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x14c]
sub eax, 4
cdq
add dword [edi + 0x90], eax
adc dword [edi + 0x94], edx
push dword [edi + 0x94]
push dword [edi + 0x90]
push edi
call fcn.1003dbf0
jmp 0x10048c4e
push ebx
call fcn.100482a0
movzx eax, ax
mov dword [esi + 8], eax
mov eax, dword [ebx]
add eax, 4
push eax
push 0x100aaf00
push edi
call fcn.100339d0
add esp, 0x10
jmp case.0x10048b65.4
lea eax, [edx - 2]
push eax
mov eax, dword [ebx]
add eax, 2
push eax
push esi
call fcn.10048360
add esp, 0xc
test eax, eax
je case.0x10048b65.4
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10061e3f
mov esp, ebp
pop ebp
ret
push str.Internal_error:_Unexpected_packet
push 0x100aaf28
push edi
call fcn.10033a50
add esp, 0xc
push dword [ebp - 0x8c]
call fcn.1003ddb0
add esp, 4
test eax, eax
je 0x10048b37
push 5
push esi
call fcn.10048a00
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
pop edi
pop esi
mov eax, 0x2a
pop ebx
call fcn.10061e3f
mov esp, ebp
pop ebp
ret
Function at 0x10052320
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x100af440]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi + 0x1ac]
mov ebx, dword [esi]
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push eax
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 0x10052378
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x1c]
mov dword [ebp - 0x18], 0x10
call dword [sym.imp.WS2_32.dll_accept]
mov edi, eax
push dword [ebp - 0x1c]
push esi
call fcn.10034e80
add esp, 8
cmp edi, 0xffffffff
jne 0x100523ad
push str.Error_accept__ing_server_connect
push ebx
call fcn.10033a50
add esp, 8
mov eax, 0x1e
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10061e3f
mov esp, ebp
pop ebp
ret
push str.Connection_accepted_from_server_n
push ebx
call fcn.100339d0
push 1
mov dword [esi + 0x3f0], 0
push edi
mov dword [esi + 0x1ac], edi
call fcn.10057cb0
mov dword [esi + 0x1bc], 1
mov eax, dword [ebx + 0x1e8]
add esp, 0x10
test eax, eax
je 0x10052418
push 1
push edi
push dword [ebx + 0x1ec]
call eax
add esp, 0xc
test eax, eax
je 0x10052418
push esi
call fcn.10052220
add esp, 4
mov eax, 0x2a
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10061e3f
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.10061e3f
mov esp, ebp
pop ebp
ret
Function at 0x10053f30
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
push ebx
push esi
mov eax, edx
shr eax, 0x1f
push edi
mov edi, dword [ebp + 8]
add eax, edx
mov ebx, dword [edi]
xor esi, esi
cmp eax, 2
je 0x10053f6c
push str.Couldnt_set_desired_mode
push ebx
call fcn.10033a50
add esp, 8
lea eax, [esi + 0x11]
pop edi
pop esi
pop ebx
pop ebp
ret
cmp ecx, 0xc8
je 0x10053f83
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200_n
push ebx
call fcn.100339d0
add esp, 0xc
mov eax, dword [ebp + 0x10]
cmp eax, 0x13
jne 0x10053f9b
push edi
call fcn.100532a0
add esp, 4
mov esi, eax
pop edi
pop esi
pop ebx
pop ebp
ret
cmp eax, 0x14
jne 0x10053fb0
push edi
call fcn.10053300
add esp, 4
mov esi, eax
pop edi
pop esi
pop ebx
pop ebp
ret
cmp eax, 0x15
jne 0x10053fc5
push edi
call fcn.10053420
add esp, 4
mov esi, eax
pop edi
pop esi
pop ebx
pop ebp
ret
cmp eax, 0x16
jne 0x10053fd5
push edi
call fcn.10053440
mov esi, eax
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret

Function at 0x10055be0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.10055bf0

Function at 0x10055bf0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x100af440]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
call fcn.10067aea
add esp, 4
mov byte [ebp - 0x108], 0
test eax, eax
je 0x10055c54
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [ebp - 0x108], 0
je 0x10055c54
lea eax, [ebp - 0x108]
push eax
call dword [0x100a400c]
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10061e3f
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.10061e3f
mov esp, ebp
pop ebp
ret
Function at 0x10058ad0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi]
cmp dword [eax + 4], 3
jne 0x10058afc
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x10058aed
pop edi
xor eax, eax
pop esi
pop ebp
ret
push dword [eax + 8]
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call ecx
jmp 0x10058b30
cmp dword [esi + 8], 0
jne 0x10058b20
push 0x100add28
push dword [eax + 8]
call fcn.10065441
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x10058b20
pop edi
or eax, 0xffffffff
pop esi
pop ebp
ret
push dword [esi + 8]
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call fcn.100662d3
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x10058b52
mov eax, dword [esi + 8]
test eax, eax
je 0x10058b4c
push eax
call fcn.100651c7
add esp, 4
mov dword [esi + 8], edi
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esi], eax
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x1005c3e0
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, dword [ebp + 0xc]
push edi
lea ecx, [esi + 1]
mov edi, edi
mov al, byte [esi]
inc esi
test al, al
jne 0x1005c3f0
sub esi, ecx
lea eax, [esi + esi]
push eax
mov dword [ebp - 0xc], eax
call dword [section..data]
mov edi, eax
add esp, 4
test edi, edi
jne 0x1005c418
lea eax, [edi + 0x1b]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push esi
push dword [ebp + 0xc]
push edi
call fcn.1005c650
add esp, 0xc
lea eax, [ebp - 8]
push 0xf0000000
push 1
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
mov esi, dword [ebp + 0x10]
test eax, eax
je 0x1005c497
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x8002
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x1005c48c
push 0
push dword [ebp - 0xc]
mov dword [ebp - 0x10], 0x10
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
push 0
lea eax, [ebp - 0x10]
push eax
push esi
push 2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [esi + 0x10], 0
push edi
mov byte [esi + 0x14], 0
call dword [0x100a4004]
add esp, 4
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1005c550
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 [0x100af440]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
push 0xf0000000
push 1
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x20], 8
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x1005c5ed
lea eax, [ebp - 0xc]
xorps xmm0, xmm0
push eax
movq qword [ebp - 0x18], xmm0
movq qword [ebp - 0x10], xmm0
push edi
mov dword [ebp - 8], 0
mov word [ebp - 0x18], 0x208
mov dword [ebp - 0x14], 0x6601
mov dword [ebp - 0x10], 8
call fcn.1005c4c0
lea eax, [ebp - 0xc]
push 8
push eax
call fcn.1005fa10
add esp, 0x10
lea eax, [ebp - 0x24]
push eax
push 0
push 0
push 0x14
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x1005c5ff
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10061e3f
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
push dword [ebp - 0x20]
mov eax, dword [ecx]
mov dword [esi], eax
mov eax, dword [ecx + 4]
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push eax
push esi
push 0
push 0
push 0
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push 0
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov eax, 1
pop esi
call fcn.10061e3f
mov esp, ebp
pop ebp
ret

Function at 0x1005db00
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push esi
push edi
mov byte [edi], 0
call dword [sym.imp.WS2_32.dll_gethostname]
mov byte [edi + esi - 1], 0
test eax, eax
jne 0x1005db33
push 0x2e
push edi
call fcn.100655f0
add esp, 8
test eax, eax
je 0x1005db31
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
pop ebp
ret
Function at 0x10060fa0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [section..data]
mov edi, eax
add esp, 4
test edi, edi
jne 0x10060fcd
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
push ebx
mov ebx, dword [ebp + 0x10]
mov dword [edi + 8], eax
cmp ebx, dword [esi + 0x10]
jbe 0x10061014
mov eax, dword [esi]
push ecx
call eax
mov eax, dword [esi + 4]
push ebx
push dword [ebp + 0xc]
push dword [edi + 4]
call eax
mov eax, dword [edi + 8]
add eax, dword [esi + 0xc]
push dword [edi + 4]
mov dword [ebp - 4], eax
push eax
mov eax, dword [esi + 8]
call eax
mov ebx, dword [esi + 0x14]
add esp, 0x18
mov dword [ebp + 0x10], ebx
jmp 0x1006101a
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
push dword [edi + 4]
mov eax, dword [esi]
call eax
push dword [edi + 8]
mov eax, dword [esi]
call eax
mov eax, dword [ebp + 0x10]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x1006107a
mov ebx, dword [ebp - 4]
mov dword [ebp - 8], eax
lea ebx, [ebx]
movzx eax, byte [ebx]
xor al, 0x36
mov byte [ebp + 0xb], al
push 1
lea eax, [ebp + 0xb]
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
movzx eax, byte [ebx]
xor al, 0x5c
mov byte [ebp + 0xb], al
push 1
lea eax, [ebp + 0xb]
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
lea ebx, [ebx + 1]
call eax
add esp, 0x18
dec dword [ebp + 0x10]
jne 0x10061040
mov ebx, dword [ebp - 8]
cmp ebx, dword [esi + 0x10]
jae 0x100610a7
nop
mov eax, dword [esi + 4]
push 1
push 0x10093448
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x10093449
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x10061080
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1007bdc6
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.1006db3b
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x1007bdfe
xor eax, eax
jmp 0x1007be2a
cmp esi, dword [ebp - 4]
je 0x1007be27
cmp dword [ebp + 0xc], 0
je 0x1007be27
push dword [edi + 0x9c]
call fcn.1007b9d4
push dword [edi + 0x9c]
mov esi, eax
call fcn.1006a370
pop ecx
pop ecx
cmp esi, eax
je 0x1007bdfa
xor eax, eax
inc eax
pop edi
pop esi
leave
ret
Function at 0x1007c8f0
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x100af440]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.1006a0c8
mov dword [ebp - 0x14], eax
cmp dword [0x100b1e7c], edi
jne 0x1007c9e1
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x1007c96e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x1007cac1
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x1007cac1
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1007cac1
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x100b1e7c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x100b1e80], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x100b1e84], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x100b1e8c], eax
test eax, eax
je 0x1007c9de
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x100b1e88], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1007ca06
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1007c9f9
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x1007ca1b
push 4
pop eax
jmp 0x1007cac3
cmp dword [ebp - 0x14], edi
je 0x1007ca1b
push dword [0x100b1e7c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x1007ca00
mov eax, dword [0x100b1e88]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x1007ca79
cmp dword [0x100b1e8c], esi
je 0x1007ca79
push eax
call ebx
push dword [0x100b1e8c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x1007ca79
test eax, eax
je 0x1007ca79
call ecx
test eax, eax
je 0x1007ca6e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x1007ca6e
test byte [ebp - 8], 1
jne 0x1007ca79
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x1007caa9
mov eax, dword [0x100b1e80]
cmp eax, esi
je 0x1007caa6
push eax
call ebx
test eax, eax
je 0x1007caa6
call eax
mov edi, eax
test edi, edi
je 0x1007caa6
mov eax, dword [0x100b1e84]
cmp eax, esi
je 0x1007caa6
push eax
call ebx
test eax, eax
je 0x1007caa6
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x100b1e7c]
call ebx
test eax, eax
je 0x1007cac1
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x1007cac3
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10061e3f
leave
ret
Function at 0x1008c600
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100908c0
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x100af440]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x2c], 0
push 0x10099dc5
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 0
call fcn.1000c340
push 0
push 0
push 3
push 0
push 0
mov byte [ebp - 4], 1
push accept
lea ecx, [ebp + 0xc]
mov dword [ebp - 0x18], 0x4c7a6f6d
mov dword [ebp - 0x14], 0x30347a
call fcn.1000ce50
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x1008c76b
push 0
push edi
mov dword [ebp - 0x28], 0
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
mov dword [ebp - 0x20], eax
call fcn.10061805
add esp, 4
mov esi, eax
push 0
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x20]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
test eax, eax
jne 0x1008c6c3
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1008c75e
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x20], 0xc
jb 0x1008c75e
lea ecx, [ebp - 0x18]
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x1008c75e
mov eax, dword [ecx + 4]
cmp eax, dword [esi + 4]
jne 0x1008c75e
xor ecx, ecx
mov edi, 8
xor edx, edx
movzx eax, byte [edi + esi]
shl eax, cl
inc edi
add ecx, 8
add edx, eax
cmp edi, 0xc
jb 0x1008c6f1
lea eax, [edx + 1]
push eax
mov dword [ebp - 0x24], edx
call fcn.100641e2
add esp, 4
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1008c75e
mov eax, dword [ebp - 0x20]
push dword [ebp - 0x24]
sub eax, edi
lea ecx, [edi + esi]
mov edi, dword [ebp - 0x14]
push eax
mov edx, edi
call fcn.10022f80
add esp, 8
push edi
test eax, eax
jns 0x1008c740
call fcn.10062bc6
add esp, 4
jmp 0x1008c75e
mov eax, dword [ebp - 0x24]
push 0x10099ebc
mov byte [edi + eax], 0
lea eax, [ebp - 0x1c]
push eax
call fcn.10012f50
push edi
call fcn.10062bc6
add esp, 0x10
test esi, esi
je 0x1008c76b
push esi
call fcn.1006380b
add esp, 4
lea eax, [ebp - 0x1c]
push eax
mov ecx, ebx
call fcn.1000c300
lea ecx, [ebp - 0x1c]
call fcn.1000c400
lea ecx, [ebp + 0xc]
call fcn.1000c400
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10061e3f
mov esp, ebp
pop ebp
ret 8
Function at 0x1008c7b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10090888
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x100af440]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x10099dc5
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], 1
call fcn.1000c340
mov byte [ebp - 4], 2
lea ecx, [ebp + 8]
mov dword [ebp - 0x18], 0x4c7a6f6d
mov dword [ebp - 0x14], 0x30347a
call fcn.1000ced0
mov esi, eax
lea ecx, [esi + 1]
push ecx
call fcn.10061805
mov edi, eax
mov byte [edi + esi], 0
push dword [ebp + 8]
push 0x10099ebc
push edi
call fcn.1006245b
mov ecx, esi
call fcn.10022a50
add eax, 0xc
push eax
call fcn.100641e2
mov ebx, eax
add esp, 0x14
test ebx, ebx
je 0x1008c87b
movq xmm0, qword [ebp - 0x18]
movq qword [ebx], xmm0
mov edx, 8
xor ecx, ecx
mov edi, edi
mov eax, esi
shr eax, cl
inc edx
add ecx, 8
mov byte [edx + ebx - 1], al
cmp edx, 0xc
jb 0x1008c850
push esi
add edx, ebx
mov ecx, edi
call fcn.10022f00
add esp, 4
test eax, eax
jne 0x1008c88f
push ebx
call fcn.1006380b
add esp, 4
test edi, edi
je 0x1008c8f4
push edi
call fcn.1006380b
add esp, 4
xor bl, bl
jmp 0x1008c931
add eax, 0xc
lea ecx, [ebp + 0xc]
mov dword [ebp - 0x14], eax
call fcn.1000ced0
mov esi, eax
lea ecx, [esi + 1]
push ecx
call fcn.10061805
mov byte [eax + esi], 0
push dword [ebp + 0xc]
mov esi, eax
push 0x10099ebc
push esi
call fcn.1006245b
push 0x1009ee38
push esi
call fcn.10065441
add esp, 0x18
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x1008c8f8
push ebx
call fcn.1006380b
add esp, 4
test edi, edi
je 0x1008c8e7
push edi
call fcn.1006380b
add esp, 4
test esi, esi
je 0x1008c8f4
push esi
call fcn.1006380b
add esp, 4
xor bl, bl
jmp 0x1008c931
push eax
push dword [ebp - 0x14]
push 1
push ebx
call fcn.10066c0a
push dword [ebp - 0x10]
call fcn.100651c7
push ebx
call fcn.1006380b
add esp, 0x18
test edi, edi
je 0x1008c922
push edi
call fcn.1006380b
add esp, 4
test esi, esi
je 0x1008c92f
push esi
call fcn.1006380b
add esp, 4
mov bl, 1
lea ecx, [ebp - 0x1c]
call fcn.1000c400
lea ecx, [ebp + 8]
call fcn.1000c400
lea ecx, [ebp + 0xc]
call fcn.1000c400
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8