joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42ab4f
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00421540
mov eax, dword [0x43355c]
push ebx
mov ebx, dword [ebp + 8]
xor eax, ebp
push esi
xor esi, esi
cmp ebx, dword [0x4362a8]
mov dword [ebp - 4], eax
jae 0x42ac9a
mov eax, ebx
sar eax, 5
mov eax, dword [eax*4 + 0x4362c0]
mov ecx, ebx
and ecx, 0x1f
test byte [eax + ecx*8 + 4], 1
je 0x42ac9a
push 1
push esi
push ebx
call fcn.00421bd5
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp - 0x1008], eax
je 0x42aca4
push 2
push esi
push ebx
call fcn.00421bd5
add esp, 0xc
cmp eax, 0xffffffff
je 0x42aca4
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x42ac44
push 0x1000
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.004277c0
push 0x8000
push ebx
call fcn.0042babc
add esp, 0x14
mov dword [ebp - 0x100c], eax
mov eax, 0x1000
cmp edi, eax
jge 0x42ac00
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push ebx
call fcn.00424141
add esp, 0xc
cmp eax, 0xffffffff
je 0x42ac1e
sub edi, eax
test edi, edi
jg 0x42abf5
jmp 0x42ac34
cmp dword [0x434dc0], 5
jne 0x42ac31
mov dword [0x434dbc], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push ebx
call fcn.0042babc
pop ecx
pop ecx
jmp 0x42ac84
jge 0x42ac84
push 0
push dword [ebp + 0xc]
push ebx
call fcn.00421bd5
push ebx
call fcn.00428a71
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, 0xffffffff
jne 0x42ac84
mov dword [0x434dbc], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x434dc0], eax
push 0
push dword [ebp - 0x1008]
push ebx
call fcn.00421bd5
add esp, 0xc
mov eax, esi
pop edi
jmp 0x42aca7
mov dword [0x434dbc], 9
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00427949
leave
ret
Function at 0x43b673
Capabilities:
Encode data using xor

