joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000a4b0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x1005b7a8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10140664]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
mov ebx, 1
mov dword [esi + 4], ebx
mov edi, dword [esp + 0x5c]
xor ebp, ebp
or eax, 0xffffffff
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x48], eax
lea edx, [esp + 0x28]
mov dword [esi], vtable.VSTGUI::CDragContainer.0
mov dword [esi + 8], edi
mov dword [esi + 0xc], ebp
mov dword [esi + 0x10], ebp
mov dword [esi + 0x14], ebp
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
push edx
push edi
mov dword [esp + 0x60], ebp
mov word [esp + 0x30], bx
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ebx
mov dword [esp + 0x40], ebx
mov word [esp + 0x44], 0xf
mov dword [esp + 0x48], ebp
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x54], ebx
call eax
test eax, eax
je 0x1000a56c
mov ecx, dword [edi]
mov ecx, dword [ecx + 0xc]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x3c]
push eax
push edi
call ecx
mov edx, dword [esp + 0x1c]
push ebp
push ebp
push 0xffffffffffffffff
push edx
call dword [sym.imp.SHELL32.dll_DragQueryFileA]
mov dword [esi + 0xc], eax
jmp 0x1000a56f
mov dword [esi + 0xc], ebx
mov eax, esi
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x44
ret 4
Function at 0x1000c6c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
cmp byte [ecx + 0x70], 0
je 0x1000c6ca
mov byte [ecx + 0x70], 0
mov eax, dword [esp + 4]
test eax, eax
jne 0x1000c6d8
mov eax, dword [ecx + 0x84]
mov dword [esp + 4], eax
jmp method.VSTGUI::CViewContainer.virtual_12
Function at 0x10010e50
Capabilities:
Create directory
Persist via run registry key
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x1005bb7e
mov eax, dword fs:[0]
push eax
sub esp, 0xb50
mov eax, dword [0x10140664]
xor eax, esp
mov dword [esp + 0xb4c], eax
push ebp
push esi
push edi
mov eax, dword [0x10140664]
xor eax, esp
push eax
lea eax, [esp + 0xb60]
mov dword fs:[0], eax
mov ebp, dword [esp + 0xb70]
push 0x7ff
lea eax, [esp + 0x361]
push 0
push eax
mov dword [esp + 0x20], pe_nt_image_headers32
mov byte [esp + 0x368], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10010fe3
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x360]
push eax
push 0
push 0
push str.Personal
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10010fe3
push str.BBE_Sound
lea edx, [esp + 0x360]
push edx
lea eax, [esp + 0x164]
push str._s_s
push eax
call sub.MSVCR80.dll_sprintf
mov esi, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
add esp, 0x10
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x160]
push edx
call esi
cmp eax, 0xffffffff
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jne 0x10010f7d
push str.BBE_Sound
lea eax, [esp + 0x360]
push eax
lea ecx, [esp + 0x264]
push 0x1005d7ec
push ecx
call sub.MSVCR80.dll_sprintf
add esp, 0x10
push 0
lea edx, [esp + 0x260]
push edx
call edi
test eax, eax
je 0x1001100d
push 0x1005f1a0
push str.BBE_Sound
lea eax, [esp + 0x364]
push eax
push 0x1005d718
push 0x101406a0
call sub.MSVCR80.dll_sprintf
add esp, 0x14
lea ecx, [esp + 0x1c]
push ecx
push 0x101406a0
call esi
cmp eax, 0xffffffff
jne 0x10010fe3
push 0x1005f1a0
push str.BBE_Sound
lea edx, [esp + 0x364]
push edx
push 0x1005d718
push 0x101406a0
call sub.MSVCR80.dll_sprintf
add esp, 0x14
push 0
push 0x101406a0
call edi
test eax, eax
je 0x1001100d
push 0x1460
call sub.MSVCR80.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
mov dword [esp + 0xb68], 0
je 0x1001100d
push ebp
mov ecx, eax
call fcn.10010970
jmp 0x1001100f
xor eax, eax
mov ecx, dword [esp + 0xb60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0xb4c]
xor ecx, esp
call fcn.1005a96e
add esp, 0xb5c
ret

Function at 0x10011220
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
jne 0x1001122b
ret 4
push 1
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
ret 4

Function at 0x100124f0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 1
xor bl, bl
call esi
test ax, ax
jge 0x10012505
mov bl, 1
push 4
call esi
test ax, ax
jge 0x10012510
mov bl, 1
push 2
call esi
test ax, ax
jge 0x1001251b
mov bl, 1
push 0x10
call esi
test ax, ax
jge 0x10012526
mov bl, 1
push 0x11
call esi
test ax, ax
jge 0x10012531
mov bl, 1
push 0x12
call esi
test ax, ax
mov al, 1
jl 0x1001253e
mov al, bl
pop esi
pop ebx
ret
Function at 0x10012d30
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x18], 0x10
push ebx
push ebp
mov ebx, ecx
jb 0x10012d43
mov eax, dword [eax + 4]
jmp 0x10012d46
add eax, 4
push 0x1005d644
push eax
call dword [sym.imp.MSVCR80.dll_fopen]
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x10012ddf
push esi
push edi
mov edi, dword [sym.imp.MSVCR80.dll_fseek]
push 2
push 0
push ebp
call edi
push ebp
call dword [sym.imp.MSVCR80.dll_ftell]
push 0
push 0
push ebp
mov esi, eax
call edi
lea eax, [esi + 1]
push eax
call fcn.1005a962
push ebp
push esi
mov edi, eax
push 1
push edi
call dword [sym.imp.MSVCR80.dll_fread]
add esp, 0x30
cmp eax, esi
mov byte [eax + edi], 0
jne 0x10012dc4
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x1c]
push edx
push eax
push ecx
push esi
push edi
mov ecx, ebx
mov byte [edi + esi], 0
call fcn.10012aa0
mov bl, al
jmp 0x10012dc6
xor bl, bl
push edi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
push ebp
call dword [sym.imp.MSVCR80.dll_fclose]
add esp, 8
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
ret 0x14
pop ebp
xor al, al
pop ebx
ret 0x14
Function at 0x100237e0
Capabilities:
Parse credit card information

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x24]
mov ecx, dword [eax + 0x10]
cmp byte [ecx], 0x25
jne 0x1002388c
push edi
push esi
call fcn.1002bdc0
push esi
call fcn.10020630
mov edi, eax
add esp, 8
test edi, edi
jne 0x1002381f
push str.xmlParsePEReference:_no_name_n
mov eax, 0x44
call fcn.10018be0
add esp, 4
pop edi
pop esi
ret
mov edx, dword [esi + 0x24]
mov eax, dword [edx + 0x10]
cmp byte [eax], 0x3b
jne 0x10023990
push ebx
push esi
call fcn.1002bdc0
mov eax, dword [esi]
add esp, 4
test eax, eax
je 0x10023855
mov eax, dword [eax + 0x60]
test eax, eax
je 0x10023855
mov ecx, dword [esi + 4]
push edi
push ecx
call eax
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x100238ad
cmp dword [esi + 0x1c], 1
je 0x1002388e
mov eax, dword [esi + 0x58]
test eax, eax
jne 0x10023869
mov eax, dword [esi + 0x5c]
test eax, eax
je 0x1002388e
push str.PEReference:____s__not_found_n
push 0x1b
xor ecx, ecx
mov eax, esi
call fcn.10018c50
mov dword [esi + 0x64], 0
add esp, 8
mov dword [esi + 0x5c], 1
pop ebx
pop edi
pop esi
ret
push str.PEReference:____s__not_found_n
mov eax, edi
mov ecx, 0x1a
call fcn.10018da0
add esp, 4
pop ebx
pop edi
mov dword [esi + 0x5c], 1
pop esi
ret
mov eax, dword [ebx + 0x30]
cmp eax, 4
je 0x100238d8
cmp eax, 5
je 0x100238d8
push str.Internal:____s__is_not_a_parameter_entity_n
push 0x1b
xor ecx, ecx
mov eax, esi
call fcn.10018c50
add esp, 8
pop ebx
pop edi
mov dword [esi + 0x5c], 1
pop esi
ret
mov edx, dword [esi + 0x24]
cmp dword [edx + 0x28], 0x100199f0
je 0x10023902
mov eax, ebx
mov ecx, esi
call fcn.10019a00
push eax
push esi
call fcn.1001adc0
add esp, 8
pop ebx
pop edi
mov dword [esi + 0x5c], 1
pop esi
ret
push ebx
push esi
call fcn.1002c9d0
push eax
push esi
call fcn.1001adc0
mov eax, dword [ebx + 0x30]
add esp, 0x10
cmp eax, 5
jne 0x10023883
mov eax, dword [esi + 0x24]
mov eax, dword [eax + 0x10]
cmp byte [eax], 0x3c
jne 0x10023883
cmp byte [eax + 1], 0x3f
jne 0x10023883
cmp byte [eax + 2], 0x78
jne 0x10023883
cmp byte [eax + 3], 0x6d
jne 0x10023883
cmp byte [eax + 4], 0x6c
jne 0x10023883
mov al, byte [eax + 5]
cmp al, 0x20
je 0x1002396d
cmp al, 9
jb 0x10023965
cmp al, 0xa
jbe 0x1002396d
cmp al, 0xd
jne 0x10023883
push esi
call fcn.1001c1e0
mov eax, dword [esi + 0x54]
add esp, 4
cmp eax, 0x20
jne 0x10023883
pop ebx
pop edi
mov dword [esi + 0xac], 0xffffffff
pop esi
ret
mov eax, dword [esi + 0xd4]
test eax, eax
je 0x100239a7
cmp dword [esi + 0xac], 0xffffffff
je 0x1002388b
push 0
push str.EntityRef:_expecting___n
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 3
push 0x17
push 1
push 0
push esi
push 0
push 0
push 0
mov dword [esi + 0x54], 0x17
call fcn.10029830
mov eax, dword [esi + 0x120]
add esp, 0x44
test eax, eax
mov dword [esi + 0xc], 0
jne 0x1002388b
pop edi
mov dword [esi + 0xd4], 1
pop esi
ret
Function at 0x10029d50
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, eax
xor eax, eax
test edx, edx
mov esi, ecx
je 0x10029d8b
mov cl, byte [edx]
movzx eax, cl
imul eax, eax, 0x1e
test cl, cl
je 0x10029d8b
push ebp
lea ebx, [ebx]
mov ebx, eax
mov ebp, eax
shl ebx, 5
shr ebp, 3
movsx ecx, cl
add ebx, ebp
inc edx
add ebx, ecx
mov cl, byte [edx]
xor eax, ebx
test cl, cl
jne 0x10029d70
pop ebp
test esi, esi
je 0x10029daf
mov cl, byte [esi]
test cl, cl
je 0x10029daf
mov edx, eax
mov ebx, eax
shl edx, 5
shr ebx, 3
movsx ecx, cl
add edx, ebx
inc esi
add edx, ecx
mov cl, byte [esi]
xor eax, edx
test cl, cl
jne 0x10029d95
test edi, edi
je 0x10029dda
mov cl, byte [edi]
test cl, cl
je 0x10029dda
lea esp, [esp]
mov edx, eax
mov esi, eax
shl edx, 5
shr esi, 3
movsx ecx, cl
add edx, esi
inc edi
add edx, ecx
mov cl, byte [edi]
xor eax, edx
test cl, cl
jne 0x10029dc0
mov ecx, dword [esp + 0x10]
xor edx, edx
div dword [ecx + 4]
pop edi
pop esi
pop ebx
mov eax, edx
ret

Function at 0x10029df0
Capabilities:
Encode data using xor

Disassembly:
test edx, edx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0x14]
push esi
push edi
mov edi, eax
mov esi, ecx
je 0x10029f3a
mov cl, byte [edx]
movzx eax, cl
imul eax, eax, 0x1e
test cl, cl
je 0x10029e36
mov ebx, eax
mov ebp, eax
shl ebx, 5
shr ebp, 3
movsx ecx, cl
add ebx, ebp
inc edx
add ebx, ecx
mov cl, byte [edx]
xor eax, ebx
test cl, cl
jne 0x10029e14
mov ebp, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
mov edx, eax
mov ecx, eax
shl edx, 5
shr ecx, 3
lea edx, [edx + ecx + 0x3a]
xor eax, edx
test esi, esi
je 0x10029e6e
mov cl, byte [esi]
test cl, cl
je 0x10029e6e
mov edx, eax
mov ebp, eax
shl edx, 5
shr ebp, 3
movsx ecx, cl
add edx, ebp
inc esi
add edx, ecx
mov cl, byte [esi]
xor eax, edx
test cl, cl
jne 0x10029e50
mov ebp, dword [esp + 0x1c]
test edi, edi
je 0x10029ea2
mov cl, byte [edi]
test cl, cl
je 0x10029e92
mov edx, eax
mov esi, eax
shl edx, 5
shr esi, 3
movsx ecx, cl
add edx, esi
inc edi
add edx, ecx
mov cl, byte [edi]
xor eax, edx
test cl, cl
jne 0x10029e78
mov edx, eax
mov ecx, eax
shl edx, 5
shr ecx, 3
lea edx, [edx + ecx + 0x3a]
xor eax, edx
test ebx, ebx
je 0x10029eca
mov cl, byte [ebx]
test cl, cl
je 0x10029eca
lea esp, [esp]
mov edx, eax
mov esi, eax
shl edx, 5
shr esi, 3
movsx ecx, cl
add edx, esi
inc ebx
add edx, ecx
mov cl, byte [ebx]
xor eax, edx
test cl, cl
jne 0x10029eb0
test ebp, ebp
je 0x10029f00
mov cl, byte [ebp]
test cl, cl
je 0x10029ef0
mov edx, eax
mov esi, eax
shl edx, 5
shr esi, 3
movsx ecx, cl
add edx, esi
inc ebp
add edx, ecx
mov cl, byte [ebp]
xor eax, edx
test cl, cl
jne 0x10029ed5
mov edx, eax
mov ecx, eax
shl edx, 5
shr ecx, 3
lea edx, [edx + ecx + 0x3a]
xor eax, edx
mov edx, dword [esp + 0x20]
test edx, edx
je 0x10029f2a
mov cl, byte [edx]
test cl, cl
je 0x10029f2a
mov edi, edi
mov esi, eax
mov edi, eax
shl esi, 5
shr edi, 3
movsx ecx, cl
add esi, edi
inc edx
add esi, ecx
mov cl, byte [edx]
xor eax, esi
test cl, cl
jne 0x10029f10
mov ecx, dword [esp + 0x14]
xor edx, edx
div dword [ecx + 4]
pop edi
pop esi
pop ebp
pop ebx
mov eax, edx
ret
movzx eax, byte [esi]
imul eax, eax, 0x1e
jmp 0x10029e46
Function at 0x10035a10
Capabilities:
Parse credit card information

Disassembly:
test ebx, ebx
jne 0x10035a18
or eax, 0xffffffff
ret
push esi
mov esi, dword [ebx]
jmp 0x10035a20
mov al, byte [esi]
cmp al, 0x61
jl 0x10035a2e
cmp al, 0x7a
jle 0x10035b1c
cmp al, 0x41
jl 0x10035a3a
cmp al, 0x5a
jle 0x10035b1c
cmp al, 0x30
jl 0x10035a46
cmp al, 0x39
jle 0x10035b1c
cmp al, 0x2d
je 0x10035b1c
cmp al, 0x5f
je 0x10035b1c
cmp al, 0x2e
je 0x10035b1c
cmp al, 0x21
je 0x10035b1c
cmp al, 0x7e
je 0x10035b1c
cmp al, 0x2a
je 0x10035b1c
cmp al, 0x27
je 0x10035b1c
cmp al, 0x28
je 0x10035b1c
cmp al, 0x29
je 0x10035b1c
cmp al, 0x25
jne 0x10035ad4
mov cl, byte [esi + 1]
cmp cl, 0x30
jl 0x10035a9f
cmp cl, 0x39
jle 0x10035ab3
cmp cl, 0x61
jl 0x10035aa9
cmp cl, 0x66
jle 0x10035ab3
cmp cl, 0x41
jl 0x10035ad4
cmp cl, 0x46
jg 0x10035ad4
mov cl, byte [esi + 2]
cmp cl, 0x30
jl 0x10035ac0
cmp cl, 0x39
jle 0x10035b1c
cmp cl, 0x61
jl 0x10035aca
cmp cl, 0x66
jle 0x10035b1c
cmp cl, 0x41
jl 0x10035ad4
cmp cl, 0x46
jle 0x10035b1c
cmp al, 0x3b
je 0x10035b1c
cmp al, 0x2f
je 0x10035b1c
cmp al, 0x3f
je 0x10035b1c
cmp al, 0x3a
je 0x10035b1c
cmp al, 0x40
je 0x10035b1c
cmp al, 0x26
je 0x10035b1c
cmp al, 0x3d
je 0x10035b1c
cmp al, 0x2b
je 0x10035b1c
cmp al, 0x24
je 0x10035b1c
cmp al, 0x2c
je 0x10035b1c
cmp al, 0x5b
je 0x10035b1c
cmp al, 0x5d
je 0x10035b1c
cmp al, 0x7b
je 0x10035b1c
cmp al, 0x7d
je 0x10035b1c
cmp al, 0x7c
je 0x10035b1c
cmp al, 0x5c
je 0x10035b1c
cmp al, 0x5e
je 0x10035b1c
cmp al, 0x60
jne 0x10035b2e
cmp al, 0x25
jne 0x10035b28
add esi, 3
jmp 0x10035a20
inc esi
jmp 0x10035a20
test edi, edi
je 0x10035b75
mov eax, dword [edi + 0x20]
test eax, eax
je 0x10035b43
push eax
call dword [0x1013f8a8]
add esp, 4
test byte [edi + 0x24], 2
mov eax, dword [ebx]
je 0x10035b62
mov ecx, esi
sub ecx, eax
push ecx
push eax
call fcn.1002b2e0
add esp, 8
mov dword [edi + 0x20], eax
mov dword [ebx], esi
xor eax, eax
pop esi
ret
mov edx, esi
push 0
sub edx, eax
push edx
push eax
call fcn.100356e0
add esp, 0xc
mov dword [edi + 0x20], eax
mov dword [ebx], esi
xor eax, eax
pop esi
ret
Function at 0x10035b80
Capabilities:
Parse credit card information

Disassembly:
test ebx, ebx
jne 0x10035b88
or eax, 0xffffffff
ret
push esi
mov esi, dword [ebx]
mov dl, 1
lea ecx, [ecx]
mov al, byte [esi]
cmp al, 0x61
jl 0x10035b9e
cmp al, 0x7a
jle 0x10035c95
cmp al, 0x41
jl 0x10035baa
cmp al, 0x5a
jle 0x10035c95
cmp al, 0x30
jl 0x10035bb6
cmp al, 0x39
jle 0x10035c95
cmp al, 0x2d
je 0x10035c95
cmp al, 0x5f
je 0x10035c95
cmp al, 0x2e
je 0x10035c95
cmp al, 0x21
je 0x10035c95
cmp al, 0x7e
je 0x10035c95
cmp al, 0x2a
je 0x10035c95
cmp al, 0x27
je 0x10035c95
cmp al, 0x28
je 0x10035c95
cmp al, 0x29
je 0x10035c95
cmp al, 0x25
jne 0x10035c44
mov cl, byte [esi + 1]
cmp cl, 0x30
jl 0x10035c0f
cmp cl, 0x39
jle 0x10035c23
cmp cl, 0x61
jl 0x10035c19
cmp cl, 0x66
jle 0x10035c23
cmp cl, 0x41
jl 0x10035c44
cmp cl, 0x46
jg 0x10035c44
mov cl, byte [esi + 2]
cmp cl, 0x30
jl 0x10035c30
cmp cl, 0x39
jle 0x10035c95
cmp cl, 0x61
jl 0x10035c3a
cmp cl, 0x66
jle 0x10035c95
cmp cl, 0x41
jl 0x10035c44
cmp cl, 0x46
jle 0x10035c95
cmp al, 0x3b
je 0x10035c95
cmp al, 0x2f
je 0x10035c95
cmp al, 0x3f
je 0x10035c95
cmp al, 0x3a
je 0x10035c95
cmp al, 0x40
je 0x10035c95
cmp al, 0x26
je 0x10035c95
cmp al, 0x3d
je 0x10035c95
cmp al, 0x2b
je 0x10035c95
cmp al, 0x24
je 0x10035c95
cmp al, 0x2c
je 0x10035c95
cmp al, 0x5b
je 0x10035c95
cmp al, 0x5d
je 0x10035c95
test edi, edi
je 0x10035cea
test byte [edi + 0x24], dl
je 0x10035ca7
cmp al, 0x7b
je 0x10035c95
cmp al, 0x7d
je 0x10035c95
cmp al, 0x7c
je 0x10035c95
cmp al, 0x5c
je 0x10035c95
cmp al, 0x5e
je 0x10035c95
cmp al, 0x60
jne 0x10035ca7
cmp al, 0x25
jne 0x10035ca1
add esi, 3
jmp 0x10035b90
inc esi
jmp 0x10035b90
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x10035cb8
push eax
call dword [0x1013f8a8]
add esp, 4
test byte [edi + 0x24], 2
mov eax, dword [ebx]
je 0x10035cd7
mov ecx, esi
sub ecx, eax
push ecx
push eax
call fcn.1002b2e0
add esp, 8
mov dword [edi + 0x1c], eax
mov dword [ebx], esi
xor eax, eax
pop esi
ret
mov edx, esi
push 0
sub edx, eax
push edx
push eax
call fcn.100356e0
add esp, 0xc
mov dword [edi + 0x1c], eax
mov dword [ebx], esi
xor eax, eax
pop esi
ret
Function at 0x100409b0
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x10146064]
test eax, eax
je 0x100409bd
or eax, 0xffffffff
ret
push esi
push edi
mov dword [0x10146064], 1
call fcn.10040a20
mov esi, dword [sym.imp.MSVCR80.dll_getenv]
push str.XML_MEM_BREAKPOINT
mov dword [0x10146074], eax
call esi
mov edi, dword [sym.imp.MSVCR80.dll_sscanf]
add esp, 4
test eax, eax
je 0x100409fd
push 0x1014607c
push 0x1006c650
push eax
call edi
add esp, 0xc
push str.XML_MEM_TRACE
call esi
add esp, 4
test eax, eax
je 0x10040a1b
push 0x10146080
push 0x1006c63c
push eax
call edi
add esp, 0xc
pop edi
xor eax, eax
pop esi
ret

Function at 0x10040b70
Capabilities:
Allocate thread local storage

Disassembly:
mov eax, dword [0x10146088]
test eax, eax
jne 0x10040bce
push 0x1014608c
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp eax, 1
jne 0x10040baa
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x1013fecc], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [0x10146084], eax
mov dword [0x10146088], 1
ret
mov eax, dword [0x10146088]
test eax, eax
jne 0x10040bce
push esi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
lea ebx, [ebx]
push 0
call esi
mov eax, dword [0x10146088]
test eax, eax
je 0x10040bc0
pop esi
ret

Function at 0x10040bd0
Capabilities:
Create thread
Get thread local storage value
Set thread local storage value

Disassembly:
call fcn.10040b70
mov eax, dword [0x1013fecc]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x10040c6c
push ebx
mov ebx, dword [sym.imp.MSVCR80.dll_malloc]
push esi
push edi
push 0x200
call ebx
mov esi, eax
add esp, 4
test esi, esi
jne 0x10040c06
xor edi, edi
jmp 0x10040c1c
xor eax, eax
mov ecx, 0x80
mov edi, esi
push esi
rep stosd dword es:[edi], eax
call fcn.1002aeb0
add esp, 4
mov edi, esi
push 8
call ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
add esp, 4
push 2
push 1
mov esi, eax
push 0
push esi
mov dword [esi + 4], edi
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov ecx, dword [0x1013fecc]
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push esi
push 0
push 0x10040b20
call dword [sym.imp.MSVCR80.dll__beginthread]
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x10044c80
Capabilities:
Get socket status

Disassembly:
mov al, byte [edi + 0x18]
sub esp, 0x10c
push ebp
mov ebp, dword [esp + 0x118]
push esi
xor esi, esi
test al, 1
je 0x10044d66
mov eax, dword [esp + 0x118]
test eax, eax
je 0x10044d66
test ebp, ebp
jle 0x10044d66
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_send]
lea ebx, [ebx]
mov ecx, dword [esp + 0x11c]
push 0
mov eax, ebp
sub eax, esi
push eax
mov eax, dword [edi + 0x14]
lea edx, [esi + ecx]
push edx
push eax
call ebx
test eax, eax
jle 0x10044ce0
add esi, eax
jmp 0x10044d34
cmp eax, 0xffffffff
jne 0x10044cfd
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0xb
je 0x10044cfd
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x10044d44
mov ecx, dword [0x1013ff18]
mov eax, dword [edi + 0x14]
lea edx, [esp + 0xc]
push edx
push 0
mov dword [esp + 0x14], ecx
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x24], eax
push 0
inc eax
push eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 1
call dword [sym.imp.WS2_32.dll_select]
cmp esi, ebp
jl 0x10044cc0
pop ebx
mov eax, esi
pop esi
pop ebp
add esp, 0x10c
ret
push str.send_failed_n
push 0
push 0xa
call fcn.1003c490
add esp, 0xc
test esi, esi
jne 0x10044d38
pop ebx
pop esi
or eax, 0xffffffff
pop ebp
add esp, 0x10c
ret
mov eax, esi
pop esi
pop ebp
add esp, 0x10c
ret
Function at 0x10044d80
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
mov al, byte [esi + 0x18]
sub esp, 0x110
test al, 2
push ebx
push ebp
push edi
je 0x10044f02
mov eax, dword [esi + 0x24]
test eax, eax
jne 0x10044dc4
push 0xfde8
call dword [0x1013f8b0]
add esp, 4
test eax, eax
mov dword [esi + 0x24], eax
je 0x10044f0e
mov dword [esi + 0x34], 0xfde8
mov dword [esi + 0x30], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov ecx, dword [esi + 0x24]
mov eax, dword [esi + 0x30]
lea edx, [ecx + 0x1000]
cmp eax, edx
jbe 0x10044e01
mov edx, dword [esi + 0x2c]
sub edx, eax
push edx
push eax
mov edi, eax
push ecx
sub edi, ecx
call dword [sym.imp.MSVCR80.dll_memmove]
mov edx, dword [esi + 0x30]
mov ecx, dword [esi + 0x28]
mov eax, dword [esi + 0x2c]
sub edx, edi
sub ecx, edi
add esp, 0xc
sub eax, edi
mov dword [esi + 0x30], edx
mov dword [esi + 0x28], ecx
mov dword [esi + 0x2c], eax
mov ecx, dword [esi + 0x34]
mov edi, dword [esi + 0x24]
mov eax, dword [esi + 0x2c]
lea edx, [ecx + edi]
lea ebx, [eax + 0x1000]
cmp edx, ebx
jae 0x10044e58
mov ebp, dword [esi + 0x28]
mov ebx, dword [esi + 0x30]
sub eax, edi
mov dword [esp + 0xc], eax
lea eax, [ecx + ecx]
push eax
push edi
sub ebp, edi
sub ebx, edi
mov dword [esi + 0x34], eax
call dword [0x1013f8b4]
add esp, 8
test eax, eax
mov dword [esi + 0x24], eax
je 0x10044f33
mov ecx, dword [esp + 0xc]
lea edx, [eax + ecx]
lea ecx, [eax + ebp]
add eax, ebx
mov dword [esi + 0x2c], edx
mov dword [esi + 0x28], ecx
mov dword [esi + 0x30], eax
mov edx, dword [esi + 0x2c]
mov eax, dword [esi + 0x14]
push 0
push 0x1000
push edx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
mov dword [esi + 0x38], eax
jg 0x10044f5f
je 0x10044f02
cmp eax, 0xffffffff
jne 0x10044eb1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2746
jg 0x10044f71
je 0x10044f02
cmp eax, 0xb
je 0x10044eb1
cmp eax, 0x2732
jle 0x10044f78
cmp eax, 0x2734
jg 0x10044f78
mov ecx, dword [0x1013ff18]
mov eax, dword [esi + 0x14]
lea edx, [esp + 0x10]
push edx
push 0
mov dword [esp + 0x18], ecx
push 0
lea ecx, [esp + 0x24]
mov dword [esp + 0x28], eax
push ecx
inc eax
push eax
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 1
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 1
jge 0x10044ef8
call dword [sym.imp.MSVCR80.dll__errno]
cmp dword [eax], 4
jne 0x10044f02
test byte [esi + 0x18], 2
jne 0x10044d94
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x110
ret
push str.allocating_input
push 0
push 0
push 2
push 0xa
call fcn.10029cc0
add esp, 0x14
pop edi
or eax, 0xffffffff
pop ebp
mov dword [esi + 0x38], eax
pop ebx
add esp, 0x110
ret
push str.allocating_input_buffer
push 0
push 0
push 2
push 0xa
call fcn.10029cc0
push edi
call dword [0x1013f8a8]
add esp, 0x18
pop edi
or eax, 0xffffffff
pop ebp
mov dword [esi + 0x38], eax
pop ebx
add esp, 0x110
ret
mov ecx, dword [esi + 0x2c]
pop edi
add ecx, eax
pop ebp
mov dword [esi + 0x2c], ecx
pop ebx
add esp, 0x110
ret
cmp eax, 0x274a
je 0x10044f02
push str.recv_failed_n
push 0
push 0xa
call fcn.1003c490
add esp, 0xc
pop edi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x110
ret