joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ddf8
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 0x40defe
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4e9c14
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x4e9c2c]
jne 0x40de44
mov eax, esi
mov edx, 0x4e9c2e
mov ecx, 0x55
call fcn.0040aba0
push 0x4e9c14
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40dee6
push 0x4e9c14
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.0040a0a0
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40deb3
cmp byte [0x4e9c10], 0
je 0x40de78
mov edx, esi
mov eax, ebx
call fcn.0040dcdc
jmp 0x40deb3
mov edx, esi
mov eax, ebx
call fcn.0040dadc
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40deb3
cmp dword [esi], 0
je 0x40de9c
mov eax, esi
mov edx, 0x40df18
call fcn.0040acfc
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040dadc
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040acfc
push 0x4e9c14
call sub.kernel32.dll_EnterCriticalSection
mov word [0x4e9c2c], bx
mov eax, dword [esi]
call fcn.0040ab04
mov ecx, eax
mov eax, 0x4e9c2e
mov edx, 0xaa
call fcn.0040d95c
push 0x4e9c14
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40df05
lea eax, [ebp - 4]
call fcn.0040a0a0
pop eax
jmp eax
Function at 0x40e140
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040a194
xor eax, eax
push ebp
push 0x40e368
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x40e186
push 0x105
lea eax, [ebp - 0x21e]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40e1a0
mov eax, dword [ebp - 4]
call fcn.0040ab04
mov ecx, eax
lea eax, [ebp - 0x21e]
mov edx, 0x105
call fcn.0040d95c
cmp word [ebp - 0x21e], 0
je 0x40e34b
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e378
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e26f
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e378
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e26f
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e3b4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e26f
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e3b4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e26f
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e3e8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40e26f
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x40e41c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40e34b
xor eax, eax
push ebp
push 0x40e344
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
lea eax, [ebp - 0x21e]
call fcn.0040df40
mov ebx, eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push ebx
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40e2d2
mov eax, dword [ebp - 0x14]
call fcn.00406dd8
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push ebx
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, esi
mov edx, dword [ebp - 0xc]
call fcn.0040ab64
jmp 0x40e31d
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0
push 0x40e45c
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40e31d
mov eax, dword [ebp - 0x14]
call fcn.00406dd8
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 0
push 0
push 0x40e45c
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, esi
mov edx, dword [ebp - 0xc]
call fcn.0040ab64
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e34b
cmp dword [ebp - 0xc], 0
je 0x40e338
mov eax, dword [ebp - 0xc]
call fcn.00406df4
mov eax, dword [ebp - 0x10]
push eax
call sub.advapi32.dll_RegCloseKey
pop eax
jmp eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e36f
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040a100
pop eax
jmp eax
Function at 0x40e678
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.0040a194
xor eax, eax
push ebp
push 0x40e73a
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.0040aba0
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040ad54
mov eax, dword [ebx]
call fcn.0040e524
test al, al
jne 0x40e715
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.0040aba0
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040ad54
mov eax, dword [ebx]
call fcn.0040e524
test al, al
jne 0x40e715
mov eax, ebx
call fcn.0040a0a0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e741
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.0040a100
lea eax, [ebp - 4]
call fcn.0040a0a0
pop eax
jmp eax

Function at 0x41029c
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 0x420e2c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x420e85
test eax, edx
je 0x420e88
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x420e43
movzx eax, word [eax]
sub eax, ecx
jmp 0x420e6a
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 [eax + ecx]
xor ebx, dword [edx + ecx]
jne 0x420e6b
add ecx, 4
js 0x420e5b
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x420e68
movzx eax, word [eax + ecx]
movzx edx, word [edx + ecx]
sub eax, edx
pop ebx
pop ebx
jmp 0x420e6a
xor eax, eax
ret
test eax, eax
je 0x420e94
test edx, edx
jne 0x420e34
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x426de4
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 0x426e1d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.0040a238
jmp 0x426e26
mov eax, ebx
mov edx, esi
call fcn.0040a490
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x426e30
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov edi, ecx
mov esi, edx
mov ebx, eax
push 3
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW
test eax, eax
jle 0x426e54
movzx eax, word [esp]
jmp 0x426e56
mov eax, edi
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x428b4c
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 0x428c73
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00428954
mov esi, eax
mov eax, dword [0x4e6ec8]
cmp byte [eax], 0
je 0x428c19
mov eax, dword [0x4e6cf4]
call fcn.00407a28
call fcn.00406f50
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 [0x428b1c]
call fcn.0040cf30
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 0x428c8c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
jmp 0x428c55
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x4e6cac]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4ea634]
call fcn.0040d600
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 0x428c7a
lea eax, [ebp - 4]
mov edx, dword [0x428b1c]
call fcn.0040d054
pop eax
jmp eax

Function at 0x42aff8
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.0040a580
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0041027c
mov edi, eax
cmp edi, 0x104
jbe 0x42afa3
mov eax, edi
add eax, eax
call fcn.00406dd8
mov esi, eax
jmp 0x42afa5
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0041027c
push esi
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x42afde
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 0x42afc8
mov eax, esp
cmp esi, eax
je 0x42afeb
mov eax, esi
call fcn.00406df4
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 0x42b024
cmp bl, 0
je 0x42b020
cmp bl, 0x41
jl 0x42b01b
cmp bl, 0x5a
jg 0x42b01b
or bl, 0x20
xor al, bl
inc esi
jmp 0x42afff
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x42af64

Function at 0x42b940
Capabilities:
Get geographical location

Disassembly:
push ebx
add esp, 0xfffff800
mov ebx, ecx
mov word [esp], 0
push 0x400
lea ecx, [esp + 4]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW
mov eax, ebx
mov edx, esp
mov ecx, 0x400
call fcn.0040aba0
add esp, 0x800
pop ebx
ret
Function at 0x42e0ec
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x42e10a
mov eax, dword [eax - 4]
lea ebx, [edi + esi]
cmp eax, ebx
jg 0x42e122
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x42e11d
mov eax, dword [eax - 4]
mov dword [ebp - 8], eax
jmp 0x42e127
add edi, esi
mov dword [ebp - 8], edi
movzx eax, word [ebp + 0x14]
cmp ax, word [ebp + 0x10]
je 0x42e195
xor eax, eax
mov dword [ebp - 0xc], eax
cmp esi, dword [ebp - 8]
jge 0x42e1de
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x14]
jne 0x42e153
inc dword [ebp - 0xc]
jmp 0x42e16b
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x10]
jne 0x42e16b
cmp dword [ebp - 0xc], 0
jle 0x42e16b
dec dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0
jne 0x42e18d
xor eax, eax
jmp 0x42e189
movzx edi, word [edx + eax*2]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx]
cmp di, word [ebx + esi*2]
jne 0x42e188
mov eax, esi
jmp 0x42e1e1
inc eax
cmp eax, ecx
jle 0x42e175
inc esi
cmp esi, dword [ebp - 8]
jl 0x42e13f
jmp 0x42e1de
mov byte [ebp - 0xd], 0
cmp esi, dword [ebp - 8]
jge 0x42e1de
mov eax, dword [ebp - 4]
mov eax, dword [eax]
movzx eax, word [eax + esi*2]
cmp ax, word [ebp + 0x14]
jne 0x42e1b6
movzx eax, byte [ebp - 0xd]
xor al, 1
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
jne 0x42e1d8
xor eax, eax
jmp 0x42e1d4
movzx edi, word [edx + eax*2]
mov ebx, dword [ebp - 4]
mov ebx, dword [ebx]
cmp di, word [ebx + esi*2]
jne 0x42e1d3
mov eax, esi
jmp 0x42e1e1
inc eax
cmp eax, ecx
jle 0x42e1c0
inc esi
cmp esi, dword [ebp - 8]
jl 0x42e19e
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x42e3d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov word [ebp - 0xa], cx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
test eax, eax
je 0x42e3ed
mov eax, dword [eax - 4]
mov esi, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
test eax, eax
je 0x42e3fb
mov eax, dword [eax - 4]
mov ebx, eax
sub ebx, dword [ebp + 8]
sub ebx, esi
inc ebx
cmp dword [ebp + 8], 0
jl 0x42e51d
test ebx, ebx
jl 0x42e51d
test esi, esi
jle 0x42e51d
mov eax, dword [ebp - 8]
call fcn.0040ab04
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.0040ab04
mov ecx, eax
mov eax, dword [ebp + 8]
add eax, eax
add ecx, eax
movzx eax, word [ebp - 0xa]
cmp ax, word [ebp + 0xc]
je 0x42e4ba
xor eax, eax
mov dword [ebp - 0x14], eax
test ebx, ebx
jl 0x42e51d
inc ebx
mov dword [ebp - 0x1c], ebx
xor edx, edx
xor eax, eax
jmp 0x42e49f
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp - 0xa]
jne 0x42e46e
inc dword [ebp - 0x14]
jmp 0x42e47e
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp + 0xc]
jne 0x42e47e
dec dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0
jle 0x42e489
or eax, 0xffffffff
jmp 0x42e49f
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
mov edi, dword [ebp - 0x10]
cmp bx, word [edi + eax*2]
jne 0x42e49c
inc eax
jmp 0x42e49f
or eax, 0xffffffff
test eax, eax
jl 0x42e4a7
cmp esi, eax
jg 0x42e45c
cmp esi, eax
jg 0x42e4b2
mov eax, edx
add eax, dword [ebp + 8]
jmp 0x42e520
inc edx
dec dword [ebp - 0x1c]
jne 0x42e458
jmp 0x42e51d
mov byte [ebp - 0x15], 0
test ebx, ebx
jl 0x42e51d
inc ebx
mov dword [ebp - 0x1c], ebx
xor edx, edx
xor eax, eax
jmp 0x42e504
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
cmp bx, word [ebp - 0xa]
jne 0x42e4e3
movzx ebx, byte [ebp - 0x15]
xor bl, 1
mov byte [ebp - 0x15], bl
cmp byte [ebp - 0x15], 0
je 0x42e4ee
or eax, 0xffffffff
jmp 0x42e504
lea ebx, [eax + edx]
movzx ebx, word [ecx + ebx*2]
mov edi, dword [ebp - 0x10]
cmp bx, word [edi + eax*2]
jne 0x42e501
inc eax
jmp 0x42e504
or eax, 0xffffffff
test eax, eax
jl 0x42e50c
cmp esi, eax
jg 0x42e4cc
cmp esi, eax
jg 0x42e517
mov eax, edx
add eax, dword [ebp + 8]
jmp 0x42e520
inc edx
dec dword [ebp - 0x1c]
jne 0x42e4c8
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x43e7dc
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov dl, 0xb5
mov ebx, eax
xor eax, eax
mov ecx, eax
mov esi, ebx
shr esi, cl
mov ecx, esi
and cl, 0xff
xor dl, cl
inc eax
cmp eax, 4
jne 0x43e7e4
mov eax, edx
pop esi
pop ebx
ret

Function at 0x441458
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebx
add edx, eax
cmp edx, eax
jbe 0x44146f
movzx ebx, byte [eax]
xor ecx, ebx
imul ecx, ecx, 0x1000193
inc eax
cmp edx, eax
ja 0x44145f
mov eax, ecx
pop ebx
ret
Function at 0x456214
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
test dl, dl
je 0x456228
add esp, 0xfffffff0
call fcn.00408838
mov ebx, edx
mov esi, eax
mov dl, 1
mov eax, dword [0x450198]
call fcn.00474c80
mov dword [esi + 4], eax
mov dl, 1
mov eax, dword [0x4551e4]
call fcn.00477a34
mov dword [esi + 8], eax
mov dl, 1
mov eax, dword [0x4551e4]
call fcn.00477a34
mov dword [esi + 0xc], eax
lea eax, [ebp - 0x24]
push eax
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [ebp - 0x20]
mov dword [esi + 0x10], eax
mov eax, esi
test bl, bl
je 0x45627d
call fcn.00408890
pop dword fs:[0]
add esp, 0xc
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4bf074
Capabilities:
Resume thread

Disassembly:
push ebx
mov ebx, eax
or dl, byte [ebx + 0xd]
je 0x4bf0b7
cmp byte [ebx + 0x11], 0
jne 0x4bf0b7
cmp byte [ebx + 0x24], 0
jne 0x4bf0b7
mov byte [ebx + 0xf], 0
mov byte [ebx + 0xd], 0
mov eax, dword [ebx + 8]
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 1
je 0x4bf0ce
mov ecx, dword [0x4e6e7c]
mov dl, 1
mov eax, dword [0x48ef4c]
call fcn.00428dd8
call fcn.00409708
pop ebx
ret
mov ecx, dword [0x4e6e7c]
mov dl, 1
mov eax, dword [0x48ef4c]
call fcn.00428dd8
call fcn.00409708
pop ebx
ret

