joyce8/EMBER2024-capa huggingface dataset:
Function at 0x51fa00
Capabilities:
Access peb ldr_data
Get ntdll base address
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x6207cc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x14]
push esi
mov esi, ecx
push edi
xor edi, edi
push 0x6b3df8
lea ecx, [esi + 0x14]
mov dword [esp + 0xc], esi
mov dword [esi + 4], edi
mov dword [esi + 8], eax
mov dword [esi + 0xc], 0xffffffff
mov dword [esi + 0x10], edi
call fcn.005dd21e
push 0x6b3df8
lea ecx, [esi + 0x18]
mov dword [esp + 0x18], edi
call fcn.005dd21e
push 0x6b3df8
lea ecx, [esi + 0x1c]
mov byte [esp + 0x18], 1
call fcn.005dd21e
push 0x6b3df8
lea ecx, [esi + 0x20]
mov byte [esp + 0x18], 2
call fcn.005dd21e
push 0x6b3df8
lea ecx, [esi + 0x24]
mov byte [esp + 0x18], 3
call fcn.005dd21e
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x28], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x2c], 0x64
mov dword [esi + 0x30], 0xfffffffe
mov dword [esi + 0x34], 0xfa
mov dword [esi], vtable.CExtCmdItem.0
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x51ff86
Capabilities:
Access peb ldr_data
Get ntdll base address
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x620817
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
xor edi, edi
or eax, 0xffffffff
push 0x6b3df8
lea ecx, [esi + 0x14]
mov dword [esp + 0xc], esi
mov dword [esi + 4], edi
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], edi
call fcn.005dd21e
push 0x6b3df8
lea ecx, [esi + 0x18]
mov dword [esp + 0x18], edi
call fcn.005dd21e
push 0x6b3df8
lea ecx, [esi + 0x1c]
mov byte [esp + 0x18], 1
call fcn.005dd21e
push 0x6b3df8
lea ecx, [esi + 0x20]
mov byte [esp + 0x18], 2
call fcn.005dd21e
push 0x6b3df8
lea ecx, [esi + 0x24]
mov byte [esp + 0x18], 3
call fcn.005dd21e
mov eax, dword [esp + 0x1c]
mov ecx, esi
push eax
mov byte [esp + 0x18], 4
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], 0x64
mov dword [esi + 0x30], 0xfffffffe
mov dword [esi + 0x34], 0xfa
mov dword [esi + 0x38], edi
mov dword [esi], vtable.CExtCmdItem.0
call fcn.005200c0
mov ecx, dword [esp + 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x521c7b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x620a0b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x24]
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
lea edi, [esi + 0x14]
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], eax
mov dword [esp + 0xc], esi
mov dword [edi + 4], ebx
mov dword [edi], vtable.CBitmap.0
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
push ecx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
push edx
mov dword [esp + 0x20], ebx
mov word [esi + 0x24], bx
call fcn.0052fca0
add esp, 8
cmp eax, ebx
je 0x521dab
push eax
mov ecx, edi
call fcn.005e1342
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, ebx
je 0x521dab
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
cmp edi, ebx
je 0x521dab
xor edx, edx
push ebp
mov dx, word [edi + 6]
mov ecx, edx
mov dword [esi + 8], edx
mov ax, word [edi]
shl ecx, 2
push ecx
mov word [esi + 0x24], ax
call fcn.005dd77b
mov edx, dword [esi + 8]
add esp, 4
xor ecx, ecx
cmp edx, ebx
mov dword [esi], eax
mov dword [esi + 0xc], ebx
jle 0x521d45
lea edx, [edi + 8]
xor ebp, ebp
mov bp, word [edx]
mov dword [eax + ecx*4], ebp
mov eax, dword [esi]
cmp dword [eax + ecx*4], ebx
je 0x521d3a
inc dword [esi + 0xc]
mov ebp, dword [esi + 8]
inc ecx
add edx, 2
cmp ecx, ebp
jl 0x521d28
mov edx, dword [esi + 0xc]
shl edx, 2
push edx
call fcn.005dd77b
mov dword [esi + 4], eax
mov eax, dword [esi + 8]
add esp, 4
xor edx, edx
xor ecx, ecx
cmp eax, ebx
jle 0x521d82
mov eax, dword [esi]
mov eax, dword [eax + ecx*4]
cmp eax, ebx
je 0x521d7a
mov ebp, dword [esi + 4]
inc edx
mov dword [ebp + edx*4 - 4], eax
mov eax, dword [esi + 0xc]
cmp edx, eax
je 0x521d82
mov eax, dword [esi + 8]
inc ecx
cmp ecx, eax
jl 0x521d62
xor ecx, ecx
xor edx, edx
mov cx, word [edi + 2]
pop ebp
mov dword [esi + 0x1c], ecx
mov dx, word [edi + 4]
mov dword [esi + 0x20], edx
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret 0x14
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x14

Function at 0x522b20
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push 0xffffffffffffffff
push 0x620af8
push eax
mov eax, dword [esp + 0x1c]
mov dword fs:[0], esp
push ebx
push eax
push ecx
lea eax, [esp + 0x28]
push edx
push eax
call fcn.00522ba0
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x24]
push reloc.WSOCK32.dll_accept
push ecx
push edx
mov dword [esp + 0x28], 0
call fcn.00523af0
add esp, 0x1c
lea ecx, [esp + 0x20]
mov bl, al
mov dword [esp + 0xc], 0xffffffff
call fcn.005dd1b0
mov ecx, dword [esp + 4]
mov al, bl
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret
Function at 0x522bd0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push 0xffffffffffffffff
push 0x620b18
push eax
mov eax, dword [esp + 0x1c]
mov dword fs:[0], esp
push ebx
push eax
push ecx
lea eax, [esp + 0x28]
push edx
push eax
call fcn.00522ba0
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x24]
push reloc.WSOCK32.dll_accept
push ecx
push edx
mov dword [esp + 0x28], 0
call fcn.00524340
add esp, 0x1c
lea ecx, [esp + 0x20]
mov bl, al
mov dword [esp + 0xc], 0xffffffff
call fcn.005dd1b0
mov ecx, dword [esp + 4]
mov al, bl
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret
Function at 0x523f90
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 8]
push ebx
test eax, eax
push esi
je 0x523fcd
lea ecx, [esp + 0x10]
mov ebx, dword [esp + 0xc]
lea edx, [esp + 0xc]
push ecx
push edx
push 0
push 0x20006
push 0
push 0
push 0
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, eax
mov eax, dword [esp + 0xc]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x523fd3
mov ebx, dword [esp + 0xc]
mov esi, ebx
test esi, esi
je 0x524018
mov edx, dword [esp + 0x18]
push edi
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
push 1
push eax
mov eax, dword [esp + 0x28]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
pop edi
jne 0x52400d
cmp esi, ebx
je 0x524008
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov al, 1
pop ebx
ret
cmp esi, ebx
je 0x524018
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
xor al, al
pop ebx
ret

Function at 0x524020
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 8]
push esi
test eax, eax
push edi
je 0x52405d
lea ecx, [esp + 0x10]
mov edi, dword [esp + 0xc]
lea edx, [esp + 0xc]
push ecx
push edx
push 0
push 0x20006
push 0
push 0
push 0
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, eax
mov eax, dword [esp + 0xc]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x524063
mov edi, dword [esp + 0xc]
mov esi, edi
test esi, esi
je 0x52409d
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push 4
push eax
push 4
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x524092
cmp esi, edi
je 0x52408d
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov al, 1
pop esi
ret
cmp esi, edi
je 0x52409d
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor al, al
pop esi
ret

Function at 0x5240b0
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 8]
push esi
test eax, eax
push edi
je 0x5240ed
lea ecx, [esp + 0x10]
mov edi, dword [esp + 0xc]
lea edx, [esp + 0xc]
push ecx
push edx
push 0
push 0x20006
push 0
push 0
push 0
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, eax
mov eax, dword [esp + 0xc]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x5240f3
mov edi, dword [esp + 0xc]
mov esi, edi
test esi, esi
je 0x524130
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push eax
push ecx
push 3
push 0
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x524125
cmp esi, edi
je 0x524120
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov al, 1
pop esi
ret
cmp esi, edi
je 0x524130
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor al, al
pop esi
ret
Function at 0x524140
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 8
lea eax, [esp]
lea ecx, [esp + 0xc]
push ebx
push ebp
push esi
push edi
push 0
push 0
mov edi, dword [esp + 0x24]
push 0
push 0
push 0
push 0
push eax
push ecx
push 0
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x52423f
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x524225
mov eax, dword [esp + 0x10]
inc eax
push eax
mov dword [esp + 0x14], eax
call fcn.00511214
mov esi, eax
add esp, 4
test esi, esi
je 0x52423f
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
dec eax
push edx
push esi
push eax
push edi
mov dword [esp + 0x2c], eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x524236
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x14]
push eax
push 0x2001f
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x524236
mov ebx, dword [esp + 0x14]
test ebx, ebx
je 0x524236
push ebx
call fcn.00524140
add esp, 4
test al, al
je 0x52422f
push ebx
call ebp
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x524236
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x52421c
mov ecx, dword [esp + 0x10]
dec eax
push ecx
push esi
push eax
push edi
mov dword [esp + 0x2c], eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x524236
jmp 0x5241bf
push esi
call fcn.0051112b
add esp, 4
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 8
ret
test ebx, ebx
je 0x524236
push ebx
call ebp
push esi
call fcn.0051112b
add esp, 4
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 8
ret
Function at 0x524740
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 8]
push ebx
push ebp
push esi
test eax, eax
push edi
je 0x524774
mov ebp, dword [esp + 0x14]
lea ecx, [esp + 0x14]
push ecx
push 0x20019
push 0
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
mov eax, dword [esp + 0x14]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x52477a
mov ebp, dword [esp + 0x14]
mov esi, ebp
test esi, esi
je 0x5247f5
mov edi, dword [esp + 0x1c]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x14]
lea eax, [esp + 0x18]
push edx
push 0
push eax
push 0
push edi
push esi
call ebx
test eax, eax
jne 0x5247ea
mov eax, dword [esp + 0x18]
cmp eax, 1
je 0x5247b6
cmp eax, 2
je 0x5247b6
cmp eax, 6
je 0x5247b6
cmp eax, 7
jne 0x5247ea
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
cmp ecx, eax
jb 0x5247ea
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x14]
push edx
push eax
push 0
push 0
push edi
push esi
call ebx
test eax, eax
jne 0x5247ea
cmp esi, ebp
je 0x5247e3
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
ret
cmp esi, ebp
je 0x5247f5
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret

Function at 0x524800
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 8]
push ebx
push ebp
push esi
test eax, eax
push edi
je 0x524834
mov ebp, dword [esp + 0x14]
lea ecx, [esp + 0x14]
push ecx
push 0x20019
push 0
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
mov eax, dword [esp + 0x14]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x52483a
mov ebp, dword [esp + 0x14]
mov esi, ebp
test esi, esi
je 0x524898
mov edi, dword [esp + 0x1c]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x18]
lea eax, [esp + 0x14]
push edx
push 0
push eax
push 0
push edi
push esi
call ebx
test eax, eax
jne 0x52488d
cmp dword [esp + 0x14], 4
jne 0x52488d
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x18]
push ecx
push edx
push 0
push 0
push edi
push esi
call ebx
test eax, eax
jne 0x52488d
cmp esi, ebp
je 0x524886
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
ret
cmp esi, ebp
je 0x524898
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
Function at 0x5248a0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 8]
push ebx
push ebp
push esi
test eax, eax
push edi
je 0x5248d4
mov ebp, dword [esp + 0x14]
lea ecx, [esp + 0x14]
push ecx
push 0x20019
push 0
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
mov eax, dword [esp + 0x14]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x5248da
mov ebp, dword [esp + 0x14]
mov esi, ebp
test esi, esi
je 0x524944
mov edi, dword [esp + 0x1c]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea edx, [esp + 0x14]
lea eax, [esp + 0x18]
push edx
push 0
push eax
push 0
push edi
push esi
call ebx
test eax, eax
jne 0x524939
cmp dword [esp + 0x18], 3
jne 0x524939
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
cmp ecx, eax
jb 0x524939
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x14]
push edx
push eax
push 0
push 0
push edi
push esi
call ebx
test eax, eax
jne 0x524939
cmp esi, ebp
je 0x524932
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
ret
cmp esi, ebp
je 0x524944
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret

Function at 0x524e00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebp
push edi
mov edi, dword [esp + 0x10]
push edi
mov ebp, ecx
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x524e1f
pop edi
xor al, al
pop ebp
ret 8
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
xor bl, bl
test esi, esi
je 0x524e77
mov ecx, dword [esp + 0x14]
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
jne 0x524e54
mov ecx, ebp
call fcn.00524d70
mov bl, 1
pop esi
mov al, bl
pop ebx
pop edi
pop ebp
ret 8
push 1
push edi
mov ecx, ebp
call fcn.00524da0
test al, al
je 0x524e77
mov ecx, edi
mov edi, dword [ebp]
mov edx, ecx
mov bl, 1
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov al, bl
pop esi
pop ebx
pop edi
pop ebp
ret 8
Function at 0x524fa0
Capabilities:
Identify system language via api

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
jne 0x5250a5
mov eax, dword [esi]
call dword [eax + 8]
test al, al
je 0x524fcc
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x1c]
xor ecx, ecx
cmp ax, 0x401
sete cl
mov eax, ecx
pop esi
ret
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
and eax, 0xffff
cmp eax, 0x1401
jg 0x52503d
je case.0x525007.1025
cmp eax, 0x460
jg 0x52500e
je case.0x525007.1025
add eax, 0xfffffbff
cmp eax, 0x58
ja case.0x525007.1026
xor edx, edx
mov dl, byte [eax + 0x5250b0]
jmp dword [edx*4 + 0x5250a8]
cmp eax, 0x860
jg 0x52502b
je case.0x525007.1025
sub eax, 0x801
je case.0x525007.1025
sub eax, 0x1f
je case.0x525007.1025
xor eax, eax
pop esi
ret
cmp eax, 0xc01
je case.0x525007.1025
cmp eax, 0x1001
je case.0x525007.1025
xor eax, eax
pop esi
ret
cmp eax, 0x2c01
jg 0x525073
je case.0x525007.1025
cmp eax, 0x2001
jg 0x525061
je case.0x525007.1025
cmp eax, 0x1801
je case.0x525007.1025
cmp eax, 0x1c01
je case.0x525007.1025
xor eax, eax
pop esi
ret
cmp eax, 0x2401
je case.0x525007.1025
cmp eax, 0x2801
je case.0x525007.1025
xor eax, eax
pop esi
ret
cmp eax, 0x3801
jg 0x52508e
je case.0x525007.1025
cmp eax, 0x3001
je case.0x525007.1025
cmp eax, 0x3401
je case.0x525007.1025
xor eax, eax
pop esi
ret
cmp eax, 0x3c01
je case.0x525007.1025
cmp eax, 0x4001
je case.0x525007.1025
xor eax, eax
pop esi
ret
mov eax, 1
pop esi
ret

Function at 0x525132
Capabilities:
Get geographical location

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi]
call dword [eax + 8]
mov edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
test al, al
je 0x525188
mov edx, dword [esi]
push edi
push ebx
push ebp
mov ecx, esi
call dword [edx + 0x1c]
and eax, 0xffff
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x5251b0
mov eax, dword [esi]
push edi
push ebx
push ebp
mov ecx, esi
call dword [eax + 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
and eax, 0xffff
push eax
call esi
test eax, eax
je 0x52518e
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push edi
push ebx
push ebp
push 0x400
call esi
test eax, eax
jne 0x5251b0
push edi
push ebx
push ebp
push 0x800
call esi
test eax, eax
jne 0x5251b0
push edi
push ebx
push ebp
push eax
call esi
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
Function at 0x526110
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x620e80
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
mov esi, dword [esp + 0x30]
push esi
lea ecx, [esp + 0x18]
call fcn.005df490
mov eax, dword [0x6abf00]
mov dword [esp + 0x28], 0
mov dword [esp + 8], eax
mov dword [esp + 4], eax
lea eax, [esp + 0x10]
push 0
lea ecx, [esp + 0xc]
push eax
push ecx
mov byte [esp + 0x34], 2
call fcn.00526ad0
add esp, 0xc
test eax, eax
je 0x526219
mov edx, dword [0x6abf00]
mov dword [esp + 0xc], edx
lea eax, [esp + 0x30]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
mov byte [esp + 0x34], 3
call fcn.005df641
mov edx, dword [esp + 0x18]
add esp, 0xc
lea ecx, [esp + 4]
mov esi, eax
push edx
call fcn.005dd2ed
test esi, esi
je 0x5261c5
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push eax
push ecx
call fcn.00510843
add esp, 8
test eax, eax
jne 0x5261c5
mov dx, word [esp + 0x30]
cmp dx, word [esp + 0x10]
je 0x52620b
mov eax, dword [esp + 4]
push str.MS_Sans_Serif
push eax
call fcn.00510843
add esp, 8
test eax, eax
je 0x5261f1
mov ecx, dword [esp + 4]
push str.MS_Shell_Dlg
push ecx
call fcn.00510843
add esp, 8
test eax, eax
jne 0x52620b
mov eax, dword [esp + 0x10]
cmp word [esp + 0x30], ax
jne 0x52620b
mov edx, dword [esp + 8]
push eax
push edx
lea ecx, [esp + 0x1c]
call fcn.005df6b0
lea ecx, [esp + 0xc]
mov byte [esp + 0x28], 2
call fcn.005dd1b0
lea ecx, [esp + 0x14]
call fcn.005df52d
lea ecx, [esp + 4]
mov esi, eax
mov byte [esp + 0x28], 1
call fcn.005dd1b0
lea ecx, [esp + 8]
mov byte [esp + 0x28], 0
call fcn.005dd1b0
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0xffffffff
call fcn.005df51f
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret
Function at 0x526280
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x620e98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x14], eax
call fcn.005f45a4
mov ebx, dword [eax + 0xc]
mov eax, dword [esi + 0x40]
test eax, eax
je 0x5262f1
mov ecx, 0x6c62b8
mov dword [ebp - 0x18], 0
call fcn.00524c90
mov edx, dword [eax]
lea ecx, [ebp - 0x18]
push ecx
mov ecx, dword [esi + 0x40]
push 0
push ecx
push 5
mov ecx, eax
call dword [edx + 0x34]
mov edx, dword [ebp - 0x18]
mov ebx, eax
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x5262ff
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x52631a
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.005d9301
mov edi, eax
mov dword [ebp - 0x20], edi
call fcn.005da1bd
test edi, edi
mov dword [ebp - 0x18], 0
je 0x526351
push edi
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x526351
push 0
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x18], 1
lea ecx, [ebp - 0x2c]
call fcn.005decde
mov dword [ebp - 4], 0
push esi
mov byte [ebp - 4], 1
call fcn.005da171
push edi
call fcn.005d9ca3
push ebx
push eax
mov eax, dword [ebp - 0x14]
mov ecx, esi
push eax
call fcn.00526490
test eax, eax
je 0x5263e5
test byte [esi + 0x24], 0x10
je 0x5263a5
mov ecx, esi
mov ebx, 4
call fcn.005dcc64
test ah, 1
je 0x52639d
mov ebx, 5
push ebx
mov ecx, esi
call fcn.005dc5b1
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x5263e5
push 0x97
push 0
push 0
push 0
push 0
push 0
mov ecx, esi
call fcn.005dcdf0
jmp 0x5263e5
mov dword [ebp - 4], 0xffffffff
call fcn.005ded1c
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x526401
push 1
push edi
call dword [sym.imp.USER32.dll_EnableWindow]
test edi, edi
je 0x526417
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x526417
push edi
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x58]
mov ecx, esi
call fcn.005d933b
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x526a40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
xor edi, edi
cmp eax, edi
mov esi, ecx
je 0x526a96
mov ecx, 0x6c62b8
mov dword [esp + 0xc], edi
call fcn.00524c90
mov edx, dword [eax]
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esi + 0x40]
push edi
push ecx
push 0xf0
mov ecx, eax
call dword [edx + 0x34]
cmp eax, edi
je 0x526a96
mov edx, dword [esp + 0xc]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x526a8d
pop edi
xor eax, eax
pop esi
ret 4
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, esi
call fcn.00526ab0
pop edi
pop esi
ret 4

Function at 0x526efa
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x620f78
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x10]
call fcn.00524d30
mov ebp, dword [esp + 0x28]
xor ebx, ebx
mov dword [esp + 0x20], ebx
test byte [ebp + 4], 1
je 0x526f22
mov edi, dword [ebp + 0xc]
mov dword [esi + 0x8c], ebx
jmp 0x526f5b
mov ecx, 0x6c62b8
mov dword [esp + 0x28], ebx
call fcn.00524c90
mov edx, dword [eax]
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [ebp + 0xc]
push ebx
push ecx
push 5
mov ecx, eax
call dword [edx + 0x34]
mov edx, dword [esp + 0x28]
mov eax, dword [ebp + 8]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
call fcn.005f45a4
cmp dword [eax + 0x1038], ebx
je 0x526f72
push edi
mov ecx, esi
call fcn.005ece8c
mov edi, eax
mov eax, dword [esp + 0x2c]
mov edx, dword [esi]
push eax
push edi
mov ecx, esi
call dword [edx + 0xf0]
mov ebx, eax
mov eax, dword [esi + 0x44]
test eax, eax
je 0x526f99
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov dword [esi + 0x44], 0
test ebx, ebx
je 0x526fa2
mov edi, ebx
mov dword [esi + 0x44], ebx
mov eax, dword [ebp + 4]
lea ecx, [esp + 0x10]
or al, 1
mov dword [ebp + 0xc], edi
mov dword [ebp + 4], eax
mov dword [esp + 0x20], 0xffffffff
call fcn.00524d40
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret 8