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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov ecx, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov edx, dword [ecx + 4]
lea ebx, [ecx + 4]
mov eax, edx
cmp edx, ebx
je 0x663d39
mov edi, eax
lea ecx, [eax + 8]
mov eax, dword [ebp + 0xc]
cmp dword [ecx + 0x94], eax
jne 0x663d2d
movzx eax, byte [edi + 8]
mov byte [esi], al
movzx eax, byte [ecx + 1]
mov byte [esi + 1], al
movzx eax, byte [ecx + 2]
mov byte [esi + 2], al
movzx eax, byte [ecx + 3]
mov byte [esi + 3], al
movzx eax, byte [ecx + 4]
mov byte [esi + 4], al
mov eax, dword [ecx + 8]
mov dword [esi + 8], eax
movzx eax, word [ecx + 0xc]
mov word [esi + 0xc], ax
mov eax, dword [ecx + 0xe]
mov dword [esi + 0xe], eax
movzx eax, word [ecx + 0x12]
mov word [esi + 0x12], ax
movzx eax, word [ecx + 0x14]
mov word [esi + 0x14], ax
mov eax, dword [ecx + 0x18]
mov dword [esi + 0x18], eax
mov eax, dword [ecx + 0x1c]
mov dword [esi + 0x1c], eax
mov eax, dword [ecx + 0x20]
mov dword [esi + 0x20], eax
mov eax, dword [ecx + 0x24]
mov dword [esi + 0x24], eax
mov eax, dword [ecx + 0x28]
mov dword [esi + 0x28], eax
mov eax, dword [ecx + 0x2c]
mov dword [esi + 0x2c], eax
mov eax, dword [ecx + 0x30]
mov dword [esi + 0x30], eax
mov eax, dword [ecx + 0x34]
mov dword [esi + 0x34], eax
mov eax, dword [ecx + 0x38]
mov dword [esi + 0x38], eax
mov eax, dword [ecx + 0x3c]
mov dword [esi + 0x3c], eax
mov eax, dword [ecx + 0x40]
mov dword [esi + 0x40], eax
mov eax, dword [ecx + 0x44]
mov dword [esi + 0x44], eax
mov eax, dword [ecx + 0x48]
mov dword [esi + 0x48], eax
mov eax, dword [ecx + 0x4c]
mov dword [esi + 0x4c], eax
mov eax, dword [ecx + 0x50]
mov dword [esi + 0x50], eax
mov eax, dword [ecx + 0x54]
mov dword [esi + 0x54], eax
mov eax, dword [ecx + 0x58]
mov dword [esi + 0x58], eax
mov eax, dword [ecx + 0x5c]
mov dword [esi + 0x5c], eax
mov eax, dword [ecx + 0x60]
mov dword [esi + 0x60], eax
mov eax, dword [ecx + 0x64]
mov dword [esi + 0x64], eax
mov eax, dword [ecx + 0x68]
mov dword [esi + 0x68], eax
mov eax, dword [ecx + 0x6c]
mov dword [esi + 0x6c], eax
mov eax, dword [ecx + 0x70]
mov dword [esi + 0x70], eax
mov eax, dword [ecx + 0x74]
mov dword [esi + 0x74], eax
mov eax, dword [ecx + 0x78]
mov dword [esi + 0x78], eax
mov eax, dword [ecx + 0x7c]
mov dword [esi + 0x7c], eax
mov eax, dword [ecx + 0x80]
mov dword [esi + 0x80], eax
mov eax, dword [ecx + 0x84]
mov dword [esi + 0x84], eax
mov eax, dword [ecx + 0x88]
mov dword [esi + 0x88], eax
mov eax, dword [ecx + 0x8c]
mov dword [esi + 0x8c], eax
mov eax, dword [ecx + 0x90]
mov dword [esi + 0x90], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x94], eax
mov eax, dword [ecx + 0x98]
mov dword [esi + 0x98], eax
lea edx, [esi + 0x9c]
lea eax, [edi + 0xa4]
mov dword [esp + 4], eax
mov dword [esp], edx
call fcn.0092a4e8
lea edx, [esi + 0xa0]
lea eax, [edi + 0xa8]
mov dword [esp + 4], eax
mov dword [esp], edx
call fcn.0092a4e8
mov eax, 1
jmp 0x663d3e
mov edx, dword [edx]
mov eax, edx
cmp edx, ebx
jne 0x663baf
mov eax, 0
add esp, 0xc
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x6a2966
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x60
call sub.USER32.dll_GetDesktopWindow
lea edx, [ebp - 0x18]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.USER32.dll_GetWindowRect
sub esp, 8
mov dword [esp + 0x2c], 0
mov eax, dword [0x9f4510]
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], 0
mov eax, dword [0x9f44fc]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0x73
mov dword [esp + 0x18], 0xe1
mov eax, dword [ebp - 0xc]
sub eax, 0x73
mov edx, eax
shr edx, 0x1f
add eax, edx
sar eax, 1
mov dword [esp + 0x14], eax
mov eax, dword [ebp - 0x10]
sub eax, 0xc8
mov edx, eax
shr edx, 0x1f
add eax, edx
sar eax, 1
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x80c90000
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], str.PlayerBox
mov dword [esp], pe_nt_image_headers32
call sub.USER32.dll_CreateWindowExA
sub esp, 0x30
mov dword [0x9f44f8], eax
mov eax, 0
cmp dword [0x9f44f8], 0
je 0x6a2b1f
mov eax, dword [0x9f44f8]
mov dword [esp], eax
call sub.USER32.dll_SetForegroundWindow
sub esp, 4
mov dword [esp + 4], 0
mov eax, dword [0x9f44fc]
mov dword [esp], eax
call sub.USER32.dll_EnableWindow
sub esp, 8
mov dword [esp + 4], 5
mov eax, dword [0x9f44f8]
mov dword [esp], eax
call sub.USER32.dll_ShowWindow
sub esp, 8
mov eax, dword [0x9f44f8]
mov dword [esp], eax
call sub.USER32.dll_UpdateWindow
sub esp, 4
mov esi, 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x28
mov dword [esp + 4], 0x100
mov eax, dword [0x9f4508]
mov dword [esp], eax
call sub.USER32.dll_SendMessageA
sub esp, 0x10
lea ebx, [ebp - 0x38]
jmp 0x6a2af0
cmp dword [ebp - 0x34], 0x100
jne 0x6a2ada
cmp dword [ebp - 0x30], 0x1b
jne 0x6a2ada
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 2
mov eax, dword [0x9f44f8]
mov dword [esp], eax
call sub.USER32.dll_SendMessageA
sub esp, 0x10
mov esi, 0
mov dword [esp], ebx
call sub.USER32.dll_TranslateMessage
sub esp, 4
mov dword [esp], ebx
call sub.USER32.dll_DispatchMessageA
sub esp, 4
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], ebx
call sub.USER32.dll_GetMessageA
sub esp, 0x10
test eax, eax
jne 0x6a2a9e
test esi, esi
setne al
movzx eax, al
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x6a4134
Capabilities:
Encode data using xor
Encrypt data using xtea

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov cl, 0
movzx edx, cl
mov eax, dword [ebx + edx*4 + 0x1c]
mov dword [ebp + edx*4 - 0x28], eax
inc cl
cmp cl, 3
jbe 0x6a4145
mov eax, dword [esi + 0x3c04]
mov dword [ebp - 0x2c], eax
test al, 7
je 0x6a4189
test eax, eax
jns 0x6a416b
lea eax, [eax + 7]
and eax, 0xfffffff8
mov edx, dword [ebp - 0x2c]
sub edx, eax
mov ebx, 8
sub ebx, edx
mov dword [esp + 4], ebx
mov dword [esp], esi
call fcn.0062be28
add dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], 0
mov eax, esi
add eax, dword [esi + 0x3c28]
add eax, 4
mov dword [ebp - 0x34], eax
jmp 0x6a4224
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x34]
mov ecx, dword [edx + eax*4]
mov ebx, dword [edx + eax*4 + 4]
mov esi, 0
mov edi, 0
mov eax, ebx
shl eax, 4
mov edx, ebx
shr edx, 5
xor eax, edx
add eax, ebx
mov dword [ebp - 0x3c], eax
mov edx, esi
and edx, 3
mov eax, dword [ebp + edx*4 - 0x28]
lea edx, [esi + eax]
mov eax, dword [ebp - 0x3c]
xor eax, edx
add ecx, eax
sub esi, 0x61c88647
mov edx, ecx
shl edx, 4
mov eax, ecx
shr eax, 5
xor edx, eax
add edx, ecx
mov dword [ebp - 0x40], edx
mov eax, esi
shr eax, 0xb
and eax, 3
mov edx, dword [ebp + eax*4 - 0x28]
lea eax, [esi + edx]
mov edx, dword [ebp - 0x40]
xor edx, eax
add ebx, edx
inc edi
cmp edi, 0x1f
jle 0x6a41ba
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x34]
mov dword [edx + eax*4], ecx
mov dword [edx + eax*4 + 4], ebx
add eax, 2
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x2c]
test eax, eax
jns 0x6a422e
add eax, 3
sar eax, 2
cmp eax, dword [ebp - 0x30]
jg 0x6a41a3
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x70135c
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], 0
mov dword [eax + 0x1c], 0
mov dword [eax + 0x60], 0
mov dword [eax + 4], 0x67452301
mov dword [eax + 8], 0xefcdab89
mov dword [eax + 0xc], 0x98badcfe
mov dword [eax + 0x10], 0x10325476
mov dword [eax + 0x14], 0xc3d2e1f0
mov byte [eax + 0x64], 0
mov byte [eax + 0x65], 0
pop ebp
ret
Function at 0x7be9b4
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov ecx, dword [esp + 0xc]
pcmpeqd mm7, mm7
lea eax, [edx + ecx*4]
and eax, 4
mov eax, dword [esp + 8]
movd mm0, dword [eax + ecx*4 - 4]
je 0x7be9db
pxor mm0, mm7
movd dword [edx + ecx*4 - 4], mm0
dec ecx
je 0x7bea01
add eax, 4
add edx, 4
dec ecx
je 0x7be9f6
sub ecx, 2
movq mm0, qword [eax + ecx*4]
pxor mm0, mm7
movq qword [edx + ecx*4], mm0
jg 0x7be9e4
jne 0x7bea01
movd mm0, dword [eax - 4]
pxor mm0, mm7
movd dword [edx - 4], mm0
emms
ret
Function at 0x808534
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov dword [ebp - 0xc], ebx
mov edx, dword [ebp + 8]
lea ebx, [ebp - 0x40]
mov dword [ebp - 8], esi
lea esi, [ebp - 0xc]
mov dword [ebp - 4], edi
mov edi, 4
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x20], esi
mov esi, 0x808db4
mov dword [esp], ebx
xor ebx, ebx
mov dword [ebp - 0x28], 0x80c9e4
mov dword [ebp - 0x24], 0x9a886a
mov dword [ebp - 0x1c], 0x808669
mov dword [ebp - 0x18], esp
call fcn.0080f6e4
mov ecx, dword [ebp - 0x44]
mov edx, dword [ecx + 8]
mov dword [esp + 0x10], edi
mov dword [esp + 8], esi
lea eax, [edx + 0x1c]
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], edx
mov dword [esp + 4], ebx
mov dword [esp], 0
call sub.msvcrt.dll__beginthreadex
mov dword [ebp - 0x48], eax
test eax, eax
jne 0x8085f4
mov dword [esp], 8
call fcn.0080e2f4
mov dword [ebp - 0x4c], eax
mov dword [esp], eax
mov dword [ebp - 0x3c], 1
call fcn.00808044
mov dword [ebp - 0x3c], 0xffffffff
mov ebx, dword [ebp - 0x4c]
mov edx, 0x8080c4
mov dword [esp + 8], edx
mov esi, 0x9e56c0
mov dword [esp + 4], esi
mov dword [esp], ebx
call fcn.0080e0f4
lea esi, [esi]
mov edx, dword [ebp - 0x44]
mov esi, dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [edx + 8]
mov dword [ebp - 0x3c], 0xffffffff
add eax, 4
mov dword [esp], eax
call esi
mov ecx, dword [ebp - 0x44]
mov edi, dword [ecx + 8]
sub esp, 4
mov dword [ebp - 0x54], edi
mov ecx, dword [edi + 8]
test ecx, ecx
setne bl
cmp ecx, 0xffffffff
setne al
test al, bl
jne 0x808694
mov esi, dword [ebp - 0x44]
lea ebx, [ebp - 0x40]
mov edx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x48]
mov ecx, dword [esi + 8]
mov dword [edx + 8], eax
mov edi, dword [ecx + 8]
mov dword [ebp - 0x3c], 0xffffffff
mov dword [esp], edi
call sub.KERNEL32.dll_ResumeThread
sub esp, 4
mov dword [esp], ebx
call fcn.0080f7c4
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov dword [esp], ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
jmp 0x80862d

Function at 0x80f5d4
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov ebx, dword [0x9fb700]
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x80f614
mov dword [ebx + 0x30], eax
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
call fcn.0081a964
test eax, eax
sete al
movzx eax, al
mov dword [ebx + 0x2c], eax
add esp, 0x14
pop ebx
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
sete al
movzx eax, al
mov dword [ebx + 0x2c], eax
add esp, 0x14
pop ebx
pop ebp
ret
Function at 0x80f9c4
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov eax, dword [0x9fb700]
mov edi, dword [ebp + 8]
test eax, eax
je 0x80faa0
mov ecx, dword [eax + 0x2c]
test ecx, ecx
js 0x80fab5
mov edx, dword [eax + 0x2c]
test edx, edx
jne 0x80fa74
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], eax
lea ebx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
jmp 0x80fa0c
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
xor ecx, ecx
test eax, eax
mov edx, 5
je 0x80fa1c
mov ecx, dword [eax + 0x18]
xor edx, edx
cmp edx, 5
je 0x80fa67
test edx, edx
jne 0x80fa5a
test ecx, ecx
je 0x80fa04
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], edi
mov eax, dword [edi]
mov edx, dword [edi + 4]
mov dword [esp], 1
mov dword [esp + 8], eax
mov eax, 1
mov dword [esp + 0xc], edx
mov dword [esp + 4], eax
call ecx
cmp eax, 6
je 0x80fac4
cmp eax, 8
je 0x80fa04
mov eax, 3
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea esp, [ebp - 0xc]
mov eax, 5
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, dword [eax + 0x30]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
sub esp, 4
jmp 0x80f9f6
call fcn.0080f364
mov eax, dword [0x9fb700]
mov ecx, dword [eax + 0x2c]
test ecx, ecx
jns 0x80f9e8
call fcn.0080f634
mov eax, dword [0x9fb700]
jmp 0x80f9e8
mov dword [edi + 0xc], 0
mov eax, dword [ebp - 0x14]
mov edx, ebx
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov eax, edi
call fcn.0080f934
cmp eax, 7
jne 0x80fa5f
mov eax, dword [0x9fb700]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x80fb17
mov edi, dword [eax + 0x2c]
test edi, edi
js 0x80fb42
mov esi, dword [eax + 0x2c]
test esi, esi
jne 0x80fb23
mov dword [eax + 0x28], ebx
mov eax, dword [ebp - 0x14]
lea edx, [eax + 0x20]
mov ecx, dword [edx + 4]
mov ebp, dword [eax + 0x20]
mov esp, dword [edx + 8]
jmp ecx
call fcn.0080f364
mov eax, dword [0x9fb700]
jmp 0x80faf5
mov eax, dword [eax + 0x30]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x80fb06
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x80fb06
call fcn.0080f634
mov eax, dword [0x9fb700]
jmp 0x80fafc
Function at 0x80fda4
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [0x9fb700]
mov edi, dword [ebp + 8]
test eax, eax
je 0x80fe38
mov esi, dword [eax + 0x2c]
test esi, esi
js 0x80fe54
mov ebx, dword [eax + 0x2c]
test ebx, ebx
jne 0x80fe74
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], eax
mov ecx, dword [edi + 0xc]
mov dword [ebp - 0x14], eax
test ecx, ecx
jne 0x80fe2c
lea edx, [ebp - 0x14]
mov eax, edi
call fcn.0080f934
cmp eax, 7
jne 0x80fef3
mov eax, dword [0x9fb700]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x80feca
mov edx, dword [eax + 0x2c]
test edx, edx
js 0x80fee4
mov edi, dword [eax + 0x2c]
test edi, edi
jne 0x80fea4
mov dword [eax + 0x28], ebx
mov eax, dword [ebp - 0x14]
lea edx, [eax + 0x20]
mov ecx, dword [edx + 4]
mov ebp, dword [eax + 0x20]
mov esp, dword [edx + 8]
jmp ecx
lea edx, [ebp - 0x14]
mov eax, edi
call fcn.0080fb54
jmp 0x80fde9
call fcn.0080f364
mov eax, dword [0x9fb700]
mov esi, dword [eax + 0x2c]
test esi, esi
jns 0x80fdc4
lea esi, [esi]
call fcn.0080f634
mov eax, dword [0x9fb700]
mov ebx, dword [eax + 0x2c]
test ebx, ebx
je 0x80fdcf
lea esi, [esi]
lea edi, [edi]
mov ebx, dword [eax + 0x30]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
sub esp, 4
jmp 0x80fdd2
mov eax, dword [eax + 0x30]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x80fe1b
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x80fe1b
call fcn.0080f364
mov eax, dword [0x9fb700]
mov edx, dword [eax + 0x2c]
test edx, edx
jns 0x80fe0d
nop
lea esi, [esi]
call fcn.0080f634
mov eax, dword [0x9fb700]
jmp 0x80fe0d
call sub.msvcrt.dll_abort
lea esi, [esi]
lea edi, [edi]
Function at 0x80ff04
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], esi
mov esi, dword [edi + 0xc]
test esi, esi
je 0x80ff96
mov eax, dword [0x9fb700]
test eax, eax
je 0x80ff8a
mov ebx, dword [eax + 0x2c]
test ebx, ebx
js 0x810005
mov ecx, dword [eax + 0x2c]
test ecx, ecx
jne 0x80ffab
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
mov eax, edi
call fcn.0080fb54
cmp eax, 7
jne 0x810023
mov eax, dword [0x9fb700]
mov ebx, dword [ebp - 0x14]
test eax, eax
je 0x80fff6
mov edx, dword [eax + 0x2c]
test edx, edx
js 0x810014
mov edi, dword [eax + 0x2c]
test edi, edi
jne 0x80ffd7
mov dword [eax + 0x28], ebx
mov eax, dword [ebp - 0x14]
lea edx, [eax + 0x20]
mov ecx, dword [edx + 4]
mov ebp, dword [eax + 0x20]
mov esp, dword [edx + 8]
jmp ecx
call fcn.0080f364
mov eax, dword [0x9fb700]
jmp 0x80ff26
mov dword [esp], edi
call fcn.0080f9c4
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov ebx, dword [eax + 0x30]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
sub esp, 4
jmp 0x80ff3b
mov eax, dword [eax + 0x30]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x80ff79
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x80ff79
call fcn.0080f364
mov eax, dword [0x9fb700]
jmp 0x80ff64
call fcn.0080f634
mov eax, dword [0x9fb700]
jmp 0x80ff31
call fcn.0080f634
mov eax, dword [0x9fb700]
jmp 0x80ff6f
call sub.msvcrt.dll_abort
lea esi, [esi]
lea edi, [edi]

Function at 0x810934
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov edx, eax
je 0x810964
mov eax, dword [ebp + 8]
mov dword [eax], edx
mov eax, dword [ebp + 0xc]
mov dword [esp], edx
mov dword [esp + 4], eax
call fcn.0081a964
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
leave
ret

Function at 0x81a324
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
lea esi, [esi]
lea edi, [edi]
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.0081a264
mov dword [esp], eax
mov dword [esp + 8], esi
mov dword [esp + 4], edi
call sub.msvcrt.dll__read
cmp eax, 0xffffffff
mov ebx, eax
jne 0x81a370
call sub.msvcrt.dll__errno
cmp dword [eax], 4
je 0x81a344
add esp, 0x1c
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x81a654
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov eax, 0x10
mov ebp, esp
push ebx
sub esp, 0x64
and esp, 0xfffffff0
call fcn.00810604
call fcn.0081a804
call sub.KERNEL32.dll_GetCommandLineA
mov ebx, eax
lea eax, [ebp - 0x58]
mov dword [esp], eax
call sub.KERNEL32.dll_GetStartupInfoA
sub esp, 4
test ebx, ebx
jne 0x81a68c
jmp 0x81a728
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
sete al
cmp cl, 9
sete dl
or eax, edx
test al, 1
jne 0x81a68b
cmp cl, 0x22
je 0x81a6e4
cmp cl, 0x20
setne al
xor edx, edx
cmp cl, 9
setne dl
test eax, edx
je 0x81a704
lea esi, [esi]
lea edi, [edi]
test cl, cl
je 0x81a704
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x20
setne al
xor edx, edx
cmp cl, 9
setne dl
test eax, edx
jne 0x81a6c4
jmp 0x81a704
inc ebx
movzx ecx, byte [ebx]
cmp cl, 0x22
setne al
xor edx, edx
test cl, cl
setne dl
test eax, edx
jne 0x81a6e4
cmp cl, 0x22
je 0x81a764
lea esi, [esi]
cmp cl, 0x20
sete al
cmp cl, 9
sete dl
jmp 0x81a722
inc ebx
movzx eax, byte [ebx]
cmp al, 0x20
sete dl
cmp al, 9
sete al
or eax, edx
test al, 1
jne 0x81a714
mov dword [esp], 0
call sub.KERNEL32.dll_GetModuleHandleA
sub esp, 4
test byte [ebp - 0x2c], 1
mov edx, 0xa
je 0x81a746
movzx edx, word [ebp - 0x28]
mov dword [esp + 0xc], edx
xor edx, edx
mov dword [esp + 8], ebx
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00659356
sub esp, 0x10
mov ebx, dword [ebp - 4]
leave
ret
inc ebx
movzx ecx, byte [ebx]
jmp 0x81a704
Function at 0x823de0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
cmp byte [esi + 0x18], 0
je 0x823e7d
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x18], 0
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.00823bd8
cmp eax, 0xffffffff
je 0x823ecf
mov dword [esi + 0x50], eax
shl eax, 4
add eax, esi
mov edx, edi
sub edx, dword [eax + 0x24]
mov dword [esi + 0x54], edx
lea ecx, [ebp - 0x10]
mov eax, dword [eax + 0x2c]
sub eax, edx
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
jb 0x823e40
mov edx, ecx
mov ebx, dword [edx]
sub dword [ebp - 0x10], ebx
mov eax, dword [esi + 0x50]
shl eax, 4
mov eax, dword [eax + esi + 0x28]
mov edx, dword [ebp - 0x18]
add edx, dword [ebp + 0xc]
add eax, dword [esi + 0x54]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov dword [esp], edx
call sub.msvcrt.dll_memcpy
add dword [esi + 0x54], ebx
add dword [ebp - 0x18], ebx
add edi, ebx
cmp dword [ebp - 0x10], 0
jne 0x823e06
mov edx, 1
jmp 0x823ee2
mov dword [esp + 8], 0
mov dword [esp + 4], edi
mov eax, dword [esi + 4]
mov dword [esp], eax
call sub.msvcrt.dll_fseek
test eax, eax
je 0x823ea6
mov dword [esi + 8], 5
mov edx, 0
jmp 0x823ee2
mov eax, dword [esi + 4]
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebx
mov dword [esp + 4], 1
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sub.msvcrt.dll_fread
mov edx, 1
cmp eax, ebx
je 0x823ee2
jmp 0x823ed6
mov edx, 0
jmp 0x823ee2
mov dword [esi + 8], 4
mov edx, 0
mov eax, edx
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x874b18
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sub.WSOCK32.DLL_setsockopt
sub esp, 0x14
leave
ret

Function at 0x87e248
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a8
lea eax, [ebp - 0x198]
mov dword [esp + 4], eax
mov dword [esp], 2
call sub.WSOCK32.DLL_WSAStartup
sub esp, 8
mov edx, dword [ebp + 8]
mov dword [edx], eax
leave
ret