joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42d6c9
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 0x42d755
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 0x42d74b
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 0x42d742
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 0x42d742
cmp dword [ebp - 0xc], 0x10
jne 0x42d742
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 0x42d75d
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov eax, dword [0x4367e8]
cmp eax, 0x270
jl 0x42d695
push esi
push edi
xor edx, edx
mov esi, closesocket
mov ecx, edx
mov eax, dword [ecx*4 + 0x435e1c]
xor eax, dword [ecx*4 + 0x435e18]
and eax, esi
xor eax, dword [ecx*4 + 0x435e18]
mov edi, eax
shr eax, 1
and edi, 1
xor eax, dword [edi*4 + 0x435970]
xor eax, dword [ecx*4 + 0x43644c]
inc edx
mov dword [ecx*4 + 0x435e18], eax
cmp edx, 0xe3
jl 0x42d5ee
cmp edx, 0x26f
jge 0x42d667
lea ecx, [edx*4 + 0x435e18]
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 + 0x435970]
xor edi, dword [ecx - 0x38c]
shr eax, 1
xor edi, eax
mov dword [ecx], edi
add ecx, 4
cmp ecx, 0x4367d4
jl 0x42d63b
mov ecx, dword [0x4367d4]
mov eax, dword [0x435e18]
xor eax, ecx
and eax, esi
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
xor eax, dword [ecx*4 + 0x435970]
pop edi
xor eax, dword [0x436448]
pop esi
mov dword [0x4367d4], eax
xor eax, eax
mov ecx, dword [eax*4 + 0x435e18]
inc eax
mov dword [0x4367e8], 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 [0x435a14]
je 0x42d7a4
xor ecx, ecx
mov dword [0x435a14], eax
mov dword [0x435e18], eax
inc ecx
mov eax, 0x435e18
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, 0x4367d4
jl 0x42d77e
mov dword [0x4367e8], ecx
pop esi
jmp 0x42d5d5
Function at 0x42d7d3
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp byte [0x435a0a], 0
jne 0x42d80c
xor ecx, ecx
push 8
mov eax, ecx
pop edx
test al, 1
je 0x42d7f0
shr eax, 1
xor eax, 0xedb88320
jmp 0x42d7f2
shr eax, 1
dec edx
jne 0x42d7e3
mov dword [ecx*4 + 0x435a18], eax
inc ecx
cmp ecx, 0x100
jb 0x42d7de
mov byte [0x435a0a], 1
xor ecx, ecx
or eax, 0xffffffff
cmp dword [esp + 8], ecx
jbe 0x42d838
mov edx, dword [esp + 4]
movzx edx, byte [ecx + edx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x435a18]
inc ecx
cmp ecx, dword [esp + 8]
jb 0x42d817
not eax
ret 8

Function at 0x42d83d
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
xor ecx, ecx
push esi
mov byte [ebp - 1], cl
mov byte [ebp - 2], cl
mov word [eax + 0x100], cx
mov byte [eax + 0x102], cl
mov edx, eax
push edi
mov byte [edx], cl
inc ecx
mov esi, 0x100
inc edx
cmp cx, si
jb 0x42d85a
mov esi, eax
mov edi, 0x100
push ebx
movzx ecx, byte [ebp - 1]
mov ebx, dword [ebp + 8]
mov cl, byte [ecx + ebx]
mov dl, byte [esi]
add cl, dl
add byte [ebp - 2], cl
movzx ecx, byte [ebp - 2]
mov bl, byte [ecx + eax]
inc byte [ebp - 1]
mov byte [esi], bl
mov byte [ecx + eax], dl
movzx ecx, byte [ebp - 1]
cmp cx, word [ebp + 0xc]
jne 0x42d89e
mov byte [ebp - 1], 0
inc esi
dec edi
jne 0x42d870
xor esi, esi
mov dword [ebp + 0xc], 0xd6490b8f
pop ebx
mov cl, byte [ebp + edi + 0xc]
mov dl, cl
and dl, 7
shr cl, 3
inc edi
cmp edi, 4
jne 0x42d8c0
xor edi, edi
movzx edx, dl
cmp edx, 7
ja case.default.0x42d8c8
jmp dword [edx*4 + 0x42d90d]
not byte [esi + eax]
jmp case.default.0x42d8c8
xor byte [esi + eax], cl
jmp case.default.0x42d8c8
add byte [esi + eax], cl
jmp case.default.0x42d8c8
sub byte [esi + eax], cl
jmp case.default.0x42d8c8
mov dl, byte [esi + eax]
ror dl, cl
mov byte [esi + eax], dl
jmp case.default.0x42d8c8
mov dl, byte [esi + eax]
rol dl, cl
jmp 0x42d8e8
inc byte [esi + eax]
jmp case.default.0x42d8c8
dec byte [esi + eax]
inc esi
cmp esi, 0x100
jb 0x42d8ac
pop edi
pop esi
leave
ret 8
Function at 0x42db11
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
lea eax, [ecx + 4]
push ebx
mov dword [ecx], eax
mov ecx, dword [esp + 8]
push esi
xor edx, edx
add ecx, 2
push edi
movzx esi, byte [ecx + 1]
movzx edi, byte [ecx]
shl esi, 8
or esi, edi
movzx edi, byte [ecx - 1]
shl esi, 8
or esi, edi
movzx edi, byte [ecx - 2]
shl esi, 8
or esi, edi
mov dword [eax + edx*4], esi
inc edx
add ecx, 4
cmp edx, 4
jb 0x42db22
xor edi, edi
mov ebx, dword [eax + 0xc]
movzx edx, byte [eax + 0xf]
movzx edx, byte [edx + 0x405858]
mov ecx, ebx
and ecx, 0xff
movzx ecx, byte [ecx + 0x405858]
shl ecx, 8
xor ecx, edx
movzx edx, byte [eax + 0xe]
movzx edx, byte [edx + 0x405858]
shl ecx, 8
xor ecx, edx
movzx edx, byte [eax + 0xd]
movzx edx, byte [edx + 0x405858]
shl ecx, 8
xor ecx, edx
xor ecx, dword [edi + 0x407a58]
mov edx, dword [eax + 4]
xor ecx, dword [eax]
add edi, 4
xor edx, ecx
mov dword [eax + 0x10], ecx
mov ecx, dword [eax + 8]
xor ecx, edx
mov dword [eax + 0x18], ecx
xor ecx, ebx
mov dword [eax + 0x14], edx
mov dword [eax + 0x1c], ecx
add eax, 0x10
cmp edi, 0x28
jb 0x42db4e
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
ret 4

Function at 0x42dbc4
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push esi
push dword [ebp + 8]
lea esi, [eax + 4]
lea ecx, [ebp - 0x114]
mov dword [eax], esi
call fcn.0042db11
test eax, eax
je 0x42dcb5
mov eax, dword [ebp - 0x114]
add eax, 0xa0
mov ecx, dword [eax]
mov dword [esi], ecx
push 4
pop ecx
add eax, ecx
mov edx, dword [eax]
add esi, ecx
mov dword [esi], edx
add eax, ecx
mov edx, dword [eax]
add esi, ecx
mov dword [esi], edx
add eax, ecx
mov edx, dword [eax]
add esi, ecx
mov dword [esi], edx
push ebx
add esi, ecx
mov dword [ebp + 8], 9
sub eax, 0x1c
push edi
mov edx, ecx
movzx edi, byte [eax + 3]
movzx edi, byte [edi + 0x405858]
movzx ebx, byte [eax + 2]
movzx ebx, byte [ebx + 0x405858]
mov edi, dword [edi*4 + 0x407658]
xor edi, dword [ebx*4 + 0x407258]
movzx ebx, byte [eax + 1]
movzx ebx, byte [ebx + 0x405858]
xor edi, dword [ebx*4 + 0x406e58]
mov ebx, dword [eax]
and ebx, 0xff
movzx ebx, byte [ebx + 0x405858]
xor edi, dword [ebx*4 + 0x406a58]
add eax, ecx
mov dword [esi], edi
add esi, ecx
dec edx
jne 0x42dc23
dec dword [ebp + 8]
sub eax, 0x20
cmp dword [ebp + 8], edx
ja 0x42dc21
mov edx, dword [eax]
mov dword [esi], edx
add eax, ecx
mov edx, dword [eax]
add esi, ecx
mov dword [esi], edx
add eax, ecx
add esi, ecx
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, dword [eax + 4]
push 0x114
mov dword [esi + 4], eax
push 0
lea eax, [ebp - 0x114]
push eax
call fcn.0042c138
xor eax, eax
pop edi
inc eax
pop ebx
pop esi
leave
ret 4
Function at 0x42e82d
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
mov byte [ebp - 1], 0
je 0x42e936
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x42e936
cmp dword [ebp + 0x14], 0
je 0x42e936
test byte [ebp + 0x14], 1
jne 0x42e936
xor ecx, ecx
mov word [eax], cx
mov eax, dword [ebp + 0xc]
dec eax
je 0x42e889
dec eax
je 0x42e882
dec eax
jne 0x42e936
mov edi, 0x407ac8
jmp 0x42e88e
mov edi, 0x407aa8
jmp 0x42e88e
mov edi, 0x407a90
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test esi, esi
je 0x42e936
call fcn.0042c055
mov ebx, eax
test ebx, ebx
je 0x42e936
push ebx
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
cmp eax, 1
jne 0x42e92b
mov esi, dword [sym.imp.VERSION.dll_VerQueryValueW]
push 0
lea eax, [ebp + 8]
push eax
push 0x407ae0
push ebx
call esi
cmp eax, 1
jne 0x42e92b
mov eax, dword [ebp + 8]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push edi
push ecx
push eax
push 0x407b14
mov edx, 0x104
lea edi, [ebp - 0x210]
call fcn.0042cebe
add esp, 0x10
push 0
lea eax, [ebp - 8]
push eax
mov eax, edi
push eax
push ebx
call esi
cmp eax, 1
jne 0x42e92b
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0x10]
shr eax, 1
dec eax
call fcn.0042c426
mov byte [ebp - 1], 1
push ebx
call fcn.0042c085
mov al, byte [ebp - 1]
jmp 0x42e938
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x42e93f
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x42eaa0
push 0x407b4c
push 0x407b68
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x42eaa0
and dword [ebp - 0xc], 0
lea ecx, [ebp - 0x214]
mov dword [ebp - 0x218], ecx
xor ecx, ecx
mov word [ebp - 0x21c], cx
mov ecx, 0x208
mov word [ebp - 0x21a], cx
lea ecx, [ebp - 0xc]
push ecx
push 0x210
lea ecx, [ebp - 0x21c]
push ecx
push 0x1b
push dword [ebp + 8]
call eax
test eax, eax
jne 0x42eaa0
mov word [esi], ax
mov word [ebp - 0x824], ax
lea eax, [ebp - 0x824]
push eax
push 0x1ff
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x42ea9c
push edi
mov esi, 0x407b7c
lea edi, [ebp - 8]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea edi, [ebp - 0x824]
mov esi, 0x104
push ebx
mov ax, word [edi]
mov word [ebp - 8], ax
push esi
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x42ea59
lea eax, [ebp - 0x424]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
cmp ebx, esi
jae 0x42ea59
push dword [ebp - 0x218]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp ebx, eax
jae 0x42ea59
push dword [ebp - 0x218]
mov eax, ebx
mov edx, ebx
lea ecx, [ebp - 0x424]
call fcn.0042cce9
test eax, eax
jne 0x42ea59
mov eax, dword [ebp - 0x218]
cmp word [eax + ebx*2], 0x5c
je 0x42ea6b
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x42ea59
cmp word [edi], ax
jne 0x42e9f3
jmp 0x42ea9a
mov esi, dword [ebp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpynW]
shr esi, 1
lea eax, [esi - 1]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
call edi
mov eax, dword [ebp - 0x218]
add esi, 0xfffffffd
lea eax, [eax + ebx*2]
push esi
push eax
mov eax, dword [ebp + 0xc]
add eax, 4
push eax
call edi
pop ebx
pop edi
mov al, 1
jmp 0x42eaa2
xor al, al
pop esi
leave
ret 0xc

Function at 0x42eb39
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 0x42eb8a
lea eax, [ebp - 0x1c]
push eax
push esi
mov dword [ebp - 0x1c], 0x1c
call dword [sym.imp.KERNEL32.dll_Thread32First]
jmp 0x42eb7d
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 8]
jne 0x42eb72
inc edi
lea eax, [ebp - 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x42eb69
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
leave
ret 4
Function at 0x42eda0
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 0x42edc7
push 0x44
pop edx
push edx
push esi
lea eax, [ebp - 0x58]
push eax
call fcn.0042c138
mov dword [ebp - 0x58], edx
lea eax, [ebp - 0x58]
lea ecx, [ebp - 4]
cmp dword [ebp + 8], esi
je 0x42edd2
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 0x42ee19
cmp dword [ebp + 0x10], esi
je 0x42ee04
push 0x10
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0x10]
call fcn.0042c0c1
jmp 0x42ee14
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 0x42ee1b
xor eax, eax
pop esi
leave
ret 0xc

Function at 0x42ee7b
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push ebx
xor ebx, ebx
push 0x407bcc
mov byte [ebp - 1], bl
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x42ef5f
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
push 0x407bd8
push eax
call esi
push 0x407bf0
push dword [ebp - 0x10]
mov edi, eax
call esi
mov dword [ebp - 0x14], eax
cmp edi, ebx
je 0x42ef54
cmp eax, ebx
je 0x42ef54
push ebx
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0xc], ebx
call edi
test eax, eax
jne 0x42eee0
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.0042c138
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x68], edx
mov dword [ebp - 0x60], ebx
cmp ecx, ebx
jne 0x42ef04
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 0x42ef49
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 0x42ef54
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 0x42ef8e
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 0x42efb8
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0x10]
jmp 0x42efba
xor eax, eax
pop ebp
ret 0xc
Function at 0x42f019
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x56c
lea eax, [ebp - 0x24c]
push eax
push 0x407c2c
call fcn.00433479
test al, al
je 0x42f127
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 0x407c34
push eax
call fcn.0042cf8f
add esp, 0x10
cmp eax, 0xffffffff
je 0x42f11b
push ebx
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x24c]
push eax
call fcn.004331c4
push dword [ebp + 8]
mov bl, al
call fcn.0042c085
test bl, bl
pop ebx
je 0x42f11b
push edi
lea eax, [ebp - 0x24c]
push eax
push 0x407c54
mov edx, 0x10e
lea edi, [ebp - 0x56c]
call fcn.0042cebe
pop ecx
pop ecx
pop edi
cmp eax, 0xffffffff
jle 0x42f11b
push 0x104
lea eax, [ebp - 0x24c]
push eax
push 0x407c64
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0x102
ja 0x42f11b
push 0x44
pop edx
push edx
push 0
lea eax, [ebp - 0x44]
push eax
call fcn.0042c138
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.0042ee20
test eax, eax
setne al
jmp 0x42f129
lea eax, [ebp - 0x24c]
push eax
call fcn.00433406
xor al, al
leave
ret 4

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

Disassembly:
push ebx
push edi
xor edi, edi
cmp ecx, edi
jne 0x42f13a
mov ecx, 0x407c74
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 0x42f192
push esi
xor esi, esi
push 4
lea eax, [esi + 0x435060]
push eax
push dword [esi + 0x43505c]
push ebx
call dword [sym.imp.WININET.dll_InternetSetOptionA]
add esi, 8
cmp esi, 0x20
jb 0x42f153
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 0x42f194
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor eax, eax
pop edi
pop ebx
ret 8
Function at 0x42f241
Capabilities:
Check http status code
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0x20]
and esi, 2
push edi
mov eax, 0x8404f700
je 0x42f259
mov eax, 0x8444f700
test byte [ebp + 0x20], 4
je 0x42f264
or eax, 0x800000
mov ecx, dword [ebp + 0x24]
xor ebx, ebx
cmp ecx, ebx
je 0x42f26f
mov dword [ecx], ebx
test byte [ebp + 0x20], 1
mov ecx, 0x407cac
jne 0x42f27f
mov ecx, 0x407cb4
push ebx
push eax
push 0x435054
push ebx
push 0x401a24
push dword [ebp + 0xc]
push ecx
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov edi, eax
cmp edi, ebx
je 0x42f33b
cmp esi, ebx
je 0x42f2af
mov dword [ebp + 0xc], ebx
mov dword [ebp + 0x20], ebx
jmp 0x42f2bd
mov dword [ebp + 0xc], 0x407cb8
mov dword [ebp + 0x20], 0x13
cmp dword [ebp + 0x18], ebx
je 0x42f2e3
xor esi, esi
cmp dword [ebp + 0x1c], ebx
jbe 0x42f2e3
mov eax, dword [ebp + 0x18]
push 0xa0000000
push 0xffffffffffffffff
push dword [eax + esi*4]
push edi
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
inc esi
cmp esi, dword [ebp + 0x1c]
jb 0x42f2c9
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0x20]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x42f334
push ebx
lea eax, [ebp + 0x18]
push eax
lea eax, [ebp + 0x20]
push eax
push 0x20000013
push edi
mov dword [ebp + 0x20], ebx
mov dword [ebp + 0x18], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x42f334
mov ecx, dword [ebp + 0x24]
mov eax, dword [ebp + 0x20]
cmp ecx, ebx
je 0x42f329
mov dword [ecx], eax
cmp eax, 0xc8
jne 0x42f334
mov eax, edi
jmp 0x42f33d
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x20

Function at 0x42f344
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, 0x3200000
cmp ebx, edi
je 0x42f35d
cmp ebx, eax
jbe 0x42f35f
mov ebx, eax
mov dword [ebp - 8], edi
cmp dword [ebp + 0x10], 0
je 0x42f37a
push 0
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x42f3bb
lea eax, [edi + 0x1000]
lea esi, [ebp - 8]
mov dword [ebp - 4], 0x1000
call fcn.0042c000
test al, al
je 0x42f3bb
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 0x42f3bb
cmp dword [ebp - 4], 0
je 0x42f3cc
add edi, dword [ebp - 4]
cmp edi, ebx
jbe 0x42f362
push dword [ebp - 8]
call fcn.0042c085
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0xc
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x42f3da
mov dword [eax], esi
mov dword [eax + 4], edi
jmp 0x42f3e0
push esi
call fcn.0042c085
mov al, 1
jmp 0x42f3c5
Function at 0x42f3e4
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 0x42f4af
mov eax, 0x1000
call fcn.0042c055
mov dword [ebp - 0x10], eax
cmp eax, ebx
je 0x42f49b
mov dword [ebp - 0xc], ebx
cmp dword [ebp + 0x14], ebx
je 0x42f43f
push ebx
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x42f493
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 0x42f493
cmp dword [ebp - 8], ebx
je 0x42f488
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 0x42f493
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x14]
jne 0x42f493
add dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0x10]
jbe 0x42f429
jmp 0x42f493
push edi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov byte [ebp - 1], 1
push dword [ebp - 0x10]
call fcn.0042c085
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 1], bl
jne 0x42f4af
push dword [ebp + 0xc]
call fcn.00433406
mov al, byte [ebp - 1]
pop edi
pop ebx
leave
ret 0x10

Function at 0x42f829
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 0x42f8bc
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 0x42f861
pop edi
pop esi
pop ebx
leave
ret 4