joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403ed0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x58
mov ebx, dword [ebp + 8]
shl ebx, 6
cmp dword [0x44ee38], 0
lea esi, [ebx + 0x44f1d0]
je 0x403f7e
mov eax, dword [0x44ee88]
mov edi, dword [0x44ee8c]
mov dword [esp + 4], eax
mov eax, dword [esi]
push 0x1a4
push 0x8301
push eax
call sub.msvcrt.dll__open
add esp, 0xc
test eax, eax
js 0x4040aa
mov dword [ebx + 0x44f1d4], eax
mov esi, dword [ebx + 0x44f1d8]
push 0
push esi
push edi
push dword [esp + 0x10]
call fcn.0041f680
add esp, 0x10
mov ecx, eax
mov dword [ebx + 0x44f1e0], eax
mov dword [ebx + 0x44f1e4], edx
mov edi, edx
mov eax, 0x1000
xor edx, edx
mov dword [0x44ee7c], 0
mov dword [0x44ee84], esi
div esi
xor esi, esi
mov dword [0x44eeb0], eax
add dword [0x44ee90], ecx
adc dword [0x44ee94], edi
jmp 0x4040c5
push 0
push pe_nt_image_headers32
push 3
push 0
push 3
push 0x80000000
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x403fd3
lea edi, [esp + 0x2c]
lea ecx, [esp + 0x30]
push 0
push edi
push 0x20
push ecx
push 0x20
push ecx
push 0x74004
push eax
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x404003
mov eax, dword [esp + 0x38]
mov edi, dword [esp + 0x3c]
mov dword [esp + 4], eax
jmp 0x404071
mov dword [esp + 4], 0
xor edi, edi
xor eax, eax
test al, al
jne 0x404085
cmp dword [0x44f3e0], 0
mov esi, 0xffffffff
js 0x4040c5
push str._tError:_Failed_to_get_device_size_
jmp 0x4040bd
lea eax, [esp + 0x10]
push 0
push edi
push 0x18
push eax
push 0x18
push eax
push 0x70000
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x404046
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
imul eax, dword [esp + 0x24]
imul eax, dword [esp + 0x1c]
imul ecx, eax
mul dword [esp + 0x10]
mov edi, edx
mov dword [esp + 4], eax
add edi, ecx
jmp 0x404071
lea eax, [esp + 8]
push eax
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x404067
mov eax, dword [esp + 8]
mov edi, dword [esp + 0xc]
mov dword [esp + 4], eax
jmp 0x404071
mov dword [esp + 4], 0
xor edi, edi
mov eax, dword [esp]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
test al, al
je 0x403fe7
cmp dword [0x44ee38], 0
mov eax, dword [esi]
jne 0x403f06
push 0x8002
push eax
call sub.msvcrt.dll__open
add esp, 8
test eax, eax
jns 0x403f21
cmp dword [0x44f3e0], 0
mov esi, 0xffffffff
js 0x4040c5
push str._tError:_Failed_to_open_the_device_
call sub.msvcrt.dll_puts
add esp, 4
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4099c0
Capabilities:
Read file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
push eax
mov ebx, dword [esp + 0x1c]
push ebx
call sub.msvcrt.dll_malloc
add esp, 4
mov esi, eax
test eax, eax
je 0x409a28
mov edi, dword [esp + 0x20]
push 0
push dword [esp + 0x2c]
push dword [esp + 0x2c]
push edi
call fcn.00421060
add esp, 0x10
test edx, edx
js 0x409a1f
test ebx, ebx
mov dword [esp], esi
je 0x409a44
mov esi, dword [esp]
xor ebp, ebp
nop
mov eax, ebx
sub eax, ebp
push eax
push esi
push edi
call sub.msvcrt.dll__read
add esp, 0xc
test eax, eax
js 0x409a34
je 0x409a63
add ebp, eax
add esi, eax
cmp ebp, ebx
jb 0x409a00
jmp 0x409a44
push esi
call fcn.0042c550
add esp, 4
call dword [sym.imp.msvcrt.dll__errno]
xor edi, edi
sub edi, dword [eax]
jmp 0x409a73
call dword [sym.imp.msvcrt.dll__errno]
mov edi, dword [eax]
test edi, edi
jle 0x409a44
neg edi
jmp 0x409a68
mov eax, dword [esp + 0x18]
mov esi, dword [esp]
mov ecx, dword [eax + 0x14]
push esi
push ebx
push eax
call dword [ecx]
add esp, 0xc
mov edi, eax
push esi
call fcn.0042c550
add esp, 4
jmp 0x409a73
mov edi, 0xffffffea
push dword [esp]
call fcn.0042c550
add esp, 4
mov eax, edi
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x40a180
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push edi
push esi
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
not eax
test ecx, ecx
je 0x40a1b6
mov edx, dword [esp + 0x10]
nop word cs:[eax + eax]
nop
movzx esi, byte [edx]
movzx edi, al
shr eax, 8
inc edx
xor edi, esi
xor eax, dword [edi*4 + 0x4456a8]
dec ecx
jne 0x40a1a0
not eax
pop esi
pop edi
ret
Function at 0x41e990
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
lea ebx, [esp + 0x24]
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
jmp fcn.0041e9f0

Function at 0x41e9f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
sub esp, 0x3c
mov eax, dword [0x44e3c0]
test eax, eax
jle 0x41eaf3
mov edx, dword [0x44e3c4]
xor ebx, ebx
mov ecx, dword [edx + 4]
cmp ecx, esi
ja 0x41ea21
mov edi, dword [edx + 8]
add ecx, dword [edi + 8]
cmp esi, ecx
jb 0x41ea96
add ebx, 1
add edx, 0xc
cmp ebx, eax
jne 0x41ea10
mov dword [esp], esi
call fcn.0041f2d0
test eax, eax
mov edi, eax
je 0x41eb1a
lea esi, [ebx + ebx*2]
mov ebx, dword [0x44e3c4]
shl esi, 2
add ebx, esi
mov dword [ebx + 8], eax
mov dword [ebx], 0
call fcn.0041f3c0
add eax, dword [edi + 0xc]
mov dword [ebx + 4], eax
lea eax, [ebp - 0x34]
mov dword [esp + 4], eax
mov eax, dword [0x44e3c4]
mov dword [esp + 8], 0x1c
mov eax, dword [eax + esi + 4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x41eafa
mov eax, dword [ebp - 0x20]
cmp eax, 0x40
jne 0x41eaa0
add dword [0x44e3c0], 1
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp eax, 4
je 0x41ea8f
cmp eax, 0x80
je 0x41ea8f
cmp eax, 8
je 0x41ea8f
mov eax, dword [ebp - 0x28]
add esi, dword [0x44e3c4]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 0xc], esi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x41ea8f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.0041e990
xor ebx, ebx
jmp 0x41ea2b
mov eax, dword [0x44e3c4]
mov eax, dword [eax + esi + 4]
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.0041e990
mov dword [esp + 4], esi
mov dword [esp], str.Address__p_has_no_image_section
call fcn.0041e990
lea esi, [esi]

Function at 0x41f1f0
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push ebx
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
add edx, dword [edx + 0x3c]
movzx esi, word [edx + 6]
movzx eax, word [edx + 0x14]
test esi, esi
lea eax, [edx + eax + 0x18]
je 0x41f228
xor edx, edx
nop
mov ecx, dword [eax + 0xc]
cmp ecx, ebx
ja 0x41f21e
add ecx, dword [eax + 8]
cmp ebx, ecx
jb 0x41f22a
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x41f210
xor eax, eax
pop ebx
pop esi
ret

Function at 0x420ab0
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 4], 0
jmp fcn.004204b0
Function at 0x425690
Capabilities:
Query environment variable

Disassembly:
push ebp
sub ecx, 1
push edi
mov ebp, edx
push esi
mov esi, 1
push ebx
mov ebx, 0x66666667
sub esp, 0x2c
mov dword [esp + 0x1c], eax
mov eax, ecx
mov edi, dword [esp + 0x40]
sar eax, 0x1f
mov dword [esp + 0x14], eax
mov eax, ecx
imul ebx
mov dword [esp + 0x10], ecx
sar ecx, 0x1f
sar edx, 2
mov ebx, edx
sub ebx, ecx
je 0x4256e3
mov ecx, 0x66666667
mov eax, ebx
add esi, 1
imul ecx
sar ebx, 0x1f
sar edx, 2
sub edx, ebx
mov ebx, edx
jne 0x4256d0
mov eax, dword [edi + 0x28]
cmp eax, 0xffffffff
je 0x425758
mov edx, dword [edi + 8]
cmp eax, esi
cmovge esi, eax
lea eax, [esi + 2]
cmp edx, eax
jg 0x425751
mov dword [edi + 8], 0xffffffff
mov eax, dword [esp + 0x1c]
mov ecx, 1
mov edx, ebp
mov dword [esp], edi
add esi, 1
call fcn.00425000
mov eax, dword [edi + 0x28]
mov dword [edi + 0xc], eax
mov eax, dword [edi + 4]
mov edx, eax
and eax, 0x20
or edx, 0x1c0
or eax, 0x45
mov dword [edi + 4], edx
mov edx, edi
call fcn.00424c50
mov eax, dword [esp + 0x10]
mov ecx, edi
add dword [edi + 8], esi
mov edx, dword [esp + 0x14]
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.004253d0
sub edx, eax
mov dword [edi + 8], edx
jmp 0x425701
mov edx, dword [0x43e158]
cmp edx, 0xffffffff
je 0x425781
test edx, edx
mov eax, 2
jne 0x425779
call fcn.0042c6c0
and eax, 1
neg eax
add eax, 3
mov dword [edi + 0x28], eax
jmp 0x4256eb
mov dword [esp], str.PRINTF_EXPONENT_DIGITS
call sub.msvcrt.dll_getenv
test eax, eax
je 0x4257a7
movsx eax, byte [eax]
xor edx, edx
sub eax, 0x30
cmp eax, 2
setbe dl
mov dword [0x43e158], edx
jmp 0x425763
xor edx, edx
jmp 0x42579f
Function at 0x42ee8f
Capabilities:
Contain obfuscated stackstrings
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push edi
push ebx
add esp, 0xffffff80
cmp dword [ebp + 8], 0
jne 0x42eea2
jmp 0x42efd6
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.0042e6c0
cmp eax, 1
jne 0x42efce
mov dword [ebp - 0x77], 0x6f727245
mov dword [ebp - 0x73], 0x6c632072
mov dword [ebp - 0x6f], 0x696e6165
mov dword [ebp - 0x6b], 0x7520676e
mov dword [ebp - 0x67], 0x70732070
mov dword [ebp - 0x63], 0x6b5f6e69
mov dword [ebp - 0x5f], 0x20737965
mov dword [ebp - 0x5b], 0x20726f66
mov dword [ebp - 0x57], 0x65726874
mov dword [ebp - 0x53], 0x206461
lea edx, [ebp - 0x4f]
mov ebx, 0x43
mov eax, 0
mov ecx, edx
and ecx, 1
test ecx, ecx
je 0x42ef1a
mov byte [edx], al
add edx, 1
sub ebx, 1
mov ecx, edx
and ecx, 2
test ecx, ecx
je 0x42ef2c
mov word [edx], ax
add edx, 2
sub ebx, 2
mov ecx, ebx
shr ecx, 2
mov edi, edx
rep stosd dword es:[edi], eax
mov edx, edi
mov ecx, ebx
and ecx, 2
test ecx, ecx
je 0x42ef46
mov word [edx], ax
add edx, 2
and ebx, 1
mov ecx, ebx
test ecx, ecx
je 0x42ef54
mov byte [edx], al
add edx, 1
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call eax
mov dword [esp + 8], 0xa
lea edx, [ebp - 0x77]
add edx, 0x27
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.msvcrt.dll__ultoa]
call eax
mov dword [ebp - 0xc], 0x27
jmp 0x42ef84
add dword [ebp - 0xc], 1
lea edx, [ebp - 0x77]
mov eax, dword [ebp - 0xc]
add eax, edx
movzx eax, byte [eax]
test al, al
je 0x42ef9b
mov eax, dword [ebp - 0xc]
cmp eax, 0x69
jbe 0x42ef80
mov eax, dword [ebp - 0xc]
cmp eax, 0x69
ja 0x42efb9
lea edx, [ebp - 0x77]
mov eax, dword [ebp - 0xc]
add eax, edx
mov byte [eax], 0xa
mov eax, dword [ebp - 0xc]
add eax, 1
mov byte [ebp + eax - 0x77], 0
lea eax, [ebp - 0x77]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call eax
sub esp, 4
call sub.msvcrt.dll_abort
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [eax], edx
lea esp, [ebp - 8]
pop ebx
pop edi
pop ebp
ret
Function at 0x42ff48
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov dword [ebp - 0x1c], 0xffffffff
mov dword [esp + 4], 0x42fdbd
mov dword [esp], 0x44ede0
call fcn.0042f523
mov eax, dword [0x43e190]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call eax
sub esp, 4
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x42ff8f
mov eax, dword [ebp - 0x20]
jmp 0x4300da
call fcn.0042ed98
mov dword [ebp - 0x20], eax
mov eax, dword [entry3]
test eax, eax
je 0x42ffa6
cmp dword [ebp - 0x20], 0
jne 0x42ffb0
mov eax, 0
jmp 0x4300da
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x24], 1
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call eax
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x3c], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_CreateEventA]
call eax
sub esp, 0x10
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x18], eax
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x1c], 0xffffffff
mov eax, dword [ebp - 0x20]
lea edx, [eax + 0x38]
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov dword [esp], edx
call fcn.0042ee8f
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x64], 0
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x14], 0
mov eax, dword [ebp - 0x20]
lea edi, [eax + 0x14]
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call eax
mov esi, eax
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
call eax
mov ebx, eax
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call eax
mov dword [esp + 0x18], 2
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edi
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_DuplicateHandle]
call eax
sub esp, 0x1c
test eax, eax
jne 0x430082
call sub.msvcrt.dll_abort
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x14]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetThreadPriority]
call eax
sub esp, 4
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x6c], eax
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x68], 0
mov eax, dword [ebp - 0x20]
movzx edx, byte [eax + 0x20]
and edx, 0xffffffcf
or edx, 0x10
mov byte [eax + 0x20], dl
mov eax, dword [0x43e190]
mov edx, dword [ebp - 0x20]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsSetValue]
call eax
sub esp, 8
test eax, eax
jne 0x4300d7
call sub.msvcrt.dll_abort
mov eax, dword [ebp - 0x20]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x43019e
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
call fcn.0042ff48
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xb4]
mov dword [esp], eax
call fcn.0042fde0
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax + 0x20]
and eax, 0x30
test al, al
jne 0x4301f7
mov eax, dword [ebp - 0x14]
add eax, 0x70
mov dword [esp + 4], 1
mov dword [esp], eax
call sub.msvcrt.dll_longjmp
mov eax, dword [0x43e190]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call eax
sub esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x430321
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x430289
mov eax, dword [ebp - 0x10]
mov dword [eax], 0xdeadbeef
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x430246
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x18], 0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.0042ecb4
mov dword [ebp - 0x10], 0
mov eax, dword [0x43e190]
mov edx, dword [ebp - 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsSetValue]
call eax
sub esp, 8
jmp 0x430321
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x68], 1
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x4302b9
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x18], 0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x24]
and eax, 4
test eax, eax
je 0x430321
mov eax, dword [ebp - 0x10]
mov dword [eax], 0xdeadbeef
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x14]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x14], 0
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.0042ecb4
mov dword [ebp - 0x10], 0
mov eax, dword [0x43e190]
mov edx, dword [ebp - 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsSetValue]
call eax
sub esp, 8
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.msvcrt.dll__endthreadex]
call eax
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x4098a0
Capabilities:
Enumerate processes

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Process32FirstW]
push esi
mov esi, ecx
push edi
lea edi, [esi + 0xc]
mov edi, edi
push 0x22c
push 0
push edi
call fcn.004d11d0
add esp, 0xc
mov dword [edi], 0x22c
cmp byte [esi + 8], 0
push edi
push dword [esi + 4]
jne 0x4098d8
mov byte [esi + 8], 1
call ebx
jmp 0x4098de
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
setne al
test al, al
je 0x4098fa
mov edx, dword [esi]
mov ecx, esi
mov edx, dword [edx + 4]
call edx
test al, al
je 0x4098b0
mov eax, edi
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret

Function at 0x40afa0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.004d9f20
mov eax, dword [0x5520a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x1008]
push esi
push edi
mov edi, dword [ebp + 0xc]
push edx
lea edx, [ebp - 0x804]
mov dword [ebp - 0x1008], 0
push edx
lea edx, [ebp - 0x100c]
mov dword [ebp - 0x100c], 1
push edx
push 0
push eax
push dword [ecx]
mov dword [ebp - 0x1008], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x40b0ef
mov ecx, dword [ebp - 0x100c]
cmp ecx, 1
jne 0x40b082
cmp word [ebp - 0x804], ax
jne 0x40b040
xor ecx, ecx
lea eax, [ebp - 0x804]
push ecx
push eax
mov ecx, edi
call fcn.00406380
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d11b3
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebp - 0x804]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b050
sub ecx, edx
lea eax, [ebp - 0x804]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.00406380
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d11b3
mov esp, ebp
pop ebp
ret 8
cmp ecx, 2
jne 0x40b0ea
push 0x400
lea eax, [ebp - 0x1004]
push eax
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x1008], eax
test eax, eax
je 0x40b0d3
cmp eax, 0x400
ja 0x40b0d3
lea eax, [ebp - 0x1004]
mov ecx, edi
push eax
call fcn.00404190
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d11b3
mov esp, ebp
pop ebp
ret 8
pop edi
mov eax, 0xea
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d11b3
mov esp, ebp
pop ebp
ret 8
mov eax, 0x3f4
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004d11b3
mov esp, ebp
pop ebp
ret 8
Function at 0x40b8f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push edi
mov edi, ecx
cmp dword [edi], 0
je 0x40b9fb
cmp dword [edi + 4], 0
jl 0x40b9fb
mov eax, dword [edi + 0x24]
lea ecx, [edi + 0x2c]
sub eax, dword [edi + 0x20]
mov edx, dword [edi + 0x1c]
sar eax, 1
push esi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], edx
lea eax, [eax*2 - 2]
mov dword [ebp - 4], edx
mov dword [ecx], eax
xor eax, eax
mov esi, dword [edi + 0x20]
lea ecx, [edi + 8]
cmp esi, dword [edi + 0x24]
cmove esi, eax
call fcn.00412120
lea ecx, [edi + 0x2c]
push ecx
push esi
lea edx, [edi + 0x30]
push edx
push 0
lea ecx, [ebp - 4]
push ecx
push eax
push dword [edi + 4]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0xea
jne 0x40b9dd
mov ecx, dword [edi + 0x2c]
mov eax, dword [edi + 0x24]
inc ecx
sub eax, dword [edi + 0x20]
shr ecx, 1
inc ecx
sar eax, 1
cmp ecx, eax
jbe 0x40b98a
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push ecx
lea ecx, [edi + 0x20]
call fcn.0040bfb0
mov eax, dword [edi + 0x24]
mov ecx, 0x4000
sub eax, dword [edi + 0x20]
sar eax, 1
lea eax, [eax*2 - 2]
mov dword [edi + 0x2c], eax
mov eax, dword [ebp - 0xc]
cmp dword [ebp - 4], eax
mov esi, dword [edi + 0x20]
cmove eax, ecx
xor ecx, ecx
cmp esi, dword [edi + 0x24]
mov edx, eax
mov dword [ebp - 4], eax
cmove esi, ecx
lea ecx, [edi + 8]
call fcn.00412120
lea ecx, [edi + 0x2c]
push ecx
push esi
lea ecx, [edi + 0x30]
push ecx
push 0
lea ecx, [ebp - 4]
push ecx
push eax
push dword [edi + 4]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
pop esi
test eax, eax
jne 0x40b9fb
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
mov eax, dword [edi + 0x20]
inc ecx
shr ecx, 1
xor edx, edx
pop edi
pop ebx
mov word [eax + ecx*2], dx
mov al, 1
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x1c], 8
lea eax, [edi + 8]
jb 0x40ba06
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
mov eax, dword [edi + 0x20]
mov word [eax], cx
xor al, al
mov dword [edi + 0x2c], ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40bb70
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
sub esp, 8
or eax, 0x20019
push esi
mov esi, ecx
push esi
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40bbbd
push eax
push eax
push eax
push eax
push eax
push eax
push eax
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push 0
push 0
push 0
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x40bbd0
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esi], 0
xor eax, eax
mov word [esi + 8], ax
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp + 0x10]
mov edx, dword [esi]
dec ecx
mov dword [esi + 4], ecx
test edx, edx
je 0x40bc06
test ecx, ecx
js 0x40bc06
lea eax, [ebp - 8]
mov dword [ebp + 0x10], 0x104
push eax
push 0
push 0
push 0
lea eax, [ebp + 0x10]
push eax
lea eax, [esi + 8]
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x40bc0c
xor eax, eax
mov word [esi + 8], ax
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x417130
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x5520a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
xor eax, eax
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x20], 0
mov ecx, 0x53f49c
mov dword [ebp - 8], 7
mov dword [ebp - 0xc], 0
mov word [ebp - 0x1c], ax
lea esi, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x417170
sub ecx, esi
lea eax, [ebp - 0x1c]
sar ecx, 1
push eax
push ecx
push 0x53f49c
mov ecx, edx
call fcn.004112e0
add esp, 0xc
cmp dword [ebp - 0xc], 0
je 0x4171ca
cmp dword [ebp - 8], 8
lea ecx, [ebp - 0x20]
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x20], 0
cmovae eax, dword [ebp - 0x1c]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
mov ecx, edi
push esi
push dword [ebp - 0x20]
call fcn.00416080
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
cmp dword [ebp - 8], 8
jb 0x4171db
push dword [ebp - 0x1c]
call fcn.004d0550
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004d11b3
mov esp, ebp
pop ebp
ret 4