joyce8/EMBER2024-capa huggingface dataset:
Function at 0x51e168aa
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x51e8c348]
push ebx
push esi
mov esi, dword [eax + 8]
shr esi, 2
xor ebx, ebx
and esi, 1
cmp dword [ebp + 8], ebx
setne bl
cmp ebx, esi
jne 0x51e16a85
mov eax, esi
pop esi
pop ebx
leave
ret
push edi
mov edi, dword [eax]
push edi
mov dword [ebp - 4], edi
call dword [sym.imp.USER32.dll_HideCaret]
test ebx, ebx
je 0x51e19452
call fcn.51e16c00
cmp dword [ebp + 8], 2
je 0x51e16abf
mov eax, dword [0x51e8c348]
push 0
push 0
push dword [eax + 0x54]
call fcn.51e16841
push eax
call fcn.51e17032
add esp, 0x10
push dword [ebp + 0xc]
mov eax, dword [0x51e8c348]
push dword [eax + 0x70]
call fcn.51e15fe6
mov eax, dword [0x51e8c348]
test byte [eax + 8], 8
pop ecx
pop ecx
je 0x51e16af5
cmp dword [eax + 0x160], 0
jne 0x51e2a812
push dword [eax + 0x6c]
push dword [eax + 0x68]
call dword [sym.imp.USER32.dll_SetCaretPos]
mov eax, dword [0x51e8b69c]
test eax, eax
je 0x51e2a82a
cmp dword [eax + 0x53bc], 0
jne 0x51e2a854
test byte [eax + 0x53b6], 0x3c
jne 0x51e2a854
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_ShowCaret]
mov eax, dword [0x51e8c348]
mov ecx, ebx
shl ecx, 2
xor ecx, dword [eax + 8]
pop edi
and ecx, 4
xor dword [eax + 8], ecx
jmp 0x51e168ce
push edi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x51e16b1c
mov eax, dword [0x51e8c348]
push 0
push dword [eax + 0x70]
call fcn.51e15fe6
pop ecx
pop ecx
jmp 0x51e16b1c
mov ecx, dword [eax + 0x68]
cmp ecx, 2
jle 0x51e16ae9
push dword [eax + 0x6c]
add ecx, 0xfffffffe
push ecx
jmp 0x51e16aef
mov edi, dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
call edi
cmp ax, 0x411
je 0x51e2a854
call edi
cmp ax, 0x404
je 0x51e2a854
call edi
cmp ax, 0x412
je 0x51e2a854
call edi
cmp ax, 0x804
jne 0x51e16b1c
mov eax, dword [0x51e8a120]
test eax, eax
je 0x51e16b1c
mov eax, dword [eax + 0x30]
test eax, eax
je 0x51e16b1c
push 1
call eax
jmp 0x51e16b1c
Function at 0x51e17473
Capabilities:
Identify system language via api

Disassembly:
and dword [ebp - 4], eax
push 0x128
call fcn.51e04f62
test eax, eax
pop ecx
je 0x51e1bf82
push dword [ebp + 0x10]
mov ecx, eax
push esi
push dword [ebp + 8]
call fcn.51e04f1d
test eax, eax
mov dword [ebp - 0x14], eax
je 0x51e1bf89
mov ecx, eax
call fcn.51e04fb9
test eax, eax
je 0x51e1bf89
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x2c], eax
jmp 0x51e17493
mov eax, 0x51e7d8d0
call fcn.51e038b0
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov eax, dword [esi + 0x2c]
test eax, eax
push edi
mov dword [ebp - 0x10], esp
je 0x51e04f70
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
mov esi, dword [esp + 0x14]
mov ebx, dword [esp + 0x10]
add esi, 0x50
push edi
push dword [esi]
push ebx
call fcn.51e1a6c3
add esp, 0xc
inc edi
add esi, 4
cmp edi, 4
jl 0x51e1a6ea
push 0
push dword [esp + 0x1c]
call fcn.51e1a651
cmp dword [0x51e8bbb4], ebx
pop ecx
pop ecx
pop edi
pop esi
pop ebx
jne 0x51e1a71e
or dword [0x51e8bbb4], 0xffffffff
ret
xor eax, eax
jmp 0x51e04f94
push 0x7d4
call fcn.51e0d896
cmp dword [ebp - 0x14], 0
mov esi, dword [0x51e8c330]
je 0x51e1bfb0
mov ecx, dword [ebp - 0x14]
call fcn.51e1a665
push dword [ebp - 0x14]
call fcn.51e03c37
pop ecx
push esi
call fcn.51e0d896
mov esi, dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
call esi
cmp ax, 0x411
je 0x51e1a6df
call esi
cmp ax, 0x404
je 0x51e1a6df
call esi
cmp ax, 0x412
je 0x51e1a6df
call esi
jmp 0x51e1a6df

Function at 0x51e1819b
Capabilities:
Identify system language via api

Disassembly:
cmp dword [0x51e8c468], 0
jne 0x51e2929c
mov eax, dword [0x51e8c348]
test byte [eax + 9], 0x20
mov eax, dword [0x51e8b69c]
push esi
jne 0x51e2929f
cmp byte [eax + 0xa4], 0
jne 0x51e2929f
xor eax, eax
pop esi
ret
xor eax, eax
ret
test eax, eax
jne 0x51e292cb
mov esi, dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
call esi
cmp ax, 0x411
je 0x51e292d4
call esi
cmp ax, 0x404
je 0x51e292d4
call esi
cmp ax, 0x412
je 0x51e292d4
call esi
cmp ax, 0x804
jne 0x51e292e6
jmp 0x51e292d4
cmp dword [eax + 0x53b8], 0
je 0x51e292e6
mov eax, dword [0x51e8c348]
test byte [eax + 0x11c], 0x10
jne 0x51e181ca
mov eax, dword [esp + 0xc]
mov esi, dword [esp + 8]
sub eax, esi
cmp eax, 1
ja 0x51e181ca
mov eax, dword [0x51e8c344]
push dword [eax]
call fcn.51e1637c
movzx eax, word [eax + esi*2]
cmp eax, 0xd
pop ecx
je 0x51e181ca
cmp eax, 0xa
je 0x51e181ca
mov ecx, dword [0x51e8c348]
xor eax, eax
cmp esi, dword [ecx + 0x28]
pop esi
setne al
ret
Function at 0x51e18b0a
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push edi
push 0x10
call esi
xor ebx, ebx
mov bx, ax
push 0x11
shr ebx, 1
and ebx, 0x4000
call esi
mov edi, 0x8000
push 0x12
and eax, edi
or ebx, eax
shr ebx, 2
call esi
and eax, edi
or ebx, eax
pop edi
shr ebx, 0xa
pop esi
mov eax, ebx
pop ebx
ret
Function at 0x51e1940e
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
call fcn.51e16841
mov esi, dword [0x51e8c348]
push 5
pop ecx
push dword [ebp + 0xc]
add esi, 0x50
lea edi, [ebp - 0x18]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp + 8]
push edi
mov ebx, eax
call fcn.51e193c4
xor esi, esi
cmp eax, esi
pop ecx
pop ecx
mov dword [ebp - 4], eax
jne 0x51e2c0bd
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
call fcn.51e16841
cmp ebx, eax
jne 0x51e2c13c
mov edx, dword [0x51e8c348]
mov eax, dword [ebp - 0x14]
cmp eax, dword [edx + 0x54]
je 0x51e2c0ed
cmp ebx, esi
je 0x51e2c0ed
push esi
push esi
push ebx
call fcn.51e0e477
add esp, 0xc
cmp ebx, eax
je 0x51e2c13c
mov edx, dword [0x51e8c348]
push dword [ebp + 0xc]
push edi
call fcn.51e66199
test eax, eax
pop ecx
pop ecx
jne 0x51e1944a
cmp dword [edx + 0x15c], esi
je 0x51e2c135
mov eax, dword [0x51e8b69c]
cmp word [eax + 0x537c], si
je 0x51e2c135
cmp edi, 0x25
je 0x51e2c120
cmp edi, 0x27
jne 0x51e2c135
cmp dword [eax + 0x5380], esi
je 0x51e2c135
cmp dword [edx + 0x54], esi
jne 0x51e2c135
cmp ebx, esi
jne 0x51e1944a
xor eax, eax
jmp 0x51e1944d
mov ecx, dword [0x51e8c348]
mov eax, dword [ebp - 0x10]
cmp eax, dword [ecx + 0x58]
jne 0x51e2c156
mov eax, dword [ebp - 0xc]
cmp eax, dword [ecx + 0x5c]
je 0x51e1944a
mov eax, dword [0x51e8b69c]
cmp eax, esi
jne 0x51e2c1a8
mov esi, dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
call esi
cmp ax, 0x411
je 0x51e2c195
call esi
cmp ax, 0x404
je 0x51e2c195
call esi
cmp ax, 0x412
je 0x51e2c195
call esi
cmp ax, 0x804
je 0x51e2c195
mov ecx, dword [0x51e8c348]
test byte [ecx + 9], 1
jne 0x51e1944a
push 0x805
call fcn.51e168d4
xor eax, eax
pop ecx
inc eax
jmp 0x51e1944d
cmp dword [eax + 0x53b8], esi
jne 0x51e2c195
jmp 0x51e2c18b

Function at 0x51e1a6ce
Capabilities:
Identify system language via api

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [0x51e8b69c], edi
je 0x51e1bfb6
Function at 0x51e34305
Capabilities:
Terminate process

Disassembly:
push 8
call fcn.51e0337a
jmp 0x51e34316
pop ecx
push 0x51e8c6a8
mov eax, 0x51e8c6a0
call fcn.51e78b54
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x51e343a1
jmp 0x51e34389
pop ecx
ret
ret
push 8
push 0x51e343c0
call fcn.51e03d5d
jmp 0x51e1b419
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x51eb8c20], esi
jne 0x51e34337
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x51eb8c1c], esi
mov al, byte [ebp + 0x10]
mov byte [0x51eb8c18], al
cmp dword [ebp + 0xc], edi
jne 0x51e1b426
cmp dword [0x51e89be8], edi
je 0x51e34375
mov eax, dword [0x51e89be4]
sub eax, 4
mov dword [0x51e89be4], eax
cmp eax, dword [0x51e89be8]
jb 0x51e34375
mov eax, dword [eax]
cmp eax, edi
je 0x51e34356
call eax
jmp 0x51e34356
push 0x51e8c6b0
mov eax, 0x51e8c6ac
call fcn.51e78b54
jmp 0x51e1b425
cmp dword [ebp + 0x10], edi
jne 0x51e343b6
mov dword [0x51eb8c20], esi
push dword [ebp + 8]
call fcn.51e78b08
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x51e1b445
push 8
call fcn.51e0339c
jmp 0x51e1b444
call fcn.51e03d98
jmp 0x51e1b446

Function at 0x51e40176
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x2c], 0
push edi
jne 0x51e40195
push dword [ebp + 0x10]
push esi
push dword [ebp + 0xc]
call fcn.51e17473
add esp, 0xc
mov eax, dword [0x51e8b69c]
test eax, eax
jne 0x51e401d8
mov edi, dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
call edi
cmp ax, 0x411
je 0x51e401e1
call edi
cmp ax, 0x404
je 0x51e401e1
call edi
cmp ax, 0x412
je 0x51e401e1
call edi
cmp ax, 0x804
je 0x51e401e1
mov esi, dword [esi + 0x2c]
push dword [ebp + 0x14]
mov ecx, esi
call fcn.51e1a1d0
sub eax, dword [esi + 8]
pop edi
pop esi
leave
ret
cmp dword [eax + 0x53b8], 0
je 0x51e401c4
cmp byte [esi + 0x7b], 0
jne 0x51e401fd
mov eax, dword [0x51e8a120]
test eax, eax
je 0x51e401c4
mov eax, dword [eax + 0x6c]
test eax, eax
je 0x51e401c4
call eax
test eax, eax
je 0x51e401c4
cmp byte [esi + 0x7d], 0
je 0x51e40208
mov eax, dword [esi + 0x74]
jmp 0x51e401d4
mov eax, dword [ebp + 0x14]
mov dword [ebp + 8], eax
lea eax, [ebp - 8]
push eax
push 1
lea eax, [ebp + 8]
push eax
push dword [ebp + 0xc]
call fcn.51e4e47a
mov eax, dword [ebp - 8]
sub eax, dword [esi + 4]
jmp 0x51e401d4
Function at 0x51e42f49
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, ah
js 0x51e42fc1
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x58]
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 4], eax
push 1
lea eax, [ebp - 8]
push eax
push esi
call fcn.51e163c1
mov eax, dword [esi + 0x48]
mov ecx, dword [esi + 4]
add esp, 0xc
cmp eax, ecx
je 0x51e42f91
push 1
lea edx, [ebp - 8]
push edx
push eax
push ecx
call dword [sym.imp.USER32.dll_MapWindowPoints]
movzx ecx, word [ebp - 4]
movzx edx, word [ebp - 8]
shl ecx, 0x10
or ecx, edx
push ecx
xor eax, eax
cmp dword [0x51e8bab8], eax
push eax
push 0x202
push dword [esi + 0x48]
jne 0x51e42fba
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x51e42fc0
call dword [sym.imp.USER32.dll_PostMessageW]
pop esi
leave
ret
Function at 0x51e451d9
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x10]
mov ecx, dword [eax + 0x14]
test ecx, ecx
mov ebx, dword [eax + 0xc]
mov dword [ebp - 4], ecx
mov dword [ebp + 8], ebx
je 0x51e4539d
push edi
push 1
lea edi, [esi + 0x58]
push edi
push esi
call fcn.51e163c1
add esp, 0xc
push 1
push edi
push ebx
push dword [esi + 0x48]
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [edi + 4]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 8]
mov dword [esi + 0x48], ebx
mov ebx, dword [edi]
call dword [sym.imp.USER32.dll_GetClientRect]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetCapture]
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, dword [ebp + 8]
jne 0x51e45373
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, ah
jns 0x51e45373
push 3
push 0x20a
xor eax, eax
cmp dword [0x51e8bab8], eax
push pe_nt_image_headers32
push eax
lea eax, [ebp - 0x40]
push eax
jne 0x51e4527b
call dword [sym.imp.USER32.dll_PeekMessageA]
jmp 0x51e45281
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x51e45239
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x3c]
cmp ecx, 0x200
jb 0x51e452bf
cmp ecx, 0x20a
ja 0x51e452bf
mov dword [esi + 0x4c], ecx
mov ecx, dword [ebp - 0x38]
mov dword [esi + 0x50], ecx
movsx ecx, ax
mov dword [esi + 0x54], eax
shr eax, 0x10
movsx eax, ax
push esi
mov dword [edi], ecx
mov dword [esi + 0x5c], eax
call fcn.51e48116
mov eax, dword [ebp - 0x34]
pop ecx
cmp dword [ebp - 0x3c], 0x202
je 0x51e45396
cmp dword [ebp - 0x3c], 0x200
jne 0x51e45239
mov ecx, dword [ebp - 0x30]
push ecx
push eax
mov ebx, eax
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x10], ecx
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x51e45239
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
mov dword [ebp - 0xc], ebx
call dword [sym.imp.USER32.dll_ClientToScreen]
movzx eax, word [ebp - 8]
movzx ecx, word [ebp - 0xc]
shl eax, 0x10
or eax, ecx
push eax
push 0
push 0x84
push dword [ebp - 4]
call dword [0x51e8bba0]
cmp eax, 1
jne 0x51e45239
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_ScreenToClient]
call dword [sym.imp.USER32.dll_ReleaseCapture]
movzx eax, word [ebp - 8]
movzx ecx, word [ebp - 0xc]
shl eax, 0x10
or eax, ecx
push eax
push 1
push 0x201
push dword [ebp - 4]
call dword [0x51e8bba0]
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, dword [ebp - 4]
je 0x51e4539c
jmp 0x51e45230
mov ecx, dword [ebp - 0x10]
movzx eax, cx
movzx edx, bx
shl eax, 0x10
or eax, edx
mov dword [ebp - 0x3c], 0x202
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ecx
jmp 0x51e45288
call dword [sym.imp.USER32.dll_ReleaseCapture]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x51e47c53
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x274
mov eax, dword [0x51e8c240]
push ebx
push esi
mov esi, dword [ebp + 8]
and dword [ebp + 8], 0
mov ebx, dword [esi + 0x10]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x208], eax
mov eax, dword [0x51e8b69c]
test eax, eax
push edi
jne 0x51e47cb8
mov edi, dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
call edi
cmp ax, 0x411
je 0x51e47cca
call edi
cmp ax, 0x404
je 0x51e47cca
call edi
cmp ax, 0x412
je 0x51e47cca
call edi
cmp ax, 0x804
je 0x51e47cca
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.51e03d50
leave
ret
cmp dword [eax + 0x53bc], 0
jne 0x51e47cca
test byte [eax + 0x53b6], 0x3c
je 0x51e47ca9
mov eax, dword [ebp - 0x208]
cmp dword [eax + 0xc], 0
je 0x51e47ca9
cmp byte [ebx + 0x19], 0
jne 0x51e47ca9
cmp byte [ebx + 0x9a], 0
je 0x51e47ca9
cmp byte [ebx + 0x18], 0
jne 0x51e47ca9
cmp byte [ebx + 0x1a], 0
jne 0x51e47ca9
push 0x1b
pop ecx
lea eax, [ebp - 0x274]
lea edi, [ebp - 0x274]
rep movsd dword es:[edi], dword [esi]
and dword [ebp - 0x214], 0
push eax
call fcn.51e07677
pop ecx
lea eax, [ebp - 0x204]
push eax
mov esi, pe_nt_image_headers32
push esi
push 0xae4
push dword [ebx]
call dword [0x51e8bba0]
cmp eax, esi
jg 0x51e47d8b
push dword [ebp - 0x22c]
lea eax, [ebp - 0x204]
push eax
mov eax, dword [ebp - 0x208]
push dword [eax + 0xc]
call fcn.51e6407b
mov dword [ebp + 8], eax
mov eax, dword [0x51e8a120]
add esp, 0xc
test eax, eax
je 0x51e47d84
mov eax, dword [eax + 4]
test eax, eax
je 0x51e47d84
push dword [ebx]
call eax
cmp al, byte [ebp + 8]
je 0x51e47d84
mov eax, dword [ebp + 8]
shr eax, 8
movzx eax, al
push eax
movzx eax, byte [ebp + 8]
push eax
push 0xada
push dword [ebx]
call dword [0x51e8bba0]
mov dword [ebp + 8], 1
mov eax, dword [ebp + 8]
jmp 0x51e47cab
Function at 0x51e48d02
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [esi + 4]
push 1
lea ebx, [esi + 0x58]
push ebx
push esi
mov dword [ebp - 8], edi
call fcn.51e163c1
mov eax, dword [ebx]
mov dword [ebp - 0x10], eax
mov eax, dword [ebx + 4]
push esi
mov dword [ebp - 0xc], eax
call fcn.51e48116
add esp, 0x10
test eax, eax
jne 0x51e48e53
mov eax, dword [esi + 0x4c]
sub eax, 0x201
je 0x51e48d7b
push 2
pop ecx
sub eax, ecx
je 0x51e48d88
dec eax
je 0x51e48d6f
sub eax, ecx
je 0x51e48d6f
dec eax
je 0x51e48d5f
sub eax, ecx
jne 0x51e48e53
mov dword [ebp - 4], 4
mov dword [ebp + 8], 0x208
jmp 0x51e48d96
mov dword [ebp - 4], ecx
mov dword [ebp + 8], 0x205
jmp 0x51e48d96
cmp dword [0x51eb3b14], 0
jne 0x51e48e53
mov dword [ebp - 4], 1
mov dword [ebp + 8], 0x202
push edi
call dword [sym.imp.USER32.dll_SetCapture]
mov edi, 0x20a
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, dword [ebp - 8]
jne 0x51e48e5b
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, ah
jns 0x51e48e5b
push 3
push edi
xor eax, eax
cmp dword [0x51e8bab8], eax
push pe_nt_image_headers32
push eax
lea eax, [ebp - 0x2c]
push eax
jne 0x51e48de1
call dword [sym.imp.USER32.dll_PeekMessageA]
jmp 0x51e48de7
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x51e48da2
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x28]
cmp ecx, 0x200
jb 0x51e48e36
cmp ecx, edi
ja 0x51e48e36
mov edx, dword [ebp - 8]
mov dword [esi + 0x4c], ecx
mov ecx, dword [ebp - 0x24]
mov dword [esi + 0x50], ecx
movsx ecx, ax
mov dword [esi + 0x54], eax
shr eax, 0x10
movsx eax, ax
push esi
mov dword [esi + 0x48], edx
mov dword [ebx], ecx
mov dword [esi + 0x5c], eax
call fcn.51e48116
mov eax, dword [ebp - 0x20]
pop ecx
movsx ecx, ax
shr eax, 0x10
movsx eax, ax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp + 8]
jne 0x51e48da2
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, dword [ebp - 8]
jne 0x51e48e53
call dword [sym.imp.USER32.dll_ReleaseCapture]
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x28], eax
movzx eax, word [ebp - 0xc]
movzx edx, cx
shl eax, 0x10
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0xc]
or eax, edx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x14], ecx
jmp 0x51e48dee
Function at 0x51e50fad
Capabilities:
Identify system language via api

Disassembly:
push esi
mov esi, dword [esp + 8]
mov ax, word [esi]
cmp ax, 0x1f
ja 0x51e50fc3
xor eax, eax
inc eax
jmp 0x51e51120
cmp ax, 0x41
jb 0x51e50fcf
cmp ax, 0x5a
jbe 0x51e50fdb
cmp ax, 0x61
jb 0x51e50fe2
cmp ax, 0x7a
ja 0x51e50fe2
push 4
jmp 0x51e51079
cmp ax, 0x30
jb 0x51e50ff5
cmp ax, 0x39
ja 0x51e50ff5
push 8
jmp 0x51e51079
push esi
call fcn.51e50f9d
test eax, eax
je 0x51e51009
mov eax, 0x10000
jmp 0x51e51120
xor eax, eax
mov ax, word [esi]
push eax
call fcn.51df55c9
test eax, eax
je 0x51e51022
mov eax, 0x400
jmp 0x51e51120
mov ax, word [esi]
cmp ax, 0x370
jb 0x51e51035
cmp ax, 0x3ff
jbe 0x51e510be
cmp ax, 0x400
jb 0x51e51045
cmp ax, 0x4ff
jbe 0x51e510e0
cmp ax, 0x30a0
jb 0x51e51055
cmp ax, 0x30ff
jbe 0x51e510f3
cmp ax, 0x3040
jb 0x51e5106b
cmp ax, 0x309f
ja 0x51e5106b
mov eax, 0x800
jmp 0x51e51120
cmp ax, 0xff65
jb 0x51e5107f
cmp ax, 0xff9f
ja 0x51e5107f
push 0x10
pop eax
jmp 0x51e51120
mov eax, dword [0x51e8b69c]
test eax, eax
jne 0x51e5109a
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
sub ax, 0x412
neg ax
sbb eax, eax
inc eax
jmp 0x51e510ab
xor ecx, ecx
cmp dword [eax + 0x53a8], 0x412
sete cl
mov eax, ecx
test eax, eax
je 0x51e510c5
mov ax, word [esi]
cmp ax, 0x4e00
jb 0x51e510c5
cmp ax, 0x9fff
ja 0x51e510c5
mov eax, 0x2000
jmp 0x51e51120
mov ax, word [esi]
cmp ax, 0x1100
jb 0x51e510d4
cmp ax, 0x11ff
jbe 0x51e510e0
cmp ax, 0x3130
jb 0x51e510e7
cmp ax, 0x318f
ja 0x51e510e7
mov eax, 0x4000
jmp 0x51e51120
cmp ax, 0xac00
jb 0x51e510fa
cmp ax, 0xd7a3
ja 0x51e510fa
mov eax, 0x1000
jmp 0x51e51120
cmp ax, 0x4e00
jb 0x51e5110d
cmp ax, 0x9fff
ja 0x51e5110d
mov eax, 0x8000
jmp 0x51e51120
push eax
call fcn.51e76d20
neg eax
sbb eax, eax
mov ecx, pe_nt_image_headers32
and eax, ecx
add eax, ecx
pop esi
ret 4

Function at 0x51e51ab2
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x51e8b69c]
test eax, eax
jne 0x51e51ad3
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
sub ax, 0x411
neg ax
sbb eax, eax
inc eax
jmp 0x51e51ae4
xor ecx, ecx
cmp dword [eax + 0x53a8], 0x411
sete cl
mov eax, ecx
test eax, eax
je 0x51e51b4d
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x51e51b42
mov ecx, dword [eax]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + 4]
mov dword [ebp - 0xc], ecx
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
push esi
mov dword [ebp - 4], eax
push 2
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], ecx
call dword [sym.imp.GDI32.dll_LPtoDP]
push dword [ebp - 4]
push dword [ebp - 8]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call dword [sym.imp.GDI32.dll_CreateRectRgn]
mov esi, eax
test esi, esi
je 0x51e51b38
push esi
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_SelectClipRgn]
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
pop esi
leave
ret
push 0
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_SelectClipRgn]
leave
ret
Function at 0x51e55a3d
Capabilities:
Identify system language via api

Disassembly:
push ebx
xor ebx, ebx
cmp dword [0x51eb3d08], ebx
jne 0x51e55b6f
mov eax, dword [0x51e8b69c]
cmp eax, ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
push edi
mov dword [0x51eb3d08], 1
mov edi, 0x412
jne 0x51e55aa1
call esi
cmp ax, 0x411
je 0x51e55a8b
call esi
cmp ax, 0x404
je 0x51e55a8b
call esi
cmp ax, di
je 0x51e55a8b
call esi
cmp ax, 0x804
jne 0x51e55ac5
mov eax, dword [0x51e8b69c]
cmp eax, ebx
jne 0x51e55ab4
call esi
sub ax, di
neg ax
sbb eax, eax
inc eax
jmp 0x51e55ac1
cmp dword [eax + 0x53bc], ebx
jne 0x51e55a90
test byte [eax + 0x53b6], 0x3c
je 0x51e55ac5
jmp 0x51e55a90
xor ecx, ecx
cmp dword [eax + 0x53ac], edi
sete cl
mov eax, ecx
cmp eax, ebx
je 0x51e55adf
cmp dword [0x51e8b568], 2
jne 0x51e55b6d
cmp dword [0x51e8a118], 4
jbe 0x51e55b6d
push ebx
push ebx
push 0xfa
call fcn.51e6ccfb
cmp eax, ebx
mov dword [0x51eb3cf4], eax
jne 0x51e55b06
push ebx
push ebx
push 0x1d
call fcn.51e6ccfb
cmp eax, ebx
mov dword [0x51eb3cf4], eax
je 0x51e55b17
push 0x51e55b74
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x51eb3cf8], eax
mov eax, dword [0x51eb3cf8]
cmp eax, ebx
je 0x51e55b61
call eax
cmp eax, ebx
mov dword [0x51eb3cf0], eax
je 0x51e55b61
mov edx, dword [eax]
mov ecx, 0x7d6
push ecx
push ecx
push eax
call dword [edx + 4]
mov eax, dword [0x51eb3cf0]
mov edx, dword [eax]
mov ecx, 0x7de
push ecx
push ecx
push eax
call dword [edx + 4]
mov eax, dword [0x51eb3cf0]
mov edx, dword [eax]
mov ecx, 0x7dd
push ecx
push ecx
push eax
call dword [edx + 4]
add esp, 0x24
jmp 0x51e55b6d
push dword [0x51eb3cf4]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebx
ret