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

Disassembly:
sub esp, 0x10c
and byte [esp + 7], 0
push ebx
push ebp
push esi
push edi
push str.CLASSPATH
mov byte [esp + 0x1a], 0x3b
call dword [sym.imp.MSVCRT.dll_getenv]
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
mov ebx, eax
or ebp, 0xffffffff
pop ecx
test ebx, ebx
je 0x401ebd
mov edi, ebx
mov ecx, ebp
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0x27
push ecx
call fcn.00401abf
mov edi, eax
push ebx
push str._Denv.class.path_s
push edi
call esi
push 0
push edi
call fcn.00401551
add esp, 0x18
lea eax, [esp + 0x18]
push 0x104
push eax
call fcn.004025d6
pop ecx
test al, al
pop ecx
jne 0x401eef
mov eax, dword [sym.imp.MSVCRT.dll__iob]
push str.Cant_determine_application_home_n
add eax, 0x40
push eax
call dword [sym.imp.MSVCRT.dll_fprintf]
pop ecx
xor al, al
pop ecx
jmp 0x402013
lea edi, [esp + 0x18]
mov ecx, ebp
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0x27
push ecx
call fcn.00401abf
mov edi, eax
lea eax, [esp + 0x1c]
push eax
push str._Dapplication.home_s
push edi
call esi
push 0
push edi
call fcn.00401551
lea edi, [esp + 0x30]
mov ecx, ebp
xor eax, eax
add esp, 0x18
repne scasb al, byte es:[edi]
not ecx
push 0x28
dec ecx
mov ebx, 0x404018
pop edx
mov dword [esp + 0x10], ecx
mov esi, ebx
mov edi, dword [esi]
mov ecx, ebp
xor eax, eax
add esi, 4
repne scasb al, byte es:[edi]
not ecx
dec ecx
add ecx, dword [esp + 0x10]
cmp esi, str._J_ms8m
lea edx, [edx + ecx + 1]
jb 0x401f39
inc edx
push edx
call fcn.00401abf
mov edx, eax
mov esi, str._Djava.class.path
mov edi, edx
pop ecx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov dword [esp + 0x10], ebx
lea edi, [esp + 0x18]
mov ecx, ebp
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov ebx, ecx
mov esi, edi
mov edi, edx
mov ecx, ebp
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x10]
mov ecx, ebx
and ecx, 3
add dword [esp + 0x10], 4
rep movsb byte es:[edi], byte [esi]
mov edi, dword [eax]
mov ecx, ebp
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
mov ecx, ebp
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x16]
mov ecx, ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
mov ecx, ebp
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
cmp dword [esp + 0x10], 0x404020
rep movsb byte es:[edi], byte [esi]
jb 0x401f73
mov edi, edx
mov ecx, ebp
repne scasb al, byte es:[edi]
not ecx
dec ecx
push eax
push edx
and byte [ecx + edx - 1], al
call fcn.00401551
pop ecx
mov al, 1
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret
Function at 0x40215e
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x184
push ebx
lea eax, [ebp - 0x184]
push 0x104
push eax
call fcn.00402598
lea eax, [ebp - 0x184]
push 0x404a50
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x4021b7
lea eax, [ebp - 0x184]
push eax
mov eax, dword [sym.imp.MSVCRT.dll__iob]
add eax, 0x40
push str.Cant_open__s_n
push eax
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 0xc
push 1
pop eax
jmp 0x402207
push esi
mov esi, dword [sym.imp.MSVCRT.dll_fread]
push edi
mov edi, 0x80
push ebx
push edi
lea eax, [ebp - 0x80]
push 1
push eax
call esi
add esp, 0x10
test eax, eax
je 0x4021fb
mov ecx, dword [sym.imp.MSVCRT.dll__iob]
add ecx, 0x20
push ecx
push eax
lea eax, [ebp - 0x80]
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
push ebx
push edi
lea eax, [ebp - 0x80]
push 1
push eax
call esi
add esp, 0x20
jmp 0x4021d1
push ebx
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
pop edi
xor eax, eax
pop esi
pop ebx
leave
ret

Function at 0x40297f
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4030d0
push 0x402ab0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
push 1
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x404f2c], 0xffffffff
or dword [0x404f30], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x404f28]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x404f24]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x404f34], eax
call fcn.0040287d
cmp dword [0x404eb0], 0
jne 0x402a02
push fcn.00402417
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.00402a9c
push 0x40400c
push 0x404008
call sub.MSVCRT.dll__initterm
mov eax, dword [0x404f20]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x404f1c]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll___getmainargs]
push 0x404004
push section..data
call sub.MSVCRT.dll__initterm
call dword [sym.imp.MSVCRT.dll___p___initenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
call section..text
add esp, 0x30
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x30], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret
Function at 0x401550
Capabilities:
Check os version

Disassembly:
sub esp, 0x98
lea eax, [esp + 4]
mov dword [esp + 4], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 0x14]
cmp eax, 1
jne 0x4015a8
mov eax, dword [esp + 8]
cmp eax, 4
ja 0x40159c
jne 0x4015e2
mov eax, dword [esp + 0xc]
test eax, eax
jbe 0x4015e2
cmp eax, 0x5a
jae 0x40159c
cmp dword [esp + 0x10], 0x40a08ae
sbb eax, eax
inc eax
add esp, 0x98
ret
mov eax, 2
add esp, 0x98
ret
cmp eax, 2
jne 0x4015e2
mov ecx, dword [esp + 8]
mov eax, 3
cmp ecx, 4
jbe 0x4015bf
mov eax, dword [esp]
cmp ecx, 5
jne 0x4015d4
cmp dword [esp + 0xc], 1
sbb eax, eax
add eax, ecx
add esp, 0x98
ret
cmp ecx, 6
jne 0x4015e7
mov eax, ecx
add esp, 0x98
ret
mov ax, word [esp]
add esp, 0x98
ret
Function at 0x4018d0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x104
xor eax, eax
push ebx
mov ebx, ecx
push ebp
push esi
lea edx, [ebx + 0x214]
push edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea ebp, [esp + 0x14]
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, ebp
lea ebp, [esp + 0x14]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
mov edi, str.Speaker_Configuration
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, ebp
mov ebp, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea ebp, [esp + 0x14]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x14]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.Speaker_Type
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x118]
mov edx, dword [ebx + 0x10]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [eax*8]
lea esi, [ebx + 0xc]
add edx, ecx
push esi
mov dword [ebx + 0x10], edx
lea edx, [esp + 0x14]
mov eax, dword [ebx + 0x418]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push edx
push 0
push 0xf003f
push 0
push 0x40adb0
push 0
push 0x4083c0
push eax
call edi
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x4019ee
mov ecx, dword [ebx + 0x10]
mov edx, dword [esp + 0x10]
push 4
push ecx
push 4
push 0
push 0x4083c0
push edx
call ebp
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebx + 0x418]
lea ecx, [esp + 0x10]
push esi
push ecx
push 0
push 0xf003f
push 0
push 0x40adb0
push 0
push 0x4083b0
push edx
call edi
test eax, eax
jne 0x401a3a
mov eax, dword [ebx + 0x10]
mov ecx, dword [esp + 0x10]
add eax, 4
push 4
push eax
push 4
push 0
push 0x4083b0
push ecx
call ebp
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret 4
Function at 0x401a50
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x110
push ebx
push ebp
push esi
mov edx, ecx
push edi
mov edi, str.SYSTEMCurrentControlSet_
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea ebx, [esp + 0x20]
mov eax, ecx
mov esi, edi
mov edi, ebx
lea ebx, [esp + 0x20]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
mov dword [esp + 0x10], 2
rep movsb byte es:[edi], byte [esi]
lea edi, [edx + 0x14]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov al, byte [edx + 3]
mov ecx, ebp
and ecx, 3
lea edx, [esp + 0x20]
rep movsb byte es:[edi], byte [esi]
test al, al
mov edi, str.GlobalSettings
jne 0x401acb
mov edi, str.Settings
or ecx, 0xffffffff
xor eax, eax
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 + 0x14]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push 0x20019
lea ecx, [esp + 0x28]
push 0
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
pop edi
pop esi
pop ebp
pop ebx
test eax, eax
jne 0x401b50
lea edx, [esp + 8]
lea eax, [esp]
push edx
mov edx, dword [esp + 8]
lea ecx, [esp + 0x10]
push eax
push ecx
push 0
push str.SpkrCnfg
push edx
mov dword [esp + 0x20], 0xff
mov dword [esp + 0x24], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp]
add esp, 0x110
ret
Function at 0x401b60
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x110
mov edx, ecx
or ecx, 0xffffffff
xor eax, eax
push ebx
push ebp
push esi
push edi
mov edi, str.SYSTEMCurrentControlSet_
lea ebx, [esp + 0x20]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
lea ebx, [esp + 0x20]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [edx + 0x14]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov al, byte [edx + 3]
mov ecx, ebp
and ecx, 3
lea edx, [esp + 0x20]
rep movsb byte es:[edi], byte [esi]
test al, al
mov edi, str.GlobalSettings
jne 0x401bd3
mov edi, str.Settings
or ecx, 0xffffffff
xor eax, eax
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
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x124]
xor edi, edi
lea ecx, [esp + 0x20]
mov byte [esi], al
lea eax, [esp + 0x10]
push eax
push 0x20019
push edi
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401c7e
lea edx, [esp + 0x1c]
lea eax, [esp + 0x18]
push edx
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
push ecx
push edi
push str.SRCQuality
push edx
mov dword [esp + 0x34], 1
mov dword [esp + 0x2c], 3
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401c73
mov eax, dword [esp + 0x18]
cmp al, 0xff
je 0x401c7e
mov byte [esi], 1
pop edi
pop esi
pop ebp
and eax, 0xff
pop ebx
add esp, 0x110
ret 4
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret 4

Function at 0x401d50
Capabilities:
Set registry value

Disassembly:
sub esp, 8
lea eax, [ecx + 0xc]
lea edx, [esp + 4]
push eax
mov eax, dword [ecx + 0x418]
push edx
push 0
push 0xf003f
push 0
push 0x40adb0
push 0
push str.Device_Presence
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x401df1
mov edx, dword [esp + 4]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [esp + 4]
push 4
push ecx
push 4
push eax
push str.Emulated
push edx
mov dword [esp + 0x1c], 1
call esi
mov ecx, dword [esp + 8]
lea eax, [esp + 4]
push 4
push eax
push 4
push 0
push 0x408498
push ecx
mov dword [esp + 0x1c], 1
call esi
mov eax, dword [esp + 8]
lea edx, [esp + 4]
push 4
push edx
push 4
push 0
push 0x408494
push eax
mov dword [esp + 0x1c], 1
call esi
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
add esp, 8
ret
Function at 0x401e00
Capabilities:
Set registry value

Disassembly:
sub esp, 0xc
lea eax, [esp + 8]
push edi
mov edi, ecx
lea ecx, [esp + 4]
push eax
mov edx, dword [edi + 0x418]
push ecx
push 0
push 0xf003f
push 0
push 0x40adb0
push 0
push str.Mixer_Defaults
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x401eb2
mov ecx, dword [esp + 4]
mov dword [esp + 8], eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea eax, [esp + 0xc]
push 4
push eax
push 4
push 0
push str.Acceleration
push ecx
call esi
cmp byte [esp + 0x18], 1
jne 0x401e76
mov eax, dword [esp + 8]
lea edx, [esp + 0x1c]
push 4
push edx
push 4
push 0
push str.SRC_Quality
push eax
jmp 0x401ea4
mov ecx, edi
call fcn.00401550
cmp ax, 1
je 0x401e90
mov ecx, edi
call fcn.00401550
cmp ax, 2
jne 0x401ea6
mov ecx, dword [esp + 8]
add edi, 8
push 4
push edi
push 4
push 0
push str.SRC_Quality
push ecx
call esi
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop edi
add esp, 0xc
ret 8

Function at 0x401f10
Capabilities:
Query service status

Disassembly:
sub esp, 0x1c
push ebx
push esi
push edi
push 4
push 0
push 0
mov bl, 1
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
push 4
push str.HDAudBus
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x401f51
lea eax, [esp + 0xc]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x401f51
cmp dword [esp + 0x10], 4
je 0x401f53
xor bl, bl
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop edi
mov al, bl
pop esi
pop ebx
add esp, 0x1c
ret
Function at 0x40373d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4085c0
cmp edx, dword [eax]
je 0x40375f
add eax, 8
inc ecx
cmp eax, 0x408650
jl 0x403750
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4085c0]
jne 0x40388d
mov eax, dword [0x40ae08]
cmp eax, 1
je 0x403867
test eax, eax
jne 0x403790
cmp dword [0x40850c], 1
je 0x403867
cmp edx, 0xfc
je 0x40388d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4037c7
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00404260
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00403c00
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40380a
lea eax, [ebp - 0x1a4]
push eax
call fcn.00403c00
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x407474
push edi
call fcn.00405a30
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00404260
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00404270
lea eax, [ebp - 0xa0]
push 0x407454
push eax
call fcn.00404270
push dword [esi + 0x4085c4]
lea eax, [ebp - 0xa0]
push eax
call fcn.00404270
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004059a4
add esp, 0x2c
pop edi
jmp 0x40388d
lea eax, [ebp + 8]
lea esi, [esi + 0x4085c4]
push 0
push eax
push dword [esi]
call fcn.00403c00
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x100016a0
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10004ddd
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x20
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 8
call fcn.10004000
xorps xmm0, xmm0
mov dword [ebp - 0x30], eax
add esp, 4
mov dword [eax], 0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0
push ecx
mov ecx, eax
call fcn.10001190
cmp dword [ebp - 0x18], 0xf
lea eax, [ebp - 0x2c]
cmova eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x10001742
cmp dword [ebp - 0x18], 0xf
lea eax, [ebp - 0x2c]
cmova eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 0x18]
cmp ecx, 0xf
jbe 0x10001778
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1000176e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1000176e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.10004030
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10003ff2
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x401000
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x401012
mov eax, dword [0x41111b]
shl eax, 2
mov dword [0x41111f], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.00406990
pop edx
call fcn.00405d2c
call fcn.00406994
push 0
call fcn.00407640
pop ecx
push 0x4110c4
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x411123], eax
push 0
jmp fcn.0040e224

Function at 0x40583b
Capabilities:
Check for software breakpoints

Disassembly:
les esp, [ecx + 0x2478032b]
sub eax, dword [ebx]
js 0x405863
jo 0x405839
sub eax, 0xa27ce0c0
sbb byte [ecx - 0x3e4e2f9c], 0x1a
mov edi, 0x13d4c1a7
aam 0x13
and dword [edx + 0xa], 0x4c662d5c
insb byte es:[edi], dx
jp 0x405880
cmp edx, esi
and byte [eax - 0x44b13bf1], dl
cld
xchg ebx, eax
pop ebp
jle 0x405850
mov ebx, 0x7e5d93fc
out 0x54, eax
push esp
or ah, dh
cmp al, 0xcc
xor ch, byte [edi + 0x52]
pop edx
xchg ebx, eax
call ebp
add dword [eax], eax
ficomp word [esi + ecx + 0x13]
or eax, 0xdc66644d
adc eax, 0xd6ceb37a
out dx, eax
or eax, 0x94c4e46c
inc eax
ljmp 0xbf6f

Function at 0x406684
Capabilities:
Get memory capacity

Disassembly:
add esp, 0xffffffe0
mov dword [esp], 0x20
push esp
call sub.KERNEL32.DLL_GlobalMemoryStatus
mov eax, dword [esp + 0xc]
add esp, 0x20
ret
Function at 0x401060
Capabilities:
Get process heap force flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov dword [esp], 1
call sub.ucrtbase.dll__configure_narrow_argv
call sub.ucrtbase.dll__initialize_narrow_environment
call sub.ucrtbase.dll___p___argc
mov esi, dword [eax]
call sub.ucrtbase.dll___p___argv
mov edi, dword [eax]
call sub.ucrtbase.dll__get_initial_narrow_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sub.ucrtbase.dll__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.00401120
mov dword [esp], eax
call 0x4010d0
jmp dword [sym.imp.ucrtbase.dll_exit]

Function at 0x401120
Capabilities:
Accept command line arguments

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push esi
push ebx
push ecx
sub esp, 0x6c
call fcn.00401110
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov ebx, eax
movzx eax, byte [eax]
test al, al
je 0x40118e
xor ecx, ecx
xor edx, edx
jmp 0x401166
cmp al, 0x5c
jne 0x4011e8
add edx, 1
movzx eax, byte [ebx + 1]
add ebx, 1
test al, al
je 0x401183
cmp al, 9
je 0x40116e
cmp al, 0x20
jne 0x401150
test ecx, ecx
je 0x401183
xor edx, edx
jmp 0x40115b
add ebx, 1
movzx eax, byte [ebx]
cmp al, 9
je 0x401180
cmp al, 0x20
je 0x401180
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoA]
sub esp, 4
test byte [ebp - 0x30], 1
jne 0x4011a9
mov word [ebp - 0x2c], 1
movzx esi, word [ebp - 0x2c]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.00401000
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret
cmp al, 0x22
jne 0x401172
and edx, 1
jne 0x401172
xor ecx, 1
jmp 0x40115b
Function at 0x4021a9
Capabilities:
Encrypt data using rc4 prga

Disassembly:
or eax, 0xf661beb
sbb esp, dword [esi + 0xf]
jae 0x4021a7
push cs
psrldq xmm1, 0xe
jmp 0x4021c5
inc ebp
test edx, edx
jne 0x4022be
movdqu xmm2, xmmword [edi + 0x10]
movdqa xmm0, xmm2
pcmpeqb xmm0, xmm3
pmovmskb eax, xmm0
test eax, eax
jne 0x402223
dec eax
mov edx, ebx
dec ecx
mov ecx, eax
dec eax
mov ebx, dword [esp + 0x40]
dec eax
mov esi, dword [esp + 0x48]
dec eax
add esp, 0x30
pop edi
jmp 0x4023e0
bsf ecx, eax
mov eax, ecx
dec ecx
sub eax, ebx
dec eax
add eax, 0x10
dec eax
cmp eax, 0x10
ja 0x4021e3
sub edx, ecx
cmp edx, 0xf
ja 0x4022b6
mov ecx, dword [esi + edx*4 + 0x3c3a0]
dec eax
add ecx, esi
mov eax, edx
jmp ecx
por xmm2, xmm1
movdqa xmm1, xmm2
inc ecx
movzx eax, byte [eax]
test al, al
je 0x4022fc
nop word [eax + eax]
movsx eax, al
movd xmm0, eax
punpcklbw xmm0, xmm0
punpcklbw xmm0, xmm0
pshufd xmm0, xmm0, 0
pcmpeqb xmm0, xmm1
pmovmskb eax, xmm0
test eax, eax
jne 0x40230e
inc ecx
movzx eax, byte [eax + 1]
dec ecx
inc eax
test al, al
jne 0x4022d0
xor eax, eax
dec eax
mov ebx, dword [esp + 0x40]
dec eax
mov esi, dword [esp + 0x48]
dec eax
add esp, 0x30
pop edi
ret
dec eax
mov ebx, dword [esp + 0x40]
dec ecx
mov eax, eax
dec eax
mov esi, dword [esp + 0x48]
dec eax
add esp, 0x30
pop edi
ret
dec eax
sub esp, 0x58
dec eax
mov eax, dword [0x1ae6d]
dec eax
xor eax, esp
dec eax
mov dword [esp + 0x40], eax
xor eax, eax
dec esp
mov ecx, edx
dec eax
cmp eax, 0x20
dec esp
mov eax, ecx
jae 0x402478
mov byte [esp + eax + 0x20], 0
dec eax
inc eax
dec eax
cmp eax, 0x20
jl 0x4023ff
mov al, byte [edx]
jmp 0x402432
movzx edx, al
dec eax
shr edx, 3
movzx eax, al
and eax, 7
movzx ecx, byte [esp + edx + 0x20]
bts ecx, eax
dec ecx
inc ecx
mov byte [esp + edx + 0x20], cl
inc ecx
mov al, byte [ecx]
test al, al
jne 0x402413
jmp 0x402457
inc ecx
movzx eax, cl
mov edx, 1
inc ecx
movzx ecx, cl
and ecx, 7
dec eax
shr eax, 3
shl edx, cl
test byte [esp + eax + 0x20], dl
jne 0x402473
dec ecx
inc eax
inc ebp
mov cl, byte [eax]
inc ebp
test cl, cl
jne 0x402438
xor eax, eax
dec eax
mov ecx, dword [esp + 0x40]
dec eax
xor ecx, esp
call 0x3e1a40
dec eax
add esp, 0x58
ret
dec ecx
mov eax, eax
jmp 0x402461
call 0x3e21d4
int3