joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10010230
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x30
mov eax, dword [0x10032644]
xor eax, esp
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 4], ecx
mov cl, 0x64
mov dword [esp], eax
mov al, 0x31
mov byte [esp + 8], cl
mov dl, 0x33
mov byte [esp + 0xa], cl
mov byte [esp + 0xe], cl
mov cl, 0x6c
push ebp
mov ebp, dword [esp + 0x40]
mov byte [esp + 0xd], dl
mov byte [esp + 0x19], dl
mov byte [esp + 0xf], al
mov byte [esp + 0x10], al
mov byte [esp + 0x13], cl
mov byte [esp + 0x14], cl
mov cl, 0x44
mov byte [esp + 0x1b], al
mov byte [esp + 0x1c], al
mov byte [esp + 0x1f], al
mov al, 0x65
lea edx, [esp + 0xc]
push edx
mov byte [esp + 0x15], 0x2e
mov byte [esp + 0x19], 0
mov byte [esp + 0x1c], cl
mov byte [esp + 0x1e], cl
mov byte [esp + 0x21], 0x4f
mov byte [esp + 0x22], 0x6e
mov byte [esp + 0x24], 0x32
mov byte [esp + 0x25], 0x43
mov byte [esp + 0x26], 0x72
mov byte [esp + 0x27], al
mov byte [esp + 0x28], 0x61
mov byte [esp + 0x29], 0x74
mov byte [esp + 0x2a], al
mov byte [esp + 0x2b], cl
mov byte [esp + 0x2c], al
mov byte [esp + 0x2d], 0x76
mov byte [esp + 0x2e], 0x69
mov byte [esp + 0x2f], 0x63
mov byte [esp + 0x30], al
mov byte [esp + 0x31], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
jne 0x1001031c
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
jne 0x1001031c
mov eax, 0x80004005
pop ebp
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.1001a846
add esp, 0x30
ret 0x18
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10010305
mov edx, dword [esp + 8]
mov ecx, dword [esp + 4]
push edx
mov edx, dword [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x4c]
push ebx
push edx
mov edx, dword [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x4c]
push ebp
push edx
push edi
push ecx
push esi
call eax
mov ecx, dword [esp + 0x30]
pop ebp
xor ecx, esp
call fcn.1001a846
add esp, 0x30
ret 0x18
Function at 0x10014f90
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10029ed0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x10032644]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
push eax
push 0x40
push edi
mov esi, dword [ebp + 8]
push esi
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
call ebx
test eax, eax
je 0x10014ffd
push edi
mov ecx, dword [ebp + 0x10]
push ecx
push esi
call fcn.1001b3c0
add esp, 0xc
lea edx, [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x18]
push eax
push edi
push esi
call ebx
mov dword [ebp - 0x14], 1
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10015830
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x20
push ebx
mov ebx, dword [esp + 0x28]
push ebp
push esi
mov esi, dword [esp + 0x34]
push 0xc00000
mov dword [esp + 0x28], 0xc00000
mov dword [esp + 0x2c], 0
call fcn.1001bbb7
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x10015868
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
cmp esi, dword [esp + 0x3c]
ja 0x100159df
jb 0x1001587e
cmp ebx, dword [esp + 0x38]
ja 0x100159df
push edi
nop
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x1c]
push edx
push esi
push ebx
lea esi, [esp + 0x2c]
lea edi, [esp + 0x34]
call fcn.10015030
add esp, 0x14
test eax, eax
je 0x100159de
cmp dword [esp + 0x34], 0x1000
jne 0x100159b2
test dword [esp + 0x10], 0x101
jne 0x100159b2
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x2c], eax
mov edi, dword [esp + 0x18]
ja 0x10015919
jb 0x100158db
cmp dword [esp + 0x28], edi
jae 0x10015919
push edi
push ebp
mov esi, ebp
call fcn.1001bebd
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x1001590d
test esi, esi
je 0x100158fa
push esi
call fcn.1001bada
add esp, 4
mov ebx, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
add ebx, edi
adc esi, dword [esp + 0x1c]
jmp 0x100159c8
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], ecx
mov edx, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
push edi
push edx
push esi
mov edx, ebp
call fcn.10014f10
add esp, 0xc
test eax, eax
je 0x100159ba
mov eax, edi
sub eax, dword [esp + 0x44]
sub ebx, esi
add ebx, ebp
add eax, ebp
mov edi, ebx
cmp edi, eax
mov dword [esp + 0x14], eax
jae 0x100159b6
lea esp, [esp]
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x4c]
push eax
mov eax, dword [esp + 0x4c]
push ecx
push edx
push eax
push edi
call dword [esp + 0x78]
add esp, 0x14
cmp eax, 1
jne 0x100159a6
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x3c]
push ecx
push edx
push eax
xor edx, edx
xor eax, eax
mov ecx, edi
sub ecx, ebp
sbb edx, eax
add ecx, esi
adc edx, dword [esp + 0x30]
lea esi, [esp + 0x64]
push edx
push ecx
mov ecx, dword [esp + 0x68]
call fcn.10015270
mov esi, dword [esp + 0x34]
add esp, 0x14
add edi, dword [esp + 0x60]
cmp edi, dword [esp + 0x14]
jb 0x10015950
jmp 0x100159b6
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
add esi, edi
adc eax, dword [esp + 0x1c]
mov ebx, esi
mov esi, eax
cmp esi, dword [esp + 0x40]
jb 0x10015880
ja 0x100159de
cmp ebx, dword [esp + 0x3c]
jbe 0x10015880
pop edi
test ebp, ebp
je 0x100159ec
push ebp
call fcn.1001bada
add esp, 4
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20
ret
Function at 0x10016430
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [esp + 8], 0
mov dword [esp], 0
je 0x10016486
push esi
push 0
push 0
push eax
push fcn.10016400
push 0
push 0
call fcn.1001c37e
mov esi, eax
add esp, 0x18
cmp esi, 0xffffffff
je 0x1001646a
test esi, esi
je 0x1001646a
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea eax, [esp + 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 4]
pop esi
pop ecx
ret 4
push eax
call fcn.10016400
pop ecx
ret 4
Function at 0x10018960
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1002ee90
push 0x1001a6b0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x10032644]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, edx
push 0x1c
lea eax, [ebp - 0x34]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x30]
cmp word [ecx], 0x5a4d
jne 0x100189ff
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x100189ff
mov edx, dword [eax + 0xd8]
lea edi, [edx + ecx]
cmp esi, edi
jb 0x100189ff
mov eax, dword [eax + 0xdc]
add eax, edx
add eax, ecx
cmp esi, eax
jae 0x100189ff
mov dword [ebp - 4], 0xfffffffe
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xfffffffe
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10018fa0
Capabilities:
Resume thread

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x1003a220], eax
je 0x10018fb6
mov eax, 0x10dd
pop ecx
ret
push ebp
push esi
mov esi, dword [0x1003a230]
xor ebp, ebp
cmp esi, ebp
push edi
je 0x10019004
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
lea eax, [esp + 0xc]
push eax
movzx eax, byte [edx + 0x17]
push ecx
mov ecx, dword [esi + 0xc]
push eax
push ecx
call fcn.10002d20
cmp dword [esi + 4], ebp
jne 0x10018ff3
mov eax, dword [esi + 0x10]
cmp eax, ebp
je 0x10018ff3
call fcn.10018db0
mov dword [esi + 0x10], ebp
mov edi, dword [esi]
push esi
call fcn.1001aeab
add esp, 4
cmp edi, ebp
mov esi, edi
jne 0x10018fc5
mov dword [0x1003a230], ebp
call fcn.10018b60
mov esi, dword [0x1003a22c]
cmp esi, ebp
je 0x10019038
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edx, dword [esi + 4]
push edx
call ebx
mov edi, dword [esi]
push esi
call fcn.1001aeab
add esp, 4
cmp edi, ebp
mov esi, edi
jne 0x10019020
pop ebx
pop edi
pop esi
mov dword [0x1003a22c], ebp
mov dword [0x1003a220], ebp
xor eax, eax
pop ebp
pop ecx
ret
Function at 0x10019310
Capabilities:
Suspend thread

Disassembly:
mov eax, dword [0x1003a224]
test eax, eax
jne 0x1001938c
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edi, dword [esp + 8]
cmp edi, eax
jne 0x1001932e
xor eax, eax
pop edi
ret 4
push esi
push 8
call fcn.1001b0d9
mov esi, eax
add esp, 4
test esi, esi
jne 0x10019344
lea edi, [eax + 8]
jmp 0x10019361
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x10019378
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call fcn.1001aeab
add esp, 4
pop esi
mov dword [0x1003a224], edi
mov eax, edi
mov dword [0x1003a228], 0
pop edi
ret 4
mov eax, dword [0x1003a22c]
mov dword [esi + 4], edi
mov dword [esi], eax
mov dword [0x1003a22c], esi
pop esi
xor eax, eax
pop edi
ret 4

Function at 0x10019ca0
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [ecx + 0x3c]
add eax, ecx
movzx ecx, word [eax + 0x14]
push edi
mov edi, dword [esp + 0xc]
cmp edi, dword [ecx + eax + 0x24]
lea ecx, [ecx + eax + 0x18]
jae 0x10019cc0
mov eax, edi
pop edi
ret
push ebx
push esi
movzx esi, word [eax + 6]
xor edx, edx
test esi, esi
jbe 0x10019cea
lea esp, [esp]
mov eax, dword [ecx + 0xc]
cmp edi, eax
jb 0x10019ce0
mov ebx, dword [ecx + 8]
add ebx, eax
cmp edi, ebx
jb 0x10019cf1
add edx, 1
add ecx, 0x28
cmp edx, esi
jb 0x10019cd0
pop esi
pop ebx
or eax, 0xffffffff
pop edi
ret
mov eax, dword [ecx + 0x14]
sub eax, dword [ecx + 0xc]
pop esi
pop ebx
add eax, edi
pop edi
ret
Function at 0x10019de0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xe4
mov eax, dword [0x10032644]
xor eax, esp
mov dword [esp + 0xe0], eax
mov eax, dword [esp + 0xe8]
mov ecx, dword [eax + 0x3c]
push ebx
push ebp
mov ebp, dword [esp + 0xf4]
add ecx, eax
push esi
push edi
mov edi, dword [ecx + 0x78]
mov ecx, dword [ecx + 0x7c]
mov dword [esp + 0x20], ecx
mov ecx, dword [edi + eax + 0x1c]
mov edx, dword [edi + eax + 0x20]
mov esi, dword [edi + eax + 0x24]
add ecx, eax
add edx, eax
add esi, eax
xor ebx, ebx
test ebp, 0xffff0000
mov dword [esp + 0x14], ecx
mov ecx, dword [edi + eax + 0x10]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], esi
jne 0x10019e63
cmp ebp, ecx
jb 0x10019e5c
mov edx, dword [edi + eax + 0x14]
lea edx, [edx + ecx - 1]
cmp ebp, edx
ja 0x10019e5c
sub ebp, ecx
mov ecx, dword [esp + 0x14]
mov ebx, dword [ecx + ebp*4]
jmp 0x10019ecb
xor eax, eax
jmp 0x10019f96
cmp dword [edi + eax + 0x18], ebx
mov dword [esp + 0x10], ebx
jle 0x10019ecd
jmp 0x10019e74
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x10]
mov ecx, dword [edx + ecx*4]
mov esi, ebp
add ecx, eax
nop
mov dl, byte [ecx]
cmp dl, byte [esi]
jne 0x10019ea0
test dl, dl
je 0x10019e9c
mov dl, byte [ecx + 1]
cmp dl, byte [esi + 1]
jne 0x10019ea0
add ecx, 2
add esi, 2
test dl, dl
jne 0x10019e80
xor ecx, ecx
jmp 0x10019ea5
sbb ecx, ecx
sbb ecx, 0xffffffff
test ecx, ecx
mov ecx, dword [esp + 0x10]
je 0x10019ebc
add ecx, 1
cmp ecx, dword [edi + eax + 0x18]
mov dword [esp + 0x10], ecx
jl 0x10019e70
jmp 0x10019ecd
mov edx, dword [esp + 0x18]
movzx edx, word [edx + ecx*2]
mov ecx, dword [esp + 0x14]
mov ebx, dword [ecx + edx*4]
add ebx, eax
lea edx, [eax + edi]
cmp ebx, edx
jb 0x10019f94
mov ecx, dword [esp + 0x20]
add eax, ecx
add eax, edi
cmp ebx, eax
ja 0x10019f94
push 0x63
lea edx, [esp + 0x2d]
push 0
push edx
mov byte [esp + 0x34], 0
call fcn.1001a890
push 0x63
lea eax, [esp + 0x9d]
push 0
push eax
mov byte [esp + 0xa4], 0
call fcn.1001a890
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
add esp, 0x18
push ebx
lea ecx, [esp + 0x2c]
push ecx
call esi
lea edx, [esp + 0x28]
push 0x2e
push edx
call fcn.1001bc90
add esp, 8
test eax, eax
je 0x10019f94
mov byte [eax], 0
add eax, 1
push eax
lea eax, [esp + 0x90]
push eax
call esi
lea ecx, [esp + 0x20]
mov al, 0x6c
push ecx
lea edx, [esp + 0x2c]
push edx
mov byte [esp + 0x28], 0x2e
mov byte [esp + 0x29], 0x64
mov byte [esp + 0x2a], al
mov byte [esp + 0x2b], al
mov byte [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x10019f94
lea ecx, [esp + 0x8c]
push ecx
push eax
call fcn.10019de0
add esp, 8
jmp 0x10019f96
mov eax, ebx
mov ecx, dword [esp + 0xf0]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1001a846
add esp, 0xe4
ret
Function at 0x1001a846
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10032644]
jne 0x1001a850
repz ret
jmp fcn.1001ce3b

