joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ec73ec9
Capabilities:
Check for software breakpoints

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x4ec73ef2
push esi
call fcn.4ec7856a
cmp dword [esi + 0x40], 0
jne 0x4ecd8d9d
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x4ecd8dee
mov eax, dword [esi + 0x1b8]
cmp dword [eax + 0x10], 0
jne 0x4ec841d9
mov eax, dword [esi + 0x94]
mov dword [esi + 0x9c], eax
call fcn.4ec7407c
pop esi
pop ebp
ret 4
mov eax, dword [esi + 8]
test eax, eax
jne 0x4ecd8dae
mov edx, dword [esi + 0x1b8]
mov eax, dword [edx]
push esi
call eax
test eax, eax
je 0x4ecd8de7
cmp eax, 2
je 0x4ec73f10
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4ec83928
jmp 0x4ecd8db8
lea esp, [esp]
jmp 0x4ec83928
mov dword [esi + 0x14], 0xcf
mov eax, 1
pop esi
pop ebp
ret 4
mov ecx, dword [eax]
push esi
call ecx
jmp 0x4ec83933
cmp eax, 3
je 0x4ecd8dc6
cmp eax, 1
jne 0x4ec83928
add dword [ecx + 4], 1
mov eax, dword [esi + 8]
mov ecx, dword [eax + 4]
cmp ecx, dword [eax + 8]
jl 0x4ec83928
mov edx, dword [esi + 0x144]
add dword [eax + 8], edx
jmp 0x4ec83928
xor eax, eax
pop esi
pop ebp
ret 4
cmp eax, 0xcc
je 0x4ecd8e0d
mov ecx, dword [esi]
mov dword [ecx + 0x14], 0x14
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call edx
call fcn.4ec7407c
pop esi
pop ebp
ret 4

Function at 0x4ec7407c
Capabilities:
Check for software breakpoints

Disassembly:
cmp dword [esi + 0x14], 0xcc
je 0x4ec740a1
mov eax, dword [esi + 0x1a8]
mov ecx, dword [eax]
push esi
call ecx
mov dword [esi + 0x8c], 0
mov dword [esi + 0x14], 0xcc
mov edx, dword [esi + 0x1a8]
cmp dword [edx + 8], 0
jne 0x4ecd8d2b
xor ecx, ecx
cmp dword [esi + 0x44], ecx
mov eax, 1
setne cl
add ecx, 0xcd
mov dword [esi + 0x14], ecx
ret
mov eax, dword [esi]
mov dword [eax + 0x14], 0x31
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call edx
mov eax, dword [esi + 0x1a8]
cmp dword [eax + 8], 0
je 0x4ec740b1
jmp 0x4ecd8d2b
Function at 0x4ec78db4
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebx
push 0x4edd72ec
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x4edd7148]
cmp eax, 1
jne 0x4ec78fad
xor ebx, ebx
push 0x4edd72ec
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, ebx
pop ebx
ret
push 2
pop ecx
cmp eax, ecx
mov ebx, 0x80004005
je 0x4ec78dd2
push edi
push 0x4ec79110
mov dword [0x4edd7148], ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor edi, edi
cmp eax, edi
mov dword [0x4edd714c], eax
je 0x4ec79085
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4ec790fc
push eax
call esi
push 0x4ec790e8
push dword [0x4edd714c]
mov dword [0x4edd7150], eax
call esi
push 0x4ec790cc
push dword [0x4edd714c]
mov dword [0x4edd7154], eax
call esi
push 0x4ec790b8
push dword [0x4edd714c]
mov dword [0x4edd715c], eax
call esi
push 0x4ec790a4
push dword [0x4edd714c]
mov dword [0x4edd7164], eax
call esi
push 0x4ec7908c
push dword [0x4edd714c]
mov dword [0x4edd7158], eax
call esi
cmp dword [0x4edd7150], edi
mov dword [0x4edd7160], eax
pop esi
je 0x4ec79085
cmp dword [0x4edd7154], edi
je 0x4ec79085
cmp dword [0x4edd7158], edi
je 0x4ec79085
cmp dword [0x4edd715c], edi
je 0x4ec79085
cmp eax, edi
je 0x4ec79085
cmp dword [0x4edd7164], edi
je 0x4ec79085
mov dword [0x4edd7148], 1
xor ebx, ebx
pop edi
jmp 0x4ec78dd2
Function at 0x4ec7a858
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x4edd770c]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 8]
xor ebx, ebx
cmp eax, ebx
mov dword [ebp - 0x120], ecx
mov dword [ebp - 0x11c], edx
mov dword [ebp - 0x114], ebx
je 0x4ec7a8bc
inc eax
cmp ecx, ebx
mov dword [esi + 8], eax
je 0x4ec7a8a0
mov eax, dword [esi + 0xc]
mov dword [ecx], eax
cmp edx, ebx
je 0x4ec7a8a9
mov eax, dword [esi + 0x10]
mov dword [edx], eax
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.4ec515ae
leave
ret 0xc
mov eax, dword [esi + 0x14]
cmp eax, ebx
je 0x4ec7a996
cmp dword [0x4edd70f4], ebx
push edi
je 0x4ecc92ac
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4ec7a995
lea eax, [ebp - 0x128]
push eax
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x4ec7a9a1
mov eax, dword [ebp - 0x128]
cmp eax, dword [esi]
jne 0x4ec7a9a1
mov eax, dword [ebp - 0x124]
cmp eax, dword [esi + 4]
jne 0x4ec7a9a1
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov ecx, dword [ebp - 0x11c]
mov dword [ecx], eax
je 0x4ec7a9a1
push ebx
push ebx
push ebx
push 2
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, ebx
mov dword [ebp - 0x118], eax
je 0x4ec7a9a1
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, ebx
mov ecx, dword [ebp - 0x120]
mov dword [ecx], eax
je 0x4ecc92f6
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x11c]
mov eax, dword [eax]
xor ecx, ecx
inc ecx
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x118]
mov dword [ebp - 0x114], ecx
mov dword [esi + 8], ecx
mov dword [esi + 0x1c], eax
mov dword [esi + 0x18], edi
pop edi
mov eax, dword [ebp - 0x114]
jmp 0x4ec7a8ac
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4ec7a995
push eax
lea ecx, [ebp - 0x110]
call fcn.4ec8714c
cmp dword [ebp - 0x110], 0x55464131
jne 0x4ecc92e4
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push dword [ebp - 0x10c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
jmp 0x4ecc92e7
or edi, 0xffffffff
mov dword [ebp - 0x110], 0x4c494146
jmp 0x4ec7a8ed
push dword [ebp - 0x118]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
call esi
jmp 0x4ec7a995
Function at 0x4ec7ab34
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4edd770c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push ebx
call fcn.4ec67c99
inc eax
push 0x20
mov dword [ebp - 0x118], eax
call fcn.4ec515d7
mov esi, eax
xor edi, edi
cmp esi, edi
je 0x4ec7ac16
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
mov dword [esi + 8], edi
mov dword [esi + 0x14], ebx
mov dword [esi + 0x1c], edi
mov dword [esi + 0x18], edi
cmp dword [0x4edd70f4], edi
je 0x4ecc930c
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0xffffffff
je 0x4ecc936a
push edi
push dword [ebp - 0x114]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, edi
mov dword [esi + 0x10], eax
je 0x4ecc935e
push esi
push edi
push edi
push dword [ebp - 0x114]
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
push dword [ebp - 0x114]
je 0x4ecc9364
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push esi
push dword [ebp - 0x118]
push ebx
call fcn.4ec7ac1f
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.4ec515ae
leave
ret 4
xor eax, eax
jmp 0x4ec7ac05
push ebx
lea ecx, [ebp - 0x110]
call fcn.4ec8714c
cmp dword [ebp - 0x110], 0x55464131
jne 0x4ecc9348
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push dword [ebp - 0x10c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x114], eax
jmp 0x4ecc934f
or dword [ebp - 0x114], 0xffffffff
mov dword [ebp - 0x110], 0x4c494146
jmp 0x4ec7abaf
push dword [ebp - 0x114]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.4ec51589
jmp 0x4ec7ac16
Function at 0x4ec7d156
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
xor esi, esi
cmp dword [0x4edd70f4], esi
push 1
push esi
je 0x4ecc7fc3
push dword [0x4edda764]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x4ec7d1b1
push dword [ebp + 8]
lea eax, [ebp - 8]
push esi
push esi
push esi
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x4ec7d1a8
xor esi, esi
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret 4
push dword [0x4eddcdc4]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
jmp 0x4ec7d184

Function at 0x4ec7d1bd
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x4edd770c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp dword [0x4edd7184], ebx
push edi
mov edi, dword [ebp + 0x10]
je 0x4ecc8018
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x218], ecx
lea ecx, [ebp - 0x218]
push ecx
push edi
lea ecx, [ebp - 0x21c]
push ecx
push ebx
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, ebx
jne 0x4ec7d22d
cmp dword [ebp - 0x21c], 1
jne 0x4ec7d23e
mov eax, dword [ebp - 0x218]
shr eax, 1
je 0x4ec7d23e
cmp word [edi + eax*2 - 2], bx
jne 0x4ec7d23e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.4ec515ae
leave
ret 0x10
push 0xd
pop eax
jmp 0x4ec7d22d
push eax
lea ecx, [ebp - 0x214]
call fcn.4ec8714c
cmp dword [ebp - 0x214], 0x55464131
jne 0x4ec7d23e
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x21c]
push eax
push ebx
push dword [ebp - 0x210]
mov dword [ebp - 0x218], 0x104
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x4ec7d22d
cmp dword [ebp - 0x21c], 1
jne 0x4ec7d23e
mov eax, dword [ebp - 0x218]
cmp eax, ebx
je 0x4ec7d23e
cmp byte [ebp + eax - 0x109], bl
jne 0x4ec7d23e
lea ecx, [eax + eax]
cmp ecx, dword [ebp + 0x14]
ja 0x4ec7d23e
push eax
push edi
lea eax, [ebp - 0x108]
push eax
call fcn.4ecf9922
neg eax
sbb eax, eax
and eax, 0xfffffff3
add eax, 0xd
jmp 0x4ec7d22d

Function at 0x4ec7d6f8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [0x4edd71b0]
push esi
xor esi, esi
inc esi
cmp dword [eax + 0x20], 0xbfbfbfbf
je 0x4ecc7f9e
add eax, 0x168
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4ecc7fa2
mov eax, esi
pop esi
ret
xor eax, eax
pop esi
ret
xor esi, esi
jmp 0x4ec7d723
Function at 0x4ec86fc0
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
mov esi, ecx
call fcn.4ec6aa2f
xor ebx, ebx
cmp eax, ebx
mov dword [esi + 0x20], eax
je 0x4ecd0930
push 0x80
push 3
push 1
push 0x80000000
push dword [ebp + 8]
call fcn.4ec6aab5
cmp eax, 0xffffffff
mov dword [esi + 0x1c], eax
je 0x4ec87064
lea ecx, [ebp - 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x4ec87064
cmp dword [ebp - 4], ebx
jne 0x4ec87064
push ebx
push ebx
push ebx
push 2
push ebx
push dword [esi + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x4ec87064
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push dword [ebp + 8]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, ebx
je 0x4ec87064
mov eax, dword [ebp - 8]
mov dword [esi + 0x10], eax
mov dword [esi + 0xc], edi
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], 4
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
call fcn.4ecbcf2a
jmp 0x4ec8705d
mov eax, 0x8007000e
jmp 0x4ec8705d

Function at 0x4ec8db81
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x18
call fcn.4ec515d7
test eax, eax
je 0x4ecbceea
mov ecx, eax
call fcn.4ec8dc0d
mov esi, eax
test esi, esi
je 0x4ecd09f0
push ebx
push dword [ebp + 8]
call fcn.4ec6aa2f
test eax, eax
mov dword [esi + 0x10], eax
je 0x4ecd09fa
push 0x80
push 4
push 1
push 0x40000000
push dword [ebp + 8]
mov dword [esi + 0x14], 1
call fcn.4ec6aab5
cmp eax, 0xffffffff
mov dword [esi + 0xc], eax
je 0x4ec8dbe7
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
cmp dword [esi + 0xc], 0xffffffff
je 0x4ecbcf19
xor ebx, ebx
test ebx, ebx
jl 0x4ecbcedc
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
mov eax, ebx
pop ebx
pop esi
pop ebp
ret 8
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 0x38]
jmp 0x4ec8dc00
xor esi, esi
jmp 0x4ec8db9f
call fcn.4ecbcf2a
mov ebx, eax
jmp 0x4ec8dbf3
mov eax, 0x8007000e
jmp 0x4ec8dc03
mov ebx, 0x8007000e
jmp 0x4ecbcedc
Function at 0x4ec8e3f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
inc cl
mov byte [esi + 1], cl
jmp 0x4ec8e3d9
push edx
mov ecx, esi
call fcn.4ec8e49f
movzx eax, word [esi + 2]
cmp ax, 0xfff
jae 0x4ec8e6c0
movzx ecx, word [edi]
inc eax
movzx edx, ax
shl ecx, 0x14
add ecx, ebx
mov dword [esi + edx*4 + 0x20], ecx
mov word [edi], ax
mov cl, byte [esi + 1]
mov word [esi + 2], ax
xor eax, eax
inc eax
shl eax, cl
cmp edx, eax
jge 0x4ec8e399
movzx ax, byte [ebp - 2]
jmp 0x4ec8e473
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
mov al, byte [esi + 0xc]
mov cl, byte [esi]
movzx edx, word [esi + 0xe]
push edi
mov byte [ebp - 1], al
push 0x20
pop eax
sub eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov al, 1
shl al, cl
dec al
mov byte [ebp - 3], al
mov ecx, dword [ebp - 8]
mov ebx, dword [ebp + 8]
shr ebx, cl
mov cl, byte [esi]
and bl, al
xor eax, eax
inc eax
shl eax, cl
mov byte [ebp - 2], bl
cmp dx, ax
je 0x4ec8eaab
mov cl, byte [ebp - 1]
movzx eax, bl
mov ebx, eax
movzx edi, dx
shl eax, cl
shl ebx, 0xc
add ebx, edi
xor eax, edi
lea edi, [esi + eax*2 + 0x4020]
movzx eax, word [edi]
test ax, ax
je 0x4ec8e3a0
movzx ecx, ax
mov ecx, dword [esi + ecx*4 + 0x20]
mov dword [ebp - 0xc], ecx
and ecx, 0xfffff
cmp ebx, ecx
jne 0x4ec8e492
mov ecx, dword [ebp + 0xc]
sub dword [ebp + 0x10], ecx
cmp dword [ebp + 0x10], ecx
movzx edx, ax
jge 0x4ecd6177
pop edi
mov word [esi + 0xe], dx
pop esi
mov al, 1
pop ebx
leave
ret 0xc
mov eax, dword [ebp - 0xc]
shr eax, 0x14
jmp 0x4ec8e456
cmp byte [esi + 0xd], 0
jne 0x4ec8e3d9
mov cl, byte [esi]
xor eax, eax
inc eax
shl eax, cl
mov ecx, esi
push eax
call fcn.4ec8e49f
mov ecx, esi
call fcn.4ec8e6ea
jmp 0x4ec8e3d9
push edx
mov ecx, esi
call fcn.4ec8e49f
mov ecx, esi
call fcn.4ec8e6ea
movzx ax, bl
jmp 0x4ec8e473
shl dword [ebp + 8], cl
mov al, byte [ebp - 3]
jmp 0x4ec8e41b

Function at 0x4ec9b0b7
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov edx, dword [ecx + 0xf4]
push ebx
mov ebx, dword [ecx + 0x1c]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [esi + 0x1c]
add edi, edi
push edx
mov edx, dword [ebp + 0xc]
add edi, edi
add edi, edi
lea eax, [edi + edi]
push edx
mov dword [ebp - 0x10], edi
call fcn.4ec98b0a
xor eax, eax
cmp dword [esi + 0xc], eax
mov dword [ebp - 0xc], eax
jle 0x4ec9b15f
mov edx, dword [ebp + 0xc]
mov dword [ebp - 8], edx
test edi, edi
mov ecx, dword [ebp + 0x10]
mov esi, dword [ecx + eax*4]
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov dword [ebp + 0xc], 1
jbe 0x4ec9b148
mov dword [ebp - 4], edi
lea esp, [esp]
movzx edi, byte [eax + 1]
movzx edx, byte [ecx + 1]
movzx ebx, byte [eax]
add edx, edi
movzx edi, byte [ecx]
add edi, dword [ebp + 0xc]
xor dword [ebp + 0xc], 3
add edi, edx
add ebx, edi
sar ebx, 2
mov byte [esi], bl
add esi, 1
add eax, 2
add ecx, 2
sub dword [ebp - 4], 1
jne 0x4ec9b113
mov edi, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
add eax, 1
add edx, 8
cmp eax, dword [ecx + 0xc]
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], eax
jl 0x4ec9b0f7
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4eca8c39
Capabilities:
Query or enumerate registry value

Disassembly:
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.4ec515ae
leave
ret
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x4edd770c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x418]
push eax
push 9
xor edi, edi
push edi
push 0x4eca8dc8
push 0x80000002
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4eca84a1
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x424]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
push dword [ebp - 0x418]
mov dword [ebp - 0x424], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
cmp eax, edi
jne 0x4ecc7e57
mov eax, dword [ebp - 0x424]
cmp eax, edi
je 0x4ecc7e57
imul eax, eax, 0x210
push eax
call fcn.4ec515d7
cmp eax, edi
mov dword [esi + 0xc], eax
je 0x4ecc7e57
mov dword [ebp - 0x420], edi
push ebx
mov eax, 0x104
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x428], eax
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x20c]
push eax
push edi
push edi
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x414]
push eax
push dword [ebp - 0x420]
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, edi
jne 0x4eca8494
inc dword [ebp - 0x420]
mov eax, dword [ebp - 0x428]
dec eax
cmp eax, edi
jl 0x4eca8d39
cmp word [ebp + eax*2 - 0x20c], 0x2c
je 0x4eca8e44
dec eax
jns 0x4eca8d27
mov eax, dword [0x4edd7060]
mov ecx, dword [eax + 8]
lea eax, [ebp - 0x20c]
push eax
call fcn.4ec7927e
cmp eax, edi
je 0x4eca8ccd
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0xc]
imul ecx, ecx, 0x210
mov dword [ecx + edx + 0x20c], eax
xor eax, eax
cmp dword [ebp - 0x41c], edi
jbe 0x4eca8d9b
movzx ecx, word [ebp + eax*2 - 0x414]
cmp cx, 0x2c
je 0x4eca8d9b
mov edx, dword [esi + 0x10]
mov ebx, dword [esi + 0xc]
imul edx, edx, 0x108
add edx, eax
inc eax
mov word [ebx + edx*2], cx
cmp eax, dword [ebp - 0x41c]
jb 0x4eca8d72
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0xc]
imul ecx, ecx, 0x108
add ecx, eax
mov word [edx + ecx*2], di
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0xc]
imul ecx, ecx, 0x210
mov dword [ecx + edx + 0x208], eax
inc dword [esi + 0x10]
jmp 0x4eca8ccd
mov word [ebp + eax*2 - 0x20c], di
jmp 0x4eca8d39
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4eca84a1
Function at 0x4eca8f97
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x438
mov eax, dword [0x4edd770c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 8
mov esi, ecx
call fcn.4ec515d7
xor ebx, ebx
cmp eax, ebx
mov dword [esi + 4], eax
je 0x4eca907e
push edi
mov dword [eax], ebx
mov eax, dword [esi + 4]
push 0x45
mov dword [eax + 4], ebx
xor edi, edi
xor eax, eax
pop ecx
inc edi
mov word [ebp + eax - 0x218], cx
lea eax, [edi + edi]
movzx ecx, word [eax + 0x4eca9020]
cmp cx, bx
jne 0x4eca8fd4
call dword [sym.imp.KERNEL32.dll_GetACP]
test eax, eax
jbe 0x4eca900b
xor edx, edx
push 0xa
pop ecx
div ecx
add edx, 0x30
mov word [ebp + ebx*2 - 0x10], dx
inc ebx
cmp ebx, 5
jl 0x4eca8ff2
dec ebx
js 0x4eca902c
mov ax, word [ebp + ebx*2 - 0x10]
mov word [ebp + edi*2 - 0x218], ax
inc edi
jmp 0x4eca900b
xor eax, eax
lea ecx, [ebp - 0x424]
push ecx
push 9
push eax
mov word [ebp + edi*2 - 0x218], ax
mov dword [ebp - 0x424], eax
mov dword [ebp - 0x428], eax
lea eax, [ebp - 0x218]
push eax
push 0x80000001
mov dword [ebp - 0x42c], 1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4ecc7e68
cmp dword [ebp - 0x424], 0
pop edi
jne 0x4ecc7f66
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.4ec515ae
leave
ret
mov eax, 0x104
mov dword [ebp - 0x430], eax
mov dword [ebp - 0x438], eax
lea eax, [ebp - 0x438]
push eax
lea eax, [ebp - 0x218]
push eax
xor edi, edi
push edi
push edi
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x420]
push eax
push dword [ebp - 0x428]
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, edi
mov dword [ebp - 0x434], eax
jne 0x4ecc7f4e
cmp dword [ebp - 0x42c], edi
je 0x4ecc7ef5
push 0x4ecdbbdc
lea eax, [ebp - 0x420]
push eax
call fcn.4ec6becd
test eax, eax
jne 0x4ecc7ef5
lea eax, [ebp - 0x218]
push eax
mov ecx, esi
mov dword [ebp - 0x42c], edi
call fcn.4ed14a83
cmp eax, edi
je 0x4ecc7f4e
mov ecx, dword [esi + 4]
mov dword [ecx], eax
jmp 0x4ecc7f4e
mov eax, dword [0x4edd7060]
mov ecx, dword [eax + 8]
lea eax, [ebp - 0x420]
push eax
call fcn.4ec7927e
mov ebx, eax
cmp ebx, edi
je 0x4ecc7f4e
lea eax, [ebp - 0x218]
push eax
mov ecx, esi
call fcn.4ed14a83
mov edi, eax
test edi, edi
je 0x4ecc7f4e
push 0xc
call fcn.4ec515d7
test eax, eax
je 0x4ecc7f4e
mov dword [eax], ebx
mov dword [eax + 4], edi
mov ecx, dword [esi + 4]
mov edx, dword [ecx + 4]
test edx, edx
jne 0x4ecc7f45
mov dword [ecx + 4], eax
and dword [eax + 8], edx
jmp 0x4ecc7f4e
mov dword [eax + 8], edx
mov ecx, dword [esi + 4]
mov dword [ecx + 4], eax
inc dword [ebp - 0x428]
cmp dword [ebp - 0x434], 0
jne 0x4eca9070
jmp 0x4ecc7e68
push dword [ebp - 0x424]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4eca907e
Function at 0x4ecaca65
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov cx, word [ebp + 0x14]
or word [eax + 0x84], 0xffff
push ebx
push esi
push edi
mov word [eax + 0x32], cx
mov cx, word [ebp + 0x10]
xor edx, edx
mov word [eax + 0x20], cx
push 9
pop ecx
mov ebx, 0x4ecacb4c
mov esi, ebx
lea edi, [eax + 0x44]
rep movsd dword es:[edi], dword [esi]
movzx ecx, word [ebp + 0x14]
mov esi, dword [ebp + 0xc]
imul ecx, ecx, 0x38
mov byte [eax], 0x47
mov byte [eax + 1], 0x44
mov dword [eax + 4], edx
mov dword [eax + 8], edx
mov dword [eax + 0xc], edx
mov dword [eax + 0x1c], 3
mov dword [eax + 0x10], edx
mov dword [eax + 0x14], edx
mov dword [eax + 0x6c], edx
mov dword [eax + 0x70], edx
mov dword [eax + 0x68], edx
mov word [eax + 0x22], 0x7fff
mov word [eax + 0x24], 0x7fff
mov word [eax + 0x26], 0x8000
mov word [eax + 0x28], 0x8000
mov word [eax + 0x86], dx
mov dword [eax + 0x88], edx
mov word [eax + 0x2a], dx
mov word [eax + 0x2e], dx
mov dword [eax + 0x34], 2
mov dword [eax + 0x38], edx
mov word [eax + 0x3c], dx
mov word [eax + 0x3e], dx
mov word [eax + 0x40], dx
mov word [eax + 0x42], dx
mov dword [eax + 0x74], edx
mov dword [eax + 0x78], edx
mov dword [eax + 0x7c], edx
mov dword [eax + 0x80], edx
mov esi, dword [esi + 8]
add ecx, esi
push 9
mov dword [eax + 0x8c], ecx
mov word [ecx + 0x28], dx
pop ecx
mov esi, ebx
lea edi, [eax + 0x90]
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
mov dword [eax + 0xb4], 1
pop ebx
pop ebp
ret 0x10
Function at 0x4ecb6144
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x4edd770c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
cmp dword [0x4edd7038], esi
jne 0x4ecb61fb
mov ecx, dword [ebp - 4]
mov ax, word [0x4edd7128]
xor ecx, ebp
pop esi
call fcn.4ec515ae
leave
ret
push 0x400
mov dword [ebp - 0x30], esi
call dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
cmp dword [0x4edd70f4], esi
mov dword [0x4edd7128], eax
je 0x4ecb622b
push 0x14
lea ecx, [ebp - 0x2c]
push ecx
push 0x1014
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], esi
je 0x4eccfc2f
movzx eax, word [ebp - 0x2c]
sub eax, 0x31
jne 0x4eccfc85
mov dword [0x4edd712c], 1
mov dword [0x4edd7038], esi
jmp 0x4ecb6165
lea eax, [ebp - 0x34]
push eax
push 0x20019
push esi
push 0x4eccfcb0
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4ecb6234
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x38]
push eax
push esi
push 0x4eccfca4
push dword [ebp - 0x34]
mov word [ebp - 0x2c], si
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4eccfc77
mov dword [ebp - 0x30], esi
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4ecb6234
dec eax
je 0x4eccfc93
mov dword [0x4edd712c], esi
jmp 0x4ecb624b
mov dword [0x4edd712c], 2
jmp 0x4ecb624b