joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401334
Capabilities:
Encode data using base64

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov ebx, dword [esp + 0x78]
lea edi, [esp + 0x1b]
mov esi, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
mov ecx, 0x41
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x74]
test eax, eax
je 0x4014ac
mov edi, dword [esp + 0x70]
inc edi
mov dword [esp + 8], 2
mov edx, 1
mov dword [esp + 4], ebx
jmp 0x4013a9
cmp esi, dword [esp + 0x7c]
jae 0x401440
and eax, 0x3f
mov al, byte [esp + eax + 0x1b]
mov ebx, dword [esp + 4]
mov byte [ebx + esi], al
lea ecx, [esi + 1]
lea eax, [edx + 3]
add dword [esp + 8], 3
add edi, 3
add edx, 2
cmp dword [esp + 0x74], edx
jbe 0x40144c
mov edx, eax
movzx eax, byte [edi - 1]
shl eax, 0x10
cmp dword [esp + 0x74], edx
jbe 0x4013be
movzx esi, byte [edi]
shl esi, 8
add eax, esi
mov ebx, dword [esp + 8]
cmp dword [esp + 0x74], ebx
jbe 0x4013ce
movzx esi, byte [edi + 1]
add eax, esi
mov esi, eax
shr esi, 0x12
and esi, 0x3f
mov ebp, eax
shr ebp, 0xc
and ebp, 0x3f
cmp dword [esp + 0x7c], ecx
jbe 0x401440
mov bl, byte [esp + esi + 0x1b]
mov esi, dword [esp + 4]
mov byte [esi + ecx], bl
lea esi, [ecx + 1]
cmp dword [esp + 0x7c], esi
jbe 0x401440
mov bl, byte [esp + ebp + 0x1b]
mov ebp, dword [esp + 4]
mov byte [ecx + ebp + 1], bl
lea esi, [ecx + 2]
cmp dword [esp + 0x74], edx
jbe 0x40142a
cmp dword [esp + 0x7c], esi
jbe 0x401440
mov ebp, eax
shr ebp, 6
and ebp, 0x3f
mov bl, byte [esp + ebp + 0x1b]
mov ebp, dword [esp + 4]
mov byte [ebp + esi], bl
lea esi, [ecx + 3]
mov ecx, dword [esp + 8]
cmp dword [esp + 0x74], ecx
ja 0x401374
mov ecx, esi
jmp 0x40138f
xor eax, eax
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, dword [esp + 4]
mov esi, 3
mov eax, dword [esp + 0x74]
xor edx, edx
div esi
test edx, edx
je 0x4014a8
cmp dword [esp + 0x7c], ecx
jbe 0x401440
mov byte [ebx + ecx], 0x3d
lea eax, [ecx + 1]
mov esi, edx
sub esi, ecx
mov ecx, esi
cmp edx, 2
je 0x401491
mov esi, dword [esp + 0x7c]
lea esi, [esi]
cmp eax, esi
je 0x401440
mov byte [ebx + eax], 0x3d
inc eax
lea edx, [ecx + eax]
cmp edx, 3
jne 0x401480
cmp eax, dword [esp + 0x7c]
jae 0x401440
mov byte [ebx + eax], 0
mov eax, 1
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, ecx
jmp 0x401491
xor eax, eax
jmp 0x401491
Function at 0x4014b0
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov esi, eax
mov dword [esp + 8], 0
and edx, 0xffff
mov dword [esp + 4], edx
mov dword [esp], 0
call sub.KERNEL32.dll_FindResourceW
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x40155b
mov dword [esp + 4], eax
mov dword [esp], 0
call sub.KERNEL32.dll_LoadResource
sub esp, 8
mov edi, eax
test eax, eax
je 0x401554
mov dword [esp + 4], ebx
mov dword [esp], 0
call sub.KERNEL32.dll_SizeofResource
push edx
push edx
mov ebp, eax
mov dword [esp], edi
call sub.KERNEL32.dll_LockResource
push ecx
mov edi, eax
mov dword [esp + 4], 0x404068
mov dword [esp], esi
call sub.msvcrt.dll__wfopen
mov ebx, eax
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov dword [esp + 4], ebp
mov dword [esp], edi
call sub.msvcrt.dll_fwrite
mov dword [esp], ebx
call sub.msvcrt.dll_fclose
xor eax, eax
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 2
jmp 0x40154c
mov eax, 1
jmp 0x40154c

