joyce8/EMBER2024-capa huggingface dataset:
Function at 0x416c60
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ecx
push esi
mov esi, eax
mov eax, SysReAllocString
mov dword [esp + 4], 0
test ecx, ecx
je 0x416c9a
push 0
lea eax, [esp + 8]
push eax
push 0
push 2
push 0
push 0
push 0
push ecx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x416cf0
mov eax, dword [esp + 4]
test edi, edi
je 0x416cc5
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
push ecx
push edi
push edx
push 0
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ecx
ret
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, eax
test esi, esi
je 0x416ce3
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ecx
ret
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop esi
pop ecx
ret

Function at 0x417560
Capabilities:
Check for time delay via gettickcount
Query service status
Start service

Disassembly:
sub esp, 0x28
push esi
push edi
mov edi, dword [esp + 0x34]
push 0xf01ff
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x41758d
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
xor eax, eax
xor edx, edx
pop esi
add esp, 0x28
ret
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x4175b2
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop edi
xor eax, eax
xor edx, edx
pop esi
add esp, 0x28
ret
lea ecx, [esp + 8]
push ecx
push 0x24
lea edx, [esp + 0x14]
push edx
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x417583
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push ebp
call ebx
cmp dword [esp + 0x18], 2
mov ebp, dword [esp + 0x28]
mov edi, eax
jne 0x41764b
mov eax, 0xcccccccd
mul dword [esp + 0x2c]
shr edx, 3
cmp edx, 0x3e8
jae 0x4175fd
mov edx, 0x3e8
jmp 0x41760a
cmp edx, 0x2710
jbe 0x41760a
mov edx, 0x2710
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x10]
push eax
push 0x24
lea ecx, [esp + 0x1c]
push ecx
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x41764b
cmp dword [esp + 0x28], ebp
jbe 0x41763a
call ebx
mov ebp, dword [esp + 0x28]
mov edi, eax
jmp 0x417644
call ebx
sub eax, edi
cmp eax, dword [esp + 0x2c]
ja 0x41764b
cmp dword [esp + 0x18], 2
je 0x4175e2
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
mov edx, dword [esp + 0x3c]
push edx
call esi
pop ebp
pop ebx
pop edi
mov eax, 0x3e8
xor edx, edx
pop esi
add esp, 0x28
ret
Function at 0x4186c0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x43e472
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x455d50]
xor eax, esp
mov dword [esp + 0x218], eax
mov eax, dword [0x455d50]
xor eax, esp
push eax
lea eax, [esp + 0x220]
mov dword fs:[0], eax
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x1e]
mov dword [esp + 0x10], 0
push ecx
mov dword [esp + 0x1c], esi
mov word [esp + 0x20], ax
call fcn.0042ab60
add esp, 0xc
lea edx, [esp + 4]
push edx
xor edx, edx
cmp byte [esp + 0x234], dl
lea eax, [esp + 0x18]
push eax
setne dl
lea ecx, [esp + 0x14]
push ecx
push str.InstallDir
push str.SoftwareAdvancedSystemRepairPro
mov dword [esp + 0x20], 0
mov dword [esp + 0x18], 0x104
add edx, 0x80000001
push edx
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov eax, dword [esp + 4]
xor ecx, ecx
shr eax, 1
mov word [esp + eax*2 + 0x14], cx
push esi
lea ecx, [esp + 0x18]
call fcn.0041f290
mov dword [esp + 0x228], 0
mov dword [esp + 8], 1
mov eax, esi
mov ecx, dword [esp + 0x220]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.00422c3d
add esp, 0x228
ret

Function at 0x418e10
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x43bfd9
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push esi
push edi
mov eax, dword [0x455d50]
xor eax, esp
push eax
lea eax, [esp + 0x24]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [esp + 0x34]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x10], 0
call fcn.00412370
mov dword [esp + 0x2c], 0
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
push 0
lea edx, [esp + 0x1c]
push edx
push eax
push ebx
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
mov eax, esi
je 0x418eb8
call fcn.00405450
mov eax, dword [esi]
push 0
lea ecx, [esp + 0x3c]
push ecx
mov dword [esp + 0x40], edi
mov eax, dword [eax]
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x418ead
cmp dword [esp + 0x38], edi
je 0x418eb6
xor edi, edi
mov eax, esi
call fcn.00405450
mov eax, esi
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x24
ret
Function at 0x41a160
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x43c828
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push esi
mov eax, dword [0x455d50]
xor eax, esp
push eax
lea eax, [esp + 0x6c]
mov dword fs:[0], eax
mov dword [esp + 0x74], 0
push 0x44
lea eax, [esp + 0x20]
push 0
push eax
call fcn.0042ab60
xor eax, eax
mov ecx, 1
xor edx, edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x88]
add esp, 0xc
mov dword [esp + 0x1c], 0x44
mov dword [esp + 0x48], ecx
mov word [esp + 0x4c], dx
cmp dword [eax - 4], ecx
jle 0x41a1e8
mov eax, dword [eax - 0xc]
push eax
lea ecx, [esp + 0x80]
push ecx
call fcn.0040b5e0
mov eax, dword [esp + 0x7c]
lea edx, [esp + 0xc]
push edx
lea ecx, [esp + 0x20]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x41a21f
mov edx, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x10]
push eax
call esi
mov dword [esp + 0x74], 0xffffffff
lea ecx, [esp + 0x7c]
call fcn.0041d7d0
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x70
ret
Function at 0x41bcd0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x43e299
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x455d50]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x455d50]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
xor esi, esi
mov dword [esp + 0x50], esi
mov eax, dword [esp + 0x58]
mov edi, ecx
push eax
xor ecx, ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], esi
call fcn.0041f290
mov dword [esp + 0x50], esi
mov dword [esp + 0x3c], esi
xor eax, eax
push esi
mov ebx, 0x400
lea esi, [esp + 0x2c]
mov dword [esp + 0x28], 1
mov dword [esp + 0x44], 7
mov word [esp + 0x30], ax
call fcn.0040ed00
mov dword [esp + 0x50], 1
mov ecx, dword [esp + 0x3c]
xor ebx, ebx
lea edx, [ecx + ecx - 2]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], ebx
mov byte [esp + 0x50], 2
cmp edi, ebx
je 0x41bda8
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x41bd86
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x14], ebx
lea eax, [esp + 0x14]
push eax
push 1
push ebx
push edi
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x41be87
mov ecx, dword [esp + 0x14]
jmp 0x41bdad
mov ecx, SysReAllocString
mov eax, dword [esp + 0x2c]
mov esi, 8
cmp dword [esp + 0x40], esi
jae 0x41bdc0
lea eax, [esp + 0x2c]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [esp + 0x18]
push edx
push eax
lea eax, [esp + 0x24]
push eax
push ebx
push 0x44a338
push ecx
call ebp
cmp eax, 0xea
jne 0x41be42
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x3c]
shr ebx, 1
inc ebx
cmp ebx, ecx
ja 0x41be03
or eax, 0xffffffff
lea esi, [esp + 0x28]
call fcn.004177f0
mov esi, 8
jmp 0x41be10
mov eax, ebx
sub eax, ecx
lea ebx, [esp + 0x28]
call fcn.0041fa40
mov ecx, dword [esp + 0x14]
test edi, edi
jne 0x41be1d
mov ecx, SysReAllocString
mov eax, dword [esp + 0x2c]
cmp dword [esp + 0x40], esi
jae 0x41be2b
lea eax, [esp + 0x2c]
lea edx, [esp + 0x18]
push edx
push eax
lea eax, [esp + 0x24]
push eax
push 0
push 0x44a338
push ecx
call ebp
xor ebx, ebx
cmp eax, ebx
jne 0x41be79
cmp dword [esp + 0x1c], 1
jne 0x41be79
mov eax, dword [esp + 0x18]
cmp eax, ebx
jbe 0x41be79
shr eax, 1
lea ecx, [esp + 0x28]
call fcn.00414270
mov edx, dword [esp + 0x2c]
cmp dword [esp + 0x40], esi
jae 0x41be6e
lea edx, [esp + 0x2c]
mov edi, dword [esp + 0x20]
call fcn.00401900
jmp 0x41be8c
mov eax, dword [esp + 0x20]
push ebx
xor ebx, ebx
call fcn.00421e40
jmp 0x41be8c
mov esi, 8
mov byte [esp + 0x50], 1
mov eax, dword [esp + 0x14]
cmp eax, ebx
je 0x41bea0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [esp + 0x50], bl
cmp dword [esp + 0x40], esi
jb 0x41beb7
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.0040ee99
add esp, 4
xor edx, edx
mov dword [esp + 0x40], 7
mov dword [esp + 0x3c], ebx
mov word [esp + 0x2c], dx
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.00422c3d
add esp, 0x40
ret
Function at 0x41f530
Capabilities:
Capture screenshot

Disassembly:
push ecx
mov eax, dword [esp + 0x18]
sub eax, dword [esp + 0x10]
mov ecx, dword [edi + 0x84]
xor edx, edx
div ecx
mov ecx, eax
mov dword [esp], eax
test edx, edx
je 0x41f550
inc ecx
mov dword [esp], ecx
mov eax, dword [esp + 0x1c]
sub eax, dword [esp + 0x14]
push ebx
push ebp
push esi
mov esi, dword [edi + 0x88]
xor edx, edx
div esi
mov ebp, eax
test edx, edx
je 0x41f56c
inc ebp
xor ebx, ebx
test ecx, ecx
jle 0x41f5bd
xor esi, esi
test ebp, ebp
jle 0x41f5b8
jmp 0x41f580
mov edx, dword [esp + 0x18]
mov eax, dword [edi + 0x88]
mov ecx, dword [edi + 0x84]
push 0xcc0020
push 0
push 0
push edx
push eax
imul eax, esi
push ecx
imul ecx, ebx
push eax
mov eax, dword [esp + 0x30]
push ecx
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
inc esi
cmp esi, ebp
jl 0x41f580
mov ecx, dword [esp + 0xc]
inc ebx
cmp ebx, ecx
jl 0x41f572
pop esi
pop ebp
pop ebx
pop ecx
ret 0x18
Function at 0x422010
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x18]
push ebp
push esi
xor esi, esi
xor ebp, ebp
push edi
test ebx, ebx
jb 0x422086
ja 0x422029
cmp esi, dword [esp + 0x20]
jae 0x42208a
mov ecx, dword [esp + 0x20]
sub ecx, esi
mov eax, ebx
sbb eax, ebp
test eax, eax
ja 0x422045
jb 0x422041
cmp ecx, 0x10000
jae 0x422045
mov edi, ecx
jmp 0x42204a
mov edi, 0x10000
mov ecx, dword [esp + 0x1c]
push 0
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x20]
push edi
lea edx, [esi + ecx]
push edx
push eax
mov dword [esp + 0x24], edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x422086
mov eax, dword [esp + 0x10]
cmp eax, edi
jne 0x422086
add esi, eax
adc ebp, 0
cmp ebp, ebx
jb 0x422029
ja 0x422086
cmp esi, dword [esp + 0x20]
jb 0x422029
cmp esi, dword [esp + 0x20]
jne 0x4220a7
cmp ebp, ebx
jne 0x4220a7
or esi, ebp
je 0x42209f
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
pop ecx
ret

Function at 0x422660
Capabilities:
Create shortcut via ishelllink

Disassembly:
push 0xffffffffffffffff
push 0x43c450
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x455d50]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov dword [esp + 0x14], 3
lea eax, [esp + 4]
push eax
push 0x448414
push 1
push 0
push 0x448424
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x422747
mov eax, dword [esp + 4]
mov edx, dword [esp + 0x1c]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x50]
call eax
mov eax, dword [esp + 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x3c]
push 1
push eax
call edx
mov eax, dword [esp + 0x24]
cmp dword [eax - 0xc], 0
je 0x4226f4
mov ecx, dword [esp + 4]
mov edx, dword [ecx]
push 0
push eax
mov eax, dword [edx + 0x44]
push ecx
call eax
mov eax, dword [esp + 0x28]
cmp dword [eax - 0xc], 0
je 0x42270b
mov ecx, dword [esp + 4]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 0x2c]
push ecx
call eax
mov eax, dword [esp + 4]
mov ecx, dword [eax]
lea edx, [esp + 8]
push edx
push 0x448434
push eax
mov eax, dword [ecx]
call eax
test eax, eax
jl 0x422747
mov eax, dword [esp + 8]
test eax, eax
je 0x422747
mov edx, dword [esp + 0x20]
mov ecx, dword [eax]
push 1
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
mov eax, dword [esp + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov byte [esp + 0x14], 2
lea ecx, [esp + 0x1c]
call fcn.0041d7d0
mov byte [esp + 0x14], 1
lea ecx, [esp + 0x20]
call fcn.0041d7d0
mov byte [esp + 0x14], 0
lea ecx, [esp + 0x24]
call fcn.0041d7d0
mov dword [esp + 0x14], 0xffffffff
lea ecx, [esp + 0x28]
call fcn.0041d7d0
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
add esp, 0x14
ret
Function at 0x422bd0
Capabilities:
Create process on windows
Terminate process

Disassembly:
cmp byte [0x45a376], 0
mov byte [0x45a374], 1
push 1
je 0x422bf1
mov eax, dword [0x45a3b0]
push 0
push 0x4485d8
push eax
jmp 0x422c01
mov ecx, dword [0x45a4b0]
mov edx, dword [0x45a3b0]
push ecx
push 0
push edx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x7d0
call esi
cmp byte [0x45a376], 0
je 0x422c2c
push 0xbb8
call esi
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x422c3d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x455d50]
jne 0x422c47
repz ret
jmp fcn.0042e8df

