joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100197ca
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
mov eax, dword [0x10028118]
push ebx
push ebp
push esi
push edi
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebx, ebx
xor esi, esi
cmp eax, ebx
push 2
pop edi
jne 0x10019813
call ebp
mov esi, eax
cmp esi, ebx
je 0x100197fa
mov dword [0x10028118], 1
jmp 0x1001981c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x1001980e
mov eax, edi
mov dword [0x10028118], eax
jmp 0x10019813
mov eax, dword [0x10028118]
cmp eax, 1
jne 0x100198a0
cmp esi, ebx
jne 0x1001982f
call ebp
mov esi, eax
cmp esi, ebx
jne 0x1001982f
xor eax, eax
jmp 0x100198f8
cmp word [esi], bx
mov eax, esi
je 0x10019844
add eax, edi
cmp word [eax], bx
jne 0x10019836
add eax, edi
cmp word [eax], bx
jne 0x10019836
mov ebp, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
sub eax, esi
push ebx
sar eax, 1
push ebx
inc eax
push ebx
push ebx
push eax
push esi
push ebx
push ebx
mov dword [esp + 0x34], eax
call ebp
mov edi, eax
cmp edi, ebx
je 0x10019895
push edi
call fcn.10017a6d
pop ecx
mov dword [esp + 0x10], eax
cmp eax, ebx
je 0x10019895
push ebx
push ebx
push edi
push eax
push dword [esp + 0x24]
push esi
push ebx
push ebx
call ebp
test eax, eax
jne 0x10019891
push dword [esp + 0x10]
call fcn.10013945
pop ecx
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
jmp 0x100198f8
cmp eax, edi
je 0x100198a8
cmp eax, ebx
jne 0x10019828
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov edi, eax
cmp edi, ebx
je 0x10019828
cmp byte [edi], bl
je 0x100198c6
inc eax
cmp byte [eax], bl
jne 0x100198bc
inc eax
cmp byte [eax], bl
jne 0x100198bc
sub eax, edi
inc eax
mov esi, eax
push esi
call fcn.10017a6d
pop ecx
mov ebp, eax
cmp ebp, ebx
jne 0x100198e4
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
jmp 0x10019828
push esi
push edi
push ebp
call fcn.10013030
sub esp, 0xfffffff4
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret

Function at 0x1001b120
Capabilities:
Parse pe header

Disassembly:
mov ecx, dword [esp + 4]
cmp word [ecx], 0x5a4d
je 0x1001b12e
xor eax, eax
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x1001b12b
xor ecx, ecx
cmp word [eax + 0x18], 0x10b
sete cl
mov eax, ecx
ret

Function at 0x1001b150
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [eax + 0x3c]
add edx, eax
xor ecx, ecx
movzx eax, word [edx + 0x14]
push esi
push ebx
lea eax, [eax + edx + 0x18]
movzx ebx, word [edx + 6]
push edi
test ebx, ebx
jbe 0x1001b18c
mov esi, dword [esp + 0x14]
mov edx, dword [eax + 0xc]
cmp esi, edx
jb 0x1001b182
mov edi, dword [eax + 8]
add edi, edx
cmp esi, edi
jb 0x1001b18e
sub ecx, 0xffffffff
sub eax, 0xffffffd8
cmp ecx, ebx
jb 0x1001b172
xor eax, eax
pop edi
pop ebx
pop esi
ret
Function at 0x1001b64f
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.1001635d
xor ebx, ebx
cmp dword [0x100281c4], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x1001b724
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x1001b68f
xor eax, eax
jmp 0x1001b7e8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x1001b688
push eax
call fcn.100162fa
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x100281c4], eax
call esi
push eax
call fcn.100162fa
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x100281c8], eax
call esi
push eax
call fcn.100162fa
mov dword [0x100281cc], eax
lea eax, [ebp - 8]
push eax
call fcn.10017c8c
pop ecx
test eax, eax
pop ecx
je 0x1001b6f2
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10018f19
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x1001b724
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.100162fa
cmp eax, ebx
pop ecx
mov dword [0x100281d4], eax
je 0x1001b724
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.100162fa
pop ecx
mov dword [0x100281d0], eax
mov eax, dword [0x100281d0]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x1001b79d
cmp dword [0x100281d4], esi
je 0x1001b79d
push eax
call fcn.10016366
pop ecx
call eax
cmp eax, ebx
je 0x1001b76a
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x100281d4]
call fcn.10016366
pop ecx
call eax
test eax, eax
je 0x1001b76a
test byte [ebp - 0x18], 1
jne 0x1001b79d
lea eax, [ebp - 0xc]
push eax
call fcn.10017cc3
test eax, eax
pop ecx
je 0x1001b785
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10018f19
sub esp, 0xffffffec
cmp dword [ebp - 0xc], 4
jb 0x1001b794
or dword [ebp + 0x10], 0x200000
jmp 0x1001b7ce
or dword [ebp + 0x10], 0x40000
jmp 0x1001b7ce
mov eax, dword [0x100281c8]
cmp eax, esi
je 0x1001b7ce
push eax
call fcn.10016366
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1001b7ce
mov eax, dword [0x100281cc]
cmp eax, esi
je 0x1001b7ce
push dword [ebp - 4]
push eax
call fcn.10016366
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x100281c4]
call fcn.10016366
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1001e2ec
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov eax, dword [0x10026510]
xor eax, ebp
mov dword [ebp - 4], eax
push 6
lea eax, [ebp - 0xc]
push eax
push 0x1004
push dword [ebp + 8]
mov byte [ebp - 6], 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x1001e31d
or eax, 0xffffffff
jmp 0x1001e327
lea eax, [ebp - 0xc]
push eax
call fcn.1001e2a4
pop ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10012e8e
leave
ret
Function at 0x402a36
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
push esi
push edi
lea edi, [ebp - 4]
push edi
mov eax, dword [0x451c10]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x402aca
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x402a87
cmp dword [ebp + 0x10], ebx
jne 0x402abe
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402a36
or eax, eax
jne 0x402a99
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
or eax, eax
je 0x402a6e
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00405d2e
cmp eax, ebx
je 0x402ad1
push ebx
push dword [0x451c10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402aca
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x451c10], ebx
jne 0x402ac7
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x402ac7
jmp 0x402aca
Function at 0x40526c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x447fe8], 0x44
push eax
xor eax, eax
push 0x447fe8
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4052a7
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405331
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call fcn.004055e0
test byte [ebp + 0xc], 8
mov dword [ebp - 8], eax
je 0x405365
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x451be8], eax
jmp 0x4054f9
push ebx
mov ebx, dword [ebp + 0xc]
and ebx, 1
mov dword [ebp - 4], ebx
je 0x405383
test eax, eax
je 0x4054a4
test byte [ebp + 0xc], 2
je 0x4054a4
push edi
mov esi, 0x4437e8
push esi
call fcn.00405a0c
test ebx, ebx
je 0x4053a0
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x4053a6
push edi
call fcn.00405546
cmp byte [edi], 0
jne 0x4053b4
cmp byte [0x4437e8], 0x5c
jne 0x4053bf
push 0x409010
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x148]
add ebx, edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x40549a
push 0x3f
lea esi, [ebp - 0x11c]
lea eax, [ebp - 0x11c]
push eax
call fcn.0040552a
cmp byte [eax], 0
je 0x405405
cmp byte [ebp - 0x18], 0
je 0x405405
lea esi, [ebp - 0x18]
cmp byte [esi], 0x2e
jne 0x40541b
mov al, byte [esi + 1]
test al, al
je 0x405479
cmp al, 0x2e
jne 0x40541b
cmp byte [esi + 2], 0
je 0x405479
push esi
push ebx
call fcn.00405a0c
test byte [ebp - 0x148], 0x10
je 0x405440
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405479
push dword [ebp + 0xc]
push edi
call fcn.00405331
jmp 0x405479
push edi
call fcn.004056c4
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x405471
test byte [ebp + 0xc], 4
je 0x405469
push edi
push 0xfffffffffffffff1
call fcn.00404daa
push 0
push edi
call fcn.0040575a
jmp 0x405479
inc dword [0x451be8]
jmp 0x405479
push edi
push 0xfffffffffffffff2
call fcn.00404daa
lea eax, [ebp - 0x148]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4053e3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 4], 0
je 0x4054a4
and byte [ebx - 1], 0
pop ebx
xor esi, esi
cmp dword [ebp - 4], esi
je 0x4054f9
cmp dword [ebp - 8], esi
jne 0x4054b9
inc dword [0x451be8]
jmp 0x4054f9
push edi
call fcn.00405d07
test eax, eax
je 0x4054f9
push edi
call fcn.004054ff
push edi
call fcn.004056c4
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x4054f1
test byte [ebp + 0xc], 4
je 0x4054b1
push edi
push 0xfffffffffffffff1
call fcn.00404daa
push esi
push edi
call fcn.0040575a
jmp 0x4054f9
push edi
push 0xffffffffffffffe5
call fcn.00404daa
pop edi
pop esi
leave
ret 8
Function at 0x4055e0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
mov esi, 0x4457e8
push dword [esp + 0xc]
push esi
call fcn.00405a0c
push esi
call fcn.00405593
mov edi, eax
test edi, edi
jne 0x405601
xor eax, eax
jmp 0x405653
push edi
call fcn.00405c6e
test byte [0x451b78], 0x80
je 0x40561a
mov al, byte [edi]
test al, al
je 0x4055fd
cmp al, 0x5c
je 0x4055fd
sub edi, esi
jmp 0x405632
call fcn.00405d07
or eax, eax
je 0x40562c
test byte [eax], 0x10
je 0x4055fd
push esi
call fcn.00405546
push esi
call sub.KERNEL32.dll_lstrlenA
push esi
cmp eax, edi
jg 0x40561e
call fcn.004054ff
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x4056c4
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4056e0
and al, 0xfe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x4056e3
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x405712
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, esp
push edi
mov edi, dword [esi + 8]
push ebp
push 0x64
pop ebp
dec ebp
mov dword [esi + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push edi
lea eax, [esi + 8]
push 0
push eax
push dword [esi + 0xc]
add byte [esi + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
or eax, eax
jne 0x405756
or ebp, ebp
jne 0x40571d
and byte [edi], 0
pop ebp
pop edi
pop esi
ret 8
mov eax, edi
jmp 0x405750
Function at 0x40575a
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 1
call fcn.00405d2e
mov esi, dword [esp + 0x18]
test eax, eax
je 0x40577e
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x4058b7
test esi, esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov edi, 0x400
mov dword [0x448170], 0x4c554e
mov ebp, 0x448170
je 0x4057c2
push 1
push 0
push esi
call fcn.004056e3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x4058bd
cmp eax, edi
jg 0x4058bd
mov esi, 0x447be8
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x4058bd
cmp eax, edi
jg 0x4058bd
push esi
push ebp
push str._s_s_r_n
push 0x4477e8
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
add esp, 0x10
mov eax, dword [0x451b70]
push dword [eax + 0x128]
push esi
call fcn.00405a2e
push 4
push 0xc0000000
push esi
call fcn.004056e3
mov edi, eax
mov dword [esp + 0x14], edi
cmp edi, 0xffffffff
je 0x4058b7
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
lea eax, [ebp + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4058b0
lea eax, [esp + 0x18]
push 0
push eax
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4058b0
cmp ebp, dword [esp + 0x18]
jne 0x4058b0
push str._Rename__r_n
push esi
call fcn.00405658
test eax, eax
jne 0x4058c4
lea eax, [esi + ebp]
push str._Rename__r_n
push eax
call fcn.00405a0c
add ebp, 0xa
mov eax, ebp
add eax, esi
push ebx
push 0x4477e8
push eax
call fcn.004056a4
xor eax, eax
push eax
push eax
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
add ebp, ebx
lea eax, [esp + 0x18]
push 0
push eax
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x451bf0]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x409330
push eax
call fcn.00405658
test eax, eax
je 0x40587b
lea ecx, [esi + ebp]
inc eax
mov edi, eax
cmp eax, ecx
jae 0x4058eb
mov dl, byte [edi]
mov byte [ebx + edi], dl
inc edi
cmp edi, ecx
jb 0x4058e0
mov edi, dword [esp + 0x14]
sub eax, esi
jmp 0x40587d
Function at 0x4058f3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0x18]
xor ebx, ebx
push esi
push eax
mov eax, dword [ebp + 0x18]
mov esi, dword [ebp + 0x14]
mov byte [esi], bl
neg eax
sbb eax, eax
and eax, 0x100
or eax, 0x20019
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405964
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x2000
push eax
push esi
lea eax, [ebp + 0x14]
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405953
cmp dword [ebp + 0x14], 1
je 0x405955
cmp dword [ebp + 0x14], 2
je 0x405955
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x1fff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x405d9a
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x448574], 0
push esi
jne 0x405dd1
xor esi, esi
push 8
mov ecx, esi
pop eax
mov edx, ecx
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr ecx, 1
xor ecx, edx
dec eax
jne 0x405dab
mov dword [esi*4 + 0x448570], ecx
inc esi
cmp esi, 0x100
jl 0x405da6
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test ecx, ecx
not eax
jbe 0x405e02
mov esi, dword [esp + 0xc]
push edi
movzx edx, byte [esi]
mov edi, eax
and edi, 0xff
xor edi, edx
shr eax, 8
mov edi, dword [edi*4 + 0x448570]
xor eax, edi
inc esi
dec ecx
jne 0x405de4
pop edi
not eax
pop esi
ret 0xc
Function at 0x4042a4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x40430a
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00403b60
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402e64
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4042f4
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404311
lea eax, [ebp - 0x10]
call fcn.004039f4
ret

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

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push ecx
push ebx
push edx
xor edx, edx
push 0x406ad4
push dword fs:[edx]
mov dword [0x40c7e0], esp
mov dword [0x40c7e4], ebp
mov dword [0x40c7e8], 0x406ba0
mov dword fs:[edx], esp
mov edi, dword [ebp + 8]
mov ecx, 0x96
xor al, al
repne scasb al, byte es:[edi]
mov ecx, edi
sub ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
cmp word [edx], 0x5a4d
jne 0x406ba0
add edx, dword [edx + 0x3c]
cmp dword [edx], 0x4550
jne 0x406ba0
mov edx, dword [edx + 0x78]
or edx, edx
je 0x406ba0
add edx, dword [ebp + 0xc]
mov ebx, dword [edx + 0x20]
add ebx, dword [ebp + 0xc]
xor eax, eax
mov edi, dword [ebx]
add edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push ecx
repe cmpsb byte [esi], byte es:[edi]
pop ecx
je 0x406b80
add ebx, 4
inc eax
cmp eax, dword [edx + 0x18]
jb 0x406b67
jmp 0x406ba0
shl eax, 1
add eax, dword [edx + 0x24]
add eax, dword [ebp + 0xc]
mov ax, word [eax]
and eax, 0xffff
shl eax, 2
add eax, dword [edx + 0x1c]
add eax, dword [ebp + 0xc]
mov eax, dword [eax]
add eax, dword [ebp + 0xc]
jmp 0x406ba2
xor eax, eax
xor edx, edx
pop dword fs:[edx]
add esp, 4
pop edx
pop ebx
pop ecx
pop edi
pop esi
pop ebp
ret 8

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
pop eax
nop
nop
nop
add eax, 0x40729f
nop
nop
sub eax, 0x407245
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x432030
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43201e
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x402ffc
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdec
mov dword [ebp - 8], edx
mov byte [ebp - 1], al
cmp byte [ebp - 1], 0
je 0x40303f
xor eax, eax
mov al, byte [ebp - 1]
add eax, 0x41
dec eax
mov byte [ebp - 0xc], al
mov byte [ebp - 0xb], 0x3a
mov byte [ebp - 0xa], 0
lea eax, [ebp - 0x214]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryA
lea eax, [ebp - 0xc]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [ebp - 0x110]
push eax
push 0x104
call sub.kernel32.dll_GetCurrentDirectoryA
cmp byte [ebp - 1], 0
je 0x403062
lea eax, [ebp - 0x214]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x110]
mov ecx, 0x104
call fcn.0040478c
mov esp, ebp
pop ebp
ret

Function at 0x40321c
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x403256
push 0x105
lea eax, [ebp - 0x111]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [ebp - 0x111]
mov eax, dword [ebp - 8]
call fcn.0040461c
jmp 0x40327f
call sub.kernel32.dll_GetCommandLineA
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
call fcn.00403150
mov dword [ebp - 0xc], eax
cmp dword [ebp - 4], 0
je 0x40327f
mov eax, dword [ebp - 8]
cmp dword [eax], 0
je 0x40327f
dec dword [ebp - 4]
jmp 0x40325e
mov esp, ebp
pop ebp
ret

Function at 0x4035e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [section.DATA]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403678
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403658
xor eax, eax
push ebp
push 0x403651
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403694
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403658
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [section.DATA]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [section.DATA], ax
mov esp, ebp
pop ebp
ret
Function at 0x405d30
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed8
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x125]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x16], 0
lea eax, [ebp - 0xc]
push eax
push 0xf003f
push 0
push 0x405f08
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405d8f
lea eax, [ebp - 0xc]
push eax
push 0xf003f
push 0
push 0x405f24
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405e03
xor eax, eax
push ebp
push 0x405dfc
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x1c], 5
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x16]
push eax
push 0
push 0
push ebp
lea eax, [ebp - 0x125]
call fcn.00405b48
pop ecx
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405de5
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x16]
push eax
push 0
push 0
push 0x405f44
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405e03
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x125]
push eax
call sub.kernel32.dll_lstrcpyA
push 5
lea eax, [ebp - 0x11]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor eax, eax
mov dword [ebp - 8], eax
cmp byte [ebp - 0x125], 0
je 0x405f01
cmp byte [ebp - 0x11], 0
jne 0x405e48
cmp byte [ebp - 0x16], 0
je 0x405f01
lea eax, [ebp - 0x125]
push eax
call sub.kernel32.dll_lstrlenA
lea edx, [ebp - 0x125]
add eax, edx
mov dword [ebp - 0x20], eax
jmp 0x405e64
dec dword [ebp - 0x20]
mov eax, dword [ebp - 0x20]
cmp byte [eax], 0x2e
je 0x405e77
lea eax, [ebp - 0x125]
cmp eax, dword [ebp - 0x20]
jne 0x405e61
lea eax, [ebp - 0x125]
cmp eax, dword [ebp - 0x20]
je 0x405f01
inc dword [ebp - 0x20]
cmp byte [ebp - 0x16], 0
je 0x405eab
lea eax, [ebp - 0x16]
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x125]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x405f01
cmp byte [ebp - 0x11], 0
je 0x405f01
lea eax, [ebp - 0x11]
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x125]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x405f01
mov byte [ebp - 0xf], 0
lea eax, [ebp - 0x11]
push eax
mov eax, dword [ebp - 0x20]
push eax
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x125]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret