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

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x51eb3d00], 0
je 0x51e5642d
push edi
mov edi, dword [ebp + 0xc]
cmp dword [0x51eb3cfc], edi
je 0x51e5642c
mov eax, dword [0x51e8b69c]
test eax, eax
jne 0x51e563d4
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
sub ax, 0x411
neg ax
sbb eax, eax
inc eax
jmp 0x51e563e5
xor ecx, ecx
cmp dword [eax + 0x53ac], 0x411
sete cl
mov eax, ecx
test eax, eax
je 0x51e5642c
push esi
push dword [ebp + 8]
call sub.IMM32.dll_ImmGetContext
mov esi, eax
test esi, esi
je 0x51e56425
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 0xc]
push eax
push esi
call sub.IMM32.dll_ImmGetConversionStatus
mov eax, edi
neg eax
sbb eax, eax
and eax, 0xfffffff8
add eax, 8
push eax
push dword [ebp + 0xc]
push esi
call sub.IMM32.dll_ImmSetConversionStatus
push esi
push dword [ebp + 8]
call sub.IMM32.dll_ImmReleaseContext
mov dword [0x51eb3cfc], edi
pop esi
pop edi
leave
ret 8

Function at 0x51e5659a
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 8]
call fcn.51e55fd8
push dword [ebp + 8]
mov esi, eax
call fcn.51e56038
push dword [ebp + 8]
mov edi, eax
call fcn.51e5625b
test esi, esi
mov ebx, eax
je 0x51e566ea
test edi, edi
je 0x51e566e6
mov ecx, dword [0x51e8b69c]
test ecx, ecx
mov esi, dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
jne 0x51e565f2
call esi
mov ecx, dword [0x51e8b69c]
sub ax, 0x411
neg ax
sbb eax, eax
inc eax
jmp 0x51e56601
xor eax, eax
cmp dword [ecx + 0x53ac], 0x411
sete al
test eax, eax
je 0x51e56622
test bl, 1
je 0x51e5666f
test bl, 2
je 0x51e5661b
and bl, 8
neg bl
sbb bl, bl
add ebx, 6
jmp 0x51e5665c
mov al, 4
jmp 0x51e566f1
test ecx, ecx
jne 0x51e5663a
call esi
mov ecx, dword [0x51e8b69c]
sub ax, 0x412
neg ax
sbb eax, eax
inc eax
jmp 0x51e56649
xor eax, eax
cmp dword [ecx + 0x53ac], 0x412
sete al
test eax, eax
je 0x51e5667b
test bl, 1
jne 0x51e56663
and bl, 8
neg bl
sbb bl, bl
add ebx, 0xa
mov al, bl
jmp 0x51e566f1
test bl, 0x40
je 0x51e5666f
mov al, 0xb
jmp 0x51e566f1
and bl, 8
neg bl
sbb bl, bl
add ebx, 8
jmp 0x51e5665c
test ecx, ecx
jne 0x51e56693
call esi
mov ecx, dword [0x51e8b69c]
sub ax, 0x804
neg ax
sbb eax, eax
inc eax
jmp 0x51e566a2
xor eax, eax
cmp dword [ecx + 0x53ac], 0x804
sete al
test eax, eax
jne 0x51e566cb
test ecx, ecx
jne 0x51e566b8
call esi
sub ax, 0x404
neg ax
sbb eax, eax
inc eax
jmp 0x51e566c7
xor eax, eax
cmp dword [ecx + 0x53ac], 0x404
sete al
test eax, eax
je 0x51e566ee
mov al, 1
test al, bl
je 0x51e566e2
cmp dword [0x51eb3c64], 0
je 0x51e566f1
test bl, bl
jns 0x51e566f1
add al, 0xc
jmp 0x51e566f1
mov al, 8
jmp 0x51e566f1
mov al, 2
jmp 0x51e566f1
mov al, 3
jmp 0x51e566f1
mov al, byte [ebp + 0xb]
cmp dword [0x51eb3cfc], 0
pop edi
pop esi
pop ebx
je 0x51e566ff
or al, 0x10
pop ebp
ret 4
Function at 0x51e56774
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
cmp dword [0x51eb3d00], 0
je 0x51e56875
mov ecx, dword [0x51e8b69c]
test ecx, ecx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
jne 0x51e567ac
call esi
mov ecx, dword [0x51e8b69c]
sub ax, 0x404
neg ax
sbb eax, eax
inc eax
jmp 0x51e567bb
xor eax, eax
cmp dword [ecx + 0x53ac], 0x404
sete al
test eax, eax
jne 0x51e567e8
test ecx, ecx
jne 0x51e567d1
call esi
sub ax, 0x804
neg ax
sbb eax, eax
inc eax
jmp 0x51e567e0
xor eax, eax
cmp dword [ecx + 0x53ac], 0x804
sete al
test eax, eax
je 0x51e56874
cmp dword [0x51eb3c5c], 0
push ebx
push dword [ebp + 8]
je 0x51e56838
call sub.IMM32.dll_ImmGetContext
mov ebx, eax
test ebx, ebx
je 0x51e56869
push edi
mov edi, dword [ebp + 0x14]
xor esi, esi
add edi, 0xa
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x3c]
push eax
push ebx
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], 0x40
mov dword [ebp - 0x30], edi
call sub.IMM32.dll_ImmSetCandidateWindow
inc esi
cmp esi, 4
jl 0x51e56809
push ebx
push dword [ebp + 8]
call sub.IMM32.dll_ImmReleaseContext
pop edi
jmp 0x51e56869
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x1c], 2
mov dword [ebp - 0x14], eax
call sub.IMM32.dll_ImmGetContext
mov esi, eax
test esi, esi
je 0x51e56869
lea eax, [ebp - 0x1c]
push eax
push esi
call sub.IMM32.dll_ImmSetCompositionWindow
push esi
push dword [ebp + 8]
call sub.IMM32.dll_ImmReleaseContext
push 0
push dword [ebp + 8]
call fcn.51e5639c
pop ebx
pop esi
leave
ret 0x10
Function at 0x51e5728e
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
cmp byte [ebp + 0x10], 0xf
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x14]
jne 0x51e5733d
mov eax, dword [ebp + 0xc]
dec eax
je 0x51e57334
sub eax, 7
je 0x51e572c2
dec eax
dec eax
je 0x51e572dd
dec eax
dec eax
je 0x51e572dd
sub eax, 3
je 0x51e57334
sub eax, 0x58
mov eax, dword [0x51e8b69c]
test eax, eax
jne 0x51e57316
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
sub ax, 0x412
neg ax
sbb eax, eax
inc eax
jmp 0x51e57327
mov eax, dword [0x51e8b69c]
test eax, eax
jne 0x51e572f8
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
sub ax, 0x412
neg ax
sbb eax, eax
inc eax
jmp 0x51e57309
xor ecx, ecx
cmp dword [eax + 0x53ac], 0x412
sete cl
mov eax, ecx
test eax, eax
push edi
je 0x51e57312
push 0xa
jmp 0x51e57337
push 1
jmp 0x51e57337
xor ecx, ecx
cmp dword [eax + 0x53ac], 0x412
sete cl
mov eax, ecx
test eax, eax
push edi
je 0x51e57330
push 8
jmp 0x51e57337
push 2
jmp 0x51e57337
push edi
push 3
push esi
call fcn.51e5698a
cmp dword [ebp + 0xc], 2
jb 0x51e57352
cmp dword [ebp + 0xc], 7
ja 0x51e57352
push edi
push 3
push esi
call fcn.51e5698a
pop edi
pop esi
pop ebp
ret 0x10
Function at 0x51e57bc1
Capabilities:
Link many functions at runtime

Disassembly:
sub esp, 0x1c
push ebx
xor ebx, ebx
cmp dword [0x51eb71b0], ebx
je 0x51e57bd9
mov eax, dword [0x51eb720c]
jmp 0x51e57d69
push ebp
call fcn.51e57b61
mov ebp, dword [sym.imp.KERNEL32.dll_SetErrorMode]
push 0x8000
call ebp
push ebx
push ebx
push 0x20
mov dword [esp + 0x14], eax
call fcn.51e6ccfb
cmp eax, ebx
mov dword [0x51eb3d50], eax
je 0x51e57d47
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x51e57e18
push eax
call esi
cmp eax, ebx
mov dword [0x51eb3d20], eax
je 0x51e57c2a
call fcn.51e6c91b
push eax
call dword [0x51eb3d20]
push 0x51e57e04
push dword [0x51eb3d50]
call esi
cmp eax, ebx
mov dword [0x51eb3d3c], eax
je 0x51e57d41
push 0x51e57df0
push dword [0x51eb3d50]
call esi
cmp eax, ebx
mov dword [0x51eb3d18], eax
je 0x51e57d41
push 0x51e57ddc
push dword [0x51eb3d50]
call esi
cmp eax, ebx
mov dword [0x51eb3d14], eax
je 0x51e57d41
push 0x51e57dc8
push dword [0x51eb3d50]
call esi
cmp eax, ebx
mov dword [0x51eb3d30], eax
je 0x51e57d41
push 0x51e57dac
push dword [0x51eb3d50]
call esi
cmp eax, ebx
mov dword [0x51eb3d28], eax
je 0x51e57d41
push 0x51e57d90
push dword [0x51eb3d50]
call esi
cmp eax, ebx
mov dword [0x51eb3d2c], eax
je 0x51e57d41
push 0x51e57d80
push dword [0x51eb3d50]
call esi
cmp eax, ebx
mov dword [0x51eb3d34], eax
je 0x51e57d41
push 0x51e57d70
push dword [0x51eb3d50]
call esi
cmp eax, ebx
mov dword [0x51eb3d38], eax
je 0x51e57d41
push ebx
push ebx
push ebx
call fcn.51e6ccfb
cmp eax, ebx
mov dword [0x51eb3d4c], eax
je 0x51e57d41
push edi
mov dword [esp + 0x14], ebx
xor eax, eax
lea edi, [esp + 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.51e6c91b
mov dword [esp + 0x14], eax
call fcn.51e6c91b
call fcn.51e6a1d7
test eax, eax
pop edi
je 0x51e57d35
push ebx
call fcn.51e6a384
pop ecx
call eax
mov dword [0x51eb7918], eax
mov dword [0x51eb720c], 1
jmp 0x51e57d46
call fcn.51e57ba1
pop esi
push dword [esp + 8]
call ebp
mov ecx, dword [0x51eb720c]
cmp ecx, ebx
pop ebp
jne 0x51e57d5d
call fcn.51e57b61
mov dword [0x51eb71b0], 1
mov eax, ecx
pop ebx
add esp, 0x1c
ret
Function at 0x51e5e82a
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [0x51e8bbdc], ebx
push edi
je 0x51e5ea4d
cmp byte [0x51e8bc20], bl
jne 0x51e5ea4d
call dword [sym.imp.USER32.dll_GetCapture]
cmp eax, dword [0x51e8bbe4]
jne 0x51e5ea40
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ah, ah
jns 0x51e5ea40
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.51e5e473
cmp byte [0x51e8bc0c], bl
pop ecx
pop ecx
mov ecx, edx
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x10], ecx
jne 0x51e5e8cc
test byte [0x51e8bbe0], 4
je 0x51e5e99e
sub eax, dword [0x51e8bc24]
mov edx, dword [0x51e8bbd0]
sub ecx, dword [0x51e8bc28]
cmp eax, edx
jg 0x51e5e8c5
neg edx
cmp eax, edx
jl 0x51e5e8c5
mov eax, dword [0x51e8bbd4]
cmp ecx, eax
jg 0x51e5e8c5
neg eax
cmp ecx, eax
jge 0x51e5e9b6
mov byte [0x51e8bc0c], 1
push esi
push 1
call fcn.51e5e4fc
mov al, byte [0x51e8bbe0]
test al, 0x20
mov edi, dword [ebp + 0xc]
mov edx, dword [0x51e8bbe0]
pop ecx
mov esi, 0x200
je 0x51e5e924
test esi, edx
je 0x51e5e9e0
cmp byte [0x51e8bc59], bl
je 0x51e5e9c1
cmp edi, dword [0x51e8bbf8]
jl 0x51e5e9ec
mov ecx, dword [0x51e8bc2c]
mov byte [0x51e8bc59], bl
mov dword [0x51e8bbf0], ecx
mov dword [0x51e8bbf8], edi
test al, 0x40
mov ecx, dword [ebp + 0x10]
je 0x51e5e961
test esi, edx
je 0x51e5ea14
cmp byte [0x51e8bc5a], bl
je 0x51e5e9f7
cmp ecx, dword [0x51e8bbfc]
jl 0x51e5ea20
mov eax, dword [0x51e8bc30]
mov byte [0x51e8bc5a], bl
mov dword [0x51e8bbf4], eax
mov dword [0x51e8bbfc], ecx
mov eax, dword [0x51e8bbd8]
mov eax, dword [eax + 4]
cmp eax, ebx
pop esi
je 0x51e5e97d
lea ecx, [ebp + 0xc]
push ebx
push ecx
call eax
mov edi, dword [ebp + 0xc]
pop ecx
pop ecx
mov ecx, dword [ebp + 0x10]
cmp dword [0x51e8bbdc], ebx
je 0x51e5ea2b
push ecx
push edi
call fcn.51e5e72f
push ebx
call fcn.51e5e4fc
add esp, 0xc
jmp 0x51e5ea4d
cmp eax, dword [0x51e8bc24]
jne 0x51e5e8c5
cmp ecx, dword [0x51e8bc28]
jne 0x51e5e8c5
mov byte [0x51e8bc0c], bl
jmp 0x51e5ea4d
cmp edi, dword [0x51e8bbf0]
jg 0x51e5e91e
mov ecx, dword [0x51e8bc34]
mov byte [0x51e8bc59], 1
mov dword [0x51e8bbf8], ecx
cmp byte [0x51e8bc59], bl
je 0x51e5e91e
mov dword [0x51e8bbf0], edi
jmp 0x51e5e924
cmp ecx, dword [0x51e8bbf4]
jg 0x51e5e95b
mov eax, dword [0x51e8bc38]
mov byte [0x51e8bc5a], 1
mov dword [0x51e8bbfc], eax
cmp byte [0x51e8bc5a], bl
je 0x51e5e95b
mov dword [0x51e8bbf4], ecx
jmp 0x51e5e961
call dword [sym.imp.USER32.dll_ReleaseCapture]
push ebx
push dword [0x51e8bbe4]
call dword [sym.imp.USER32.dll_KillTimer]
jmp 0x51e5ea4d
lea eax, [ebp - 4]
push eax
mov dword [ebp - 4], ebx
call fcn.51e5e6de
pop ecx
pop edi
pop ebx
leave
ret
Function at 0x51e5ea51
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
xor edi, edi
push edi
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_KillTimer]
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call fcn.51e4db56
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
pop ecx
pop ecx
push 0x10
call esi
test ah, ah
jns 0x51e5ea83
push 4
pop edi
push 0x11
call esi
test ah, ah
jns 0x51e5ea8e
or edi, 8
push dword [ebp - 4]
push dword [ebp - 8]
push edi
call fcn.51e5e82a
add esp, 0xc
pop edi
pop esi
leave
ret

