joyce8/EMBER2024-capa huggingface dataset:
Function at 0x463bfa
Capabilities:
Get disk information

Disassembly:
mov eax, 0x480b2e
call fcn.0044c464
sub esp, 0x264
mov eax, dword [0x4a8ae4]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor eax, ebp
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x268]
push eax
push edi
mov esi, 0x104
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
test eax, eax
jne 0x463c41
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
jmp 0x463c45
cmp eax, esi
jb 0x463c4c
xor eax, eax
jmp 0x463d34
call fcn.004621d7
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x264], eax
and dword [ebp - 4], 0
lea eax, [ebp - 0x264]
push eax
push edi
call fcn.00463bb8
push dword [ebp - 0x264]
call dword [sym.imp.SHLWAPI.dll_PathIsUNCW]
test eax, eax
jne 0x463d21
push eax
push eax
lea ecx, [ebp - 0x26c]
push ecx
lea ecx, [ebp - 0x270]
push ecx
push eax
push eax
push eax
push dword [ebp - 0x264]
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
jne 0x463cad
xor esi, esi
jmp 0x463d24
test byte [ebp - 0x26c], 2
jne 0x463cbd
push edi
call dword [sym.imp.USER32.dll_CharUpperW]
test byte [ebp - 0x26c], 4
jne 0x463d21
lea eax, [ebp - 0x260]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x463d21
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x268], 0
je 0x463ca9
cmp dword [ebp - 0x268], edi
jbe 0x463ca9
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x268]
sub ecx, edi
sar ecx, 1
add ecx, eax
cmp ecx, esi
jge 0x463ca9
lea eax, [ebp - 0x234]
push eax
push dword [ebp - 0x268]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
xor esi, esi
inc esi
mov ecx, dword [ebp - 0x264]
add ecx, 0xfffffff0
call fcn.00401230
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop esi
xor ecx, ebp
pop ebx
call fcn.0044a318
leave
ret 8
Function at 0x4640f5
Capabilities:
Get file system object information

Disassembly:
push ebp
lea ebp, [esp - 0x244]
sub esp, 0x2c4
mov eax, dword [0x4a8ae4]
push ebx
mov ebx, dword [ebp + 0x24c]
xor eax, ebp
mov dword [ebp + 0x240], eax
mov eax, dword [ebp + 0x250]
push esi
push edi
mov edi, dword [ebp + 0x254]
mov dword [ebp - 0x80], eax
call dword [0x4a71a8]
xor esi, esi
cmp ebx, esi
mov dword [ebp - 0x78], esi
mov word [edi], si
je 0x4641ff
push 0x800
push 0x2b4
lea eax, [ebp - 0x74]
push eax
push esi
push dword [ebp - 0x80]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x4641ff
test byte [ebp - 0x6a], 1
je 0x4641ff
lea eax, [ebp - 0x78]
push eax
push 0x4925a0
push esi
push 0x4925b0
lea ecx, [ebp - 0x80]
call fcn.00464099
test eax, eax
jl 0x4641ff
mov eax, dword [ebp - 0x78]
cmp eax, esi
je 0x4641ff
lea edx, [ebp - 0x7c]
push edx
push 0x498594
mov dword [ebp - 0x7c], esi
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
jl 0x4641f2
mov eax, dword [ebp - 0x7c]
cmp eax, esi
je 0x4641f2
mov ecx, dword [eax]
push esi
push dword [ebp - 0x80]
push eax
call dword [ecx + 0x14]
test eax, eax
jl 0x4641e5
mov ebx, dword [ebx + 0x1c]
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax]
push 2
push ebx
push eax
call dword [ecx + 0x4c]
test eax, eax
jl 0x4641e5
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax]
push esi
push esi
push dword [ebp + 0x258]
push edi
push eax
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x7c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
inc esi
jmp 0x4641f2
mov eax, dword [ebp - 0x7c]
cmp eax, esi
je 0x4641f2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
jmp 0x464201
xor eax, eax
mov ecx, dword [ebp + 0x240]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044a318
add ebp, 0x244
leave
ret 0x10
Function at 0x4651ce
Capabilities:
Check if file exists
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x22c
xor ebx, ebx
push ebx
push esi
mov edi, ecx
call fcn.0044b8b0
add esp, 0xc
push 0x104
push dword [edi + 0xc]
lea eax, [esi + 0x22]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov eax, dword [edi + 4]
cmp eax, dword [0x49259c]
je 0x46531c
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x46523e
push ebx
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ebx
jne 0x465245
cmp ebx, ebx
jne 0x465245
xor eax, eax
jmp 0x46531f
mov edi, dword [edi + 0xc]
cmp dword [edi - 0xc], ebx
jne 0x465252
mov byte [esi + 0x20], bl
jmp 0x465266
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
sete cl
dec cl
and ecx, eax
mov byte [esi + 0x20], cl
lea eax, [ebp - 8]
push eax
call fcn.00441e60
test eax, eax
je 0x46528d
push 0xffffffffffffffff
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x20]
call fcn.00419850
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
jmp 0x465292
mov dword [esi], ebx
mov dword [esi + 4], ebx
lea eax, [ebp - 0x10]
push eax
call fcn.00441e60
test eax, eax
je 0x4652ba
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x20]
call fcn.00419850
mov ecx, dword [eax]
mov dword [esi + 0x10], ecx
mov eax, dword [eax + 4]
mov dword [esi + 0x14], eax
jmp 0x4652c4
xor eax, eax
xor ecx, ecx
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ecx
lea eax, [ebp - 0x18]
push eax
call fcn.00441e60
test eax, eax
je 0x4652ec
push 0xffffffffffffffff
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x20]
call fcn.00419850
mov ecx, dword [eax]
mov dword [esi + 8], ecx
mov eax, dword [eax + 4]
mov dword [esi + 0xc], eax
jmp 0x4652f6
xor eax, eax
xor ecx, ecx
mov dword [esi + 8], eax
mov dword [esi + 0xc], ecx
mov eax, dword [esi]
or eax, dword [esi + 4]
jne 0x465308
mov eax, dword [esi + 8]
mov dword [esi], eax
mov eax, dword [esi + 0xc]
mov dword [esi + 4], eax
mov eax, dword [esi + 0x10]
or eax, dword [esi + 0x14]
jne 0x46531c
mov eax, dword [esi + 8]
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0xc]
mov dword [esi + 0x14], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x468e79
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x4a8ae4]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
xor eax, ebp
push edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
mov eax, 0x100
cmp ebx, eax
ja 0x468ecc
push eax
lea eax, [ebp - 0x204]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp eax, ebx
jne 0x468ecc
push edi
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x468ed4
push edi
push esi
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044a318
leave
ret 8
Function at 0x469cab
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 0x10], eax
je 0x469e2f
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov dword [ebp - 8], ebx
je 0x469e2e
push esi
push edi
mov edi, dword [ebx]
add edi, 0x40
push edi
call fcn.0044a731
mov esi, eax
test esi, esi
pop ecx
je 0x469e2c
push edi
push ebx
push esi
call fcn.0044b990
mov edi, dword [esi]
add esp, 0xc
add edi, esi
and dword [ebp + 0xc], 0
mov ecx, dword [ebp + 0xc]
mov ecx, dword [edi + ecx*4]
xor eax, eax
cmp ecx, dword [eax*8 + 0x493628]
je 0x469d21
inc eax
cmp eax, 4
jb 0x469d10
jmp 0x469d83
cmp dword [ebp + 0x10], 0
je 0x469d3d
cmp dword [eax*8 + 0x49362c], 0x12
je 0x469d83
mov eax, dword [ebp + 0xc]
mov dword [edi + eax*4], 0xffffff
jmp 0x469d83
lea ebx, [eax*8 + 0x49362c]
push dword [ebx]
mov dword [ebp - 4], ebx
call dword [sym.imp.USER32.dll_GetSysColor]
push dword [ebx]
movzx eax, ah
mov dword [ebp + 8], eax
call dword [sym.imp.USER32.dll_GetSysColor]
mov ecx, dword [ebp + 8]
mov ch, al
mov eax, ebx
push dword [eax]
shl ecx, 8
mov dword [ebp + 8], ecx
call dword [sym.imp.USER32.dll_GetSysColor]
mov ecx, dword [ebp + 8]
shr eax, 0x10
movzx eax, al
or ecx, eax
mov eax, dword [ebp + 0xc]
mov dword [edi + eax*4], ecx
inc dword [ebp + 0xc]
cmp dword [ebp + 0xc], 0x10
jl 0x469d08
mov edi, dword [esi + 4]
mov ebx, dword [esi + 8]
push 0
mov dword [ebp + 8], edi
mov dword [ebp + 0xc], ebx
call dword [sym.imp.USER32.dll_GetDC]
push ebx
push edi
push eax
mov dword [ebp + 0x10], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
test eax, eax
mov dword [ebp - 4], eax
je 0x469e0e
push dword [ebp + 0x10]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push dword [ebp - 4]
mov ebx, dword [sym.imp.GDI32.dll_SelectObject]
mov edi, eax
push edi
call ebx
mov cl, byte [esi + 0xe]
push 0xcc0020
xor edx, edx
inc edx
shl edx, cl
mov ecx, dword [ebp - 8]
mov dword [ebp - 0xc], eax
xor eax, eax
push eax
push esi
lea ecx, [ecx + edx*4 + 0x28]
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push eax
push eax
push edi
call dword [sym.imp.GDI32.dll_StretchDIBits]
push dword [ebp - 0xc]
push edi
call ebx
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [ebp + 0x10]
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push esi
call fcn.00449dbf
pop ecx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x46b9f4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push esi
push edi
mov edi, dword [ebp + 8]
push edi
mov esi, ecx
call fcn.0045d88b
test eax, eax
jne 0x46bbe4
mov edi, dword [edi + 4]
push ebx
mov ecx, esi
call fcn.0043fc0c
test byte [esi + 0x7c], 0x20
mov dword [ebp - 0x10], eax
mov ebx, 0x201
jne 0x46ba38
cmp edi, ebx
je 0x46ba38
cmp edi, 0x202
jne 0x46bb91
cmp edi, 0x200
jb 0x46ba48
cmp edi, 0x209
jbe 0x46ba60
cmp edi, 0xa0
jb 0x46bb91
cmp edi, 0xa9
ja 0x46bb91
call fcn.00476028
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push eax
push dword [esi + 0x1c]
mov dword [ebp - 0x18], ecx
call dword [sym.imp.USER32.dll_ScreenToClient]
push 0x30
lea eax, [ebp - 0x48]
push 0
push eax
call fcn.0044b8b0
mov eax, dword [esi]
add esp, 0xc
lea ecx, [ebp - 0x48]
push ecx
push dword [ebp - 0x14]
mov ecx, esi
push dword [ebp - 0x18]
mov dword [ebp - 0x48], 0x28
call dword [eax + 0x6c]
cmp dword [ebp - 0x24], 0xffffffff
mov dword [ebp - 4], eax
je 0x46babe
push dword [ebp - 0x24]
call fcn.00449dbf
pop ecx
cmp edi, ebx
jne 0x46bad1
test byte [ebp - 0x41], 0x80
je 0x46bad1
mov dword [ebp - 8], 1
jmp 0x46baef
and dword [ebp - 8], 0
cmp edi, ebx
je 0x46baef
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x46baef
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x78]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jl 0x46bb5b
cmp dword [ebp - 8], 0
jne 0x46bb5b
cmp edi, 0x202
jne 0x46bb1b
mov eax, dword [esi]
push 0xffffffffffffffff
mov ecx, esi
call dword [eax + 0x160]
push 0xc8
push 0xe001
jmp 0x46bb43
test byte [esi + 0x78], 8
jne 0x46bb4c
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jl 0x46bb4c
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
cmp eax, dword [ecx + 0x78]
je 0x46bb88
push 0x12c
push 0xe000
mov ecx, esi
call fcn.0046b0a5
jmp 0x46bb88
push dword [ebp - 4]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x160]
jmp 0x46bb88
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jge 0x46bb6e
cmp dword [ebp - 8], 0
je 0x46bb88
mov eax, dword [esi]
push 0xffffffffffffffff
mov ecx, esi
call dword [eax + 0x160]
push 0xe001
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_KillTimer]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0x78], eax
mov ecx, esi
call fcn.0045f891
test eax, eax
pop ebx
je 0x46bba3
cmp dword [eax + 0x64], 0
jne 0x46bbe9
cmp dword [ebp - 0x10], 0
je 0x46bbcb
mov edi, dword [ebp - 0x10]
push dword [ebp + 8]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x100]
test eax, eax
jne 0x46bbe4
mov ecx, edi
call fcn.0045f852
test eax, eax
mov dword [ebp - 0x10], eax
jne 0x46bba9
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x46bbe9
push dword [ebp + 8]
mov ecx, esi
call fcn.0045e2ad
jmp 0x46bbeb
xor eax, eax
inc eax
jmp 0x46bbeb
xor eax, eax
pop edi
pop esi
leave
ret 4
Function at 0x46f6d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4a8ae4]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor eax, ebp
mov esi, ecx
cmp dword [esi + 0x50], 0
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], eax
je 0x46f721
push edi
call fcn.00478ca1
mov esi, eax
test esi, esi
je 0x46f745
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
sete al
jmp 0x46f745
push dword [ebp + 0x10]
lea eax, [ebp - 0x24]
push 0x492b2c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push dword [esi + 0x64]
lea eax, [ebp - 0x24]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044a318
leave
ret 0xc