Function at 0x4bfa3c
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]
movzx eax, byte [eax + 0xf]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x4bfa8a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xf], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.004bef20
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4bfaa3
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x4bfaac
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 8]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.004bef20
dec esi
jne 0x4bface
mov byte [ebx + 0xf], 0
pop esi
pop ebx
ret
Function at 0x503b67
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x505076], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x505298], eax
mov dword [0x505220], 0x5032dd
mov dword [0x50521c], 2
jmp 0x503b97
mov dword [0x505224], 0
mov dword [0x505228], 0
mov dword [0x505218], 0x30
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x50522c], eax
mov dword [0x505240], 0x504088
mov dword [0x505238], 0xf
mov dword [0x50506e], eax
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [0x505230], eax
mov dword [0x505244], eax
push 0x7f00
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [0x505234], eax
push 0x505218
call dword [sym.imp.USER32.dll_RegisterClassExA]
push 0
push dword [0x50506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push 0x5040d1
push 0x504088
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x505290], eax
push 5
push dword [0x505290]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x505290]
call dword [sym.imp.USER32.dll_UpdateWindow]
jmp 0x503c6a
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.USER32.dll_GetMessageA]
or eax, eax
je 0x503c97
push 0x505248
call dword [sym.imp.USER32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x503c6a
mov eax, dword [0x505250]
jmp 0x503ca4
call 0x502b16
ret

Function at 0x40c006
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ecx, 0xcbf
mov ebx, edx
xor word [eax], dx
lea edx, [ebx + edx]
xchg dh, dl
lea eax, [eax + 2]
loop 0x40c00e
pop ebx
ret
Function at 0x401250
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x434f30]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
call fcn.00402811
push dword [esi + 0x64]
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 0xcc], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
cmp eax, 0xb7
jne 0x401299
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00414104
mov esp, ebp
pop ebp
ret
push 0x38
lea eax, [ebp - 0x3c]
push 0
push eax
mov dword [ebp - 0x40], 0
call fcn.00414360
add esp, 0xc
lea eax, [ebp - 0x40]
push eax
call fcn.00401380
test eax, eax
je 0x4012d1
push 0xffffffffffffffff
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
call fcn.00414104
mov esp, ebp
pop ebp
ret

Function at 0x401380
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x434f30]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00414360
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.00414360
add esp, 0x18
lea eax, [ebp - 0x20c]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
call fcn.004012f0
test eax, eax
lea eax, [ebp - 0x20c]
je 0x401407
push str.winMSetup64.exe
jmp 0x40140c
push str.winMSetup.exe
push eax
push str._s_s
push 0xffffffffffffffff
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.0041424d
lea eax, [ebp - 0x414]
add esp, 0x18
mov dword [esi + 0x10], eax
lea eax, [ebp - 0x20c]
push esi
mov dword [esi], 0x3c
mov dword [esi + 4], 0x40
mov dword [esi + 8], 0
mov dword [esi + 0xc], str.open
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], 5
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x14], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00414104
mov esp, ebp
pop ebp
ret 4
Function at 0x406094
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x434f30]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x437d44]
push esi
push edi
mov edi, dword [ebp + 8]
test eax, eax
jne 0x4060e0
push 0x428188
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4060fd
push str.SetDefaultDllDirectories
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_EncodePointer]
mov dword [0x437d44], eax
jmp 0x4060e9
push eax
call dword [sym.imp.KERNEL32.dll_DecodePointer]
mov esi, eax
test esi, esi
je 0x4060fd
push 0x800
push 0
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
jmp 0x40616a
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x406118
xor eax, eax
jmp 0x40616a
lea eax, [ebp - 0x210]
push eax
call fcn.00415fcc
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x406149
push 0x427c90
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.00415f60
add esp, 0xc
test eax, eax
jne 0x406114
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.00415f60
add esp, 0xc
test eax, eax
jne 0x406114
lea eax, [ebp - 0x210]
push eax
call fcn.0040a457
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00414104
leave
ret