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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x10029e4e
push ebx
push esi
call fcn.10029d7a
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.10028bb7
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10029dfb
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10029e4d
push edi
push eax
call fcn.10024879
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10029e1b
call fcn.10022ef8
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10029e4c
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10028bb7
add esp, 0x20
test eax, eax
jne 0x10029e3a
push edi
call fcn.10022ef8
jmp 0x10029e42
push ebx
call fcn.10022ef8
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1002c426
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.100210fc
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1002c495
cmp esi, dword [ebp - 4]
je 0x1002c490
cmp dword [ebp + 0xc], 0
je 0x1002c490
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1002c46d
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.1002bf78
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x1002c497
xor eax, eax
inc eax
jmp 0x1002c497
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x1002c4fc
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x10043080]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.100210fc
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.100210fc
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x1002c573
cmp word [ecx], dx
je 0x1002c573
mov eax, dword [0x100387f4]
push edi
dec eax
push eax
push 0x100386e0
call fcn.1002c49b
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x1002c5e6
cmp word [eax], dx
je 0x1002c5e6
mov eax, dword [edi]
test eax, eax
je 0x1002c597
cmp word [eax], dx
je 0x1002c597
lea eax, [ebp - 0x10]
push eax
call fcn.1002be7e
jmp 0x1002c5a0
lea eax, [ebp - 0x10]
push eax
call fcn.1002bf19
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x1002c610
mov eax, dword [0x100386dc]
push dword [ebp - 0x14]
dec eax
push eax
push 0x100383d0
call fcn.1002c49b
add esp, 0xc
test al, al
je 0x1002c610
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x1002c5db
cmp word [eax], di
je 0x1002c5db
lea eax, [ebp - 0x10]
push eax
call fcn.1002be7e
pop ecx
jmp 0x1002c612
lea eax, [ebp - 0x10]
push eax
call fcn.1002bf19
jmp 0x1002c5d8
mov eax, dword [edi]
test eax, eax
je 0x1002c5fd
cmp word [eax], dx
je 0x1002c5fd
lea eax, [ebp - 0x10]
push eax
call fcn.1002be33
pop ecx
jmp 0x1002c610
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x1002c6db
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.1002c320
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x1002c6db
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x1002c6db
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x1002c6db
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1002c668
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.1002350c
test ebx, ebx
je 0x1002c6d6
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.1002350c
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1002c6db
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1002c6db
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.1002fd7a
add esp, 0x10
xor eax, eax
inc eax
jmp 0x1002c6dd
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100119d2
leave
ret
Function at 0x10030611
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.1003058d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x10030780
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x10030780
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x10030735
jg 0x1003066d
test eax, eax
je 0x1003072b
push 1
push 0x1000
call fcn.10022c9e
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x10030690
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x10030722
push 0x8000
push ebx
call fcn.100304be
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x100306b9
jg 0x100306b4
cmp ecx, 0x1000
jb 0x100306b9
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.10024159
add esp, 0x10
cmp eax, 0xffffffff
je 0x100306fe
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x100306b4
jl 0x100306e5
test ecx, ecx
jne 0x100306a6
push dword [ebp - 0xc]
push ebx
call fcn.100304be
push esi
call fcn.10022ef8
add esp, 0xc
xor ebx, ebx
jmp 0x1003078e
cmp byte [edi + 0x24], 0
je 0x10030715
cmp dword [edi + 0x20], 5
jne 0x10030715
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x10030720
mov ebx, dword [edi + 0x18]
jmp 0x10030722
xor ebx, ebx
push esi
call fcn.10022ef8
pop ecx
jmp 0x1003078e
test ecx, ecx
jg 0x100306f7
jl 0x10030735
test eax, eax
jae 0x100306f7
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10026a13
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x10030755
cmp byte [edi + 0x1c], 0
je 0x100306f7
jmp 0x10030786
push ebx
call fcn.1002a39e
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x100306f7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1003078e
cmp byte [edi + 0x1c], 0
je 0x1003078b
mov ebx, dword [edi + 0x18]
jmp 0x1003078e
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.10026a13
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10031d40
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10031d6d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10031d6d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x2e0140e6
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x10
mov eax, 0x2e0306ad
call fcn.2e001553
mov edi, ecx
mov dword [ebp - 0x18], edi
xor ebx, ebx
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], ebx
mov byte [edi], bl
push ebx
push ebx
push 6
mov dword [ebp - 4], ebx
call fcn.2e01798d
add esp, 0xc
test al, al
je 0x2e0141a8
lea eax, [ebp - 0x10]
push eax
push str.softwaremicrosoftwindows_shell_associationsurlassociationshttpuserchoice
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x2e0141a8
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push str.progid
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x2e01419f
mov eax, dword [ebp - 0x14]
inc eax
push eax
call fcn.2e01798d
mov esi, eax
pop ecx
mov dword [ebp - 0x1c], esi
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 1
push eax
push esi
push ebx
push ebx
push str.progid
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x2e014192
push esi
mov byte [ebp - 4], 2
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
pop ecx
push eax
push esi
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.2e010e73
push 1
push esi
mov byte [ebp - 4], bl
call fcn.2e01798d
pop ecx
pop ecx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
call fcn.2e00159d
ret

Function at 0x2e014c09
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x28
mov eax, 0x2e030723
call fcn.2e02e506
mov esi, dword [ebp + 8]
xor bl, bl
cmp dword [ecx + 0x10], 0
mov edi, dword [ebp + 0xc]
jbe 0x2e014cf9
and dword [ebp - 0x18], 0
and dword [ebp - 0x14], 0
push ecx
lea ecx, [ebp - 0x28]
call fcn.2e014b12
push esi
mov dword [ebp - 4], 1
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], bl
call fcn.2e010dd2
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x2c]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x2e014cea
lea eax, [ebp - 0x30]
push eax
push 0
push 0x2e033925
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
jne 0x2e014ce1
mov eax, dword [ebp - 0x30]
inc eax
push eax
call fcn.2e01798d
mov esi, eax
pop ecx
mov dword [ebp - 0x34], esi
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 2
push eax
push esi
push 0
push 0
push 0x2e033925
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x2e014cd3
push esi
mov byte [ebp - 4], 3
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
pop ecx
push eax
push esi
mov ecx, edi
mov byte [ebp - 4], 2
call fcn.2e010e73
inc bl
push 1
push esi
mov byte [ebp - 4], 0
call fcn.2e01798d
pop ecx
pop ecx
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 4
call fcn.2e01798d
mov al, bl
call fcn.2e02e4e4
ret 8
Function at 0x2e014d3b
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xc
mov eax, 0x2e030750
call fcn.2e001553
lea eax, [ebp - 0x10]
xor ebx, ebx
push eax
push dword [ebp + 8]
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x2e014d75
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x2e014dea
lea eax, [ebp - 0x14]
mov edi, 0x2e033925
push eax
push ebx
push edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
jne 0x2e014de1
mov eax, dword [ebp - 0x14]
test eax, eax
js 0x2e014de1
inc eax
push eax
call fcn.2e01798d
mov esi, eax
pop ecx
mov dword [ebp - 0x18], esi
lea eax, [ebp - 0x14]
mov dword [ebp - 4], ebx
push eax
push esi
push ebx
push ebx
push edi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x2e014dd3
push esi
mov byte [ebp - 4], 1
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
pop ecx
mov ecx, dword [ebp + 0xc]
push eax
push esi
mov byte [ebp - 4], bl
call fcn.2e010e73
mov bl, 1
or dword [ebp - 4], 0xffffffff
push 1
push esi
call fcn.2e01798d
pop ecx
pop ecx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
call fcn.2e00159d
ret 8

Function at 0x2e01798d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x2e01799c
pop dword [ebp - 0xc]
mov eax, 0x38e497b6
sub eax, 0xae31e1a
sub dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0x31efe7b1
sub dword [ebp - 0x1c], 0xe39da266
mov dword [ebp - 0x18], 0x3a80fb4a
sub dword [ebp - 0x18], 0x84daf05
mov dword [ebp - 0x14], 0xcb9718ab
sub dword [ebp - 0x14], 0x7f4ad47d
mov dword [ebp - 0x10], 0xcaa9e62f
add dword [ebp - 0x10], 0x355619d1
lea eax, [ebp - 0x1c]
push eax
mov eax, 0x5f94e0b
add eax, 0x2809e2bd
add eax, dword [ebp - 0xc]
call dword [eax]
mov dword [ebp - 0x1c], 0x87977e7c
add dword [ebp - 0x1c], 0xecdaeada
mov dword [ebp - 0x18], 0xdf4d0cae
add dword [ebp - 0x18], 0x621f54c7
mov dword [ebp - 0x14], 0x20081a51
add dword [ebp - 0x14], 0x4367521b
mov dword [ebp - 0x10], 0xe2e475da
add dword [ebp - 0x10], 0x1d1b8a26
lea ebx, [ebp - 0x1c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0xc]
call dword [eax]
push 0x40
push 0x1000
push 0x41338
push 0
call eax
mov ecx, 0x55bc0561
sub ecx, 0x55bbbb7b
mov edx, eax
mov edi, 0x2e059000
add edi, dword [ebp - 0xc]
mov esi, 0xc2afa919
add dword [ebp - 8], 0x2bfd528b
mov ebx, dword [edi]
xor ebx, esi
mov dword [ebp - 8], 0x94de1aef
mov dword [edx], ebx
add edx, 4
add edi, 0x70418617
add edi, 0x8fbe79ed
loop 0x2e017aad
add eax, 0xeaadf581
add eax, 0x155324ea
mov ebx, eax
add eax, 5
mov ecx, 0x2e000000
add ecx, dword [ebp - 0xc]
call ebx
leave
ret
Function at 0x2e01e38c
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x28
mov eax, 0x2e030a2c
call fcn.2e02e506
lea eax, [ebp - 0x2c]
xor edi, edi
push eax
push str.softwaremicrosoftwindows_shell_associationsurlassociationshttpuserchoice
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x2e01e449
lea eax, [ebp - 0x30]
mov ebx, str.progid
push eax
push edi
push edi
push edi
push ebx
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x2e01e440
mov eax, dword [ebp - 0x30]
inc eax
push eax
call fcn.2e01798d
mov esi, eax
pop ecx
mov dword [ebp - 0x34], esi
lea eax, [ebp - 0x30]
mov dword [ebp - 4], edi
push eax
push esi
push edi
push edi
push ebx
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
xor ebx, ebx
inc ebx
test eax, eax
jne 0x2e01e433
push esi
lea ecx, [ebp - 0x28]
call fcn.2e00d957
push str.IE.HTTP
lea ecx, [ebp - 0x28]
call fcn.2e01798d
test al, al
jne 0x2e01e428
push edi
push str.AppX
lea ecx, [ebp - 0x28]
call fcn.2e01798d
test eax, eax
cmove edi, ebx
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], bl
call fcn.2e01798d
or dword [ebp - 4], 0xffffffff
push ebx
push esi
call fcn.2e01798d
pop ecx
pop ecx
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ax, di
call fcn.2e02e4e4
ret
Function at 0x1002aadf
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x1002aaee
pop dword [ebp - 0xc]
mov eax, 0xecc6ab94
add eax, 0x233bff5a
sub dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0x2c1e4339
sub dword [ebp - 0x1c], 0xddcbfdee
mov dword [ebp - 0x18], 0xfcde2df
add dword [ebp - 0x18], 0x22656966
mov dword [ebp - 0x14], 0xa662a75c
sub dword [ebp - 0x14], 0x5a16632e
mov dword [ebp - 0x10], 0x143328bf
sub dword [ebp - 0x10], 0x143328bf
lea eax, [ebp - 0x1c]
push eax
mov eax, 0x1ebfaf6a
add eax, 0xf14310ce
add eax, dword [ebp - 0xc]
call dword [eax]
mov dword [ebp - 0x1c], 0xab727f7
sub dword [ebp - 0x1c], 0x9644bea1
mov dword [ebp - 0x18], 0x8ea3c4a2
add dword [ebp - 0x18], 0xb2c89cd3
mov dword [ebp - 0x14], 0xb54dfb05
sub dword [ebp - 0x14], 0x51de8e99
mov dword [ebp - 0x10], 0x41867b4b
add dword [ebp - 0x10], 0xbe7984b5
lea ebx, [ebp - 0x1c]
push ebx
push eax
mov eax, 0xeb423214
add eax, 0x24c08e14
add eax, dword [ebp - 0xc]
call dword [eax]
push 0x40
push 0x1000
push 0x35f54
push 0
call eax
mov ecx, 0x45f6
xor edi, edi
add edi, eax
mov ebx, 0x4a2e4bcd
sub ebx, 0x3a2ab5cd
add ebx, dword [ebp - 0xc]
mov esi, 0x2b2166aa
xor dword [ebp - 8], ebx
mov edx, dword [ebx]
mov dword [ebp - 8], 0xf2da78bf
xor edx, esi
sub dword [ebp - 4], 0x1874470b
mov dword [edi], edx
sub dword [ebp - 4], ebx
add edi, 4
add ebx, 0x59084804
add ebx, 0xa6f7b800
loop 0x1002ac06
add eax, 0x10aab
mov ebx, eax
add eax, 0xcb58b1a0
sub eax, 0xcb58b19b
mov ecx, 0x3df5949d
add ecx, 0xd20a6b63
add ecx, dword [ebp - 0xc]
call ebx
leave
ret
Function at 0x403360
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jb 0x403393
call fcn.00403340
test eax, eax
je 0x403393
mov edx, 1
lea ecx, [ebp - 0x10]
call fcn.00403320
mov eax, dword [ebp - 8]
shr eax, 0x19
and eax, 1
mov esp, ebp
pop ebp
ret
xor eax, eax
shr eax, 0x19
and eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x403400
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jb 0x403434
call fcn.00403340
cmp eax, 7
jb 0x403434
mov edx, 7
lea ecx, [ebp - 0x10]
call fcn.00403320
mov eax, dword [ebp - 0xc]
shr eax, 0x1d
and eax, 1
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x403440
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 5
jb 0x403473
call fcn.00403340
test eax, eax
je 0x403473
mov edx, 1
lea ecx, [ebp - 0x10]
call fcn.00403320
mov eax, dword [ebp - 8]
shr eax, 9
and eax, 1
mov esp, ebp
pop ebp
ret
xor eax, eax
shr eax, 9
and eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x403570
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d4
mov eax, dword [0x883874]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp ax, 6
je 0x4035b9
push str.SetDefaultDllDirectories
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4035b9
push 0xc00
call eax
test eax, eax
jne 0x40364e
push 0x106
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ecx, eax
test ecx, ecx
je 0x40364e
cmp ecx, 0x104
ja 0x40364e
cmp word [ebp + ecx*2 - 0x2d6], 0x5c
je 0x4035f2
mov eax, 0x5c
mov word [ebp + ecx*2 - 0x2d4], ax
inc ecx
mov al, byte [str.userenv]
push esi
mov esi, str.userenv
test al, al
je 0x40364d
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push edi
lea edi, [ebp - 0x2d4]
lea edi, [edi + ecx*2]
mov ecx, edi
inc esi
movzx eax, al
lea ecx, [ecx + 2]
mov word [ecx - 2], ax
mov al, byte [esi]
inc esi
test al, al
jne 0x403615
xor eax, eax
mov dword [ecx], 0x64002e
push 8
push eax
mov word [ecx + 8], ax
lea eax, [ebp - 0x2d4]
push eax
mov dword [ecx + 4], 0x6c006c
call ebx
mov al, byte [esi]
test al, al
jne 0x403612
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00446685
mov esp, ebp
pop ebp
ret
Function at 0x408b30
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x98
push 0
lea eax, [edi + 0x110]
push eax
call fcn.00447de0
mov eax, dword [edi + 0x30]
add esp, 0xc
add eax, dword [edi + 0x34]
mov ecx, dword [edi + 0x28]
mov dword [edi + 0x40], eax
mov dword [edi + 0x2c], 0
mov dword [edi + 0x14], 0
lea esi, [eax + ecx]
shr ecx, 3
mov eax, 0xaaaaaaab
mul ecx
mov ecx, 0xc
shr edx, 3
imul eax, edx, 0x54
mov edx, esi
sub edx, eax
mov eax, dword [edi + 0x18]
cmp eax, ecx
mov dword [edi + 0xc], eax
mov dword [edi + 0x44], edx
cmovb ecx, eax
mov dword [edi + 8], edx
not ecx
lea eax, [edx + 0x600]
mov dword [edi + 0x24], ecx
mov dword [edi + 0x20], ecx
lea ecx, [esi - 0xc]
mov dword [edi + 0x38], eax
xor eax, eax
mov dword [edi + 0x3c], ecx
mov dword [edi], ecx
mov dword [edi + 4], ecx
mov dword [ecx + 4], edx
add edx, 2
mov dword [ecx], 0x1010100
mov dword [ecx + 8], 0
mov byte [edx - 2], al
lea edx, [edx + 6]
xor ecx, ecx
mov byte [edx - 7], 1
inc eax
mov dword [edx - 6], ecx
cmp eax, 0x100
jb 0x408bc7
lea eax, [edi + 0x9fc]
push ebx
xor ebx, ebx
mov dword [ebp - 4], eax
nop word [eax + eax]
mov esi, eax
xor edi, edi
movzx eax, word [edi + 0x457570]
lea ecx, [ebx + 2]
xor edx, edx
div ecx
mov ecx, 0x4000
sub ecx, eax
xor eax, eax
movzx ecx, cx
nop
mov word [esi + eax*2], cx
add eax, 8
cmp eax, 0x40
jb 0x408c10
add edi, 2
add esi, 2
cmp edi, 0x10
jb 0x408bf4
mov eax, dword [ebp - 4]
inc ebx
sub eax, 0xffffff80
mov dword [ebp - 4], eax
cmp ebx, 0x80
jb 0x408bf0
mov edi, dword [ebp + 8]
mov edx, 0x50
pop ebx
lea esi, [edi + 0x3bc]
nop dword [eax + eax]
mov eax, esi
mov ecx, 0x10
nop word [eax + eax]
mov word [eax], dx
lea eax, [eax + 4]
mov word [eax - 2], 0x403
sub ecx, 1
jne 0x408c60
add edx, 0x28
add esi, 0x40
cmp edx, 0x438
jb 0x408c50
mov dword [edi + 0x3b8], 0x40070000
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x409c30
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edx, dword [esi + 8]
and edx, 0x3f
mov byte [edx + esi + 0x40], 0x80
inc edx
cmp edx, 0x38
jbe 0x409c7b
cmp edx, 0x40
je 0x409c67
mov eax, 0x40
lea ecx, [esi + 0x40]
sub eax, edx
add ecx, edx
push eax
push 0
push ecx
call fcn.00447de0
add esp, 0xc
mov eax, dword [esi]
lea edi, [esi + 0x40]
lea ebx, [esi + 0x20]
mov edx, edi
push 1
mov ecx, ebx
call eax
xor edx, edx
jmp 0x409c81
lea edi, [esi + 0x40]
lea ebx, [esi + 0x20]
mov eax, 0x38
sub eax, edx
push eax
lea eax, [esi + 0x40]
add eax, edx
push 0
push eax
call fcn.00447de0
mov ecx, dword [esi + 8]
add esp, 0xc
mov eax, dword [esi + 0xc]
mov edx, edi
shld eax, ecx, 3
shl ecx, 3
bswap eax
bswap ecx
mov dword [esi + 0x78], eax
mov eax, dword [esi]
mov dword [esi + 0x7c], ecx
mov ecx, ebx
push 1
call eax
mov edi, dword [ebp + 0xc]
mov edx, ebx
mov ebx, 4
mov ecx, dword [edx + 4]
lea edi, [edi + 8]
mov eax, dword [edx]
lea edx, [edx + 8]
bswap eax
mov dword [edi - 8], eax
bswap ecx
mov dword [edi - 4], ecx
sub ebx, 1
jne 0x409cc4
pop edi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x20], 0x6a09e667
mov dword [esi + 0x24], 0xbb67ae85
mov dword [esi + 0x28], 0x3c6ef372
mov dword [esi + 0x2c], 0xa54ff53a
mov dword [esi + 0x30], 0x510e527f
mov dword [esi + 0x34], 0x9b05688c
mov dword [esi + 0x38], 0x1f83d9ab
mov dword [esi + 0x3c], 0x5be0cd19
pop esi
pop ebx
pop ebp
ret 8

Function at 0x409d30
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [0x88384c]
mov dword [ecx], eax
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x20], 0x6a09e667
mov dword [ecx + 0x24], 0xbb67ae85
mov dword [ecx + 0x28], 0x3c6ef372
mov dword [ecx + 0x2c], 0xa54ff53a
mov dword [ecx + 0x30], 0x510e527f
mov dword [ecx + 0x34], 0x9b05688c
mov dword [ecx + 0x38], 0x1f83d9ab
mov dword [ecx + 0x3c], 0x5be0cd19
pop ebp
ret 4

Function at 0x40a4e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0
push 0
call fcn.0044a737
mov ecx, dword [ebp + 8]
add esp, 0x18
mov dword [ecx], eax
test eax, eax
je 0x40a50d
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov ecx, 1
cmovne ecx, eax
mov eax, ecx
mov esp, ebp
pop ebp
ret 0xc