Function at 0x4763ba
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x4a8ae4]
xor eax, ebp
cmp dword [ebp + 8], 0x800
mov dword [ebp - 4], eax
push esi
mov esi, ecx
lea eax, [ebp - 0xc]
jne 0x4763ea
push 0x492c44
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x4763fc
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x47642e
lea eax, [ebp - 0xc]
push eax
push esi
mov esi, 0x112
lea eax, [ebp - 0x230]
push esi
push eax
call fcn.0044b6ec
add esp, 0x10
cmp eax, 0xffffffff
je 0x47642e
cmp eax, esi
jae 0x47642e
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x476430
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0044a318
leave
ret
Function at 0x476453
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x4a8ae4]
push ebx
push esi
xor eax, ebp
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
push 0x492cec
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x28], ebx
xor esi, esi
call edi
push str.GetUserDefaultUILanguage
push eax
mov dword [ebp - 0x30], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x4764fd
call eax
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov ebx, 0x3ff
mov edi, 0xfc00
mov dword [ebp - 0x28], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ecx, cx
and eax, edi
or eax, ecx
push eax
mov dword [ebp - 0x2c], ecx
call esi
push dword [ebp - 0x2c]
mov dword [ebp - 0x48], eax
call esi
push str.GetSystemDefaultUILanguage
push dword [ebp - 0x30]
mov dword [ebp - 0x44], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
mov dword [ebp - 0x28], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ebx, cx
and eax, edi
or eax, ebx
push eax
call esi
push ebx
mov dword [ebp - 0x40], eax
call esi
mov dword [ebp - 0x3c], eax
push 4
xor ebx, ebx
jmp 0x4765ff
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x4765ad
lea eax, [ebp - 0x2c]
push eax
push 0x20019
push ebx
push str.Control_PanelDesktopResourceLocale
push SysReAllocStringLen
mov dword [ebp - 0x2c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x476600
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
push eax
push ebx
push ebx
push dword [ebp - 0x2c]
mov dword [ebp - 0x30], 0x20
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4765a2
cmp dword [ebp - 0x34], 1
jne 0x4765a2
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x24]
push 0x492c60
push eax
call fcn.0044c02f
add esp, 0xc
cmp eax, 1
jne 0x4765a2
mov eax, dword [ebp - 0x50]
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov dword [ebp - 0x28], eax
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [ebp - 0x48], eax
call esi
push 2
mov dword [ebp - 0x44], eax
pop esi
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x476600
push str.ntdll.dll
call edi
cmp eax, ebx
je 0x476600
lea ecx, [ebp - 0x28]
push ecx
push 0x47643d
push 1
push 0x10
push eax
mov dword [ebp - 0x28], ebx
call dword [sym.imp.KERNEL32.dll_EnumResourceLanguagesW]
cmp word [ebp - 0x28], bx
je 0x476600
movzx eax, word [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [ebp - 0x48], eax
call esi
mov dword [ebp - 0x44], eax
push 2
pop esi
mov dword [ebp + esi*4 - 0x48], 0x800
inc esi
xor edi, edi
cmp esi, ebx
jle 0x476625
push dword [ebp + edi*4 - 0x48]
mov ecx, dword [ebp - 0x4c]
call fcn.004763ba
cmp eax, ebx
pop ecx
jne 0x476627
inc edi
cmp edi, esi
jl 0x47660f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044a318
leave
ret 4
Function at 0x476638
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
xor edi, edi
mov dword [ecx + 0x9c], edi
cmp dword [str.SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer], edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
mov ebx, 0x4a7f5c
je 0x4766f4
push esi
lea eax, [ebp - 4]
push eax
push 1
push edi
push dword [ebx]
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4766dc
mov esi, dword [ebx + 4]
jmp 0x4766d6
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push edi
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4766c6
cmp dword [ebp - 0xc], 4
jne 0x4766c6
cmp dword [ebp - 8], edi
mov eax, dword [ebp - 0x10]
mov ecx, dword [esi + 4]
je 0x4766be
or dword [eax + 0x9c], ecx
jmp 0x4766c6
not ecx
and dword [eax + 0x9c], ecx
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
add esi, 8
mov eax, dword [esi]
cmp eax, edi
jne 0x47668a
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add ebx, 8
cmp dword [ebx], edi
mov dword [ebp - 4], edi
jne 0x47666d
pop esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
inc eax
pop ebx
leave
ret

Function at 0x47700f
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x480bf5
call fcn.0044c464
sub esp, 0x228
mov eax, dword [0x4a8ae4]
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor eax, ebp
mov dword [ebp - 0x10], esp
lea edx, [ebp - 0x228]
mov dword [ebp - 0x14], eax
mov eax, dword [edi]
push edx
push eax
push ecx
mov dword [ebp - 0x230], ecx
mov dword [ebp - 0x22c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov esi, eax
test esi, esi
jne 0x47711d
push 0x104
lea eax, [ebp - 0x220]
push eax
push 0
push dword [ebp - 0x228]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov esi, eax
test esi, esi
jne 0x4770f1
and dword [ebp - 4], eax
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x224]
call fcn.0043fe5c
lea eax, [ebp - 0x224]
push eax
push dword [ebp - 0x228]
mov byte [ebp - 4], 1
call fcn.0047700f
mov ecx, dword [ebp - 0x224]
mov esi, eax
test esi, esi
setne bl
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.00401230
test bl, bl
jne 0x4770f1
or dword [ebp - 4], 0xffffffff
jmp 0x47705c
cmp esi, 0x103
je 0x477101
cmp esi, 0x3f2
jne 0x477111
push dword [edi]
push dword [ebp - 0x230]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
push dword [ebp - 0x228]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044a318
leave
ret 8
Function at 0x4783cb
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esp + 0x10]
test edi, edi
jle 0x478400
cmp edi, dword [esi + 0xc]
jge 0x478400
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x478400
cmp edi, dword [eax + 8]
jge 0x478400
mov eax, dword [eax + 0xc]
mov edi, dword [eax + edi*4]
jmp 0x478402
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
ret 4

