joyce8/EMBER2024-capa huggingface dataset:
Function at 0x552820
Capabilities:
Accept command line arguments

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x4c
mov dword [esp + 0x3c], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea edx, [esp + 0x3c]
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
sub esp, 8
test eax, eax
mov dword [esp + 0x2c], eax
je 0x5529ac
mov eax, dword [esp + 0x3c]
add eax, 1
lea edx, [eax*4]
cmp eax, 0x20000000
mov eax, 0xffffffff
cmovb eax, edx
mov dword [esp], eax
call fcn.00640860
mov edx, dword [esp + 0x3c]
mov edi, eax
test edx, edx
je 0x55293c
xor ebx, ebx
nop
lea esi, [esi]
mov eax, dword [esp + 0x2c]
mov ebp, dword [eax + ebx*4]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], ebp
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
sub esp, 0x20
mov dword [esp], eax
mov dword [esp + 0x28], eax
call fcn.00640860
mov ecx, dword [esp + 0x28]
mov esi, eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], ebp
mov dword [esp + 0x14], ecx
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
sub esp, 0x20
mov dword [edi + ebx*4], esi
add ebx, 1
cmp dword [esp + 0x3c], ebx
jne 0x552890
lea eax, [edi + ebx*4]
mov dword [eax], 0
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
sub esp, 4
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], edi
mov dword [esp], eax
call fcn.004e0420
mov esi, eax
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x552998
mov eax, dword [edi]
test eax, eax
je 0x552998
xor ebx, ebx
jmp 0x552987
mov eax, dword [edi + ebx*4]
test eax, eax
je 0x552998
mov dword [esp], eax
add ebx, 1
call fcn.00640830
cmp dword [esp + 0x3c], ebx
jne 0x552980
mov dword [esp], edi
call fcn.00640830
add esp, 0x4c
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret 0x10
mov esi, 0xffffffff
jmp 0x5529a0
Function at 0x562740
Capabilities:
Query environment variable

Disassembly:
push ebp
push edi
mov edi, edx
push esi
push ebx
lea ebx, [ecx - 1]
mov ecx, 0x66666667
sub esp, 0x2c
mov dword [esp + 0x1c], eax
mov eax, ebx
mov dword [esp + 0x10], ebx
sar eax, 0x1f
mov esi, dword [esp + 0x40]
mov dword [esp + 0x14], eax
mov eax, ebx
sar ebx, 0x1f
imul ecx
mov ecx, edx
sar ecx, 2
sub ecx, ebx
mov ebx, 1
je 0x562793
mov ebp, 0x66666667
mov eax, ecx
sar ecx, 0x1f
add ebx, 1
imul ebp
sar edx, 2
sub edx, ecx
mov ecx, edx
jne 0x562780
mov edx, dword [esi + 0x28]
cmp edx, 0xffffffff
je 0x562810
mov ecx, dword [esi + 8]
cmp ebx, edx
cmovl ebx, edx
lea edx, [ebx + 2]
mov eax, ecx
sub eax, edx
cmp ecx, edx
mov edx, 0xffffffff
cmovle eax, edx
mov ecx, 1
mov edx, edi
mov dword [esi + 8], eax
mov eax, dword [esp + 0x1c]
add ebx, 1
mov dword [esp], esi
call fcn.00561ff0
mov eax, dword [esi + 0x28]
mov dword [esi + 0xc], eax
mov eax, dword [esi + 4]
mov edx, eax
and eax, 0x20
or edx, 0x1c0
or eax, 0x45
mov dword [esi + 4], edx
mov edx, esi
call fcn.00561bc0
add dword [esi + 8], ebx
mov eax, dword [esp + 0x10]
mov ecx, esi
mov edx, dword [esp + 0x14]
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.00562430
mov eax, dword [0x66313c]
cmp eax, 0xffffffff
je 0x562845
test eax, eax
je 0x562835
mov edx, 2
mov dword [esi + 0x28], edx
jmp 0x56279b
mov dword [0x66313c], 0
call fcn.00567900
test al, 1
mov edx, 3
jne 0x56281e
jmp 0x562823
mov dword [esp], str.PRINTF_EXPONENT_DIGITS
call sub.msvcrt.dll_getenv
test eax, eax
je 0x56282b
movsx eax, byte [eax]
sub eax, 0x30
cmp eax, 2
ja 0x56282b
mov dword [0x66313c], 1
jmp 0x56281e
Function at 0x58b5f0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea edi, [ecx + 8]
mov ebx, ecx
lea esi, [ebx + 0x2c]
sub esp, 0x2c
mov dword [ecx], method.0RIPEMD_128E.virtual_0
mov dword [ecx + 4], 0x6e37f4
mov dword [esp], 0x40
mov ecx, edi
call fcn.00580aa0
sub esp, 4
mov byte [ebx + 0x24], 0
mov byte [ebx + 0x25], 1
mov dword [ebx + 0x28], 8
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx], 0x6e4660
mov dword [ebx + 4], 0x6e4698
mov dword [ebx + 0x2c], 0
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x34], 0
mov dword [ebx + 0x30], 0
mov dword [esp], 1
call fcn.00478890
mov dword [ebx + 0x38], eax
mov dword [esp], 0x10
mov ecx, esi
call fcn.00580210
sub esp, 4
lea eax, [ebx + 0x3c]
mov dword [ebx + 0x3c], 0
mov dword [ebx + 0x48], 0
mov dword [ebx + 0x44], 0
mov dword [ebx + 0x40], 0
mov dword [esp], 1
mov dword [ebp - 0x1c], eax
call fcn.00478890
lea ecx, [ebx + 0x3c]
mov dword [ebx + 0x48], eax
mov dword [esp], 4
call fcn.00580210
sub esp, 4
lea esp, [ebp - 0xc]
mov ecx, ebx
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.0040e640

Function at 0x58e380
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea edi, [ecx + 8]
mov ebx, ecx
lea esi, [ebx + 0x2c]
sub esp, 0x2c
mov dword [ecx], method.0RIPEMD_128E.virtual_0
mov dword [ecx + 4], 0x6e37f4
mov dword [esp], 0x40
mov ecx, edi
call fcn.00580aa0
sub esp, 4
mov byte [ebx + 0x24], 1
mov byte [ebx + 0x25], 1
mov dword [ebx + 0x28], 8
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx], 0x6e5018
mov dword [ebx + 4], 0x6e5050
mov dword [ebx + 0x2c], 0
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x34], 0
mov dword [ebx + 0x30], 0
mov dword [esp], 1
call fcn.00478890
mov dword [ebx + 0x38], eax
mov dword [esp], 5
mov ecx, esi
call fcn.00580210
sub esp, 4
lea eax, [ebx + 0x3c]
mov dword [ebx + 0x3c], 0
mov dword [ebx + 0x48], 0
mov dword [ebx + 0x44], 0
mov dword [ebx + 0x40], 0
mov dword [esp], 1
mov dword [ebp - 0x1c], eax
call fcn.00478890
lea ecx, [ebx + 0x3c]
mov dword [ebx + 0x48], eax
mov dword [esp], 0x50
call fcn.00580210
sub esp, 4
lea esp, [ebp - 0xc]
mov ecx, ebx
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.0040e820

Function at 0x58e650
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
lea esi, [ecx + 8]
mov ebx, ecx
lea edi, [ebx + 0x2c]
sub esp, 0x2c
mov dword [ecx], method.0RIPEMD_128E.virtual_0
mov dword [ecx + 4], 0x6e37f4
mov dword [esp], 0x40
mov ecx, esi
call fcn.00580aa0
sub esp, 4
mov byte [ebx + 0x24], 1
mov byte [ebx + 0x25], 1
mov dword [ebx + 0x28], 8
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx], 0x6e50b8
mov dword [ebx + 4], 0x6e50f0
mov dword [ebx + 0x2c], 0
mov dword [ebx + 0x38], 0
mov dword [ebx + 0x34], 0
mov dword [ebx + 0x30], 0
mov dword [esp], 1
call fcn.00478890
mov dword [ebx + 0x38], eax
mov dword [esp], 8
mov ecx, edi
call fcn.00580210
sub esp, 4
lea esp, [ebp - 0xc]
mov ecx, ebx
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.0040d930
Function at 0x58ed80
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
cmp esi, 7
jbe 0x58edd8
lea edx, [esi - 8]
mov ecx, dword [esp + 0x1c]
shr edx, 3
lea ebp, [edx*8 + 8]
mov edx, dword [esp + 0x18]
lea edi, [eax + ebp]
lea esi, [esi]
mov ebx, dword [edx]
xor ebx, dword [ecx]
add eax, 8
add edx, 8
add ecx, 8
mov dword [eax - 8], ebx
mov ebx, dword [edx - 4]
xor ebx, dword [ecx - 4]
mov dword [eax - 4], ebx
cmp eax, edi
jne 0x58edb0
add dword [esp + 0x18], ebp
add dword [esp + 0x1c], ebp
and esi, 7
test esi, esi
je 0x58ee06
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
add esi, edx
lea esi, [esi]
lea edi, [edi]
movzx ecx, byte [edx]
add edx, 1
add ebx, 1
xor cl, byte [ebx - 1]
add eax, 1
mov byte [eax - 1], cl
cmp edx, esi
jne 0x58edf0
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x58ee10
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
cmp ebx, 7
jbe 0x58ee59
lea edx, [ebx - 8]
shr edx, 3
lea ebp, [edx*8 + 8]
mov edx, esi
lea edi, [eax + ebp]
mov esi, esi
lea edi, [edi]
mov ecx, dword [edx]
xor dword [eax], ecx
add edx, 8
mov ecx, dword [edx - 4]
xor dword [eax + 4], ecx
add eax, 8
cmp eax, edi
jne 0x58ee40
add esi, ebp
and ebx, 7
test ebx, ebx
je 0x58ee6e
xor edx, edx
nop
movzx ecx, byte [esi + edx]
xor byte [eax + edx], cl
add edx, 1
cmp edx, ebx
jne 0x58ee60
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x59c8c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ecx, 0x1a
mov ebp, esp
push edi
push esi
push ebx
lea edi, [ebp - 0x80]
mov esi, 0x6d29bd
sub esp, 0x9c
mov edx, dword [ebp + 0xc]
sub edx, dword [ebp + 8]
lea eax, [edx + 1]
mov dword [ebp - 0x8c], eax
mov eax, dword [str.not_enough_space_for_format_expansion__Please_submit_full_bug_report_at_https:__gcc.gnu.org_bugs__:_n]
mov dword [ebp - 0x81], eax
mov eax, dword [0x6d2a21]
mov dword [ebp - 0x1c], eax
lea eax, [edx + 0x87]
rep movsd dword es:[edi], dword [esi]
and eax, 0xfffffff0
call fcn.0055c0e8
mov ecx, 0x1a
sub esp, eax
lea esi, [ebp - 0x81]
lea ebx, [esp + 0x1b]
and ebx, 0xfffffff0
mov edi, ebx
lea eax, [ebx + 0x68]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 8]
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [esp + 4], ecx
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0x8c]
mov byte [ebx + eax + 0x67], 0
mov dword [esp], ebx
call fcn.00631b90
nop
nop
nop
nop
push edi
push esi
push ebx
sub esp, 0x20
cmp byte [0x664bb4], 0
jne 0x59c9ad
mov byte [0x664bb4], 1
call fcn.00640bf0
test eax, eax
je 0x59c9f1
mov ebx, dword [eax + 4]
cmp byte [ebx], 0x2a
je 0x59c9df
lea eax, [esp + 0x1c]
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], ebx
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0xc], eax
call fcn.0055bed0
mov dword [esp], 2
mov edi, eax
mov esi, dword [fcn.00567810]
call esi
mov dword [esp + 8], 0x30
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_after_throwing_an_instance_of_
call sub.msvcrt.dll_fwrite
cmp dword [esp + 0x1c], 0
mov dword [esp], 2
je 0x59c99d
call esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_fputs
mov dword [esp], 2
call esi
mov dword [esp + 8], 2
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], 0x6d1ab1
call sub.msvcrt.dll_fwrite
cmp dword [esp + 0x1c], 0
je 0x59c9e7
call fcn.006410d0
call esi
mov dword [esp], edi
mov dword [esp + 4], eax
call sub.msvcrt.dll_fputs
jmp 0x59c968
mov dword [esp], 2
call dword [0x66315c]
mov dword [esp + 8], 0x1d
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_recursively_n
call sub.msvcrt.dll_fwrite
call sub.msvcrt.dll_abort
add ebx, 1
jmp 0x59c8f3
mov dword [esp], edi
call fcn.00567708
jmp 0x59c998
mov dword [esp], 2
call dword [0x66315c]
mov dword [esp + 8], 0x2d
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.terminate_called_without_an_active_exception_n
call sub.msvcrt.dll_fwrite
call sub.msvcrt.dll_abort
sub edx, 1
mov dword [esp], eax
jne 0x59ca97
call fcn.00640a60
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 8]
mov dword [esp], 2
mov ebx, eax
call esi
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0xb
mov dword [esp + 4], 1
mov dword [esp], str.__what__:
call sub.msvcrt.dll_fwrite
mov dword [esp], 2
call esi
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.msvcrt.dll_fputs
mov dword [esp], 2
call esi
mov dword [esp + 4], eax
mov dword [esp], 0xa
call sub.msvcrt.dll_fputc
call fcn.00640c50
jmp 0x59ca1e
call fcn.00640a60
call fcn.00640c50
jmp 0x59ca1e
Function at 0x6452f0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.00567810
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.00567810
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
nop
nop
nop
nop
nop
sub esp, 0x1c
mov dword [esp + 4], 0
mov dword [esp], 0x6633dc
call sub.libwinpthread_1.dll_pthread_mutex_init
mov dword [esp], 0x4a00
mov dword [0x6633e8], 0x4a00
call sub.msvcrt.dll_malloc
test eax, eax
mov dword [0x6633e4], eax
je 0x6453a8
mov dword [0x6633e0], eax
mov dword [eax], 0x4a00
mov dword [eax + 4], 0
mov dword [esp], 0x641930
call fcn.004014c0
add esp, 0x1c
ret
mov dword [0x6633e8], 0
mov dword [0x6633e0], 0
jmp 0x645398
Function at 0x401100
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x516de0
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x55d3d0]
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
mov eax, dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0x540458
xor ebx, ebx
push str.kernel32.dll
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x24], 0x4e52454b
mov dword [ebp - 0x20], 0x32334c45
mov dword [ebp - 0x1c], 0x6c6c642e
mov byte [ebp - 0x18], bl
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
lea ecx, [ebp - 0x34]
push ecx
lea edx, [ebp - 0x24]
push edx
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x34], 0x50746547
mov dword [ebp - 0x30], 0x65636f72
mov dword [ebp - 0x2c], 0x65487373
mov word [ebp - 0x28], 0x7061
mov byte [ebp - 0x26], bl
call esi
push eax
call edi
mov dword [ebp - 0x38], eax
nop
nop
nop
nop
nop
push 0x555420
lea eax, [ebp - 0x44]
mov dword [ebp - 4], ebx
push eax
mov dword [ebp - 0x44], 0x63
call fcn.004f8145
inc eax
dec ebx
dec eax
inc ebx
mov ecx, dword [ebp - 0x3c]
push ecx
push 0
call dword [ebp - 0x38]
push eax
call dword [ebp - 0x40]
mov eax, 0x4011ce
ret
Function at 0x4011f0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x516dc0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x55d3d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 0x10]
push 0x540464
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
nop
nop
nop
inc eax
dec ebx
dec eax
inc ebx
mov eax, dword [esi + 4]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi]
movzx ecx, word [eax + 0x14]
lea edx, [ecx + eax + 0x18]
push 0x555420
lea eax, [ebp - 0x24]
mov dword [ebp - 4], 0
push eax
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x24], 0x50
call fcn.004f8145
mov dword [ebp - 0x10], esp
inc eax
dec ebx
dec eax
inc ebx
mov edi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
movzx eax, word [edx + 6]
cmp dword [ebp - 0x18], eax
jge 0x40134f
cmp dword [esi + 0x10], 0
jne 0x4012d3
mov ecx, dword [ebp + 0xc]
mov ebx, dword [ecx + 0x38]
test ebx, ebx
jle 0x401341
mov edx, dword [esi + 0xc]
add edx, dword [ebp - 0x1c]
push 4
push 0x1000
push ebx
push edx
call edi
push ebx
push 0
push eax
mov dword [esi + 8], eax
call fcn.004f6740
inc dword [ebp - 0x18]
add esp, 0xc
add esi, 0x28
mov dword [ebp - 0x14], esi
jmp 0x401282
inc eax
dec ebx
dec eax
inc ebx
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
add ecx, dword [ebp - 0x1c]
push 4
push 0x1000
push eax
push ecx
call edi
push 0x555420
lea edx, [ebp - 0x28]
mov byte [ebp - 4], 2
push edx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x28], 0x55
call fcn.004f8145
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 0x14]
mov ecx, dword [eax + 0x10]
add edx, dword [ebp + 8]
mov eax, dword [ebp - 0x20]
push ecx
push edx
push eax
call fcn.004f92b0
add esp, 0xc
mov dword [ebp - 4], 1
mov eax, 0x40132e
ret
inc dword [ebp - 0x18]
add esi, 0x28
mov dword [ebp - 0x14], esi
jmp 0x401282
mov eax, 0x401355
ret
Function at 0x401470
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x516d80
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x55d3d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0x54049c
push str.kernel32.dll
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
nop
nop
nop
nop
nop
push 0x5404a8
push str.kernel32.dll
call esi
push eax
call edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
movzx ecx, word [eax + 0x14]
lea edx, [ecx + eax + 0x18]
mov dword [ebp - 0x18], edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
push 0x555420
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 0
push eax
mov dword [ebp - 0x14], 0x40
call fcn.004f8145
mov edi, dword [ebp + 8]
mov ecx, dword [edi]
xor edx, edx
xor ebx, ebx
cmp dx, word [ecx + 6]
jae 0x4015d3
mov esi, dword [ebp - 0x18]
add esi, 0x24
jmp 0x401520
mov eax, dword [esi]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
and ecx, 1
and edx, 1
shr eax, 0x1f
nop
nop
nop
nop
test dword [esi], 0x2000000
je 0x401556
mov eax, dword [esi - 0x14]
mov ecx, dword [esi - 0x1c]
push 0x4000
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x4015c1
nop
nop
nop
nop
nop
test dword [esi], 0x4000000
lea edx, [edx + ecx*2]
lea eax, [eax + edx*2]
mov edx, dword [eax*4 + 0x55e788]
je 0x401576
or edx, 0x200
nop
nop
nop
nop
nop
nop
mov eax, dword [esi - 0x14]
test eax, eax
jne 0x40159a
mov ecx, dword [esi]
test cl, 0x40
je 0x401591
mov ecx, dword [edi]
mov eax, dword [ecx + 0x20]
jmp 0x40159a
test cl, cl
jns 0x40159a
mov eax, dword [edi]
mov eax, dword [eax + 0x24]
nop
nop
nop
nop
nop
nop
test eax, eax
je 0x4015c1
mov eax, dword [esi - 0x1c]
lea ecx, [ebp + 8]
push ecx
push edx
mov edx, dword [esi - 0x14]
push edx
push eax
call dword [ebp - 0x1c]
test eax, eax
jne 0x4015c1
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [edi]
movzx edx, word [ecx + 6]
inc ebx
add esi, 0x28
cmp ebx, edx
jl 0x401520
mov eax, 0x4015d9
ret
Function at 0x401700
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x516e40
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x55d3d0]
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
mov eax, dword [ebp + 8]
push 0x555420
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], 0
push ecx
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x58], 0x45
call fcn.004f8145
mov dword [ebp - 0x10], esp
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x34]
xor ebx, ebx
push eax
mov dword [ebp - 0x24], 0x61427349
mov dword [ebp - 0x20], 0x61655264
mov dword [ebp - 0x1c], 0x72745064
mov byte [ebp - 0x18], bl
mov dword [ebp - 0x34], 0x4e52454b
mov dword [ebp - 0x30], 0x32334c45
mov dword [ebp - 0x2c], 0x6c6c642e
mov byte [ebp - 0x28], bl
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x54], eax
nop
nop
nop
nop
nop
nop
mov edi, dword [ebp - 0x48]
mov ecx, dword [edi + 4]
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x3c], ecx
nop
nop
nop
nop
nop
nop
mov eax, dword [edi]
cmp dword [eax + 0x84], ebx
jbe 0x401801
mov esi, dword [eax + 0x80]
add esi, ecx
mov dword [ebp - 0x44], esi
mov edi, edi
push 0x14
push esi
call dword [ebp - 0x54]
test eax, eax
jne 0x401801
cmp dword [esi + 0xc], eax
je 0x401801
inc eax
dec ebx
dec eax
inc ebx
mov ecx, dword [esi + 0xc]
add ecx, dword [ebp - 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
mov dword [ebp - 0x50], ebx
cmp ebx, 0xffffffff
jne 0x401807
mov dword [ebp - 0x38], 0
mov eax, 0x401917
ret
nop
nop
nop
nop
nop
nop
nop
nop
mov edx, dword [edi + 0xc]
mov ecx, dword [edi + 8]
lea eax, [edx*4 + 4]
push eax
push ecx
call fcn.00401370
add esp, 8
mov dword [edi + 8], eax
test eax, eax
je 0x4017fa
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov edx, dword [edi + 0xc]
mov eax, dword [edi + 8]
mov dword [eax + edx*4], ebx
inc dword [edi + 0xc]
mov ecx, dword [esi]
test ecx, ecx
je 0x401860
add ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x4c], ecx
inc eax
dec ebx
dec eax
inc ebx
mov esi, dword [esi + 0x10]
add esi, dword [ebp - 0x3c]
mov ebx, dword [ebp - 0x50]
mov dword [ebp - 0x40], esi
jmp 0x401870
mov ecx, dword [ebp - 0x3c]
add ecx, dword [esi + 0x10]
mov esi, ecx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x4c], ecx
mov edi, edi
mov eax, dword [ecx]
test eax, eax
je 0x4018d2
jns 0x401880
and eax, 0xffff
push eax
jmp 0x40188d
nop
nop
nop
nop
mov ecx, dword [ecx]
add ecx, dword [ebp - 0x3c]
add ecx, 2
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x555420
lea edx, [ebp - 0x5c]
mov byte [ebp - 4], 2
push edx
mov dword [esi], eax
mov dword [ebp - 0x5c], 0x42
call fcn.004f8145
mov eax, dword [ebp - 0x40]
cmp dword [eax], 0
jne 0x4018f0
inc eax
dec ebx
dec eax
inc ebx
mov dword [ebp - 0x38], 0
mov dword [ebp - 4], 1
mov eax, 0x4018cf
ret
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [ebp - 0x38], 0
je 0x401801
add dword [ebp - 0x44], 0x14
mov esi, dword [ebp - 0x44]
jmp 0x4017d0
mov dword [ebp - 4], 1
mov eax, 0x4018fd
ret
Function at 0x401d00
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x516e10
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x55d3d0]
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
mov eax, dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0x540458
push str.kernel32.dll
mov dword [ebp - 0x3c], eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
mov dword [ebp - 0x38], eax
nop
nop
nop
inc eax
dec ebx
dec eax
inc ebx
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x30]
xor ebx, ebx
push edx
mov dword [ebp - 0x30], 0x4e52454b
mov dword [ebp - 0x2c], 0x32334c45
mov dword [ebp - 0x28], 0x6c6c642e
mov byte [ebp - 0x24], bl
mov dword [ebp - 0x20], 0x74726956
mov dword [ebp - 0x1c], 0x466c6175
mov dword [ebp - 0x18], 0x656572
call esi
push eax
call edi
push str.GetProcessHeap
push 0x5404b8
mov dword [ebp - 0x44], eax
call esi
push eax
call edi
mov dword [ebp - 0x34], eax
nop
nop
nop
nop
nop
nop
nop
nop
push 0x555420
lea eax, [ebp - 0x40]
mov dword [ebp - 4], ebx
push eax
mov dword [ebp - 0x40], 0x44
call fcn.004f8145
mov esi, dword [ebp - 0x3c]
test esi, esi
je 0x401e5d
cmp dword [esi + 0x10], 0
je 0x401df8
mov ecx, dword [esi]
mov ecx, dword [ecx + 0x28]
add ecx, dword [esi + 4]
inc eax
dec ebx
dec eax
inc ebx
mov edx, dword [esi + 4]
push 0
push 0
push edx
call ecx
mov dword [esi + 0x10], 0
nop
nop
nop
cmp dword [esi + 8], 0
je 0x401e37
xor edi, edi
cmp dword [esi + 0xc], edi
jle 0x401e27
mov ebx, dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edi, edi
mov eax, dword [esi + 8]
cmp dword [eax + edi*4], 0xffffffff
lea eax, [eax + edi*4]
je 0x401e21
mov ecx, dword [eax]
push ecx
call ebx
inc edi
cmp edi, dword [esi + 0xc]
jl 0x401e10
inc eax
dec ebx
dec eax
inc ebx
mov edx, dword [esi + 8]
push edx
call fcn.00401100
add esp, 4
inc eax
dec ebx
dec eax
inc ebx
mov eax, dword [esi + 4]
test eax, eax
je 0x401e4d
push 0x8000
push 0
push eax
call dword [ebp - 0x44]
nop
nop
nop
nop
nop
nop
push esi
push 0
call dword [ebp - 0x34]
push eax
call dword [ebp - 0x38]
mov eax, 0x401e63
ret

Function at 0x4025b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4025cb
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402602
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x4025fe
jmp 0x4025f0
cmp esi, eax
jae 0x402602
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4025f0
cmp esi, eax
jb 0x402609
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret