joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42c450
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10c0
call fcn.00497b00
mov eax, dword [0x7b92f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov esi, ecx
mov dword [ebp - 0x1010], eax
mov dword [ebp - 0x1008], ebx
call fcn.00421550
cmp eax, 1
jne 0x42c4c5
call fcn.00421030
cmp eax, 3
jg 0x42c4c5
test edi, edi
jne 0x42c4c5
push 3
push 0xca
push str.win_registry.cc
lea ecx, [ebp - 0x10c0]
call fcn.004203c0
add eax, 8
push str.Check_failed:_out_value.
push eax
call fcn.004169d0
add esp, 8
mov ebx, 1
test bl, 1
je 0x42c4d5
lea ecx, [ebp - 0x10c0]
call fcn.004205f0
lea eax, [ebp - 0x1008]
mov dword [ebp - 0x100c], 1
push eax
lea eax, [ebp - 0x804]
mov dword [ebp - 0x1008], 0x800
push eax
lea eax, [ebp - 0x100c]
push eax
push 0
push dword [ebp - 0x1010]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x42c553
mov ecx, dword [ebp - 0x100c]
cmp ecx, 1
jne 0x42c568
cmp word [ebp - 0x804], ax
jne 0x42c52c
xor ecx, ecx
jmp 0x42c544
lea ecx, [ebp - 0x804]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42c535
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x804]
mov ecx, edi
push eax
call fcn.004098c0
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00496e21
mov esp, ebp
pop ebp
ret 8
cmp ecx, 2
jne 0x42c5bf
push 0x400
lea eax, [ebp - 0x1004]
push eax
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x1008], eax
test eax, eax
je 0x42c5a7
cmp eax, 0x400
ja 0x42c5a7
lea eax, [ebp - 0x1004]
mov ecx, edi
push eax
call fcn.004209b0
jmp 0x42c553
pop edi
pop esi
mov eax, 0xea
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00496e21
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
mov eax, 0x3f4
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00496e21
mov esp, ebp
pop ebp
ret 8

Function at 0x430070
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 4], 0
push edi
test esi, esi
je 0x430098
call fcn.0042c320
cmp eax, 1
jl 0x430098
mov dword [ebp - 4], 0x10000
jmp 0x43009a
xor esi, esi
push 8
call fcn.00496de0
mov ecx, dword [ebp + 0xc]
add esp, 4
mov edi, dword [ebp + 0x10]
mov ebx, eax
test edi, edi
push 0
push dword [ebp - 4]
mov dword [ebx], ecx
setne cl
push ebx
push 0x4303e0
push esi
push 0
mov byte [ebx + 4], cl
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x4300e2
push 8
push ebx
call fcn.00496e13
add esp, 8
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test edi, edi
je 0x4300f8
mov dword [edi], eax
mov al, 1
mov dword [edi + 4], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4309c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x244
mov eax, dword [0x7b92f0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [ebp + 8], 0
push esi
mov esi, dword [ebp + 0xc]
je 0x430a54
xor eax, eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
push 0
push 0xffffffffffffffff
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x430a10
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00496e21
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x23c]
call fcn.004103c0
lea eax, [ebp - 0x23c]
push eax
lea ecx, [ebp - 0x224]
call fcn.00421f50
push eax
mov ecx, esi
call fcn.00421fc0
lea ecx, [ebp - 0x224]
call fcn.00409590
lea ecx, [ebp - 0x23c]
call fcn.00409590
jmp 0x430a63
push esi
push 0x6c
call fcn.00423790
add esp, 8
test al, al
je 0x4309ff
lea eax, [ebp - 0x244]
mov dword [ebp - 0x244], str.Microsoft
push eax
lea eax, [ebp - 0x224]
mov dword [ebp - 0x240], 9
push eax
mov ecx, esi
call fcn.00422460
push eax
mov ecx, esi
call fcn.00421fc0
lea ecx, [ebp - 0x224]
call fcn.00409590
lea eax, [ebp - 0x244]
mov dword [ebp - 0x244], str.Internet_Explorer
push eax
lea eax, [ebp - 0x224]
mov dword [ebp - 0x240], 0x11
push eax
mov ecx, esi
call fcn.00422460
push eax
mov ecx, esi
call fcn.00421fc0
lea ecx, [ebp - 0x224]
call fcn.00409590
lea eax, [ebp - 0x244]
mov dword [ebp - 0x244], str.Quick_Launch
push eax
lea eax, [ebp - 0x224]
mov dword [ebp - 0x240], 0xc
push eax
mov ecx, esi
call fcn.00422460
push eax
mov ecx, esi
call fcn.00421fc0
lea ecx, [ebp - 0x224]
call fcn.00409590
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.00496e21
mov esp, ebp
pop ebp
ret

Function at 0x4318f0
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
call fcn.00422ed0
test al, al
je 0x431911
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x43190c
mov dword [eax], 0xfffffffb
or eax, 0xffffffff
pop ebp
ret
pop ebp
jmp fcn.004319d0

Function at 0x435ef0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 4], 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
setne bl
test bl, bl
je 0x435f25
cmp byte [ebp + 0x10], 0
je 0x435f25
push 0xea60
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x438d10
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov ecx, dword [ebp + 8]
mov dword [ebp + 8], 0xffffffff
mov dword [ecx], eax
cmp eax, 0xffffffff
jne 0x438d64
push str.slot_____DWORD_0xFFFFFFFF_
lea eax, [ebp + 8]
push eax
push ecx
call fcn.00435e40
add esp, 0xc
test eax, eax
je 0x438d64
push eax
push 0x12
push str.threading_thread_local_win.cc
lea ecx, [ebp - 0xb0]
call fcn.004204d0
lea ecx, [ebp - 0xb0]
call fcn.004205f0
mov esp, ebp
pop ebp
ret
Function at 0x438e00
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb4
mov eax, dword [ebp + 8]
push ebx
push dword [ebp + 0xc]
xor ebx, ebx
push dword [eax]
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x438e65
call fcn.00421030
cmp eax, 4
jg 0x438e55
push 4
push 0x24
push str.threading_thread_local_win.cc
lea ecx, [ebp - 0xb4]
call fcn.004203c0
add eax, 8
push str.Failed_to_TlsSetValue__.
push eax
call fcn.004169d0
add esp, 8
mov ebx, 1
test bl, 1
je 0x438e65
lea ecx, [ebp - 0xb4]
call fcn.004205f0
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x43ba80
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push esi
push edi
cmp dword [edx + 0x14], 0x10
mov edi, dword [edx + 0x10]
jb 0x43ba93
mov edx, dword [edx]
xor ecx, ecx
mov esi, 0x811c9dc5
test edi, edi
je 0x43bab1
nop
movzx eax, byte [edx + ecx]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, edi
jb 0x43baa0
push 0x1f31d
and esi, 0x7fffffff
push esi
call fcn.004c04fc
imul ecx, eax, 0xb14
add esp, 8
imul edx, edx, 0x41a7
pop edi
pop esi
sub edx, ecx
lea eax, [edx + 0x7fffffff]
js 0x43badf
mov eax, edx
pop ebp
ret 4

Function at 0x446d90
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ecx]
mov ecx, dword [ecx + 4]
sub ecx, edi
sar ecx, 2
test ecx, ecx
je 0x446e00
push ebx
push esi
mov ebx, ecx
mov eax, dword [edi]
lea edi, [edi + 4]
movzx esi, cl
movzx edx, al
xor esi, edx
shr ecx, 8
mov dword [ebp - 4], eax
movzx eax, ah
xor ecx, dword [esi*4 + 0x793cf8]
movzx edx, cl
xor edx, eax
shr ecx, 8
movzx eax, byte [ebp - 2]
xor ecx, dword [edx*4 + 0x793cf8]
movzx edx, cl
xor edx, eax
shr ecx, 8
movzx eax, byte [ebp - 1]
xor ecx, dword [edx*4 + 0x793cf8]
movzx edx, cl
xor edx, eax
shr ecx, 8
xor ecx, dword [edx*4 + 0x793cf8]
sub ebx, 1
jne 0x446da7
pop esi
pop ebx
mov eax, ecx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x447d10
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b8
mov eax, dword [0x7b92f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
cmp dword [0x7b91e8], 0xffffffff
push esi
push edi
mov dword [ebp - 0x108], ebx
jne 0x447daf
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov esi, eax
call fcn.00421550
cmp eax, 1
jne 0x447d82
call fcn.00421030
cmp eax, 3
jg 0x447d82
cmp esi, 0xffffffff
jne 0x447d82
push 3
push 0x36
push str.threading_thread_local_storage_win.cc
lea ecx, [ebp - 0x1b8]
call fcn.004203c0
add eax, 8
push str.Check_failed:_value___TLS_OUT_OF_INDEXES.
push eax
call fcn.004169d0
add esp, 8
mov ebx, 1
test bl, 1
je 0x447d95
lea ecx, [ebp - 0x1b8]
and ebx, 0xfffffffe
call fcn.004205f0
mov ecx, esi
mov edx, 0x7b91e8
or eax, 0xffffffff
lock cmpxchg dword [edx], ecx
cmp eax, 0xffffffff
je 0x447daf
push esi
call dword [sym.imp.KERNEL32.dll_TlsFree]
call fcn.00421550
cmp eax, 1
jne 0x447dfb
call fcn.00421030
cmp eax, 3
jg 0x447dfb
push dword [0x7b91e8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x447dfb
push 3
push 0x43
push str.threading_thread_local_storage_win.cc
lea ecx, [ebp - 0x1b8]
or ebx, 2
call fcn.004203c0
add eax, 8
push str.Check_failed:__TlsGetValue_g_native_tls_key_.
push eax
call fcn.004169d0
add esp, 8
test bl, 2
je 0x447e0b
lea ecx, [ebp - 0x1b8]
call fcn.004205f0
push 0x100
lea eax, [ebp - 0x104]
push 0
push eax
call fcn.004af5b0
add esp, 0xc
lea eax, [ebp - 0x104]
push eax
push dword [0x7b91e8]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push 0x100
call fcn.00497b2d
add esp, 4
lea esi, [ebp - 0x104]
mov ebx, eax
mov ecx, 0x40
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
push ebx
push dword [0x7b91e8]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00496e21
mov esp, ebp
pop ebp
ret
Function at 0x447e80
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb8
push esi
push edi
push dword [0x7b91e8]
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x447ea6
call fcn.00447d10
mov edi, eax
call fcn.00421550
cmp eax, 1
jne 0x447f07
call fcn.00421030
cmp eax, 3
jg 0x447f07
mov eax, dword [esi + 4]
mov dword [ebp - 4], 0
mov dword [ebp - 8], eax
test eax, eax
jg 0x447f07
push str.slot____0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
call fcn.004333d0
add esp, 0xc
test eax, eax
je 0x447f07
push eax
push 3
push 0xc0
push str.threading_thread_local_storage_win.cc
lea ecx, [ebp - 0xb8]
call fcn.00420410
lea ecx, [ebp - 0xb8]
call fcn.004205f0
call fcn.00421550
cmp eax, 1
jne 0x447f69
call fcn.00421030
cmp eax, 3
jg 0x447f69
mov eax, dword [esi + 4]
mov dword [ebp - 8], 0x40
mov dword [ebp - 4], eax
cmp eax, 0x40
jl 0x447f69
push str.slot____kThreadLocalStorageSize
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
call fcn.004333d0
add esp, 0xc
test eax, eax
je 0x447f69
push eax
push 3
push 0xc1
push str.threading_thread_local_storage_win.cc
lea ecx, [ebp - 0xb8]
call fcn.00420410
lea ecx, [ebp - 0xb8]
call fcn.004205f0
mov eax, dword [esi + 4]
mov eax, dword [edi + eax*4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x447f80
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x168
push ebx
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [0x7b91e8]
push esi
mov esi, ecx
cmp eax, 0xffffffff
je 0x447fa7
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
jne 0x447fac
call fcn.00447d10
mov eax, 1
lock xadd dword [0x7bd400], eax
inc eax
mov dword [esi + 4], eax
call fcn.00421550
cmp eax, 1
jne 0x44801a
call fcn.00421030
cmp eax, 3
jg 0x44801a
mov eax, dword [esi + 4]
mov dword [ebp - 8], ebx
mov dword [ebp - 4], eax
test eax, eax
jg 0x44801a
push str.slot____0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
call fcn.004333d0
add esp, 0xc
test eax, eax
je 0x44801a
push eax
push 3
push 0xa6
push str.threading_thread_local_storage_win.cc
lea ecx, [ebp - 0xb8]
call fcn.00420410
lea ecx, [ebp - 0xb8]
call fcn.004205f0
mov ecx, dword [esi + 4]
cmp ecx, 0x40
jl 0x44807d
call fcn.00421550
cmp eax, 1
jne 0x448063
call fcn.00421030
cmp eax, 3
jg 0x448063
push 3
push 0xa8
push str.threading_thread_local_storage_win.cc
lea ecx, [ebp - 0x168]
call fcn.004203c0
add eax, 8
push str.Check_failed:_false.
push eax
call fcn.004169d0
add esp, 8
mov ebx, 1
test bl, 1
je 0x448073
lea ecx, [ebp - 0x168]
call fcn.004205f0
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + 8]
mov dword [ecx*4 + 0x7bd408], eax
mov al, 1
mov byte [esi], 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4480a0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb8
push esi
push edi
push dword [0x7b91e8]
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x4480c6
call fcn.00447d10
mov edi, eax
call fcn.00421550
cmp eax, 1
jne 0x448127
call fcn.00421030
cmp eax, 3
jg 0x448127
mov eax, dword [esi + 4]
mov dword [ebp - 4], 0
mov dword [ebp - 8], eax
test eax, eax
jg 0x448127
push str.slot____0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
call fcn.004333d0
add esp, 0xc
test eax, eax
je 0x448127
push eax
push 3
push 0xc9
push str.threading_thread_local_storage_win.cc
lea ecx, [ebp - 0xb8]
call fcn.00420410
lea ecx, [ebp - 0xb8]
call fcn.004205f0
call fcn.00421550
cmp eax, 1
jne 0x448189
call fcn.00421030
cmp eax, 3
jg 0x448189
mov eax, dword [esi + 4]
mov dword [ebp - 8], 0x40
mov dword [ebp - 4], eax
cmp eax, 0x40
jl 0x448189
push str.slot____kThreadLocalStorageSize
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
call fcn.004333d0
add esp, 0xc
test eax, eax
je 0x448189
push eax
push 3
push 0xca
push str.threading_thread_local_storage_win.cc
lea ecx, [ebp - 0xb8]
call fcn.00420410
lea ecx, [ebp - 0xb8]
call fcn.004205f0
mov ecx, dword [esi + 4]
mov eax, dword [ebp + 8]
mov dword [edi + ecx*4], eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x4481a0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b8
mov eax, dword [0x7b92f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x7b91e8]
mov dword [ebp - 0x108], 0
cmp eax, 0xffffffff
je 0x4482c2
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
test ebx, ebx
je 0x4482c1
push esi
push edi
lea eax, [ebp - 0x104]
mov ecx, 0x40
push eax
push dword [0x7b91e8]
mov esi, ebx
lea edi, [ebp - 0x104]
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push ebx
call fcn.00497301
add esp, 4
mov edi, 0x40
nop
mov esi, dword [0x7bd400]
xor dl, dl
test esi, esi
jle 0x44824e
nop dword [eax]
mov ecx, dword [ebp + esi*4 - 0x104]
test ecx, ecx
je 0x448249
mov eax, dword [esi*4 + 0x7bd408]
test eax, eax
je 0x448249
push ecx
mov dword [ebp + esi*4 - 0x104], 0
call eax
add esp, 4
mov dl, 1
dec esi
test esi, esi
jg 0x448220
dec edi
test edi, edi
jle 0x448259
test dl, dl
jne 0x448210
jmp 0x4482b1
call fcn.00421550
cmp eax, 1
jne 0x44829c
call fcn.00421030
cmp eax, 3
jg 0x44829c
push 3
push 0x8d
push str.threading_thread_local_storage_win.cc
lea ecx, [ebp - 0x1b8]
call fcn.004203c0
add eax, 8
push str.Check_failed:_false.
push eax
call fcn.004169d0
add esp, 8
mov eax, 1
jmp 0x4482a2
mov eax, dword [ebp - 0x108]
test al, 1
je 0x4482b1
lea ecx, [ebp - 0x1b8]
call fcn.004205f0
push 0
push dword [0x7b91e8]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00496e21
mov esp, ebp
pop ebp
ret
Function at 0x449030
Capabilities:
Parse pe header

Disassembly:
mov ecx, dword [ecx + 4]
mov eax, 0x5a4d
cmp word [ecx], ax
je 0x449040
xor al, al
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x44903d
mov ecx, 0xe0
cmp word [eax + 0x14], cx
jne 0x44903d
mov ecx, 0x10b
cmp word [eax + 0x18], cx
sete al
ret

Function at 0x44d710
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dfd36
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x7b92f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edx, dword [esi + 0x30]
xor al, al
mov ecx, dword [esi + 0x2c]
mov edi, edx
rep stosb byte es:[edi], al
push edx
mov dword [ebp - 4], 0
call fcn.0044cbb0
mov ecx, dword [esi + 0xc]
add esp, 4
test ecx, ecx
je 0x44d75f
mov eax, dword [ecx]
push 1
call dword [eax]
test byte [ebp + 8], 1
je 0x44d770
push 0x44
push esi
call fcn.00496e13
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x44d840
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4dfd6c
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x7b92f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edx, dword [esi + 0x50]
xor al, al
mov ecx, dword [esi + 0x4c]
mov edi, edx
rep stosb byte es:[edi], al
push edx
mov dword [ebp - 4], 0
call fcn.0044cbb0
mov edx, dword [esi + 0x30]
xor al, al
mov ecx, dword [esi + 0x2c]
mov edi, edx
rep stosb byte es:[edi], al
push edx
mov dword [ebp - 4], 1
call fcn.0044cbb0
mov ecx, dword [esi + 0xc]
add esp, 8
test ecx, ecx
je 0x44d8a8
mov eax, dword [ecx]
push 1
call dword [eax]
test byte [ebp + 8], 1
je 0x44d8b9
push 0x60
push esi
call fcn.00496e13
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x461990
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x7b92f0]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x4619e0
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x4619da
shr eax, 8
cmp al, 2
jne 0x4619da
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00496e21
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 4]
mov eax, 2
xor ecx, ebp
call fcn.00496e21
mov esp, ebp
pop ebp
ret

Function at 0x466590
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x4665ae
cmp dword [esi + 0x6c], 0
je 0x4665ae
push 2
push 3
push esi
call fcn.00479ec0
add esp, 0xc
push dword [ebp + 0xc]
call fcn.004716c0
add esp, 4
test esi, esi
je 0x4665ce
cmp dword [esi + 0x6c], 0
je 0x4665ce
push 3
push esi
call fcn.00479f00
add esp, 8
pop esi
pop ebp
ret
Function at 0x46f810
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push eax
push edi
mov esi, dword [edi + eax*4 + 0x198]
call fcn.0046fb80
add esp, 8
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
call dword [sym.imp.WS2_32.dll_send]
mov ebx, eax
mov eax, dword [ebp + 0x18]
mov dword [eax], 0
cmp ebx, 0xffffffff
jne 0x46f894
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x46f86c
mov eax, dword [ebp + 0x18]
pop edi
pop esi
pop ebx
mov dword [eax], 0x51
xor eax, eax
pop ebp
ret
push esi
push edi
call fcn.0047b9d0
push eax
push str.Send_failure:__s
push dword [edi]
call fcn.0046f470
mov eax, dword [edi]
add esp, 0x14
mov dword [eax + 0x46ac], esi
mov eax, dword [ebp + 0x18]
mov dword [eax], 0x37
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret

Function at 0x46fb80
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
mov eax, ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
shl eax, 4
push edi
mov edx, dword [ebx + ecx*4 + 0x198]
lea esi, [ebx + 0x1bc]
add esi, eax
mov dword [ebp + 8], edx
mov eax, dword [ebx + 0x298]
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x3c], 3
je 0x46fc3d
cmp dword [ebx + ecx*4 + 0x1ac], 0x46f760
jne 0x46fc3d
cmp dword [esi], 0
je 0x46fbcf
test edi, edi
je 0x46fc3d
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push edx
call fcn.0046edf0
add esp, 0x14
cmp eax, 0xffffffff
je 0x46fc3d
test al, 1
je 0x46fc3d
cmp dword [esi], 0
jne 0x46fc24
mov eax, dword [ebx]
mov eax, dword [eax + 0x32c]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x7b9234]
mov edi, dword [esi + 4]
add esp, 4
mov dword [esi], eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
test eax, eax
jne 0x46fc24
pop edi
mov dword [esi + 4], eax
pop esi
pop ebx
pop ebp
ret
mov eax, dword [esi]
add eax, dword [esi + 8]
push 0
push edi
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x46fc3d
add dword [esi + 8], eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x46fc50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x1b0]
test eax, eax
je 0x46fc79
push dword [esi + 0x13c]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call eax
add esp, 0x14
pop esi
pop ebp
ret
mov eax, dword [ebp + 0xc]
cmp eax, 2
ja 0x46fcaf
push dword [esi + 0x138]
lea eax, [eax + eax*2]
push 1
add eax, 0x797ef0
push 2
push eax
call fcn.004b9a78
push dword [esi + 0x138]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.004b9a78
add esp, 0x20
xor eax, eax
pop esi
pop ebp
ret

Function at 0x46fd70
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp byte [eax + 0x1dc], 0
je 0x46fd83
xor al, al
pop ebp
ret
mov eax, dword [eax + 0x198]
cmp eax, 0xffffffff
je 0x46fd7f
push 2
push 1
lea ecx, [ebp + 0xb]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
setne al
pop ebp
ret
Function at 0x470460
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x7be704]
mov dword [ebp - 8], 0x4020
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 4
test eax, eax
jne 0x4704b1
push 3
push 2
push eax
push 6
call fcn.0048e860
add esp, 0x10
test al, al
je 0x4704a5
mov dword [0x7be704], 2
mov esp, ebp
pop ebp
ret
mov dword [0x7be704], 1
jmp 0x4704b6
cmp eax, 2
je 0x4704f6
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x1001
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x4704dd
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jg 0x4704f6
push 4
lea eax, [ebp - 8]
push eax
push 0x1001
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esp, ebp
pop ebp
ret

Function at 0x4705c0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp + 8]
push 4
push eax
push 1
mov esi, dword [edi]
push 6
push dword [ebp + 0xc]
mov dword [ebp + 8], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x470608
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.0047b9d0
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.0046f540
add esp, 0x14
pop edi
pop esi
pop ebp
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.0046f540
add esp, 8
pop edi
pop esi
pop ebp
ret