Function at 0x51e62ef5
Capabilities:
Identify system language via api

Disassembly:
mov edx, dword [esp + 0xc]
push esi
push edi
xor eax, eax
push 0xe
pop ecx
mov edi, edx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
lea ecx, [eax + ecx*2]
mov dword [edx + 0x1c], eax
mov dword [edx], eax
mov eax, dword [esp + 0x18]
xor edi, edi
mov dword [edx + 0x24], eax
mov eax, dword [0x51e8b69c]
cmp eax, edi
mov dword [edx + 0x20], ecx
mov dword [edx + 0x18], edi
mov dword [edx + 0x2c], edi
mov dword [edx + 0x28], edi
jne 0x51e62f5a
mov esi, dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
call esi
cmp ax, 0x411
je 0x51e62f62
call esi
cmp ax, 0x404
je 0x51e62f62
call esi
cmp ax, 0x412
je 0x51e62f62
call esi
cmp ax, 0x804
jne 0x51e62f7e
jmp 0x51e62f62
cmp dword [eax + 0x53b8], edi
je 0x51e62f7e
mov eax, dword [0x51e8a120]
cmp eax, edi
je 0x51e62f7e
mov eax, dword [eax + 0x44]
cmp eax, edi
je 0x51e62f7e
push 0x51eb74e4
push 0x51eb74e0
call eax
pop edi
pop esi
ret
Function at 0x51e63a89
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x51e8c240]
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
push esi
mov dword [ebp - 4], eax
push edi
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x48], ebx
je 0x51e63c1b
cmp dword [ebp + 0x10], ebx
je 0x51e63c1b
push 0x8b
lea eax, [ebp - 0x3c]
push eax
push dword [ebp + 8]
call fcn.51e03933
push eax
push dword [ebp + 8]
call fcn.51e62ef5
lea eax, [ebp - 0x3c]
push eax
call fcn.51e62f81
add esp, 0x14
test eax, eax
je 0x51e63c12
mov eax, dword [ebp - 0x2c]
lea esi, [eax + eax]
mov eax, dword [ebp - 0x44]
cdq
push 8
pop ecx
idiv ecx
mov ecx, dword [ebp + 0x14]
sar esi, 1
mov al, byte [eax + ecx]
and al, byte [edx + 0x51e3545c]
neg al
sbb eax, eax
and eax, esi
mov edi, eax
push edi
push dword [ebp - 0x34]
push dword [ebp + 0xc]
push dword [ebp - 0x3c]
push dword [ebp - 0xc]
call fcn.51e6373f
add esp, 0x14
test eax, eax
jne 0x51e63b40
cmp edi, ebx
jne 0x51e63c17
cmp dword [ebp - 0x40], ebx
jne 0x51e63c17
mov dword [ebp - 0x48], 1
jmp 0x51e63bdf
mov eax, dword [0x51e8b69c]
test eax, eax
mov bl, byte [ebp - 0xc]
mov byte [ebp + 8], bl
jne 0x51e63b81
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
cmp ax, 0x411
je 0x51e63b8a
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
cmp ax, 0x404
je 0x51e63b8a
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
cmp ax, 0x412
je 0x51e63b8a
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
cmp ax, 0x804
jne 0x51e63bb1
jmp 0x51e63b8a
cmp dword [eax + 0x53b8], 0
je 0x51e63bb1
cmp bl, 0x21
jb 0x51e63bb1
movzx eax, bl
cmp eax, dword [0x51eb74e4]
jge 0x51e63bb1
mov eax, dword [0x51e8a120]
test eax, eax
je 0x51e63bb1
mov eax, dword [eax + 0x4c]
test eax, eax
je 0x51e63bb1
push dword [ebp + 8]
call eax
mov bl, al
movzx eax, bl
cmp eax, 0x70
jg 0x51e63bcf
je case.0x51e63bc8.1
dec eax
cmp eax, 8
ja case.default.0x51e63bc8
movzx eax, byte [eax + 0x51e63c33]
jmp dword [eax*4 + 0x51e63c2b]
cmp eax, 0x71
jne case.default.0x51e63bc8
cmp dword [ebp - 0x48], 0
jne 0x51e63c17
add dword [ebp - 0x40], edi
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
jbe 0x51e63bf0
mov eax, dword [ebp + 0xc]
sub dword [ebp + 0x10], esi
lea eax, [eax + esi*2]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp - 0x2c]
add dword [ebp - 0x44], eax
lea eax, [ebp - 0x3c]
push eax
call fcn.51e62f81
test eax, eax
pop ecx
jne 0x51e63ae5
cmp dword [ebp - 0x48], ebx
je 0x51e63c12
cmp dword [ebp - 0x40], ebx
jne 0x51e63c17
cmp dword [ebp + 0x10], ebx
je 0x51e63c1b
xor eax, eax
jmp 0x51e63c1e
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.51e03d50
leave
ret
Function at 0x51e64299
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x51e8c240]
push esi
mov esi, dword [ebp + 8]
xor ecx, ecx
cmp esi, ecx
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 4], eax
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], ecx
mov word [edi], cx
jne 0x51e642cf
mov eax, dword [ebp + 0x10]
mov ax, word [eax]
mov word [edi], ax
xor eax, eax
inc eax
jmp 0x51e64449
mov eax, dword [ebp + 0x18]
cmp eax, ecx
push ebx
mov ebx, dword [ebp + 0xc]
je 0x51e64315
cmp dword [eax + 0x28], 0xffffffff
je 0x51e64315
cmp dword [eax + 0x2c], ebx
ja 0x51e64315
push eax
push esi
call fcn.51e636a8
mov esi, dword [ebp + 0x18]
mov eax, dword [ebp + 0x18]
pop ecx
pop ecx
push 0xe
pop ecx
lea edi, [ebp - 0x3c]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [eax + 0x24]
mov edi, dword [ebp + 0x14]
mov eax, 0x401
xor edx, edx
and ecx, eax
cmp ecx, eax
setne dl
mov dword [ebp - 0x40], edx
jmp 0x51e6432e
push 0x8b
lea eax, [ebp - 0x3c]
push eax
push esi
call fcn.51e03933
push eax
push esi
call fcn.51e62ef5
add esp, 0x10
cmp dword [ebp - 0x40], 0
jne 0x51e64346
lea eax, [ebp - 0x3c]
push eax
call fcn.51e62f81
test eax, eax
pop ecx
je 0x51e64425
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x10]
add ecx, eax
cmp ecx, ebx
ja 0x51e64358
and dword [ebp - 0x40], 0
jmp 0x51e6432e
mov esi, dword [ebp + 0x10]
push 1
sub ebx, eax
mov eax, dword [ebp - 0x3c]
push 1
lea ebx, [eax + ebx*2]
push esi
push ebx
push dword [ebp - 0xc]
call fcn.51e6373f
add esp, 0x14
test eax, eax
mov dword [ebp - 0x44], eax
je 0x51e64425
mov ax, word [esi]
mov bl, byte [ebp - 0xc]
mov word [edi], ax
mov eax, dword [0x51e8b69c]
test eax, eax
mov byte [ebp + 0x14], bl
jne 0x51e643bc
mov esi, dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
call esi
cmp ax, 0x411
je 0x51e643c5
call esi
cmp ax, 0x404
je 0x51e643c5
call esi
cmp ax, 0x412
je 0x51e643c5
call esi
cmp ax, 0x804
jne 0x51e643ec
jmp 0x51e643c5
cmp dword [eax + 0x53b8], 0
je 0x51e643ec
cmp bl, 0x21
jb 0x51e643ec
movzx eax, bl
cmp eax, dword [0x51eb74e4]
jge 0x51e643ec
mov eax, dword [0x51e8a120]
test eax, eax
je 0x51e643ec
mov eax, dword [eax + 0x4c]
test eax, eax
je 0x51e643ec
push dword [ebp + 0x14]
call eax
mov bl, al
cmp bl, 4
jb 0x51e64425
cmp bl, 9
jbe 0x51e64400
cmp bl, 0x6f
jbe 0x51e64425
cmp bl, 0x71
ja 0x51e64425
test byte [ebp - 0x18], 0x10
je 0x51e64412
movzx eax, word [edi]
push eax
call dword [0x51e85034]
jmp 0x51e64422
test byte [ebp - 0x18], 0x20
je 0x51e64425
movzx eax, word [edi]
push eax
call dword [0x51e85024]
mov word [edi], ax
cmp dword [ebp + 0x18], 0
pop ebx
je 0x51e64446
mov edi, dword [ebp + 0x18]
mov eax, dword [ebp + 0x18]
push 0xe
pop ecx
lea esi, [ebp - 0x3c]
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0xa]
cmp dword [eax], ecx
jne 0x51e64446
lea ecx, [eax + 0x32]
mov dword [eax], ecx
mov eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.51e03d50
leave
ret
Function at 0x51e65559
Capabilities:
Identify system language via api

Disassembly:
push ecx
push ecx
mov eax, dword [0x51e8b69c]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
push ebp
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 8], ebp
jne 0x51e655ce
call ebx
cmp ax, 0x411
je 0x51e655df
call ebx
cmp ax, 0x404
je 0x51e655df
call ebx
cmp ax, 0x412
je 0x51e655df
call ebx
cmp ax, 0x804
je 0x51e655df
push edi
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x20]
push dword [esp + 0x20]
call fcn.51e60cd2
add esp, 0xc
push eax
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
cmp edi, ebp
je 0x51e656a8
push 1
call fcn.51e12027
test eax, eax
pop ecx
jne 0x51e655f4
jmp 0x51e656c7
cmp dword [eax + 0x53bc], ebp
jne 0x51e655df
test byte [eax + 0x53b6], 0x3c
je 0x51e65592
mov eax, dword [0x51e8c348]
test byte [eax + 0x11c], 1
je 0x51e65592
xor eax, eax
jmp 0x51e656c8
mov eax, dword [0x51e8c348]
push esi
mov esi, dword [eax + 0x5c]
sub esi, dword [eax + 0x58]
push edi
sub esi, dword [eax + 0x28]
add esi, dword [eax + 0x24]
call fcn.51e03933
cmp eax, esi
jbe 0x51e65612
mov eax, esi
push ebp
push 1
push eax
push edi
mov word [edi + eax*2], bp
call fcn.51e123d1
add esp, 0x10
cmp eax, ebp
mov dword [esp + 0x10], eax
je 0x51e6569b
mov eax, dword [0x51e8c348]
mov esi, dword [eax + 0x58]
push esi
jmp 0x51e65639
mov esi, eax
push eax
push ebp
call fcn.51e0e265
cmp eax, esi
pop ecx
pop ecx
jne 0x51e65636
mov eax, dword [0x51e8c348]
cmp esi, dword [eax + 0x58]
je 0x51e65668
push ebp
push ebp
mov dword [eax + 0x5c], esi
push ebp
mov dword [eax + 0x58], esi
push esi
mov dword [eax + 0x54], 1
call fcn.51e17032
add esp, 0x10
mov eax, dword [0x51e8b69c]
cmp eax, ebp
jne 0x51e6567f
call ebx
sub ax, 0x411
neg ax
sbb eax, eax
inc eax
jmp 0x51e65690
xor ecx, ecx
cmp dword [eax + 0x53a8], 0x411
sete cl
mov eax, ecx
cmp eax, ebp
je 0x51e6569b
push 1
call fcn.51e65419
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
pop esi
jmp 0x51e656b3
push 0x7d4
call fcn.51e17998
pop ecx
cmp dword [esp + 0x10], ebp
je 0x51e656c3
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0xc]
pop edi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x51e656cd
Capabilities:
Identify system language via api

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x1c]
push edi
xor edi, edi
cmp eax, edi
mov dword [esp + 0x18], edi
mov dword [esp + 4], eax
jne 0x51e656f6
lea eax, [esp + 4]
push eax
call dword [sym.imp.ole32.dll_OleGetClipboard]
test eax, eax
jne 0x51e6589e
mov eax, dword [0x51e8c348]
push esi
push edi
push edi
push 0xaa5
push dword [eax]
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [0x51e8bba0]
push dword [esp + 8]
push 0xd
call fcn.51e6ab0f
mov esi, eax
cmp esi, edi
pop ecx
pop ecx
jne 0x51e65872
push dword [esp + 8]
push 1
call fcn.51e6ab0f
mov esi, eax
cmp esi, edi
pop ecx
pop ecx
mov dword [esp + 0xc], esi
je 0x51e6588d
push ebx
push ebp
call fcn.51e654bf
push esi
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebp, dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov ebx, eax
mov eax, dword [0x51e8b69c]
cmp eax, edi
jne 0x51e6582e
call ebp
cmp ax, 0x411
je 0x51e6583a
call ebp
cmp ax, 0x404
je 0x51e6583a
call ebp
cmp ax, 0x412
je 0x51e6583a
call ebp
cmp ax, 0x804
je 0x51e6583a
push edi
push edi
push 0xffffffffffffffff
push ebx
push 1
push dword [esp + 0x30]
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
call esi
mov edi, eax
lea eax, [edi + edi]
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
mov dword [esp + 0x20], eax
je 0x51e6585e
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [esp + 0x18], eax
mov eax, dword [0x51e8b69c]
test eax, eax
jne 0x51e65847
call ebp
cmp ax, 0x411
je 0x51e65850
call ebp
cmp ax, 0x404
je 0x51e65850
call ebp
cmp ax, 0x412
je 0x51e65850
call ebp
cmp ax, 0x804
je 0x51e65850
push edi
push dword [esp + 0x1c]
push 0xffffffffffffffff
push ebx
push 1
push dword [esp + 0x30]
call esi
push dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call esi
push dword [esp + 0x20]
call esi
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov esi, dword [esp + 0x20]
jmp 0x51e6586a
cmp dword [eax + 0x53b8], edi
je 0x51e6579b
push edi
push edi
push 0xffffffffffffffff
push ebx
push 1
push edi
jmp 0x51e657a6
cmp dword [eax + 0x53b8], 0
je 0x51e657fc
push edi
push dword [esp + 0x1c]
push 0xffffffffffffffff
push ebx
push 1
push 0
jmp 0x51e6580a
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
xor esi, esi
test esi, esi
pop ebp
pop ebx
je 0x51e6588b
xor edi, edi
push dword [esp + 8]
push esi
call fcn.51e65559
pop ecx
pop ecx
push esi
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x51e6588d
xor edi, edi
cmp dword [esp + 0x24], edi
pop esi
jne 0x51e6589e
mov eax, dword [esp + 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x18]
pop edi
add esp, 0x18
ret