joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10156403
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x44
mov eax, dword [ebp + 8]
mov ecx, dword [0x102a157c]
add ecx, 0xffffea42
mov dword [0x102a1580], ecx
mov dword [ebp - 0x10], eax
call fcn.10157014
mov ecx, eax
mov edx, dword [eax + 0x3c]
mov dword [0x102a157c], 0x1516
mov edx, dword [eax + edx + 0x78]
mov dword [0x102a157c], 0x11d0
mov eax, dword [eax + edx + 0x20]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], eax
xor eax, eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x1c]
add ecx, edx
mov dword [0x102a1580], 0x6c2
mov esi, dword [ebp - 0x18]
mov edi, dword [ebp - 0x14]
mov ebx, dword [esi + edi + 0x18]
cmp ebx, 0
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], eax
je 0x10156588
jmp 0x101564aa
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x34]
xor esi, esi
mov edi, dword [ebp - 0x24]
mov ebx, dword [edi + eax*4]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], esi
jmp 0x101564c6
mov eax, 0xffffefb4
xor ecx, ecx
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x14]
add edx, dword [edx + esi + 0x24]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], ecx
jmp 0x10156488
mov eax, dword [ebp - 0x48]
mov ecx, eax
mov edx, dword [ebp - 0x44]
add ecx, edx
mov esi, dword [ebp - 0x18]
mov bl, byte [esi + ecx]
mov ecx, dword [ebp - 0x10]
mov bh, byte [ecx + eax]
cmp bl, bh
sete cl
cmp bl, 0
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x4d], bh
mov byte [ebp - 0x4e], cl
je 0x10156517
mov eax, dword [ebp - 0x4c]
add eax, 1
mov cl, byte [ebp - 0x4d]
cmp cl, 0
setne dl
mov ch, byte [ebp - 0x4e]
and ch, dl
cmp eax, 0x20
setb dl
and ch, dl
test ch, 1
mov dword [ebp - 0x48], eax
jne 0x101564c6
mov al, byte [ebp - 0x4e]
test al, 1
jne 0x1015655c
jmp 0x10156520
mov eax, 0xffffeebe
xor ecx, ecx
mov dword [0x102a157c], 0x10da
mov edx, dword [ebp - 0x3c]
add edx, 2
mov esi, dword [ebp - 0x38]
add esi, 1
mov edi, dword [ebp - 0x20]
cmp esi, edi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x28], ecx
jb 0x10156488
jmp 0x10156588
mov eax, dword [ebp - 0x3c]
movzx ecx, word [eax]
mov edx, dword [ebp - 0x40]
mov dword [0x102a1580], edx
mov esi, dword [ebp - 0x18]
mov edi, dword [ebp - 0x14]
add esi, dword [esi + edi + 0x1c]
mov ebx, dword [ebp - 0x18]
add ebx, dword [esi + ecx*4]
mov dword [0x102a157c], 0x1a69
mov dword [ebp - 0x28], ebx
mov eax, dword [ebp - 0x28]
add esp, 0x44
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10156cb4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x60
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [0x102a1580], 0x26bd
mov dword [0x102a157c], 0xe95
mov edx, ecx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x38], ecx
jmp 0x10156d66
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x40]
lea edx, section..data
imul esi, eax, 0xc8
mov edi, edx
add edi, esi
add edi, 0x84
mov esi, dword [edi]
imul edi, eax, 0xc8
mov ebx, edx
add ebx, edi
mov edi, dword [ebx]
imul ebx, eax, 0xc8
add edx, ebx
add edx, 0x3c
movzx edx, word [edx]
xor edx, esi
mov esi, dword [ebp - 0x44]
add esi, ecx
mov dword [esp], esi
mov dword [esp + 4], edi
mov dword [esp + 8], edx
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x50], edx
call fcn.10156ee0
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x4c]
add eax, ecx
mov edx, dword [ebp - 0x48]
add edx, 1
cmp edx, 0x1b5
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], edx
je 0x10156e4e
jmp 0x10156ce6
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x34]
lea edx, section..data
imul esi, eax, 0xc8
mov edi, edx
add edi, esi
add edi, 0x84
mov esi, dword [edi]
imul edi, eax, 0xc8
add edx, edi
add edx, 0x3c
movzx edx, word [edx]
xor edx, esi
add edx, ecx
add eax, 1
cmp eax, 0x1b5
mov ecx, edx
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], eax
jne 0x10156d66
mov dword [0x102a1580], 0x130b
lea eax, [0x1015970f]
mov ecx, 0xe
lea edx, [ebp - 0x2c]
mov dword [0x102a157c], 0x1346
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], 0xe
mov dword [ebp - 0x58], edx
mov dword [ebp - 0x5c], ecx
call fcn.10156024
mov dword [0x102a1580], 0xb5d
mov dword [0x102a157c], 0x6c2
call fcn.1015683a
mov dword [esp], eax
mov eax, dword [ebp - 0x58]
mov dword [esp + 4], eax
call fcn.10155e9a
mov ecx, eax
mov dword [0x102a159c], eax
mov eax, esp
mov edx, dword [ebp - 0x54]
mov dword [eax + 4], edx
mov dword [eax + 0xc], 4
mov dword [eax + 8], 0x1000
mov dword [eax], 0
call ecx
sub esp, 0x10
xor ecx, ecx
mov edx, ecx
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x3c], ecx
jmp 0x10156ce6
mov dword [0x102a1580], 0x9b1
mov eax, dword [ebp - 0x44]
mov dword [esp], eax
mov dword [esp + 4], eax
mov ecx, dword [ebp - 0x54]
mov dword [esp + 8], ecx
call fcn.10156593
xor eax, eax
mov ecx, dword [ebp - 0x44]
add ecx, 0x1096c5
mov edx, dword [ebp - 0x30]
mov dword [edx], ecx
mov ecx, dword [0x102a157c]
add ecx, 0x183c
mov dword [0x102a157c], ecx
mov dword [edx + 4], 0x11f800
mov dword [0x102a1580], 0x13e1
mov ecx, dword [ebp - 0x44]
add ecx, 0x87421
mov dword [edx + 8], ecx
mov ecx, dword [0x102a157c]
add ecx, 0x1510
mov dword [0x102a157c], ecx
mov dword [edx + 0xc], 0x20b0
mov ecx, dword [0x102a1580]
add ecx, 0xfffff7d7
mov dword [0x102a1580], ecx
add esp, 0x60
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10157181
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor edi, edi
mov ebx, 0x4207
mov dword [0x102a1584], 0
mov dword [0x102a1588], 0
mov dword [0x102a1594], 0
mov dword [0x102a1580], 0x222c
mov dword [0x102a157c], 0x4207
cmp eax, 0
mov dword [ebp - 0x10], eax
mov eax, edi
mov dword [ebp - 0x14], eax
mov eax, edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], edi
je 0x10157325
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x14]
mov edi, 0x100
add ecx, 0xfffff351
mov dword [0x102a157c], ecx
add edx, 1
mov dword [ebp - 0x30], eax
mov eax, edx
cdq
idiv edi
mov dword [0x102a1584], edx
mov ecx, dword [ebp - 0x24]
movzx ebx, byte [ecx + edx]
add ebx, esi
mov eax, ebx
mov dword [ebp - 0x34], edx
cdq
idiv edi
mov dword [0x102a1588], edx
mov dword [0x102a157c], 0x1bda
mov esi, dword [ebp - 0x34]
mov cl, byte [ecx + esi]
mov byte [0x102a158c], cl
mov dword [0x102a157c], 0x297
mov edi, dword [ebp - 0x24]
mov cl, byte [edi + edx]
mov byte [edi + esi], cl
mov dword [0x102a157c], 0x2f0
mov cl, byte [0x102a158c]
mov edx, dword [0x102a1588]
mov byte [edi + edx], cl
mov edx, dword [0x102a1584]
movzx edx, byte [edi + edx]
mov ebx, dword [0x102a1588]
movzx ebx, byte [edi + ebx]
add ebx, edx
mov dword [0x102a1580], 0xffffe4ab
and ebx, 0xff
mov dword [0x102a1594], ebx
mov dword [0x102a157c], 0x1696
mov cl, byte [edi + ebx]
mov edx, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x30]
mov ch, byte [edx + ebx]
mov byte [0x102a1599], ch
mov byte [0x102a159a], cl
xor ch, cl
mov byte [0x102a1598], ch
mov dword [0x102a1580], 0xffffef26
mov dword [0x102a157c], 0x15f1
mov edx, dword [ebp - 0x20]
mov byte [edx + ebx], ch
add ebx, 1
mov edx, dword [ebp - 0x10]
cmp ebx, edx
mov dword [ebp - 0x38], ebx
je 0x10157325
mov eax, dword [0x102a157c]
mov ecx, dword [0x102a1584]
mov edx, dword [0x102a1588]
mov esi, dword [ebp - 0x38]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], esi
jmp 0x101571f6
mov dword [0x102a1580], 0x23ec
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10157337
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa0
call fcn.1000106e
cmp eax, 0
sete cl
mov byte [esp + 0x2f], cl
xor eax, eax
mov cl, byte [esp + 0x2f]
test cl, 1
mov dword [esp + 0x28], eax
jne 0x1015737f
jmp 0x101574b7
mov eax, dword [esp + 0x24]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x20], eax
jmp 0x10157403
lea eax, [esp + 0x30]
lea ecx, [esp + 0x40]
mov dword [esp], eax
mov dword [esp + 0x1c], ecx
call fcn.10156cb4
lea ecx, [0x101566ce]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x88], edx
mov dword [0x102a1580], 0x1082
mov dword [esp + 0x8c], 0x11f800
mov edx, dword [0x102a1568]
mov dword [esp + 0x80], edx
mov edx, dword [0x102a156c]
mov dword [esp + 0x44], edx
mov edx, dword [0x102a1570]
mov dword [esp + 0x64], edx
mov edx, dword [0x102a1574]
mov dword [esp + 0x5c], edx
mov edx, dword [0x102a1578]
mov dword [esp + 0x90], edx
mov dword [0x102a157c], 0xffffe113
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], ecx
mov eax, dword [esp + 0x20]
cmp word [eax], 0x5a4d
mov dword [esp + 0x24], eax
jne 0x10157368
mov eax, dword [esp + 0x24]
add eax, 0x3c
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [esp + 0x24]
cmp dword [edx + ecx], 0x4550
mov dword [esp + 0x10], ecx
jne 0x10157368
mov eax, dword [esp + 0x24]
mov dword [esp + 0x4c], eax
mov dword [0x102a157c], 0x1516
mov ecx, dword [esp + 0x10]
mov edx, dword [eax + ecx + 0x50]
mov dword [esp + 0x98], edx
mov dword [0x102a1580], 0x3a6
call fcn.10155cc7
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0xc], ecx
jne 0x101574af
lea eax, [esp + 0x40]
mov ecx, dword [esp + 0x38]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.1015624f
mov dword [0x102a1580], 0x2491
mov ecx, esp
lea edx, [esp + 0x40]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 1
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x28]
mov esp, ebp
pop ebp
ret
Function at 0x422e00
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x15000]
push edi
or ebp, 0xffffffff
jmp 0x422e22
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x422e29
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x422e18
mov eax, 1
add ebx, ebx
jne 0x422e3b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x422e30
jne 0x422e4c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x422e30
xor ecx, ecx
sub eax, 3
jb 0x422e60
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x422ed2
mov ebp, eax
add ebx, ebx
jne 0x422e6b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x422e78
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x422e9c
inc ecx
add ebx, ebx
jne 0x422e88
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x422e7d
jne 0x422e99
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x422e7d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x422ebc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x422ead
jmp 0x422e1e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x422ebc
add edi, ecx
jmp 0x422e1e
pop esi
mov edi, esi
mov ecx, 0xadf
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x422eda
cmp byte [edi], 5
jne 0x422eda
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 eax, ebx
loop 0x422edf
lea edi, [esi + 0x20000]
mov eax, dword [edi]
or eax, eax
je 0x422f4e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x23578]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x23640]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x422f0c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x23644]
or eax, eax
je 0x422f48
mov dword [ebx], eax
add ebx, 4
jmp 0x422f29
call dword [esi + 0x23648]
popal
jmp 0x412994
Function at 0x158e058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.0158e1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x158e07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x158e06a
add dl, dl
jne 0x158e089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x158e0dc
xor eax, eax
add dl, dl
jne 0x158e096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x158e17d
add dl, dl
jne 0x158e0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x158e0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x158e0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x158e0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x158e0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x158e075
mov eax, 1
add dl, dl
jne 0x158e0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x158e0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x158e0e1
sub eax, ebx
mov ebx, 1
jne 0x158e128
mov ecx, 1
add dl, dl
jne 0x158e10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x158e119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x158e105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x158e075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x158e13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x158e14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x158e136
cmp eax, 0x7d00
jae 0x158e16d
cmp eax, 0x500
jb 0x158e168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x158e075
cmp eax, 0x7f
ja 0x158e170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x158e075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x158e19e
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 0x158e075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x404b14
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x134
and dword [esp + 4], 0
push ebx
push esi
push edi
pushal
xor eax, eax
dec eax
xor ebx, eax
mov dword [esp + 0x30], ebx
popal
push str.V3.5_n
call dword [sym.imp.MSVCR90.dll_printf]
cmp dword [0x4093a8], 0
pop ecx
jne 0x404b4d
call fcn.0040435c
cmp dword [0x4093a4], 0
jne 0x404b5b
call fcn.0040429c
call fcn.0040459d
mov esi, dword [ebp + 0xc]
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x10]
push eax
push dword [esi]
call fcn.00404144
lea eax, [esp + 0x14]
push eax
call fcn.00403faf
mov dword [0x4093ac], eax
lea eax, [esp + 0x38]
push eax
call fcn.00403f65
push dword [esp + 0xc]
push dword [esi]
call fcn.00404033
push eax
mov dword [0x4093b0], eax
call dword [sym.imp.MSVCR90.dll__msize]
pop ecx
mov esi, eax
push esi
call fcn.00403fe4
mov eax, esi
imul eax, eax, 3
push eax
mov dword [esp + 0x10], eax
call dword [sym.imp.MSVCR90.dll_malloc]
pop ecx
mov edi, eax
push esi
lea eax, [esp + 0x10]
push eax
push edi
call fcn.0040327f
test edi, edi
je 0x404bf3
lea eax, [esp + 0x38]
push eax
push dword [esp + 0x10]
push edi
call fcn.004043b2
lea eax, [esp + 0x38]
push eax
call dword [0x409398]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00404267
int3

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40c7d0
nop
nop
mov ecx, 0x12ce584f
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x432024
nop
mov eax, section..data
nop
mov ebx, 0x42f314
nop
mov ecx, 0x4ced2507
nop
nop
nop
test eax, eax
nop
nop
je 0x432084
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x4012eb
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [0x40604c], 1
mov dword [0x406050], 1
mov dword [0x406054], 1
mov dword [ebp - 4], 0x400000
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x40132c
mov eax, 0
jmp 0x4013c6
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x40134f
mov eax, 0
jmp 0x4013c6
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
movzx eax, ax
cmp eax, 0x10b
je 0x401371
cmp eax, 0x20b
je 0x401396
jmp 0x4013c1
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x5c]
cmp eax, 0xe
ja 0x401383
mov eax, 0
jmp 0x4013c6
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x4013c6
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x6c]
cmp eax, 0xe
ja 0x4013ae
mov eax, 0
jmp 0x4013c6
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x4013c6
mov eax, 0
leave
ret

