joyce8/EMBER2024-capa huggingface dataset:
Function at 0x447090
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff94
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0x240], 0
je 0x4470ac
cmp dword [esi + 4], 0
je 0x4470d9
test byte [ebx + 0x55], 1
jne 0x4470cb
mov eax, ebx
call fcn.00445478
test eax, eax
jne 0x4470cb
mov edx, esi
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx - 0x10]
jmp 0x4471e9
mov edx, esi
mov eax, ebx
call fcn.00446a98
jmp 0x4471e9
push 0
call sub.user32.dll_GetDC
mov edi, eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push edi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
push edi
push 0
call sub.user32.dll_ReleaseDC
push 0
call sub.gdi32.dll_CreateCompatibleDC
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4471e2
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.004490e8
push eax
call sub.user32.dll_BeginPaint
mov edi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 4]
mov edx, 0x14
mov eax, ebx
call fcn.004428a0
mov eax, dword [ebp - 4]
mov dword [esi + 4], eax
mov edx, esi
mov eax, ebx
call fcn.00447090
xor eax, eax
mov dword [esi + 4], eax
push 0xcc0020
push 0
push 0
mov eax, dword [ebp - 4]
push eax
lea edx, [ebp - 0x5c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x6c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x44]
mov eax, dword [ebp - 0x64]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
lea eax, [ebp - 0x4c]
push eax
mov eax, ebx
call fcn.004490e8
push eax
call sub.user32.dll_EndPaint
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4471e9
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 4]
push eax
call sub.gdi32.dll_DeleteDC
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44e4d8
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x55c224]
cmp byte [eax + 0xc], 0
je 0x44e645
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x44e63e
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x560550], 0
jne 0x44e52c
push 0x44e64c
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x44e654
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x560550], eax
cmp dword [0x4846b8], 0
jne 0x44e627
push 0x44e664
call sub.kernel32.dll_LoadLibraryA
mov dword [0x4846b8], eax
cmp dword [0x4846b8], 0
je 0x44e627
push 0x44e670
mov eax, dword [0x4846b8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x560554], eax
push 0x44e680
mov eax, dword [0x4846b8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x560558], eax
push 0x44e694
mov eax, dword [0x4846b8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x56055c], eax
push 0x44e6ac
mov eax, dword [0x4846b8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x560560], eax
push 0x44e6c4
mov eax, dword [0x4846b8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x560564], eax
push 0x44e6d8
mov eax, dword [0x4846b8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x560568], eax
push 0x44e6f0
mov eax, dword [0x4846b8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x56056c], eax
push 0x44e708
mov eax, dword [0x4846b8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x560570], eax
push 0x44e724
mov eax, dword [0x4846b8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x560574], eax
push 0x44e730
mov eax, dword [0x4846b8]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x560578], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44e645
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret

Function at 0x454188
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x4541dc]
test si, 4
je 0x45419d
or bl, 1
test si, 8
je 0x4541a7
or bl, 4
test si, 1
je 0x4541b1
or bl, 8
test si, 2
je 0x4541bb
or bl, 0x10
test si, 0x10
je 0x4541c5
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4541d4
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x4541e0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x45421c]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4541fa
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x454209
or bl, 4
test esi, 0x20000000
je 0x454214
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x45b8d0
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x45b8e2
add esp, 0xfffffff0
call fcn.00403bf0
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041ad8c
mov eax, dword [0x55bea0]
mov dword [eax + 4], ebx
mov dword [eax], 0x45bc74
mov eax, dword [0x55beac]
mov dword [eax + 4], ebx
mov dword [eax], 0x45bc80
mov eax, ebx
call fcn.0045bc8c
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x4122f8]
call fcn.0040389c
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x4122f8]
call fcn.0040389c
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x4122f8]
call fcn.0040389c
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x4122f8]
call fcn.0040389c
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x4122f8]
call fcn.0040389c
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, 0x457724
push eax
push 0
push 0
mov eax, dword [0x55c018]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41ea04]
call fcn.00420180
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41ea04]
call fcn.00420180
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41ea04]
call fcn.00420180
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.0045c14c
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45bfd4
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45bfd4
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x45bfd4
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45ba1f
call fcn.00403c48
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x45bdb8
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 0x45bf63
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x45bf44
mov dl, 1
mov eax, dword [0x41271c]
call fcn.0040389c
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 0x45bf33
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.0044e834
test al, al
je 0x45bf26
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, 0x45bf74
lea eax, [ebp - 0x254]
call fcn.004094b8
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x45bf26
xor eax, eax
push ebp
push 0x45bf1f
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 0x45bfac
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x45bf08
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404a1c
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 0x45bf08
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404a1c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45bf26
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x45be29
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.004164f8
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 0x45bf6a
lea eax, [ebp - 0x260]
call fcn.004047ac
ret

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

Disassembly:
push ecx
mov eax, dword [0x560588]
cmp byte [eax + 0xad], 0
jne 0x45c995
cmp dword [0x5605a0], 0
jne 0x45c956
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x45c8e0
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x5605a0], eax
cmp dword [0x56059c], 0
jne 0x45c971
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x56059c], eax
cmp dword [0x5605a4], 0
jne 0x45c995
push esp
push 0
push 0
push 0x45c884
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x5605a4], eax
pop edx
ret
Function at 0x45cb68
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x45cb7f
add esp, 0xfffffff0
call fcn.00403bf0
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041ad8c
mov eax, dword [0x55c000]
cmp word [eax + 2], 0
jne 0x45cba7
mov eax, dword [0x55c000]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045e630
mov eax, dword [0x55c0b4]
cmp word [eax + 2], 0
jne 0x45cbc1
mov eax, dword [0x55c0b4]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045e83c
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x4122f8]
call fcn.0040389c
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4122f8]
call fcn.0040389c
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x4122f8]
call fcn.0040389c
mov dword [ebx + 0xb0], 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 + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x41f43c]
call fcn.00427204
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x45cd78
mov eax, dword [0x55bf10]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.004275d8
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x45eefc
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x55bf10]
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.0040cd00
test eax, eax
je 0x45ccc8
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408e5c
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040cd34
test eax, eax
je 0x45ccdc
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA_1
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404a1c
mov byte [ebx + 0xd4], 0
push ebx
push 0x45e178
call fcn.0041bf08
mov dword [ebx + 0xc8], eax
mov eax, dword [0x55bde8]
cmp byte [eax], 0
jne 0x45cd2d
mov eax, ebx
call fcn.0045cebc
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.0045f0d8
mov eax, ebx
call fcn.0045fc38
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x45cd6d
call fcn.00403c48
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45d13c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x560588]
cmp dword [eax + 0x30], 0
je 0x45d1e6
cmp dword [ebx + 0x94], 0
jne 0x45d1e0
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x45d0cc
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45d1e0
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 0x45d1a6
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45d1e0
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.00414788
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x45d1b5
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45df00
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x45df35
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 0x45df42
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404800
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45f2bc
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45f32a
mov eax, esi
call fcn.00449488
test al, al
je 0x45f32a
mov eax, dword [ebx + 0x84]
call fcn.004490e8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45f32a
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x45f31e
push 0
mov eax, dword [ebx + 0x84]
call fcn.004490e8
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.00441508
jmp 0x45f32a
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.0045f0f8
pop esi
pop ebx
ret
Function at 0x466a28
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x466a56
mov eax, ebx
call fcn.004674dc
cmp dword [ebx + 0x40], 0
je 0x466a4f
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x466ac7
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x466ab9
cmp dword [ebx + 8], 0
je 0x466a78
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 0x466a8a
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x466ab9
cmp dword [ebx + 8], 0
je 0x466a6b
cmp eax, 3
je 0x466a9d
dec eax
jne 0x466a6b
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 0x466a6b
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x466a6b
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x466ae5
cmp dword [ebx + 0x14], 0xcc
je 0x466ae5
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.00466af0
pop ebx
ret
Function at 0x414240
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x10]
push ebp
push esi
mov esi, dword [esp + 0x1c]
mov ebp, ecx
test esi, esi
jg 0x414261
jl 0x414258
test ebx, ebx
jne 0x414261
xor eax, eax
xor edx, edx
jmp 0x414324
cmp dword [ebp + 0x38], 0
je 0x414277
push esi
push ebx
push dword [esp + 0x1c]
call fcn.00414330
jmp 0x414324
mov eax, dword [ebp + 0x1c]
push edi
mov edi, ebx
mov ecx, dword [eax]
test ecx, ecx
je 0x4142bb
mov eax, dword [ebp + 0x2c]
cmp dword [eax], 0
jbe 0x4142bb
cmp dword [eax], ebx
mov esi, ebx
mov edi, dword [esp + 0x18]
cmovb esi, dword [eax]
push esi
push ecx
push edi
call fcn.00409ec8
mov eax, dword [ebp + 0x2c]
add edi, esi
mov dword [esp + 0x1c], edi
add esp, 0xc
mov edi, ebx
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebp + 0x1c]
add dword [eax], esi
mov esi, dword [esp + 0x20]
jmp 0x4142c3
mov eax, dword [esp + 0x18]
mov dword [esp + 0x10], eax
cmp dword [ebp + 0x4c], 0
je 0x41431a
mov ecx, ebp
call fcn.00411dc7
mov ecx, dword [esp + 0x10]
mov edx, edi
mov eax, 0xfff
cmp edi, eax
jbe 0x414305
push dword [ebp + 0x4c]
push eax
push 1
push ecx
call fcn.00438b40
mov ecx, dword [esp + 0x20]
sub edi, eax
add ecx, eax
add esp, 0x10
mov dword [esp + 0x10], ecx
mov edx, edi
cmp eax, 0xfff
jne 0x41431a
jmp 0x4142d6
test edx, edx
je 0x41431a
push dword [ebp + 0x4c]
push edi
push 1
push ecx
call fcn.00438b40
add esp, 0x10
sub edi, eax
sub ebx, edi
mov eax, ebx
sbb esi, 0
mov edx, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
Function at 0x421922
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push esi
mov esi, ecx
push 0x6c078965
push dword [esp + 0xc]
or dword [esi + 0x1384], 0xffffffff
call fcn.004220ef
mov eax, esi
pop esi
ret 4

Function at 0x4219db
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
mov ebp, 0xe3
push edi
lea edi, [esi + 0x9c4]
mov ebx, dword [edi]
mov eax, ebx
lea edx, [edi]
mov ecx, eax
lea edi, [edx + 4]
mov ebx, dword [edi]
xor ecx, ebx
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x634]
xor eax, ecx
mov dword [edx - 0x9c0], eax
sub ebp, 1
jne 0x4219ee
lea edi, [esi + 0xd50]
mov ebp, 0x18c
mov ebx, dword [edi]
mov eax, ebx
lea edx, [edi]
mov ecx, eax
lea edi, [edx + 4]
mov ebx, dword [edi]
xor ecx, ebx
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx - 0xd4c]
xor eax, ecx
mov dword [edx - 0x9c0], eax
sub ebp, 1
jne 0x421a35
mov eax, dword [esi + 0x1380]
mov ecx, dword [esi + 4]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
pop edi
sbb eax, eax
and dword [esi], ebp
and eax, 0x9908b0df
shr ecx, 1
xor eax, dword [esi + 0x634]
xor eax, ecx
mov dword [esi + 0x9c0], eax
pop esi
pop ebp
pop ebx
ret

Function at 0x421aa9
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
lea edx, [ecx + 8]
mov esi, 0x270
mov ecx, dword [edx]
lea edx, [edx + 4]
xor ecx, dword [edx - 8]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub esi, 1
jne 0x421ab2
pop esi
ret

Function at 0x4220ef
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
push ebx
push esi
xor esi, esi
mov dword [ecx + 4], edx
push edi
inc esi
lea edi, [ecx + 8]
mov ebx, 0x270
mov eax, edx
shr eax, 0x1e
xor edx, eax
imul edx, dword [esp + 0x14]
add edx, esi
inc esi
mov dword [edi], edx
lea edi, [edi + 4]
cmp esi, ebx
jb 0x422104
pop edi
pop esi
mov dword [ecx], ebx
pop ebx
ret 8

Function at 0x4299fa
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x429a21
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x429a24
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.004299d6
pop esi
leave
ret 8
Function at 0x42b92b
Capabilities:
Parse pe header

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

Function at 0x440d07
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00440c89

Function at 0x44150e
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x461a8c
push 0x461a84
push str.FlsAlloc
push 0x1f
call fcn.004412f9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x441542
push dword [ebp + 8]
mov ecx, esi
call dword [0x45716c]
call esi
jmp 0x441548
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x44158c
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x461a9c
push 0x461a94
push str.FlsGetValue
push 0x21
call fcn.004412f9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4415c3
push dword [ebp + 8]
mov ecx, esi
call dword [0x45716c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4415cb
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x461aa4
push 0x461a9c
push str.FlsSetValue
push 0x22
call fcn.004412f9
mov esi, eax
add esp, 0x10
test esi, esi
je 0x441605
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x45716c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]