Function at 0x478506
Capabilities:
Allocate thread local storage

Disassembly:
xor eax, eax
push esi
mov esi, ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x18], 4
mov dword [esi + 4], eax
mov dword [esi + 8], 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x47853a
jmp fcn.0045a75c
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
ret

Function at 0x4785ab
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x1c]
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
jle 0x4786a4
cmp eax, dword [edi + 0xc]
jge 0x4786a4
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
cmp esi, ebx
je 0x4785fc
mov ecx, dword [ebp + 8]
cmp ecx, dword [esi + 8]
jl 0x47868d
cmp dword [ebp + 0xc], ebx
je 0x47868d
jmp 0x478626
push 0x10
call fcn.00478297
cmp eax, ebx
je 0x478612
mov ecx, eax
call fcn.004784fd
mov esi, eax
jmp 0x478614
xor esi, esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
mov dword [esi + eax], ecx
mov dword [edi + 0x14], esi
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x47863d
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x47864d
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
cmp eax, ebx
jne 0x47865f
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.0045a75c
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], eax
mov edx, dword [edi + 0xc]
sub edx, ecx
shl edx, 2
push edx
lea eax, [eax + ecx*4]
push ebx
push eax
call fcn.0044b8b0
mov eax, dword [edi + 0xc]
add esp, 0xc
push esi
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x47869f
cmp ecx, dword [esi + 8]
jge 0x47869f
mov edx, dword [ebp + 0xc]
mov dword [eax + ecx*4], edx
push dword [ebp - 4]
jmp 0x4786a5
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8