joyce8/EMBER2024-capa huggingface dataset:
Function at 0x487c10
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
push eax
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x487c2b
mov ebx, dword [esp + 0x18]
cmp eax, 1
jne 0x487c33
mov word [ebx], 1
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
movzx ecx, word [ebx + 4]
add word [ebx], cx
cmp eax, 3
jl 0x487ccb
mov edx, 2
mov ecx, 2
sub ecx, eax
mov dword [esp], ecx
xor edi, edi
mov ebx, 1
jmp 0x487c79
movzx ebp, word [esi + edi*4]
add word [esi + ebx*4], bp
mov word [esi + edi*4], bx
inc edi
mov ecx, dword [esp]
add ecx, ebx
inc ecx
inc ebx
cmp ecx, 1
je 0x487cda
mov esi, dword [esp + 0x18]
movzx ecx, word [esi + edi*4]
cmp edx, eax
jge 0x487c8e
movzx ebp, word [esi + edx*4]
cmp cx, bp
jae 0x487ca0
mov word [esi + ebx*4], cx
mov word [esi + edi*4], bx
inc edi
cmp edx, eax
jge 0x487c60
jmp 0x487ca9
inc edx
mov word [esi + ebx*4], bp
cmp edx, eax
jge 0x487c60
cmp edi, ebx
jge 0x487cc0
movzx ebp, word [esi + edi*4]
movzx ecx, word [esi + edx*4]
cmp bp, cx
jb 0x487c64
jmp 0x487cc4
movzx ecx, word [esi + edx*4]
inc edx
add word [esi + ebx*4], cx
jmp 0x487c6d
lea edx, [eax - 2]
mov word [ebx + eax*4 - 8], 0
jmp 0x487d62
lea edx, [eax - 2]
mov ebx, dword [esp + 0x18]
mov word [ebx + eax*4 - 8], 0
cmp eax, 3
jl 0x487d62
lea edi, [eax - 3]
mov ebp, ebx
mov ebx, eax
and ebx, 3
xor ebx, 2
mov esi, edi
je 0x487d14
mov esi, edi
movzx ecx, word [ebp + esi*4]
movzx ecx, word [ebp + ecx*4]
inc ecx
mov word [ebp + esi*4], cx
dec esi
dec ebx
jne 0x487d00
mov ebx, dword [esp + 0x18]
cmp edi, 3
jb 0x487d62
nop
nop
nop
movzx ecx, word [ebx + esi*4]
movzx ecx, word [ebx + ecx*4]
inc ecx
mov word [ebx + esi*4], cx
movzx ecx, word [ebx + esi*4 - 4]
movzx ecx, word [ebx + ecx*4]
inc ecx
mov word [ebx + esi*4 - 4], cx
movzx ecx, word [ebx + esi*4 - 8]
movzx ecx, word [ebx + ecx*4]
inc ecx
mov word [ebx + esi*4 - 8], cx
movzx ecx, word [ebx + esi*4 - 0xc]
movzx ecx, word [ebx + ecx*4]
inc ecx
mov word [ebx + esi*4 - 0xc], cx
add esi, 0xfffffffc
cmp esi, 0xffffffff
jne 0x487d20
dec eax
mov ecx, 1
xor esi, esi
jmp 0x487d7c
lea ecx, [edi + edi]
inc esi
test edi, edi
je 0x487c2b
test edx, edx
mov dword [esp], ecx
js 0x487db0
lea edi, [edx + 1]
xor ebp, ebp
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, word [ebx + edx*4]
cmp esi, ecx
jne 0x487dc0
inc ebp
dec edx
cmp edi, ebp
jne 0x487d90
mov edx, 0xffffffff
jmp 0x487dc2
xor edi, edi
jmp 0x487dc5
mov edi, ebp
mov ecx, dword [esp]
mov ebp, ecx
sub ebp, edi
jle 0x487d70
and ebp, 3
je 0x487df8
lea ecx, [ebx + eax*4]
xor ebx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [ecx], si
inc ebx
add ecx, 0xfffffffc
cmp ebp, ebx
jne 0x487de0
mov ebp, dword [esp]
sub ebp, ebx
sub eax, ebx
mov ebx, dword [esp + 0x18]
jmp 0x487dfa
mov ebp, ecx
mov ecx, edi
sub ecx, dword [esp]
cmp ecx, 0xfffffffc
ja 0x487d70
nop
nop
nop
nop
nop
nop
nop
nop
mov word [ebx + eax*4], si
mov word [ebx + eax*4 - 4], si
mov word [ebx + eax*4 - 8], si
mov word [ebx + eax*4 - 0xc], si
add eax, 0xfffffffc
add ebp, 0xfffffffc
cmp ebp, edi
jg 0x487e10
jmp 0x487d70
Function at 0x488610
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
mov eax, dword [0x4c5bd8]
cmp eax, 0x270
jne 0x48866f
mov eax, 0xfffff640
mov edx, dword [0x4c5bdc]
nop
nop
nop
nop
nop
nop
nop
nop
and edx, 0x80000000
mov esi, dword [eax + 0x4c65a0]
mov ecx, esi
and ecx, 0x7ffffffe
or ecx, edx
mov edx, esi
and esi, 1
neg esi
and esi, 0x9908b0df
xor esi, dword [eax + 0x4c6bd0]
shr ecx, 1
xor esi, ecx
mov dword [eax + 0x4c6f5c], esi
add eax, 4
jne 0x488630
mov eax, 0x270
jmp 0x488685
cmp eax, 0x4e0
jb 0x488685
mov ecx, 0x4c5bd8
call fcn.00488910
mov eax, dword [0x4c5bd8]
lea ecx, [eax + 1]
mov dword [0x4c5bd8], ecx
mov eax, dword [eax*4 + 0x4c5bdc]
mov edx, eax
shr edx, 0xb
and edx, dword [0x4c6f5c]
xor edx, eax
mov ecx, edx
shl ecx, 7
and ecx, 0x9d2c5680
xor ecx, edx
mov edx, ecx
shl edx, 0xf
and edx, 0xefc40000
xor edx, ecx
shr edx, 0x12
lea eax, [edx + ecx]
and edx, ecx
add edx, edx
sub eax, edx
and eax, 0x7fff
pop esi
ret