Function at 0x423a50
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebx
xor ebx, ebx
push ebp
push edi
cmp dword [esi + 0x34], ebx
ja 0x423a64
cmp dword [esi + 0x30], 0x40
jbe 0x423b68
mov edi, dword [esi + 0x28]
mov ebp, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
push 0x40
push edi
call ebp
test eax, eax
jne 0x423b6d
mov eax, 0x5a4d
cmp word [edi], ax
jne 0x423b6d
mov byte [esi + 0x38], 1
mov eax, dword [edi + 0x3c]
mov edi, dword [esi + 0x34]
xor ecx, ecx
lea edx, [eax + 0xf8]
cmp edi, ecx
jb 0x423b68
ja 0x423aaf
mov ecx, dword [esi + 0x30]
cmp ecx, edx
jbe 0x423b68
mov edx, dword [esi + 0x28]
add eax, edx
push 0xf8
push eax
mov dword [esi + 0x24], eax
call ebp
test eax, eax
jne 0x423b6d
mov eax, dword [esi + 0x24]
cmp dword [eax], 0x4550
jne 0x423b6d
mov ecx, 0x2000
test word [eax + 0x16], cx
jne 0x423ae5
mov byte [esi + 0x44], 1
mov edx, eax
movzx eax, word [edx + 0x18]
mov ecx, 0x10b
cmp ax, cx
jne 0x423b01
mov dword [esi + 0x40], 1
add edx, 0x78
jmp 0x423b18
mov ecx, 0x20b
cmp ax, cx
jne 0x423b1b
mov dword [esi + 0x40], 2
add edx, 0x88
mov dword [esi + 0x20], edx
cmp dword [esi + 0x20], ebx
je 0x423b6d
mov eax, dword [esi + 0x24]
movzx ecx, word [eax + 6]
mov dword [esi + 0x3c], ecx
test ecx, ecx
je 0x423b6d
movzx edx, word [eax + 0x14]
mov ebx, dword [esi + 0x34]
lea ecx, [ecx + ecx*4]
add ecx, ecx
add ecx, ecx
add ecx, ecx
sub ecx, dword [esi + 0x28]
add ecx, edx
lea edi, [ecx + eax + 0x18]
xor ecx, ecx
cmp ebx, ecx
jb 0x423b68
ja 0x423b56
mov ecx, dword [esi + 0x30]
cmp ecx, edi
jbe 0x423b68
pop edi
mov ebx, 1
lea edx, [edx + eax + 0x18]
pop ebp
mov eax, ebx
mov dword [esi + 0x1c], edx
pop ebx
ret
mov ebx, 2
pop edi
pop ebp
mov eax, ebx
pop ebx
ret
Function at 0x423fc0
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x43e629
mov eax, dword fs:[0]
push eax
push ecx
push edi
mov eax, dword [0x455d50]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x14], 0
push 0x23
mov dword [esp + 0xc], 0
call fcn.00410480
add esp, 4
mov dword [esp + 0x14], 0
push 0xd
push 0x448b60
push edi
mov dword [esp + 0x14], 1
call fcn.0041fad0
mov eax, dword [edi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x424033
mov ecx, dword [edi]
call fcn.004187f0
push 7
push str._s3.txt
push edi
call fcn.0041fad0
mov eax, edi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
add esp, 0x10
ret
Function at 0x426c28
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [esi + 0x2c]
push edi
mov edi, dword [esi + 0x3c]
sub edi, dword [esi + 0x74]
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x2c]
sub edi, eax
lea ecx, [ebx + ecx - 0x106]
mov dword [ebp - 8], edi
cmp eax, ecx
jb 0x426cb7
mov eax, dword [esi + 0x38]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call fcn.0042ad70
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x44]
sub dword [esi + 0x70], ebx
sub dword [esi + 0x6c], ebx
add esp, 0xc
sub dword [esi + 0x5c], ebx
mov dword [ebp - 4], eax
lea eax, [ecx + eax*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x426c77
mov eax, dword [esi + 0x40]
mov dword [ebp - 4], ebx
lea eax, [eax + ebx*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x426c99
add edi, ebx
mov dword [ebp - 8], edi
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x426d75
mov eax, dword [esi + 0x74]
add eax, dword [esi + 0x6c]
mov ecx, dword [edi + 4]
add eax, dword [esi + 0x38]
mov edx, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], ecx
cmp ecx, edx
jbe 0x426cdf
mov dword [ebp - 4], edx
mov edx, dword [ebp - 4]
test edx, edx
jne 0x426cea
xor eax, eax
jmp 0x426d36
sub ecx, edx
mov dword [edi + 4], ecx
mov ecx, dword [edi + 0x1c]
mov ecx, dword [ecx + 0x18]
cmp ecx, 1
jne 0x426d07
push edx
push dword [edi]
push dword [edi + 0x30]
call fcn.00427578
jmp 0x426d17
cmp ecx, 2
jne 0x426d20
push edx
push dword [edi]
push dword [edi + 0x30]
call fcn.00428eaa
mov dword [edi + 0x30], eax
mov eax, dword [ebp - 0xc]
add esp, 0xc
push dword [ebp - 4]
push dword [edi]
push eax
call fcn.0042ad70
mov eax, dword [ebp - 4]
add dword [edi], eax
add esp, 0xc
add dword [edi + 8], eax
add dword [esi + 0x74], eax
mov edi, dword [esi + 0x74]
cmp edi, 3
jb 0x426d61
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x38]
lea edx, [eax + ecx]
movzx eax, byte [edx]
mov ecx, dword [esi + 0x58]
mov dword [esi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x54]
mov dword [esi + 0x48], eax
cmp edi, 0x106
jae 0x426d75
mov eax, dword [esi]
cmp dword [eax + 4], 0
jne 0x426c35
pop edi
pop ebx
leave
ret
Function at 0x429286
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x274
mov eax, dword [0x455d50]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0x800
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x234], eax
mov esi, ecx
lea eax, [ebp - 0xc]
jne 0x42931e
push 0x445d84
push 4
push eax
call fcn.0042a3c4
push eax
call fcn.00403d40
add esp, 0x10
push ebx
push edi
call fcn.0042b8e6
mov edi, dword [eax]
call fcn.0042b8e6
xor ebx, ebx
mov dword [eax], ebx
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x234]
lea eax, [ebp - 0x230]
push esi
push 0x111
mov esi, 0x112
push esi
push eax
call fcn.0042b883
add esp, 0x18
mov dword [ebp - 0x234], eax
call fcn.0042b8e6
cmp dword [eax], ebx
je 0x429335
call fcn.0042b8e6
push dword [eax]
call fcn.0040a2b0
pop ecx
jmp 0x42933c
push 4
push eax
push 3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x4292c9
jmp 0x4293c3
call fcn.0042b8e6
mov dword [eax], edi
cmp dword [ebp - 0x234], 0xffffffff
je 0x4293bf
cmp dword [ebp - 0x234], esi
jae 0x4293bf
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push 0x3c
mov esi, eax
lea eax, [ebp - 0x270]
push ebx
push eax
mov dword [ebp - 0x274], 0x40
call fcn.0042ab60
add esp, 0xc
push 0x445994
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp eax, ebx
je 0x4293ae
push str.FindActCtxSectionStringW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x4293ae
lea ecx, [ebp - 0x274]
push ecx
push esi
push 2
push ebx
push ebx
call eax
test eax, eax
je 0x4293ae
push ebx
push ebx
push esi
jmp 0x4293b7
push ebx
push ebx
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x4293c1
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00422c3d
leave
ret
Function at 0x436212
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0042e243
and dword [ebp - 4], 0
cmp dword [0x459fe0], 0
mov ebx, eax
jne 0x4362c3
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x436374
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x436374
push eax
call fcn.0042e1d1
mov dword [esp], 0x44737c
push edi
mov dword [0x459fe0], eax
call esi
push eax
call fcn.0042e1d1
mov dword [esp], 0x447368
push edi
mov dword [0x459fe4], eax
call esi
push eax
call fcn.0042e1d1
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x459fe8], eax
call esi
push eax
call fcn.0042e1d1
pop ecx
mov dword [0x459ff0], eax
test eax, eax
je 0x4362c3
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0042e1d1
pop ecx
mov dword [0x459fec], eax
mov eax, dword [0x459fec]
cmp eax, ebx
je 0x43631b
cmp dword [0x459ff0], ebx
je 0x43631b
push eax
call fcn.0042e24c
push dword [0x459ff0]
mov esi, eax
call fcn.0042e24c
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x43631b
test edi, edi
je 0x43631b
call esi
test eax, eax
je 0x436312
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x436312
test byte [ebp - 0xc], 1
jne 0x43631b
or dword [ebp + 0x10], 0x200000
jmp 0x436354
mov eax, dword [0x459fe4]
cmp eax, ebx
je 0x436354
push eax
call fcn.0042e24c
pop ecx
test eax, eax
je 0x436354
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x436354
mov eax, dword [0x459fe8]
cmp eax, ebx
je 0x436354
push eax
call fcn.0042e24c
pop ecx
test eax, eax
je 0x436354
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x459fe0]
call fcn.0042e24c
pop ecx
test eax, eax
je 0x436374
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x436376
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret