joyce8/EMBER2024-capa huggingface dataset:
Function at 0x442fbc
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x47eb28]
cmp byte [eax + 0xc], 0
je 0x443129
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x443122
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x47fbbc], 0
jne 0x443010
push 0x443130
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x443138
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47fbbc], eax
cmp dword [0x47da88], 0
jne 0x44310b
push 0x443148
call sub.kernel32.dll_LoadLibraryA
mov dword [0x47da88], eax
cmp dword [0x47da88], 0
je 0x44310b
push 0x443154
mov eax, dword [0x47da88]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47fbc0], eax
push 0x443164
mov eax, dword [0x47da88]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47fbc4], eax
push 0x443178
mov eax, dword [0x47da88]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47fbc8], eax
push 0x443190
mov eax, dword [0x47da88]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47fbcc], eax
push 0x4431a8
mov eax, dword [0x47da88]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47fbd0], eax
push 0x4431bc
mov eax, dword [0x47da88]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47fbd4], eax
push 0x4431d4
mov eax, dword [0x47da88]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47fbd8], eax
push 0x4431ec
mov eax, dword [0x47da88]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47fbdc], eax
push 0x443208
mov eax, dword [0x47da88]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47fbe0], eax
push 0x443214
mov eax, dword [0x47da88]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x47fbe4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x443129
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x447210
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.004047ac
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x44725f
push pe_nt_image_headers32
lea edx, [ebp - 0x102]
push edx
push eax
call sub.user32.dll_GetKeyNameTextA
mov eax, ebx
lea edx, [ebp - 0x102]
mov ecx, pe_nt_image_headers32
call fcn.00404a14
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x44f0bc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44f10c]
test si, 4
je 0x44f0d0
or bl, 1
test si, 8
je 0x44f0da
or bl, 4
test si, 1
je 0x44f0e4
or bl, 8
test si, 2
je 0x44f0ee
or bl, 0x10
test si, 0x10
je 0x44f0f8
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44f107
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x44f110
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x44f148]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44f129
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44f138
or bl, 4
test esi, 0x20000000
je 0x44f143
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x45574c
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x45575e
add esp, 0xfffffff0
call fcn.00403d68
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041e33c
mov eax, dword [0x47e678]
mov dword [eax + 4], ebx
mov dword [eax], 0x455af0
mov eax, dword [0x47e688]
mov dword [eax + 4], ebx
mov dword [eax], 0x455afc
mov eax, ebx
call fcn.00455b08
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x4133b0]
call fcn.004039d4
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x4133b0]
call fcn.004039d4
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x4133b0]
call fcn.004039d4
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x4133b0]
call fcn.004039d4
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x4133b0]
call fcn.004039d4
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x451fd0
push eax
push 0
push 0
mov eax, dword [0x47e874]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41fd78]
call fcn.0042144c
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41fd78]
call fcn.0042144c
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41fd78]
call fcn.0042144c
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00455f28
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x455e04
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x455e04
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x455e04
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45589b
call fcn.00403dc0
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x455be8
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x455d93
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x455d74
mov dl, 1
mov eax, dword [0x413b8c]
call fcn.004039d4
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.004047ac
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x455d63
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0044331c
test al, al
je 0x455d56
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x455da4
lea eax, [ebp - 0x254]
call fcn.00409930
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x455d56
xor eax, eax
push ebp
push 0x455d4f
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x455ddc
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x455d38
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404a14
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x455d38
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404a14
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x455d56
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x455c59
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.004189d4
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x455d9a
lea eax, [ebp - 0x260]
call fcn.004047ac
ret

Function at 0x4566c8
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x47fc00]
cmp byte [eax + 0xa5], 0
jne 0x456739
cmp dword [0x47fc18], 0
jne 0x4566fa
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x456684
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x47fc18], eax
cmp dword [0x47fc14], 0
jne 0x456715
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x47fc14], eax
cmp dword [0x47fc1c], 0
jne 0x456739
push esp
push 0
push 0
push 0x456628
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x47fc1c], eax
pop edx
ret
Function at 0x456830
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x456847
add esp, 0xfffffff0
call fcn.00403d68
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041e33c
mov eax, dword [0x47e858]
cmp word [eax + 2], 0
jne 0x45686f
mov eax, dword [0x47e858]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00457ef4
mov eax, dword [0x47e948]
cmp word [eax + 2], 0
jne 0x456889
mov eax, dword [0x47e948]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004580ec
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x4133b0]
call fcn.004039d4
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4133b0]
call fcn.004039d4
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0x80000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x4207f8]
call fcn.00427bb0
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x456a10
mov eax, dword [0x47e714]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00427f80
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x45866c
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x47e714]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040c4f8
test eax, eax
je 0x45697e
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.0040928c
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c520
test eax, eax
je 0x456992
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404a14
mov eax, dword [0x47e52c]
cmp byte [eax], 0
jne 0x4569c6
mov eax, ebx
call fcn.00456b38
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.00458848
mov eax, ebx
call fcn.00459188
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x456a06
call fcn.00403dc0
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x456dac
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x47fc00]
cmp dword [eax + 0x30], 0
je 0x456e56
cmp dword [ebx + 0x94], 0
jne 0x456e50
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x456d3c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x456e50
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x456e16
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x456e50
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00415dc0
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x456e25
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x457934
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x457969
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.0040489c
jmp 0x457976
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404800
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x458a24
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x458a65
mov eax, esi
call fcn.0043ea54
test al, al
je 0x458a65
mov eax, dword [ebx + 0x84]
call fcn.0043e750
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x458a65
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043e750
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x462f84
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x46320a
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dl, byte [ebx + 0x30]
je 0x4631e4
sub dl, 1
jb 0x463170
jne 0x4631e4
mov eax, dword [ebx + 0x38]
sub eax, 1
jb 0x462fc8
je 0x462fe8
dec eax
je 0x463033
jmp 0x463063
lea eax, [ebx + 0x5c]
call fcn.00406624
push eax
mov eax, dword [0x47e8d4]
push eax
push 1
push 0
mov eax, dword [0x47e6ac]
push eax
call sub.ole32.dll_CoCreateInstance
jmp 0x463063
lea eax, [ebx + 0x60]
call fcn.00406624
push eax
mov eax, dword [0x47e974]
push eax
push 1
push 0
mov eax, dword [0x47e604]
push eax
call sub.ole32.dll_CoCreateInstance
lea eax, [ebx + 0x5c]
call fcn.00406624
push eax
mov eax, dword [0x47e8d4]
push eax
push 1
push 0
mov eax, dword [0x47e6ac]
push eax
call sub.ole32.dll_CoCreateInstance
mov eax, dword [ebx + 0x5c]
push eax
mov eax, dword [ebx + 0x60]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
jmp 0x463063
lea eax, [ebx + 0x64]
call fcn.00406624
push eax
mov eax, dword [0x47e9b8]
push eax
push 1
push 0
mov eax, dword [0x47e64c]
push eax
call sub.ole32.dll_CoCreateInstance
lea eax, [ebx + 0x5c]
call fcn.00406624
push eax
mov eax, dword [ebx + 0x64]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
mov byte [ebx + 0x30], 1
lea eax, [ebx + 0x68]
call fcn.00406624
push eax
push 0x463218
push ebx
mov eax, dword [ebx]
call dword [eax + 0x28]
call fcn.00412d1c
test al, al
je 0x4630a5
push 0
mov eax, dword [ebx + 0x68]
push eax
mov eax, dword [eax]
add bh, bh
push eax
cmp byte [ebx + 0x68506843], cl
add dword [eax + 0x438b0000], eax
xor al, 0x50
xor ecx, ecx
mov edx, 7
mov eax, ebx
call fcn.0046478c
mov eax, ebx
call fcn.004644e8
cmp dword [ebx + 0x68], 0
je 0x46319e
push 1
mov eax, dword [ebx + 0x68]
push eax
mov eax, dword [eax]
call dword [eax + 0x38]
lea eax, [ebx + 0x68]
call fcn.00406624
mov eax, dword [ebx + 0x70]
test eax, eax
je 0x4631af
call fcn.0045ef74
xor eax, eax
mov dword [ebx + 0x70], eax
push 0
mov eax, dword [ebx + 0x5c]
push eax
mov eax, dword [eax]
call dword [eax + 0x3c]
cmp dword [ebx + 0x78], 0
je 0x4631c8
lea eax, [ebx + 0x78]
call fcn.0045ee3c
lea eax, [ebx + 0x5c]
call fcn.00406624
lea eax, [ebx + 0x60]
call fcn.00406624
lea eax, [ebx + 0x64]
call fcn.00406624
mov byte [ebx + 0x30], 0
Function at 0x405e3d
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422ac4], 0
push esi
jne 0x405e74
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405e4e
mov dword [ecx*4 + 0x422ac0], eax
inc ecx
cmp ecx, 0x100
jl 0x405e49
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405ea5
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422ac0]
xor eax, esi
inc ecx
dec edx
jne 0x405e87
pop edi
not eax
pop esi
ret 0xc

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

Disassembly:
push esi
xor esi, esi
cmp dword [0x7b99b4], esi
push edi
jne 0x40639c
mov ecx, 0x7b99b0
push 8
mov eax, esi
pop edi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec edi
jne 0x406378
mov dword [ecx], eax
add ecx, 4
inc esi
cmp ecx, 0x7b9db0
jl 0x406373
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov edx, ecx
dec ecx
test edx, edx
not eax
jbe 0x4063d1
lea edx, [ecx + 1]
mov ecx, dword [esp + 0x10]
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x7b99b0]
xor eax, esi
inc ecx
dec edx
jne 0x4063b4
pop edi
pop esi
not eax
ret 0xc
Function at 0x521a5c
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.00521c0c
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x521b5a
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x521afd
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x521b40
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x521b14
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x521b2f
test al, 0x40
je 0x521b26
mov ecx, dword [edi + 0x20]
jmp 0x521b2d
test al, 0x80
je 0x521b40
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x521b40
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x521acc
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x405980
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x4b7901
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push ebp
mov ebp, ecx
push esi
mov dword [esp + 0xc], ebp
mov esi, 0x40
mov dword [ebp], 0x4c4e10
push esi
mov dword [esp + 0x3c], 0
mov dword [ebp + 4], esi
call fcn.0048ee0e
mov dword [ebp + 8], eax
push esi
mov byte [esp + 0x40], 1
mov dword [ebp + 0xc], esi
call fcn.0048ee0e
add esp, 8
mov dword [ebp + 0x10], eax
lea ecx, [ebp + 0x14]
mov byte [esp + 0x38], 2
call fcn.004045c0
mov ebx, dword [esp + 0x44]
cmp ebx, 0xffffffff
mov byte [esp + 0x38], 3
jbe 0x405a04
push 0x26
push str..._.._.._..ThirdPartyCode_Crypto_hmac.h
push str.keylength__KeyLength_keylength_
call fcn.0049e3ce
add esp, 0xc
cmp ebx, esi
push edi
ja 0x405a22
mov edi, dword [ebp + 8]
mov esi, dword [esp + 0x44]
mov ecx, ebx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x405a54
lea ecx, [esp + 0x14]
call fcn.004045c0
mov ecx, dword [ebp + 8]
mov esi, dword [esp + 0x44]
mov edx, dword [eax]
push ebx
push esi
push ecx
mov ecx, eax
mov byte [esp + 0x48], 4
call dword [edx + 0x10]
lea ecx, [esp + 0x14]
mov byte [esp + 0x3c], 3
call fcn.00402050
mov ebx, 0x14
mov edi, dword [ebp + 8]
mov ecx, 0x40
sub ecx, ebx
mov edx, ecx
shr ecx, 2
add edi, ebx
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
xor eax, eax
pop edi
mov ecx, dword [ebp + 8]
mov dl, byte [ecx + eax]
mov ecx, dword [ebp + 0x10]
xor dl, 0x5c
mov byte [eax + ecx], dl
mov edx, dword [ebp + 8]
mov bl, byte [edx + eax]
lea ecx, [edx + eax]
xor bl, 0x36
inc eax
cmp eax, 0x40
mov byte [ecx], bl
jb 0x405a73
mov ecx, ebp
call fcn.00401f30
mov ecx, dword [esp + 0x30]
pop esi
mov eax, ebp
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret 8