Function at 0x488910
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
push ebx
push edi
push esi
mov edi, dword [ecx + 0x9c4]
mov eax, 0x3fe
nop
and edi, 0x80000000
mov edx, dword [ecx + eax*4 - 0x630]
mov ebx, edx
and ebx, 0x7ffffffe
or ebx, edi
shr ebx, 1
mov esi, edx
and esi, 1
neg esi
and esi, 0x9908b0df
mov edi, ebx
and edi, esi
add esi, ebx
add edi, edi
sub esi, edi
xor esi, dword [ecx + eax*4]
mov edi, edx
mov dword [ecx + eax*4 - 0xff4], esi
inc eax
cmp eax, 0x4e1
jne 0x488920
mov esi, dword [ecx + 0xd50]
mov eax, 0xe4
mov edx, 0x1c6
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
lea ebx, [eax - 1]
mov edi, dword [ecx + eax*4 + 0x9c4]
xor ebx, 0x270
mov ebp, edx
and ebp, 0x31e
sub ebp, ebx
mov ebx, ebp
and ebx, 0x18d
xor ebp, 0x18d
lea ebx, [ebx*2]
add ebx, ebp
mov ebp, edi
and ebp, 1
neg ebp
and ebp, 0x9908b0df
xor ebp, dword [ecx + ebx*4 + 4]
mov ebx, edi
and esi, 0x80000000
and ebx, 0x7ffffffe
or ebx, esi
shr ebx, 1
xor ebp, ebx
mov dword [ecx + eax*4], ebp
mov esi, edi
inc eax
add edx, 2
cmp eax, 0x270
jne 0x488980
mov esi, 0x80000000
and esi, dword [ecx + 0x1380]
mov eax, dword [ecx + 4]
mov edx, eax
and edx, 0x7ffffffe
or edx, esi
and eax, 1
neg eax
and eax, 0x9908b0df
xor eax, dword [ecx + 0x634]
shr edx, 1
xor eax, edx
mov dword [ecx + 0x9c0], eax
mov dword [ecx], 0
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x489950
Capabilities:
Contain obfuscated stackstrings
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c4
push eax
sub esp, 0x7c
mov dword [ebp - 0x40], esp
sub esp, 0x100
mov eax, esp
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x10], eax
push eax
mov ebx, esp
push eax
mov dword [ebp - 0x2c], esp
sub esp, 0x6c
mov dword [ebp - 0x14], esp
sub esp, 0x24
mov dword [ebp - 0x38], esp
sub esp, 8
mov dword [ebp - 0x3c], esp
sub esp, 0x40
mov dword [ebp - 0x28], esp
sub esp, 0x80
mov dword [ebp - 0x34], esp
mov esi, dword [0x4c6fb8]
mov dword [ebp - 0x1c], 0x244c2c4b
xor edx, edx
mov al, 1
nop
nop
nop
nop
nop
nop
movzx edi, word [ebp + edx*2 - 0x1c]
lea ecx, [edx + 0xa2f3733]
and ecx, 0xa083317
add ecx, 0xfb7f7fc0
xor ecx, edi
add ecx, 0xd3c26967
mov edi, ecx
and edi, 1
xor ecx, 1
lea ecx, [ecx + edi*2]
mov word [ebp + edx*2 - 0x1c], cx
mov edx, 1
xor ecx, ecx
test al, 1
mov eax, 0
jne 0x4899b0
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x1d0], 0x77527757
mov dword [ebp - 0x1cc], 0x777c7710
mov dword [ebp - 0x1c8], 0x77177717
mov dword [ebp - 0x1c4], 0x77437708
mov dword [ebp - 0x1c0], 0x77457744
mov word [ebp - 0x1bc], 0x772a
nop
nop
nop
lea edx, [ecx + 0x4620]
xor dx, word [ebp + ecx*2 - 0x1d0]
add edx, 0xffffcf00
mov word [ebp + ecx*2 - 0x1d0], dx
inc ecx
cmp ecx, 0xb
jne 0x489a30
lea edi, [ebp - 0x1d0]
push eax
push 0
push edi
call esi
mov ecx, 0x4c6fbc
push eax
call 0x4b9230
movzx eax, al
mov eax, dword [eax*4 + 0x4c1310]
mov ecx, 0xd6b78ddf
xor ecx, dword [0x4c1318]
add ecx, eax
inc ecx
xor eax, eax
jmp ecx
Function at 0x49a020
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x1a0
mov ebx, dword [ebp + 0xc]
mov dword [esp + 0x18], 0x18e31827
mov dword [esp + 0x1c], 0x18e418f9
mov dword [esp + 0x20], 0x180d18e2
mov eax, 0x4a48
mov ecx, 0xab1cb5b7
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx esi, word [esp + eax*2 - 0x9478]
mov edx, eax
xor edx, ecx
and edx, esi
xor edx, ecx
lea esi, [edx + edx]
not esi
add esi, edx
add esi, 0x58e5adbf
mov edi, esi
and edi, 1
and esi, 0xfffe
and edx, 1
or edx, esi
xor edx, 1
lea edx, [edx + edi*2]
mov word [esp + eax*2 - 0x9478], dx
inc eax
dec ecx
cmp eax, 0x4a4e
jne 0x49a060
mov dword [esp + 0x30], 0xf8cdf8d0
mov dword [esp + 0x34], 0xf8cbf8ce
mov dword [esp + 0x38], 0xf712f706
mov dword [esp + 0x3c], 0xf8d3f711
mov dword [esp + 0x40], 0xf922f92f
mov dword [esp + 0x44], 0xf92ff923
mov dword [esp + 0x48], 0xf92af92c
mov dword [esp + 0x4c], 0xf933f935
mov dword [esp + 0x50], 0xf6c9f6f2
xor eax, eax
nop
nop
lea ecx, [eax + 0x70f8]
xor cx, word [esp + eax*2 + 0x30]
add ecx, 0x7840
mov word [esp + eax*2 + 0x30], cx
inc eax
cmp eax, 0x12
jne 0x49a0f0
movzx ecx, word [esp + 0x30]
lea eax, [esp + 0x15c]
test cx, cx
je 0x49a143
lea edx, [esp + 0x32]
mov esi, dword [ebp + 0x10]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [edx]
add edx, 2
test cx, cx
jne 0x49a130
jmp 0x49a146
mov esi, dword [ebp + 0x10]
mov word [eax], 0
movzx ecx, word [esi]
test cx, cx
je 0x49a171
lea edx, [esi + 2]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [edx]
add edx, 2
test cx, cx
jne 0x49a160
mov word [eax], 0
movzx ecx, word [esp + 0x18]
test cx, cx
je 0x49a1a1
lea edx, [esp + 0x1a]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [edx]
add edx, 2
test cx, cx
jne 0x49a190
mov word [eax], 0
mov edi, dword [ebx]
mov dword [esp + 0x30], 0x5cd0520
mov word [esp + 0x34], 0x7e2c
mov eax, 0xf1fa
mov ecx, 0xe05
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, word [esp + eax*2 - 0x1e3c4]
mov esi, edx
not esi
or esi, ecx
or edx, eax
and edx, esi
add edx, 0x7030
mov word [esp + eax*2 - 0x1e3c4], dx
inc eax
dec ecx
cmp eax, 0xf1fd
jne 0x49a1d0
movzx eax, byte [esp + 0x30]
test al, al
je 0x49a21b
lea ecx, [esp + 0x31]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov byte [edi], al
inc edi
movzx eax, byte [ecx]
inc ecx
test al, al
jne 0x49a210
mov dword [esp + 0x10], edi
mov byte [edi], 0
lea eax, [esp + 0x140]
lea ecx, [esp + 0x150]
lea edx, [esp + 0x2c]
lea esi, [esp + 0x15c]
push eax
push ecx
push edx
push esi
call fcn.0048ad10
add esp, 0x10
movzx eax, al
mov eax, dword [eax*4 + 0x4c2580]
mov ecx, 0xf7d41967
xor ecx, dword [0x4c2588]
add eax, ecx
inc eax
jmp eax
Function at 0x77eb30
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
push eax
mov dword [esp], 0xeeffee2e
xor eax, eax
mov cl, 1
movzx edi, word [esp + eax*2]
mov edx, eax
or edx, 0x596e3a8e
lea ebx, [edi + edi]
not ebx
add ebx, edi
mov ebp, eax
xor ebp, 1
mov esi, 0xc571
sub esi, eax
or esi, ebp
and esi, edi
not edi
or edi, ebx
and edi, edx
or esi, edi
mov ebx, esi
not ebx
lea edi, [esi + ebx*2]
mov edx, 0xfffffffe
sub edx, edi
mov ebp, edx
xor ebp, 0xd470
mov edi, edx
or edi, 0x2b8f
and edi, ebp
lea esi, [esi + ebx*2]
inc esi
mov ebx, esi
not ebx
and esi, 0xc315
and edx, 0x3cea
or edx, esi
xor edx, 0xe89a
and ebx, 0x2b8f
or ebx, edx
lea edx, [ebx + edi]
inc edx
mov word [esp + eax*2], dx
mov eax, 1
test cl, 1
mov ecx, 0
jne 0x77eb40
mov eax, dword [esp]
mov eax, dword fs:[eax]
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x77ef90
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x28
mov eax, dword [esp + 0x3c]
movzx ecx, word [eax]
mov dword [esp + 4], 0x1d827b5c
xor edx, edx
mov bl, 1
nop
nop
nop
nop
nop
nop
movzx esi, word [esp + edx*2 + 4]
lea eax, [edx + edx*2]
mov edi, eax
xor edi, 0xac7e03c9
lea ebp, [esi + esi]
not ebp
add ebp, esi
and ebp, edi
xor eax, 0xfc36
and eax, esi
or eax, ebp
mov esi, eax
not esi
lea eax, [eax + esi*2]
mov esi, 0xffffe1b6
sub esi, eax
mov word [esp + edx*2 + 4], si
mov edx, 1
xor eax, eax
test bl, 1
mov ebx, 0
jne 0x77efb0
xor edx, edx
cmp dword [esp + 4], ecx
setne dl
jmp dword [edx*4 + 0x4c5b48]

Function at 0x77f9c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x28
mov edi, dword [ebp + 0xc]
mov dword [esp], 0x785d785e
xor esi, esi
mov dl, 1
nop
nop
nop
nop
nop
nop
movzx ecx, word [esp + esi*2]
mov ebx, 0x6366
sub ebx, esi
mov eax, esi
add eax, 0x5d6e9c99
xor ebx, eax
and ebx, ecx
xor ebx, eax
mov eax, ebx
mov ecx, ebx
xor ecx, 0x148b1b37
add ecx, ebx
and ebx, 0x140a1b37
and eax, 0x4964e4c8
sub ecx, eax
mov eax, ecx
and eax, ebx
xor ecx, ebx
lea eax, [ecx + eax*2]
inc eax
mov word [esp + esi*2], ax
mov esi, 1
test dl, 1
mov edx, 0
jne 0x77f9e0
mov eax, dword [esp]
mov edx, dword [0x4c82e0]
test edx, edx
je 0x77fa88
xor ebx, ebx
mov ecx, dword [0x4c82e4]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp dword [ecx + ebx*8], 0xa269eeef
je 0x77fa60
inc ebx
cmp edx, ebx
jne 0x77fa50
jmp 0x77fa88
mov edx, dword [ecx + ebx*8 + 4]
cmp edx, eax
je 0x77fa88
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 [0x4c82e8]
call fcn.0077d2c0
add esp, 0x20
test edi, edi
je 0x77fa92
mov ecx, dword [esp + 8]
mov dword [edi], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x77faa1
cmp byte [esp + 0x15], 0
setne byte [ecx]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x77fe20
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 0x77fe40
sar ebx, 1
mov ebp, ebx
and ebp, 0xfffd
mov ecx, ebx
and ecx, 2
or ebx, 2
imul ebx, ecx
xor ecx, 2
imul ecx, ebp
lea ebp, [ecx + ebx]
mov word [esp + 4], bp
add ecx, ebx
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], 0x785d785e
xor eax, eax
mov bl, 1
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ecx, word [esp + eax*2]
mov edi, 0x6366
sub edi, eax
mov ebp, eax
add ebp, 0x5d6e9c99
xor edi, ebp
and edi, ecx
xor edi, ebp
mov ecx, edi
mov ebp, edi
xor ebp, 0x148b1b37
add ebp, edi
and edi, 0x140a1b37
and ecx, 0x4964e4c8
sub ebp, ecx
mov ecx, ebp
and ecx, edi
xor ebp, edi
lea ecx, [ecx*2 + 1]
add ecx, ebp
mov word [esp + eax*2], cx
mov eax, 1
test bl, 1
mov ebx, 0
jne 0x77fec0
mov eax, dword [esp]
mov edi, dword [0x4c82e0]
test edi, edi
je 0x77ff65
xor ebx, ebx
mov ebp, dword [0x4c82e4]
nop
nop
nop
nop
nop
nop
cmp dword [ebp + ebx*8], 0xb7847e1b
je 0x77ff41
inc ebx
cmp edi, ebx
jne 0x77ff30
jmp 0x77ff65
mov edi, dword [ebp + ebx*8 + 4]
cmp edi, eax
je 0x77ff65
lea eax, [esp + 0xc]
push esi
push eax
push edx
push dword [esp + 0x48]
push 0x10
push edi
push dword [0x4c82e8]
call fcn.0077d2c0
add esp, 0x1c
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x433006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..text
nop
mov ebx, 0x40de38
nop
nop
mov ecx, 0x2130669
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x433024
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x5d303ce4
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x1000c0a0
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x1000c264
pushal
mov esi, section.UPX1
lea edi, [esi - 0x8000]
push edi
or ebp, 0xffffffff
jmp 0x1000c0ca
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x1000c0d1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1000c0c0
mov eax, 1
add ebx, ebx
jne 0x1000c0e3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x1000c0d8
jne 0x1000c0f4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1000c0d8
xor ecx, ecx
sub eax, 3
jb 0x1000c108
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1000c17a
mov ebp, eax
add ebx, ebx
jne 0x1000c113
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x1000c120
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x1000c144
inc ecx
add ebx, ebx
jne 0x1000c130
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x1000c125
jne 0x1000c141
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1000c125
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x1000c164
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x1000c155
jmp 0x1000c0c6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x1000c164
add edi, ecx
jmp 0x1000c0c6
pop esi
mov edi, esi
mov ecx, 0x150
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x1000c182
cmp byte [edi], 0
jne 0x1000c182
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 0x1000c187
lea edi, [esi + 0xa000]
mov eax, dword [edi]
or eax, eax
je 0x1000c1f6
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xc000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xc078]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x1000c1b4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xc07c]
or eax, eax
je 0x1000c1f0
mov dword [ebx], eax
add ebx, 4
jmp 0x1000c1d1
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 0x1000c227
cmp al, 0xef
ja 0x1000c21a
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x1000c1fc
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x1000c209
mov ebp, dword [esi + 0xc080]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
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 0x1000c25b
sub esp, 0xffffff80
jmp 0x100053dd
Function at 0x401000
Capabilities:
Get disk information
Get session integrity level
Persist via run registry key
Persist via winlogon helper dll registry key
Query environment variable
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x314
push ebx
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x20f]
push ebx
push eax
mov dword [ebp - 4], ebx
mov byte [ebp - 0x210], bl
call sub.msvcrt.dll_memset
push 0xff
lea ecx, [ebp - 0x313]
push ebx
push ecx
mov dword [ebp - 8], 0xff0ff
mov byte [ebp - 0x314], bl
call sub.msvcrt.dll_memset
xor edx, edx
add esp, 0x18
mov word [ebp - 0x214], dx
cmp esi, ebx
je 0x40119e
call dword [sym.imp.shell32.dll_IsUserAnAdmin]
test eax, eax
je 0x401150
push ebx
lea eax, [ebp - 4]
push eax
push ebx
push 0x102
push ebx
push ebx
push ebx
push 0x4045c0
push 0x80000002
call dword [sym.imp.advapi32.dll_RegCreateKeyExA]
test eax, eax
jne 0x401186
push 0x104
lea ecx, [ebp - 0x10c]
push ecx
push 0x4045b4
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableA]
lea edx, [ebp - 0x10c]
push edx
call dword [sym.imp.shlwapi.dll_PathAddBackslashA]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 8]
push eax
push ebx
push ebx
lea ecx, [ebp - 0x10c]
push ecx
call dword [sym.imp.kernel32.dll_GetVolumeInformationA]
mov edx, dword [ebp - 8]
push edx
push 0x4045f8
lea eax, [ebp - 0x10c]
push 0x104
push eax
call dword [sym.imp.msvcrt.dll__snprintf]
lea edx, [ebp - 0x210]
add esp, 0x10
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x4010f1
lea eax, [ebp - 0x10c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x401104
sub eax, edx
push edi
mov edi, eax
lea ebx, [ebp - 0x10c]
lea eax, [ebp - 0x314]
call fcn.00401560
lea edx, [ebp - 0x210]
mov ecx, edx
call fcn.004015a0
mov eax, dword [ebp - 4]
push 0x104
lea ecx, [ebp - 0x210]
push ecx
push 1
push 0
mov edx, ebx
push edx
push eax
call dword [sym.imp.advapi32.dll_RegSetValueExA]
xor ebx, ebx
pop edi
jmp 0x401186
lea ecx, [ebp - 4]
push ecx
push 0x102
push ebx
push 0x4045fc
push 0x80000001
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401186
mov edx, dword [ebp - 4]
push 0x104
push esi
push 1
push ebx
push 0x40462c
push edx
call dword [sym.imp.advapi32.dll_RegSetValueExA]
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x40119e
push eax
call dword [sym.imp.advapi32.dll_RegFlushKey]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4011b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
xor edi, edi
mov dword [ebp - 8], edi
cmp eax, edi
je 0x40127d
cmp dword [ebp + 8], edi
je 0x40127d
cmp ebx, edi
je 0x40127d
push esi
push edi
push 0x80
push 2
push edi
push 3
push 0xc0000000
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x401273
push 1
push edi
push edi
push esi
mov dword [ebp - 4], edi
call dword [sym.imp.kernel32.dll_SetFilePointer]
push 0
push ebx
push 0
mov edi, eax
push edi
push esi
call dword [sym.imp.kernel32.dll_LockFile]
mov ecx, dword [ebp + 8]
push 0
lea eax, [ebp - 4]
push eax
push ebx
push ecx
push esi
call dword [sym.imp.kernel32.dll_WriteFile]
push 0
push ebx
push 0
push edi
push esi
mov dword [ebp + 8], eax
call dword [sym.imp.kernel32.dll_UnlockFile]
cmp dword [ebp + 8], 0
je 0x401249
push esi
call dword [sym.imp.kernel32.dll_SetEndOfFile]
mov edi, 1
test eax, eax
jne 0x40124c
mov edi, dword [ebp - 8]
mov dword [ebp + 8], 0
test esi, esi
je 0x401273
lea edx, [ebp + 8]
push edx
push esi
call dword [sym.imp.kernel32.dll_GetHandleInformation]
test eax, eax
je 0x401273
test byte [ebp + 8], 2
jne 0x401273
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
pop esi
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret 4
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret 4
Function at 0x401290
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 0xc], esi
cmp eax, esi
je 0x4013bb
push esi
push 0x80
push 3
push esi
push 3
push 0x80000000
push eax
call dword [sym.imp.kernel32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4013bb
lea eax, [ebp - 0x1c]
push eax
push edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.kernel32.dll_GetFileSizeEx]
mov ebx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], ebx
test ebx, ebx
je 0x401394
lea eax, [ebx + 0x13]
and eax, 0xfffffff0
push eax
push 8
mov dword [ebp - 8], eax
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x401315
mov ecx, dword [ebp - 8]
push ecx
push 0
push esi
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 8], esi
test esi, esi
je 0x401394
push 1
push 0
push 0
push edi
mov dword [ebp - 0x10], 0
call dword [sym.imp.kernel32.dll_SetFilePointer]
push 0
push ebx
push 0
push eax
push edi
mov dword [ebp - 0x14], eax
call dword [sym.imp.kernel32.dll_LockFile]
push 0
lea edx, [ebp - 0x10]
push edx
push ebx
push esi
push edi
call dword [sym.imp.kernel32.dll_ReadFile]
push 0
push ebx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
push 0
push eax
push edi
call dword [sym.imp.kernel32.dll_UnlockFile]
cmp dword [ebp - 0x18], 0
jne 0x401391
mov ebx, dword [sym.imp.kernel32.dll_GetProcessHeap]
push esi
push 0
call ebx
push eax
call dword [sym.imp.kernel32.dll_HeapValidate]
test eax, eax
je 0x40138a
push esi
push 0
call ebx
push eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov dword [ebp - 8], 0
mov esi, dword [ebp - 8]
mov dword [ebp - 8], 0
test edi, edi
je 0x4013bb
lea ecx, [ebp - 8]
push ecx
push edi
call dword [sym.imp.kernel32.dll_GetHandleInformation]
test eax, eax
je 0x4013bb
test byte [ebp - 8], 2
jne 0x4013bb
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov edi, dword [ebp + 8]
test edi, edi
je 0x4013df
push 4
push edi
call dword [sym.imp.kernel32.dll_IsBadWritePtr]
test eax, eax
mov eax, esi
jne 0x4013e1
mov edx, dword [ebp - 0xc]
mov dword [edi], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4