joyce8/EMBER2024-capa huggingface dataset:
Function at 0x413376
Capabilities:
Create process on windows
Register raw input devices

Disassembly:
push ebx
push esi
push edi
xor esi, esi
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_GetRawInputBuffer]
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_GetRegisteredRawInputDevices]
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_GetRawInputDeviceList]
push esi
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_GetRawInputDeviceInfoW]
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_RegisterRawInputDevices]
push esi
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
mov ebx, dword [sym.imp.USER32.dll_GetDialogBaseUnits]
call ebx
push esi
push esi
push esi
call dword [sym.imp.USER32.dll_GetNextDlgGroupItem]
mov edi, dword [sym.imp.USER32.dll_GetNextDlgTabItem]
push esi
push esi
push esi
call edi
call ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
push esi
push esi
push esi
call dword [sym.imp.SHELL32.dll_DragQueryFileW]
mov ebx, dword [sym.imp.SHELL32.dll_DragFinish]
push esi
call ebx
push esi
push esi
push esi
call dword [sym.imp.SHELL32.dll_FindExecutableW]
push esi
push esi
push esi
push esi
call dword [sym.imp.SHELL32.dll_ShellAboutW]
push esi
push esi
call dword [sym.imp.USER32.dll_LoadIconA]
push esi
push esi
call dword [sym.imp.USER32.dll_LoadIconA]
push esi
push esi
push esi
call edi
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push esi
push esi
push esi
call edi
push esi
push esi
push esi
push esi
call dword [sym.imp.SHELL32.dll_DragQueryFileA]
push esi
call ebx
pop edi
pop esi
pop ebx
ret