Function at 0x401790
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x28
mov ebx, dword [sym.imp.msvcrt.dll__iob]
lea eax, [esp + 0x34]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
add ebx, 0x40
mov dword [esp + 0xc], ebx
mov dword [esp], str.Mingw_runtime_failure:_n
mov dword [esp + 0x1c], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x1c]
mov dword [esp], ebx
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
lea esi, [esi]
lea edi, [edi]
Function at 0x4017f0
Capabilities:
Allocate or change rwx memory

Disassembly:
sub esp, 0x5c
mov dword [esp + 0x4c], ebx
mov ebx, eax
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov dword [esp], ebx
mov dword [esp + 0x50], esi
mov esi, edx
mov dword [esp + 0x54], edi
mov edi, ecx
mov dword [esp + 0x58], ebp
call sub.KERNEL32.dll_VirtualQuery
sub esp, 0xc
test eax, eax
je 0x4018e6
mov eax, dword [esp + 0x38]
cmp eax, 4
jne 0x401860
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sub.msvcrt.dll_memcpy
mov ebx, dword [esp + 0x4c]
mov esi, dword [esp + 0x50]
mov edi, dword [esp + 0x54]
mov ebp, dword [esp + 0x58]
add esp, 0x5c
ret
cmp eax, 0x40
je 0x401835
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
mov eax, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
cmp eax, 0x40
setne byte [esp + 0x1e]
cmp eax, 4
setne byte [esp + 0x1f]
call sub.msvcrt.dll_memcpy
cmp byte [esp + 0x1f], 0
je 0x401845
cmp byte [esp + 0x1e], 0
je 0x401845
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sub.KERNEL32.dll_VirtualProtect
sub esp, 0x10
jmp 0x401845
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00401790
nop

Function at 0x401b80
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x406268
call sub.KERNEL32.dll_EnterCriticalSection
mov ebx, dword [0x406280]
sub esp, 4
test ebx, ebx
je 0x401bcb
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sub.KERNEL32.dll_TlsGetValue
sub esp, 4
mov esi, eax
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x401bc4
test esi, esi
je 0x401bc4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401ba0
mov dword [esp], 0x406268
call sub.KERNEL32.dll_LeaveCriticalSection
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret
Function at 0x401f38
Capabilities:
Accept command line arguments
Create directory
Create process on windows
Query environment variable

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
mov eax, 0x2868
call fcn.00401da0
sub esp, eax
call fcn.00401b60
mov dword [esp + 8], 0x208
lea ebx, [ebp - 0x2838]
mov dword [esp + 4], ebx
mov dword [esp], str._Temp_TDIR_X
call sub.KERNEL32.dll_ExpandEnvironmentStringsW
sub esp, 0xc
mov dword [esp], 0
call sub.msvcrt.dll_time
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x104
mov dword [esp], 0x406020
call fcn.00401dd0
mov dword [esp + 0x10], 0x404098
mov dword [esp + 0xc], 0x406020
mov dword [esp + 8], str._s_s
mov dword [esp + 4], 0x104
lea ebx, [ebp - 0x2630]
mov dword [esp], ebx
call fcn.00401dd0
mov dword [esp + 4], 0
mov dword [esp], 0x406020
call sub.KERNEL32.dll_CreateDirectoryW
sub esp, 8
mov edx, 2
mov eax, str.SI.exe.config
call fcn.00401564
mov edx, 3
mov eax, 0x4040c4
call fcn.00401564
xor edx, edx
mov eax, ebx
call fcn.004014b0
test eax, eax
je 0x402024
mov eax, 1
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret
call sub.KERNEL32.dll_GetCommandLineW
mov esi, eax
lea eax, [ebp - 0x283c]
mov dword [esp + 4], eax
mov dword [esp], esi
call sub.SHELL32.DLL_CommandLineToArgvW
push edi
push edi
mov eax, dword [eax]
mov dword [esp], eax
call sub.msvcrt.dll_wcslen
cmp dword [ebp - 0x283c], 1
jle 0x40210b
lea edx, [esi + eax*2 + 4]
mov dword [esp + 8], 0x104
lea esi, [ebp - 0x2428]
mov dword [esp + 4], esi
mov dword [esp], 0
mov dword [ebp - 0x284c], edx
call sub.KERNEL32.dll_GetModuleFileNameW
sub esp, 0xc
mov dword [esp], esi
call sub.msvcrt.dll_wcslen
mov dword [esp + 0xc], 0x208
lea edi, [ebp - 0x2220]
mov dword [esp + 8], edi
shl eax, 1
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.00401334
mov dword [esp + 0x10], edi
mov edx, dword [ebp - 0x284c]
mov dword [esp + 0xc], edx
mov dword [esp + 8], str._s_who_hs
mov dword [esp + 4], 0x1000
lea esi, [ebp - 0x2018]
mov dword [esp], esi
call fcn.00401dd0
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 0x406020
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], str.open
mov dword [esp], 0
call sub.SHELL32.DLL_ShellExecuteW
sub esp, 0x18
xor eax, eax
jmp 0x402018
mov edx, 0x40407a
jmp 0x40205a
Function at 0x7ffe539f
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, dword fs:[0x30]
cld
and bh, 0xff
nop
and bh, 0xff
cld
push edx
cdq
pop edx
nop
push edx
cdq
pop edx
cld
lea esp, [esp]
nop
pushal
inc eax
popal
clc
add eax, 0
cld
and bh, 0xff
stc
add eax, 0
cld
and bh, 0xff
clc
pushal
inc eax
popal
clc
add eax, 0
clc
and bh, 0xff
stc
pushal
inc eax
popal
cld
pushal
inc eax
popal
stc
push edx
cdq
pop edx
cld
lea esp, [esp]
clc
add eax, 0
nop
and bh, 0xff
cld
and al, 0xff
clc
call 0x7ffe53fa
pop edx
push edx
cdq
pop edx
nop
push edx
cdq
pop edx
and bh, 0xff
xor dx, dx
and bh, 0xff
cld
add edx, 0xd5e0
lea esp, [esp]
cld
xor ecx, ecx
lea esp, [esp]
nop
add eax, 0
stc
nop
mov cl, 0x1e
cld
and bh, 0xff
nop
clc
xor byte [ecx + edx], 0x7c
loop 0x7ffe5429
cld
and bh, 0xff
clc
cld
push dword fs:[0x24]
pop dword [edx + 0xa]
add al, 0
cld
mov cl, 0xff
push edx
cdq
pop edx
push edx
loop 0x7ffe5447
push edx
cdq
pop edx
cld
pushal
inc eax
popal
stc
mov dword [edx + 0x11], 0xffffacbb
lea esp, [esp]
cld
lea esp, [esp]
nop
stc
mov ecx, dword [eax + 0x2c]
clc
inc esi
dec esi
stc
mov dword [edx + 0x1b], ecx
lea esp, [esp]
nop
cld
cld
mov dword [edx + 0x100], ecx
clc
stc
mov dword [eax + 0x2c], esp
pushal
inc eax
popal
cld
cld
push 0
push 0
cld
and bh, 0xff
cld
pushal
inc eax
popal
push 0
cld
push edx
cdq
pop edx
clc
cld
push 0
cld
clc
push 0x30
clc
push edx
cdq
pop edx
stc
cld
push 0x20
cld
lea esp, [esp]
clc
push 0
push 0
push edx
cdq
pop edx
clc
push edx
cdq
pop edx
clc
add edx, 0xffff7f2c
add eax, 0
nop
pushal
inc eax
popal
cld
cld
stc
push edx
and bh, 0xff
clc
cld
push edx
stc
push edx
cdq
pop edx
nop
lea esp, [esp]
push 0
clc
call dword [edx + 0x8217]
nop
nop
add esp, 0x3f8
push edx
cdq
pop edx
cld
lea esp, [esp]
stc
cld
nop
xor eax, eax
push edx
cdq
pop edx
cld
pushal
inc eax
popal
and al, 0xff
nop
inc eax
add al, 0
stc
ret 0xc
Function at 0x4e2000
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xb9000]
push edi
or ebp, 0xffffffff
jmp 0x4e2022
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4e2029
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4e2018
mov eax, 1
add ebx, ebx
jne 0x4e203b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4e204c
jne 0x4e206b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4e206b
dec eax
add ebx, ebx
jne 0x4e2058
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4e2030
add ebx, ebx
jne 0x4e2067
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4e20bd
xor ecx, ecx
sub eax, 3
jb 0x4e2083
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4e20f2
sar eax, 1
mov ebp, eax
jmp 0x4e208e
add ebx, ebx
jne 0x4e208e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4e205c
inc ecx
add ebx, ebx
jne 0x4e209c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4e205c
add ebx, ebx
jne 0x4e20a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4e209e
jne 0x4e20ba
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4e209e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4e20dc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4e20ce
jmp 0x4e201e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4e20dc
add edi, ecx
jmp 0x4e201e
pop esi
mov edi, esi
mov ecx, 0x17da
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4e20fa
cmp byte [edi], 0x13
jne 0x4e20fa
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 0x4e20ff
lea edi, [esi + 0xde000]
mov eax, dword [edi]
or eax, eax
je 0x4e216e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xe21f4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xe2258]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4e212c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xe2260]
or eax, eax
je 0x4e2168
mov dword [ebx], eax
add ebx, 4
jmp 0x4e2149
call dword [esi + 0xe225c]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x4e219f
cmp al, 0xef
ja 0x4e2192
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x4e2174
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x4e2181
mov ebp, dword [esi + 0xe2264]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1f7]
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
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4e21d3
sub esp, 0xffffff80
jmp 0x43e6cb
Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
call 0x43000c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403daa
sub eax, 0x403d50
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp loc.00401219
Function at 0x9ee740
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
test edi, edi
je 0x9ee78c
mov cl, byte [ebx + esi]
mov dl, cl
mov al, cl
shr dl, 1
and al, 0xfe
not dl
movzx eax, al
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
shr dl, 1
xor dl, cl
or cl, 1
test dl, 2
movzx ecx, cl
cmove ecx, eax
mov byte [ebx + esi], cl
inc esi
cmp esi, edi
jb 0x9ee752
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x9ee7f0
Capabilities:
Hash data using md4
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0xf0000040
push 1
push 0
push 0
lea edi, [esi + 4]
mov dword [esi], 0
push esi
mov dword [edi], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x9ee842
push edi
push 0
push 0
push 0x8002
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x9ee848
push eax
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov dword [esi], 0
pop edi
xor eax, eax
pop esi
pop ebp
ret
pop edi
mov eax, 1
pop esi
pop ebp
ret

Function at 0xa06d37
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00a069f7

Function at 0xa0bb31
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00a0b9b0

Function at 0xa110e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0xa1110d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0xa1110d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

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

Disassembly:
pushal
nop
nop
nop
mov eax, section..rdata
nop
mov ebx, 0x407ef8
nop
mov ecx, 0x435c41ef
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
xor dword [eax], ecx
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x42e024
nop
nop
mov eax, section._RDATA
mov ebx, 0x42cd70
nop
nop
mov ecx, 0x217170aa
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x42e06c
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x1001ae64
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
movzx eax, byte [ebp + 8]
test eax, eax
je 0x1001ae81
push 0x1ddd
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
jmp 0x1001aead
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x1001aead
push 0
push 0xe15
push 0x748
push 0
push 0x1dfe
push 0x5f5
push 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esp, ebp
pop ebp
ret
Function at 0x1002ba58
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
and dword [ebp - 4], 0
push 0x1ba
lea eax, [ebp - 0x10]
push eax
push 0x57ca
lea eax, [ebp + 8]
push eax
push 0x58ff
push 1
call fcn.1002b7a9
add esp, 0x18
mov eax, dword [ebp - 0x10]
movzx eax, word [eax]
cmp eax, 0x5a4d
je 0x1002ba97
xor eax, eax
jmp 0x1002bbd4
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x5a70
push 1
lea eax, [ebp + 8]
push eax
call fcn.1002b882
add esp, 0x14
mov eax, dword [ebp - 8]
cmp dword [eax], 0x4550
je 0x1002bac4
xor eax, eax
jmp 0x1002bbd4
push 1
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
call fcn.1002b42a
add esp, 0xc
cmp dword [ebp - 0xc], 0
jne 0x1002bae2
xor eax, eax
jmp 0x1002bbd4
lea eax, [ebp - 4]
push eax
push 0x123f
push dword [ebp - 8]
push dword [ebp - 0x10]
push 1
push 0x4990
push 0x210
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.1002b628
add esp, 0x24
push 0x3357
lea eax, [ebp + 8]
push eax
push 1
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
call fcn.1002b8f1
add esp, 0x14
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
sub ecx, dword [eax + 0x34]
mov dword [ebp - 0x14], ecx
je 0x1002bb48
push 1
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 4]
push eax
call fcn.1002b961
add esp, 0xc
push dword [ebp - 4]
call fcn.1002a8b3
pop ecx
test eax, eax
jne 0x1002bb59
xor eax, eax
jmp 0x1002bbd4
push 0x7897
push 1
lea eax, [ebp - 4]
push eax
call fcn.1002b9b5
add esp, 0xc
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [eax + 0x28], 0
je 0x1002bbbc
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0x28]
mov dword [ebp - 0x18], ecx
jne 0x1002bb8b
xor eax, eax
jmp 0x1002bbd4
push 0
push 1
push 0xdeadbeef
call dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x1002bba4
xor eax, eax
jmp 0x1002bbd4
push 0x6665
lea eax, [ebp - 4]
push eax
push 1
push 0x4a4e
call fcn.1002ba0a
add esp, 0x10
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0
je 0x1002bbcd
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
jmp 0x1002bbd1
and dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret
Function at 0x1003f05b
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x1003f092
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x10]
add eax, dword [ecx]
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
jmp 0x1003f0a1
push 0x1ddd
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov esp, ebp
pop ebp
ret
Function at 0x1004a3a0
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + 5]
and ecx, 0xf
movzx edx, byte [0x1066c64a]
or ecx, edx
mov byte [ebp - 1], cl
movzx ax, byte [ebp - 1]
movzx ecx, ax
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov eax, dword [ebp - 8]
movzx ecx, byte [eax + 4]
push ecx
push 0x1066c6d0
call fcn.10048850
add esp, 8
mov esp, ebp
pop ebp
ret 4

Function at 0x100536b0
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x10080340]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov word [ebp - 0x20], ax
xor ecx, ecx
mov word [ebp - 0x1e], cx
cmp dword [ebp + 8], 0xffffffff
jne 0x100536d4
jmp 0x10053743
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0x100536e8
jmp 0x10053743
movsx ecx, word [ebp - 0x1c]
movsx edx, word [ebp - 0x1a]
imul ecx, edx
mov dword [ebp - 0x24], ecx
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x24]
push edx
push 0x20
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterA]
test eax, eax
jne 0x10053714
jmp 0x10053743
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x24]
push eax
movzx ecx, word [ebp - 0x14]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputAttribute]
test eax, eax
jne 0x10053735
jmp 0x10053743
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10062c3d
mov esp, ebp
pop ebp
ret