joyce8/EMBER2024-capa huggingface dataset:
Function at 0x436eac
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
xor ecx, ecx
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
test esi, esi
je 0x436ec5
cmp dword [esi + 8], 0
jne 0x436ecc
xor eax, eax
jmp 0x436fbf
mov edx, dword [esi + 4]
and edx, 0x100
mov dword [ebp - 8], edx
mov eax, dword [esi]
test eax, eax
jne 0x436ee7
mov dword [ebp - 4], 1
jmp 0x436f44
mov dword [ebp - 4], eax
xor eax, eax
mov edx, dword [esi + 8]
cmp dword [ebp - 8], 0
mov al, byte [edx]
jne 0x436f05
cmp eax, 0x7f
jle 0x436f05
mov ebx, 1
xor ecx, ecx
jmp 0x436f41
cmp dword [ebp - 8], 0
je 0x436f41
cmp eax, 0x80
jle 0x436f1b
mov ebx, 1
mov cl, 0xff
jmp 0x436f41
cmp eax, 0x80
jne 0x436f41
mov eax, 1
mov edx, dword [esi + 8]
inc edx
jmp 0x436f3d
cmp byte [edx], 0
je 0x436f3b
mov ebx, 1
mov cl, 0xff
jmp 0x436f41
inc eax
inc edx
cmp eax, dword [esi]
jl 0x436f2d
add dword [ebp - 4], ebx
cmp dword [ebp + 0xc], 0
jne 0x436f4f
mov eax, dword [ebp - 4]
jmp 0x436fbf
mov edx, dword [ebp + 0xc]
test ebx, ebx
mov edx, dword [edx]
je 0x436f5b
mov byte [edx], cl
inc edx
cmp dword [esi], 0
jne 0x436f65
mov byte [edx], 0
jmp 0x436fb4
cmp dword [ebp - 8], 0
jne 0x436f7d
mov eax, dword [esi]
push eax
mov ecx, dword [esi + 8]
push ecx
push edx
call fcn.004050d8
add esp, 0xc
jmp 0x436fb4
mov eax, dword [esi]
mov ecx, dword [esi + 8]
add ecx, eax
mov ebx, eax
dec ebx
dec ecx
add edx, ebx
jmp 0x436f92
mov byte [edx], 0
dec edx
dec ecx
dec eax
cmp byte [ecx], 0
je 0x436f8c
mov bl, byte [ecx]
dec ecx
xor bl, 0xff
dec eax
inc ebx
mov byte [edx], bl
dec edx
test eax, eax
jle 0x436fb4
mov bl, byte [ecx]
dec ecx
xor bl, 0xff
dec eax
mov byte [edx], bl
dec edx
test eax, eax
jg 0x436fa6
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 4]
add dword [eax], edx
mov eax, dword [ebp - 4]
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x436fc8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
cmp dword [ebp + 8], 0
je 0x436fde
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x436ffc
push 2
call fcn.0043b2f8
pop ecx
mov esi, eax
test eax, eax
jne 0x436ff3
xor eax, eax
jmp 0x437146
mov dword [esi + 4], 2
jmp 0x437001
mov edx, dword [ebp + 8]
mov esi, dword [edx]
mov eax, dword [ebp + 0xc]
mov ebx, dword [eax]
mov eax, dword [ebp + 0x10]
add eax, ebx
mov dword [ebp - 4], eax
push 0xc7
push 0x4a6304
mov edx, dword [ebp + 0x10]
inc edx
push edx
call fcn.00410060
add esp, 0xc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x437038
mov eax, 0x41
jmp 0x437112
cmp dword [ebp + 0x10], 0
mov edx, dword [ebp - 8]
jne 0x43704d
mov dword [esi + 4], 2
jmp 0x4370e2
test byte [ebx], 0x80
je 0x4370bb
mov dword [esi + 4], 0x102
cmp byte [ebx], 0xff
jne 0x437068
cmp dword [ebp + 0x10], 1
je 0x437068
inc ebx
dec dword [ebp + 0x10]
mov eax, dword [ebp + 0x10]
lea ecx, [eax - 1]
add ebx, ecx
add edx, ecx
jmp 0x43707a
mov byte [edx], 0
dec edx
dec eax
dec ebx
cmp byte [ebx], 0
jne 0x437083
test eax, eax
jne 0x437074
test eax, eax
jne 0x43709c
mov edx, dword [ebp - 8]
mov byte [edx], 1
mov eax, dword [ebp - 8]
mov edx, dword [ebp + 0x10]
mov byte [eax + edx], 0
inc dword [ebp + 0x10]
jmp 0x4370e2
mov cl, byte [ebx]
dec ebx
xor cl, 0xff
dec eax
inc ecx
mov byte [edx], cl
dec edx
test eax, eax
jle 0x4370e2
mov cl, byte [ebx]
dec ebx
xor cl, 0xff
dec eax
mov byte [edx], cl
dec edx
test eax, eax
jg 0x4370ab
jmp 0x4370e2
mov dword [esi + 4], 2
cmp byte [ebx], 0
jne 0x4370d1
cmp dword [ebp + 0x10], 1
je 0x4370d1
inc ebx
dec dword [ebp + 0x10]
mov eax, dword [ebp + 0x10]
push eax
push ebx
mov edx, dword [ebp - 8]
push edx
call fcn.004050d8
add esp, 0xc
mov eax, dword [esi + 8]
test eax, eax
je 0x4370f0
push eax
call fcn.00410220
pop ecx
mov edx, dword [ebp - 8]
mov dword [esi + 8], edx
mov ecx, dword [ebp + 0x10]
mov dword [esi], ecx
cmp dword [ebp + 8], 0
je 0x437106
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
mov dword [edx], ecx
mov eax, esi
jmp 0x437146
push 0x103
push 0x4a631a
push eax
push 0xc2
push 0xd
call fcn.004343c8
add esp, 0x14
test esi, esi
je 0x437144
cmp dword [ebp + 8], 0
je 0x43713d
mov edx, dword [ebp + 8]
cmp esi, dword [edx]
je 0x437144
push esi
call fcn.0043b348
pop ecx
xor eax, eax
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x43e440
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
xor ecx, ecx
push ebx
push esi
push edi
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov esi, dword [ebx]
mov eax, dword [eax]
mov edx, dword [edx + 4]
mov dword [ebp - 4], esi
mov esi, dword [ebx + 4]
mov dword [ebp - 8], esi
mov esi, dword [ebx + 8]
mov dword [ebp - 0xc], esi
mov ebx, dword [ebx + 0xc]
mov dword [ebp - 0x10], ebx
mov ebx, 0x20
jmp 0x43e4af
add ecx, 0x9e3779b9
mov esi, edx
shl esi, 4
add esi, dword [ebp - 4]
lea edi, [ecx + edx]
xor esi, edi
mov edi, edx
shr edi, 5
add edi, dword [ebp - 8]
xor esi, edi
add eax, esi
mov esi, eax
shl esi, 4
add esi, dword [ebp - 0xc]
lea edi, [ecx + eax]
xor esi, edi
mov edi, eax
shr edi, 5
add edi, dword [ebp - 0x10]
xor esi, edi
add edx, esi
mov esi, ebx
add ebx, 0xffffffff
test esi, esi
jg 0x43e477
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
mov dword [eax + 4], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x43ec08
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
xor eax, eax
push ebx
push esi
push edi
xor esi, esi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0xc], 0x104
mov dword [ebp - 0x10], eax
lea eax, [ebp - 8]
lea edx, [ebp - 0xc]
push eax
push 0
push 0
push 0
push edx
lea ecx, [ebp - 0x114]
push ecx
push esi
push edi
call sub.ADVAPI32.DLL_RegEnumKeyExA
mov ebx, eax
test ebx, ebx
jne 0x43eca7
mov dword [ebp - 0xc], 0xc8
push str.HIDVid_3689Pid_8762
call fcn.004052c8
pop ecx
push eax
lea eax, [ebp - 0x110]
push eax
push 0x4a844a
call fcn.00405548
add esp, 0xc
test eax, eax
jne 0x43eca7
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp + 0xc]
jne 0x43eca4
mov ecx, dword [ebp + 0x10]
mov esi, str.__
mov edi, ecx
lea edx, [ebp - 0x110]
mov eax, edi
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
push edx
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.004051ec
add esp, 8
mov eax, 1
jmp 0x43ecb2
inc dword [ebp - 0x10]
inc esi
test ebx, ebx
je 0x43ec27
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
pop eax
nop
nop
nop
add eax, reloc.kernel32.dll_VirtualProtect
nop
nop
sub eax, 0x40a009
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x10302d08
Capabilities:
Encode data using xor

Disassembly:
mov dword [esp], ebx
not al
movsx ax, cl
pushal
movsx ax, bl
lea eax, [0x1030269a]
jmp 0x103066e8
push esp
push esp
lea esp, [esp + 0x2c]
jne 0x10302448
not al
setns ah
push 0x5c0982ab
not al
mov byte [edi - 1], 0
jmp 0x101bf8f2
not ax
jmp 0x1019fbaa
repne scasb al, byte es:[edi]
jmp 0x101bbe0f
mov byte [esp + 0xc], dl
call fcn.1019ccf3
mov bh, 0xa8
loope 0x10306740
rol byte [edi - 0x67], 1
inc esi
ljmp 0xd908
das
sbb dword [ebx], esp
enter 0x5e66, 0x18
mov dword [0xac10aa01], eax
mov eax, 0x978666df
and eax, 0x91803d83
xor edx, esi
jns 0x10306741
sbb al, 0x92
stosd dword es:[edi], eax
lodsd eax, dword [esi]
not dword [esi - 0x4c]
sub byte [esi + ebp], al
xchg byte [ebx], bl
invalid
Function at 0x401b80
Capabilities:
Hash data using crc32b

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
xor ecx, ecx
mov dword [ebp - 4], ecx
nop
xor eax, eax
test cl, 1
je 0x401b9b
bts eax, 7
shr ecx, 1
test cl, 1
je 0x401ba6
bts eax, 6
shr ecx, 1
test cl, 1
je 0x401bb1
bts eax, 5
shr ecx, 1
test cl, 1
je 0x401bbc
bts eax, 4
shr ecx, 1
test cl, 1
je 0x401bc7
bts eax, 3
shr ecx, 1
test cl, 1
je 0x401bd2
bts eax, 2
shr ecx, 1
test cl, 1
je 0x401bdd
bts eax, 1
test cl, 2
je 0x401be6
bts eax, 0
shl eax, 0x18
mov ecx, eax
add eax, eax
sar ecx, 0x1f
and ecx, 0x4c11db7
xor ecx, eax
mov edx, ecx
sar edx, 0x1f
and edx, 0x4c11db7
lea eax, [ecx + ecx]
xor edx, eax
mov ecx, edx
sar ecx, 0x1f
and ecx, 0x4c11db7
lea eax, [edx + edx]
xor ecx, eax
mov edx, ecx
sar edx, 0x1f
and edx, 0x4c11db7
lea eax, [ecx + ecx]
xor edx, eax
mov ecx, edx
sar ecx, 0x1f
and ecx, 0x4c11db7
lea eax, [edx + edx]
xor ecx, eax
mov edx, ecx
sar edx, 0x1f
and edx, 0x4c11db7
lea eax, [ecx + ecx]
xor edx, eax
mov ecx, edx
sar ecx, 0x1f
and ecx, 0x4c11db7
lea eax, [edx + edx]
xor ecx, eax
mov ebx, ecx
sar ebx, 0x1f
and ebx, 0x4c11db7
lea eax, [ecx + ecx]
xor ebx, eax
mov eax, dword [ebp - 4]
xor edx, edx
lea esi, [edi + eax*4]
lea ecx, [edx + 1]
test bl, 1
je 0x401c82
mov eax, 0x20
sub eax, ecx
bts edx, eax
inc ecx
shr ebx, 1
cmp ecx, 0x21
jl 0x401c73
mov ecx, dword [ebp - 4]
inc ecx
mov dword [esi], edx
mov dword [ebp - 4], ecx
cmp ecx, 0xff
jle 0x401b90
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp + 0xc]
push 0x42d148
push str..Datainfo.xtm
push eax
mov dword [ebp - 4], ecx
mov dword [edi], 0xffffffff
mov dword [ebp + 0xc], 0
call fcn.0040d19f
add esp, 0xc
test eax, eax
je 0x401ced
xor al, al
pop edi
mov esp, ebp
pop ebp
ret 0xc
push ebx
push 0x400
call fcn.0040d1f0
add esp, 4
mov ebx, eax
mov dword [ebp - 8], ebx
push dword [ebp + 0xc]
test ebx, ebx
jne 0x401d19
call fcn.0040d320
add esp, 4
xor al, al
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0xc
push 0x400
push 1
push ebx
call fcn.0040d524
add esp, 0x10
test eax, eax
je 0x401d6b
push esi
nop
mov esi, ebx
mov ebx, dword [edi]
lea esi, [esi + 1]
movzx ecx, byte [esi - 1]
movzx edx, bl
xor edx, ecx
shr ebx, 8
mov ecx, dword [ebp - 4]
xor ebx, dword [ecx + edx*4]
mov dword [edi], ebx
sub eax, 1
jne 0x401d32
push dword [ebp + 0xc]
mov ebx, dword [ebp - 8]
push 0x400
push 1
push ebx
call fcn.0040d524
add esp, 0x10
test eax, eax
jne 0x401d30
pop esi
push ebx
call fcn.0040d660
push dword [ebp + 0xc]
call fcn.0040d320
not dword [edi]
add esp, 8
mov al, 1
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x404ef0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x431040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x435f9c]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
push edi
test eax, eax
js 0x404ffa
cmp eax, 2
jge 0x404ffa
imul edi, eax, 0x214
inc eax
push ecx
push pe_nt_image_headers32
mov dword [0x435f9c], eax
add edi, 0x435b74
lea ebx, [edi + 4]
mov dword [edi], 1
push ebx
call fcn.0040cd21
add esp, 0xc
cmp dword [edi], 0
je 0x404ffa
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx edx, word [ebp - 0xe]
lea esi, [edi + 0x110]
movzx ecx, word [ebp - 0x12]
movzx eax, word [ebp - 0x14]
push edx
push ecx
push eax
push ebx
push str.._s_04d__02d__02d.txt
push esi
mov dword [edi + 0x104], edx
mov dword [edi + 0x108], ecx
mov dword [edi + 0x10c], eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [edi + 0x210], eax
cmp eax, 0xffffffff
jne 0x404fd6
mov dword [edi], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040971a
mov esp, ebp
pop ebp
ret 8
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x404ffa
push dword [edi + 0x210]
mov dword [edi], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040971a
mov esp, ebp
pop ebp
ret 8
Function at 0x405010
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
mov eax, dword [0x431040]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push esi
push edi
test eax, eax
js 0x4051fa
cmp eax, dword [ecx + 0x42c]
jge 0x4051fa
imul edi, eax, 0x214
add edi, ecx
cmp dword [edi + 4], 0
je 0x4051fa
lea eax, [ebp - 0x81c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x816]
cmp eax, dword [edi + 0x108]
jne 0x40508f
movzx eax, word [ebp - 0x81a]
cmp eax, dword [edi + 0x10c]
jne 0x40508f
movzx eax, word [ebp - 0x81c]
cmp eax, dword [edi + 0x110]
je 0x40514e
push dword [edi + 0x214]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx edx, word [ebp - 0x816]
lea esi, [edi + 0x114]
movzx ecx, word [ebp - 0x81a]
movzx eax, word [ebp - 0x81c]
push edx
push ecx
push eax
mov dword [edi + 0x110], eax
lea eax, [edi + 8]
push eax
push str.._s_04d__02d__02d.txt
push esi
mov dword [edi + 0x108], edx
mov dword [edi + 0x10c], ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [edi + 0x214], eax
cmp eax, 0xffffffff
jne 0x405119
mov dword [edi + 4], 0
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0040971a
mov esp, ebp
pop ebp
ret
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x40514e
push dword [edi + 0x214]
mov dword [edi + 4], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0040971a
mov esp, ebp
pop ebp
ret
push 0x400
lea eax, [ebp - 0x80c]
push 0
push eax
call fcn.0040b2a0
add esp, 0xc
lea eax, [ebp + 0x14]
push eax
push 0
push dword [ebp + 0x10]
lea eax, [ebp - 0x80c]
push 0x400
push eax
call fcn.004022a0
add esp, 0x14
lea eax, [ebp - 0x40c]
push 0x400
push 0
push eax
call fcn.0040b2a0
add esp, 0xc
lea eax, [ebp - 0x80c]
push eax
movzx eax, word [ebp - 0x810]
push eax
movzx eax, word [ebp - 0x812]
push eax
movzx eax, word [ebp - 0x814]
push eax
lea eax, [ebp - 0x40c]
push str._02d:_02d:_02d__s_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [ebp - 0x40c]
add esp, 0x18
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4051d4
push 0
lea eax, [ebp - 0x820]
sub ecx, edx
push eax
push ecx
lea eax, [ebp - 0x40c]
push eax
push dword [edi + 0x214]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
pop esi
call fcn.0040971a
mov esp, ebp
pop ebp
ret
Function at 0x405250
Capabilities:
Encode data using xor
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x431040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
test eax, eax
je 0x405282
push eax
call fcn.00409d63
add esp, 4
mov dword [esi + 4], 0
push ebx
lea eax, [ebp - 0x108]
push 0x42d484
push eax
call fcn.004056b0
add esp, 0xc
lea eax, [ebp - 0x108]
push 0
push 0x20
push 3
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x405369
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
mov dword [esi + 8], eax
call fcn.00409d68
add esp, 4
mov dword [esi + 4], eax
lea ecx, [ebp - 0x10c]
mov dword [ebp - 0x10c], 0
push 0
push ecx
push dword [esi + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
test eax, eax
jne 0x405314
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040971a
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0xc], 0
je 0x405344
xor ecx, ecx
cmp dword [esi + 8], ecx
jbe 0x405344
nop word [eax + eax]
mov eax, dword [esi + 4]
add byte [eax + ecx], 0x95
mov eax, dword [esi + 4]
xor byte [eax + ecx], 0xca
inc ecx
cmp ecx, dword [esi + 8]
jb 0x405330
mov dword [esi + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 4]
pop edi
mov dword [esi + 0x7c], eax
xor ecx, ebp
pop esi
mov al, 1
pop ebx
call fcn.0040971a
mov esp, ebp
pop ebp
ret 8
push ebx
push str._s_file_not_found
call fcn.00409230
int3
Function at 0x4082b0
Capabilities:
Terminate thread

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
mov edi, ecx
mov eax, dword [edi + 0x70]
test eax, eax
je 0x4082d6
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [edi + 0x70]
call ebx
mov dword [edi + 0x70], 0
mov eax, dword [edi + 0x6c]
test eax, eax
je 0x4082e7
push eax
call ebx
mov dword [edi + 0x6c], 0
push esi
lea ecx, [edi + 0x38]
call fcn.00405f60
lea esi, [edi + 0x14]
mov ebx, 8
mov eax, dword [esi]
test eax, eax
je 0x408315
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
add esi, 4
sub ebx, 1
jne 0x4082f8
mov eax, dword [edi + 0x10]
pop esi
test eax, eax
je 0x408341
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [edi + 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
mov dword [edi + 0x10], 0
jmp 0x408347
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [edi + 8]
test eax, eax
je 0x408358
push eax
call ebx
mov dword [edi + 8], 0
mov eax, dword [edi + 4]
cmp eax, 0xffffffff
je 0x40836e
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [edi + 4], 0xffffffff
pop edi
pop ebx
ret
Function at 0x4085a0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x80018
call fcn.00426330
mov eax, dword [0x431040]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x436b00
mov dword [ebp - 0x80010], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test edi, edi
js 0x408797
cmp edi, 0x1388
jge 0x408797
imul ebx, edi, 0x54
mov dword [ebp - 0x80018], ebx
mov eax, dword [ebx + 0x43791c]
test eax, eax
js 0x408797
cmp eax, 0x1388
jge 0x408797
cmp dword [ebx + 0x437920], 0
je 0x408797
cmp dword [ebx + 0x437934], 0xffffffff
je 0x408797
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 0x8000c]
push esi
push dword [ebp - 0x80010]
push eax
call fcn.0040c740
add esp, 0xc
cmp byte [ebp - 0x8000c], 0xc1
jne 0x408654
push dword [ebp - 0x8000a]
lea edx, [esi - 3]
lea ecx, [ebp - 0x80009]
jmp 0x408663
push dword [ebp - 0x80009]
lea edx, [esi - 4]
lea ecx, [ebp - 0x80008]
call fcn.004094b0
add esp, 4
cmp esi, 0x80000
jle 0x408689
push esi
push edi
push str._SocketManager__Max_msg_size__Type:_1__Index:__d__Size:__d_
push 1
call fcn.004092b0
add esp, 0x10
jmp 0x408797
mov ebx, dword [ebx + 0x43793c]
mov eax, dword [ebx + 0x20]
test eax, eax
jle 0x4086fb
mov ecx, dword [ebx + 0x180028]
lea eax, [ecx + esi]
cmp eax, 0x100000
jle 0x4086bc
push eax
push edi
push str._SocketManager__Max_msg_size__Type:_2__Index:__d__Size:__d_
push 1
call fcn.004092b0
add esp, 0x10
jmp 0x40878c
push esi
lea eax, [ebp - 0x8000c]
push eax
lea eax, [ebx + 0x80028]
add eax, ecx
push eax
call fcn.0040c740
add esp, 0xc
add dword [ebx + 0x180028], esi
push 0x436b00
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0040971a
mov esp, ebp
pop ebp
ret 0xc
push esi
lea ecx, [ebp - 0x8000c]
add eax, 0x24
push ecx
add eax, ebx
push eax
call fcn.0040c740
add dword [ebx + 0x20], esi
lea eax, [ebx + 0x24]
mov ecx, dword [ebx + 0x20]
add esp, 0xc
mov dword [ebx + 0x18], eax
lea eax, [ebx + 0x14]
mov dword [eax], ecx
lea ecx, [ebp - 0x80014]
mov dword [ebx + 0x80024], 0
push 0
push ebx
push 0
push ecx
push 1
push eax
mov eax, dword [ebp - 0x80018]
mov dword [ebx + 0x1c], 1
mov dword [ebp - 0x80014], 0
push dword [eax + 0x437934]
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x4086db
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x3e5
je 0x4086db
call esi
push eax
push str._SocketManager__WSASend___failed_with_error:__d
push 1
call fcn.004092b0
add esp, 0xc
push edi
mov ecx, 0x436a88
call fcn.004087c0
push 0x436b00
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 8]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040971a
mov esp, ebp
pop ebp
ret 0xc
Function at 0x408860
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
mov dword [ebp - 4], esi
lea edi, [esi + 0x78]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test ebx, ebx
js 0x4089f2
cmp ebx, 0x1388
jge 0x4089f2
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x40889d
mov ecx, esi
jmp 0x4089ec
mov esi, dword [ebp + 0x10]
imul ecx, ebx, 0x54
mov edx, dword [esi + 0x20]
mov dword [ebp + 0xc], ecx
mov ecx, dword [esi + 0x80024]
add ecx, eax
mov dword [esi + 0x80024], ecx
cmp ecx, edx
jl 0x40898b
mov eax, dword [esi + 0x180028]
test eax, eax
jg 0x4088e0
push edi
mov dword [esi + 0x20], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea edx, [esi + 0x80028]
lea ecx, [esi + 0x24]
cmp eax, 0x80000
jle 0x408955
push 0x80000
push edx
push ecx
call fcn.0040c740
lea eax, [esi + 0x24]
mov dword [esi + 0x14], 0x80000
mov dword [esi + 0x18], eax
add esp, 0xc
mov eax, dword [esi + 0x180028]
sub eax, 0x80000
mov dword [esi + 0x1c], 1
mov dword [esi + 0x20], 0x80000
push eax
lea eax, [esi + 0x100028]
mov dword [esi + 0x80024], 0
push eax
lea eax, [esi + 0x80028]
push eax
call fcn.0040c740
add esp, 0xc
lea eax, [esi + 0x14]
sub dword [esi + 0x180028], 0x80000
jmp 0x4089a1
push eax
push edx
push ecx
call fcn.0040c740
lea eax, [esi + 0x24]
mov dword [esi + 0x80024], 0
mov dword [esi + 0x18], eax
add esp, 0xc
mov eax, dword [esi + 0x180028]
mov dword [esi + 0x14], eax
mov dword [esi + 0x20], eax
lea eax, [esi + 0x14]
mov dword [esi + 0x180028], 0
jmp 0x40899a
lea eax, [esi + 0x24]
add eax, ecx
sub edx, ecx
mov dword [esi + 0x18], eax
lea eax, [esi + 0x14]
mov dword [eax], edx
mov dword [esi + 0x1c], 1
push 0
push esi
push 0
lea ecx, [ebp + 8]
mov dword [ebp + 8], 0
push ecx
push 1
push eax
mov eax, dword [ebp + 0xc]
push dword [eax + 0x437934]
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x4089f2
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x3e5
je 0x4089f2
call esi
push eax
push str._SocketManager__WSASend___failed_with_error:__d
push 1
call fcn.004092b0
mov ecx, dword [ebp - 4]
add esp, 0xc
push ebx
call fcn.004087c0
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x409230
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x431040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push pe_nt_image_headers32
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.0040b2a0
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
lea eax, [ebp - 0x104]
push pe_nt_image_headers32
push eax
call fcn.004022a0
add esp, 0x20
lea eax, [ebp - 0x104]
push 0x10
push str.Error
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
nop dword [eax]
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp dword [pe_dos_header]