joyce8/EMBER2024-capa huggingface dataset:
Function at 0xb005650
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffbe4
mov esi, edx
mov ebx, eax
test bl, bl
je 0xb005692
movzx eax, bl
add ax, 0x41
dec eax
mov word [esp], ax
mov word [esp + 2], 0x3a
mov word [esp + 4], 0
lea eax, [esp + 0x212]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryW
push esp
call sub.kernel32.dll_SetCurrentDirectoryW
lea eax, [esp + 8]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryW
test bl, bl
je 0xb0056b2
lea eax, [esp + 0x212]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
mov eax, esi
lea edx, [esp + 8]
mov ecx, 0x105
call fcn.0b0091f0
add esp, 0x41c
pop esi
pop ebx
ret

Function at 0xb00701c
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.0b0074c4
mov byte [esp], al
cmp byte [esp], 0
jne 0xb0071a5
test edi, edi
je 0xb0071a5
mov byte [esp + 1], 0
test ebp, ebp
jle 0xb0070e5
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0xb0070c0
cmp edi, 0xffffffff
je 0xb007081
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0xb007081
mov byte [esp], 0
jmp 0xb0071a5
cmp dword [esi], 1
jg 0xb0070c0
cmp dword [esi], 0
jne 0xb0070b2
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0xb0070b2
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0xb0071a5
lea eax, [esp + 0xc]
call fcn.0b006cfc
dec ebp
test ebp, ebp
jg 0xb007066
cmp edi, 0xffffffff
je 0xb0070e5
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0xb0070e3
mov byte [esp], 0
jmp 0xb0071a5
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0xb00702a
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0xb0070e5
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.0b007220
mov edx, eax
mov ebx, dword [0xb0e08f8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0xb007149
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0xb007147
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0xb007149
xor edi, edi
cmp byte [esp], 0
je 0xb00716f
mov ebx, dword [esi]
test bl, 1
jne 0xb007185
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0xb00714f
mov byte [esp + 1], 1
jmp 0xb007185
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0xb00716f
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0xb0070fc
cmp byte [esp], 0
je 0xb0071a5
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 0xb007e18
Capabilities:
Terminate process

Disassembly:
push ecx
push ebx
push esi
push edi
mov ebx, 0xb0e2b98
cmp dword [ebp + 0xc], 2
jl 0xb007e2c
mov ebx, 0xb0e2bc8
mov esi, ebx
lea edi, [ebp - 0x40]
mov ecx, 0xc
rep movsd dword es:[edi], dword [esi]
pop dword [ebx + 0x20]
pop dword [ebx + 0x1c]
pop dword [ebx + 0x18]
mov dword [ebx + 0x14], ebp
mov dword [ebx + 8], eax
mov dword [ebx + 0x10], edx
lea ecx, [ebp - 0x40]
mov dword [ebx], ecx
call sub.kernel32.dll_GetCurrentThreadId
mov dword [ebx + 0x2c], eax
mov eax, dword [ebx + 8]
xor ecx, ecx
cmp dword [ebp + 0xc], 0
jne 0xb007e64
mov ecx, dword [eax]
mov dword [ebx + 0xc], ecx
mov eax, 0xb00377c
mov dword [0xb0e001c], eax
mov eax, 0xb003784
mov dword [0xb0e0020], eax
mov eax, ebx
call fcn.0b007cfc
mov eax, dword [ebp + 0xc]
inc eax
mov byte [ebx + 0x28], al
dec eax
pop ecx
mov edx, dword [ecx]
mov dword [ebx + 0x24], edx
je 0xb007e99
cmp al, 3
jge 0xb007e99
call dword [ecx + eax*4]
push ecx
mov ecx, dword [esp + 8]
test ecx, ecx
je 0xb007eaa
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
call ecx
pop ecx
mov eax, dword [ebp + 0xc]
cmp al, 3
jl 0xb007eb5
call dword [ecx + eax*4]
cmp dword [0xb0e0040], 0
jne 0xb007ecb
mov byte [0xb0e0048], 1
fnstcw word [0xb0d7028]
mov eax, dword [ebp + 0xc]
dec eax
jne fcn.0b008164
call fcn.0b007dac
ret 4

Function at 0xb0080cc
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0xb0e0058], 0
je 0xb008133
cmp word [0xb0e0344], 0xd7b2
jne 0xb0080f5
cmp dword [0xb0e034c], 0
jbe 0xb0080f5
mov eax, 0xb0e0340
call dword [0xb0e035c]
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, 0xb008160
call fcn.0b008e44
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0xb0d7032], 0
jne 0xb00814f
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0xb008330
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
cmp dword [0xb0d7034], 0
je 0xb00835b
mov edx, edi
mov eax, esi
call dword [0xb0d7034]
mov ebx, eax
jmp 0xb00836c
mov eax, 8
call fcn.0b0054cc
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0xb0e0059], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0xb0082f8
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateThread
mov esi, eax
test esi, esi
jne 0xb00839c
mov eax, ebx
call fcn.0b0054e8
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0xb00b130
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 0xb00b295
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0b008470
cmp si, word [0xb0d7a08]
jb 0xb00b1c8
cmp si, word [0xb0d7c08]
ja 0xb00b1c8
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0xb00b1c8
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0xb0d7a08]
jae 0xb00b1a2
mov edi, ebx
dec edi
jmp 0xb00b1c3
cmp si, word [ebx*8 + 0xb0d7a08]
jbe 0xb00b1b2
inc ebx
mov dword [ebp - 8], ebx
jmp 0xb00b1c3
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0xb0d7a0c]
call fcn.0b00b050
jmp 0xb00b1c8
cmp edi, dword [ebp - 8]
jae 0xb00b18c
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0xb00b277
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0xb00b277
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.0b0091f0
push dword [ebp - 0x160]
push 0xb00b2b0
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0b0091f0
push dword [ebp - 0x164]
push 0xb00b2c0
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0b0091f0
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0b009428
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xb00b29c
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.0b0084d0
ret
Function at 0xb00b448
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 0xb00b54c
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xb0e2c10
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0xb0e2c28]
jne 0xb00b494
mov eax, esi
mov edx, 0xb0e2c2a
mov ecx, 0x55
call fcn.0b0091f0
push 0xb0e2c10
call sub.kernel32.dll_LeaveCriticalSection
jmp 0xb00b536
push 0xb0e2c10
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.0b008470
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0xb00b503
cmp byte [0xb0e2c0c], 0
je 0xb00b4c8
mov edx, esi
mov eax, ebx
call fcn.0b00b32c
jmp 0xb00b503
mov edx, esi
mov eax, ebx
call fcn.0b00b130
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0xb00b503
cmp dword [esi], 0
je 0xb00b4ec
mov eax, esi
mov edx, 0xb00b564
call fcn.0b009348
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0b00b130
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0b009348
push 0xb0e2c10
call sub.kernel32.dll_EnterCriticalSection
mov word [0xb0e2c28], bx
mov eax, dword [esi]
call fcn.0b009150
mov ecx, eax
mov eax, 0xb0e2c2a
mov edx, 0xaa
call fcn.0b00afb0
push 0xb0e2c10
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xb00b553
lea eax, [ebp - 4]
call fcn.0b008470
ret
Function at 0xb00b77c
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.0b008554
xor eax, eax
push ebp
push 0xb00b9a1
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0xb00b7bc
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0xb00b7d6
mov eax, dword [ebp - 4]
call fcn.0b009150
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0b00afb0
cmp word [ebp - 0x21a], 0
je 0xb00b98b
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0xb00b9b0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0xb00b8a5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0xb00b9b0
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0xb00b8a5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0xb00b9ec
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0xb00b8a5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0xb00b9ec
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0xb00b8a5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0xb00ba20
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0xb00b8a5
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0xb00ba54
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0xb00b98b
xor eax, eax
push ebp
push 0xb00b984
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.0b00b58c
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 0xb00b914
mov eax, dword [ebp - 0x10]
call fcn.0b0054cc
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.0b0091b4
jmp 0xb00b95f
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0xb00ba94
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0xb00b95f
mov eax, dword [ebp - 0x10]
call fcn.0b0054cc
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0xb00ba94
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.0b0091b4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xb00b98b
cmp dword [ebp - 8], 0
je 0xb00b97a
mov eax, dword [ebp - 8]
call fcn.0b0054e8
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 0xb00b9a8
lea eax, [ebp - 4]
call fcn.0b008470
ret
Function at 0xb00bca8
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0b008554
xor eax, eax
push ebp
push 0xb00bd68
push dword fs:[eax]
mov dword fs:[eax], esp
push 4
lea eax, [ebp - 0xc]
push eax
push 3
call sub.kernel32.dll_GetUserDefaultUILanguage
movzx eax, ax
push eax
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0b0091f0
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0b0093a0
mov eax, dword [ebx]
call fcn.0b00bb58
test al, al
jne 0xb00bd45
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0b0091f0
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0b0093a0
mov eax, dword [ebx]
call fcn.0b00bb58
test al, al
jne 0xb00bd45
mov eax, ebx
call fcn.0b008470
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xb00bd6f
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0b0084d0
lea eax, [ebp - 4]
call fcn.0b008470
ret

Function at 0xb00d854
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

Function at 0xb0149bc
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0xb014a15
test eax, edx
je 0xb014a18
movzx ecx, word [edx]
cmp cx, word [eax]
je 0xb0149d3
movzx eax, word [eax]
sub eax, ecx
jmp 0xb0149fa
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]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0xb0149fb
add ecx, 4
js 0xb0149eb
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0xb0149f8
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0xb0149fa
xor eax, eax
ret
test eax, eax
je 0xb014a24
test edx, edx
jne 0xb0149c4
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0xb015cc0
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
push ebx
push esi
push edi
push ebp
mov esi, eax
mov eax, esi
call fcn.0b009150
mov ebp, eax
push ebp
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0xb015d15
call sub.kernel32.dll_GetLastError
mov edi, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0xb015d0f
test ah, 4
je 0xb015d0f
test al, 0x10
je 0xb015d0f
mov eax, esi
call fcn.0b009150
push eax
call sub.kernel32.dll_RemoveDirectoryW
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0xb015d15
push edi
call sub.kernel32.dll_SetLastError
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0xb019f84
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0xb019fbd
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.0b0085f8
jmp 0xb019fc6
mov eax, ebx
mov edx, esi
call fcn.0b008850
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0xb019fd0
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0xb019ff2
movzx eax, word [esp]
jmp 0xb019ff4
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0xb01b044
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0xb01b169
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.0b01ae4c
mov esi, eax
mov eax, dword [0xb0df4d0]
cmp byte [eax], 0
je 0xb01b111
mov eax, dword [0xb0df304]
call fcn.0b005ccc
call fcn.0b005620
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0xb01b014]
call fcn.0b00a864
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0xb01b184
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
jmp 0xb01b14d
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0xb0df2cc]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0xb0e3634]
call fcn.0b00ac54
push eax
call sub.user32.dll_LoadStringW
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xb01b170
lea eax, [ebp - 4]
mov edx, dword [0xb01b014]
call fcn.0b00a988
ret
Function at 0xb01beb0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0xb01bfb0
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0b008898
lea eax, [ebp - 4]
call fcn.0b008a0c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0b009150
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0xb01bf9a
mov eax, ebx
call fcn.0b0054cc
mov dword [ebp - 0x10], eax
xor edx, edx
push ebp
push 0xb01bf93
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0b009150
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0xb01bf7d
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0xb01bfc4
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0xb01bf7d
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x10]
shr eax, 0x10
movzx eax, ax
mov dword [esi], eax
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 0x10]
mov dword [edi], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x14]
shr eax, 0x10
movzx eax, ax
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xb01bf9a
mov eax, dword [ebp - 0x10]
call fcn.0b0054e8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xb01bfb7
lea eax, [ebp - 4]
call fcn.0b008470
ret

Function at 0xb01c938
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.0b00894c
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0b00d834
mov edi, eax
cmp edi, 0x104
jbe 0xb01c8e3
mov eax, edi
add eax, eax
call fcn.0b0054cc
mov esi, eax
jmp 0xb01c8e5
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0b00d834
push esi
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0xb01c91e
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0xb01c908
mov eax, esp
cmp esi, eax
je 0xb01c92b
mov eax, esi
call fcn.0b0054e8
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0xb01c964
cmp bl, 0
je 0xb01c960
cmp bl, 0x41
jl 0xb01c95b
cmp bl, 0x5a
jg 0xb01c95b
or bl, 0x20
xor al, bl
inc esi
jmp 0xb01c93f
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0xb01c8a4
Function at 0xb01d2bc
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffff800
mov esi, edx
mov edi, eax
mov eax, esi
call fcn.0b008470
push 0x400
lea eax, [esp + 4]
push eax
mov eax, edi
call fcn.0b009150
mov ebp, eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableW
mov ebx, eax
cmp ebx, 0x400
jge 0xb01d301
mov edx, esp
mov eax, esi
mov ecx, ebx
call fcn.0b0085f8
jmp 0xb01d31a
mov edx, ebx
dec edx
mov eax, esi
call fcn.0b0092c8
push ebx
mov eax, dword [esi]
call fcn.0b009150
push eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableW
add esp, 0x800
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0xb01ec08
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push edi
push ecx
mov esi, ecx
mov edi, edx
mov ebx, eax
test ebx, ebx
jne 0xb01ec1c
xor eax, eax
mov dword [esi], eax
jmp 0xb01ec7d
cmp dword [esi + 4], 0
jne 0xb01ec7a
mov eax, ebx
call fcn.0b01ebf4
mov ebx, eax
push esp
push 0x40
push 6
push ebx
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_VirtualProtectEx
test eax, eax
je 0xb01ec7a
mov dword [esi], ebx
mov eax, dword [ebx]
mov dword [esi + 8], eax
mov eax, dword [ebx + 4]
mov dword [esi + 0xc], eax
mov byte [ebx], 0xe9
sub edi, ebx
sub edi, 5
mov dword [ebx + 1], edi
push esp
mov eax, dword [esp + 4]
push eax
push 6
push ebx
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_VirtualProtectEx
push 6
push ebx
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.kernel32.dll_FlushInstructionCache
inc dword [esi + 4]
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0xb020034
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov edi, eax
lea eax, [ebp - 4]
mov edx, dword [0xb01eb98]
call fcn.0b009818
xor eax, eax
push ebp
push 0xb0201b6
push dword fs:[eax]
mov dword fs:[eax], esp
test edi, edi
jne 0xb020075
mov ecx, 0xb0201d4
mov dl, 1
mov eax, dword [0xb00fffc]
call fcn.0b01b194
call fcn.0b007ab0
lea ecx, [ebp - 4]
mov edx, 5
mov eax, edi
call fcn.0b01f17c
mov esi, eax
test esi, esi
jne 0xb0200a0
mov ecx, 0xb020230
mov dl, 1
mov eax, dword [0xb00fffc]
call fcn.0b01b194
call fcn.0b007ab0
mov dword [ebp - 8], esi
mov dword [ebp - 0x10], esi
add dword [ebp - 8], 5
mov eax, dword [ebp - 8]
inc eax
add eax, 3
and eax, 0xfffffffc
mov dword [ebp - 0xc], eax
cmp dword [0xb0f58f8], 0
je 0xb0200cf
mov eax, dword [0xb0f58fc]
add eax, dword [ebp - 0xc]
cmp eax, 0x1000
jle 0xb02012e
mov ebx, dword [0xb0f58f8]
test ebx, ebx
je 0xb0200df
add ebx, 0x1000
push 0x40
push 0x1000
push 0x1000
push ebx
call sub.kernel32.dll_VirtualAlloc
mov dword [0xb0f58f8], eax
cmp dword [0xb0f58f8], 0
jne 0xb020117
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc
mov dword [0xb0f58f8], eax
cmp dword [0xb0f58f8], 0
jne 0xb020127
mov al, 1
call fcn.0b005608
xor eax, eax
mov dword [0xb0f58fc], eax
mov ebx, dword [0xb0f58f8]
add ebx, dword [0xb0f58fc]
mov eax, dword [ebp - 0xc]
add dword [0xb0f58fc], eax
mov edx, ebx
mov eax, edi
mov ecx, esi
call fcn.0b0056ec
cmp dword [ebp - 4], 0
je 0xb02016a
mov eax, dword [ebp - 4]
mov eax, dword [eax]
sub eax, edi
mov edx, edi
sub edx, ebx
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx]
add edx, dword [ecx]
add eax, ebx
mov dword [eax], edx
mov eax, dword [ebp - 0x10]
mov byte [ebx + eax], 0xe9
add esi, edi
mov eax, ebx
add eax, dword [ebp - 0x10]
add eax, 5
sub esi, eax
mov eax, dword [ebp - 0x10]
lea eax, [ebx + eax + 1]
mov dword [eax], esi
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
dec eax
sub eax, edx
jl 0xb02019a
inc eax
mov byte [ebx + edx], 0xcc
inc edx
dec eax
jne 0xb020192
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xb0201bd
lea eax, [ebp - 4]
mov edx, dword [0xb01eb98]
call fcn.0b0098f4
ret