Function at 0x41346a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x818
mov eax, dword [0x41d35c]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
xor esi, esi
lea edi, [ecx - 0x200]
xor ebx, ebx
mov dword [ebp - 0x810], edi
cmp dword [ebp + 8], esi
jle 0x4134f3
jmp 0x41349d
mov edi, dword [ebp - 0x810]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.0041343e
xor byte [edi + ebx], al
push esi
call dword [sym.imp.KERNEL32.dll_FindAtomW]
push esi
call dword [sym.imp.KERNEL32.dll_FindCloseChangeNotification]
xor eax, eax
mov dword [ebp - 0x818], esi
lea edi, [ebp - 0x814]
stosd dword es:[edi], eax
lea eax, [ebp - 0x818]
push eax
push esi
push esi
push esi
call dword [sym.imp.GDI32.dll_SetViewportOrgEx]
lea eax, [ebp - 0x80c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
inc ebx
cmp ebx, dword [ebp + 8]
jl 0x413497
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040472b
leave
ret 4
Function at 0x401500
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x2008
call fcn.00402670
mov eax, dword [esp + 0x2010]
push esi
push dword [eax]
lea eax, [esp + 0x10]
push 0
push dword [esp + 0x2018]
push 0x2000
push eax
call fcn.004015c0
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 2
push ecx
call fcn.00407a20
add esp, 0x1c
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
cmp byte [0x420990], 0
mov esi, eax
jne 0x40157e
lea eax, [esp + 4]
mov byte [0x420990], 1
push eax
push esi
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
mov eax, dword [esp + 4]
or eax, 4
push eax
push esi
mov dword [esp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_SetConsoleMode]
mov dword [esp + 8], 0
cmp esi, 0xffffffff
je 0x4015af
lea ecx, [esp + 0xc]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401592
push 0
lea eax, [esp + 0xc]
sub ecx, edx
push eax
push ecx
lea eax, [esp + 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
add esp, 0x2008
ret
Function at 0x402b27
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x402b66
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x402b66
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x402b66
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x402b66
cmp dword [ecx + 0x74], 0xe
jbe 0x402b66
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x40d1a3
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 0x40d240
push ebx
push esi
call fcn.0040d16c
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.0040d100
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40d1ed
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40d23f
push edi
push eax
call fcn.0040ab50
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40d20d
call fcn.00409fd2
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40d23e
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040d100
add esp, 0x20
test eax, eax
jne 0x40d22c
push edi
call fcn.00409fd2
jmp 0x40d234
push ebx
call fcn.00409fd2
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 0x40d243
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x40d254
pop esi
ret
push ebx
push edi
push esi
call fcn.0040d16c
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0040ab50
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x40d27c
push ebx
push esi
push edi
call fcn.00403370
add esp, 0xc
push 0
call fcn.00409fd2
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x40d9d6
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0040d4f1

Function at 0x40e7ca
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41a5f0
push 0x41a5e8
push str.FlsAlloc
push 0x1f
call fcn.0040e689
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40e7fe
push dword [ebp + 8]
mov ecx, esi
call dword [0x418164]
call esi
jmp 0x40e804
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40e848
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41a600
push 0x41a5f8
push str.FlsGetValue
push 0x21
call fcn.0040e689
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40e87f
push dword [ebp + 8]
mov ecx, esi
call dword [0x418164]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x40e887
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41a608
push 0x41a600
push str.FlsSetValue
push 0x22
call fcn.0040e689
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40e8c1
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x418164]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x413b61
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.00413add
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x413cd0
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x413cd0
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x413c85
jg 0x413bbd
test eax, eax
je 0x413c7b
push 1
push 0x1000
call fcn.0040bcc0
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x413be0
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x413c72
push 0x8000
push ebx
call fcn.0040863e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x413c09
jg 0x413c04
cmp ecx, 0x1000
jb 0x413c09
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00410d51
add esp, 0x10
cmp eax, 0xffffffff
je 0x413c4e
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 0x413c04
jl 0x413c35
test ecx, ecx
jne 0x413bf6
push dword [ebp - 0xc]
push ebx
call fcn.0040863e
push esi
call fcn.00409fd2
add esp, 0xc
xor ebx, ebx
jmp 0x413cde
cmp byte [edi + 0x24], 0
je 0x413c65
cmp dword [edi + 0x20], 5
jne 0x413c65
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x413c70
mov ebx, dword [edi + 0x18]
jmp 0x413c72
xor ebx, ebx
push esi
call fcn.00409fd2
pop ecx
jmp 0x413cde
test ecx, ecx
jg 0x413c47
jl 0x413c85
test eax, eax
jae 0x413c47
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004145e2
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x413ca5
cmp byte [edi + 0x1c], 0
je 0x413c47
jmp 0x413cd6
push ebx
call fcn.0040ddab
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x413c47
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 0x413cde
cmp byte [edi + 0x1c], 0
je 0x413cdb
mov ebx, dword [edi + 0x18]
jmp 0x413cde
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004145e2
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x413cf8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4210a0]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x413d38
cmp byte [ebx], 0xa
jne 0x413d38
or byte [edi + eax + 0x28], 4
jmp 0x413d3d
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x413e3c
mov dl, byte [eax]
cmp dl, 0x1a
je 0x413e1f
inc eax
cmp dl, 0xd
je 0x413d69
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x413d8f
cmp eax, ecx
jae 0x413d9d
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x413d51
jmp 0x413e3c
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x413e1a
cmp dword [ebp - 0x10], 0
je 0x413e1a
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x4210a0]
test byte [eax + edi + 0x28], 0x48
je 0x413df4
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x413ddf
mov byte [esi], dl
jmp 0x413df0
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4210a0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x413e3c
cmp byte [ebp - 1], 0xa
jne 0x413e03
cmp esi, ebx
jne 0x413e03
mov byte [esi], 0xa
jmp 0x413e3b
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004145e2
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x413e3c
mov byte [esi], 0xd
jmp 0x413e3b
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x4210a0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x413e39
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x413e3c
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x413e45
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x4210a0]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x413e8b
cmp word [ebx], dx
jne 0x413e8b
or byte [eax + edi + 0x28], 4
jmp 0x413e90
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x413ff3
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x413fd3
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x413ed1
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x413f07
cmp eax, edx
jae 0x413f15
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x413eac
jmp 0x413ff3
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x413fce
cmp dword [ebp - 0x18], 0
je 0x413fce
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x4210a0]
test byte [eax + edi + 0x28], 0x48
je 0x413fa4
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x413f68
mov word [esi], cx
jmp 0x413f9f
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x4210a0]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x4210a0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x4210a0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x413ff3
pop eax
cmp word [ebp - 4], ax
jne 0x413fb4
cmp esi, ebx
jne 0x413fb4
mov word [esi], ax
jmp 0x413ff0
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004145e2
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x413ff3
push 0xd
pop eax
jmp 0x413faf
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x4210a0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x413fed
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x413ff3
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x416aa0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x416acd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x416acd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x433003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
call 0x43300c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x433030
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
popal
nop
nop
nop
nop
nop
jmp 0x431219

Function at 0x419760
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x40f015
lea edi, [esi - 0xe015]
push edi
or ebp, 0xffffffff
jmp 0x419782
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x419789
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x419778
mov eax, 1
add ebx, ebx
jne 0x41979b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x419790
jne 0x4197ac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x419790
xor ecx, ecx
sub eax, 3
jb 0x4197c0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x419832
mov ebp, eax
add ebx, ebx
jne 0x4197cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4197d8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4197fc
inc ecx
add ebx, ebx
jne 0x4197e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4197dd
jne 0x4197f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4197dd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41981c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41980d
jmp 0x41977e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41981c
add edi, ecx
jmp 0x41977e
pop esi
mov edi, esi
mov ecx, 0x2b3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41983a
cmp byte [edi], 5
jne 0x41983a
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 0x41983f
lea edi, [esi + 0x17000]
mov eax, dword [edi]
or eax, eax
je 0x4198b7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x19000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1908c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41986c
mov ecx, edi
jns 0x41989b
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 + 0x19090]
or eax, eax
je 0x4198b1
mov dword [ebx], eax
add ebx, 4
jmp 0x419889
call dword [esi + 0x190a0]
mov ebp, dword [esi + 0x19094]
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 0x4198eb
sub esp, 0xffffff80
jmp 0x404c20
Function at 0x10001910
Capabilities:
Connect socket

Disassembly:
push ecx
mov eax, dword [edi + 0x18]
push ebx
xor ebx, ebx
cmp eax, ebx
push esi
je 0x1000192c
call fcn.10032584
mov esi, dword [edi + 0x18]
call fcn.10032524
mov dword [edi + 0x18], ebx
mov eax, dword [edi + 0x1c]
cmp eax, 0xffffffff
je 0x1000193f
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
or dword [edi + 0x1c], 0xffffffff
mov ecx, dword [edi + 0x2c]
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.100040fd
mov ecx, dword [edi + 0x30]
add esp, 0x14
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.100040fd
add esp, 0x14
xor eax, eax
inc eax
push 6
push eax
push 2
mov dword [edi + 0x24], eax
mov dword [edi + 0x28], ebx
mov dword [edi + 0x13f0], ebx
mov dword [edi + 0x13ec], ebx
mov dword [edi + 0x3dc], ebx
mov dword [edi + 0x3e0], ebx
mov dword [edi + 0x3e4], ebx
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [edi + 0x1c], eax
je 0x100019fc
push 0x10
push edi
push eax
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
jne 0x100019fc
mov eax, dword [edi + 0x40]
push str.http:
push dword [eax]
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x100019c0
mov eax, dword [edi + 0x24]
jmp 0x10001a01
push dword [edi + 0x14]
call fcn.100324dd
cmp eax, ebx
pop ecx
mov dword [edi + 0x18], eax
je 0x100019fc
mov ecx, dword [edi + 0x1c]
lea edx, [eax + 0xf8]
lea esi, [eax + 0xfc]
mov dword [edx], ecx
mov dword [esi], ecx
mov dword [eax + 0x110], edx
mov dword [eax + 0x114], esi
mov eax, dword [edi + 0x18]
call fcn.100327f6
cmp eax, 1
je 0x100019bb
mov dword [edi + 0x24], ebx
xor eax, eax
pop esi
pop ebx
pop ecx
ret

