joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7cdf90
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 0x7cdffb
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0x7ce035
lea edx, [esp + 0x10]
push esi
push edx
push SysStringLen
call fcn.007cde00
add esp, 0xc
lea eax, [esp + 0x10]
inc edi
push 0x104
push eax
push edi
push SysStringLen
call ebx
test eax, eax
je 0x7cdfc5
mov edi, 0x7e88b0
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0x7ce035
mov edx, dword [edi]
push esi
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.007cde00
add edi, 4
add esp, 0xc
cmp edi, 0x7e88c0
jb 0x7ce000
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 0x7ce070
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x250
push esi
push edi
mov edi, dword [esp + 0x25c]
push 0x5c
push edi
call fcn.007d4082
mov esi, eax
add esp, 8
test esi, esi
je 0x7ce107
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 0x7ce102
push ebx
lea ebx, [esi + 2]
push ebp
lea ecx, [esp + 0x3c]
push ebx
push ecx
call fcn.007d3946
add esp, 8
test eax, eax
je 0x7ce0e3
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea edx, [esp + 0x10]
push edx
push edi
call ebp
test eax, eax
je 0x7ce0e8
lea eax, [esp + 0x3c]
push ebx
push eax
call fcn.007d3946
add esp, 8
test eax, eax
jne 0x7ce0c5
mov word [esi], 0x5c
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp word [esi], 0
pop ebp
pop ebx
je 0x7ce102
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 0x7cef10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x7e39fb
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 0x7cf002
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.007d2dff
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x7cf002
lea edx, [esp + 0x14]
push edx
push str.Mounting__s_n
call fcn.007ca6e0
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.007d320b
push 0x10
call fcn.007d31d3
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0x7cefc5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.007bf1c0
jmp 0x7cefc7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.007ceb80
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0x7ceff0
mov ecx, edi
call fcn.007bf2c0
push edi
call fcn.007d31c8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x7cf021
inc ebx
cmp ebx, 0x20
jb 0x7cef3e
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 0x7d0250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7e4808
push 0x7d4288
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 0x7d0329
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 0x7d0329
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.007d31d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0x7d0329
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 0x7d0329
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 0x7d032c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.007d0351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x7d1000
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 0x7d1131
push esi
call fcn.007d4145
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.007c3080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x7d1131
push 0
push ebp
call fcn.007c33a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.007c3260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0x7d108b
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.007c32f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x7d1121
push 0x7e9918
push edi
call fcn.007d23f0
push eax
push ebx
push esi
call fcn.007d0f60
push 0x7e98f8
push edi
call fcn.007d23f0
push eax
push ebx
push esi
call fcn.007d0f60
push 0x7e98d8
push edi
call fcn.007d23f0
push eax
push ebx
push esi
call fcn.007d0f60
push 0x7e98c0
push edi
call fcn.007d23f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.007d0f60
push 0x7e98a0
push edi
call fcn.007d23f0
push eax
push ebx
push esi
call fcn.007d0f60
push 0x7e9888
push edi
call fcn.007d23f0
push eax
push ebx
push esi
call fcn.007d0f60
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 0x7d21b0
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.007d2140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.007d2140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.007d2140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.007d2140
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 0x7d2bfa
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 0x7d2c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x7e487c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x7d2c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x7d2c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x404e60
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x49f144], esi
push edi
jne 0x404e80
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x49f140], esi
mov byte [0x49f13c], al
jne 0x404ee6
mov ecx, dword [0x4a0648]
test ecx, ecx
je 0x404ec7
mov eax, dword [0x4a0644]
sub eax, 4
cmp eax, ecx
jmp 0x404ec0
mov eax, dword [eax]
test eax, eax
je 0x404eb2
call eax
mov eax, dword [0x4a0644]
sub eax, 4
cmp eax, dword [0x4a0648]
mov dword [0x4a0644], eax
jae 0x404eaa
mov eax, 0x40b020
mov esi, 0x40b028
cmp eax, esi
mov edi, eax
jae 0x404ee6
mov eax, dword [edi]
test eax, eax
je 0x404edf
call eax
add edi, 4
cmp edi, esi
jb 0x404ed7
mov eax, 0x40b02c
mov esi, 0x40b030
cmp eax, esi
mov edi, eax
jae 0x404f05
mov eax, dword [edi]
test eax, eax
je 0x404efe
call eax
add edi, 4
cmp edi, esi
jb 0x404ef6
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x404f20
push dword [ebp + 8]
mov dword [0x49f144], 1
call fcn.00404dcb
pop ecx
pop ebp
ret

Function at 0x404f62
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x49ea70]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x49ea88]
je 0x404f8f
inc eax
cmp eax, 0x12
jb 0x404f80
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x49ea88]
jne 0x4050c3
mov eax, dword [0x49f0e8]
cmp eax, 1
je 0x40509e
cmp eax, edx
jne 0x404fbf
cmp dword [0x49ea78], 1
je 0x40509e
cmp ecx, 0xfc
je 0x4050c3
push 0x104
lea eax, [ebp - 0x10c]
push eax
push edx
mov byte [ebp - 8], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x404ff8
lea eax, [ebp - 0x10c]
push 0x403298
push eax
call fcn.00405ad0
pop ecx
pop ecx
lea eax, [ebp - 0x10c]
push eax
lea edi, [ebp - 0x10c]
call fcn.00405d00
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40503a
lea eax, [ebp - 0x10c]
push eax
call fcn.00405d00
mov edi, eax
lea eax, [ebp - 0x10c]
sub eax, 0x3b
push 3
add edi, eax
push 0x403294
push edi
call fcn.00405bd0
add esp, 0x10
push edi
call fcn.00405d00
push dword [esi + 0x49ea8c]
mov ebx, eax
call fcn.00405d00
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00405990
mov ebx, esp
push 0x4037e8
push ebx
call fcn.00405ad0
push edi
push ebx
call fcn.00405ae0
push 0x403290
push ebx
call fcn.00405ae0
push dword [esi + 0x49ea8c]
push ebx
call fcn.00405ae0
push 0x12010
push 0x40325c
push ebx
call fcn.004059cd
add esp, 0x2c
jmp 0x4050c3
push edx
lea eax, [ebp + 8]
push eax
lea esi, [esi + 0x49ea8c]
push dword [esi]
call fcn.00405d00
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]
lea esp, [ebp - 0x118]
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.004040b7
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4059cd
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x49f25c], ebx
push esi
push edi
jne 0x405a4d
push 0x403888
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x405a88
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40387c
push edi
call esi
test eax, eax
mov dword [0x49f25c], eax
je 0x405a88
push 0x40386c
push edi
call esi
push 0x403858
push edi
mov dword [0x49f260], eax
call esi
cmp dword [0x49f104], 2
mov dword [0x49f264], eax
jne 0x405a4d
push 0x40383c
push edi
call esi
test eax, eax
mov dword [0x49f26c], eax
je 0x405a4d
push 0x403824
push edi
call esi
mov dword [0x49f268], eax
mov eax, dword [0x49f268]
test eax, eax
je 0x405a92
call eax
test eax, eax
je 0x405a79
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x49f26c]
test eax, eax
je 0x405a79
test byte [ebp - 8], 1
jne 0x405a92
cmp dword [0x49f110], 4
jb 0x405a8c
or byte [ebp + 0x12], 0x20
jmp 0x405ab1
xor eax, eax
jmp 0x405ac1
or byte [ebp + 0x12], 4
jmp 0x405ab1
mov eax, dword [0x49f260]
test eax, eax
je 0x405ab1
call eax
mov ebx, eax
test ebx, ebx
je 0x405ab1
mov eax, dword [0x49f264]
test eax, eax
je 0x405ab1
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x49f25c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40786c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x49ea70]
xor eax, dword [ebp + 4]
mov ecx, dword [ebp + 8]
cmp ecx, dword [0x4a052c]
push ebx
push esi
mov dword [ebp - 4], eax
push edi
jae 0x4079fc
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x4a0540]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x18], ebx
je 0x4079fc
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x14], edi
jne 0x4078cb
xor eax, eax
jmp 0x407a10
test al, 0x20
je 0x4078dc
push 2
push edi
push edi
push ecx
call fcn.004086b5
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x407998
cmp dword [ebp + 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov dword [ebp + 8], edi
jbe 0x4079d0
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x41c]
cmp ecx, dword [ebp + 0x10]
jae 0x407932
mov edx, dword [ebp - 8]
inc dword [ebp - 8]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x407923
inc dword [ebp - 0x14]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x18]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x407908
mov edi, eax
lea eax, [ebp - 0x41c]
sub edi, eax
push 0
lea eax, [ebp - 0x10]
push eax
push edi
lea eax, [ebp - 0x41c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x407972
mov eax, dword [ebp - 0x10]
add dword [ebp - 0xc], eax
cmp eax, edi
jl 0x40797b
mov eax, dword [ebp - 8]
sub eax, dword [ebp + 0xc]
xor edi, edi
cmp eax, dword [ebp + 0x10]
jb 0x4078fc
jmp 0x40797d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
xor edi, edi
mov eax, dword [ebp - 0xc]
cmp eax, edi
jne 0x4079f7
cmp dword [ebp + 8], edi
je 0x4079d0
push 5
pop eax
cmp dword [ebp + 8], eax
jne 0x4079c5
mov dword [0x49f0fc], eax
jmp 0x407a03
push edi
lea ecx, [ebp - 0x10]
push ecx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4079ba
mov eax, dword [ebp - 0x10]
mov dword [ebp + 8], edi
mov dword [ebp - 0xc], eax
jmp 0x40797d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 8], eax
jmp 0x40797d
push dword [ebp + 8]
call fcn.00408656
pop ecx
jmp 0x407a0d
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x4079e5
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0x1a
je 0x4078c4
mov dword [0x49f0f8], 0x1c
mov dword [0x49f0fc], edi
jmp 0x407a0d
sub eax, dword [ebp - 0x14]
jmp 0x407a10
and dword [0x49f0fc], 0
mov dword [0x49f0f8], 9
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
pop edi
pop esi
pop ebx
call fcn.004040b7
leave
ret
Function at 0x408a22
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.00405990
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x408ab7
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x49f104]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x408ab7
cmp eax, 1
je 0x408acf
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x408ab7
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x408a8c
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x408ab3
xor eax, eax
inc eax
jmp 0x408aeb
cmp esi, ebx
jae 0x408abb
xor eax, eax
jmp 0x408aeb
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x49f104]
jmp 0x408ad1
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40a000
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
and dword [ebp - 8], 0
and dword [ebp - 0x14], 0
and dword [ebp - 0x10], 0
and dword [ebp - 0x18], 0
and dword [ebp - 4], 0
mov eax, dword [ebp + 0x10]
xor edx, edx
div dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
and dword [ebp - 0x1c], 0
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], eax
push str.7897khg32
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp - 4]
add eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 8]
mov cl, byte [ecx]
mov byte [eax], cl
mov eax, dword [ebp - 4]
add eax, dword [ebp - 8]
movzx eax, byte [eax]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
sub eax, 0x18
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 4]
add eax, dword [ebp - 8]
mov cl, byte [ebp - 0x1c]
mov byte [eax], cl
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0xc]
jb 0x40a029
leave
ret

Function at 0x40a07e
Capabilities:
Read file on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
and dword [ebp - 8], 0
call fcn.00403d00
push 1
push 0
push 0
call fcn.004040c5
add esp, 0xc
movzx eax, byte [0x401108]
cmp eax, 1
je 0x40a0b5
movzx eax, byte [0x425449]
test eax, eax
jne 0x40a0c5
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [ebp - 8]
leave
ret 0x10
Function at 0x401870
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
mov eax, dword [ebx + 0x14]
push edi
mov edi, ecx
mov esi, dword [edi + 0xbc]
mov ecx, dword [edi + 0x1c]
add esi, edi
mov dword [esi + 8], eax
mov eax, dword [ebx + 0x18]
mov dword [esi + 0xc], eax
mov eax, 0x100
mov dword [esi + 0x10], 1
test word [edi + 0x94], ax
jne 0x4018ae
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov eax, dword [edi + 0x78]
test al, 4
je 0x4018c2
test byte [ecx + 0x3a], 1
je 0x4018e2
and eax, 0xfffffffb
mov dword [edi + 0x78], eax
or dword [esi + 0x10], 0x200
test byte [ecx + 0x3a], 2
je 0x4018e2
mov eax, dword [ecx + 0x46]
or dword [esi + 0x10], 0x400
mov dword [esi + 0x14], eax
test dword [edi + 0x78], 0x400
je 0x4018f2
or dword [esi + 0x10], 0x4000
test byte [ecx + 0x3a], 4
je 0x4018ff
or dword [esi + 0x10], 0x100
test byte [ebx + 6], 2
mov edx, 1
je 0x401927
or dword [esi + 0x10], 0x80
mov word [esi + 0x20], dx
cmp word [edi + 0x18], 3
jne 0x40192c
mov eax, 0x2000
or word [edi + 0x7c], ax
jmp 0x40192c
or word [esi + 0x20], 0x20
mov eax, dword [ecx + 0x3c]
mov dword [esi + 0x18], eax
cmp word [esi + 0x18], 0xd
mov eax, dword [ecx + 0x40]
mov dword [esi + 0x1c], eax
jne 0x401993
movsx edx, word [ecx]
mov ecx, dword [0x4ad9ac]
cmp edx, dword [ecx + 0x194]
jge 0x401989
mov eax, dword [ecx + 0x198]
movzx eax, word [eax + edx*2]
mov dword [ecx + 0x1a0], eax
mov eax, dword [0x4ad9ac]
mov ecx, dword [eax + 0x1a0]
mov eax, dword [eax + 0x19c]
mov edx, dword [eax + ecx*4]
test edx, edx
je 0x401989
mov ecx, dword [edx + 0x24]
test ecx, ecx
je 0x401989
mov edx, dword [edx + 0xc]
call fcn.00434b20
jmp 0x40198b
xor eax, eax
mov dword [esi + 0x1c], eax
mov edx, 1
cmp dword [edi + 0xcc], 0
jne 0x4019a5
or word [esi + 0x20], 2
or dword [esi + 0x10], 8
mov cx, word [esi + 0x10]
pop edi
mov word [esi + 0x22], cx
pop esi
mov eax, edx
pop ebx
pop ebp
ret
Function at 0x404870
Capabilities:
Check os version
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x485250
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x4a7ff8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
lea eax, [ebp - 0x128]
push eax
mov dword [ebp - 0x128], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x404933
cmp dword [ebp - 0x118], 2
jne 0x404933
mov eax, dword [ebp - 0x124]
cmp eax, 6
ja 0x4048db
jne 0x404933
cmp dword [ebp - 0x120], 1
jbe 0x404933
push str.Imm32.dll
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x404933
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.ImmDisableIME
push esi
call ebx
mov edi, eax
test edi, edi
je 0x40492c
push str.ImmIsIME
push esi
call ebx
mov ebx, eax
test ebx, ebx
je 0x404928
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
test eax, eax
je 0x404928
push eax
call ebx
test eax, eax
je 0x40492c
push 0xffffffffffffffff
call edi
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0046d049
mov esp, ebp
pop ebp
ret