joyce8/EMBER2024-capa huggingface dataset:
Function at 0x51e661f6
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x51e8c348]
push esi
mov esi, dword [eax]
push 0
push esi
mov dword [ebp - 0xc], esi
call fcn.51e17119
pop ecx
pop ecx
call dword [sym.imp.USER32.dll_GetFocus]
cmp eax, esi
jne 0x51e663aa
mov eax, dword [0x51e8c348]
mov ecx, dword [eax]
mov esi, dword [ebp + 0x10]
and dword [ebp - 0x20], 0
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x28], ecx
movzx ecx, bx
movzx edx, di
shl ecx, 0x10
or ecx, edx
mov dword [ebp - 0x1c], ecx
lea ecx, [ebp - 0x28]
push ecx
push 0
push 0x80a
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], ebx
push dword [eax]
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [0x51e8bba0]
mov eax, esi
sub eax, 0x201
je 0x51e662a3
push 2
pop ecx
sub eax, ecx
je 0x51e662a3
dec eax
je 0x51e66297
sub eax, ecx
je 0x51e66297
dec eax
je 0x51e66287
sub eax, ecx
jne 0x51e662b1
mov dword [ebp - 8], 4
mov dword [ebp - 4], 0x208
jmp 0x51e662b1
mov dword [ebp - 8], ecx
mov dword [ebp - 4], 0x205
jmp 0x51e662b1
mov dword [ebp - 8], 1
mov dword [ebp - 4], 0x202
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_SetCapture]
mov esi, 0x20a
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, dword [ebp - 0xc]
jne 0x51e6631b
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, ah
jns 0x51e6631b
push 3
push esi
xor eax, eax
cmp dword [0x51e8bab8], eax
push pe_nt_image_headers32
push eax
lea eax, [ebp - 0x28]
push eax
jne 0x51e662f6
call dword [sym.imp.USER32.dll_PeekMessageA]
jmp 0x51e662fc
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x51e662bf
cmp dword [ebp - 0x24], 0x104
jb 0x51e66335
cmp dword [ebp - 0x24], 0x106
ja 0x51e66335
mov dword [ebp - 0x24], 0x202
jmp 0x51e66321
mov eax, dword [ebp - 4]
mov dword [ebp - 0x24], eax
movzx eax, bx
movzx ecx, di
shl eax, 0x10
or eax, ecx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp - 4]
cmp dword [ebp - 0x24], eax
je 0x51e66383
cmp dword [ebp - 0x24], 0x200
jb 0x51e662bf
cmp dword [ebp - 0x24], esi
ja 0x51e662bf
lea eax, [ebp - 0x28]
push eax
mov eax, dword [0x51e8c348]
push 0
push 0x80a
push dword [eax]
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [0x51e8bba0]
mov eax, dword [ebp - 0x1c]
movsx edi, ax
shr eax, 0x10
movsx ebx, ax
jmp 0x51e662bf
call dword [sym.imp.USER32.dll_ReleaseCapture]
lea eax, [ebp - 0x28]
push eax
mov eax, dword [0x51e8c348]
push 0
push 0x80a
push dword [eax]
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [0x51e8bba0]
pop edi
pop ebx
pop esi
leave
ret
Function at 0x51e66b7c
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x51e8c344]
push ebx
push esi
push edi
push dword [eax]
call fcn.51e1637c
pop ecx
mov dword [ebp - 8], eax
call fcn.51e16d81
mov esi, dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov dword [ebp - 4], eax
xor eax, eax
cmp dword [ebp + 0xc], eax
mov ebx, 0x404
sete al
mov edi, eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [0x51e8b69c]
test eax, eax
jne 0x51e66c2c
call esi
cmp ax, 0x411
je 0x51e66be0
call esi
cmp ax, bx
je 0x51e66be0
call esi
cmp ax, 0x412
je 0x51e66be0
call esi
cmp ax, 0x804
jne 0x51e66c35
mov ecx, dword [ebp + 8]
cmp ecx, dword [ebp - 4]
mov edi, 0xffff
jae 0x51e66d2f
mov eax, dword [0x51e8a120]
test eax, eax
mov dword [ebp + 0xc], edi
je 0x51e66c0f
mov eax, dword [eax + 0x58]
test eax, eax
je 0x51e66c0f
mov edx, dword [ebp - 8]
lea ecx, [edx + ecx*2]
push ecx
call eax
mov edi, eax
mov eax, dword [0x51e8b69c]
test eax, eax
jne 0x51e66cd0
call esi
sub ax, bx
neg ax
sbb eax, eax
inc eax
jmp 0x51e66cdd
cmp dword [eax + 0x53b8], 0
jne 0x51e66be0
mov eax, dword [0x51e8c348]
cmp dword [eax + 0x15c], 0
je 0x51e66c6a
mov eax, dword [ebp - 4]
cmp dword [ebp + 8], eax
jae 0x51e66d2f
push pe_nt_image_headers32
push 0
lea eax, [ebp + 8]
push eax
push dword [ebp - 8]
call fcn.51e6a238
add esp, 0x10
jmp 0x51e66d2f
mov eax, dword [ebp + 8]
jmp 0x51e66cb8
mov ecx, dword [ebp - 8]
xor esi, esi
mov si, word [ecx + eax*2]
push esi
call fcn.51e663d2
test eax, eax
pop ecx
je 0x51e66ca1
cmp si, 0xa
je 0x51e66cbf
cmp si, 0xd
je 0x51e66cbf
test edi, edi
jne 0x51e66c9c
cmp dword [ebp + 0xc], edi
je 0x51e66d2f
xor edi, edi
inc edi
jmp 0x51e66cb1
test edi, edi
je 0x51e66caf
cmp dword [ebp + 0xc], 0
jne 0x51e66d2f
xor edi, edi
mov eax, dword [ebp + 8]
inc eax
mov dword [ebp + 8], eax
cmp eax, dword [ebp - 4]
jb 0x51e66c6f
jmp 0x51e66d2f
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0xc]
jne 0x51e66d32
push eax
call fcn.51e66695
pop ecx
jmp 0x51e66d32
xor ecx, ecx
cmp dword [eax + 0x53a8], ebx
sete cl
mov eax, ecx
test eax, eax
je 0x51e66cec
push edi
call fcn.51e663ad
add esp, 4
mov edi, eax
test dword [ebp + 0xc], edi
je 0x51e66d01
mov ecx, dword [ebp + 8]
inc ecx
cmp ecx, dword [ebp - 4]
mov dword [ebp + 8], ecx
jb 0x51e66bf1
mov ecx, dword [ebp + 8]
jmp 0x51e66d2a
mov eax, dword [0x51e8a120]
test eax, eax
je 0x51e66d2f
mov eax, dword [eax + 0x5c]
test eax, eax
je 0x51e66d2f
mov edx, dword [ebp - 8]
lea ecx, [edx + ecx*2]
push ecx
call eax
test eax, eax
je 0x51e66d2f
mov ecx, dword [ebp + 8]
inc ecx
mov dword [ebp + 8], ecx
cmp ecx, dword [ebp - 4]
jb 0x51e66d06
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x51e671c5
Capabilities:
Identify system language via api

Disassembly:
mov eax, dword [0x51e8c348]
test byte [eax + 8], 4
je 0x51e672db
mov ecx, dword [0x51e8b69c]
mov edx, dword [ecx + 0x30]
push ebx
push ebp
push esi
mov esi, dword [eax + 0x70]
mov dword [eax + 0x70], edx
mov ebx, dword [eax + 0x6c]
push edi
mov edi, dword [eax + 0x68]
mov dword [ecx + 0x30], esi
call fcn.51e16c00
mov eax, dword [0x51e8c348]
push dword [eax]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x51e6720b
xor ebp, ebp
inc ebp
jmp 0x51e6723b
mov eax, dword [0x51e8c348]
push 3
push esi
push dword [eax + 0x70]
push esi
call dword [sym.imp.GDI32.dll_CombineRgn]
mov ebp, eax
cmp ebp, 2
jl 0x51e6723b
mov eax, dword [0x51e8c348]
push dword [eax]
call dword [sym.imp.USER32.dll_HideCaret]
push 0
push esi
call fcn.51e15fe6
pop ecx
pop ecx
mov ecx, dword [0x51e8c348]
mov eax, dword [ecx + 0x68]
cmp eax, edi
jne 0x51e6724d
cmp dword [ecx + 0x6c], ebx
je 0x51e672c5
test byte [ecx + 8], 8
je 0x51e6726e
cmp dword [ecx + 0x160], 0
je 0x51e67264
cmp eax, 2
jle 0x51e67264
add eax, 0xfffffffe
push dword [ecx + 0x6c]
push eax
call dword [sym.imp.USER32.dll_SetCaretPos]
mov eax, dword [0x51e8b69c]
test eax, eax
jne 0x51e6729f
mov esi, dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
call esi
cmp ax, 0x411
je 0x51e672b1
call esi
cmp ax, 0x404
je 0x51e672b1
call esi
cmp ax, 0x412
je 0x51e672b1
call esi
cmp ax, 0x804
jne 0x51e672c5
jmp 0x51e672b1
cmp dword [eax + 0x53bc], 0
jne 0x51e672b1
test byte [eax + 0x53b6], 0x3c
je 0x51e672c5
mov eax, dword [0x51e8a120]
test eax, eax
je 0x51e672c5
mov eax, dword [eax + 0x30]
test eax, eax
je 0x51e672c5
push 1
call eax
pop edi
pop esi
cmp ebp, 2
pop ebp
pop ebx
jl 0x51e672db
mov eax, dword [0x51e8c348]
push dword [eax]
call dword [sym.imp.USER32.dll_ShowCaret]
ret
Function at 0x51e6c77b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
xor edi, edi
cmp dword [0x51e874ec], edi
je 0x51e6c7ad
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push edi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
jmp 0x51e6c916
cmp dword [ebp + 0x10], edi
push ebx
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x10], edi
je 0x51e6c7dc
mov eax, dword [ebx]
shl eax, 1
push eax
lea eax, [ebp - 4]
push eax
call fcn.51e776f3
test eax, eax
jne 0x51e6c7d3
push 8
pop eax
jmp 0x51e6c915
mov eax, dword [ebx]
shl eax, 1
mov dword [ebp - 0x10], eax
jmp 0x51e6c7df
mov dword [ebp - 4], edi
push esi
mov esi, dword [ebp + 0x20]
cmp esi, edi
je 0x51e6c7ee
mov eax, dword [esi]
mov dword [ebp - 0xc], eax
jmp 0x51e6c7f1
mov dword [ebp - 0xc], edi
mov eax, dword [ebp + 0x18]
cmp eax, edi
je 0x51e6c7fd
mov eax, dword [eax]
mov dword [ebp + 0x14], eax
mov edi, dword [ebp + 0x1c]
test edi, edi
je 0x51e6c81b
push dword [esi]
lea eax, [ebp - 8]
push eax
call fcn.51e776f3
test eax, eax
jne 0x51e6c81f
push 8
pop eax
jmp 0x51e6c914
and dword [ebp - 8], 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
lea eax, [ebp + 0x14]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
mov dword [ebp + 0x20], eax
jne 0x51e6c8e9
mov eax, dword [ebp - 8]
test eax, eax
je 0x51e6c8a1
cmp dword [ebp + 0x14], 1
jne 0x51e6c87c
mov ecx, dword [esi]
shr ecx, 1
push ecx
push edi
push eax
call fcn.51e7461f
test eax, eax
je 0x51e6c873
push edi
call fcn.51e03933
lea eax, [eax + eax + 2]
jmp 0x51e6c8b8
mov eax, dword [ebp - 0xc]
add eax, eax
mov dword [esi], eax
jmp 0x51e6c8e2
cmp dword [ebp + 0x14], 7
jne 0x51e6c88d
push edi
push eax
call fcn.51e74877
shl eax, 1
jmp 0x51e6c8b8
mov ecx, dword [esi]
mov esi, eax
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 0x51e6c8ba
test esi, esi
je 0x51e6c8ba
cmp dword [ebp + 0x14], 1
mov eax, dword [ebp - 0xc]
mov dword [esi], eax
je 0x51e6c8b6
cmp dword [ebp + 0x14], 7
jne 0x51e6c8ba
add eax, eax
mov dword [esi], eax
cmp dword [ebp - 4], 0
je 0x51e6c8e9
push dword [ebx]
push dword [ebp + 0x10]
push dword [ebp - 4]
call fcn.51e7461f
test eax, eax
je 0x51e6c8dd
push dword [ebp + 0x10]
call fcn.51e03933
mov dword [ebx], eax
jmp 0x51e6c8e9
mov eax, dword [ebp - 0x10]
mov dword [ebx], eax
mov dword [ebp + 0x20], 0xea
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x51e6c8f5
mov ecx, dword [ebp + 0x14]
mov dword [eax], ecx
cmp dword [ebp - 8], 0
je 0x51e6c903
push dword [ebp - 8]
call fcn.51e777ec
cmp dword [ebp - 4], 0
je 0x51e6c911
push dword [ebp - 4]
call fcn.51e777ec
mov eax, dword [ebp + 0x20]
pop esi
pop ebx
pop edi
leave
ret 0x1c
Function at 0x51e6cc4a
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x51e8c240]
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 8]
call fcn.51e6ca90
push dword [ebp + 0x10]
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.51e6cc0a
mov esi, eax
test esi, esi
jne 0x51e6ccd7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jl 0x51e6ccec
cmp eax, 3
jle 0x51e6ccb1
cmp eax, 0x1f
je 0x51e6ccb1
cmp eax, 0x7e
je 0x51e6ccb1
cmp eax, 0xc1
je 0x51e6ccb1
cmp eax, 0x3ee
je 0x51e6ccb1
cmp eax, 0x485
jne 0x51e6ccec
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 8]
call fcn.51e6ca90
push dword [ebp + 0x10]
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.51e6cc0a
mov esi, eax
test esi, esi
je 0x51e6ccec
cmp dword [ebp + 0x14], 0
je 0x51e6ccec
push dword [ebp + 0x14]
lea eax, [ebp - 0x20c]
push eax
call fcn.51e03332
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
call fcn.51e03d50
leave
ret 0x10

Function at 0x51e6d24a
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x98
mov eax, dword [0x51e8c240]
and dword [ebp - 0x24], 0
push esi
push edi
push 0x24
mov dword [ebp + 0x70], eax
xor eax, eax
xor esi, esi
cmp dword [0x51eb7a5c], esi
pop ecx
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
je 0x51e6d28d
mov eax, dword [ebp + 0x7c]
test eax, eax
je 0x51e6d286
mov ecx, dword [0x51eb7a58]
mov dword [eax], ecx
mov eax, dword [0x51eb7a54]
jmp 0x51e6d2ec
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x24], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
xor ecx, ecx
xor eax, eax
inc ecx
cmp dword [ebp - 0x14], ecx
mov dword [0x51eb7a58], eax
jne 0x51e6d2b9
cmp dword [ebp - 0x20], 4
ja 0x51e6d2d5
cmp dword [ebp - 0x1c], 0xa
jmp 0x51e6d2d1
cmp dword [ebp - 0x14], 2
jne 0x51e6d2d5
xor eax, eax
cmp dword [ebp - 0x20], 5
sete al
cmp dword [ebp - 0x20], 5
mov dword [0x51eb7a58], eax
ja 0x51e6d2d5
mov esi, ecx
mov dword [0x51eb7a5c], ecx
mov ecx, dword [ebp + 0x7c]
test ecx, ecx
je 0x51e6d2e4
mov dword [ecx], eax
mov dword [0x51eb7a54], esi
mov eax, esi
mov ecx, dword [ebp + 0x70]
pop edi
pop esi
call fcn.51e03d50
add ebp, 0x74
leave
ret

Function at 0x51e6d379
Capabilities:
Get keyboard layout

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyboardLayoutList]
push 2
pop ebp
push 0
push 0
call edi
mov esi, eax
push ebp
shl eax, 2
push eax
call fcn.51e774f5
mov ebx, eax
test ebx, ebx
je 0x51e6d3db
push ebx
push esi
mov dword [esp + 0x18], 1
call edi
xor edi, edi
test esi, esi
jbe 0x51e6d3d5
push dword [ebx + edi*4]
call fcn.51e6d34c
mov ebp, eax
test ebp, ebp
jle 0x51e6d3c9
cmp ebp, 2
jg 0x51e6d3c9
and dword [esp + 0x10], 0
cmp dword [esp + 0x10], 0
je 0x51e6d3d5
inc edi
cmp edi, esi
jb 0x51e6d3b1
push ebx
call fcn.51e77526
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
pop ecx
ret
Function at 0x51e6e4f8
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov dword [ebp - 4], eax
call fcn.51e6dd10
test eax, eax
je 0x51e6e525
push dword [ebp - 4]
call dword [0x51eb79d4]
test eax, eax
je 0x51e6e525
cmp dword [ebp + 0x10], 0
jne 0x51e6e52c
xor eax, eax
jmp 0x51e6e5cf
push ebx
push esi
push edi
push dword [ebp + 8]
call dword [0x51eb79b4]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], ebx
mov edi, 0x200
and dword [ebp - 0xc], edi
push dword [ebp - 0xc]
mov dword [ebp + 0xc], ebx
mov esi, 0x800
and dword [ebp + 0xc], esi
push dword [ebp + 0xc]
mov dword [ebp - 8], eax
push dword [ebp + 0x10]
call fcn.51e6d404
add esp, 0xc
cmp dword [ebp + 0xc], 0
je 0x51e6e57b
push dword [ebp - 4]
push dword [ebp + 0x10]
push ebx
push esi
push dword [ebp - 8]
call fcn.51e6d486
cmp dword [ebp - 0xc], 0
je 0x51e6e591
push dword [ebp - 4]
push dword [ebp + 0x10]
push ebx
push edi
push dword [ebp - 8]
call fcn.51e6d486
test bl, 8
je 0x51e6e5a7
push dword [ebp - 4]
push dword [ebp + 0x10]
push ebx
push 8
push dword [ebp - 8]
call fcn.51e6d486
test bl, 1
je 0x51e6e5bd
push dword [ebp - 4]
push dword [ebp + 0x10]
push ebx
push 1
push dword [ebp - 8]
call fcn.51e6d486
push dword [ebp - 8]
push dword [ebp + 8]
call dword [0x51eb79ec]
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret 0xc
Function at 0x51e6f131
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
cmp dword [0x51e874ec], ebx
je 0x51e6f15d
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
jmp 0x51e6f26c
cmp dword [ebp + 0xc], ebx
je 0x51e6f179
push dword [ebp + 0xc]
call fcn.51e7482d
cmp eax, ebx
mov dword [ebp - 0xc], eax
jne 0x51e6f17c
push 8
pop eax
jmp 0x51e6f26c
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x51e6f188
mov eax, dword [eax]
mov dword [ebp + 0xc], eax
push esi
mov esi, dword [ebp + 0x18]
push edi
mov edi, dword [ebp + 0x14]
cmp edi, ebx
je 0x51e6f1ab
push dword [esi]
lea eax, [ebp - 8]
push eax
call fcn.51e776f3
test eax, eax
jne 0x51e6f1ae
push 8
pop eax
jmp 0x51e6f26a
mov dword [ebp - 8], ebx
cmp esi, ebx
mov dword [ebp - 4], ebx
je 0x51e6f1ba
mov eax, dword [esi]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
lea eax, [ebp + 0xc]
push eax
push ebx
push dword [ebp - 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, eax
test ebx, ebx
jne 0x51e6f240
mov eax, dword [ebp - 8]
test eax, eax
je 0x51e6f227
cmp dword [ebp + 0xc], 1
jne 0x51e6f1ff
mov ecx, dword [esi]
shr ecx, 1
push ecx
push edi
push dword [ebp - 4]
push eax
call fcn.51e74666
shl eax, 1
mov dword [esi], eax
jne 0x51e6f240
push 0x7a
pop ebx
jmp 0x51e6f240
cmp dword [ebp + 0xc], 7
jne 0x51e6f210
push edi
push eax
call fcn.51e74877
shl eax, 1
jmp 0x51e6f23e
mov ecx, dword [ebp - 4]
mov dword [esi], ecx
mov esi, eax
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 0x51e6f240
test esi, esi
je 0x51e6f240
cmp dword [ebp + 0xc], 1
mov eax, dword [ebp - 4]
mov dword [esi], eax
je 0x51e6f23c
cmp dword [ebp + 0xc], 7
jne 0x51e6f240
add eax, eax
mov dword [esi], eax
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x51e6f24c
mov ecx, dword [ebp + 0xc]
mov dword [eax], ecx
cmp dword [ebp - 8], 0
je 0x51e6f25a
push dword [ebp - 8]
call fcn.51e777ec
cmp dword [ebp - 0xc], 0
je 0x51e6f268
push dword [ebp - 0xc]
call fcn.51e777ec
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x51e6f2e1
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
cmp dword [0x51e874ec], 0
mov eax, dword [0x51e8c240]
mov dword [ebp - 4], eax
je 0x51e6f318
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetDateFormatW]
jmp 0x51e6f39a
push esi
xor esi, esi
cmp dword [ebp + 0x14], esi
je 0x51e6f32e
push dword [ebp + 0x14]
call fcn.51e7482d
mov esi, eax
test esi, esi
je 0x51e6f399
push edi
push dword [ebp + 0x1c]
lea eax, [ebp - 0x20c]
push eax
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetDateFormatA]
mov edi, eax
test edi, edi
jle 0x51e6f38c
cmp dword [ebp + 0x18], 0
je 0x51e6f38c
cmp dword [ebp + 8], 0x400
jne 0x51e6f366
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
jmp 0x51e6f369
mov eax, dword [ebp + 8]
lea ecx, [ebp + 0x14]
push ecx
lea ecx, [ebp + 0xb]
push ecx
push eax
call fcn.51df8206
add esp, 0xc
push dword [ebp + 0x18]
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0x14]
call fcn.51e747f6
test esi, esi
je 0x51e6f396
push esi
call fcn.51e777ec
mov eax, edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
call fcn.51e03d50
leave
ret 0x18
Function at 0x51e710dd
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0x1c]
push ebx
mov ebx, dword [ebp + 0x20]
push esi
mov esi, dword [ebp + 0x14]
xor ecx, ecx
add ebx, ebx
mov dword [ebp - 0x10], esi
and dword [ebp - 0x10], 0x10
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
lea edi, [ebx + eax]
mov dword [ebp - 0xc], ecx
jne 0x51e711ba
cmp dword [0x51e8b564], ecx
jne 0x51e7111c
cmp dword [0x51e8c338], ecx
je 0x51e71149
push ecx
push ecx
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_GetTextCharsetInfo]
cmp eax, 0xcc
je 0x51e711b8
cmp eax, 0xa1
je 0x51e711b8
cmp eax, 0xa2
je 0x51e711b8
cmp eax, 0xba
je 0x51e711b8
xor ecx, ecx
cmp dword [ebp + 0x1c], edi
jae 0x51e711ba
mov eax, dword [ebp - 4]
cmp word [eax], 0xb7
jne 0x51e711a6
cmp dword [ebp - 0xc], ecx
jne 0x51e7119e
push 2
push ebx
call fcn.51e774f5
test eax, eax
mov dword [ebp - 8], eax
je 0x51e711b1
mov esi, dword [ebp + 0x1c]
mov ecx, ebx
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp + 0x1c]
mov esi, dword [ebp + 0x14]
sar ecx, 1
lea ecx, [eax + ecx*2]
mov dword [ebp - 4], ecx
lea edi, [ebx + eax]
mov dword [ebp - 0xc], 1
xor ecx, ecx
mov eax, dword [ebp - 4]
mov word [eax], 0x2219
add dword [ebp - 4], 2
cmp dword [ebp - 4], edi
jb 0x51e7114e
jmp 0x51e711ba
xor eax, eax
jmp 0x51e71281
xor ecx, ecx
cmp dword [0x51e8b564], ecx
jne 0x51e711ca
cmp dword [0x51e8c338], ecx
je 0x51e7120e
cmp dword [0x51eb7938], ecx
je 0x51e7120e
cmp dword [0x51eb7a64], ecx
jne 0x51e71216
test esi, 0x40000000
je 0x51e711e7
cmp dword [ebp - 0x10], ecx
je 0x51e71244
cmp dword [ebp - 0xc], ecx
mov eax, dword [ebp - 8]
jne 0x51e711f2
mov eax, dword [ebp + 0x1c]
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push eax
push dword [ebp + 0x18]
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [0x51eb793c]
jmp 0x51e7126f
cmp dword [0x51eb7a64], ecx
je 0x51e71244
cmp dword [0x51eb794c], ecx
je 0x51e71244
push dword [ebp + 0x24]
and esi, 0xbfffffff
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.51e70ede
add esp, 0x20
jmp 0x51e7126f
cmp dword [ebp - 0xc], ecx
mov eax, dword [ebp - 8]
jne 0x51e7124f
mov eax, dword [ebp + 0x1c]
push dword [ebp + 0x24]
and esi, 0xbfffffff
push dword [ebp + 0x20]
push eax
push dword [ebp + 0x18]
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.GDI32.dll_ExtTextOutW]
cmp dword [ebp - 8], 0
mov esi, eax
je 0x51e7127f
push dword [ebp - 8]
call fcn.51e77526
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x51e73a7d
Capabilities:
Identify system language via api

Disassembly:
push ecx
mov eax, dword [esp + 8]
imul eax, eax, 0x38
cmp word [0x51e8b554], 1
jne 0x51e73a97
mov eax, dword [eax + 0x51e01c54]
jmp 0x51e73a9d
mov eax, dword [eax + 0x51e01c58]
cmp eax, 0x3c0052
mov dword [esp], eax
push esi
jne 0x51e73b5b
mov ecx, dword [0x51e8b69c]
cmp word [ecx + 0x537c], 0
jne 0x51e73af1
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
mov esi, 0x409
cmp eax, esi
jne 0x51e73aeb
call fcn.51df3f3b
cmp eax, esi
je 0x51e73aeb
call fcn.51df3f3b
movzx eax, ax
push eax
push dword [esp + 0x14]
call fcn.51e6c92b
jmp 0x51e73b6f
mov ecx, dword [0x51e8b69c]
test ecx, ecx
mov esi, dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
push ebx
push ebp
push edi
mov ebx, 0x412
mov ebp, 0x404
mov edi, 0x411
jne 0x51e73b47
call esi
cmp ax, di
je 0x51e73b2a
call esi
cmp ax, bp
je 0x51e73b2a
call esi
cmp ax, bx
je 0x51e73b2a
call esi
cmp ax, 0x804
jne 0x51e73b50
mov ecx, dword [0x51e8b69c]
test ecx, ecx
jne 0x51e73b76
call esi
mov ecx, dword [0x51e8b69c]
sub ax, di
neg ax
sbb eax, eax
inc eax
jmp 0x51e73b81
cmp dword [ecx + 0x53b8], 0
jne 0x51e73b30
mov dword [esp + 0x10], 0x3c006c
pop edi
pop ebp
pop ebx
push dword [esp + 0x14]
push dword [esp + 0x14]
push dword [esp + 0xc]
call fcn.51df6ec4
add esp, 0xc
mov eax, dword [esp + 0x10]
pop esi
pop ecx
ret
xor eax, eax
cmp dword [ecx + 0x53a8], edi
sete al
test eax, eax
je 0x51e73b8f
mov dword [esp + 0x10], 0x3c01af
jmp 0x51e73b58
test ecx, ecx
jne 0x51e73ba6
call esi
mov ecx, dword [0x51e8b69c]
sub ax, bx
neg ax
sbb eax, eax
inc eax
jmp 0x51e73bb1
xor eax, eax
cmp dword [ecx + 0x53a8], ebx
sete al
test eax, eax
je 0x51e73bbf
mov dword [esp + 0x10], 0x3c01b0
jmp 0x51e73b58
test ecx, ecx
jne 0x51e73bd6
call esi
mov ecx, dword [0x51e8b69c]
sub ax, bp
neg ax
sbb eax, eax
inc eax
jmp 0x51e73be1
xor eax, eax
cmp dword [ecx + 0x53a8], ebp
sete al
test eax, eax
je 0x51e73bf2
mov dword [esp + 0x10], 0x3c01b1
jmp 0x51e73b58
test ecx, ecx
jne 0x51e73c04
call esi
sub ax, 0x804
neg ax
sbb eax, eax
inc eax
jmp 0x51e73c13
xor eax, eax
cmp dword [ecx + 0x53a8], 0x804
sete al
test eax, eax
je 0x51e73b58
mov dword [esp + 0x10], 0x3c01b2
jmp 0x51e73b58

Function at 0x51e742dd
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
test eax, 3
je 0x51e74311
cmp byte [eax], 0
je 0x51e74355
lea eax, [eax + 1]
test eax, 3
je 0x51e74311
cmp byte [eax], 0
je 0x51e74355
lea eax, [eax + 1]
test eax, 3
je 0x51e74311
cmp byte [eax], 0
je 0x51e74355
lea eax, [eax + 1]
mov edx, dword [eax]
lea eax, [eax + 4]
mov ecx, edx
sub edx, 0x1010101
xor edx, ecx
and edx, 0x80808080
je 0x51e74311
test cl, cl
lea eax, [eax - 4]
je 0x51e74355
test ecx, 0xff00
lea eax, [eax + 1]
je 0x51e74355
test ecx, 0xff0000
lea eax, [eax + 1]
je 0x51e74355
test ecx, 0xff000000
lea eax, [eax + 1]
je 0x51e74355
lea eax, [eax + 1]
jmp 0x51e74311
sub eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4