joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ec6e
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x40ec9c
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x40eca3
cmp ebx, dword [eax + 4]
jae 0x40eca3
xor eax, eax
jmp 0x40ee93
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x40ecb4
xor eax, eax
inc eax
jmp 0x40ee92
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x40ecca
cmp ecx, edx
jae 0x40ee0f
cmp dword [eax + 4], 0
je 0x40ecd3
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x40ecbb
cmp dword [ebp + 8], 0
je 0x40ecf5
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x40ee0f
cmp eax, esi
jae 0x40ee0f
mov eax, dword [0x412258]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x40ed1a
cmp dword [esi*4 + 0x412260], edi
je 0x40ee13
inc esi
cmp esi, eax
jl 0x40ed08
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40ee8f
cmp dword [ebp - 8], 0x1000000
jne 0x40ee8f
test byte [ebp - 0xc], 0xcc
je 0x40ed98
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x40ee8f
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40ee8f
cmp word [eax + 0x18], 0x10b
jne 0x40ee8f
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x40ee8f
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x40ed98
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x40ed98
test byte [ecx + 0x27], 0x80
jne 0x40ee0f
push 1
push 0x4122a0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x40ecac
mov ecx, dword [0x412258]
test ecx, ecx
mov edx, ecx
jle 0x40edcc
lea eax, [ecx*4 + 0x41225c]
cmp dword [eax], edi
je 0x40edcc
dec edx
sub eax, 4
test edx, edx
jg 0x40edc0
test edx, edx
jne 0x40edfd
push 0xf
pop ebx
cmp ecx, ebx
jg 0x40edd9
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x40edf1
lea eax, [edx*4 + 0x412260]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x40eddf
cmp ecx, 0x10
jge 0x40edfd
inc ecx
mov dword [0x412258], ecx
push 0
push 0x4122a0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x40ecac
xor eax, eax
jmp 0x40ee92
test esi, esi
jle 0x40ecac
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x4122a0
call ebx
test eax, eax
jne 0x40ecac
cmp dword [esi*4 + 0x412260], edi
je 0x40ee69
mov eax, dword [0x412258]
lea esi, [eax - 1]
test esi, esi
jl 0x40ee57
cmp dword [esi*4 + 0x412260], edi
je 0x40ee53
dec esi
jns 0x40ee47
test esi, esi
jge 0x40ee67
cmp eax, 0x10
jge 0x40ee62
inc eax
mov dword [0x412258], eax
lea esi, [eax - 1]
jmp 0x40ee69
je 0x40ee81
xor ecx, ecx
test esi, esi
jl 0x40ee81
lea eax, [ecx*4 + 0x412260]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x40ee6f
push 0
push 0x4122a0
call ebx
jmp 0x40ecac
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10001290
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10007057
mov eax, dword fs:[0]
push eax
sub esp, 0x418
mov eax, dword [0x1000b040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x414], edi
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x424], edi
mov dword [ebp - 0x420], 0
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
mov byte [edi], 0
lea ecx, [ebp - 0x41c]
mov dword [ebp - 4], 0
push ecx
push 0xf003f
push 0
push eax
push 0x80000001
mov dword [ebp - 0x420], 1
mov dword [ebp - 0x414], 0x400
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x418]
push eax
push 0
push esi
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x410]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10001370
sub ecx, edx
lea eax, [ebp - 0x410]
push ecx
push eax
mov ecx, edi
call fcn.100059b0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100061d2
mov esp, ebp
pop ebp
ret
Function at 0x10001c30
Capabilities:
Delete registry value
Encode data using xor
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4268
call fcn.10006ff0
mov eax, dword [0x1000b040]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_UnloadKeyboardLayout]
test eax, eax
je 0x10001dd8
movaps xmm0, xmmword [0x100096f0]
xor ecx, ecx
mov dword [ebp - 0x4248], 0
movups xmmword [ebp - 0x4264], xmm0
mov dword [ebp - 0x4254], 0x7463414d
mov dword [ebp - 0x4250], 0x75707e7d
mov byte [ebp - 0x424c], 0
mov al, byte [ebp - 0x4264]
xor byte [ebp + ecx - 0x4263], al
inc ecx
cmp ecx, 0x17
jb 0x10001c91
lea eax, [ebp - 0x4248]
mov byte [ebp - 0x424c], 0
push eax
push 0xf003f
push 0
lea eax, [ebp - 0x4263]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10001dd8
push 0x103
push eax
mov byte [ebp - 0x114], al
lea eax, [ebp - 0x113]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x4220], 0x104
lea eax, [ebp - 0x4244]
mov dword [ebp - 0x421c], 0
push eax
lea eax, [ebp - 0x422c]
push eax
lea eax, [ebp - 0x4230]
push eax
lea eax, [ebp - 0x4234]
push eax
lea eax, [ebp - 0x4218]
push eax
lea eax, [ebp - 0x4238]
push eax
lea eax, [ebp - 0x423c]
push eax
lea eax, [ebp - 0x421c]
push eax
push 0
lea eax, [ebp - 0x4220]
push eax
lea eax, [ebp - 0x114]
push eax
push dword [ebp - 0x4248]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov eax, dword [ebp - 0x4218]
test eax, eax
je 0x10001dd8
xor esi, esi
test eax, eax
je 0x10001dd8
mov ebx, dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtoul]
lea eax, [ebp - 0x4224]
mov dword [ebp - 0x4228], 0x3fff
push eax
lea eax, [ebp - 0x214]
mov byte [ebp - 0x4214], 0
push eax
push 0
push 0
lea eax, [ebp - 0x4228]
mov dword [ebp - 0x4224], 0xff
push eax
lea eax, [ebp - 0x4214]
push eax
push esi
push dword [ebp - 0x4248]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x10001dcf
push 0x10
push eax
lea eax, [ebp - 0x214]
push eax
call ebx
add esp, 0xc
cmp eax, edi
je 0x10001ded
inc esi
cmp esi, dword [ebp - 0x4218]
jb 0x10001d70
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.100061d2
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x4214]
push eax
push dword [ebp - 0x4248]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov ecx, dword [ebp - 8]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100061d2
mov esp, ebp
pop ebp
ret 4
Function at 0x10001e20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
mov edi, edx
mov byte [ebp - 0x10], 0x5c
mov al, 0x29
xor al, byte [ebp - 0x10]
mov cl, 0x2f
xor cl, byte [ebp - 0x10]
mov ah, 0x2e
mov byte [ebp - 0xf], al
mov ch, 0x6f
mov byte [ebp - 0xe], cl
mov bl, 0x39
mov cl, byte [ebp - 0x10]
mov bh, 0x6e
mov byte [ebp - 1], 0x30
xor ah, cl
mov al, byte [ebp - 1]
xor bl, cl
xor al, cl
mov byte [ebp - 2], 0x30
mov byte [ebp - 7], al
xor ch, cl
mov al, byte [ebp - 2]
xor bh, cl
mov byte [ebp - 0xc], ah
xor al, cl
mov byte [ebp - 5], 0
mov dl, 0x72
mov byte [ebp - 6], al
mov dh, 0x38
mov byte [ebp - 0xd], bl
lea eax, [ebp - 0xf]
mov byte [ebp - 0xb], ch
xor dl, cl
mov byte [ebp - 0xa], bh
xor dh, cl
mov byte [ebp - 9], dl
push eax
mov byte [ebp - 8], dh
mov byte [ebp - 5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edx, eax
test edx, edx
je 0x10001f4d
movaps xmm0, xmmword [0x100083c0]
xor ecx, ecx
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0x27121309
mov byte [ebp - 0x14], 0
mov al, byte [ebp - 0x28]
xor byte [ebp + ecx - 0x27], al
inc ecx
cmp ecx, 0x13
jb 0x10001eb8
lea eax, [ebp - 0x27]
mov byte [ebp - 0x14], 0
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword fs:[0x2c]
mov esi, eax
mov edx, dword [0x1000b440]
mov edx, dword [ecx + edx*4]
mov ecx, dword [0x1000c430]
cmp ecx, dword [edx + 4]
jle 0x10001f1d
push 0x1000c430
call fcn.10006231
add esp, 4
cmp dword [0x1000c430], 0xffffffff
jne 0x10001f1d
push 0x1000c430
mov dword [0x1000c434], esi
call fcn.100061e0
add esp, 4
call fcn.100011e0
push 0
push 0xc8
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
call dword [0x1000c434]
test eax, eax
je 0x10001f4d
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10001f60
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x1000b040]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov cl, 0x19
mov dword [ebp - 0x40], eax
mov ch, 0x5a
push ebx
mov byte [ebp - 0x38], 0x74
mov al, 0x1d
xor al, byte [ebp - 0x38]
mov bl, cl
mov dword [ebp - 0x44], edx
mov bh, 0x18
mov byte [ebp - 0x37], al
mov dl, 0x47
mov al, byte [ebp - 0x38]
mov ah, 0x46
xor cl, al
mov byte [ebp - 0x29], bh
xor bl, al
mov byte [ebp - 0x2e], 0
xor dl, al
mov byte [ebp - 0x36], cl
xor ah, al
mov byte [ebp - 0x35], bl
xor ch, al
mov byte [ebp - 0x33], ah
xor bh, al
mov byte [ebp - 0x34], dl
mov dh, 0x10
mov byte [ebp - 0x32], ch
xor dh, al
mov byte [ebp - 0x30], bh
mov al, byte [ebp - 0x29]
xor al, byte [ebp - 0x38]
push esi
mov byte [ebp - 0x2f], al
lea eax, [ebp - 0x37]
push edi
push eax
mov byte [ebp - 0x31], dh
mov byte [ebp - 0x2e], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov edx, eax
test edx, edx
je 0x100020cc
movaps xmm0, xmmword [0x100082b0]
xor ecx, ecx
movups xmmword [ebp - 0x54], xmm0
mov al, byte [ebp - 0x54]
xor byte [ebp + ecx - 0x53], al
inc ecx
cmp ecx, 0xe
jb 0x10001ff1
lea eax, [ebp - 0x53]
mov byte [ebp - 0x45], 0
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword fs:[0x2c]
mov ebx, eax
mov edx, dword [0x1000b440]
mov dword [ebp - 0x3c], ebx
mov edx, dword [ecx + edx*4]
mov ecx, dword [0x1000c444]
cmp ecx, dword [edx + 4]
jle 0x10002059
push 0x1000c444
call fcn.10006231
add esp, 4
cmp dword [0x1000c444], 0xffffffff
jne 0x10002059
push 0x1000c444
mov dword [0x1000c440], ebx
call fcn.100061e0
add esp, 4
call fcn.100011e0
test al, al
je 0x100020ad
mov esi, dword [0x1000c440]
lea eax, [ebp - 0x28]
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push eax
push 0x40
push 4
push esi
mov dword [ebp - 0x24], 0x8b55ff8b
call ebx
mov edi, dword [ebp - 0x24]
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
mov dword [esi], edi
push 4
push esi
call ebx
mov esi, dword [ebp - 0x3c]
lea eax, [ebp - 0x28]
push eax
push 0x40
push 4
push esi
call ebx
lea eax, [ebp - 0x28]
mov dword [esi], edi
push eax
push dword [ebp - 0x28]
push 4
push esi
call ebx
push dword [ebp - 0x40]
push dword [ebp - 0x44]
call dword [0x1000c440]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.100061d2
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 8]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100061d2
mov esp, ebp
pop ebp
ret 4
Function at 0x100026e0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x1000b040]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0
push 2
mov dword [ebp - 0x138], eax
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
mov dword [ebp - 0x134], 0x128
lea eax, [ebp - 0x134]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x10002754
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
mov ebx, dword [sym.imp.KERNEL32.dll_Process32Next]
push dword [ebp - 0x138]
lea eax, [ebp - 0x110]
push eax
call edi
test eax, eax
je 0x10002770
lea eax, [ebp - 0x134]
push eax
push esi
call ebx
test eax, eax
jne 0x10002733
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.100061d2
mov esp, ebp
pop ebp
ret 4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x12c]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.100061d2
mov esp, ebp
pop ebp
ret 4

Function at 0x10002790
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100071ad
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x20
mov eax, dword [0x1000b040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 8
call fcn.100063b7
xorps xmm0, xmm0
mov dword [ebp - 0x30], eax
add esp, 4
mov dword [eax], 0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0
push ecx
mov ecx, eax
call fcn.10001720
cmp dword [ebp - 0x18], 0xf
lea eax, [ebp - 0x2c]
cmova eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x10002832
cmp dword [ebp - 0x18], 0xf
lea eax, [ebp - 0x2c]
cmova eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 0x18]
cmp ecx, 0xf
jbe 0x10002868
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1000285e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1000285e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.100063e7
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100061d2
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x404724
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00406928
test esi, esi
jne 0x40475a
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00406ab0
jmp 0x404778
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00404608
mov edi, eax
test esi, esi
je 0x404778
cmp dword [ebx], 0
je 0x404778
dec esi
jmp 0x404761
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x405594
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.00405978
mov byte [esp], al
cmp byte [esp], 0
jne 0x40571e
test edi, edi
je 0x40571e
mov byte [esp + 1], 0
test ebp, ebp
jle 0x40565e
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x405639
cmp edi, 0xffffffff
je 0x4055f9
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4055f9
mov byte [esp], 0
jmp 0x40571e
mov ebx, dword [esi]
cmp ebx, 1
jg 0x405639
test ebx, ebx
jne 0x40562b
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x40562b
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x40571e
lea eax, [esp + 0xc]
call fcn.00405274
dec ebp
test ebp, ebp
jg 0x4055de
cmp edi, 0xffffffff
je 0x40565e
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40565c
mov byte [esp], 0
jmp 0x40571e
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x4055a2
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40565e
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.0040578c
mov edx, eax
mov ebx, dword [0x4848fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x4056c2
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x4056c0
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x4056c2
xor edi, edi
cmp byte [esp], 0
je 0x4056e8
mov ebx, dword [esi]
test bl, 1
jne 0x4056fe
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4056c8
mov byte [esp + 1], 1
jmp 0x4056fe
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4056e8
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x405675
cmp byte [esp], 0
je 0x40571e
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x406588
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x48405c], 0
je 0x4065ef
cmp word [0x484348], 0xd7b2
jne 0x4065b1
cmp dword [0x484350], 0
jbe 0x4065b1
mov eax, 0x484344
call dword [0x484360]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
mov eax, 0x40661c
call fcn.004072f0
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x480032], 0
jne 0x40660b
push 0
push 0x4809c2
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x408ed4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x409039
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00406928
cmp si, word [0x480a00]
jb 0x408f6c
cmp si, word [0x480c00]
ja 0x408f6c
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x408f6c
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x480a00]
jae 0x408f46
mov edi, ebx
dec edi
jmp 0x408f67
cmp si, word [ebx*8 + 0x480a00]
jbe 0x408f56
inc ebx
mov dword [ebp - 8], ebx
jmp 0x408f67
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x480a04]
call fcn.00408df4
jmp 0x408f6c
cmp edi, dword [ebp - 8]
jae 0x408f30
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40901b
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40901b
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00407788
push dword [ebp - 0x160]
push 0x409054
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00407788
push dword [ebp - 0x164]
push 0x409064
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00407788
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.004079c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409040
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00406988
ret
Function at 0x4091ec
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4092f0
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x486b8c
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x486ba4]
jne 0x409238
mov eax, esi
mov edx, 0x486ba6
mov ecx, 0x55
call fcn.00407788
push 0x486b8c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x4092da
push 0x486b8c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00406928
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4092a7
cmp byte [0x486b88], 0
je 0x40926c
mov edx, esi
mov eax, ebx
call fcn.004090d0
jmp 0x4092a7
mov edx, esi
mov eax, ebx
call fcn.00408ed4
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x4092a7
cmp dword [esi], 0
je 0x409290
mov eax, esi
mov edx, 0x409308
call fcn.004078e0
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00408ed4
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.004078e0
push 0x486b8c
call sub.kernel32.dll_EnterCriticalSection
mov word [0x486ba4], bx
mov eax, dword [esi]
call fcn.004076e4
mov ecx, eax
mov eax, 0x486ba6
mov edx, 0xaa
call fcn.00408d54
push 0x486b8c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4092f7
lea eax, [ebp - 4]
call fcn.00406928
ret
Function at 0x409520
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406a0c
xor eax, eax
push ebp
push 0x409745
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x409560
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40957a
mov eax, dword [ebp - 4]
call fcn.004076e4
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00408d54
cmp word [ebp - 0x21a], 0
je 0x40972f
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409754
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409649
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409754
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409649
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409790
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409649
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x409790
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409649
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4097c4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x409649
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4097f8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40972f
xor eax, eax
push ebp
push 0x409728
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00409330
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x4096b8
mov eax, dword [ebp - 0x10]
call fcn.00404344
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040774c
jmp 0x409703
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x409838
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x409703
mov eax, dword [ebp - 0x10]
call fcn.00404344
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x409838
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0040774c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40972f
cmp dword [ebp - 8], 0
je 0x40971e
mov eax, dword [ebp - 8]
call fcn.00404360
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40974c
lea eax, [ebp - 4]
call fcn.00406928
ret