joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e0ef
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.00410b43
lea esi, [ebp - 0x128]
mov eax, 0xa3
call fcn.0040e24a
lea esi, [ebp - 0xb8]
mov eax, 0xa5
call fcn.0040e24a
lea esi, [ebp - 0x54]
mov eax, 0xa4
call fcn.0040e24a
lea esi, [ebp - 0x2c]
mov eax, 0xa6
call fcn.0040e24a
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.00414bb8
cmp eax, 0xffffffff
je 0x40e1ae
test eax, eax
je 0x40e1ae
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.0040de56
add esi, 4
dec dword [ebp - 4]
jne 0x40e16d
cmp dword [ebp - 8], 0
jbe 0x40e1d0
mov edi, dword [ebp - 0xc]
push 0xcb
mov eax, 0xa7
call fcn.0040add3
jmp 0x40e1d8
push dword [ebp - 0xc]
call fcn.00410a90
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40e214
Capabilities:
Encode data using xor

Disassembly:
movzx eax, ax
lea eax, [eax*8 + 0x402988]
xor edx, edx
xor ecx, ecx
cmp dx, word [eax + 2]
jae 0x40e241
push esi
mov edx, dword [eax + 4]
movzx esi, cx
mov dl, byte [edx + esi]
xor dl, byte [eax]
xor dl, cl
inc ecx
mov byte [esi + edi], dl
cmp cx, word [eax + 2]
jb 0x40e229
pop esi
movzx eax, word [eax + 2]
mov byte [eax + edi], 0
ret

Function at 0x40e24a
Capabilities:
Encode data using xor

Disassembly:
movzx eax, ax
lea eax, [eax*8 + 0x402988]
xor ecx, ecx
xor edx, edx
cmp cx, word [eax + 2]
jae 0x40e289
push ebx
push edi
mov edi, dword [eax + 4]
movzx ebx, byte [eax]
movzx ecx, dx
movsx di, byte [edi + ecx]
xor di, bx
xor di, dx
mov ebx, 0xff
and di, bx
inc edx
mov word [esi + ecx*2], di
cmp dx, word [eax + 2]
jb 0x40e260
pop edi
pop ebx
movzx eax, word [eax + 2]
xor ecx, ecx
mov word [esi + eax*2], cx
ret

Function at 0x40e294
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
push 2
mov dword [ebp - 4], 0x104
call dword [sym.imp.Secur32.dll_GetUserNameExW]
test al, al
je 0x40e2e5
mov eax, dword [ebp - 4]
test eax, eax
je 0x40e2e5
xor ecx, ecx
mov word [esi + eax*2], cx
mov eax, esi
cmp word [esi], cx
je 0x40e2ed
movzx ecx, word [eax]
cmp ecx, 0x2f
je 0x40e2d4
cmp ecx, 0x5c
jne 0x40e2da
push 0x7c
pop ecx
mov word [eax], cx
add eax, 2
cmp word [eax], 0
jne 0x40e2c7
jmp 0x40e2ed
push 6
pop eax
call fcn.0040e24a
pop esi
leave
ret
Function at 0x40e75b
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x11c
push esi
lea eax, [ebp - 0xa4]
push eax
xor esi, esi
mov dword [ebp - 0xa4], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40e829
push 2
pop eax
cmp dword [ebp - 0x94], eax
jne 0x40e829
xor ecx, ecx
inc ecx
cmp byte [ebp + 0x76], cl
jne 0x40e7e9
cmp dword [ebp - 0xa0], 5
jne 0x40e7c8
cmp dword [ebp - 0x9c], esi
jne 0x40e7b4
mov esi, ecx
jmp 0x40e829
cmp dword [ebp - 0x9c], ecx
je 0x40e7c4
cmp dword [ebp - 0x9c], eax
jne 0x40e829
mov esi, eax
jmp 0x40e829
cmp dword [ebp - 0xa0], 6
jne 0x40e829
cmp dword [ebp - 0x9c], esi
jne 0x40e7dd
push 4
jmp 0x40e828
cmp dword [ebp - 0x9c], ecx
jne 0x40e829
push 6
jmp 0x40e828
cmp byte [ebp + 0x76], al
je 0x40e7f4
cmp byte [ebp + 0x76], 3
jne 0x40e829
cmp dword [ebp - 0xa0], 5
jne 0x40e809
cmp dword [ebp - 0x9c], eax
jne 0x40e829
push 3
jmp 0x40e828
cmp dword [ebp - 0xa0], 6
jne 0x40e829
cmp dword [ebp - 0x9c], esi
jne 0x40e81e
push 5
jmp 0x40e828
cmp dword [ebp - 0x9c], ecx
jne 0x40e829
push 7
pop esi
mov eax, esi
pop esi
add ebp, 0x78
leave
ret
Function at 0x40febe
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push dword [eax + 8]
xor esi, esi
test byte [eax], 2
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], esi
je 0x40fee2
mov edx, dword [eax + 4]
mov eax, dword [ecx + 8]
call fcn.0040e95a
jmp 0x40feea
push dword [ecx + 8]
call fcn.00415b2d
mov dword [ebp - 0xc], eax
cmp eax, esi
je 0x40ff2a
call fcn.00418a99
push esi
push esi
lea eax, [ebp - 0x10]
push eax
push 0x40fca7
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 4], eax
cmp eax, esi
je 0x40ff22
lea eax, [ebp - 4]
push eax
call fcn.004141fd
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0xc]
call fcn.00410a90
mov eax, dword [ebp - 8]
pop esi
leave
ret

Function at 0x40ff30
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov byte [ebp - 2], 1
test eax, eax
je 0x40ffbd
push ebx
push esi
push edi
lea edi, [ecx + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [edi]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x40ffb2
mov esi, dword [edi - 8]
movzx ebx, byte [edi + 4]
mov eax, esi
mov byte [ebp - 1], 0
call fcn.00415292
cmp eax, 0x1e
jb 0x40ffae
lea eax, [ebp - 8]
push eax
push 0x40
push 0x1e
push esi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x40ffae
push 0
add ebx, 0xfffffffb
push ebx
push dword [ebp - 0x10]
push esi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x40ff96
mov byte [ebp - 1], 1
lea eax, [ebp - 8]
push eax
push dword [ebp - 8]
push 0x1e
push esi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
cmp byte [ebp - 1], 0
jne 0x40ffb2
mov byte [ebp - 2], 0
add edi, 0x10
dec dword [ebp - 0xc]
jne 0x40ff47
pop edi
pop esi
pop ebx
mov al, byte [ebp - 2]
leave
ret

Function at 0x410027
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
xor ecx, ecx
cmp ebx, esi
jbe 0x41004d
mov eax, dword [ebp + 8]
add eax, 0xc
cmp dword [eax - 0xc], esi
je 0x4100a2
mov dword [eax - 4], esi
mov byte [eax], 0
inc ecx
add eax, 0x10
cmp ecx, ebx
jb 0x41003a
mov eax, ebx
imul eax, eax, 0x23
push edi
push 0x40
push 0x3000
push eax
push esi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov edi, eax
cmp edi, esi
je 0x4100b0
mov dword [ebp - 4], esi
cmp ebx, esi
jbe 0x410099
mov esi, dword [ebp + 8]
add esi, 8
mov eax, dword [esi - 4]
push edi
push dword [esi - 8]
call fcn.004152d7
test eax, eax
je 0x410099
mov dword [esi], edi
add edi, eax
inc dword [ebp - 4]
mov byte [esi + 4], al
add esi, 0x10
cmp dword [ebp - 4], ebx
jb 0x410077
cmp dword [ebp - 4], ebx
jne 0x4100a6
mov al, 1
jmp 0x4100b2
xor al, al
jmp 0x4100b3
mov ecx, dword [ebp + 8]
mov eax, ebx
call fcn.0040ff30
xor al, al
pop edi
pop esi
leave
ret 4
Function at 0x411d35
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 0x411dc1
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 0x411db7
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 0x411dae
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 0x411dae
cmp dword [ebp - 0xc], 0x10
jne 0x411dae
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 0x411dc9
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov eax, dword [0x423488]
cmp eax, 0x270
jl 0x411d01
push esi
push edi
xor edx, edx
mov esi, accept
mov ecx, edx
mov eax, dword [ecx*4 + 0x422abc]
xor eax, dword [ecx*4 + 0x422ab8]
and eax, esi
xor eax, dword [ecx*4 + 0x422ab8]
mov edi, eax
shr eax, 1
and edi, 1
xor eax, dword [edi*4 + 0x4223a0]
xor eax, dword [ecx*4 + 0x4230ec]
inc edx
mov dword [ecx*4 + 0x422ab8], eax
cmp edx, 0xe3
jl 0x411c5a
cmp edx, 0x26f
jge 0x411cd3
lea ecx, [edx*4 + 0x422ab8]
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, 0x423474
jl 0x411ca7
mov ecx, dword [0x423474]
mov eax, dword [0x422ab8]
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 [0x4230e8]
pop esi
mov dword [0x423474], eax
xor eax, eax
mov ecx, dword [eax*4 + 0x422ab8]
inc eax
mov dword [0x423488], 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 [0x4226b4]
je 0x411e10
xor ecx, ecx
mov dword [0x4226b4], eax
mov dword [0x422ab8], eax
inc ecx
mov eax, 0x422ab8
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, 0x423474
jl 0x411dea
mov dword [0x423488], ecx
pop esi
jmp 0x411c41
Function at 0x411e3f
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp byte [0x422422], 0
jne 0x411e78
xor ecx, ecx
push 8
mov eax, ecx
pop edx
test al, 1
je 0x411e5c
shr eax, 1
xor eax, 0xedb88320
jmp 0x411e5e
shr eax, 1
dec edx
jne 0x411e4f
mov dword [ecx*4 + 0x4226b8], eax
inc ecx
cmp ecx, 0x100
jb 0x411e4a
mov byte [0x422422], 1
xor ecx, ecx
or eax, 0xffffffff
cmp dword [esp + 8], ecx
jbe 0x411ea4
mov edx, dword [esp + 4]
movzx edx, byte [ecx + edx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x4226b8]
inc ecx
cmp ecx, dword [esp + 8]
jb 0x411e83
not eax
ret 8

Function at 0x411f0c
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 0x411f66
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 0x411f2c
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 0x412105
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 0x412156
lea eax, [ebp - 0x1c]
push eax
push esi
mov dword [ebp - 0x1c], 0x1c
call dword [sym.imp.KERNEL32.dll_Thread32First]
jmp 0x412149
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 8]
jne 0x41213e
inc edi
lea eax, [ebp - 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x412135
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
leave
ret 4

Function at 0x4122d7
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 0x4122fe
push 0x44
pop edx
push edx
push esi
lea eax, [ebp - 0x58]
push eax
call fcn.00410b43
mov dword [ebp - 0x58], edx
lea eax, [ebp - 0x58]
lea ecx, [ebp - 4]
cmp dword [ebp + 8], esi
je 0x412309
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 0x412350
cmp dword [ebp + 0x10], esi
je 0x41233b
push 0x10
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0x10]
call fcn.00410acc
jmp 0x41234b
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 0x412352
xor eax, eax
pop esi
leave
ret 0xc
Function at 0x4123b2
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push ebx
xor ebx, ebx
push 0x404764
mov byte [ebp - 1], bl
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x412496
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
push 0x404770
push eax
call esi
push 0x404788
push dword [ebp - 0x10]
mov edi, eax
call esi
mov dword [ebp - 0x14], eax
cmp edi, ebx
je 0x41248b
cmp eax, ebx
je 0x41248b
push ebx
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0xc], ebx
call edi
test eax, eax
jne 0x412417
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.00410b43
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x68], edx
mov dword [ebp - 0x60], ebx
cmp ecx, ebx
jne 0x41243b
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 0x412480
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 0x41248b
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 0x4124c5
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 0x4124ef
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0x10]
jmp 0x4124f1
xor eax, eax
pop ebp
ret 0xc
Function at 0x412550
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x56c
lea eax, [ebp - 0x24c]
push eax
push 0x4047c4
call fcn.00415e17
test al, al
je 0x41265e
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 0x4047cc
push eax
call fcn.00411854
add esp, 0x10
cmp eax, 0xffffffff
je 0x412652
push ebx
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x24c]
push eax
call fcn.00415c4b
push dword [ebp + 8]
mov bl, al
call fcn.00410a90
test bl, bl
pop ebx
je 0x412652
push edi
lea eax, [ebp - 0x24c]
push eax
push 0x4047ec
mov edx, 0x10e
lea edi, [ebp - 0x56c]
call fcn.00411783
pop ecx
pop ecx
pop edi
cmp eax, 0xffffffff
jle 0x412652
push 0x104
lea eax, [ebp - 0x24c]
push eax
push 0x4047fc
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0x102
ja 0x412652
push 0x44
pop edx
push edx
push 0
lea eax, [ebp - 0x44]
push eax
call fcn.00410b43
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.00412357
test eax, eax
setne al
jmp 0x412660
lea eax, [ebp - 0x24c]
push eax
call fcn.00415df6
xor al, al
leave
ret 4

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

Disassembly:
push ebx
push edi
xor edi, edi
cmp ecx, edi
jne 0x412671
mov ecx, 0x40480c
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 0x4126c9
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 0x41268a
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 0x4126cb
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor eax, eax
pop edi
pop ebx
ret 8
Function at 0x412778
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 0x41278f
mov eax, 0x8444f700
test byte [ebp + 0x18], 4
je 0x41279a
or eax, 0x800000
test byte [ebp + 0x18], 1
mov ecx, 0x4044dc
jne 0x4127aa
mov ecx, 0x4044e4
push 0
push eax
push section..data
push 0
push 0x4031d4
push dword [ebp + 0xc]
push ecx
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov esi, eax
test esi, esi
je 0x41282a
test ebx, ebx
je 0x4127d6
xor eax, eax
xor ecx, ecx
jmp 0x4127de
push 0x13
mov eax, 0x404844
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 0x412823
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 0x412823
cmp dword [ebp + 0x18], 0xc8
jne 0x412823
mov eax, esi
jmp 0x41282c
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor eax, eax
pop esi
pop ebx
pop ebp
ret 0x14

Function at 0x412832
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 0x41284b
cmp ebx, eax
jbe 0x41284d
mov ebx, eax
mov dword [ebp - 8], edi
cmp dword [ebp + 0x10], 0
je 0x412868
push 0
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4128a9
lea ecx, [edi + 0x1000]
lea esi, [ebp - 8]
mov dword [ebp - 4], 0x1000
call fcn.00410a1b
test al, al
je 0x4128a9
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 0x4128a9
cmp dword [ebp - 4], 0
je 0x4128ba
add edi, dword [ebp - 4]
cmp edi, ebx
jbe 0x412850
push dword [ebp - 8]
call fcn.00410a90
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0xc
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4128c8
mov dword [eax], esi
mov dword [eax + 4], edi
jmp 0x4128ce
push esi
call fcn.00410a90
mov al, 1
jmp 0x4128b3
Function at 0x4128d2
Capabilities:
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
xor ebx, ebx
push ebx
push 0x80
push 2
push ebx
push 1
push 0x40000000
push dword [ebp + 0xc]
mov byte [ebp - 1], bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x41299d
mov eax, 0x1000
call fcn.00410a60
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x412989
mov dword [ebp - 0xc], ebx
cmp dword [ebp + 0x14], ebx
je 0x41292d
push ebx
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x412981
lea eax, [ebp - 8]
push eax
push 0x1000
push dword [ebp - 0x10]
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x412981
cmp dword [ebp - 8], ebx
je 0x412976
push ebx
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 8]
push dword [ebp - 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x412981
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x14]
jne 0x412981
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0x10]
jbe 0x412917
jmp 0x412981
push edi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov byte [ebp - 1], 1
push dword [ebp - 0x10]
call fcn.00410a90
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 1], bl
jne 0x41299d
push dword [ebp + 0xc]
call fcn.00415df6
mov al, byte [ebp - 1]
pop edi
pop ebx
leave
ret 0x10

Function at 0x412cd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [eax]
sub edx, dword [ebp + 8]
xor ecx, ecx
sub esp, 0xc
mov dword [eax + 0x40], edx
mov dword [eax + 0x44], ecx
cmp dword [ebp + 8], ecx
jbe 0x412d63
mov edx, dword [eax + 0x4c]
mov dword [ebp - 4], edx
mov edx, dword [eax + 0x58]
push ebx
push esi
mov esi, dword [eax + 0x54]
mov dword [ebp - 8], edx
mov edx, dword [eax + 0x5c]
push edi
mov edi, dword [eax + 0x50]
mov dword [ebp - 0xc], edx
mov edx, dword [eax + 0x48]
sub edi, esi
movzx ebx, byte [edx + ecx]
movzx eax, byte [edx + ecx + 1]
shl ebx, 5
xor eax, ebx
movzx ebx, byte [edx + ecx + 2]
dec dword [ebp + 8]
shl eax, 5
xor eax, ebx
mov ebx, dword [ebp - 4]
imul eax, eax, 0x9f5f
shr eax, 5
and eax, 0xffff
mov ebx, dword [ebx + eax*4]
mov dword [edi + esi], ebx
mov ebx, dword [ebp - 4]
mov dword [ebx + eax*4], ecx
mov ebx, dword [ebp - 8]
mov dword [esi], 0x801
inc dword [ebx + eax*4]
movzx eax, word [edx + ecx]
mov ebx, dword [ebp - 0xc]
mov dword [ebx + eax*4], ecx
inc ecx
add esi, 4
cmp dword [ebp + 8], 0
ja 0x412d08
pop edi
pop esi
pop ebx
leave
ret 4