joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406343
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
push 1
call fcn.00406304
test eax, eax
je 0x40636b
push 5
push ebx
push esi
call eax
test eax, eax
jne 0x406505
mov dword [0x424040], 0x4c554e
test ebx, ebx
je 0x4063b0
push 1
push 0
push ebx
call fcn.00405d72
push eax
call sub.KERNEL32.dll_CloseHandle
push 0x400
push 0x424040
push ebx
call sub.KERNEL32.dll_GetShortPathNameA
test eax, eax
sete dl
cmp eax, 0x400
setg al
or eax, edx
test al, 1
jne 0x40650b
push 0x400
push 0x423c40
push esi
call sub.KERNEL32.dll_GetShortPathNameA
test eax, eax
sete dl
cmp eax, 0x400
setg al
or eax, edx
test al, 1
jne 0x40650b
push 0x423c40
push 0x424040
push str._s_s_r_n
push 0x423840
call sub.USER32.dll_wsprintfA
mov dword [ebp - 0x14], eax
mov eax, dword [0x424ca0]
push dword [eax + 0x128]
push 0x423c40
call fcn.00406005
push 4
push 0xc0000000
push 0x423c40
call fcn.00405d72
add esp, 0x10
cmp eax, 0xffffffff
mov dword [ebp - 0x18], eax
je 0x406505
push 0
push eax
call sub.KERNEL32.dll_GetFileSize
mov edx, dword [ebp - 0x14]
mov ebx, eax
lea eax, [eax + edx + 0xa]
push eax
push 0x40
call sub.KERNEL32.dll_GlobalAlloc
mov esi, eax
test eax, eax
je 0x4064fd
lea edi, [ebp - 0x10]
push 0
push edi
push ebx
push eax
push dword [ebp - 0x18]
call sub.KERNEL32.dll_ReadFile
test eax, eax
je 0x4064fd
cmp ebx, dword [ebp - 0x10]
jne 0x4064fd
push str._Rename__r_n
push esi
call fcn.00405f47
test eax, eax
jne 0x406490
lea eax, [esi + ebx]
push str._Rename__r_n
push eax
call fcn.00405f27
add ebx, 0xa
mov eax, ebx
jmp 0x4064c5
add eax, 0xa
push 0x4095bb
push eax
call fcn.00405f47
mov ecx, eax
mov eax, ebx
test ecx, ecx
je 0x4064c5
inc ecx
lea eax, [esi + ebx]
mov edx, ecx
mov dword [ebp - 0x1c], eax
cmp ecx, eax
jae 0x4064c1
mov edi, dword [ebp - 0x14]
mov al, byte [edx]
mov byte [edx + edi], al
inc edx
cmp edx, dword [ebp - 0x1c]
jmp 0x4064b1
mov eax, ecx
sub eax, esi
push dword [ebp - 0x14]
lea eax, [esi + eax]
push 0x423840
push eax
call fcn.00405c83
add ebx, dword [ebp - 0x14]
push 0
push 0
push 0
push dword [ebp - 0x18]
call sub.KERNEL32.dll_SetFilePointer
lea eax, [ebp - 0x10]
push 0
push eax
push ebx
push esi
push dword [ebp - 0x18]
call sub.KERNEL32.dll_WriteFile
push esi
call sub.KERNEL32.dll_GlobalFree
push dword [ebp - 0x18]
call sub.KERNEL32.dll_CloseHandle
inc dword [0x424c50]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 8
Function at 0x406515
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x14c
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
push esi
call fcn.0040625c
test edi, 8
mov dword [ebp - 0x158], eax
je 0x40655b
mov ebx, dword [0x424c48]
push esi
call sub.KERNEL32.dll_DeleteFileA
test eax, eax
sete al
movzx eax, al
add eax, ebx
mov dword [0x424c48], eax
jmp 0x4066fc
mov ebx, edi
and ebx, 1
je 0x40657b
cmp dword [ebp - 0x158], 0
je 0x4066a4
test edi, 2
je 0x4066a4
push esi
push 0x424440
call fcn.00405f27
test ebx, ebx
je 0x40659b
push str..
push 0x424440
call fcn.00405fcc
jmp 0x4065a1
push esi
call fcn.00405fa1
push 0x4095a6
push esi
call fcn.00405fcc
push esi
call fcn.00405f3e
lea eax, [esi + eax]
mov dword [ebp - 0x154], eax
lea eax, [ebp - 0x14c]
push eax
push 0x424440
call sub.KERNEL32.dll_FindFirstFileA
mov dword [ebp - 0x150], eax
inc eax
je 0x406692
lea ebx, [ebp - 0x120]
push 0x3f
push ebx
call fcn.00405bd1
cmp byte [eax], 0
je 0x4065f5
cmp byte [ebp - 0x1c], 0
je 0x4065f5
lea ebx, [ebp - 0x1c]
cmp byte [ebx], 0x2e
jne 0x40660b
mov al, byte [ebx + 1]
test al, al
je 0x40666d
cmp al, 0x2e
jne 0x40660b
cmp byte [ebx + 2], 0
je 0x40666d
push ebx
push dword [ebp - 0x154]
call fcn.00405f27
test byte [ebp - 0x14c], 0x10
je 0x406633
mov eax, edi
and eax, 3
cmp eax, 3
jne 0x40666d
push edi
push esi
call fcn.00406515
jmp 0x40666d
push esi
call fcn.00405d4f
push esi
call sub.KERNEL32.dll_DeleteFileA
test eax, eax
jne 0x406665
test edi, 4
je 0x40665d
push esi
push 0xfffffffffffffff1
call fcn.004052eb
push 0
push esi
call fcn.00406343
jmp 0x40666d
inc dword [0x424c48]
jmp 0x40666d
push esi
push 0xfffffffffffffff2
call fcn.004052eb
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 0x150]
call sub.KERNEL32.dll_FindNextFileA
test eax, eax
jne 0x4065d9
push dword [ebp - 0x150]
call sub.KERNEL32.dll_FindClose
test edi, 1
je 0x4066a4
mov eax, dword [ebp - 0x154]
mov byte [eax - 1], 0
test edi, 1
je 0x4066fc
cmp dword [ebp - 0x158], 0
je 0x4066ec
push esi
call fcn.0040621f
test eax, eax
je 0x4066fc
push esi
call fcn.00405fd5
push esi
call fcn.00405d4f
push esi
call sub.KERNEL32.dll_RemoveDirectoryA
test eax, eax
jne 0x4066f4
and edi, 4
je 0x4066ec
push esi
push 0xfffffffffffffff1
call fcn.004052eb
push 0
push esi
call fcn.00406343
jmp 0x4066fc
inc dword [0x424c48]
jmp 0x4066fc
push esi
push 0xffffffffffffffe5
call fcn.004052eb
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 8
Function at 0x68ef5c00
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x68ef5bee
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x68ef5c0c
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
add byte [eax], al
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x68ef5c6a
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
invalid
invalid
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x68ef5c51
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x68ef5c5a
or byte [eax + ecx], 2
add bh, byte [ecx]
pop ebp
adc byte [ebp + eax + 3], dh
enter 0x980, 4
cmp dword [ebp + 0x10], ebx
je 0x68ef5c64
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x68ef5c46
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x68ef5bd0
mov dword [ebp + 8], esi
xor edi, edi