Function at 0x408070
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b7bd8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
xor eax, eax
push esi
mov dword [esp + 4], eax
mov dword [esp + 0x20], 0xf
mov dword [esp + 0x1c], eax
mov byte [esp + 0xc], al
mov esi, dword [esp + 0x60]
mov edx, dword [esp + 0x64]
mov dword [esp + 0x58], eax
lea eax, [esp + 8]
push eax
push esi
push edx
lea eax, [esp + 0x30]
push eax
call fcn.0048d250
mov ecx, eax
call fcn.00406fc0
cmp dword [esp + 0x20], 0x10
jb 0x4080d7
mov ecx, dword [esp + 0xc]
push ecx
call fcn.0049db86
add esp, 4
mov ecx, dword [esp + 0x50]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x58
ret 0xc
Function at 0x40a7e0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x30
mov ecx, dword [esp + 0x34]
push 4
lea eax, [esp + 4]
push eax
push 0x80
push 0xffff
push ecx
mov word [esp + 0x14], 1
mov word [esp + 0x16], 0
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x40a82c
push 0x1394
push str.p4clients_rel_betaProjectsGazelleProtoClientEngineSrcAuthenticationServerCommands.cpp
push str._0__SetSocketToAbortWhenClosed_s_____false
call fcn.00421210
mov ecx, eax
call fcn.00421000
push 1
push str.Command_aborted
lea ecx, [esp + 0xc]
call fcn.00409540
push 0x4eee04
lea edx, [esp + 8]
push edx
call fcn.0049e394
int3
Function at 0x40dee0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4b7fae
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
lea edi, [esi + 4]
mov dword [esi], ebx
mov dword [esp + 0x10], esi
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
lea ebp, [esi + 0x14]
mov dword [esp + 0x4c], ebx
mov dword [ebp + 4], ebx
mov dword [ebp + 8], ebx
mov dword [ebp + 0xc], ebx
cmp dword [esp + 0x58], ebx
mov byte [esp + 0x4c], 1
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
ja 0x40df5c
push 0x496
push str..._.._.._Common_NetworkWinSockHelperFunctions.h
push str.uNumInitialWSABUFs___0
push str.Valid_uNumInitialWSABUFs
call fcn.00421210
mov ecx, eax
call fcn.00421040
xor eax, eax
sub esp, 0x10
mov edx, esp
mov dword [edx], eax
xor ecx, ecx
mov dword [edx + 4], ecx
mov dword [edx + 8], eax
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x68]
push eax
mov ecx, ebp
call fcn.0040c420
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x58]
push ecx
push edx
push eax
mov ecx, edi
call fcn.0040c3a0
mov ecx, esi
call fcn.00402360
mov eax, dword [esi + 0x18]
mov dword [esi + 0x24], ebx
mov dword [esi], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [eax + 8], ebx
mov eax, dword [esi + 0x24]
mov ecx, dword [esi + 0x18]
shl eax, 4
add eax, ecx
mov dword [eax + 0xc], ebx
mov eax, dword [esi + 0x24]
mov ecx, dword [esi + 8]
mov dword [ecx + eax*8 + 4], ebx
mov ecx, dword [esi + 8]
mov eax, dword [esi + 0x24]
mov dword [ecx + eax*8], ebx
mov ecx, esi
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
call fcn.00402360
mov edi, dword [esp + 0x54]
cmp edi, ebx
jbe 0x40e06e
mov ebp, dword [esi + 0x18]
push edi
call fcn.0049ebf4
mov dword [ebp + 4], eax
mov eax, dword [esi + 0x18]
mov ecx, dword [eax + 4]
add esp, 4
cmp ecx, ebx
jne 0x40e06c
lea ecx, [esp + 0x18]
call fcn.0049e7ab
mov eax, 0x4c505b
mov byte [esp + 0x4c], 2
mov dword [esp + 0x18], vtable.common::ICloneableException.0
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
lea edx, [eax + 1]
jmp 0x40e030
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40e030
sub eax, edx
push eax
push 0x4c505b
lea ecx, [esp + 0x2c]
call fcn.00406650
push 0x4eee04
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x48], str.CWSABUFWrapper___failed_to_malloc___pMallocedDataBuffer
mov byte [esp + 0x54], 1
mov dword [esp + 0x20], vtable.common::CRuntimeError.0
call fcn.0049e394
mov dword [eax], edi
mov ecx, esi
call fcn.00402360
mov ecx, dword [esp + 0x44]
pop edi
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x40
ret 8