Function at 0x100228a2
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x10032fa8]
je 0x100228bd
inc edi
cmp edi, 0x17
jb 0x100228ae
cmp edi, 0x17
jae 0x10022a3d
push ebp
push 3
call fcn.10026450
cmp eax, 1
pop ecx
je 0x10022a09
push 3
call fcn.10026450
test eax, eax
pop ecx
jne 0x100228f1
cmp dword [0x1003a4c0], 1
je 0x10022a09
cmp ebx, 0xfc
je 0x10022a3c
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x1003a9f8
push ebp
call fcn.1001dd94
add esp, 0xc
test eax, eax
je 0x10022927
push esi
push esi
push esi
push esi
push esi
call fcn.1001af90
add esp, 0x14
push 0x104
mov esi, 0x1003aa11
push esi
push 0
mov byte [0x1003ab15], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1002296b
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.1001dd94
add esp, 0xc
test eax, eax
je 0x1002296b
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.1001af90
add esp, 0x14
push esi
call fcn.1001cab0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x100229b0
push esi
call fcn.1001cab0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x1003ad0c
push 0x1002ce84
sub ecx, eax
push ecx
push eax
call fcn.10025e76
add esp, 0x14
test eax, eax
je 0x100229b0
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.1001af90
add esp, 0x14
jmp 0x100229b2
xor esi, esi
push 0x1002ce80
push ebx
push ebp
call fcn.10025db1
add esp, 0xc
test eax, eax
je 0x100229d2
push esi
push esi
push esi
push esi
push esi
call fcn.1001af90
add esp, 0x14
push dword [edi*8 + 0x10032fac]
push ebx
push ebp
call fcn.10025db1
add esp, 0xc
test eax, eax
je 0x100229f4
push esi
push esi
push esi
push esi
push esi
call fcn.1001af90
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.10026293
add esp, 0xc
jmp 0x10022a3c
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x10022a3c
cmp ebp, 0xffffffff
je 0x10022a3c
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x10032fac]
push dword [esi]
call fcn.1001cab0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x10026293
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.1001eb5d
xor ebx, ebx
cmp dword [0x1003ae9c], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x10026369
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x10026449
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x10026449
push eax
call fcn.1001eaef
mov dword [esp], 0x1002dfdc
push edi
mov dword [0x1003ae9c], eax
call esi
push eax
call fcn.1001eaef
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x1003aea0], eax
call esi
push eax
call fcn.1001eaef
mov dword [0x1003aea4], eax
lea eax, [ebp - 0xc]
push eax
call fcn.10020c4b
test eax, eax
pop ecx
pop ecx
je 0x10026337
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1001af90
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x10026369
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.1001eaef
cmp eax, ebx
pop ecx
mov dword [0x1003aeac], eax
je 0x10026369
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1001eaef
pop ecx
mov dword [0x1003aea8], eax
mov eax, dword [0x1003aea8]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x100263ee
cmp dword [0x1003aeac], ecx
je 0x100263ee
push eax
call fcn.1001eb66
push dword [0x1003aeac]
mov esi, eax
call fcn.1001eb66
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x100263ee
cmp edi, ebx
je 0x100263ee
call esi
cmp eax, ebx
je 0x100263bb
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x100263bb
test byte [ebp - 0x18], 1
jne 0x100263ee
lea eax, [ebp - 0x10]
push eax
call fcn.10020c82
test eax, eax
pop ecx
je 0x100263d6
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.1001af90
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x100263e5
or dword [ebp + 0x10], 0x200000
jmp 0x10026429
or dword [ebp + 0x10], 0x40000
jmp 0x10026429
mov eax, dword [0x1003aea0]
cmp eax, dword [ebp - 8]
je 0x10026429
push eax
call fcn.1001eb66
cmp eax, ebx
pop ecx
je 0x10026429
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x10026429
mov eax, dword [0x1003aea4]
cmp eax, dword [ebp - 8]
je 0x10026429
push eax
call fcn.1001eb66
cmp eax, ebx
pop ecx
je 0x10026429
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x1003ae9c]
call fcn.1001eb66
cmp eax, ebx
pop ecx
je 0x10026449
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1002644b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403f48
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404178
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x403fcb
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404178
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x403fcb
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404194
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x404054
xor eax, eax
push ebp
push 0x40404d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00403d90
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x404032
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4041b4
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x404032
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404054
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x40416e
cmp byte [ebp - 0xd], 0
jne 0x40409b
cmp byte [ebp - 0x12], 0
je 0x40416e
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4040b4
dec ebx
cmp byte [ebx], 0x2e
je 0x4040c3
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4040b3
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40416e
inc ebx
cmp byte [ebp - 0x12], 0
je 0x404100
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40416e
cmp byte [ebp - 0xd], 0
je 0x40416e
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40416e
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404054
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404178
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x403fcb
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404178
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x403fcb
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404194
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x404054
xor eax, eax
push ebp
push 0x40404d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00403d90
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x404032
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4041b4
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x404032
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404054
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x40416e
cmp byte [ebp - 0xd], 0
jne 0x40409b
cmp byte [ebp - 0x12], 0
je 0x40416e
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4040b4
dec ebx
cmp byte [ebx], 0x2e
je 0x4040c3
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x4040b3
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40416e
inc ebx
cmp byte [ebp - 0x12], 0
je 0x404100
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40416e
cmp byte [ebp - 0xd], 0
je 0x40416e
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x40416e
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret