joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10c2f90
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x208
lea eax, [esp]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
push ebp
push esi
push edi
xor edi, edi
push 0x104
push eax
push edi
push SysStringLen
call ebx
mov esi, dword [esp + 0x21c]
mov ebp, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x10c2ffb
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0x10c3035
lea edx, [esp + 0x10]
push esi
push edx
push SysStringLen
call fcn.010c2e00
add esp, 0xc
lea eax, [esp + 0x10]
inc edi
push 0x104
push eax
push edi
push SysStringLen
call ebx
test eax, eax
je 0x10c2fc5
mov edi, 0x10dd8b0
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0x10c3035
mov edx, dword [edi]
push esi
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.010c2e00
add edi, 4
add esp, 0xc
cmp edi, 0x10dd8c0
jb 0x10c3000
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x208
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x208
ret

Function at 0x10c3070
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x250
push esi
push edi
mov edi, dword [esp + 0x25c]
push 0x5c
push edi
call fcn.010c9082
mov esi, eax
add esp, 8
test esi, esi
je 0x10c3107
lea eax, [esp + 8]
mov word [esi], 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x10c3102
push ebx
lea ebx, [esi + 2]
push ebp
lea ecx, [esp + 0x3c]
push ebx
push ecx
call fcn.010c8946
add esp, 8
test eax, eax
je 0x10c30e3
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea edx, [esp + 0x10]
push edx
push edi
call ebp
test eax, eax
je 0x10c30e8
lea eax, [esp + 0x3c]
push ebx
push eax
call fcn.010c8946
add esp, 8
test eax, eax
jne 0x10c30c5
mov word [esi], 0x5c
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp word [esi], 0
pop ebp
pop ebx
je 0x10c3102
pop edi
mov al, 1
pop esi
add esp, 0x250
ret
mov word [esi], 0x5c
pop edi
xor al, al
pop esi
add esp, 0x250
ret
Function at 0x10c3f10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x10d89fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, dword [esp + 0x2c]
xor ebp, ebp
mov dword [esp + 0x10], eax
xor ebx, ebx
mov eax, 1
mov ecx, ebx
shl eax, cl
mov ecx, dword [esp + 0x10]
test ecx, eax
je 0x10c4002
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.010c7dff
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x10c4002
lea edx, [esp + 0x14]
push edx
push str.Mounting__s_n
call fcn.010bf6e0
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.010c820b
push 0x10
call fcn.010c81d3
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0x10c3fc5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.010b41c0
jmp 0x10c3fc7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.010c3b80
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0x10c3ff0
mov ecx, edi
call fcn.010b42c0
push edi
call fcn.010c81c8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10c4021
inc ebx
cmp ebx, 0x20
jb 0x10c3f3e
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x10c5250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10d9808
push 0x10c9288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 5
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x10c5329
lea edx, [ebp - 0x28]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x10c5329
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
mov edx, dword [ebp - 0x2c]
push edx
call fcn.010c81d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0x10c5329
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x28]
push edx
call edi
test eax, eax
je 0x10c5329
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x24], al
jmp 0x10c532c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.010c5351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10c5d20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x10c5d58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0x10c5d60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x10c5d94
mov eax, dword [esp + 0x14]
test eax, eax
je 0x10c5d94
push eax
push esi
call fcn.010c820b
add esp, 8
pop esi
ret 0x10

Function at 0x10c5da0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10c5e22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0x10c5e15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0x10de320
push ecx
mov dword [esp + 0x1c], 4
call fcn.010c7dff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0x10c5dda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0x10c5e30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10c5ec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0x10c5eb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0x10de320
push ecx
mov dword [esp + 0x1c], 4
call fcn.010c7dff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0x10c5eab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0x10c5e6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0x10c6000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x10c6131
push esi
call fcn.010c9145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.010b8080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x10c6131
push 0
push ebp
call fcn.010b83a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.010b8260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0x10c608b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.010b82f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x10c6121
push 0x10de918
push edi
call fcn.010c73f0
push eax
push ebx
push esi
call fcn.010c5f60
push 0x10de8f8
push edi
call fcn.010c73f0
push eax
push ebx
push esi
call fcn.010c5f60
push 0x10de8d8
push edi
call fcn.010c73f0
push eax
push ebx
push esi
call fcn.010c5f60
push 0x10de8c0
push edi
call fcn.010c73f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.010c5f60
push 0x10de8a0
push edi
call fcn.010c73f0
push eax
push ebx
push esi
call fcn.010c5f60
push 0x10de888
push edi
call fcn.010c73f0
push eax
push ebx
push esi
call fcn.010c5f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x10c71b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.010c7140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.010c7140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.010c7140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.010c7140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x10c7bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10c7c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x10d987c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10c7c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x10c7c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x57ee90
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x10e000]
push edi
jmp 0x57eeaa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x57eeb1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x57eea0
mov eax, 1
add ebx, ebx
jne 0x57eec3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x57eed4
jne 0x57eef3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x57eef3
dec eax
add ebx, ebx
jne 0x57eee0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x57eeb8
add ebx, ebx
jne 0x57eeef
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x57ef45
xor ecx, ecx
sub eax, 3
jb 0x57ef0b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x57ef7a
sar eax, 1
mov ebp, eax
jmp 0x57ef16
add ebx, ebx
jne 0x57ef16
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x57eee4
inc ecx
add ebx, ebx
jne 0x57ef24
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x57eee4
add ebx, ebx
jne 0x57ef31
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x57ef26
jne 0x57ef42
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x57ef26
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x57ef64
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x57ef56
jmp 0x57eea6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x57ef64
add edi, ecx
jmp 0x57eea6
pop esi
mov edi, esi
mov ecx, 0x4a4b
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x57ef82
cmp byte [edi], 0x28
jne 0x57ef82
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x57ef87
lea edi, [esi + 0x17b000]
mov eax, dword [edi]
or eax, eax
je 0x57efff
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x196378]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x196488]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x57efb4
mov ecx, edi
jns 0x57efe3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x196490]
or eax, eax
je 0x57eff9
mov dword [ebx], eax
add ebx, 4
jmp 0x57efd1
call dword [esi + 0x19648c]
mov ebp, dword [esi + 0x196494]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x57f033
sub esp, 0xffffff80
jmp 0x4d7fb2
Function at 0x401003
Capabilities:
Contain obfuscated stackstrings
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
push ebx
push ebx
push ebx
push fcn.00401000
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov cl, 0x77
mov dword [ebp - 0x30], 0x15122577
mov dword [ebp - 0x2c], 0x1f03051e
mov eax, ebx
mov dword [ebp - 0x28], 0x1b1b1359
mov byte [ebp - 0x24], bl
xor byte [ebp + eax - 0x2f], cl
inc eax
cmp eax, 0xb
jae 0x401052
mov cl, byte [ebp - 0x30]
jmp 0x401043
lea eax, [ebp - 0x2f]
mov byte [ebp - 0x24], bl
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x4010e9
mov cl, 0x4e
mov dword [ebp - 0x40], 0x232f094e
mov dword [ebp - 0x3c], 0x3b2f022b
mov eax, ebx
mov dword [ebp - 0x38], 0x2b262d20
mov word [ebp - 0x34], 0x3c
xor byte [ebp + eax - 0x3f], cl
inc eax
cmp eax, 0xc
jae 0x401097
mov cl, byte [ebp - 0x40]
jmp 0x401088
lea eax, [ebp - 0x3f]
mov byte [ebp - 0x33], bl
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4010ab
call eax
push edi
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.USER32.dll_GetMessageW]
jmp 0x4010d2
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push ebx
push ebx
push ebx
lea eax, [ebp - 0x20]
push eax
call edi
test eax, eax
jne 0x4010be
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004010f9
leave
ret 0x10

Function at 0x401927
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401966
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401966
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401966
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401966
cmp dword [ecx + 0x74], 0xe
jbe 0x401966
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x457760
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x24000]
push edi
jmp 0x45777a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x457781
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x457770
mov eax, 1
add ebx, ebx
jne 0x457793
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4577a4
jne 0x4577c3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4577c3
dec eax
add ebx, ebx
jne 0x4577b0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x457788
add ebx, ebx
jne 0x4577bf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x457815
xor ecx, ecx
sub eax, 3
jb 0x4577db
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x45784a
sar eax, 1
mov ebp, eax
jmp 0x4577e6
add ebx, ebx
jne 0x4577e6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4577b4
inc ecx
add ebx, ebx
jne 0x4577f4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4577b4
add ebx, ebx
jne 0x457801
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4577f6
jne 0x457812
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4577f6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x457834
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x457826
jmp 0x457776
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x457834
add edi, ecx
jmp 0x457776
pop esi
mov edi, esi
mov ecx, 0xc21
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x457852
cmp byte [edi], 9
jne 0x457852
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x457857
lea edi, [esi + 0x54000]
mov eax, dword [edi]
or eax, eax
je 0x4578c6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x5b2c0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x5b324]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x457884
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x5b328]
or eax, eax
je 0x4578c0
mov dword [ebx], eax
add ebx, 4
jmp 0x4578a1
call dword [esi + 0x5b338]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x4578f7
cmp al, 0xef
ja 0x4578ea
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x4578cc
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x4578d9
mov ebp, dword [esi + 0x5b32c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x45792b
sub esp, 0xffffff80
jmp 0x40a2a5
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x1c
xor eax, eax
cmp word [0x400000], 0x5a4d
mov dword [0x43a078], 1
mov dword [0x43a074], 1
mov dword [0x43a070], 1
mov dword [0x43a068], 1
jne 0x401060
mov edx, dword [0x40003c]
cmp dword [edx + 0x400000], 0x4550
lea ecx, [edx + 0x400000]
je 0x4010c0
mov dword [0x43900c], eax
mov eax, dword [0x43a084]
test eax, eax
jne 0x4010b0
mov dword [esp], 1
call sym.___set_app_type
call sym.___p__fmode
mov edx, dword [0x43a098]
mov dword [eax], edx
call sym.___p__commode
mov edx, dword [0x43a080]
mov dword [eax], edx
call dbg._setargv
cmp dword [0x427064], 1
je 0x4010f0
xor eax, eax
add esp, 0x1c
ret
mov dword [esp], 2
call sym.___set_app_type
jmp 0x40107a
movzx edx, word [ecx + 0x18]
cmp dx, 0x10b
je 0x401108
cmp dx, 0x20b
jne 0x401060
cmp dword [ecx + 0x84], 0xe
jbe 0x401060
mov edx, dword [ecx + 0xf8]
xor eax, eax
test edx, edx
setne al
jmp 0x401060
mov dword [esp], dbg._matherr
call dbg.__mingw_setusermatherr
xor eax, eax
add esp, 0x1c
ret
cmp dword [ecx + 0x74], 0xe
jbe 0x401060
mov ecx, dword [ecx + 0xe8]
xor eax, eax
test ecx, ecx
setne al
jmp 0x401060

Function at 0x4015fa
Capabilities:
Delete directory
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1028
call fcn.0040cd90
sub esp, eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dbg.opendir
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x40170e
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call dbg.readdir
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4016d8
mov eax, dword [ebp - 0xc]
add eax, 8
mov dword [esp + 4], eax
mov dword [esp], 0x428055
call sym._strcmp
test eax, eax
je 0x4016c5
mov eax, dword [ebp - 0xc]
add eax, 8
mov dword [esp + 4], eax
mov dword [esp], 0x428057
call sym._strcmp
test eax, eax
je 0x4016c5
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
lea eax, [ebp - 0x1010]
mov dword [esp], eax
call sym._strcpy
lea eax, [ebp - 0x1010]
mov dword [esp], eax
call sym._strlen
mov edx, eax
lea eax, [ebp - 0x1010]
add eax, edx
mov word [eax], 0x5c
mov eax, dword [ebp - 0xc]
add eax, 8
mov dword [esp + 4], eax
lea eax, [ebp - 0x1010]
mov dword [esp], eax
call sym._strcat
lea eax, [ebp - 0x1010]
mov dword [esp], eax
call sym.RecursiveRemoveDirectory_char_const_
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call dbg.readdir
mov dword [ebp - 0xc], eax
jmp 0x40162f
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._rmdir
test eax, eax
setne al
test al, al
je 0x401742
mov dword [esp + 8], 4
mov dword [esp + 4], 0
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_MoveFileExA]
call eax
sub esp, 0xc
jmp 0x401742
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._unlink
test eax, eax
setne al
test al, al
je 0x401742
mov dword [esp + 8], 4
mov dword [esp + 4], 0
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_MoveFileExA]
call eax
sub esp, 0xc
nop
leave
ret
Function at 0x401745
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0xc], 0
mov word [ebp - 0xe], 0
mov word [ebp - 0x10], 0
mov eax, dword [sym.imp.KERNEL32.dll_GetVersion]
call eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, al
mov word [ebp - 0xe], ax
mov eax, dword [ebp - 0xc]
shr ax, 8
movzx eax, al
mov word [ebp - 0x10], ax
cmp word [ebp - 0xe], 5
setbe al
movzx eax, al
leave
ret

Function at 0x40181e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [esp], 0x20019
call sym.Wow64Key_unsigned_long_
lea edx, [ebp - 0xc]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], str.SOFTWAREMicrosoftWindowsCurrentVersion
mov dword [esp], 0x80000002
mov eax, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
call eax
sub esp, 0x14
test eax, eax
sete al
test al, al
je 0x4018e9
mov dword [ebp - 0x14], 0xf6a
mov dword [ebp - 0x14], 0x1000
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 0x14]
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], str.XXXX
lea edx, [ebp - 0x10]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0
mov dword [esp + 4], str.ProgramFilesDir
mov dword [esp], eax
mov eax, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
call eax
sub esp, 0x18
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call eax
sub esp, 4
mov dword [esp], str.XXXX
call sym._strlen
add eax, str.XXXX
mov dword [eax], 0x666f535c
mov dword [eax + 4], 0x45646966
mov dword [eax + 8], 0x4f5353
mov eax, str.XXXX
jmp 0x4018ee
mov eax, 0
leave
ret