joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403526
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
sub eax, dword [esp + 8]
sar eax, 2
push esi
test eax, eax
je 0x4035ac
xor esi, esi
mov al, byte [esi + 0x4e5bc0]
mov edx, str.Own_head
xor al, 0x73
sub al, 0x6c
xor al, 0x74
mov byte [esi + 0x4e5bc0], al
call fcn.00405124
push eax
call fcn.004052e4
mov al, byte [esi + 0x4e5bc0]
mov edx, str.Earth
add al, 0x4e
xor al, 0xdc
pop ecx
mov byte [esi + 0x4e5bc0], al
call fcn.00405124
push eax
call fcn.004052e4
mov al, byte [esi + 0x4e5bc0]
xor al, 0xac
mov dword [esp], 0x491e2c
sub al, 0x65
xor al, 0x22
sub al, 0x73
mov byte [esi + 0x4e5bc0], al
call fcn.00457b1b
xor byte [esi + 0x4e5bc0], al
inc esi
pop ecx
cmp esi, 0x4ac
jb 0x403539
lea ecx, [esp + 0xc]
call fcn.004047f2
pop esi
pop ecx
ret 0x14

Function at 0x403c02
Capabilities:
Set console window title

Disassembly:
push 0x14
mov eax, 0x48417c
call fcn.0042db87
and dword [ebp - 4], 0
push str.FreeConsole
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
call eax
push 1
call fcn.0042d44f
pop ecx
mov ecx, eax
call fcn.00403b90
mov dword [ebp - 0x14], eax
imul bx
shr eax, 0xb4
shl ax, 0xe4
rol esi, 0xf1
sub eax, edi
mov edx, 0xfd
dec esi
inc cx
mov cx, si
mul ecx
dec edi
mul bx
rcr ax, 0xa0
ror edi, 0x38
imul di
or ebx, 0x2e0
inc si
or ecx, 0x3dd
shl esi, 0x1b
shr eax, 0x4b
rcr eax, 0x25
mul edi
xor eax, 0x378
dec ax
add edi, 0xc7
jb 0x403ca5
test eax, 0x49
jne 0x403ce1
rcl ecx, 0x56
mul eax
dec cx
jmp 0x403cbd
sub bx, 0x264
shl ebx, 0xe7
movzx edx, di
or esi, 0x2e2
rcl edx, 0xc0
shr dx, 0x32
shr edi, 0xbd
imul di
ja 0x403ce1
and eax, 0xc8
rol si, 0x9e
mov di, 0x142
inc ebx
rol bx, 0xd6
rcr di, 0xe9
shr ax, 4
jmp 0x403cf9
dec ebx
sub eax, esi
rcl esi, 0xda
sub ax, 0x18
imul edx
dec ax
inc esi
and esi, 0x2fa
ror eax, 0x31
mov eax, 0x301
mul esi
push str.Mouse_Adapter
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x403d28
push ecx
mov ecx, eax
call fcn.00403d4e
or dword [ebp - 4], 0xffffffff
xor eax, eax
call fcn.0042daec
ret 0x10
push 0
call dword [sym.imp.KERNEL32.dll_SwitchToFiber]
jmp 0x403d1a
Function at 0x40ac8b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x40acac
jl 0x40aca3
test edi, edi
jne 0x40acac
xor eax, eax
xor edx, edx
jmp 0x40ad6d
cmp dword [ebx + 0x38], 0
je 0x40acc1
push eax
push edi
push dword [ebp + 8]
call fcn.0040ad73
jmp 0x40ad6d
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x40ad08
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x40ad08
cmp eax, edi
jb 0x40ace2
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.0042f100
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x40ad0e
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x40ad62
mov ecx, ebx
call fcn.0040a348
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x40ad4d
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.00458e49
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x40ad62
jmp 0x40ad20
test edx, edx
je 0x40ad62
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.00458e49
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x41c9df
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
xor edx, edx
push esi
mov esi, dword [ebp + 0xc]
cmp dword [ebp + 0x10], edx
jbe 0x41ca02
movzx eax, byte [esi + edx]
xor eax, ecx
imul ecx, eax, 0x1000193
inc edx
cmp edx, dword [ebp + 0x10]
jb 0x41c9f0
mov eax, ecx
pop esi
pop ebp
ret

Function at 0x42caa1
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
call fcn.0045b6d3
push 2
lea ecx, [ebp - 4]
push ecx
mov eax, dword [eax + 0x14]
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx eax, word [ebp - 4]
sub eax, 0x30
je 0x42cae0
sub eax, 1
je 0x42cadb
sub eax, 1
je 0x42cad7
xor eax, eax
leave
ret
push 3
jmp 0x42cae2
xor eax, eax
inc eax
leave
ret
push 2
pop eax
leave
ret

Function at 0x42e603
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x42e642
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42e642
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42e642
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x42e642
cmp dword [ecx + 0x74], 0xe
jbe 0x42e642
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x46aaf3
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x48d9bc
push 0x48d9b4
push str.FlsAlloc
push 0x1e
call fcn.0046a7c3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x46ab27
push dword [ebp + 8]
mov ecx, esi
call dword [0x48821c]
call esi
jmp 0x46ab2d
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x46ab71
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x48d9cc
push 0x48d9c4
push str.FlsGetValue
push 0x20
call fcn.0046a7c3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x46aba8
push dword [ebp + 8]
mov ecx, esi
call dword [0x48821c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x46f025
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0046ec0c

Function at 0x46f553
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0042e8b0
mov eax, dword [0x49b100]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0046d3c1
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x46f595
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x46f6f1
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004838b0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x4e8f58]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00470ae7
mov ecx, dword [esi*4 + 0x4e8f58]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x46f6ea
cmp eax, dword [edi + ecx + 0x24]
jne 0x46f6ea
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x46f6ea
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00470ae7
add esp, 0x14
test edx, edx
jl 0x46f6ea
jg 0x46f660
test eax, eax
jb 0x46f6ea
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x46f6ea
jl 0x46f67a
cmp dword [ebp - 0x1008], eax
ja 0x46f6ea
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x46f698
test ebx, ebx
je 0x46f6d1
cmp ecx, edi
jae 0x46f6d1
mov al, byte [ecx]
cmp al, 0xd
jne 0x46f6b2
lea eax, [edi - 1]
cmp ecx, eax
jae 0x46f6be
cmp byte [ecx + 1], 0xa
jne 0x46f6be
inc ecx
jmp 0x46f6be
movzx eax, al
movsx eax, byte [eax + 0x49b3c8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x46f698
cmp edx, ebx
jne 0x46f698
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x46f6ef
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0042d338
leave
ret
Function at 0x46fc6f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4e8f58]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x46fcaf
cmp byte [ebx], 0xa
jne 0x46fcaf
or byte [eax + edi + 0x28], 4
jmp 0x46fcb4
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x46fdb2
mov al, byte [edx]
cmp al, 0x1a
je 0x46fd94
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x46fce3
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x46fd08
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x46fd12
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x46fcc5
jmp 0x46fdb2
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x46fd8f
cmp dword [ebp - 0xc], 0
je 0x46fd8f
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4e8f58]
test byte [eax + edi + 0x28], 0x48
je 0x46fd69
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x46fd54
mov byte [esi], dl
jmp 0x46fd65
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4e8f58]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x46fdb2
cmp byte [ebp - 1], 0xa
jne 0x46fd78
cmp esi, ebx
jne 0x46fd78
mov byte [esi], 0xa
jmp 0x46fdb1
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00470b05
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x46fdb2
mov byte [esi], 0xd
jmp 0x46fdb1
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4e8f58]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x46fdae
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x46fdb2
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x46fdbb
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x4e8f58]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x46fdfe
cmp word [esi], dx
jne 0x46fdfe
or byte [edi + eax + 0x28], 4
jmp 0x46fe03
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x46ff56
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x46ff36
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x46fe45
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x46fe7b
cmp eax, edx
jae 0x46fe87
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x46fe1d
jmp 0x46ff56
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x46ff32
cmp dword [ebp - 0x14], 0
je 0x46ff32
mov eax, dword [ebx*4 + 0x4e8f58]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x46ff0a
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x46fed3
mov word [esi], cx
jmp 0x46ff06
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4e8f58]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4e8f58]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4e8f58]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x46ff56
pop ebx
cmp word [ebp - 4], bx
jne 0x46ff1b
cmp esi, dword [ebp + 0xc]
jne 0x46ff1b
mov word [esi], bx
jmp 0x46ff53
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00470b05
add esp, 0x10
cmp word [ebp - 4], bx
je 0x46ff56
push 0xd
jmp 0x46ff4f
mov ecx, dword [ebx*4 + 0x4e8f58]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x46ff4d
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x46ff56
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4742d2
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x49b100]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x47431d
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004746ac
test al, al
jne 0x474317
sub edx, 2
cmp edx, edi
jne 0x4742fd
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x47433f
lea eax, [edi + 2]
cmp edx, eax
je 0x47433f
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00473f99
add esp, 0x10
jmp 0x474439
push esi
lea ecx, [ebp - 0x255]
call fcn.004746ac
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x474382
push dword [ebp - 0x25c]
jmp 0x47432f
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4743bf
cmp word [ebp - 0x226], 0
je 0x4743e0
cmp word [ebp - 0x226], ax
jne 0x4743bf
cmp word [ebp - 0x224], 0
je 0x4743e0
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00473f99
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x47442c
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x474399
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x474414
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x474439
push 0x473ab8
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004800a0
add esp, 0x10
jmp 0x474409
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042d338
leave
ret
Function at 0x475826
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x4758c3
push ebx
push esi
call fcn.004757e2
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00472c17
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x475870
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4758c2
push edi
push eax
call fcn.0046c2ea
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x475890
call fcn.0046a174
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4758c1
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00472c17
add esp, 0x20
test eax, eax
jne 0x4758af
push edi
call fcn.0046a174
jmp 0x4758b7
push ebx
call fcn.0046a174
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x4758c6
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4758d7
pop esi
ret
push ebx
push edi
push esi
call fcn.004757e2
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0046c2ea
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4758ff
push ebx
push esi
push edi
call fcn.0042f100
add esp, 0xc
push 0
call fcn.0046a174
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4761e0
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00475b72

Function at 0x476667
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0047653b

Function at 0x483670
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x48369d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x48369d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x70dc7df2
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x71856014]
mov dword [ebp - 0xc], eax
jmp 0x70dc7eef
jmp 0x70dc7fde
jmp 0x70dc80cd
jmp 0x70dc81bc
jmp 0x70dc82ab
jmp 0x70dc839a
jmp 0x70dc8489
jmp 0x70dc8578
jmp 0x70dc8667
jmp 0x70dc8756
jmp 0x70dc8845
jmp 0x70dc8934
jmp 0x70dc8a23
jmp 0x70dc8b12
cmp dword [ebp - 0xc], 0
je 0x70dcbfb6
mov eax, dword [0x71856014]
mov dword [0x7185600c], eax
jmp 0x70dc8c15
jmp 0x70dc8d04
jmp 0x70dc8df3
jmp 0x70dc8ee2
jmp 0x70dc8fd1
jmp 0x70dc90c0
jmp 0x70dc91af
jmp 0x70dc929e
jmp 0x70dc938d
jmp 0x70dc947c
jmp 0x70dc956b
jmp 0x70dc965a
jmp 0x70dc9749
jmp 0x70dc9838
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x3c]
mov eax, dword [ebp - 0xc]
add eax, edx
mov dword [0x71856008], eax
jmp 0x70dc9937
jmp 0x70dc9a26
jmp 0x70dc9b15
jmp 0x70dc9c04
jmp 0x70dc9cf3
jmp 0x70dc9de2
jmp 0x70dc9ed1
jmp 0x70dc9fc0
jmp 0x70dca0af
jmp 0x70dca19e
jmp 0x70dca28d
jmp 0x70dca37c
jmp 0x70dca46b
jmp 0x70dca55a
mov eax, dword [0x71856008]
mov eax, dword [eax + 0x50]
mov dword [ebp - 0x10], eax
jmp 0x70dca654
jmp 0x70dca743
jmp 0x70dca832
jmp 0x70dca921
jmp 0x70dcaa10
jmp 0x70dcaaff
jmp 0x70dcabee
jmp 0x70dcacdd
jmp 0x70dcadcc
jmp 0x70dcaebb
jmp 0x70dcafaa
jmp 0x70dcb099
jmp 0x70dcb188
jmp 0x70dcb277
mov dword [esp + 0xc], 0x40
mov dword [esp + 8], 0x3000
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
call eax
sub esp, 0x10
mov dword [0x71856004], eax
jmp 0x70dcb393
jmp 0x70dcb482
jmp 0x70dcb571
jmp 0x70dcb660
jmp 0x70dcb74f
jmp 0x70dcb83e
jmp 0x70dcb92d
jmp 0x70dcba1c
jmp 0x70dcbb0b
jmp 0x70dcbbfa
jmp 0x70dcbce9
jmp 0x70dcbdd8
jmp 0x70dcbec7
jmp 0x70dcbfb6
nop
leave
ret
Function at 0x70dcda21
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x71856008]
movzx eax, word [eax + 0x14]
movzx eax, ax
mov edx, dword [0x71856008]
add eax, edx
add eax, 0x18
mov dword [ebp - 0xc], eax
jmp 0x70dcdb30
jmp 0x70dcdc1f
jmp 0x70dcdd0e
jmp 0x70dcddfd
jmp 0x70dcdeec
jmp 0x70dcdfdb
jmp 0x70dce0ca
jmp 0x70dce1b9
jmp 0x70dce2a8
jmp 0x70dce397
jmp 0x70dce486
jmp 0x70dce575
jmp 0x70dce664
jmp 0x70dce753
mov dword [ebp - 0x14], 0
jmp 0x70dce849
jmp 0x70dce938
jmp 0x70dcea27
jmp 0x70dceb16
jmp 0x70dcec05
jmp 0x70dcecf4
jmp 0x70dcede3
jmp 0x70dceed2
jmp 0x70dcefc1
jmp 0x70dcf0b0
jmp 0x70dcf19f
jmp 0x70dcf28e
jmp 0x70dcf37d
jmp 0x70dcf46c
mov dword [ebp - 0x18], 0
jmp 0x70dcf562
jmp 0x70dcf651
jmp 0x70dcf740
jmp 0x70dcf82f
jmp 0x70dcf91e
jmp 0x70dcfa0d
jmp 0x70dcfafc
jmp 0x70dcfbeb
jmp 0x70dcfcda
jmp 0x70dcfdc9
jmp 0x70dcfeb8
jmp 0x70dcffa7
jmp 0x70dd0096
jmp 0x70dd0185
mov dword [ebp - 0x10], 0
jmp 0x70dd027b
jmp 0x70dd036a
jmp 0x70dd0459
jmp 0x70dd0548
jmp 0x70dd0637
jmp 0x70dd0726
jmp 0x70dd0815
jmp 0x70dd0904
jmp 0x70dd09f3
jmp 0x70dd0ae2
jmp 0x70dd0bd1
jmp 0x70dd0cc0
jmp 0x70dd0daf
jmp 0x70dd0e9e
mov dword [ebp - 0x10], 0
jmp 0x70dd504a
jmp 0x70dd0f99
jmp 0x70dd1088
jmp 0x70dd1177
jmp 0x70dd1266
jmp 0x70dd1355
jmp 0x70dd1444
jmp 0x70dd1533
jmp 0x70dd1622
jmp 0x70dd1711
jmp 0x70dd1800
jmp 0x70dd18ef
jmp 0x70dd19de
jmp 0x70dd1acd
jmp 0x70dd1bbc
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xc]
mov edx, dword [0x71856004]
add eax, edx
mov dword [ebp - 0x14], eax
jmp 0x70dd1cbc
jmp 0x70dd1dab
jmp 0x70dd1e9a
jmp 0x70dd1f89
jmp 0x70dd2078
jmp 0x70dd2167
jmp 0x70dd2256
jmp 0x70dd2345
jmp 0x70dd2434
jmp 0x70dd2523
jmp 0x70dd2612
jmp 0x70dd2701
jmp 0x70dd27f0
jmp 0x70dd28df
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x14]
mov edx, dword [0x7185600c]
add eax, edx
mov dword [ebp - 0x18], eax
jmp 0x70dd29df
jmp 0x70dd2ace
jmp 0x70dd2bbd
jmp 0x70dd2cac
jmp 0x70dd2d9b
jmp 0x70dd2e8a
jmp 0x70dd2f79
jmp 0x70dd3068
jmp 0x70dd3157
jmp 0x70dd3246
jmp 0x70dd3335
jmp 0x70dd3424
jmp 0x70dd3513
jmp 0x70dd3602
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x10]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x18]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
jmp 0x70dd370d
jmp 0x70dd37fc
jmp 0x70dd38eb
jmp 0x70dd39da
jmp 0x70dd3ac9
jmp 0x70dd3bb8
jmp 0x70dd3ca7
jmp 0x70dd3d96
jmp 0x70dd3e85
jmp 0x70dd3f74
jmp 0x70dd4063
jmp 0x70dd4152
jmp 0x70dd4241
jmp 0x70dd4330
add dword [ebp - 0xc], 0x28
jmp 0x70dd4423
jmp 0x70dd4512
jmp 0x70dd4601
jmp 0x70dd46f0
jmp 0x70dd47df
jmp 0x70dd48ce
jmp 0x70dd49bd
jmp 0x70dd4aac
jmp 0x70dd4b9b
jmp 0x70dd4c8a
jmp 0x70dd4d79
jmp 0x70dd4e68
jmp 0x70dd4f57
jmp 0x70dd5046
add dword [ebp - 0x10], 1
mov eax, dword [0x71856008]
movzx eax, word [eax + 6]
movzx eax, ax
cmp eax, dword [ebp - 0x10]
ja 0x70dd0eaa
nop
leave
ret