Disassembly:
sub esp, 4
mov dword [esp], 0x43b3c1
pop edx
mov esi, eax
dec esi
call fcn.0043b6af
sub eax, 1
add eax, esi
xor dword [ecx], edx
sub eax, esi
add esi, 0x6198a537
inc ecx
or esi, esi
cmp ecx, ebx
jne fcn.0043b673
sub esi, 1
mov eax, eax
ret
Function at 0x4f2ee0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.004f3c20
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.004f3c20
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x4f2f40
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x4f7070]
test esi, esi
jle 0x4f3060
mov eax, dword [0x4f7074]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x4f2f74
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x4f2ff7
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x4f2f60
mov dword [esp], ebx
call fcn.004f3930
mov edi, eax
test eax, eax
je 0x4f3087
mov eax, dword [0x4f7074]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.004f3a70
mov edx, dword [0x4f7074]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x4f3067
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x4f2ff0
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x4f3000
add dword [0x4f7070], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x4f7074]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x4f2ff0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.004f2ee0
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x4f2f7e
mov eax, dword [0x4f7074]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.004f2ee0
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.004f2ee0
lea esi, [esi]
nop
Function at 0x4f35a0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x4f708c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x4f7084]
sub esp, 4
test ebx, ebx
je 0x4f35f5
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x4f35ee
test esi, esi
je 0x4f35ee
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4f35d0
mov dword [esp], 0x4f708c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x4f3930
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x4f3955
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x4f3960
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x4f3955
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test si, si
je 0x4f39a8
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x4f399e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x4f39aa
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x4f3990
xor eax, eax
pop ebx
pop esi
ret
Function at 0x403020
Capabilities:
Get token privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x40e040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x28]
mov dword [ebp - 0x28], 0xffffffff
push eax
xor esi, esi
xor ebx, ebx
push 0x28
mov dword [ebp - 0x24], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test eax, eax
je 0x40317a
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x24]
push ebx
push 3
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x403088
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x40317a
push dword [ebp - 0x24]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ebx, eax
add esp, 4
mov dword [ebp - 0x30], ebx
test ebx, ebx
je 0x40317a
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x24]
push ebx
push 3
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x40317a
mov dword [ebp - 0x34], esi
cmp dword [ebx], esi
jbe 0x40317a
add ebx, 4
mov eax, dword [ebx + 8]
mov edi, 2
movq xmm0, qword [ebx]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x2c]
push eax
push 0
lea eax, [ebp - 0x10]
movq qword [ebp - 0x10], xmm0
push eax
push 0
mov dword [ebp - 0x2c], 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeNameW]
test eax, eax
jne 0x403108
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x403171
mov eax, dword [ebp - 0x2c]
mov ecx, 0xffffffff
inc eax
mov dword [ebp - 0x2c], eax
mul edi
cmovb eax, ecx
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov edi, eax
add esp, 4
xor esi, esi
test edi, edi
je 0x403171
lea eax, [ebp - 0x2c]
push eax
push edi
lea eax, [ebp - 0x10]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeNameW]
test eax, eax
je 0x403171
push str.SeImpersonatePrivilege
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
test eax, eax
je 0x4031a5
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov edi, dword [ebp - 0x34]
add esp, 4
mov eax, dword [ebp - 0x30]
inc edi
add ebx, 0xc
mov dword [ebp - 0x34], edi
cmp edi, dword [eax]
jb 0x4030ca
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov ebx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x403188
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x403192
push ebx
call edi
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407c49
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
xor esi, esi
mov ecx, dword [ebp - 0xc]
push esi
push esi
push 0x10
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
push eax
push esi
push dword [ebp - 0x28]
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x403171
push edi
mov edi, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov esi, 1
call edi
add esp, 4
jmp 0x403177
Function at 0x406890
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x40e040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, 0xffff
movzx eax, bx
mov dword [ebp - 0x34], eax
mov esi, ecx
cmp di, bx
jne 0x4068cd
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00407c49
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x406907
mov edx, dword [esi + 0x30]
mov eax, dword [edx]
lea eax, [ecx + eax*2]
cmp ecx, eax
jae 0x406907
dec dword [edx]
mov ax, bx
mov edx, dword [esi + 0x20]
pop edi
mov esi, dword [edx]
lea ecx, [esi + 2]
mov dword [edx], ecx
mov word [esi], bx
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00407c49
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x4069d7
mov ecx, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [ecx], eax
jne 0x406934
mov eax, dword [esi + 0xc]
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
sar edx, 1
mov dword [eax], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x406967
push dword [esi + 0x4c]
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputwc]
add esp, 8
movzx ecx, bx
cmp ax, di
cmove ecx, edi
pop edi
pop esi
mov ax, cx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00407c49
mov esp, ebp
pop ebp
ret 4
movzx eax, bx
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x26]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_wchar_t__char__struct__Mbstatet_::out_struct__Mbstatet___wchar_t_const___wchar_t_const___wchar_t_const____char___char___char___const]
sub eax, 0
je 0x4069a6
sub eax, 1
je 0x4069a6
sub eax, 2
jne 0x4069d7
push dword [esi + 0x4c]
push dword [ebp - 0x28]
jmp 0x40693f
mov ebx, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub ebx, eax
je 0x4069c4
push dword [esi + 0x4c]
push ebx
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp ebx, eax
jne 0x4069d7
mov eax, dword [ebp - 0x34]
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x30], ecx
movzx eax, ax
mov byte [esi + 0x3e], 1
cmovne edi, eax
mov ecx, dword [ebp - 4]
mov ax, di
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407c49
mov esp, ebp
pop ebp
ret 4
Function at 0x406dc0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x40e040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x406e84
cmp byte [esi + 0x3e], 0
je 0x406e84
mov eax, dword [esi]
push edi
push 0xffff
call dword [eax + 0xc]
mov ecx, 0xffff
cmp cx, ax
je 0x406e72
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_wchar_t__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x406e39
sub eax, 1
je 0x406e3d
sub eax, 2
jne 0x406e72
mov byte [esi + 0x3e], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00407c49
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3e], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x406e5b
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x406e72
cmp byte [esi + 0x3e], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00407c49
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00407c49
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.00407c49
mov esp, ebp
pop ebp
ret

Function at 0x40873b
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40877a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40877a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40877a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40877a
cmp dword [ecx + 0x74], 0xe
jbe 0x40877a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x10001490
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov byte [ebp - 8], 0x3d
mov byte [ebp - 0xe], 0x5f
mov byte [ebp - 0xa], 0x90
mov byte [ebp - 0xc], 0x9e
mov byte [ebp - 1], 0x5b
mov byte [ebp - 4], 6
mov byte [ebp - 9], 0x38
mov byte [ebp - 2], 0x1f
mov byte [ebp - 0xf], 0x14
mov byte [ebp - 5], 0xd8
mov byte [ebp - 0xb], 0x95
mov byte [ebp - 7], 0x85
mov byte [ebp - 3], 0x55
mov byte [ebp - 6], 0xfe
mov byte [ebp - 0xd], 0x45
mov eax, 1
test eax, eax
je 0x100015a6
mov dword [ebp - 0x14], 0
jmp 0x100014f1
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 2
jge 0x100015a6
movsx edx, byte [0x10016db4]
movsx eax, byte [0x10016db0]
and edx, eax
mov byte [ebp - 5], dl
movzx ecx, byte [0x10016db4]
push ecx
movzx edx, byte [ebp - 8]
push edx
movzx eax, byte [ebp - 8]
push eax
movzx ecx, byte [0x10016db3]
push ecx
movzx edx, byte [0x10016db1]
push edx
movzx eax, byte [0x10016db2]
push eax
movzx ecx, byte [ebp - 6]
push ecx
call fcn.100015b0
add esp, 0x1c
movsx edx, al
imul edx, edx, 0x2e577
mov byte [0x10016db1], dl
movsx eax, byte [0x10016db4]
xor eax, 0xb9f207
mov byte [ebp - 0xa], al
movsx ecx, byte [ebp - 4]
movsx edx, byte [ebp - 0xc]
imul ecx, edx
mov byte [ebp - 2], cl
movzx eax, byte [ebp - 0xf]
push eax
movzx ecx, byte [ebp - 5]
push ecx
movzx edx, byte [0x10016db1]
push edx
movzx eax, byte [ebp - 5]
push eax
movzx ecx, byte [ebp - 8]
push ecx
call fcn.10001680
add esp, 0x14
movsx edx, al
or edx, 0x214650
mov byte [ebp - 5], dl
jmp 0x100014e8
mov al, byte [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x100020e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov byte [ebp - 6], 0x7b
mov byte [ebp - 3], 0xee
mov byte [ebp - 4], 0x2a
mov byte [ebp - 2], 0xac
mov byte [ebp - 5], 0x3b
mov byte [ebp - 1], 0xe4
mov dword [ebp - 0xc], 0
jmp 0x10002112
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 1
jge 0x100022eb
mov dword [ebp - 0x10], 0
jmp 0x1000212e
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 0
jge 0x100022e6
xor edx, edx
je 0x100022ce
movsx eax, byte [0x10016db3]
cmp eax, 0x7ed31f
jg 0x100022cc
movsx esi, byte [ebp - 3]
movzx ecx, byte [ebp - 2]
push ecx
movzx edx, byte [ebp - 2]
push edx
movzx eax, byte [0x10016db0]
push eax
movzx ecx, byte [ebp - 2]
push ecx
movzx edx, byte [ebp - 3]
push edx
movzx eax, byte [0x10016db4]
push eax
movzx ecx, byte [0x10016db0]
push ecx
movzx edx, byte [0x10016db1]
push edx
movzx eax, byte [0x10016db4]
push eax
movzx ecx, byte [ebp - 3]
push ecx
call fcn.10002300
add esp, 0x28
movsx edx, al
cmp esi, edx
jle 0x1000226a
movsx eax, byte [ebp - 4]
cmp eax, 0xba4f18
jg 0x10002268
movzx ecx, byte [0x10016db4]
push ecx
movzx edx, byte [0x10016db2]
push edx
movzx eax, byte [ebp - 4]
push eax
movzx ecx, byte [ebp - 2]
push ecx
movzx edx, byte [0x10016db2]
push edx
movzx eax, byte [ebp - 6]
push eax
movzx ecx, byte [0x10016db4]
push ecx
movzx edx, byte [ebp - 1]
push edx
movzx eax, byte [ebp - 5]
push eax
movzx ecx, byte [0x10016db1]
push ecx
call fcn.10002300
add esp, 0x28
movsx edx, al
movsx eax, byte [ebp - 5]
imul edx, eax
mov byte [ebp - 4], dl
movsx ebx, byte [0x10016db1]
movzx ecx, byte [ebp - 1]
push ecx
movzx edx, byte [ebp - 1]
push edx
movzx eax, byte [0x10016db4]
push eax
movzx ecx, byte [0x10016db2]
push ecx
movzx edx, byte [0x10016db1]
push edx
movzx eax, byte [0x10016db3]
push eax
movzx ecx, byte [0x10016db4]
push ecx
movzx edx, byte [ebp - 6]
push edx
movzx eax, byte [ebp - 4]
push eax
movzx ecx, byte [ebp - 3]
push ecx
call fcn.10002300
add esp, 0x28
movsx edx, al
imul ebx, edx
mov byte [ebp - 1], bl
jmp 0x100022cc
movsx eax, byte [0x10016db2]
movsx ecx, byte [ebp - 2]
sub eax, ecx
mov byte [0x10016db3], al
movzx edx, byte [ebp - 3]
push edx
movzx eax, byte [0x10016db1]
push eax
movzx ecx, byte [0x10016db4]
push ecx
movzx edx, byte [0x10016db0]
push edx
movzx eax, byte [ebp - 1]
push eax
movzx ecx, byte [ebp - 3]
push ecx
movzx edx, byte [ebp - 5]
push edx
movzx eax, byte [ebp - 2]
push eax
movzx ecx, byte [ebp - 4]
push ecx
movzx edx, byte [ebp - 4]
push edx
call fcn.10002300
add esp, 0x28
movsx eax, al
and eax, 0xf83065
mov byte [0x10016db0], al
jmp 0x100022e1
movsx ecx, byte [0x10016db2]
xor ecx, 0x9fac98
mov byte [0x10016db3], cl
jmp 0x10002125
jmp 0x10002109
mov al, byte [ebp - 3]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000bcd0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 1
je 0x1000bce4
jmp 0x1000bd10
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0x100023b0
push 0
push 0
call fcn.1000be64
add esp, 0x18
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1000bd10
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov esp, ebp
pop ebp
ret 0xc

Function at 0x1000fe28
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10016be0]
jne 0x1000fe32
repz ret
jmp fcn.10011a16

Function at 0x10011fb4
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10016be0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.1000d1e4
and dword [ebp - 0x14], 0
cmp dword [0x10017a24], 0
mov dword [ebp - 0x18], eax
jne 0x10012067
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x1001210f
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x1001210f
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x10017a24], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x10017a28], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x10017a2c], eax
call edi
push eax
call esi
mov dword [0x10017a34], eax
test eax, eax
je 0x10012067
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x10017a30], eax
mov eax, dword [0x10017a30]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x100120c0
cmp dword [0x10017a34], ecx
je 0x100120c0
push eax
call esi
push dword [0x10017a34]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x100120c0
test ebx, ebx
je 0x100120c0
call edi
test eax, eax
je 0x100120b7
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x100120b7
test byte [ebp - 8], 1
jne 0x100120c0
or dword [ebp + 0x10], 0x200000
jmp 0x100120f3
mov eax, dword [0x10017a28]
cmp eax, dword [ebp - 0x18]
je 0x100120f3
push eax
call esi
test eax, eax
je 0x100120f3
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x100120f3
mov eax, dword [0x10017a2c]
cmp eax, dword [ebp - 0x18]
je 0x100120f3
push eax
call esi
test eax, eax
je 0x100120f3
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x10017a24]
call esi
test eax, eax
je 0x1001210f
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x10012111
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000fe28
leave
ret
Function at 0x4012a8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x40400c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x401340
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x401320
xor eax, eax
push ebp
push 0x401319
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x40135c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x401320
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x40400c]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x40400c], ax
mov esp, ebp
pop ebp
ret

Function at 0x4019f8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x405034], 0
je 0x401a59
cmp word [0x405208], 0xd7b2
jne 0x401a21
cmp dword [0x405210], 0
jbe 0x401a21
mov eax, 0x405204
call dword [0x405220]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x404040
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x401a80
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x404018], 0
jne 0x401a75
push 0
push 0x404060
push 0x404040
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40238c
Capabilities:
Enumerate process modules

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffddc
mov edi, ecx
mov ebx, edx
mov esi, eax
xor ebp, ebp
push 0x104
push edi
call sub.kernel32.dll_RtlZeroMemory
push esi
push 8
call sub.kernel32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov dword [esp], 0x224
push esp
push esi
call sub.kernel32.dll_Module32First
cmp eax, 1
sbb eax, eax
inc eax
cmp al, 1
jne 0x402409
push ebx
call sub.kernel32.dll_lstrlenA
test eax, eax
je 0x4023e4
lea eax, [esp + 0x20]
push eax
push ebx
call sub.kernel32.dll_lstrcmpiA
test eax, eax
jne 0x4023f8
lea eax, [esp + 0x120]
push eax
push edi
call sub.kernel32.dll_lstrcpyA
mov ebp, dword [esp + 0x14]
jmp 0x402409
push esp
push esi
call sub.kernel32.dll_Module32Next
cmp eax, 1
sbb eax, eax
inc eax
cmp al, 1
je 0x4023cb
push esi
call sub.kernel32.dll_CloseHandle
mov eax, ebp
add esp, 0x224
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x402444
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebx
push esi
mov esi, eax
xor ebx, ebx
push 0x80
push esi
call sub.kernel32.dll_SetFileAttributesA
push esi
call sub.kernel32.dll_DeleteFileA
mov eax, esi
call fcn.0040241c
test al, al
jne 0x402468
mov bl, 1
mov eax, ebx
pop esi
pop ebx
ret