joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4afce4
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4afdaf
jmp 0x4afda3
cmp dword [esi + 0x10], 0x1000
jne 0x4afd8f
test byte [esi + 0x15], 1
jne 0x4afd8f
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x4afd40
cmp ebp, 2
je 0x4afd40
cmp ebp, 0x10
je 0x4afd40
cmp ebp, 0x20
jne 0x4afd5c
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4afd5c
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x4afd6d
mov eax, dword [esi]
add eax, ebx
call fcn.004afcdc
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x4afd60
cmp byte [esp + 4], 0
je 0x4afd8f
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov edi, eax
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4afdaf
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x4afd15
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x433002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
nop
push 4
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x433072
nop
nop
nop
nop
mov ebx, 0x40de38
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x6ceb553d
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x433060
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
je 0x4330d2
nop
nop
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x1e215dfe
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x2e01c4f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x2e01c4ff
pop dword [ebp - 0x34]
mov eax, 0xcf0b56be
sub eax, 0xa10991bf
sub dword [ebp - 0x34], eax
mov dword [ebp - 0x44], 0xe299c89a
add dword [ebp - 0x44], 0x6bb87cb1
mov dword [ebp - 0x40], 0xddeaaf59
add dword [ebp - 0x40], 0x54489cec
mov dword [ebp - 0x3c], 0x3e2d98c9
add dword [ebp - 0x3c], 0xe1eab65
mov dword [ebp - 0x38], 0xee5b6e8
add dword [ebp - 0x38], 0xf11a4918
lea eax, [ebp - 0x44]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x34]
call dword [eax]
mov dword [ebp - 0x44], 0xdde55203
add dword [ebp - 0x44], 0x968d1753
mov dword [ebp - 0x40], 0x2748be94
add dword [ebp - 0x40], 0x1a23a2e1
mov dword [ebp - 0x3c], 0x6df5b271
add dword [ebp - 0x3c], 0xf579b9fb
mov dword [ebp - 0x38], 0xbe16d83f
add dword [ebp - 0x38], 0x41e927c1
lea ebx, [ebp - 0x44]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x34]
call dword [eax]
push 0x40
push 0x1000
push 0x428ae
push 0
call eax
mov ecx, 0xae8042a3
sub ecx, 0xae7ff48d
mov edi, eax
mov esi, 0x35f59fd1
sub esi, 0x7f031d1
add esi, dword [ebp - 0x34]
mov ebx, 0x71f653b0
xor dword [ebp - 0x18], eax
mov edx, dword [esi]
sub dword [ebp - 0x24], 0xe115a94
add edx, ebx
add dword [ebp - 0x2c], 0x49bc3512
mov dword [edi], edx
add dword [ebp - 0xc], edi
add edi, 0x52191852
sub edi, 0x5219184e
add esi, 4
loop 0x2e01c611
add eax, 0x4fbf29cc
add eax, 0xb042015f
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0xe7e19c0b
add ecx, 0x461e63f5
add ecx, dword [ebp - 0x34]
call ebx
leave
ret
Function at 0x1000b7a1
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x824
mov eax, dword [0x10041024]
xor eax, esp
mov dword [esp + 0x820], eax
push ebx
push ebp
mov ebp, dword [esp + 0x830]
lea eax, [esp + 0x428]
push esi
mov esi, dword [esp + 0x838]
xor ebx, ebx
push edi
mov edi, 0x400
push edi
push ebx
push eax
call fcn.1000de50
push esi
push ebx
push ebp
push 0xffffffffffffffff
lea eax, [esp + 0x44c]
push edi
push eax
call fcn.1002543f
movzx ecx, byte [esp + 0x853]
lea edi, [esp + 0x34]
xor edx, edx
test eax, eax
push 8
cmovs ecx, edx
xor eax, eax
mov byte [esp + 0x857], cl
pop ecx
rep stosd dword es:[edi], eax
lea eax, [esp + 0x34]
push 0x20
push eax
call fcn.1002543f
push 0x10038198
lea eax, [esp + 0x40]
push 0x20
push eax
call fcn.1002543f
push 0x400
lea eax, [esp + 0x6c]
push ebx
push eax
call fcn.1000de50
mov ecx, ebp
add esp, 0x44
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000b846
sub ecx, edx
cmp ecx, 6
jbe 0x1000b86d
lea eax, [ebp - 6]
add eax, ecx
push str.__08x_
push eax
call fcn.1002543f
pop ecx
pop ecx
test eax, eax
jne 0x1000b86d
xor ebx, ebx
inc ebx
lea esi, [esp + 0x10]
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x1000b874
sub esi, ecx
lea eax, [esp + 0x430]
push eax
mov ecx, 0x10036ae3
test ebx, ebx
mov eax, str.Error:
cmove eax, ecx
push eax
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.kernel32.dll_GetCurrentProcessId]
push eax
push str.P:_04d_T:_04d__s_s
mov eax, 0x3ff
sub eax, esi
push 0xffffffffffffffff
push eax
lea eax, [esp + 0x4c]
add eax, esi
push eax
call fcn.1002543f
mov ecx, dword [esp + 0x44b]
test eax, eax
push esi
lea eax, [esp + 0x34]
mov edx, 0x2e2e2e
push eax
lea eax, [esp + 0x58]
cmovs ecx, edx
push eax
mov dword [esp + 0x457], ecx
call fcn.1000d8d0
lea edi, [esp + 0x5c]
add esp, 0x2c
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1000b8ee
mov ax, word [0x100381c4]
mov word [edi], ax
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
mov ecx, dword [esp + 0x830]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1000be90
add esp, 0x824
ret

Function at 0x1002543f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x1002544e
pop dword [ebp - 0x48]
mov eax, 0x44f1dbdf
add eax, 0xcb10786f
sub dword [ebp - 0x48], eax
push 0x40
push 0x1000
push 0x4298b
push 0
mov eax, 0x86dd80cf
sub eax, 0x76dabf3b
add eax, dword [ebp - 0x48]
call dword [eax]
mov ecx, 0xc818da4e
add ecx, 0x37e779ba
xor ebx, ebx
add ebx, eax
mov edx, 0x7d588b26
add edx, 0x92abd4da
add edx, dword [ebp - 0x48]
mov edi, 0x71f5f2c0
sub edi, 0xc9972628
mov esi, dword [edx]
mov dword [ebp - 0x1c], 0x62025c0a
xor esi, edi
add dword [ebp - 4], 0x7f178854
mov dword [ebx], esi
sub dword [ebp - 8], 0x2b094ebb
add ebx, 0x1609c76b
sub ebx, 0x1609c767
add edx, 4
loop 0x100254af
add eax, 0x6b7736f7
add eax, 0x948a0bfc
mov ebx, eax
add eax, 0x20697713
add eax, 0xdf9688f2
mov ecx, 0x546050b1
sub ecx, 0x446050b1
add ecx, dword [ebp - 0x48]
call ebx
leave
ret
Function at 0x732ff0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x641015
lea edi, [esi - 0x240015]
mov dword [edi + 0x2ef150], 0xae840473
push edi
or ebp, 0xffffffff
jmp 0x73301a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x733021
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x733010
mov eax, 1
add ebx, ebx
jne 0x733033
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x733044
jne 0x733063
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x733063
dec eax
add ebx, ebx
jne 0x733050
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x733028
add ebx, ebx
jne 0x73305f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x7330b5
xor ecx, ecx
sub eax, 3
jb 0x73307b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x7330ea
sar eax, 1
mov ebp, eax
jmp 0x733086
add ebx, ebx
jne 0x733086
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x733054
inc ecx
add ebx, ebx
jne 0x733094
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x733054
add ebx, ebx
jne 0x7330a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x733096
jne 0x7330b2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x733096
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x7330d4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x7330c6
jmp 0x733016
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x7330d4
add edi, ecx
jmp 0x733016
pop esi
mov edi, esi
mov ecx, 0x10cd6
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x7330f2
cmp byte [edi], 0x1b
jne 0x7330f2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x7330f7
lea edi, [esi + 0x32f000]
mov eax, dword [edi]
or eax, eax
je 0x733166
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x36c0d4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x36c1b0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x733124
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x36c1b4]
or eax, eax
je 0x733160
mov dword [ebx], eax
add ebx, 4
jmp 0x733141
call dword [esi + 0x36c1c4]
mov ebp, dword [esi + 0x36c1b8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
lea ebx, [esi - 0x1000]
lea edi, [ebx + 0x3331c1]
push edi
xor eax, eax
stosb byte es:[edi], al
pop ecx
dec ecx
push eax
push 1
push ebx
call ecx
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x7331b2
sub esp, 0xffffff80
jmp 0x4014a0
Function at 0x1002aadf
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x1002aaee
pop dword [ebp - 0x2c]
mov eax, 0x73825cc5
sub eax, 0x637fb1d7
sub dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], 0x3a399047
sub dword [ebp - 0x3c], 0xebe74afc
mov dword [ebp - 0x38], 0x2568c3b3
sub dword [ebp - 0x38], 0xf335776e
mov dword [ebp - 0x34], 0xe1f9f351
sub dword [ebp - 0x34], 0x95adaf23
mov dword [ebp - 0x30], 0xca3b940f
add dword [ebp - 0x30], 0x35c46bf1
lea eax, [ebp - 0x3c]
push eax
mov eax, 0x50d5e107
sub eax, 0x40d320cf
add eax, dword [ebp - 0x2c]
call dword [eax]
mov dword [ebp - 0x3c], 0xbbc043
sub dword [ebp - 0x3c], 0x8c4956ed
mov dword [ebp - 0x38], 0x8844c5bb
add dword [ebp - 0x38], 0xb9279bba
mov dword [ebp - 0x34], 0xdaf1aa9f
add dword [ebp - 0x34], 0x887dc1cd
mov dword [ebp - 0x30], 0x1996ef32
add dword [ebp - 0x30], 0xe66910ce
lea ebx, [ebp - 0x3c]
push ebx
push eax
mov eax, 0xe41ccd73
add eax, 0x2be5f2b5
add eax, dword [ebp - 0x2c]
call dword [eax]
push 0x40
push 0x1000
push 0x373e4
push 0
call eax
mov ecx, 0xc248a0ea
add ecx, 0x3db7aa30
mov ebx, eax
mov esi, 0x98f5dda
sub esi, 0xf98bc7da
add esi, dword [ebp - 0x2c]
mov edi, 0x58e5be3c
add edi, 0x7c21f398
sub dword [ebp - 0x28], esi
mov edx, dword [esi]
sub dword [ebp - 0xc], esi
sub edx, edi
xor dword [ebp - 0x24], eax
mov dword [ebx], edx
mov dword [ebp - 4], 0x6fd8bef1
add ebx, 4
add esi, 0xc4fe2fdf
add esi, 0x3b01d025
loop 0x1002ac10
add eax, 0xe5f88875
add eax, 0x1a0896c6
mov ebx, eax
add eax, 0x88f5f344
sub eax, 0x88f5f33f
mov ecx, 0xa31d143a
add ecx, 0x6ce2ebc6
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret
Function at 0x61ec8130
Capabilities:
Get geographical location
Query environment variable

Disassembly:
movzx eax, word [esp + 4]
mov dword [esp + 4], eax
jmp sym.libintl_8.dll__nl_locale_name_from_win32_LANGID

Function at 0x61ec8150
Capabilities:
Get geographical location
Query environment variable

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [esp + 0x20]
cmp eax, 5
ja 0x61ec8245
mov dword [esp + 4], 0
mov dword [esp], eax
call sym.libintl_8.dll_libintl_setlocale
mov dword [esp + 4], 0x3b
mov dword [esp], eax
mov ebx, eax
call sub.msvcrt.dll_strchr
test eax, eax
je 0x61ec819d
mov dword [esp + 4], 0
mov dword [esp], 2
call sym.libintl_8.dll_libintl_setlocale
mov ebx, eax
mov dword [esp], 0x61ed81a0
call sym.libintl_8.dll_libintl_lock_lock_func
test eax, eax
jne 0x61ec8287
mov eax, dword [0x61ede5a8]
test eax, eax
je 0x61ec81d2
mov dword [esp + 4], 0x61ede1c0
mov dword [esp], ebx
call sub.msvcrt.dll_strcmp
test eax, eax
je 0x61ec8270
mov dword [esp + 8], 0x1ae
mov dword [esp + 4], ebx
mov dword [esp], 0x61ede6c0
call sub.msvcrt.dll_strncpy
mov byte [0x61ede86e], 0
mov dword [0x61ede870], 0
mov dword [esp + 4], 2
mov dword [esp], 0x61ec6c90
call dword [sym.imp.KERNEL32.dll_EnumSystemLocalesA]
mov eax, dword [0x61ede870]
sub esp, 8
test eax, eax
jne 0x61ec8250
mov dword [esp], 0x61ed81a0
call sym.libintl_8.dll_libintl_lock_unlock_func
test eax, eax
jne 0x61ec8287
mov eax, dword [0x61ede870]
test eax, eax
je 0x61ec8245
movzx eax, ax
mov dword [esp + 0x20], eax
add esp, 0x18
pop ebx
jmp sym.libintl_8.dll__nl_locale_name_from_win32_LANGID
add esp, 0x18
xor eax, eax
pop ebx
ret
mov dword [esp + 4], ebx
mov dword [esp], 0x61ede1c0
mov dword [0x61ede5a8], eax
call sub.msvcrt.dll_strcpy
jmp 0x61ec821c
mov dword [esp], 0x61ed81a0
call sym.libintl_8.dll_libintl_lock_unlock_func
test eax, eax
jne 0x61ec8287
mov eax, dword [0x61ede5a8]
jmp 0x61ec8231
call sub.msvcrt.dll_abort
lea esi, [esi]

Function at 0x61ec8290
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x1c
mov dword [esp], 0x61eda630
call sub.msvcrt.dll_getenv
test eax, eax
je 0x61ec82a8
cmp byte [eax], 0
jne 0x61ec82d8
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.msvcrt.dll_getenv
test eax, eax
je 0x61ec82bd
cmp byte [eax], 0
jne 0x61ec82d8
mov dword [esp], str.LANG
call sub.msvcrt.dll_getenv
test eax, eax
je 0x61ec82dc
cmp byte [eax], 0
mov edx, 0
cmove eax, edx
add esp, 0x1c
ret
xor eax, eax
jmp 0x61ec82d8

Function at 0x61ec8310
Capabilities:
Get geographical location
Query environment variable

Disassembly:
push esi
push ebx
sub esp, 0x14
mov ebx, dword [esp + 0x20]
mov esi, dword [esp + 0x24]
mov dword [esp], ebx
mov dword [esp + 4], esi
call sym.libintl_8.dll__nl_locale_name_thread
test eax, eax
je 0x61ec8333
add esp, 0x14
pop ebx
pop esi
ret
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym.libintl_8.dll__nl_locale_name_environ
test eax, eax
jne 0x61ec832d
call dword [sym.imp.KERNEL32.dll_GetThreadLocale]
movzx eax, ax
mov dword [esp + 0x20], eax
add esp, 0x14
pop ebx
pop esi
jmp sym.libintl_8.dll__nl_locale_name_from_win32_LANGID
Function at 0x61ec8360
Capabilities:
Write file on windows

Disassembly:
push edi
push esi
mov edi, edx
push ebx
mov esi, ecx
mov ebx, eax
sub esp, 0x10
mov dword [esp + 4], eax
mov dword [esp], 0x22
call sub.msvcrt.dll_putc
cmp edi, esi
jne 0x61ec839d
jmp 0x61ec8414
cmp al, 0x22
je 0x61ec83f0
cmp al, 0x5c
je 0x61ec83f0
mov dword [esp + 4], ebx
mov dword [esp], eax
call sub.msvcrt.dll_putc
cmp esi, edi
je 0x61ec8414
add edi, 1
movsx eax, byte [edi - 1]
cmp al, 0xa
jne 0x61ec8385
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 3
mov dword [esp + 4], 1
mov dword [esp], 0x61eda63c
call sub.msvcrt.dll_fwrite
cmp esi, edi
je 0x61ec8424
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 2
mov dword [esp + 4], 1
mov dword [esp], 0x61eda640
call sub.msvcrt.dll_fwrite
jmp 0x61ec839d
mov dword [esp + 4], ebx
mov dword [esp], 0x5c
call sub.msvcrt.dll_putc
movsx eax, byte [edi - 1]
mov dword [esp + 4], ebx
mov dword [esp], eax
call sub.msvcrt.dll_putc
cmp esi, edi
jne 0x61ec839d
mov dword [esp + 4], ebx
mov dword [esp], 0x22
call sub.msvcrt.dll_putc
add esp, 0x10
pop ebx
pop esi
pop edi
ret

Function at 0x61ecb710
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x24
mov ebx, dword [esp + 0x34]
mov dword [esp + 4], 0x24
mov dword [esp], ebx
call sub.msvcrt.dll_strchr
test eax, eax
mov eax, dword [esp + 0x38]
je 0x61ecb7a4
mov dword [esp + 0xc], eax
lea eax, [esp + 0x1c]
mov dword [esp + 8], ebx
mov dword [esp], 0
mov dword [esp + 4], eax
call sym.libintl_8.dll_libintl_vasnprintf
test eax, eax
mov esi, eax
je 0x61ecb783
mov eax, dword [esp + 0x30]
mov dword [esp + 4], 1
mov dword [esp], esi
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 8], eax
call sub.msvcrt.dll_fwrite
mov dword [esp], esi
mov ebx, eax
call sub.msvcrt.dll_free
cmp ebx, dword [esp + 0x1c]
je 0x61ecb790
mov eax, 0xffffffff
add esp, 0x24
pop ebx
pop esi
ret
test ebx, ebx
mov eax, ebx
jns 0x61ecb788
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], 0x84
jmp 0x61ecb783
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], ebx
mov dword [esp], eax
call fcn.61ed09b0
add esp, 0x24
pop ebx
pop esi
ret

Function at 0x61ecf860
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
lea ebx, [esp + 0x24]
mov dword [esp], 0x61edc52c
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.61ecf8c0
Function at 0x61ecf8c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x61edec58]
test esi, esi
jle 0x61ecf9ad
mov edi, dword [0x61edec5c]
xor ebx, ebx
lea edx, [edi + 4]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x61ecf8f4
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x61ecf9a6
add ebx, 1
add edx, 0xc
cmp ebx, esi
jne 0x61ecf8e0
mov dword [esp], eax
mov ebx, eax
call fcn.61ed0050
test eax, eax
mov edi, eax
je 0x61ecf9ea
lea ebx, [esi + esi*2]
mov esi, dword [0x61edec5c]
shl ebx, 2
add esi, ebx
mov dword [esi + 8], eax
mov dword [esi], 0
call fcn.61ed0150
add eax, dword [edi + 0xc]
mov dword [esi + 4], eax
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov eax, dword [0x61edec5c]
mov eax, dword [eax + ebx + 4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x61ecf9ca
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x61ecf99f
sub eax, 0x40
and eax, 0xffffffbf
je 0x61ecf99f
mov eax, dword [esp + 0x20]
add ebx, dword [0x61edec5c]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
je 0x61ecf9b4
add dword [0x61edec58], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
xor esi, esi
jmp 0x61ecf8fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.61ecf860
mov eax, dword [0x61edec5c]
mov eax, dword [eax + ebx + 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.61ecf860
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.61ecf860
lea esi, [esi]

Function at 0x61ecff70
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 0x61ecffa8
xor ecx, ecx
nop
mov edx, dword [eax + 0xc]
cmp edx, ebx
ja 0x61ecff9e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x61ecffaa
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x61ecff90
xor eax, eax
pop ebx
pop esi
ret
Function at 0x1000ade1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x1000adf0
pop dword [ebp - 0x40]
mov eax, 0x699344b3
add eax, 0xa66d693d
sub dword [ebp - 0x40], eax
mov dword [ebp - 0x50], 0xcabcb75d
sub dword [ebp - 0x50], 0x7c6a7212
mov dword [ebp - 0x4c], 0xbc624f2c
sub dword [ebp - 0x4c], 0x8a2f02e7
mov dword [ebp - 0x48], 0x7f769340
add dword [ebp - 0x48], 0xccd5b0ee
mov dword [ebp - 0x44], 0x1a0fbb69
sub dword [ebp - 0x44], 0x1a0fbb69
lea eax, [ebp - 0x50]
push eax
mov eax, 0x8b2a066c
sub eax, 0x7b29f5fc
add eax, dword [ebp - 0x40]
call dword [eax]
mov dword [ebp - 0x50], 0x26fcb497
sub dword [ebp - 0x50], 0xb28a4b41
mov dword [ebp - 0x4c], 0xb5f8a7e9
add dword [ebp - 0x4c], 0x8b73b98c
mov dword [ebp - 0x48], 0x5d4e1dd4
add dword [ebp - 0x48], 0x6214e98
mov dword [ebp - 0x44], 0xb2fc955b
sub dword [ebp - 0x44], 0xb2fc955b
lea ebx, [ebp - 0x50]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x40]
call dword [eax]
push 0x40
push 0x1000
push 0x3cd13
push 0
call eax
mov ecx, 0x5bde
xor esi, esi
add esi, eax
mov edx, 0x10010800
add edx, dword [ebp - 0x40]
mov edi, 0x2ccdb6ac
sub edi, 0xedb1e3f1
mov ebx, dword [edx]
mov dword [ebp - 0x24], 0x1278edbd
xor ebx, edi
xor dword [ebp - 0xc], 0x746d9a16
mov dword [esi], ebx
sub dword [ebp - 0x20], 0xd4414dbc
add esi, 4
add edx, 0x4f7d9cab
add edx, 0xb0826359
loop 0x1000af03
add eax, 0xb6a06c12
add eax, 0x4960f639
xor ebx, ebx
add ebx, eax
add eax, 0x9b23f909
add eax, 0x64dc06fc
mov ecx, 0x1cc70461
add ecx, 0xf338fb9f
add ecx, dword [ebp - 0x40]
call ebx
leave
ret

Function at 0x1000bc58
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10003d90]
jne 0x1000c001
ret
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x1000e130], eax
mov dword [0x1000e12c], ecx
mov dword [0x1000e128], edx
mov dword [0x1000e124], ebx
mov dword [0x1000e120], esi
mov dword [0x1000e11c], edi
mov word [0x1000e148], ss
mov word [0x1000e13c], cs
mov word [0x1000e118], ds
mov word [0x1000e114], es
mov word [0x1000e110], fs
mov word [0x1000e10c], gs
pushfd
pop dword [0x1000e140]
mov eax, dword [ebp]
mov dword [0x1000e134], eax
mov eax, dword [ebp + 4]
mov dword [0x1000e138], eax
lea eax, [ebp + 8]
mov dword [0x1000e144], eax
mov eax, dword [ebp - 0x320]
mov dword [0x1000e080], 0x10001
mov eax, dword [0x1000e138]
mov dword [0x1000e034], eax
mov dword [0x1000e028], 0xc0000409
mov dword [0x1000e02c], 1
mov eax, dword [0x10003d90]
mov dword [ebp - 0x328], eax
mov eax, dword [0x1000e014]
mov dword [ebp - 0x324], eax
call dword [sym.imp.kernel32.dll_IsDebuggerPresent]
mov dword [0x1000e078], eax
push 1
call sub.msvcr100.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.kernel32.dll_SetUnhandledExceptionFilter]
push 0x10003d98
call dword [sym.imp.kernel32.dll_UnhandledExceptionFilter]
cmp dword [0x1000e078], 0
jne 0x1000c0ed
push 1
call sub.msvcr100.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
leave
ret