Function at 0x68ef5c44
Capabilities:
Inspect section memory permissions

Disassembly:
add byte [eax + 0x3b184d8b], al
sal dword [esp + eax - 0x80], cl
or al, 8
add dword [ecx], edi
pop ebp
or byte [esp + eax - 0x80], dh
or al, 8

Function at 0x68ef5c59
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x68ef5bee
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x68ef5c0c
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
add byte [eax], al
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x68ef5c6a
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
invalid
invalid
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x68ef5c51
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x68ef5c5a
or byte [eax + ecx], 2
add bh, byte [ecx]
pop ebp
adc byte [ebp + eax + 3], dh
enter 0x980, 4
cmp dword [ebp + 0x10], ebx
je 0x68ef5c64
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x68ef5c46
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x68ef5bd0
mov dword [ebp + 8], esi
xor edi, edi

Function at 0x68ef5d92
Capabilities:
Contain obfuscated stackstrings

Disassembly:
insd dword es:[edi], dx
mov byte [ebp - 0x345], 0x40
mov byte [ebp - 0x344], 0x44
invalid
invalid
invalid
cld
Function at 0x68ef5daa
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov esi, 0x25fffffc
lea eax, [ebp - 0x354]
push eax
call fcn.68ef5527
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.68ef54dc
add esp, 0xc
or al, 0x89
test dword [ecx + edi*8 - 1], esi
invalid
call dword [ebp - 0x68c]
mov dword [ebp - 0x674], eax
invalid
test dword [esp + edi*8 - 1], edi
invalid
invalid

Function at 0x68ef5de4
Capabilities:
Contain obfuscated stackstrings

Disassembly:
add byte [eax], al
add byte [eax - 0x3335b], al
inc dword [eax]

Function at 0x68ef5dff
Capabilities:
Contain obfuscated stackstrings

Disassembly:
test dword [eax + 0x4fffff9], edx
add byte [eax], al
add byte [eax - 0x3c35b], al
inc dword [eax]
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
invalid
call [ecx - 0x3c05a80]
invalid
inc dword [eax]
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
mov byte [ebp - 0x3bb], 2
inc dword [edx]

Function at 0x68ef61ba
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov dword [ebp - 0x33c], eax
call fcn.68ef5517
outsb dx, byte [esi]
and al, 0x7c
inc edx
push 0x104
lea eax, [ebp - 0x334]
push eax
push dword [ebp + 8]
call dword [ebp - 0x538]
mov dword [ebp - 0x398], eax
mov byte [ebp - 0x544], 1
cmp dword [ebp - 0x398], 0
je 0x68ef620b
cmp dword [ebp - 0x398], 0
je 0x68ef63d5
cmp dword [ebp + 0xc], 1
je 0x68ef63d5
cmp dword [ebp + 0xc], 8
jne 0x68ef639d
and byte [ebp - 0x6b8], 0
and byte [ebp - 0x6b7], 0
mov byte [ebp - 0x6b6], 0x9b
and byte [ebp - 0x6b5], 0
mov byte [ebp - 0x6b4], 0x33
mov byte [ebp - 0x6b3], 0x16
mov byte [ebp - 0x6b2], 0xd
mov byte [ebp - 0x6b1], 0x10
mov byte [ebp - 0x6b0], 1
mov byte [ebp - 0x6af], 0x34
mov byte [ebp - 0x6ae], 0x16
mov byte [ebp - 0x6ad], 0xb
mov byte [ebp - 0x6ac], 7
invalid
test dword [ebp - 7], edx
Function at 0x68f54c56
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x68fa7ff8], 0
push esi
jne 0x68f54bc9
call fcn.68f54af4
test eax, eax
je 0x68f54c0c
mov eax, dword [0x68fa7ff8]
cmp eax, 1
jne 0x68f54bea
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x68f54c0c
pop esi
ret
push eax
call dword [0x68fa8000]
test eax, eax
jne 0x68f54c54
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x68f54c10
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x68fa7ff8]
call dword [0x68fa8000]
mov edi, eax
test edi, edi
je 0x68f54c37
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x68f54c53
lea edi, [esi + 0xff0]
push esi
push dword [0x68fa7ff8]
call dword [0x68fa7ffc]
add esi, 0x10
cmp esi, edi
jb 0x68f54c3d
mov eax, esi
pop edi
pop esi
ret
jmp 0x68f54bb6

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403ac5
sub eax, 0x403a6b
nop
nop
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
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x42e030
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x42e01e
nop
nop
nop
popal
nop
nop
nop
jmp loc.00401219
Function at 0x1000114e
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call
Read file on windows

Disassembly:
push esi
push edi
push str.ShellExecuteW
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 1
xor edi, edi
push edi
push edi
push 0x10002054
push str.open
push edi
call eax
push 0x40
mov esi, 0x1000
push esi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 0x80
push 3
push edi
push 1
push 0x80000000
push str.desktop.ini
mov dword [0x10003228], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x1000322c], eax
cmp eax, 0xffffffff
je 0x100011f3
push edi
push 0x10003230
push esi
push dword [0x10003228]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [0x10003228]
movzx ecx, byte [eax]
xor ecx, 0x4e
xor esi, esi
cmp dword [0x10003230], edi
jbe 0x100011f1
mov dl, byte [eax + esi]
xor dl, cl
add dl, 0x42
mov byte [eax + esi], dl
inc esi
cmp esi, dword [0x10003230]
jb 0x100011dd
call eax
pop edi
pop esi
ret 0x10

Function at 0x5e61c5
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2bc
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x5e61e0
add esi, 0x1000
lea eax, [ebp - 0x2bc]
push edx
push 0x1c
push eax
push esi
call dword [edx + 0x124ab405]
pop edx
test eax, eax
je 0x5e62b2
cmp dword [ebp - 0x2ac], 0x1000
jne 0x5e62a1
test dword [ebp - 0x2a8], 1
jne 0x5e62a1
and dword [ebp - 0x2a8], 0x100
jne 0x5e62a1
push esi
push edx
push 4
push esi
call dword [edx + 0x122d2c5f]
pop edx
pop esi
test eax, eax
je 0x5e6244
jmp 0x5e62a1
cmp word [esi], 0x5a4d
jne 0x5e62a1
mov eax, esi
push ebx
mov ebx, dword [esi + 0x3c]
add eax, ebx
pop ebx
cmp dword [eax], 0x4550
jne 0x5e62a1
lea eax, [ebp - 0x28c]
push edx
push 0x28a
push eax
push esi
call dword [edx + 0x122d2b9f]
pop edx
test eax, eax
je 0x5e62a1
lea eax, [ebp - 0x28c]
push eax
call fcn.005e6121
test eax, eax
jne 0x5e629a
jmp 0x5e62a1
mov eax, esi
jmp 0x5e62b2
mov esi, dword [ebp - 0x2b0]
add esi, dword [ebp - 0x2bc]
jmp 0x5e61e0
pop esi
leave
ret 4
Function at 0x403908
Capabilities:
Query or enumerate registry value

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

Function at 0x4047bc
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x48304c], 0
je 0x40481d
cmp word [0x483220], 0xd7b2
jne 0x4047e5
cmp dword [0x483228], 0
jbe 0x4047e5
mov eax, 0x48321c
call dword [0x483238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
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
push 0x404844
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x47e02c], 0
jne 0x404839
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x406118
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 0x406348
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40619b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406348
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x40619b
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406364
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x406224
xor eax, eax
push ebp
push 0x40621d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00405f54
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 0x406202
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406384
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x406202
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 0x406224
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 0x40633e
cmp byte [ebp - 0xd], 0
jne 0x40626b
cmp byte [ebp - 0x12], 0
je 0x40633e
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406284
dec ebx
cmp byte [ebx], 0x2e
je 0x406293
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x406283
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40633e
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4062d0
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 0x40633e
cmp byte [ebp - 0xd], 0
je 0x40633e
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 0x40633e
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 0x4087d4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x408826
test eax, edx
je 0x408829
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x4087e9
movzx eax, byte [eax]
sub eax, ecx
ret
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x40880f
add ecx, 4
js 0x4087ff
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x40880c
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x408835
test edx, edx
jne 0x4087dc
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x40bc28
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 0x40bc61
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404a4c
jmp 0x40bc6a
mov eax, ebx
mov edx, esi
call fcn.004049b0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40bc74
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 0x40bc96
movzx eax, byte [esp]
jmp 0x40bc98
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40c328
Capabilities:
Write file on windows

Disassembly:
add byte [esi], ch
add byte [eax], al
add byte [ecx - 0x4433c], al
add esp, 0xfffffbbc
invalid
invalid

Function at 0x40ccac
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40cd82
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.004049f4
lea eax, [ebp - 4]
call fcn.00404e44
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00404dec
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40cd6c
mov eax, ebx
call fcn.00402e94
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40cd65
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 - 4]
call fcn.00404dec
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40cd4f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40cd94
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40cd4f
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cd6c
mov eax, dword [ebp - 0x10]
call fcn.00402eb0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cd89
lea eax, [ebp - 4]
call fcn.0040495c
ret
Function at 0x40e53c
Capabilities:
Encode data using base64

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov dword [esp], ecx
mov esi, eax
mov ebp, edx
xor ebx, ebx
xor edi, edi
mov eax, dword [esp]
mov ecx, 3
cdq
idiv ecx
test eax, eax
jle 0x40e5d6
movzx edx, byte [esi + ebx]
shr edx, 2
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp + edi], dl
movzx edx, byte [esi + ebx]
and dl, 3
movzx edx, dl
shl edx, 4
movzx ecx, byte [esi + ebx + 1]
shr ecx, 4
add edx, ecx
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
push edx
pop edx
mov byte [ebp + edi + 1], dl
movzx edx, byte [esi + ebx + 1]
and dl, 0xf
movzx edx, dl
add edx, edx
add edx, edx
movzx ecx, byte [esi + ebx + 2]
shr ecx, 6
add edx, ecx
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
push edx
pop edx
mov byte [ebp + edi + 2], dl
movzx edx, byte [esi + ebx + 2]
and dl, 0x3f
movzx edx, dl
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp + edi + 3], dl
add edi, 4
add ebx, 3
dec eax
jne 0x40e55b
mov eax, dword [esp]
mov ecx, 3
cdq
idiv ecx
dec edx
je 0x40e5ec
dec edx
je 0x40e621
jmp 0x40e672
movzx eax, byte [esi + ebx]
shr eax, 2
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp + edi], al
movzx eax, byte [esi + ebx]
and al, 3
movzx eax, al
shl eax, 4
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp + edi + 1], al
mov byte [ebp + edi + 2], 0x3d
mov byte [ebp + edi + 3], 0x3d
jmp 0x40e672
movzx eax, byte [esi + ebx]
shr eax, 2
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp + edi], al
movzx eax, byte [esi + ebx]
and al, 3
movzx eax, al
shl eax, 4
movzx edx, byte [esi + ebx + 1]
shr edx, 4
add eax, edx
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp + edi + 1], al
movzx eax, byte [esi + ebx + 1]
and al, 0xf
movzx eax, al
add eax, eax
add eax, eax
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ebp + edi + 2], al
mov byte [ebp + edi + 3], 0x3d
mov eax, dword [esp]
add eax, 2
mov ecx, 3
cdq
idiv ecx
add eax, eax
add eax, eax
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret