joyce8/EMBER2024-capa huggingface dataset:
Function at 0x9e4e0b
Capabilities:
Execute anti-debugging instructions

Disassembly:
cpuid
lea edi, [ebx*4]
lea edi, [edi*4]
jmp 0x9e4e29
xchg word [esp], dx
neg edx
jmp 0x9e4df5
mov dl, byte [esp + 2]
shl al, 3
push dword [esp + 5]
mov bx, 0xc71d
jmp 0x9e4e3d
ror ecx, 0xb
mov ecx, dword [esp + 4]
neg eax
xchg bp, bx
sbb edi, edi
mov eax, dword [esp + 4]
jmp 0x9e4e13
cpuid
pop edx
xchg bx, dx
mov bp, word [esp + 2]
xchg dx, bx
mov dword [esp], ecx
jmp 0x9e4fc6
mov cx, word [esp + 9]
cld
mov ch, byte [esp + 0x14]
xchg bh, ch
sub dl, 0xaa
rdtsc
jmp 0x9e4f34
xor di, 0x8fa7
xchg word [esp + 4], di
mov ebx, esi
mov dword [esp + 3], edi
sub esp, 0xf
bsr ebx, ecx
jmp 0x9e4e6e
xchg cx, ax
lea esp, [esp + 6]
dec al
mov bx, 0xf28b
jmp 0x9e4f02
mov dword [esp + 0xe], eax
mov cx, 0xf7bd
cpuid
bsr eax, ebp
pop dword [esp + 3]
mov ecx, ebx
jmp 0x9e4ea2
bsf edi, esi
pop word [esp + 9]
lea edx, [edx + ebp]
jmp 0x9e4f1c
push word [esp + 0xa]
setg ch
mov cx, ax
xchg dword [esp + 9], ebx
xchg cx, di
neg dl
jmp 0x9e4ecd
lea ebx, [edx*4]
push dword [esp + 8]
shr dx, 0xe
mov al, byte [esp + 0xb]
neg esi
xchg dword [esp], ebp
jmp 0x9e4ee3
mov edi, 0x6f627531
pop word [esp + 4]
ror eax, 0x12
xchg dx, bx
jmp 0x9e4f69
lea edx, [esp + eax]
mov si, 0x10ee
lea esi, [ebp + ebp]
push word [esp + 0x17]
xchg byte [esp + 0xb], bh
pop word [esp + 0xf]
jmp 0x9e4eb8
xchg dword [esp + 1], eax
push dword [esp + 0xe]
xchg byte [esp + 0x10], ch
mov ah, 0x4d
jmp 0x9e4f8f
mov dl, 0xf
btc di, ax
xchg edx, ebp
mov edx, esp
mov eax, ebx
not ecx
jmp 0x9e4f52
cpuid
inc bh
cpuid
bsr cx, ax
add cx, 0x855d
jmp 0x9e4fde
push word [esp + 0x11]
lea ecx, [esi*4]
xchg byte [esp + 9], ah
lea edi, [ebx*4]
lea ecx, [edi - 0xb81]
add esp, 8
jmp 0x9e4f79
rdtsc
mov word [esp + 3], sp
pop si
mov dl, byte [esp + 4]
xchg dword [esp], edx
push dword [esp]
jmp 0x9e4e8a
mov ch, byte [esp + 9]
lea esp, [esp + 5]
bsf ax, cx
mov dword [esp + 3], esi
xchg ecx, ebp
mov ebp, 0x279df6f6
jmp 0x9e5fdc
mov byte [esp + 9], dl
xchg byte [esp + 0xc], al
lea esp, [esp + 0x10]
xor eax, eax
mov ch, ah
mov bp, word [esp]
call fcn.009e5012
neg dh
mov al, dh
add esp, 8
sub esp, 0xd
xchg word [esp + 0xa], bx
rdtsc
jmp 0x9e50af
setb bh
push dword [esp + 4]
push dword [esp + 8]
xchg dword [esp + 2], eax
dec ecx
lea ecx, [edx*4]
jmp 0x9e50f0
pushfd
pop word [esp + 1]
push di
btc ebp, eax
not eax
pop dword [esp]
jmp 0x9e51c8
pop si
lea esp, [esp + 1]
bsf edx, edx
add cx, dx
xchg dword [esp], ebp
neg cx
jmp 0x9e54d1

Function at 0x9e531b
Capabilities:
Access peb ldr_data

Disassembly:
pop dword [esp]
mov dword [esp + 0x3c], esi
push dx
mov word [esp], cx
call fcn.009e52db

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x10001050
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword fs:[0x30]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 8]
lea ecx, [eax + 0xc]
mov eax, dword [eax + 0xc]
cmp edx, dword [eax + 0x18]
je 0x1000107c
mov eax, dword [eax]
cmp ecx, eax
je 0x100010ad
cmp edx, dword [eax + 0x18]
jne 0x10001071
mov ecx, dword [eax + 4]
mov edx, dword [eax]
mov dword [ecx], edx
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov ecx, dword [eax + 0x14]
mov edx, dword [eax + 0x10]
mov dword [ecx], edx
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0x14]
mov dword [ecx + 4], edx
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 8]
mov dword [ecx], edx
mov ecx, dword [eax + 8]
mov edx, dword [eax + 0xc]
mov dword [ecx + 4], edx
mov esp, ebp
pop ebp
ret

Function at 0x10001450
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push 0
push 0
push 2
push 0
push 1
push 0x40000000
push eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10001475
lea ecx, [esp + 0xc]
push 0
push ecx
push 0x6000
push 0x10005020
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10001493
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
pop esi
pop ebx
ret

Function at 0x100014a0
Capabilities:
Get session user name

Disassembly:
sub esp, 0x108
push ebx
push esi
lea eax, [esp + 8]
push edi
lea ecx, [esp + 0x10]
push eax
push ecx
mov dword [esp + 0x14], 0x104
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov edi, str.baidumusic
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x10]
and ecx, 3
push eax
push 0
push 0x1f0001
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
pop edi
pop esi
test eax, eax
pop ebx
je 0x1000151b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add esp, 0x108
ret
xor eax, eax
add esp, 0x108
ret
Function at 0x10001ec0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x10001f79
push ebx
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
push 4
push 0x3000
push edi
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
lea ecx, [esp + 0x10]
push 0
mov ebx, eax
push ecx
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x10010478
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, eax
mov esi, 0x10010478
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.10002840
add esp, 4
mov esi, eax
test esi, esi
pop edi
pop ebx
je 0x10001f79
mov eax, dword [esp + 0xc]
push eax
push esi
call fcn.10002ea0
push 0
push 0
call eax
push esi
call fcn.10002f40
add esp, 0x14
xor eax, eax
pop esi
ret 8
Function at 0x10001f80
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Create thread
Delete file
Get common file path
Get session user name
Terminate process
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
push ebx
push esi
push edi
push 0x80
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
lea eax, [ebp - 4]
lea ecx, [ebp - 0x214]
push eax
push ecx
mov dword [ebp - 4], 0x104
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov edi, str.baidumusic
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x214]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [ebp - 0x214]
and ecx, 3
push eax
push 0
push 0
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
test eax, eax
je 0x10002010
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x10002010
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov dword [ebp - 0xc], 0
lea eax, [0x10002022]
and eax, 0xfffff000
sub eax, 0x1000
cmp word [eax], 0x5a4d
jne 0x10002022
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.10001050
add esp, 4
lea edx, [ebp - 0x41c]
push 0
push 0x25
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x41c]
push 0x10010540
push eax
call dword [sym.imp.MSVCRT.dll_wcscat]
lea ecx, [ebp - 0x41c]
push str.csrss.exe
push ecx
call fcn.100010c0
add esp, 0x10
lea edx, [ebp - 8]
push edx
push 0
push 0
push 0x10001d80
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0
lea eax, [ebp - 0x110]
push 0x23
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov edi, str.okb
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x110]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [ebp - 0x110]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x110]
push str.Work
push ecx
call fcn.10001ec0
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x10002100
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push 0
push 0
push 2
push 0
push 1
push 0x40000000
push eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10002125
lea ecx, [esp + 0xc]
push 0
push ecx
push 0x5400
push str.SQLite_format_3
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x10002143
mov bl, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
pop esi
pop ebx
ret
Function at 0x10002aa0
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push ebx
push ebp
xor ecx, ecx
mov ebp, dword [eax + 4]
mov eax, dword [eax]
mov dword [esp + 8], 0
mov cx, word [eax + 0x14]
cmp word [eax + 6], 0
lea ebx, [ecx + eax + 0x18]
jbe 0x10002b61
push esi
push edi
add ebx, 0x10
cmp dword [ebx], 0
jne 0x10002b0b
mov edx, dword [esp + 0x1c]
mov esi, dword [edx + 0x38]
test esi, esi
jle 0x10002b3f
mov eax, dword [ebx - 4]
push 4
push 0x1000
add eax, ebp
push esi
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, esi
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebx - 8], edi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
jmp 0x10002b3f
mov ecx, dword [ebx - 4]
mov eax, dword [ebx]
push 4
push 0x1000
add ecx, ebp
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [ebx]
mov esi, dword [ebx + 4]
mov edi, dword [esp + 0x18]
mov edx, ecx
add esi, edi
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebx - 8], eax
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
inc eax
add ebx, 0x28
mov edx, dword [ecx]
xor ecx, ecx
mov dword [esp + 0x10], eax
mov cx, word [edx + 6]
cmp eax, ecx
jl 0x10002ace
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x10002b70
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
xor ecx, ecx
push ebp
mov ebx, dword [eax]
xor ebp, ebp
mov cx, word [ebx + 0x14]
cmp word [ebx + 6], bp
lea eax, [ecx + ebx + 0x18]
jbe 0x10002c36
push esi
push edi
lea edi, [eax + 0x24]
mov eax, dword [edi]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x10002bc7
mov edx, dword [edi - 0x14]
mov eax, dword [edi - 0x1c]
push 0x4000
push edx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x10002c1c
lea ecx, [edx + ecx*2]
test eax, 0x4000000
lea edx, [esi + ecx*2]
mov edx, dword [edx*4 + 0x10010600]
je 0x10002bde
or dh, 2
mov ecx, dword [edi - 0x14]
test ecx, ecx
jne 0x10002bf7
test al, 0x40
je 0x10002bee
mov ecx, dword [ebx + 0x20]
jmp 0x10002bf5
test al, 0x80
je 0x10002c1c
mov ecx, dword [ebx + 0x24]
test ecx, ecx
jbe 0x10002c1c
lea eax, [esp + 0x10]
push eax
push edx
push ecx
mov ecx, dword [edi - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10002c1c
push str.Error_protecting_memory_page_r_n
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 4
mov edx, dword [esp + 0x18]
xor eax, eax
inc ebp
add edi, 0x28
mov ebx, dword [edx]
mov ax, word [ebx + 6]
cmp ebp, eax
jl 0x10002b94
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x402fac
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x403005
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.kernel32.dll_GetCommandLineA
lea edx, [ebp - 8]
call fcn.00402e48
mov dword [ebp - 4], eax
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00402e48
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0
je 0x402fef
inc ebx
jmp 0x402fd8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40300c
lea eax, [ebp - 8]
call fcn.0040538c
ret

Function at 0x403014
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.0040538c
test esi, esi
jne 0x40304b
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.0040547c
jmp 0x40306c
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402e48
mov dword [esp], eax
test esi, esi
je 0x40306c
cmp dword [ebx], 0
je 0x40306c
dec esi
jmp 0x403053
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x403948
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x55e008], 0x8088405
inc edx
mov dword [ebx + 0x55e008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x404280
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x55e024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x404318
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4042f8
xor eax, eax
push ebp
push 0x4042f1
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 0x404334
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 0x4042f8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x55e024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x55e024], ax
mov esp, ebp
pop ebp
ret

Function at 0x405184
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x56504c], 0
je 0x4051e5
cmp word [0x565220], 0xd7b2
jne 0x4051ad
cmp dword [0x565228], 0
jbe 0x4051ad
mov eax, 0x56521c
call dword [0x565238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x55e094
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40520c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x55e034], 0
jne 0x405201
push 0
push 0x55e08c
push 0x55e094
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x405340
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00402bb0
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x56504d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x405308
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x407a3c
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 0x407aa2
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.004055fc
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00403cd0
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x407a8c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407aa9
lea eax, [ebp - 0x10]
call fcn.0040538c
ret

Function at 0x40ab24
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.0040584c
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40ab3d
test al, 0x10
jne 0x40ab41
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40e068
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40e0a1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0040547c
jmp 0x40e0aa
mov eax, ebx
mov edx, esi
call fcn.004053e0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40e0b4
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40e0d5
mov al, byte [esp]
jmp 0x40e0d7
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40e76c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40e5d4
mov eax, dword [0x564c0c]
cmp byte [eax], 0
je 0x40e7e8
mov eax, dword [0x56475c]
call fcn.00403514
call fcn.00402d3c
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.0040b180
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40e830
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40e81e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x5646ac]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x565668]
call fcn.00406dfc
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x40f104
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40f1da
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00405424
lea eax, [ebp - 8]
call fcn.0040589c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.0040584c
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40f1c4
mov eax, ebx
call fcn.00402bb0
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40f1bd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.0040584c
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40f1a7
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40f1ec
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40f1a7
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f1c4
mov eax, dword [ebp - 0x10]
call fcn.00402be0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f1e1
lea eax, [ebp - 8]
call fcn.0040538c
ret

Function at 0x40f7f4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40f858
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.004055fc
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.0040a6a0
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f85f
lea eax, [ebp - 0xc]
call fcn.0040538c
ret

Function at 0x410050
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov eax, dword [0x5647bc]
cmp dword [eax], 0
je 0x410086
push 0xa
push 0x4100dc
mov eax, dword [0x5647bc]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_FindResourceA
push eax
mov eax, dword [0x5647bc]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_LoadResource
mov dword [esp], eax
jmp 0x4100d2
xor eax, eax
mov dword [esp], eax
mov eax, dword [0x564cc4]
mov eax, dword [eax]
mov dword [esp + 4], eax
cmp dword [esp + 4], 0
je 0x4100d2
mov ebx, dword [esp + 4]
push 0xa
push 0x4100dc
mov esi, dword [ebx + 4]
push esi
call sub.kernel32.dll_FindResourceA
push eax
push esi
call sub.kernel32.dll_LoadResource
mov dword [esp], eax
cmp dword [esp], 0
jne 0x4100d2
mov eax, dword [esp + 4]
mov eax, dword [eax]
mov dword [esp + 4], eax
cmp dword [esp + 4], 0
jne 0x41009d
mov eax, dword [esp]
pop ecx
pop edx
pop esi
pop ebx
ret
Function at 0x4107bc
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffc00
mov esi, edx
mov edi, eax
mov eax, esi
call fcn.0040538c
push 0x400
lea eax, [esp + 4]
push eax
mov eax, edi
call fcn.0040584c
mov ebp, eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableA
mov ebx, eax
cmp ebx, 0x400
jge 0x410801
mov edx, esp
mov eax, esi
mov ecx, ebx
call fcn.0040547c
jmp 0x41081a
mov edx, ebx
dec edx
mov eax, esi
call fcn.004059d8
push ebx
mov eax, dword [esi]
call fcn.0040584c
push eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableA
add esp, 0x400
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x425da4
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov al, byte [eax + 0xe]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x425df1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xe], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.00425be4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x425e09
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x425e10
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.00425be4
dec esi
jne 0x425e32
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x426f74
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x565890
cmp dword [edi], 0
jne 0x426ff0
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x56588c]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x55e700
mov ecx, 2
call fcn.00402e08
mov edx, 0x426f4c
lea eax, [esi + 5]
call fcn.00426f6c
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00426f6c
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x426fc5
mov dword [0x56588c], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x428b80
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x428b86
ret