joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401e40
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
xor eax, 0x8b567889
jne 0x401e56
push esi
lea eax, [ebp - 0x1d]
push 0x78
push eax
push esi
push cs
pop ebp
push 0x4d8b001c
or byte [ebx + 0x61c0c815], cl
add byte [eax + 0x51], dl
add byte [ebx + 0x158b084d], cl
enter 0x61c0, 0
push eax
push ecx
add edx, 0xfffffff6
push str._s:__s___d__n
push edx
dec ebp
mov ecx, es
xor al, 0x97
mov eax, dword [0xfe41f80c]
mov ebx, 0xc0851403
je 0x401e8c
push eax
xor dword [edx + edx*8 + 0x40], edx
add bh, bh
adc eax, sym.imp.MSVCRT.dll_printf
add esp, 8
push esi
call dword [sym.imp.MSVCRT.dll_exit]
pop esi
nop
nop
nop
nop
nop
nop
nop
xor al, 0x90
nop
invalid
nop

Function at 0x405640
Capabilities:
Resolve function by parsing pe exports

Disassembly:
nop
jmp 0x405652
test eax, eax
je 0x4057e7
nop
add eax, edx
nop
jmp 0x40566c
mov ebx, dword [eax + 0x20]
nop
add ebx, edx
nop
mov ecx, dword [eax + 0x18]
nop
push eax
nop
jmp 0x405686
nop
test ecx, ecx
jmp 0x405697
je 0x4057e4
jmp 0x4056ae
nop
dec ecx
mov esi, dword [ebx + ecx*4]
nop
jmp 0x4056c5
add esi, edx
jmp 0x4056d3
xor edi, edi
nop
jmp 0x4056e5
xor eax, eax
ror edi, 0xd
nop
lodsb al, byte [esi]
nop
jmp 0x4056f9
add edi, eax
cmp al, ah
jmp 0x40570a
jne 0x4056d5
nop
jmp 0x40571c
add edi, dword [ebp - 8]
nop
jmp 0x40572c
cmp edi, dword [ebp + 0x24]
jne 0x405686
test dword [ecx - 1], edx
invalid
invalid
nop
jmp 0x405740
jmp 0x40574b
pop eax
nop
jmp 0x40575e
mov ebx, dword [eax + 0x24]
nop
jmp 0x405770
add ebx, edx
nop
mov cx, word [ebx + ecx*2]
nop
mov ebx, dword [eax + 0x1c]
add ebx, edx
nop
mov eax, dword [ebx + ecx*4]
add eax, edx
nop
jmp 0x405793
mov dword [esp + 0x24], eax
nop
jmp 0x4057a5
pop ebx
pop ebx
jmp 0x4057b6
popal
nop
pop ecx
nop
jmp 0x4057cb
pop edx
push ecx
nop
jmp eax
nop
pop eax
nop
jmp 0x4057f5
pop edi
nop
pop edx
jmp 0x40580b
mov edx, dword [edx]
jmp 0x405555

Function at 0x405850
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov bh, 0x9b
fmul dword [esp + edi]
jne 0x4057f8
pop esi
retf

Function at 0x403d61
Capabilities:
Encode data using xor

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

Disassembly:
push 0x203
call fcn.00576548
jb 0x576376
xchg esi, eax
mov eax, dword [esp + 4]
bswap eax
mov edx, eax
and eax, 0xf0f0f0f
xor edx, eax
rol eax, 8
or eax, edx
mov edx, eax
and eax, 0x33333333
xor edx, eax
rol eax, 4
or eax, edx
mov edx, eax
and eax, 0x55555555
xor edx, eax
rol eax, 2
or eax, edx
ror eax, 7
push eax
mov eax, esi
bswap eax
mov edx, eax
and eax, 0xf0f0f0f
xor edx, eax
rol eax, 8
or eax, edx
mov edx, eax
and eax, 0x33333333
xor edx, eax
rol eax, 4
or eax, edx
mov edx, eax
and eax, 0x55555555
xor edx, eax
rol eax, 2
or eax, edx
ror eax, 7
pop ebx
push esi
add eax, ebx
xchg ecx, eax
lea esi, [ebp + 0x6ed]
mov ebx, ecx
shr ebx, 0x10
mov edx, 0x3576
dec edx
shr edx, 1
mov ch, cl
dec cx
and cl, 0xf
mov ax, word [esi]
xor ax, bx
add ax, cx
ror ax, cl
xor ax, cx
mov word [esi], ax
inc esi
inc esi
dec edx
jne 0x57614c
mov ecx, 0x3576
dec ecx
shr ecx, 2
lea esi, [ebp + 0x6ed]
mov edi, esi
lodsw ax, word [esi]
mov bx, ax
lodsw ax, word [esi]
stosw word es:[edi], ax
mov ax, bx
stosw word es:[edi], ax
loop 0x57617b
lea esi, [ebp + 0x6ed]
pop ecx
mov ebx, ecx
shr ebx, 0x10
mov edx, 0x3576
dec edx
mov ch, cl
dec cx
and cl, 0xf
mov al, byte [esi]
xor al, bl
add al, ch
ror al, cl
xor al, cl
mov byte [esi], al
inc ebx
inc esi
dec edx
jne 0x57619d
lea esi, [ebp + 0x6ed]
mov ecx, dword [esp + 4]
mov ebx, ecx
shr ebx, 0x10
mov edx, 0x3576
dec edx
shr edx, 1
mov ch, cl
dec cx
and cl, 0xf
mov ax, word [esi]
xor ax, bx
add ax, cx
ror ax, cl
xor ax, cx
mov word [esi], ax
inc esi
inc esi
dec edx
jne 0x5761cc
clc
xor ecx, ecx
pop ebx
pop eax
call fcn.005766ed

Function at 0x5763b1
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push dword fs:[0]
mov dword fs:[0], esp
mov eax, dword [esp + 0x10]
mov edi, dword [eax + 0x3c]
add edi, eax
mov ecx, dword [edi + 0x7c]
jecxz 0x57640b
mov ebx, eax
add ebx, dword [edi + 0x78]
mov edx, eax
add edx, dword [ebx + 0x20]
mov ecx, dword [ebx + 0x18]
mov edi, edx
mov ebp, eax
xor eax, eax
push eax
mov esi, ebp
add esi, dword [edx + eax*4]
push esi
mov edi, esi
push eax
push ecx
mov al, 0
xor ecx, ecx
dec ecx
repne scasb al, byte es:[edi]
pop ecx
pop eax
xchg edi, esi
sub esi, dword [esp]
mov edi, esi
pop esi
call fcn.0057607b
cmp eax, dword [esp + 0x18]
pop eax
je 0x57641c
inc eax
loop 0x5763e0
xor eax, eax
pop dword fs:[0]
add esp, 4
pop ebp
clc
ret 8
mov edx, ebp
add edx, dword [ebx + 0x24]
movzx eax, word [edx + eax*2]
cmp eax, dword [ebx + 0x14]
jae 0x57640b
mov edx, ebp
add edx, dword [ebx + 0x1c]
add ebp, dword [edx + eax*4]
xchg ebp, eax
jmp 0x57640d
Function at 0x576435
Capabilities:
Encode data using xor

Disassembly:
push 0x4402890e
xor eax, eax
push eax
call fcn.0057637c
jb 0x576545
push 4
push 0x1000
push 0x200
push 0
call eax
dec eax
js 0x576545
inc eax
push eax
mov edi, eax
xor ecx, ecx
xor eax, eax
mov al, cl
push ecx
mov ecx, 8
clc
rcr ax, 1
jae 0x576479
xor ax, 0xa001
loop 0x57646f
mov word [edi], ax
inc edi
inc edi
pop ecx
inc ecx
cmp ecx, 0x100
jne 0x576465
mov esi, ebp
mov edi, dword [esp]
mov ecx, 0x6dd
dec ecx
xor eax, eax
xor ebx, ebx
xor bh, bh
mov bl, al
lodsb al, byte [esi]
xor bl, al
shl bx, 1
mov bx, word [edi + ebx]
xor bl, ah
mov ax, bx
loop 0x576499
xor edx, edx
mov ecx, 0x6dd
dec ecx
mov edi, ecx
shr edi, 1
mov esi, ebp
test ah, 0x80
je 0x5764c5
xor ax, 0xa097
test dh, 0x80
je 0x5764cf
xor dx, 0xa097
mov bx, ax
add bx, ax
mov cx, dx
add cx, dx
lodsw ax, word [esi]
mov dl, ah
add ax, bx
mov ah, bh
add dx, cx
mov dh, ch
dec edi
jne 0x5764bc
shl eax, 0x10
add eax, edx
mov edx, eax
shr eax, 4
and edx, 0xf0f0f0f
shl edx, 4
and eax, 0xf0f0f0f
or eax, edx
pop ebx
push eax
push ebx
push 0x2aad1211
xor eax, eax
push eax
call fcn.0057637c
jb 0x576545
pop ebx
push 0x8000
push 0
push ebx
call eax
call fcn.005762a8
jb 0x576545
push ecx
mov ecx, dword [ebp + 0x6dd]
add ecx, ebp
lea ebx, [ebp + 0x37c]
sub ebx, dword [ebp + 0x6e1]
mov dword [ecx + 0x18], ebx
pop ecx
inc ecx
ret
xor ecx, ecx
ret

Function at 0x5765dd
Capabilities:
Encode data using xor

Disassembly:
pop ecx
push 0x4402890e
xor eax, eax
push eax
call fcn.0057637c
jb 0x576545
push 4
push 0x1000
push 0x200
push 0
call eax
dec eax
js 0x5766d5
inc eax
push eax
mov edi, eax
xor ecx, ecx
xor eax, eax
mov al, cl
push ecx
mov ecx, 8
clc
rcr ax, 1
jae 0x576622
xor ax, 0xa001
loop 0x576618
mov word [edi], ax
inc edi
inc edi
pop ecx
inc ecx
cmp ecx, 0x100
jne 0x57660e
mov esi, ebp
mov edi, dword [esp]
mov ecx, 0x6dd
dec ecx
xor eax, eax
xor ebx, ebx
xor bh, bh
mov bl, al
lodsb al, byte [esi]
xor bl, al
shl bx, 1
mov bx, word [edi + ebx]
xor bl, ah
mov ax, bx
loop 0x576642
xor edx, edx
mov ecx, 0x6dd
dec ecx
mov edi, ecx
shr edi, 1
mov esi, ebp
test ah, 0x80
je 0x57666e
xor ax, 0xa097
test dh, 0x80
je 0x576678
xor dx, 0xa097
mov bx, ax
add bx, ax
mov cx, dx
add cx, dx
lodsw ax, word [esi]
mov dl, ah
add ax, bx
mov ah, bh
add dx, cx
mov dh, ch
dec edi
jne 0x576665
shl eax, 0x10
add eax, edx
mov edx, eax
shr eax, 4
and edx, 0xf0f0f0f
shl edx, 4
and eax, 0xf0f0f0f
or eax, edx
pop ebx
push eax
push ebx
push 0x2aad1211
xor eax, eax
push eax
call fcn.0057637c
jb 0x5766d5
pop ebx
push 0x8000
push 0
push ebx
call eax
call fcn.005760be
jb 0x5766d5
inc ecx
ret
xor ecx, ecx
jmp 0x5765d1
Function at 0x407414
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.0040b464
test esi, esi
jne 0x40744a
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.0040b5fc
jmp 0x407468
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004072f4
mov edi, eax
test esi, esi
je 0x407468
cmp dword [ebx], 0
je 0x407468
dec esi
jmp 0x407451
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x40a070
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.0040a530
mov byte [esp], al
cmp byte [esp], 0
jne 0x40a1f9
test edi, edi
je 0x40a1f9
mov byte [esp + 1], 0
test ebp, ebp
jle 0x40a139
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x40a114
cmp edi, 0xffffffff
je 0x40a0d5
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40a0d5
mov byte [esp], 0
jmp 0x40a1f9
cmp dword [esi], 1
jg 0x40a114
cmp dword [esi], 0
jne 0x40a106
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x40a106
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x40a1f9
lea eax, [esp + 0xc]
call fcn.00409d20
dec ebp
test ebp, ebp
jg 0x40a0ba
cmp edi, 0xffffffff
je 0x40a139
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x40a137
mov byte [esp], 0
jmp 0x40a1f9
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x40a07e
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40a139
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.0040a274
mov edx, eax
mov ebx, dword [0x6838fc]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x40a19d
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x40a19b
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x40a19d
xor edi, edi
cmp byte [esp], 0
je 0x40a1c3
mov ebx, dword [esi]
test bl, 1
jne 0x40a1d9
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40a1a3
mov byte [esp + 1], 1
jmp 0x40a1d9
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40a1c3
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x40a150
cmp byte [esp], 0
je 0x40a1f9
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 0x40b0c0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x68305c], 0
je 0x40b127
cmp word [0x683348], 0xd7b2
jne 0x40b0e9
cmp dword [0x683350], 0
jbe 0x40b0e9
mov eax, 0x683344
call dword [0x683360]
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, 0x40b154
call fcn.0040bd50
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x678036], 0
jne 0x40b143
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40b324
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 [0x678038], 0
je 0x40b34f
mov edx, edi
mov eax, esi
call dword [0x678038]
mov ebx, eax
jmp 0x40b360
mov eax, 8
call fcn.00406ff4
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x68305d], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x40b2ec
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 0x40b390
mov eax, ebx
call fcn.00407010
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40ee70
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 0x40efd7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.0040b464
cmp si, word [0x678a38]
jb 0x40ef08
cmp si, word [0x678c38]
ja 0x40ef08
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40ef08
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x678a38]
jae 0x40eee2
mov edi, ebx
dec edi
jmp 0x40ef03
cmp si, word [ebx*8 + 0x678a38]
jbe 0x40eef2
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40ef03
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x678a3c]
call fcn.0040ed8c
jmp 0x40ef08
cmp edi, dword [ebp - 8]
jae 0x40eecc
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40efb7
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40efb7
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.0040c0b0
push dword [ebp - 0x160]
push 0x40eff4
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040c0b0
push dword [ebp - 0x164]
push 0x40f004
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040c0b0
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040c2e8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40efde
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.0040b4c4
pop eax
jmp eax
Function at 0x40f18c
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 0x40f292
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x685c14
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x685c2c]
jne 0x40f1d8
mov eax, esi
mov edx, 0x685c2e
mov ecx, 0x55
call fcn.0040c0b0
push 0x685c14
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40f27a
push 0x685c14
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.0040b464
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40f247
cmp byte [0x685c10], 0
je 0x40f20c
mov edx, esi
mov eax, ebx
call fcn.0040f070
jmp 0x40f247
mov edx, esi
mov eax, ebx
call fcn.0040ee70
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40f247
cmp dword [esi], 0
je 0x40f230
mov eax, esi
mov edx, 0x40f2ac
call fcn.0040c208
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040ee70
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040c208
push 0x685c14
call sub.kernel32.dll_EnterCriticalSection
mov word [0x685c2c], bx
mov eax, dword [esi]
call fcn.0040bffc
mov ecx, eax
mov eax, 0x685c2e
mov edx, 0xaa
call fcn.0040ecec
push 0x685c14
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f299
lea eax, [ebp - 4]
call fcn.0040b464
pop eax
jmp eax
Function at 0x4284b8
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
push edi
mov esi, edx
mov edi, eax
xor eax, eax
push ebp
push 0x428599
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
test esi, esi
je 0x42857c
test edi, edi
je 0x42857c
xor edx, edx
mov eax, 6
call fcn.00430d18
test al, al
je 0x42857c
lea edx, [ebp - 4]
mov eax, edi
call fcn.00429214
mov eax, dword [ebp - 4]
call fcn.0042860c
test al, 0x20
je 0x42857c
mov eax, esi
call fcn.004294d8
test al, al
je 0x428542
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00431248
lea eax, [ebp - 8]
mov edx, esi
call fcn.0040c208
mov eax, dword [ebp - 8]
call fcn.0040bffc
push eax
call sub.kernel32.dll_GetFileAttributesW
mov ebx, eax
jmp 0x428551
mov eax, esi
call fcn.0040bffc
push eax
call sub.kernel32.dll_GetFileAttributesW
mov ebx, eax
cmp ebx, 0xffffffff
je 0x428562
test bl, 0x10
je 0x428562
mov ebx, 1
jmp 0x428564
xor ebx, ebx
push ebx
mov eax, esi
call fcn.0040bffc
push eax
mov eax, edi
call fcn.0040bffc
push eax
call sub.kernel32.dll_CreateSymbolicLinkW
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4285a0
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040b4c4
pop eax
jmp eax

Function at 0x42860c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov esi, eax
xor eax, eax
push ebp
push 0x428760
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x4285ac]
call fcn.0040e3c4
add esp, 4
push 0x104
lea eax, [ebp - 0xc]
mov ecx, 1
mov edx, dword [0x4285dc]
call fcn.0040e3c4
add esp, 4
mov bl, 0
mov dl, 1
mov eax, esi
call fcn.00428ad4
test al, al
jne 0x428682
mov dl, 1
mov eax, esi
call fcn.00428a3c
test al, al
je 0x42870c
lea edx, [ebp - 0x1c]
mov eax, esi
call fcn.00429354
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 4]
call fcn.00431248
push 0x104
mov eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x104
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.0040bffc
mov edi, eax
push edi
call sub.kernel32.dll_GetVolumeInformationW
test eax, eax
je 0x428707
test byte [ebp - 0x14], 1
je 0x4286d2
or bl, 1
test byte [ebp - 0x14], 2
je 0x4286db
or bl, 2
test byte [ebp - 0x14], 0x80
je 0x4286e4
or bl, 0x20
push edi
call sub.kernel32.dll_GetDriveTypeW
sub eax, 2
je 0x4286f8
dec eax
je 0x4286fd
dec eax
je 0x428702
dec eax
jne 0x428724
or bl, 0x10
jmp 0x428724
or bl, 4
jmp 0x428724
or bl, 8
jmp 0x428724
call fcn.004320a4
push esi
mov ecx, dword [0x682610]
mov dl, 1
mov eax, dword [0x420af0]
call fcn.0042ff1c
call fcn.0040ab20
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x428767
lea eax, [ebp - 0x1c]
call fcn.0040b464
lea eax, [ebp - 0xc]
mov edx, dword [0x4285dc]
call fcn.0040e4e8
lea eax, [ebp - 8]
mov edx, dword [0x4285ac]
call fcn.0040e4e8
lea eax, [ebp - 4]
call fcn.0040b464
pop eax
jmp eax
Function at 0x42f648
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 0x42f76f
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.0042f450
mov esi, eax
mov eax, dword [0x6824f8]
cmp byte [eax], 0
je 0x42f715
mov eax, dword [0x682130]
call fcn.00408018
call fcn.00407168
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 [0x42f618]
call fcn.0040e3c4
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 0x42f788
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
jmp 0x42f751
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x682088]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x686634]
call fcn.0040e990
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 0x42f776
lea eax, [ebp - 4]
mov edx, dword [0x42f618]
call fcn.0040e4e8
pop eax
jmp eax
Function at 0x430a68
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee4
mov dword [ebp - 0x11c], 0x114
lea eax, [ebp - 0x11c]
push eax
call sub.kernel32.dll_GetVersionExW
test eax, eax
je 0x430aab
mov eax, dword [ebp - 0x10c]
mov dword [0x686950], eax
mov eax, 0x686954
lea edx, [ebp - 0x108]
mov ecx, 0x80
call fcn.0040c0b0
mov eax, 0x686958
call fcn.0040b464
xor eax, eax
mov dword [0x68695c], eax
xor eax, eax
mov dword [ebp - 4], eax
cmp dword [0x686814], 0xa
jl 0x430c01
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x430c0c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x430c01
xor eax, eax
push ebp
push 0x430bfa
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push 0x430c68
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x430b5a
cmp dword [ebp - 8], 2
jle 0x430b5a
mov edx, dword [ebp - 8]
sub edx, 2
sar edx, 1
jns 0x430b2d
adc edx, 0
mov eax, 0x686958
call fcn.0040c188
lea eax, [ebp - 8]
push eax
mov eax, dword [0x686958]
call fcn.0040bffc
push eax
push 0
push 0
push 0x430c68
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
jmp 0x430bb4
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push 0x430c88
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x430bb4
cmp dword [ebp - 8], 2
jle 0x430bb4
mov edx, dword [ebp - 8]
sub edx, 2
sar edx, 1
jns 0x430b89
adc edx, 0
mov eax, 0x686958
call fcn.0040c188
lea eax, [ebp - 8]
push eax
mov eax, dword [0x686958]
call fcn.0040bffc
push eax
push 0
push 0
push 0x430c88
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov dword [ebp - 8], 4
lea eax, [ebp - 8]
push eax
push 0x68695c
push 0
push 0
push 0x430c9c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
je 0x430be1
xor eax, eax
mov dword [0x68695c], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x430c01
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
pop eax
jmp eax
mov byte [0x67a730], 1
mov esp, ebp
pop ebp
ret