joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100422c5
Capabilities:
Resolve function by parsing pe exports

Disassembly:
add esp, 4
call 0x1004227d
add byte [ebp + esi + 0x47], cl
dec esp
inc ecx
cmp dh, byte [esi]
inc ebp
add esp, 4
pop edi
cmp dword [ebp - 0xce0], 0
jne 0x10042299
mov dword [ebp - 0x314], 0
jmp 0x100424e4
mov edx, dword [ebp - 0xce0]
mov dword [ebp - 0x51c], edx
push ecx
xor ecx, 0xa537
jmp 0x100422b3
pop ecx
push edi
call 0x100422c5
add byte [ebp + 0x4c], al
cmp ecx, dword [ecx + 0x42]
cmp ecx, dword [eax + 0x41]
aaa
inc esi
add esp, 4
or edi, 0x11eb2
jmp 0x100422d6
pop edi
lea eax, [ebp - 0x1734]
mov dword [ebp - 0xcdc], eax
mov ecx, dword [ebp - 0x51c]
mov edx, dword [ecx + 0x30]
mov dword [ebp - 0xcd8], edx
xor eax, eax
mov word [ebp - 0x220], ax
xor ecx, ecx
mov word [ebp - 0x40], cx
push edi
add edi, 0x2c20
jmp 0x1004230f
call 0x1004231b
add byte [esi + 0x38], al
xor eax, 0x833f4838
les eax, [ecx + eax*4]
not dword [ecx + 0x21]
add byte [eax], al
pop edi
push edx
sub edx, 0x17276
sub edx, 0x15d77
pop edx
mov edx, dword [ebp - 0xcd8]
mov ax, word [edx]
mov word [ebp - 0x1046], ax
mov ecx, dword [ebp - 0xcd8]
add ecx, 2
mov dword [ebp - 0xcd8], ecx
mov dx, word [ebp - 0x1046]
mov word [ebp - 0x220], dx
mov eax, dword [ebp - 0xcdc]
mov cx, word [eax]
mov word [ebp - 0x1048], cx
mov edx, dword [ebp - 0xcdc]
add edx, 2
mov dword [ebp - 0xcdc], edx
mov ax, word [ebp - 0x1048]
mov word [ebp - 0x40], ax
push edx
and edx, 0x183b7
xor edx, 0x155e5
and edx, 0x3ded
call 0x100423aa
add byte [0x4347364e], bh
xor bh, byte [0x5a04c483]
push eax
and eax, 0x15eea
and eax, 0x6163
pop eax
movzx ecx, word [ebp - 0x40]
test ecx, ecx
jne 0x100423d9
movzx edx, word [ebp - 0x220]
movzx eax, word [ebp - 0x40]
sub edx, eax
mov dword [ebp - 0x167c], edx
jmp 0x10042433
movzx ecx, word [ebp - 0x220]
movzx edx, word [ebp - 0x40]
cmp ecx, edx
je 0x10042301
movzx eax, word [ebp - 0x220]
xor eax, 0x20
movzx ecx, word [ebp - 0x40]
cmp eax, ecx
je 0x10042301
movzx edx, word [ebp - 0x220]
movzx eax, word [ebp - 0x40]
cmp edx, eax
jge 0x1004241d
mov dword [ebp - 0x1678], 0xffffffff
jmp 0x10042427
mov dword [ebp - 0x1678], 1
mov ecx, dword [ebp - 0x1678]
mov dword [ebp - 0x167c], ecx
cmp dword [ebp - 0x167c], 0
jne 0x1004247c
push ebx
push esi
add esp, 4
jmp 0x10042446
call 0x10042455
add byte [edx + 0x43], cl
dec edi
inc edi
xor eax, dword [esi + 0x42]
dec ecx
inc eax
add esp, 4
pop ebx
push eax
push edx
add esp, 4
add eax, 0xa8c3
jmp 0x1004246d
pop eax
mov edx, dword [ebp - 0x51c]
mov dword [ebp - 0x314], edx
jmp 0x100424e4
push eax
push ecx
add esp, 4
sub eax, 0x6d95
or eax, 0x598d
add eax, 0xc087
pop eax
push edx
and edx, 0x7293
or edx, 0x65a5
xor edx, 0x11110
sub edx, 0x3e0a
pop edx
mov eax, dword [ebp - 0x51c]
mov ecx, dword [eax]
mov dword [ebp - 0x51c], ecx
mov edx, dword [ebp - 0x51c]
cmp edx, dword [ebp - 0xce0]
je 0x100424da
mov eax, dword [ebp - 0x51c]
cmp dword [eax + 0x30], 0
jne 0x100422a5
mov dword [ebp - 0x314], 0
Function at 0x1004231b
Capabilities:
Resolve function by parsing pe exports

Disassembly:
add esp, 4
call 0x1004227d
add byte [ebp + esi + 0x47], cl
dec esp
inc ecx
cmp dh, byte [esi]
inc ebp
add esp, 4
pop edi
cmp dword [ebp - 0xce0], 0
jne 0x10042299
mov dword [ebp - 0x314], 0
jmp 0x100424e4
mov edx, dword [ebp - 0xce0]
mov dword [ebp - 0x51c], edx
push ecx
xor ecx, 0xa537
jmp 0x100422b3
pop ecx
push edi
call 0x100422c5
add byte [ebp + 0x4c], al
cmp ecx, dword [ecx + 0x42]
cmp ecx, dword [eax + 0x41]
aaa
inc esi
add esp, 4
or edi, 0x11eb2
jmp 0x100422d6
pop edi
lea eax, [ebp - 0x1734]
mov dword [ebp - 0xcdc], eax
mov ecx, dword [ebp - 0x51c]
mov edx, dword [ecx + 0x30]
mov dword [ebp - 0xcd8], edx
xor eax, eax
mov word [ebp - 0x220], ax
xor ecx, ecx
mov word [ebp - 0x40], cx
push edi
add edi, 0x2c20
jmp 0x1004230f
call 0x1004231b
add byte [esi + 0x38], al
xor eax, 0x833f4838
les eax, [ecx + eax*4]
not dword [ecx + 0x21]
add byte [eax], al
pop edi
push edx
sub edx, 0x17276
sub edx, 0x15d77
pop edx
mov edx, dword [ebp - 0xcd8]
mov ax, word [edx]
mov word [ebp - 0x1046], ax
mov ecx, dword [ebp - 0xcd8]
add ecx, 2
mov dword [ebp - 0xcd8], ecx
mov dx, word [ebp - 0x1046]
mov word [ebp - 0x220], dx
mov eax, dword [ebp - 0xcdc]
mov cx, word [eax]
mov word [ebp - 0x1048], cx
mov edx, dword [ebp - 0xcdc]
add edx, 2
mov dword [ebp - 0xcdc], edx
mov ax, word [ebp - 0x1048]
mov word [ebp - 0x40], ax
push edx
and edx, 0x183b7
xor edx, 0x155e5
and edx, 0x3ded
call 0x100423aa
add byte [0x4347364e], bh
xor bh, byte [0x5a04c483]
push eax
and eax, 0x15eea
and eax, 0x6163
pop eax
movzx ecx, word [ebp - 0x40]
test ecx, ecx
jne 0x100423d9
movzx edx, word [ebp - 0x220]
movzx eax, word [ebp - 0x40]
sub edx, eax
mov dword [ebp - 0x167c], edx
jmp 0x10042433
movzx ecx, word [ebp - 0x220]
movzx edx, word [ebp - 0x40]
cmp ecx, edx
je 0x10042301
movzx eax, word [ebp - 0x220]
xor eax, 0x20
movzx ecx, word [ebp - 0x40]
cmp eax, ecx
je 0x10042301
movzx edx, word [ebp - 0x220]
movzx eax, word [ebp - 0x40]
cmp edx, eax
jge 0x1004241d
mov dword [ebp - 0x1678], 0xffffffff
jmp 0x10042427
mov dword [ebp - 0x1678], 1
mov ecx, dword [ebp - 0x1678]
mov dword [ebp - 0x167c], ecx
cmp dword [ebp - 0x167c], 0
jne 0x1004247c
push ebx
push esi
add esp, 4
jmp 0x10042446
call 0x10042455
add byte [edx + 0x43], cl
dec edi
inc edi
xor eax, dword [esi + 0x42]
dec ecx
inc eax
add esp, 4
pop ebx
push eax
push edx
add esp, 4
add eax, 0xa8c3
jmp 0x1004246d
pop eax
mov edx, dword [ebp - 0x51c]
mov dword [ebp - 0x314], edx
jmp 0x100424e4
push eax
push ecx
add esp, 4
sub eax, 0x6d95
or eax, 0x598d
add eax, 0xc087
pop eax
push edx
and edx, 0x7293
or edx, 0x65a5
xor edx, 0x11110
sub edx, 0x3e0a
pop edx
mov eax, dword [ebp - 0x51c]
mov ecx, dword [eax]
mov dword [ebp - 0x51c], ecx
mov edx, dword [ebp - 0x51c]
cmp edx, dword [ebp - 0xce0]
je 0x100424da
mov eax, dword [ebp - 0x51c]
cmp dword [eax + 0x30], 0
jne 0x100422a5
mov dword [ebp - 0x314], 0
Function at 0x100423aa
Capabilities:
Resolve function by parsing pe exports

Disassembly:
add esp, 4
call 0x1004227d
add byte [ebp + esi + 0x47], cl
dec esp
inc ecx
cmp dh, byte [esi]
inc ebp
add esp, 4
pop edi
cmp dword [ebp - 0xce0], 0
jne 0x10042299
mov dword [ebp - 0x314], 0
jmp 0x100424e4
mov edx, dword [ebp - 0xce0]
mov dword [ebp - 0x51c], edx
push ecx
xor ecx, 0xa537
jmp 0x100422b3
pop ecx
push edi
call 0x100422c5
add byte [ebp + 0x4c], al
cmp ecx, dword [ecx + 0x42]
cmp ecx, dword [eax + 0x41]
aaa
inc esi
add esp, 4
or edi, 0x11eb2
jmp 0x100422d6
pop edi
lea eax, [ebp - 0x1734]
mov dword [ebp - 0xcdc], eax
mov ecx, dword [ebp - 0x51c]
mov edx, dword [ecx + 0x30]
mov dword [ebp - 0xcd8], edx
xor eax, eax
mov word [ebp - 0x220], ax
xor ecx, ecx
mov word [ebp - 0x40], cx
push edi
add edi, 0x2c20
jmp 0x1004230f
call 0x1004231b
add byte [esi + 0x38], al
xor eax, 0x833f4838
les eax, [ecx + eax*4]
not dword [ecx + 0x21]
add byte [eax], al
pop edi
push edx
sub edx, 0x17276
sub edx, 0x15d77
pop edx
mov edx, dword [ebp - 0xcd8]
mov ax, word [edx]
mov word [ebp - 0x1046], ax
mov ecx, dword [ebp - 0xcd8]
add ecx, 2
mov dword [ebp - 0xcd8], ecx
mov dx, word [ebp - 0x1046]
mov word [ebp - 0x220], dx
mov eax, dword [ebp - 0xcdc]
mov cx, word [eax]
mov word [ebp - 0x1048], cx
mov edx, dword [ebp - 0xcdc]
add edx, 2
mov dword [ebp - 0xcdc], edx
mov ax, word [ebp - 0x1048]
mov word [ebp - 0x40], ax
push edx
and edx, 0x183b7
xor edx, 0x155e5
and edx, 0x3ded
call 0x100423aa
add byte [0x4347364e], bh
xor bh, byte [0x5a04c483]
push eax
and eax, 0x15eea
and eax, 0x6163
pop eax
movzx ecx, word [ebp - 0x40]
test ecx, ecx
jne 0x100423d9
movzx edx, word [ebp - 0x220]
movzx eax, word [ebp - 0x40]
sub edx, eax
mov dword [ebp - 0x167c], edx
jmp 0x10042433
movzx ecx, word [ebp - 0x220]
movzx edx, word [ebp - 0x40]
cmp ecx, edx
je 0x10042301
movzx eax, word [ebp - 0x220]
xor eax, 0x20
movzx ecx, word [ebp - 0x40]
cmp eax, ecx
je 0x10042301
movzx edx, word [ebp - 0x220]
movzx eax, word [ebp - 0x40]
cmp edx, eax
jge 0x1004241d
mov dword [ebp - 0x1678], 0xffffffff
jmp 0x10042427
mov dword [ebp - 0x1678], 1
mov ecx, dword [ebp - 0x1678]
mov dword [ebp - 0x167c], ecx
cmp dword [ebp - 0x167c], 0
jne 0x1004247c
push ebx
push esi
add esp, 4
jmp 0x10042446
call 0x10042455
add byte [edx + 0x43], cl
dec edi
inc edi
xor eax, dword [esi + 0x42]
dec ecx
inc eax
add esp, 4
pop ebx
push eax
push edx
add esp, 4
add eax, 0xa8c3
jmp 0x1004246d
pop eax
mov edx, dword [ebp - 0x51c]
mov dword [ebp - 0x314], edx
jmp 0x100424e4
push eax
push ecx
add esp, 4
sub eax, 0x6d95
or eax, 0x598d
add eax, 0xc087
pop eax
push edx
and edx, 0x7293
or edx, 0x65a5
xor edx, 0x11110
sub edx, 0x3e0a
pop edx
mov eax, dword [ebp - 0x51c]
mov ecx, dword [eax]
mov dword [ebp - 0x51c], ecx
mov edx, dword [ebp - 0x51c]
cmp edx, dword [ebp - 0xce0]
je 0x100424da
mov eax, dword [ebp - 0x51c]
cmp dword [eax + 0x30], 0
jne 0x100422a5
mov dword [ebp - 0x314], 0
Function at 0x10042455
Capabilities:
Resolve function by parsing pe exports

Disassembly:
add esp, 4
call 0x1004227d
add byte [ebp + esi + 0x47], cl
dec esp
inc ecx
cmp dh, byte [esi]
inc ebp
add esp, 4
pop edi
cmp dword [ebp - 0xce0], 0
jne 0x10042299
mov dword [ebp - 0x314], 0
jmp 0x100424e4
mov edx, dword [ebp - 0xce0]
mov dword [ebp - 0x51c], edx
push ecx
xor ecx, 0xa537
jmp 0x100422b3
pop ecx
push edi
call 0x100422c5
add byte [ebp + 0x4c], al
cmp ecx, dword [ecx + 0x42]
cmp ecx, dword [eax + 0x41]
aaa
inc esi
add esp, 4
or edi, 0x11eb2
jmp 0x100422d6
pop edi
lea eax, [ebp - 0x1734]
mov dword [ebp - 0xcdc], eax
mov ecx, dword [ebp - 0x51c]
mov edx, dword [ecx + 0x30]
mov dword [ebp - 0xcd8], edx
xor eax, eax
mov word [ebp - 0x220], ax
xor ecx, ecx
mov word [ebp - 0x40], cx
push edi
add edi, 0x2c20
jmp 0x1004230f
call 0x1004231b
add byte [esi + 0x38], al
xor eax, 0x833f4838
les eax, [ecx + eax*4]
not dword [ecx + 0x21]
add byte [eax], al
pop edi
push edx
sub edx, 0x17276
sub edx, 0x15d77
pop edx
mov edx, dword [ebp - 0xcd8]
mov ax, word [edx]
mov word [ebp - 0x1046], ax
mov ecx, dword [ebp - 0xcd8]
add ecx, 2
mov dword [ebp - 0xcd8], ecx
mov dx, word [ebp - 0x1046]
mov word [ebp - 0x220], dx
mov eax, dword [ebp - 0xcdc]
mov cx, word [eax]
mov word [ebp - 0x1048], cx
mov edx, dword [ebp - 0xcdc]
add edx, 2
mov dword [ebp - 0xcdc], edx
mov ax, word [ebp - 0x1048]
mov word [ebp - 0x40], ax
push edx
and edx, 0x183b7
xor edx, 0x155e5
and edx, 0x3ded
call 0x100423aa
add byte [0x4347364e], bh
xor bh, byte [0x5a04c483]
push eax
and eax, 0x15eea
and eax, 0x6163
pop eax
movzx ecx, word [ebp - 0x40]
test ecx, ecx
jne 0x100423d9
movzx edx, word [ebp - 0x220]
movzx eax, word [ebp - 0x40]
sub edx, eax
mov dword [ebp - 0x167c], edx
jmp 0x10042433
movzx ecx, word [ebp - 0x220]
movzx edx, word [ebp - 0x40]
cmp ecx, edx
je 0x10042301
movzx eax, word [ebp - 0x220]
xor eax, 0x20
movzx ecx, word [ebp - 0x40]
cmp eax, ecx
je 0x10042301
movzx edx, word [ebp - 0x220]
movzx eax, word [ebp - 0x40]
cmp edx, eax
jge 0x1004241d
mov dword [ebp - 0x1678], 0xffffffff
jmp 0x10042427
mov dword [ebp - 0x1678], 1
mov ecx, dword [ebp - 0x1678]
mov dword [ebp - 0x167c], ecx
cmp dword [ebp - 0x167c], 0
jne 0x1004247c
push ebx
push esi
add esp, 4
jmp 0x10042446
call 0x10042455
add byte [edx + 0x43], cl
dec edi
inc edi
xor eax, dword [esi + 0x42]
dec ecx
inc eax
add esp, 4
pop ebx
push eax
push edx
add esp, 4
add eax, 0xa8c3
jmp 0x1004246d
pop eax
mov edx, dword [ebp - 0x51c]
mov dword [ebp - 0x314], edx
jmp 0x100424e4
push eax
push ecx
add esp, 4
sub eax, 0x6d95
or eax, 0x598d
add eax, 0xc087
pop eax
push edx
and edx, 0x7293
or edx, 0x65a5
xor edx, 0x11110
sub edx, 0x3e0a
pop edx
mov eax, dword [ebp - 0x51c]
mov ecx, dword [eax]
mov dword [ebp - 0x51c], ecx
mov edx, dword [ebp - 0x51c]
cmp edx, dword [ebp - 0xce0]
je 0x100424da
mov eax, dword [ebp - 0x51c]
cmp dword [eax + 0x30], 0
jne 0x100422a5
mov dword [ebp - 0x314], 0
Function at 0x10073450
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push dword [esi + 0x244]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x100734b8
mov ecx, esi
call fcn.100734bd
push 0
push dword [esi + 0x244]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 0x3a4]
test ecx, ecx
je 0x10073493
push 0
call fcn.10029123
and dword [esi + 0x3a4], 0
mov ecx, dword [0x10113aa0]
lea ecx, [ecx + 8]
call fcn.1002b030
mov ecx, dword [esi + 0x39c]
test ecx, ecx
je 0x100734b8
pop esi
mov ecx, dword [ecx + 0x170]
pop ebp
jmp fcn.10073f1b
pop esi
pop ebp
ret 4

Function at 0x1007cd6e
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi + 8]
mov edi, eax
mov edx, eax
and edi, 7
je 0x1007cd9c
cmp eax, edi
jge 0x1007cd90
push esi
call fcn.10079df9
mov eax, dword [esi + 8]
pop ecx
mov ecx, edi
shr dword [esi + 0xc], cl
sub eax, edi
mov dword [esi + 8], eax
mov edx, eax
xor ecx, ecx
test eax, eax
jle 0x1007cdbf
mov edi, dword [esi + 0xc]
mov al, byte [esi + 0xc]
sub edx, 8
mov byte [ebp + ecx + 8], al
inc ecx
shr edi, 8
mov dword [esi + 0xc], edi
test edx, edx
jg 0x1007cda5
mov dword [esi + 8], edx
jmp 0x1007cdd4
mov eax, dword [esi]
cmp eax, dword [esi + 4]
jb 0x1007cdca
xor dl, dl
jmp 0x1007cdcf
mov dl, byte [eax]
inc eax
mov dword [esi], eax
mov byte [ebp + ecx + 8], dl
inc ecx
cmp ecx, 4
jl 0x1007cdbf
mov eax, dword [ebp + 8]
movzx ecx, byte [ebp + 0xb]
movzx edi, ah
movzx eax, al
shl edi, 8
add edi, eax
shl ecx, 8
movzx eax, byte [ebp + 0xa]
add ecx, eax
mov eax, edi
xor eax, 0xffff
cmp ecx, eax
je 0x1007ce0d
mov dword [0x10113d48], str.zlib_corrupt
xor eax, eax
jmp 0x1007ce4f
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x1007ce22
mov dword [0x10113d48], str.read_past_buffer
jmp 0x1007ce09
mov eax, dword [esi + 0x10]
add eax, edi
cmp eax, dword [esi + 0x18]
jbe 0x1007ce39
push edi
push esi
call fcn.1007f252
pop ecx
pop ecx
test eax, eax
je 0x1007ce09
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.10086230
add dword [esi], edi
xor eax, eax
add dword [esi + 0x10], edi
add esp, 0xc
inc eax
pop edi
pop esi
pop ebp
ret
Function at 0x40acc0
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40ad3d
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword fs:[0x2c]
mov edi, eax
mov edx, dword [ecx]
mov ecx, dword [0x4ba648]
cmp ecx, dword [edx + 4]
jle 0x40ad1b
push 0x4ba648
call fcn.00451fcb
add esp, 4
cmp dword [0x4ba648], esi
jne 0x40ad1b
call fcn.004097c0
push 0x4ba648
call fcn.00451f8c
add esp, 4
mov eax, dword [0x4ba638]
mov ecx, 0x4ba638
push edi
mov dword [ebp - 0xc], edi
mov eax, dword [eax + 0x18]
call eax
test edi, edi
mov byte [ebp - 8], al
mov dword [ebp - 4], 0x4ba638
pop edi
jne 0x40ad44
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
mov edx, 0x49f6b8
lea ecx, [ebp - 0xc]
call fcn.0040ab10
int3

Function at 0x40b140
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, ecx
push 0xffffffffffffffff
push 0
mov eax, dword [esi + 8]
mov dword [ebp - 8], eax
mov eax, dword [esi + 4]
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0x4ba258
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push 0
push dword [esi + 4]
test eax, eax
je 0x40b18f
call dword [sym.imp.KERNEL32.dll_TerminateThread]
pop esi
mov esp, ebp
pop ebp
ret
push fcn.00402850
call dword [sym.imp.KERNEL32.dll_QueueUserAPC]
push 0xffffffffffffffff
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40b1b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push 0
push 0
push 1
mov ebx, ecx
push 0
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edi, dword [ebp + 8]
mov esi, eax
mov dword [edi + 4], esi
test esi, esi
jne 0x40b252
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [edi]
mov ecx, edi
push 1
mov dword [ebp + 8], eax
call dword [edx]
mov eax, dword fs:[0x2c]
mov ecx, dword [0x4ba648]
mov edx, dword [eax]
cmp ecx, dword [edx + 4]
jle 0x40b227
push 0x4ba648
call fcn.00451fcb
add esp, 4
cmp dword [0x4ba648], 0xffffffff
jne 0x40b227
call fcn.004097c0
push 0x4ba648
call fcn.00451f8c
add esp, 4
mov eax, dword [ebp + 8]
mov ecx, 0x4ba638
mov dword [ebp - 0x14], eax
push eax
mov eax, dword [0x4ba638]
mov eax, dword [eax + 0x18]
call eax
mov byte [ebp - 0x10], al
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], 0x4ba638
test eax, eax
jne 0x40b3b6
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebx + 8], eax
mov dword [edi + 8], eax
cmp dword [ebx + 8], 0
jne 0x40b2e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [edi]
mov ecx, edi
push 1
mov dword [ebp + 8], eax
call dword [edx]
mov eax, dword fs:[0x2c]
mov ecx, dword [0x4ba648]
mov edx, dword [eax]
cmp ecx, dword [edx + 4]
jle 0x40b2bb
push 0x4ba648
call fcn.00451fcb
add esp, 4
cmp dword [0x4ba648], 0xffffffff
jne 0x40b2bb
call fcn.004097c0
push 0x4ba648
call fcn.00451f8c
add esp, 4
mov eax, dword [ebp + 8]
mov ecx, 0x4ba638
mov dword [ebp - 0x14], eax
push eax
mov eax, dword [0x4ba638]
mov eax, dword [eax + 0x18]
call eax
mov byte [ebp - 0x10], al
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], 0x4ba638
test eax, eax
jne 0x40b3c3
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0
push edi
push 0x40b3e0
push dword [ebp + 0xc]
push 0
call fcn.00473d43
add esp, 0x18
mov dword [ebx + 4], eax
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x40b39d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [edi]
mov ecx, edi
push 1
mov dword [ebp + 8], eax
call dword [edx]
test esi, esi
je 0x40b32f
push esi
call ebx
mov eax, dword [ebp - 8]
mov eax, dword [eax + 8]
test eax, eax
je 0x40b33c
push eax
call ebx
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x4ba648]
cmp eax, dword [ecx + 4]
jle 0x40b379
push 0x4ba648
call fcn.00451fcb
add esp, 4
cmp dword [0x4ba648], 0xffffffff
jne 0x40b379
call fcn.004097c0
push 0x4ba648
call fcn.00451f8c
add esp, 4
mov eax, dword [0x4ba638]
mov ecx, 0x4ba638
mov edi, dword [ebp + 8]
push edi
mov dword [ebp - 0x14], edi
mov eax, dword [eax + 0x18]
call eax
mov byte [ebp - 0x10], al
mov dword [ebp - 0xc], 0x4ba638
test edi, edi
jne 0x40b3d0
test esi, esi
je 0x40b3ad
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edx, str.thread.entry_event
lea ecx, [ebp - 0x14]
call fcn.0040ab10
mov edx, str.thread.exit_event
lea ecx, [ebp - 0x14]
call fcn.0040ab10
mov edx, str.thread
lea ecx, [ebp - 0x14]
call fcn.0040ab10
int3
Function at 0x40b4d0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
mov edi, ecx
cmp dword [edi], 0
je 0x40b569
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
nop word [eax + eax]
mov esi, dword [edi]
push 0xffffffffffffffff
push 0
mov eax, dword [esi + 8]
mov dword [ebp - 8], eax
mov eax, dword [esi + 4]
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push dword [esi + 8]
call ebx
push 0
push 0x4ba258
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push 0
push dword [esi + 4]
test eax, eax
je 0x40b531
call dword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x40b547
push fcn.00402850
call dword [sym.imp.KERNEL32.dll_QueueUserAPC]
push 0xffffffffffffffff
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, dword [edi]
mov eax, dword [esi + 0xc]
mov dword [edi], eax
test esi, esi
je 0x40b562
push dword [esi + 4]
call ebx
push 0x10
push esi
call fcn.00451cc1
add esp, 8
cmp dword [edi], 0
jne 0x40b4f0
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x40b5f0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
push edi
mov eax, edx
xor edi, edi
mov dword [ebp - 8], eax
cmp ebx, 0xffffffff
je 0x40b738
cmp byte [ebp + 8], 0
mov edi, dword [sym.imp.WS2_32.dll_WSASetLastError]
je 0x40b663
test byte [eax], 8
je 0x40b663
xor eax, eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], eax
call fcn.00409860
mov eax, dword [ebp - 8]
push 0
or byte [eax], 8
call edi
push 4
lea eax, [ebp - 4]
push eax
push 0x80
push 0xffff
push ebx
call dword [sym.imp.WS2_32.dll_setsockopt]
lea edx, [ebp - 0x14]
mov ecx, eax
call fcn.0040ef10
test eax, eax
jne 0x40b663
lea ecx, [ebp - 0x14]
call fcn.00409860
push 0
call edi
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
mov edx, esi
mov ecx, eax
call fcn.0040ef10
mov edi, eax
test edi, edi
je 0x40b738
push ecx
push 0x2733
lea ecx, [ebp - 0x14]
call fcn.0040ee90
mov ecx, dword [esi]
cmp ecx, dword [ebp - 0x14]
jne 0x40b6bf
mov edx, dword [ebp - 0xc]
mov ecx, dword [esi + 8]
mov eax, dword [edx + 8]
or eax, dword [edx + 0xc]
jne 0x40b6af
cmp ecx, edx
sete al
test al, al
jne 0x40b6fd
jmp 0x40b6bf
mov eax, dword [edx + 8]
cmp dword [ecx + 8], eax
jne 0x40b6bf
mov eax, dword [edx + 0xc]
cmp dword [ecx + 0xc], eax
je 0x40b6fd
push ecx
push 0x4d5
lea ecx, [ebp - 0x14]
call fcn.0040ee90
mov eax, dword [esi]
cmp eax, dword [ebp - 0x14]
jne 0x40b734
mov edx, dword [ebp - 0xc]
mov ecx, dword [esi + 8]
mov eax, dword [edx + 8]
or eax, dword [edx + 0xc]
jne 0x40b6ed
cmp ecx, edx
sete al
test al, al
je 0x40b734
jmp 0x40b6fd
mov eax, dword [edx + 8]
cmp dword [ecx + 8], eax
jne 0x40b734
mov eax, dword [edx + 0xc]
cmp dword [ecx + 0xc], eax
jne 0x40b734
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 0x8004667e
push ebx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov eax, dword [ebp - 8]
push 0
and byte [eax], 0xfc
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
mov edx, esi
mov ecx, eax
call fcn.0040ef10
mov edi, eax
test edi, edi
jne 0x40b790
mov eax, dword fs:[0x2c]
mov dword [ebp - 0x14], 0
mov byte [ebp - 0x10], 0
mov ecx, dword [eax]
mov eax, dword [0x4ba648]
cmp eax, dword [ecx + 4]
jle 0x40b780
push 0x4ba648
call fcn.00451fcb
add esp, 4
cmp dword [0x4ba648], 0xffffffff
jne 0x40b780
call fcn.004097c0
push 0x4ba648
call fcn.00451f8c
add esp, 4
movq xmm0, qword [ebp - 0x14]
movq qword [esi], xmm0
mov dword [esi + 8], 0x4ba638
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40b7a0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
push 0
mov esi, edx
mov edi, ecx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 0
push 0
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 1
push esi
push edi
call dword [sym.imp.WS2_32.dll_WSASend]
mov esi, dword [ebp + 0x10]
mov ecx, eax
mov edx, esi
call fcn.0040ef10
mov ecx, dword [esi]
mov edi, eax
cmp ecx, 0x40
jne 0x40b7eb
push 0x2746
jmp 0x40b7f8
cmp ecx, 0x4d2
jne 0x40b7ff
push 0x274d
mov ecx, esi
call fcn.0040ee10
test edi, edi
je 0x40b80c
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword fs:[0x2c]
mov dword [ebp - 0x10], 0
mov byte [ebp - 0xc], 0
mov ecx, dword [eax]
mov eax, dword [0x4ba648]
cmp eax, dword [ecx + 4]
jle 0x40b854
push 0x4ba648
call fcn.00451fcb
add esp, 4
cmp dword [0x4ba648], 0xffffffff
jne 0x40b854
call fcn.004097c0
push 0x4ba648
call fcn.00451f8c
add esp, 4
movq xmm0, qword [ebp - 0x10]
mov eax, dword [ebp - 4]
movq qword [esi], xmm0
pop edi
mov dword [esi + 8], 0x4ba638
pop esi
mov esp, ebp
pop ebp
ret