joyce8/EMBER2024-capa huggingface dataset:
Function at 0x458d98
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x458f43
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x458f24
mov dl, 1
mov eax, dword [0x41c148]
call fcn.00403a8c
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404998
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x458f13
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00446dcc
test al, al
je 0x458f06
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x458f54
lea eax, [ebp - 0x254]
call fcn.0040a934
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x458f06
xor eax, eax
push ebp
push 0x458eff
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x458f8c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x458ee8
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404c08
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x458ee8
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404c08
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x458f06
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x458e09
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.00421294
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x458f4a
lea eax, [ebp - 0x260]
call fcn.00404998
ret

Function at 0x459878
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x530bc0]
cmp byte [eax + 0xa5], 0
jne 0x4598e9
cmp dword [0x530bd8], 0
jne 0x4598aa
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x459834
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x530bd8], eax
cmp dword [0x530bd4], 0
jne 0x4598c5
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x530bd4], eax
cmp dword [0x530bdc], 0
jne 0x4598e9
push esp
push 0
push 0
push 0x4597d8
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x530bdc], eax
pop edx
ret
Function at 0x4599e0
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x4599f7
add esp, 0xfffffff0
call fcn.00403de8
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004257f8
mov eax, dword [0x52fa70]
cmp word [eax + 2], 0
jne 0x459a1f
mov eax, dword [0x52fa70]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045b0d0
mov eax, dword [0x52fc40]
cmp word [eax + 2], 0
jne 0x459a39
mov eax, dword [0x52fc40]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045b2c8
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x41b938]
call fcn.00403a8c
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x41b938]
call fcn.00403a8c
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x4279dc]
call fcn.0042d624
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x459bc0
mov eax, dword [0x52f800]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042d9f4
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x45b878
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x52f800]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040e7c0
test eax, eax
je 0x459b2e
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.0040a2d0
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040e7e8
test eax, eax
je 0x459b42
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404c08
mov eax, dword [0x52f4c0]
cmp byte [eax], 0
jne 0x459b76
mov eax, ebx
call fcn.00459ce8
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.0045ba54
mov eax, ebx
call fcn.0045c418
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x459bb6
call fcn.00403e40
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x459f68
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x530bc0]
cmp dword [eax + 0x30], 0
je 0x45a012
cmp dword [ebx + 0x94], 0
jne 0x45a00c
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x459ef8
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45a00c
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x459fd2
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45a00c
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0041e434
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x459fe1
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x45ab74
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x45aba9
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404a88
jmp 0x45abb6
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004049ec
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x45bc30
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45bc71
mov eax, esi
call fcn.0044248c
test al, al
je 0x45bc71
mov eax, dword [ebx + 0x84]
call fcn.004421b4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45bc71
push 0
mov eax, dword [ebx + 0x84]
call fcn.004421b4
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x479f70
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x47a0aa
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0041f7b0
mov eax, dword [ebp - 4]
cmp byte [eax + 0x30], 2
jne 0x479fec
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x14]
test eax, eax
jle 0x479fec
lea ecx, [ebp - 0x18]
xor edx, edx
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
call fcn.00409424
mov edx, dword [ebp - 0x14]
mov ebx, dword [0x52f5b8]
mov ebx, dword [ebx]
mov eax, 0x47a0c0
call ebx
dec eax
jne 0x479fec
mov ebx, 1
jmp 0x479fee
xor ebx, ebx
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
sub eax, ebx
jl 0x47a08f
inc eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], ebx
lea ecx, [ebp - 0x1c]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov eax, dword [ebp - 0x1c]
call fcn.00479a80
test al, al
jne 0x47a083
mov eax, dword [ebp - 4]
call fcn.00479f64
mov ebx, eax
lea ecx, [ebp - 0x20]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov esi, dword [eax]
call dword [esi + 0xc]
mov edx, dword [ebp - 0x20]
lea eax, [ebx + 0x1c]
call fcn.004049ec
xor edx, edx
push ebp
push 0x47a071
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
mov al, byte [eax + 0x30]
test al, al
je 0x47a067
mov edx, eax
mov ecx, ebx
mov eax, dword [ebp - 4]
call fcn.0047a384
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x47a083
inc dword [ebp - 0xc]
dec dword [ebp - 0x10]
jne 0x47a006
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47a0b1
lea eax, [ebp - 0x20]
mov edx, 4
call fcn.004049bc
ret
Function at 0x480e7c
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
mov ecx, 8
push 0
push 0
dec ecx
jne 0x480e84
push ecx
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x481076
push dword fs:[eax]
mov dword fs:[eax], esp
mov esi, dword [ebx + 8]
lea ecx, [ebp - 0xc]
mov edx, 0x48108c
mov eax, esi
call fcn.0047ed08
mov edx, dword [ebp - 0xc]
lea eax, [ebx + 0xc]
call fcn.004049ec
lea ecx, [ebp - 0x10]
mov edx, 0x4810a0
mov eax, esi
call fcn.0047ed08
mov edx, dword [ebp - 0x10]
lea eax, [ebx + 0x28]
call fcn.004049ec
lea ecx, [ebp - 0x14]
mov edx, 0x4810b8
mov eax, esi
call fcn.0047ed08
mov edx, dword [ebp - 0x14]
lea eax, [ebx + 0x10]
call fcn.004049ec
lea ecx, [ebp - 0x18]
mov edx, 0x4810d4
mov eax, esi
call fcn.0047ed08
mov edx, dword [ebp - 0x18]
lea eax, [ebx + 0x14]
call fcn.004049ec
lea ecx, [ebp - 0x1c]
mov edx, 0x4810f0
mov eax, esi
call fcn.0047ed08
mov edx, dword [ebp - 0x1c]
lea eax, [ebx + 0x24]
call fcn.004049ec
lea ecx, [ebp - 0x24]
mov edx, 0x481108
mov eax, esi
call fcn.0047ed08
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.00409660
mov eax, dword [ebp - 0x20]
or edx, 0xffffffff
call fcn.00409ac8
mov edi, eax
mov dword [ebx + 0x18], edi
test edi, edi
setge al
mov byte [ebx + 0x4c], al
lea ecx, [ebp - 0x28]
mov edx, 0x481120
mov eax, esi
call fcn.0047ed08
mov eax, dword [ebp - 0x28]
call fcn.00473a94
fstp qword [ebx + 0x30]
wait
lea ecx, [ebp - 0x2c]
mov edx, 0x481130
mov eax, esi
call fcn.0047ed08
mov eax, dword [ebp - 0x2c]
call fcn.00473a94
fstp qword [ebx + 0x40]
wait
lea ecx, [ebp - 0x30]
mov edx, 0x481148
mov eax, esi
call fcn.0047ed08
mov eax, dword [ebp - 0x30]
or edx, 0xffffffff
call fcn.00409ac8
inc eax
je 0x481019
lea ecx, [ebp - 0x34]
mov edx, 0x481148
mov eax, esi
call fcn.0047ed08
mov eax, dword [ebp - 0x34]
call fcn.00409a8c
mov edi, eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov dword [ebp - 8], eax
mov eax, edi
mov ecx, 0xe10
cdq
idiv ecx
mov ecx, edx
mov eax, ecx
push ecx
mov ecx, 0x3c
cdq
idiv ecx
pop ecx
mov dword [ebp - 4], eax
mov eax, ecx
mov ecx, 0x3c
cdq
idiv ecx
mov edi, edx
push 0
mov ecx, edi
mov dx, word [ebp - 4]
mov ax, word [ebp - 8]
call fcn.0040b7c4
fstp qword [ebp - 0x3c]
wait
call fcn.0040bb28
fadd qword [ebp - 0x3c]
fstp qword [ebx + 0x38]
wait
jmp 0x481034
lea ecx, [ebp - 0x40]
mov edx, 0x481148
mov eax, esi
call fcn.0047ed08
mov eax, dword [ebp - 0x40]
call fcn.00473a94
fstp qword [ebx + 0x38]
wait
lea ecx, [ebp - 0x44]
mov edx, 0x481158
mov eax, esi
call fcn.0047ed08
mov edx, dword [ebp - 0x44]
lea eax, [ebx + 0x48]
call fcn.004049ec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48107d
lea eax, [ebp - 0x44]
mov edx, 2
call fcn.004049bc
lea eax, [ebp - 0x34]
mov edx, 0xb
call fcn.004049bc
ret
Function at 0x4bfa3c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
test dl, dl
je 0x4bfa59
add esp, 0xfffffff0
call fcn.00403de8
mov dword [ebp - 8], ecx
mov byte [ebp - 1], dl
mov ebx, eax
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
xor eax, eax
push ebp
push 0x4bfbf5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.004b6248
test al, al
jne 0x4bfa96
mov ecx, 0x4bfc28
mov dl, 1
mov eax, dword [0x4aa944]
call fcn.0040d93c
call fcn.00404314
xor eax, eax
push ebp
push 0x4bfac2
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0xc]
mov eax, esi
call fcn.004b4cf4
lea edx, [ebp - 0x10]
mov eax, esi
call fcn.004b4be0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4bfae2
mov eax, dword [ebp - 0x10]
mov edx, 0x4bfc64
call fcn.00405374
je 0x4bfaff
mov eax, esi
mov edx, 0x4bfc64
call fcn.00405374
jne 0x4bfb23
mov eax, edi
mov edx, 0x4bfc74
call fcn.00405374
je 0x4bfb23
mov ecx, 0x4bfc4c
mov dl, 1
mov eax, dword [0x4aabec]
call fcn.0040d93c
call fcn.00404314
mov eax, edi
xor edx, edx
call fcn.00405374
jne 0x4bfb50
mov eax, dword [ebp - 0x10]
xor edx, edx
call fcn.00405374
je 0x4bfb50
mov ecx, 0x4bfc4c
mov dl, 1
mov eax, dword [0x4aabec]
call fcn.0040d93c
call fcn.00404314
mov eax, dword [ebp - 0x10]
mov edx, 0x4bfcb4
call fcn.00405374
jne 0x4bfb83
mov eax, edi
mov edx, 0x4bfcc0
call fcn.00405374
je 0x4bfb83
mov ecx, 0x4bfc4c
mov dl, 1
mov eax, dword [0x4aabec]
call fcn.0040d93c
call fcn.00404314
mov ecx, dword [ebp - 8]
xor edx, edx
mov eax, ebx
call fcn.004bdb2c
lea eax, [ebx + 4]
mov edx, esi
call fcn.00405108
lea eax, [ebx + 0x28]
mov edx, edi
call fcn.00405108
lea eax, [ebx + 0x2c]
mov edx, dword [ebp - 0x10]
call fcn.00405108
lea eax, [ebx + 0x24]
mov edx, dword [ebp - 0xc]
call fcn.00405108
lea eax, [ebx + 8]
call fcn.004050cc
mov byte [ebx + 0xc], 2
xor eax, eax
mov dword [ebx + 0x30], eax
mov al, byte [ebp + 8]
mov byte [ebx + 0x34], al
mov ax, word [0x4bfd0c]
mov word [ebx + 0x21], ax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bfbfc
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.004050e4
ret
Function at 0x4c14f0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
test dl, dl
je 0x4c150d
add esp, 0xfffffff0
call fcn.00403de8
mov dword [ebp - 8], ecx
mov byte [ebp - 1], dl
mov ebx, eax
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
xor eax, eax
push ebp
push 0x4c16a8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.004b6248
test al, al
jne 0x4c154a
mov ecx, 0x4c16dc
mov dl, 1
mov eax, dword [0x4aa944]
call fcn.0040d93c
call fcn.00404314
xor eax, eax
push ebp
push 0x4c1576
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0xc]
mov eax, esi
call fcn.004b4cf4
lea edx, [ebp - 0x10]
mov eax, esi
call fcn.004b4be0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4c1596
mov eax, edi
xor edx, edx
call fcn.00405374
jne 0x4c15c3
mov eax, dword [ebp - 0x10]
xor edx, edx
call fcn.00405374
je 0x4c15c3
mov ecx, 0x4c1700
mov dl, 1
mov eax, dword [0x4aabec]
call fcn.0040d93c
call fcn.00404314
mov eax, dword [ebp - 0x10]
mov edx, 0x4c1718
call fcn.00405374
jne 0x4c15f6
mov eax, edi
mov edx, 0x4c1724
call fcn.00405374
je 0x4c15f6
mov ecx, 0x4c1700
mov dl, 1
mov eax, dword [0x4aabec]
call fcn.0040d93c
call fcn.00404314
mov ecx, dword [ebp - 8]
xor edx, edx
mov eax, ebx
call fcn.004bdb2c
lea eax, [ebx + 4]
mov edx, esi
call fcn.00405108
lea eax, [ebx + 0x28]
mov edx, edi
call fcn.00405108
lea eax, [ebx + 0x2c]
mov edx, dword [ebp - 0x10]
call fcn.00405108
lea eax, [ebx + 0x24]
mov edx, dword [ebp - 0xc]
call fcn.00405108
lea eax, [ebx + 8]
call fcn.004050cc
mov byte [ebx + 0xc], 1
mov dl, 1
mov eax, dword [0x41b938]
call fcn.00403a8c
mov dword [ebx + 0x38], eax
mov dl, 1
mov eax, dword [0x41b938]
call fcn.00403a8c
mov dword [ebx + 0x30], eax
mov dl, 1
mov eax, dword [0x41b938]
call fcn.00403a8c
mov dword [ebx + 0x34], eax
push ebx
mov eax, dword [ebx + 0x38]
push eax
mov ax, word [0x4c1770]
push eax
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x4ad968]
call fcn.004bcd84
mov dword [ebx + 0x3c], eax
mov ax, word [0x4c1774]
mov word [ebx + 0x21], ax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c16af
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.004050e4
ret
Function at 0x4c4104
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
test dl, dl
je 0x4c4126
add esp, 0xfffffff0
call fcn.00403de8
mov dword [ebp - 8], ecx
mov byte [ebp - 1], dl
mov ebx, eax
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
xor eax, eax
push ebp
push 0x4c4291
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.004b6248
test al, al
jne 0x4c4163
mov ecx, 0x4c42c4
mov dl, 1
mov eax, dword [0x4aa944]
call fcn.0040d93c
call fcn.00404314
push dword [0x52e210]
lea edx, [ebp - 0x10]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0xbc]
push dword [ebp - 0x10]
push dword [0x52e210]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040532c
mov eax, dword [ebp - 0xc]
call fcn.004b6d20
test al, al
jne 0x4c4235
push dword [0x52e20c]
push dword [ebp + 8]
push dword [0x52e20c]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.0040532c
mov eax, dword [ebp - 0x14]
call fcn.004b6d20
test al, al
jne 0x4c4235
push dword [0x52e210]
lea edx, [ebp - 0x1c]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0xb8]
push dword [ebp - 0x1c]
push dword [0x52e210]
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.0040532c
mov eax, dword [ebp - 0x18]
call fcn.004b6e38
test al, al
jne 0x4c4235
push dword [0x52e20c]
push edi
push dword [0x52e20c]
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.0040532c
mov eax, dword [ebp - 0x20]
call fcn.004b6e38
test al, al
jne 0x4c4235
mov ecx, 0x4c42c4
mov dl, 1
mov eax, dword [0x4aa944]
call fcn.0040d93c
call fcn.00404314
mov ecx, dword [ebp - 8]
xor edx, edx
mov eax, ebx
call fcn.004bdb2c
lea eax, [ebx + 4]
mov edx, esi
call fcn.00405108
lea eax, [ebx + 8]
call fcn.004050cc
lea eax, [ebx + 0x30]
mov edx, edi
call fcn.00405108
lea eax, [ebx + 0x34]
mov edx, dword [ebp + 8]
call fcn.00405108
mov byte [ebx + 0xc], 0xc
mov ax, word [0x4c42e0]
mov word [ebx + 0x21], ax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c4298
lea eax, [ebp - 0x20]
mov edx, 6
call fcn.004050e4
ret

Function at 0x4f8d94
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
xor edx, edx
mov dword [ebp - 0x104], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4f8e0f
push dword fs:[eax]
mov dword fs:[eax], esp
push pe_nt_image_headers32
lea eax, [ebp - 0x100]
push eax
push 0x59
call sub.kernel32.dll_GetThreadLocale_1
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x4f8df6
lea eax, [ebp - 0x104]
lea edx, [ebp - 0x100]
mov ecx, pe_nt_image_headers32
call fcn.00404c08
mov eax, dword [ebp - 0x104]
mov edx, ebx
call fcn.00409460
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f8e16
lea eax, [ebp - 0x104]
call fcn.00404998
ret
Function at 0x50c314
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x50c494
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x28]
xor ecx, ecx
mov edx, 0x24
call fcn.004032d8
lea eax, [ebp - 0x28]
push eax
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [ebp - 0x14]
mov dword [0x52e6a4], eax
mov eax, dword [ebp - 0xc]
mov dword [0x52e6a8], eax
mov eax, dword [ebp - 0x24]
mov dword [0x52e6ac], eax
mov eax, dword [0x52ff88]
cmp dword [eax], 2
sete byte [0x52e4f8]
push 0x50c4a0
call sub.kernel32.dll_GetModuleHandleA_2
lea edx, [ebp - 4]
call fcn.0050cc38
cmp byte [0x52e4f8], 0
jne 0x50c3a0
lea edx, [ebp - 0x5c]
mov eax, dword [ebp - 4]
call fcn.0050cc68
test al, al
je 0x50c3a0
mov eax, dword [ebp - 0x4c]
mov dword [0x53168c], eax
jmp 0x50c3a7
xor eax, eax
mov dword [0x53168c], eax
call fcn.0050c1ac
and eax, 0x7f
cmp eax, 0xc
ja case.0x50c3b8.0
jmp dword [eax*4 + 0x50c3bf]
mov byte [0x52e4e4], 1
jmp case.0x50c3b8.0
mov byte [0x52e4e8], 1
jmp case.0x50c3b8.0
mov byte [0x52e4ec], 1
jmp case.0x50c3b8.0
mov byte [0x52e4f0], 1
jmp case.0x50c3b8.0
mov byte [0x52e4f4], 1
jmp case.0x50c3b8.0
mov byte [0x52e4fc], 1
mov byte [0x52e500], 1
jmp case.0x50c3b8.0
mov byte [0x52e4fc], 1
mov byte [0x52e504], 1
jmp case.0x50c3b8.0
mov byte [0x52e4fc], 1
mov byte [0x52e504], 1
mov byte [0x52e508], 1
jmp case.0x50c3b8.0
mov byte [0x52e50c], 1
jmp case.0x50c3b8.0
mov byte [0x52e510], 1
jmp case.0x50c3b8.0
mov byte [0x52e514], 1
jmp case.0x50c3b8.0
mov byte [0x52e518], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50c49b
lea eax, [ebp - 4]
call fcn.00404998
ret
Function at 0x50c8ac
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
test dl, dl
je 0x50c8c1
add esp, 0xfffffff0
call fcn.00403de8
mov dword [ebp - 8], ecx
mov byte [ebp - 1], dl
mov ebx, eax
mov esi, dword [ebp + 8]
xor edx, edx
mov eax, ebx
call fcn.00403a8c
movzx edx, si
mov eax, dword [ebp - 8]
call fcn.00409d3c
mov edi, eax
mov dword [ebx + 0x10], edi
cmp edi, 0xffffffff
jne 0x50c8ef
call fcn.0040ef6c
and si, 0xf
cmp si, 2
jne 0x50c905
mov esi, 8
mov edi, 1
jmp 0x50c90f
mov esi, 2
mov edi, 4
push 0
push 0
push 0
push esi
push 0
mov eax, dword [ebx + 0x10]
push eax
call sub.kernel32.dll_CreateFileMappingA
mov dword [ebx + 0x14], eax
cmp dword [ebx + 0x14], 0
jne 0x50c948
mov eax, ebx
call fcn.0050ca0c
mov ecx, dword [0x52f9f4]
mov dl, 1
mov eax, dword [0x50c7e0]
call fcn.0050b3ac
call fcn.00404314
push 0
push 0
push 0
push edi
mov eax, dword [ebx + 0x14]
push eax
call sub.kernel32.dll_MapViewOfFile
mov esi, eax
test esi, esi
jne 0x50c97c
mov eax, ebx
call fcn.0050ca0c
mov ecx, dword [0x52fddc]
mov dl, 1
mov eax, dword [0x50c844]
call fcn.0050b3ac
call fcn.00404314
push 0
mov eax, dword [ebx + 0x10]
push eax
call sub.kernel32.dll_GetFileSize_1
cmp eax, 0xffffffff
jne 0x50c9b0
push esi
call sub.kernel32.dll_UnmapViewOfFile
mov eax, ebx
call fcn.0050ca0c
mov ecx, dword [0x52fc78]
mov dl, 1
mov eax, dword [0x50c844]
call fcn.0050b3ac
call fcn.00404314
mov ecx, eax
mov edx, esi
mov eax, ebx
call fcn.004219c4
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x50c9d2
call fcn.00403e40
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4

Function at 0x50cc68
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x50cd0f
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 0xc]
push eax
mov eax, esi
call fcn.00404e58
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
jbe 0x50ccf9
lea eax, [ebp - 0x10]
mov edx, edi
call fcn.00404fe4
mov eax, dword [ebp - 0x10]
push eax
push edi
mov eax, dword [ebp - 0xc]
push eax
mov eax, esi
call fcn.00404e58
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x50ccf9
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x50cd20
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x50ccf9
cmp dword [ebp - 8], 0x34
jne 0x50ccf9
mov bl, 1
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
mov esi, eax
mov edi, edx
mov ecx, 0xd
rep movsd dword es:[edi], dword [esi]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x50cd16
lea eax, [ebp - 0x10]
call fcn.00404998
ret