Function at 0x4017fc
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
lea eax, [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov dword [esp], 2
call sym.___acrt_iob_func
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov ebx, dword [ebp - 0xc]
mov dword [esp], 2
call sym.___acrt_iob_func
mov dword [esp + 8], ebx
mov edx, dword [ebp + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._vfprintf
call sym._abort

Function at 0x4023d0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x4023ef
mov eax, 0
jmp 0x402433
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x402412
mov eax, 0
jmp 0x402433
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
cmp ax, 0x10b
je 0x40242e
mov eax, 0
jmp 0x402433
mov eax, 1
leave
ret
Function at 0x402435
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 0x14]
movzx edx, ax
mov eax, dword [ebp - 0xc]
add eax, edx
add eax, 0x18
mov dword [ebp - 4], eax
jmp 0x402494
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
cmp dword [ebp + 0xc], eax
jb 0x40248c
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
add eax, edx
cmp dword [ebp + 0xc], eax
jae 0x40248c
mov eax, dword [ebp - 4]
jmp 0x4024a8
add dword [ebp - 8], 1
add dword [ebp - 4], 0x28
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 6]
movzx eax, ax
cmp dword [ebp - 8], eax
jb 0x402469
mov eax, 0
leave
ret

Function at 0x4010b0
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb10
mov eax, dword [0x403004]
xor eax, ebp
mov dword [ebp - 4], eax
push str._______________________________________________________________________________n
call fcn.00401040
push str._________________________________________________________________n
call fcn.00401040
push str.______________________________________________________n
call fcn.00401040
push str._____________________________V__V________________________n
call fcn.00401040
push str.___________________________________________________n
call fcn.00401040
push 0
call dword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
push eax
push str._lu_n
call fcn.00401040
add esp, 0x20
mov dword [ebp - 0xb10], 0x101
lea eax, [ebp - 0xb10]
push eax
lea eax, [ebp - 0x30c]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea eax, [ebp - 0x30c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x401132
sub eax, edx
sar eax, 1
push esi
push eax
lea eax, [ebp - 0x30c]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcstombs]
lea eax, [ebp - 0x30c]
push eax
lea eax, [ebp - 0x108]
push 0x4022b0
push eax
call fcn.00401070
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0xb0c]
push str.C:Users_sDesktopWLtester.txt
push eax
call fcn.00401070
lea eax, [ebp - 0xb0c]
push 0x4022d8
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov esi, eax
push str.NishangLnkOnlinePayloadBypass._n
push esi
call fcn.00401010
push esi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov ecx, dword [ebp - 4]
add esp, 0x38
xor ecx, ebp
xor eax, eax
pop esi
call fcn.004011c1
mov esp, ebp
pop ebp
ret
Function at 0x401e53
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0x30]
push esi
push edi
mov esi, ecx
xor edi, edi
push dword [esi + 0xc]
push edi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
push dword [esi + 0x10]
mov eax, dword fs:[0x30]
push edi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
push dword [esi + 0x14]
mov eax, dword fs:[0x30]
push edi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
push dword [esi + 0x18]
mov eax, dword fs:[0x30]
push edi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
push dword [esi + 0x20]
mov eax, dword fs:[0x30]
push edi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
push dword [esi + 0x1c]
mov eax, dword fs:[0x30]
push edi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, dword fs:[0x30]
push esi
push edi
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
pop edi
pop esi
ret

Function at 0x402a55
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push edi
xor ebx, ebx
lea eax, [ebp - 4]
push eax
push ebx
push ebx
push ebx
mov edi, ecx
mov dword [ebp - 4], ebx
push 0x40144c
push edi
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
je 0x402a80
cmp eax, 0x7a
jne 0x402ad6
mov eax, dword fs:[0x30]
push esi
push dword [ebp - 4]
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
test esi, esi
jne 0x402a9f
push 0xe
pop eax
jmp 0x402ad5
lea eax, [ebp - 4]
push eax
push esi
push ebx
push ebx
push 0x40144c
push edi
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
je 0x402ace
mov ecx, dword fs:[0x30]
push esi
push ebx
push dword [ecx + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, edi
jmp 0x402ad5
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
xor eax, eax
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x402ade
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 8]
mov dword [ebp - 4], 0x208
push eax
push 0
push 0x40140c
push ecx
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x402b3f
mov eax, dword [ebp - 4]
cmp eax, 2
jb 0x402b3a
shr eax, 1
xor ecx, ecx
cmp cx, word [esi + eax*2 - 2]
jne 0x402b3a
mov eax, dword [ebp - 8]
sub eax, 1
je 0x402b36
sub eax, 1
jne 0x402b3a
mov ecx, esi
call fcn.0040eeb6
test eax, eax
jne 0x402b3f
xor eax, eax
jmp 0x402b3f
mov eax, 0x3f7
pop esi
mov esp, ebp
pop ebp
ret 8