joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f050
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x416568
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x40f074
add eax, 8
inc ebp
cmp eax, 0x4165f8
jb 0x40f065
cmp ecx, dword [ebp*8 + 0x416568]
jne 0x40f21b
mov eax, dword [0x4308d0]
cmp eax, 1
je 0x40f1dd
test eax, eax
jne 0x40f0a0
cmp dword [0x413f64], 1
je 0x40f1dd
cmp ecx, 0xfc
je 0x40f21b
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40f0db
mov ecx, 5
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x40f124
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x4123a0
add ebx, ecx
push ebx
call fcn.0040b270
add esp, 0xc
mov ecx, 6
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x412380
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Microsoft_Visual_C_Runtime_Library
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x41656c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00410280
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x431cc0]
test eax, eax
je 0x40f1ee
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x40f1f8
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x41656c]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x40f590
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [0x431dc0]
sub esp, 0x41c
cmp eax, ecx
push ebx
push ebp
push esi
push edi
jae 0x40f73d
mov ecx, eax
mov esi, eax
sar ecx, 5
and esi, 0x1f
mov edx, dword [ecx*4 + 0x431cc0]
lea edi, [ecx*4 + 0x431cc0]
shl esi, 3
mov dword [esp + 0x24], edi
mov dword [esp + 0x14], esi
mov cl, byte [esi + edx + 4]
test cl, 1
je 0x40f73d
mov ebx, dword [esp + 0x438]
xor ebp, ebp
cmp ebx, ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebp
jne 0x40f5fe
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
test cl, 0x20
je 0x40f60f
push 2
push ebp
push eax
call fcn.0040e000
add esp, 0xc
mov eax, dword [edi]
add eax, esi
test byte [eax + 4], 0x80
je 0x40f76e
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x18], 0
test ebx, ebx
mov edi, ebp
jbe 0x40f6b9
lea eax, [esp + 0x28]
mov ecx, edi
sub ecx, ebp
cmp ecx, ebx
jae 0x40f66a
mov cl, byte [edi]
inc edi
cmp cl, 0xa
jne 0x40f657
mov esi, dword [esp + 0x20]
mov byte [eax], 0xd
inc esi
inc eax
mov dword [esp + 0x20], esi
mov byte [eax], cl
inc eax
mov edx, eax
lea ecx, [esp + 0x28]
sub edx, ecx
cmp edx, 0x400
jl 0x40f63a
mov esi, eax
lea edx, [esp + 0x28]
lea eax, [esp + 0x1c]
sub esi, edx
mov edx, dword [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x30]
mov eax, dword [edx]
push esi
push ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + eax]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40f75f
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, eax
cmp eax, esi
mov dword [esp + 0x10], edx
jl 0x40f6b5
mov eax, edi
sub eax, ebp
cmp eax, ebx
jb 0x40f636
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x40f72e
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40f702
cmp eax, 5
jne 0x40f6eb
mov dword [0x4309cc], eax
mov dword [0x4309c8], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
push eax
call fcn.0040d540
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
test byte [esi + edx + 4], 0x40
je 0x40f722
cmp byte [ebp], 0x1a
jne 0x40f722
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x4309c8], 0x1c
jmp 0x40f747
sub eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x4309c8], 9
pop edi
pop esi
pop ebp
mov dword [0x4309cc], 0
or eax, 0xffffffff
pop ebx
add esp, 0x41c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x40f6b5
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x438]
push ecx
push ebx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40f79f
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
jmp 0x40f6b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x40f6b9
Function at 0x410530
Capabilities:
Clear file content

Disassembly:
mov eax, 0x1004
call fcn.0040b0f0
mov eax, dword [0x431dc0]
push ebx
mov ebx, dword [esp + 0x100c]
push ebp
xor ebp, ebp
push esi
cmp ebx, eax
push edi
jae 0x410692
mov eax, ebx
mov ecx, ebx
sar eax, 5
and ecx, 0x1f
mov edx, dword [eax*4 + 0x431cc0]
test byte [edx + ecx*8 + 4], 1
je 0x410692
push 1
push ebp
push ebx
call fcn.0040e000
mov edi, eax
add esp, 0xc
cmp edi, 0xffffffff
mov dword [esp + 0x10], edi
je 0x41069c
push 2
push ebp
push ebx
call fcn.0040e000
add esp, 0xc
cmp eax, 0xffffffff
je 0x41069c
mov ecx, dword [esp + 0x101c]
mov esi, ecx
sub esi, eax
test esi, esi
jle 0x410638
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x14]
push 0x8000
rep stosd dword es:[edi], eax
push ebx
call fcn.00410ff0
add esp, 8
mov edi, eax
cmp esi, 0x1000
mov eax, 0x1000
jge 0x4105df
mov eax, esi
push eax
lea eax, [esp + 0x18]
push eax
push ebx
call fcn.0040f590
add esp, 0xc
cmp eax, 0xffffffff
je 0x4105fb
sub esi, eax
test esi, esi
jle 0x410611
jmp 0x4105d0
cmp dword [0x4309cc], 5
jne 0x41060e
mov dword [0x4309c8], 0xd
or ebp, 0xffffffff
push edi
push ebx
call fcn.00410ff0
mov edi, dword [esp + 0x18]
add esp, 8
push 0
push edi
push ebx
call fcn.0040e000
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
jge 0x410679
push 0
push ecx
push ebx
call fcn.0040e000
add esp, 0xc
push ebx
call fcn.0040fca0
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov ebp, eax
neg ebp
sbb ebp, ebp
neg ebp
dec ebp
cmp ebp, 0xffffffff
jne 0x410679
mov dword [0x4309c8], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x4309cc], eax
push 0
push edi
push ebx
call fcn.0040e000
add esp, 0xc
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1004
ret
mov dword [0x4309c8], 9
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x1004
ret
Function at 0x410cf0
Capabilities:
Set environment variable

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
test edi, edi
je 0x410eae
push 0x3d
push edi
call fcn.00411210
mov esi, eax
add esp, 8
test esi, esi
je 0x410eae
cmp edi, esi
je 0x410eae
mov dl, byte [esi + 1]
mov ecx, dword [0x4309f4]
xor eax, eax
test dl, dl
sete al
mov ebp, eax
mov eax, dword [0x4309f0]
cmp eax, ecx
jne 0x410d47
push eax
call fcn.00410f80
add esp, 4
mov dword [0x4309f0], eax
test eax, eax
jne 0x410dc2
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x410d6e
mov eax, dword [0x4309f8]
test eax, eax
je 0x410d6e
call fcn.00410390
test eax, eax
je 0x410dbd
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
test ebp, ebp
je 0x410d7a
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 4
call fcn.0040af40
add esp, 4
mov dword [0x4309f0], eax
test eax, eax
je 0x410eae
mov dword [eax], 0
mov eax, dword [0x4309f8]
test eax, eax
jne 0x410dbd
push 4
call fcn.0040af40
add esp, 4
mov dword [0x4309f8], eax
test eax, eax
je 0x410eae
mov dword [eax], 0
mov eax, dword [0x4309f0]
mov ebx, eax
mov eax, esi
sub eax, edi
push eax
push edi
mov dword [esp + 0x18], eax
call fcn.00410f00
mov esi, eax
add esp, 8
test esi, esi
jl 0x410ebf
cmp dword [ebx], 0
je 0x410ebf
test ebp, ebp
je 0x410eb7
mov ecx, dword [ebx + esi*4]
lea edi, [ebx + esi*4]
push ecx
call fcn.0040d5b0
mov eax, dword [edi]
add esp, 4
test eax, eax
je 0x410e19
mov eax, edi
mov edx, dword [eax + 4]
add eax, 4
mov dword [edi], edx
inc esi
mov ecx, dword [eax]
mov edi, eax
test ecx, ecx
jne 0x410e08
lea eax, [esi*4]
push eax
push ebx
call fcn.00411070
add esp, 8
test eax, eax
je 0x410e33
mov dword [0x4309f0], eax
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x410ea6
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
inc ecx
push ecx
call fcn.0040af40
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x410ea6
mov edi, dword [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, dword [esp + 0x10]
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
neg ebp
rep movsb byte es:[edi], byte [esi]
sbb ebp, ebp
mov byte [ebx + eax], 0
lea eax, [ebx + eax + 1]
not ebp
and ebp, eax
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push ebx
call fcn.0040d5b0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret
mov dword [ebx + esi*4], edi
jmp 0x410e37
test ebp, ebp
jne 0x410ea6
test esi, esi
jge 0x410ec9
neg esi
lea ecx, [esi*4 + 8]
push ecx
push ebx
call fcn.00411070
add esp, 8
test eax, eax
je 0x410eae
mov dword [eax + esi*4], edi
mov dword [eax + esi*4 + 4], 0
mov dword [0x4309f0], eax
jmp 0x410e37
Function at 0x437b50
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
cmp word [ecx], 3
mov edi, edx
mov esi, ecx
jne 0x437b70
mov eax, dword [esp + 0xc]
mov ecx, dword [esi + 0x14]
push eax
push edi
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextA_1]
mov eax, edi
jmp 0x437b7e
mov eax, dword [esp + 0x10]
mov edx, edi
push eax
mov ecx, esi
call fcn.00437930
test eax, eax
jne 0x437b85
lea eax, [esi + 0x1c]
pop edi
pop esi
ret 8
Function at 0x438260
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x35c
push ebx
push esi
push edi
mov ebx, ecx
push ebp
mov ebp, edx
call fcn.004381e0
test eax, eax
je 0x438284
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x35c
ret
lea eax, [esp + 0x20]
mov edi, ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA_1]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
shr ecx, 2
mov esi, edi
lea edi, [esp + 0x268]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ax, word [0x43f0c0]
mov edi, ebx
mov word [esp + 0x64], ax
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x64]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x43f0c0
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x64]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
test ebp, ebp
je 0x4383c6
cmp byte [ebp], 0
je 0x4383c6
mov edi, 0x43f0bc
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x64]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x64]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x43f0c0
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x64]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x20]
push eax
push ecx
lea edx, [esp + 0x6c]
push 0
lea eax, [esp + 0x274]
push 0
push 0
push 0
push 0
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x35c
ret
Function at 0x439d10
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA_1]
mov esi, eax
test esi, esi
jne 0x439d6b
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
mov edx, dword [esp + 4]
push eax
mov dword [esp + 0xc], 0x104
push ecx
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
lea ecx, [esp + 0xc]
mov edx, dword [esp + 0x114]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA_1]
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey_1]
mov eax, esi
pop esi
add esp, 0x10c
ret 4

Function at 0x439d80
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x208
push ebx
push esi
push edi
mov ebx, edx
push ebp
mov edi, ecx
xor esi, esi
push ebx
mov eax, dword [esp + 0x220]
push esi
push eax
mov ebp, dword [sym.imp.SHELL32.dll_ShellExecuteA_1]
push edi
push 0x43f154
push esi
call ebp
cmp eax, 0x20
jg 0x439e73
mov ecx, edi
call fcn.004381e0
test eax, eax
jne 0x439dc4
xor eax, eax
jmp 0x439e7a
lea eax, [esp + 0x10]
mov edx, 0x43f14c
push eax
mov ecx, 0x80000000
call fcn.00439d10
test eax, eax
jne 0x439e78
lea eax, [esp + 0x10]
push 0x43f138
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA_1]
lea eax, [esp + 0x10]
lea edx, [esp + 0x10]
push eax
mov ecx, 0x80000000
call fcn.00439d10
test eax, eax
jne 0x439e78
lea eax, [esp + 0x10]
push 0x43f130
push eax
call fcn.0043ee30
add esp, 8
mov ebp, eax
test ebp, ebp
jne 0x439e4a
lea eax, [esp + 0x10]
push 0x43f12c
push eax
call fcn.0043ee30
add esp, 8
mov ebp, eax
test ebp, ebp
jne 0x439e4a
lea eax, [esp + 0x10]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
call ebp
lea ebp, [esp + eax + 0xf]
jmp 0x439e4e
mov byte [ebp], 0
push 0x43f044
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcatA_1]
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_lstrcatA_1]
lea eax, [esp + 0x10]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
cmp eax, 0x1f
jbe 0x439e78
mov esi, 1
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x208
ret 4
Function at 0x43a360
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov esi, edx
mov edi, dword [esp + 0xc]
mov edx, dword [ecx + 2]
xor edx, dword [ecx + 6]
xor edx, dword [ecx + 0xa]
add edi, edx
xor edx, edx
mov eax, dword [ecx + 6]
inc edx
xor dword [edi + edx*4 - 4], eax
inc edx
mov eax, dword [ecx + 0xa]
xor dword [edi + edx*4 - 4], eax
cmp edx, 0x14
jl 0x43a375
mov ecx, dword [esi]
call fcn.0043d5f0
mov dword [esi], 0
cmp word [0x43f1b8], 0
je 0x43a3ad
cmp word [0x43f1c0], 0
je 0x43a3ad
call edi
push 0
push 0x43f328
push 0x43f318
push 0
call dword [sym.imp.USER32.dll_MessageBoxA_1]
pop edi
pop esi
ret 4

Function at 0x43a430
Capabilities:
Get common file path
Get disk information

Disassembly:
sub esp, 0x318
lea eax, [esp + 0x110]
push ebx
push esi
xor ebx, ebx
push edi
mov byte [0x442a38], bl
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x43a467
mov byte [esp + 0x11c], 0x63
mov byte [esp + 0x11d], bl
xor edx, edx
lea edi, [esp + 0x11c]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x43a4b0
mov ebx, 0x5c
cmp byte [esp + edx + 0x11c], bl
je 0x43a4a8
inc edx
lea edi, [esp + 0x11c]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, edx
jg 0x43a485
jmp 0x43a4b0
mov byte [esp + edx + 0x11d], 0
lea eax, [esp + 0x18]
push 0x104
lea ecx, [esp + 0x18]
push eax
lea edx, [esp + 0x18]
push ecx
lea eax, [esp + 0x18]
push edx
lea ecx, [esp + 0x230]
push eax
lea edx, [esp + 0x130]
push 0x104
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x43a4fe
lea eax, [esp + 0x18]
push 0xa
mov ecx, dword [esp + 0x10]
push eax
push ecx
call fcn.0043ec60
add esp, 0xc
jmp 0x43a50d
mov edx, 0x43f374
mov ecx, 0x43f35c
call fcn.0043d600
xor eax, eax
mov edx, 0x38
mov cl, byte [esp + eax + 0x18]
cmp cl, 0x30
jl 0x43a52a
cmp cl, 0x39
jg 0x43a52a
mov byte [eax + 0x442a30], cl
jmp 0x43a530
mov byte [eax + 0x442a30], dl
inc eax
cmp eax, 8
jl 0x43a514
mov edi, 0x442a30
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov cl, byte [esp + 0x1a]
mov al, byte [esp + 0x1f]
mov dl, byte [esp + 0x18]
mov byte [0x442a30], cl
mov cl, byte [esp + 0x1b]
mov byte [0x442a33], al
mov al, byte [esp + 0x1d]
mov byte [0x442a32], dl
mov byte [0x442a34], cl
mov byte [0x442a31], al
mov byte [0x442a35], 0
cmp byte [esp + 0x1a], 0x30
jne 0x43a5a5
mov al, byte [esp + 0x1a]
inc al
mov byte [0x442a30], al
mov edx, 0x43f354
mov ecx, 0x442a30
call fcn.0043da70
pop edi
mov dword [0x442ac4], eax
pop esi
pop ebx
add esp, 0x318
ret
Function at 0x43c250
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
lea eax, [esp + 8]
push ebx
push esi
push edi
push ebp
push eax
push 0x43f198
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x43c27c
mov ax, 2
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret
push 0xbb80
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc_1]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock_1]
mov ebp, eax
test ebp, ebp
jne 0x43c2a2
mov ax, 3
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret
mov dword [esp + 0x10], 0xbb80
lea eax, [esp + 0x10]
push eax
push ebp
push 0x43f198
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
je 0x43c2f7
push ebp
mov esi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock_1]
push ebp
call esi
push eax
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalFree_1]
call ebp
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey_1]
mov ax, 3
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
dec dword [esp + 0x10]
push eax
mov edx, dword [esp + 0x14]
push ecx
mov ecx, ebp
xor ebx, ebx
call fcn.0043d780
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
lea eax, [ecx + 8]
mov dword [esp + 0x10], edx
cmp edx, ebx
jle 0x43c33e
mov ecx, 0xc
mov esi, eax
mov edi, dword [0x442c68]
repe cmpsb byte [esi], byte es:[edi]
je 0x43c33e
add eax, 0xc
inc ebx
cmp ebx, dword [esp + 0x10]
jl 0x43c323
push ebp
mov esi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
call esi
push eax
mov edi, dword [sym.imp.KERNEL32.dll_GlobalUnlock_1]
call edi
push ebp
call esi
push eax
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalFree_1]
call ebp
mov eax, dword [esp + 0x14]
push eax
call esi
push eax
call edi
mov eax, dword [esp + 0x14]
push eax
call esi
push eax
call ebp
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey_1]
cmp ebx, dword [esp + 0x10]
je 0x43c394
or byte [0x442a3a], 0x20
mov ax, 1
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret
xor ax, ax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret
Function at 0x43cbc0
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov eax, 4
push esi
push edi
mov edi, dword [ecx + 0xc]
mov esi, edx
sub edi, 0x5c5c5c5d
mov ebx, dword [ecx]
add ecx, 4
xor ebx, edi
add esi, 4
dec eax
mov dword [esi - 4], ebx
jne 0x43cbd3
mov dword [edx + 0x10], 0
pop edi
pop esi
pop ebx
ret

Function at 0x43d100
Capabilities:
Create process on windows
Create process suspended

Disassembly:
sub esp, 0x35c
lea eax, [esp + 0x258]
push esi
push edi
push 0x104
mov edi, ecx
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA_1]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA_1]
test eax, eax
jne 0x43d135
xor eax, eax
pop edi
pop esi
add esp, 0x35c
ret
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
lea edi, [esp + 0x5c]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x43f488
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x5c]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x442b40
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x5c]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA_1]
lea ecx, [esp + 8]
lea edx, [esp + 0x18]
push ecx
push edx
lea eax, [esp + 0x64]
push 0
lea ecx, [esp + 0x26c]
push 0
push 0
push 0
push 0
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x43d222
mov eax, dword [esp + 8]
inc dword [0x442ab4]
mov dword [0x43f408], 1
mov dword [0x442a24], eax
mov eax, dword [esp + 0xc]
pop edi
mov dword [0x442a1c], eax
mov eax, 1
pop esi
add esp, 0x35c
ret
xor eax, eax
pop edi
pop esi
add esp, 0x35c
ret

Function at 0x43d3c0
Capabilities:
Read file on windows

Disassembly:
sub esp, 4
lea eax, [esp]
push esi
mov esi, ecx
push 0
push eax
mov ecx, dword [0x43f414]
push 4
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile_1]
mov eax, dword [esi]
xor eax, 0x20200000
shr eax, 0x12
mov dword [esi], eax
pop esi
add esp, 4
ret

Function at 0x43d3f0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, ecx
shl eax, 0x12
push 0
xor eax, 0x20202020
mov dword [esp + 4], ecx
lea ecx, [esp + 8]
mov edx, dword [0x43f414]
mov dword [esp + 4], eax
push ecx
lea eax, [esp + 8]
push 4
push eax
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile_1]
add esp, 8
ret