Function at 0x10001a05
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [edi + 0x24], 0
push esi
jne 0x10001a16
xor eax, eax
jmp 0x10001a8d
mov eax, dword [ebx + 4]
and dword [ebp - 4], 0
test eax, eax
mov dword [ebp - 8], eax
jle 0x10001a8a
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 4]
mov eax, 0x1000
cmp ecx, eax
jl 0x10001a35
mov ecx, eax
mov eax, dword [ebx]
mov esi, dword [edi + 0x18]
add eax, dword [ebp - 4]
test esi, esi
je 0x10001a53
push ecx
push eax
call fcn.100356cf
test eax, eax
pop ecx
pop ecx
jge 0x10001a60
or esi, 0xffffffff
jmp 0x10001a62
push 0
push ecx
push eax
push dword [edi + 0x1c]
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
test esi, esi
jle 0x10001a90
mov eax, dword [edi + 0x3e8]
test eax, eax
je 0x10001a7f
push 0
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10001a90
add dword [ebp - 4], esi
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jl 0x10001a24
xor eax, eax
inc eax
pop esi
leave
ret
and dword [edi + 0x24], 0
jmp 0x10001a12
Function at 0x10001a99
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ecx
push ecx
cmp dword [esi + 0x24], 0
push ebx
push ebp
push edi
jne 0x10001aab
xor eax, eax
jmp 0x10001b82
mov edi, dword [esi + 0x13f0]
mov eax, edi
cdq
mov ebx, bind
add eax, ebx
adc edx, 0
mov dword [esp + 0x10], edx
mov ebp, 0x1000
js 0x10001b0f
jg 0x10001acf
cmp eax, ebp
jbe 0x10001b0f
mov ecx, dword [esi + 0x13ec]
test ecx, ecx
je 0x10001b0f
cmp edi, ebp
je 0x10001ae6
mov eax, edi
sub eax, ecx
cmp eax, 0x10
jg 0x10001b0f
mov eax, edi
sub eax, ecx
push eax
mov dword [esi + 0x13f0], eax
lea eax, [ecx + esi + 0x3ec]
push eax
lea eax, [esi + 0x3ec]
push eax
call sub.MSVCRT.dll_memmove
add esp, 0xc
and dword [esi + 0x13ec], 0
mov eax, dword [esi + 0x13f0]
mov ecx, ebp
sub ecx, eax
cmp ecx, ebx
jle 0x10001b1f
mov ecx, ebx
mov edx, dword [esi + 0x18]
xor ebx, ebx
cmp edx, ebx
lea eax, [eax + esi + 0x3ec]
je 0x10001b3c
push ecx
push eax
push edx
call fcn.1003255d
add esp, 0xc
jmp 0x10001b48
push ebx
push ecx
push eax
push dword [esi + 0x1c]
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
cmp edi, ebx
jge 0x10001b56
mov dword [esi + 0x24], ebx
jmp 0x10001aa4
mov eax, dword [esi + 0x3e8]
cmp eax, ebx
je 0x10001b6e
push ebx
push dword [eax + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10001b4e
add dword [esi + 0x13f0], edi
cmp edi, ebx
jne 0x10001b7f
mov dword [esi + 0x28], 1
mov eax, dword [esi + 0x24]
pop edi
pop ebp
pop ebx
pop ecx
pop ecx
ret

Function at 0x10002a96
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, eax
mov ecx, edi
and ecx, 0xff00
mov edx, edi
shl edx, 0x10
or ecx, edx
shl ecx, 8
movzx edx, di
or ecx, edx
xor ecx, 0xb11924e1
movsx esi, cl
mov edx, ecx
shr edx, 8
movsx edx, dl
mov ebx, esi
mov ebp, dword [esp + 0x14]
shl ebx, 5
add ebx, esi
add edx, ebx
mov esi, edx
shl esi, 5
add esi, edx
mov edx, ecx
shr edx, 0x10
movsx edx, dl
add esi, edx
shr ecx, 0x18
mov edx, esi
shl edx, 5
add edx, esi
movsx ecx, cl
mov ebx, edi
and ebx, 3
mov eax, 0x96438af7
lea ecx, [ecx + edx + 0x7c5d0f85]
mov dword [esp + 0x14], ebx
je 0x10002b58
mov esi, ebp
jmp 0x10002b11
mov edx, ecx
and edx, 0xff
add eax, dword [edx*4 + 0x10058058]
mov ebp, ecx
not ebp
shl ebp, 0x15
mov dl, al
add dl, cl
xor dl, byte ds:[esi]
add ebp, 0x2611501
shr ecx, 0xb
or ecx, ebp
mov ebp, eax
shl ebp, 5
add ebp, eax
movzx eax, dl
mov byte ds:[esi], dl
add esi, 1
sub ebx, 1
lea eax, [ebp + eax + 3]
jne 0x10002b11
sub edi, dword [esp + 0x14]
mov ebp, esi
test edi, edi
mov esi, ebp
je 0x10002b9f
jmp 0x10002b62
mov edx, ecx
and edx, 0xff
add eax, dword [edx*4 + 0x10058058]
mov ebx, ecx
not ebx
shl ebx, 0x15
lea edx, [eax + ecx]
xor edx, dword ds:[esi]
add ebx, 0x3938731
shr ecx, 0xb
or ecx, ebx
mov ebx, eax
shl ebx, 5
add ebx, edx
mov dword ds:[esi], edx
add esi, 4
sub edi, 4
lea eax, [ebx + eax + 3]
jne 0x10002b62
pop edi
pop esi
pop ebp
pop ebx
ret