joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4065a0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40ed88
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push esi
mov esi, ecx
call fcn.00406740
mov ecx, dword [esi + 0x2c]
mov dword [esi + 0x30], eax
push 0
push eax
mov ecx, dword [ecx + 0x1c]
mov edx, dword [ecx]
call dword [edx + 0x30]
push 0
push 0x16
lea ecx, [esp + 0xc]
call fcn.004062b0
mov eax, dword [esi + 0x2c]
push 0x16
mov dword [esp + 0x1c], 0
mov ecx, dword [eax + 0x1c]
mov eax, dword [esp + 0xc]
push eax
mov edx, dword [ecx]
call dword [edx + 0x3c]
cmp eax, 0x16
je 0x406606
push 0xffffffffffffff9b
mov ecx, esi
call fcn.00406880
mov eax, dword [esp + 8]
push edi
mov ecx, dword [eax]
mov dword [esi + 4], ecx
mov dx, word [eax + 4]
mov word [esi + 8], dx
mov cx, word [eax + 6]
mov word [esi + 0xa], cx
mov dx, word [eax + 8]
mov word [esi + 0xc], dx
mov cx, word [eax + 0xa]
mov word [esi + 0xe], cx
mov edx, dword [eax + 0xc]
mov dword [esi + 0x10], edx
mov ecx, dword [eax + 0x10]
mov dword [esi + 0x14], ecx
mov di, word [eax + 0x14]
lea ecx, [esp + 8]
call fcn.004062f0
mov dx, word [esi + 8]
mov ecx, dword [esi + 0x2c]
push edx
call fcn.00405f50
mov ecx, dword [esi + 0x2c]
call fcn.00405610
test eax, eax
jne 0x40667a
mov eax, dword [esi + 0x14]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0x30]
add eax, edx
cmp ecx, eax
jae 0x40667a
push 0xffffffffffffff9b
mov ecx, esi
call fcn.00406880
test di, di
je 0x4066ad
and edi, 0xffff
push 0
push edi
lea ecx, [esi + 0x18]
call fcn.00406320
mov ecx, dword [esi + 0x2c]
mov eax, dword [esi + 0x1c]
push edi
push eax
mov ecx, dword [ecx + 0x1c]
mov edx, dword [ecx]
call dword [edx + 0x3c]
cmp eax, edi
je 0x4066ad
push 0xffffffffffffff9b
mov ecx, esi
call fcn.00406880
mov ecx, dword [esi + 0x2c]
call fcn.00405610
test eax, eax
pop edi
je 0x4066be
xor eax, eax
jmp 0x4066cb
mov eax, dword [esi + 0x30]
mov edx, dword [esi + 0x14]
mov ecx, dword [esi + 0x10]
sub eax, edx
sub eax, ecx
mov dword [esi + 0x34], eax
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x4066db
cmp word [esi + 0xe], ax
jne 0x4066e6
cmp word [esi + 0xe], 0
jne 0x4066ef
test eax, eax
je 0x4066ef
push 0xffffffffffffff9b
mov ecx, esi
call fcn.00406880
mov ecx, dword [esi + 0x2c]
xor eax, eax
mov ax, word [esi + 0xa]
mov byte [esi + 0x3c], 1
push eax
call fcn.00405630
mov eax, dword [esi + 0x10]
test eax, eax
je 0x406710
mov ecx, esi
call fcn.004068e0
lea ecx, [esp + 4]
mov dword [esp + 0x18], 0xffffffff
call fcn.004062e0
mov ecx, dword [esp + 0x10]
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x407d60
Capabilities:
Access peb ldr_data
Enumerate pe sections
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x40ef78
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 0
push 0x2e
lea ecx, [esp + 0x1c]
call fcn.004062b0
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x30]
push 1
push 0x2e
push eax
mov ecx, edi
mov dword [esp + 0x34], 0
call fcn.00405460
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov dword [esi + 4], ecx
mov dx, word [eax + 4]
mov word [esi + 8], dx
mov cx, word [eax + 6]
mov word [esi + 0xa], cx
mov dx, word [eax + 8]
mov word [esi + 0xc], dx
mov cx, word [eax + 0xa]
mov word [esi + 0xe], cx
mov dx, word [eax + 0xc]
mov word [esi + 0x10], dx
mov cx, word [eax + 0xe]
mov word [esi + 0x12], cx
mov edx, dword [eax + 0x10]
mov dword [esi + 0x14], edx
mov ecx, dword [eax + 0x14]
mov dword [esi + 0x18], ecx
mov edx, dword [eax + 0x18]
mov dword [esi + 0x1c], edx
mov cx, word [eax + 0x20]
mov dx, word [eax + 0x22]
mov bx, word [eax + 0x1c]
mov bp, word [eax + 0x1e]
mov word [esp + 0x30], cx
mov word [esi + 0x20], dx
mov cx, word [eax + 0x24]
mov word [esi + 0x22], cx
mov edx, dword [eax + 0x26]
mov dword [esi + 0x24], edx
mov eax, dword [eax + 0x2a]
lea ecx, [esp + 0x14]
mov dword [esi + 0x28], eax
call fcn.004062f0
mov edx, dword [esi + 4]
mov ecx, 0x413300
cmp edx, dword [ecx]
je 0x407e4c
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0xffffffff
call fcn.004062e0
xor al, al
jmp 0x407ee4
mov ecx, edi
call fcn.00405840
and ebx, 0xffff
push 0
push ebx
lea ecx, [esi + 0x38]
mov dword [esp + 0x18], eax
call fcn.00406320
mov ecx, dword [edi + 0x1c]
mov eax, dword [esi + 0x3c]
push ebx
push eax
mov edx, dword [ecx]
call dword [edx + 0x3c]
test bp, bp
je 0x407e9a
mov ebx, ebp
push 0
and ebx, 0xffff
lea ecx, [esi + 0x2c]
push ebx
call fcn.00406320
mov ecx, dword [edi + 0x1c]
mov eax, dword [esi + 0x30]
push ebx
push eax
mov edx, dword [ecx]
call dword [edx + 0x3c]
mov ebx, dword [esp + 0x30]
test bx, bx
je 0x407ec1
and ebx, 0xffff
push 0
push ebx
lea ecx, [esi + 0x44]
call fcn.00406320
mov ecx, dword [edi + 0x1c]
mov esi, dword [esi + 0x48]
push ebx
push esi
mov eax, dword [ecx]
call dword [eax + 0x3c]
mov ecx, edi
call fcn.00405840
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
cmp eax, ecx
lea ecx, [esp + 0x14]
sete bl
call fcn.004062e0
mov al, bl
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 4
Function at 0x4089f0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x4089ff
xor eax, eax
pop esi
ret 0xc
mov eax, dword [0x413378]
test eax, eax
je 0x408a0d
call fcn.00408990
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
cmp edx, 8
push ebx
not eax
jb 0x408b0f
push edi
mov edi, edx
shr edi, 3
mov ecx, eax
xor ebx, ebx
mov bl, byte [esi]
and ecx, 0xff
xor ecx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [ecx*4 + 0x414838]
sub edx, 8
xor eax, ebx
inc esi
mov ecx, eax
xor ebx, ebx
mov bl, byte [esi]
and ecx, 0xff
xor ecx, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov ecx, dword [ecx*4 + 0x414838]
shr eax, 8
xor ecx, eax
inc esi
mov eax, ecx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov eax, dword [eax*4 + 0x414838]
shr ecx, 8
xor eax, ecx
inc esi
mov ecx, eax
and ecx, 0xff
xor ecx, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov ecx, dword [ecx*4 + 0x414838]
shr eax, 8
xor ecx, eax
inc esi
mov eax, ecx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov eax, dword [eax*4 + 0x414838]
shr ecx, 8
xor eax, ecx
inc esi
mov ecx, eax
and ecx, 0xff
xor ecx, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov ecx, dword [ecx*4 + 0x414838]
shr eax, 8
xor ecx, eax
inc esi
mov eax, ecx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov eax, dword [eax*4 + 0x414838]
shr ecx, 8
xor eax, ecx
inc esi
mov ecx, eax
and ecx, 0xff
xor ecx, ebx
shr eax, 8
mov ecx, dword [ecx*4 + 0x414838]
xor eax, ecx
inc esi
dec edi
jne 0x408a27
pop edi
test edx, edx
je 0x408b31
mov ecx, eax
xor ebx, ebx
mov bl, byte [esi]
and ecx, 0xff
xor ecx, ebx
shr eax, 8
mov ecx, dword [ecx*4 + 0x414838]
xor eax, ecx
inc esi
dec edx
jne 0x408b13
pop ebx
pop esi
not eax
ret 0xc
Function at 0x100166de
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x100166ed
pop dword [ebp - 0x20]
mov eax, 0x6bf0fb9d
add eax, 0xa4106b50
sub dword [ebp - 0x20], eax
mov dword [ebp - 0x30], 0xc4e6ce0b
sub dword [ebp - 0x30], 0x769488c0
mov dword [ebp - 0x2c], 0x2b93e48f
sub dword [ebp - 0x2c], 0xf960984a
mov dword [ebp - 0x28], 0x2827c467
sub dword [ebp - 0x28], 0xdbdb8039
mov dword [ebp - 0x24], 0x179d1a9
sub dword [ebp - 0x24], 0x179d1a9
lea eax, [ebp - 0x30]
push eax
mov eax, 0x19747667
sub eax, 0x972d65f
add eax, dword [ebp - 0x20]
call dword [eax]
mov dword [ebp - 0x30], 0xf72a9379
sub dword [ebp - 0x30], 0x82b82a23
mov dword [ebp - 0x2c], 0xeaf4bee5
add dword [ebp - 0x2c], 0x5677a290
mov dword [ebp - 0x28], 0xdb3542c4
sub dword [ebp - 0x28], 0x77c5d658
mov dword [ebp - 0x24], 0x596e4a00
add dword [ebp - 0x24], 0xa691b600
lea ebx, [ebp - 0x30]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x20]
call dword [eax]
push 0x40
push 0x1000
push 0x3ea3f
push 0
call eax
mov ecx, 0x834bf906
sub ecx, 0x834ba021
xor esi, esi
add esi, eax
mov edi, 0xb9ecca38
add edi, 0x56157fc8
add edi, dword [ebp - 0x20]
mov edx, 0xf8a2f0fb
sub edx, 0x7b192f2c
sub dword [ebp - 0x1c], 0x83cf5347
mov ebx, dword [edi]
xor dword [ebp - 8], 0x3e965452
xor ebx, edx
xor dword [ebp - 0x1c], 0xf8d8d4a6
mov dword [esi], ebx
mov dword [ebp - 0x18], 0xe7ceadd9
add esi, 4
add edi, 0x4150218a
add edi, 0xbeafde7a
loop 0x1001680c
add eax, 0xd07f1360
sub eax, 0xd07dbcf9
mov ebx, eax
add eax, 0x74f63c37
sub eax, 0x74f63c32
mov ecx, 0x10000000
add ecx, dword [ebp - 0x20]
call ebx
leave
ret
Function at 0x10001b30
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x1005b004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov dword [ebp - 0x110], edx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x10c], ecx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x108], esi
test ecx, ecx
jg 0x10001b71
jl 0x10001d01
test esi, esi
je 0x10001d01
mov ecx, 1
mov dword [ebp - 0x84], 0xedb88320
mov eax, ecx
mov dword [ebp + eax*4 - 0x84], ecx
inc eax
add ecx, ecx
cmp eax, 0x20
jl 0x10001b82
lea edx, [ebp - 0x84]
lea ecx, [ebp - 0x104]
call fcn.10001ad0
lea edx, [ebp - 0x104]
lea ecx, [ebp - 0x84]
call fcn.10001ad0
push edi
nop dword [eax]
nop dword [eax + eax]
xor edi, edi
nop dword [eax]
nop word [eax + eax]
mov eax, dword [ebp + edi - 0x84]
lea ecx, [ebp - 0x84]
xor edx, edx
test eax, eax
je 0x10001bf5
mov esi, eax
test al, 1
je 0x10001beb
xor edx, dword [ecx]
shr eax, 1
add ecx, 4
cmp esi, 2
jae 0x10001be3
mov dword [ebp + edi - 0x104], edx
add edi, 4
cmp edi, 0x80
jl 0x10001bd0
mov edx, dword [ebp - 0x108]
mov eax, edx
and eax, 1
or eax, 0
je 0x10001c3e
xor ecx, ecx
lea eax, [ebp - 0x104]
test ebx, ebx
je 0x10001c3c
mov edx, ebx
test bl, 1
je 0x10001c2c
xor ecx, dword [eax]
shr ebx, 1
add eax, 4
cmp edx, 2
jae 0x10001c23
mov edx, dword [ebp - 0x108]
mov ebx, ecx
mov ecx, dword [ebp - 0x10c]
shrd edx, ecx, 1
sar ecx, 1
mov eax, edx
or eax, ecx
mov dword [ebp - 0x108], edx
mov dword [ebp - 0x10c], ecx
je 0x10001cfa
xor edi, edi
nop dword [eax]
nop word [eax + eax]
mov eax, dword [ebp + edi - 0x104]
lea ecx, [ebp - 0x104]
xor edx, edx
test eax, eax
je 0x10001c95
mov esi, eax
test al, 1
je 0x10001c8b
xor edx, dword [ecx]
shr eax, 1
add ecx, 4
cmp esi, 2
jae 0x10001c83
mov dword [ebp + edi - 0x84], edx
add edi, 4
cmp edi, 0x80
jl 0x10001c70
mov esi, dword [ebp - 0x108]
mov eax, esi
and eax, 1
or eax, 0
je 0x10001cd8
xor ecx, ecx
lea eax, [ebp - 0x84]
test ebx, ebx
je 0x10001cd6
mov edx, ebx
test bl, 1
je 0x10001ccc
xor ecx, dword [eax]
shr ebx, 1
add eax, 4
cmp edx, 2
jae 0x10001cc3
mov ebx, ecx
mov ecx, dword [ebp - 0x10c]
shrd esi, ecx, 1
sar ecx, 1
mov eax, esi
or eax, ecx
mov dword [ebp - 0x108], esi
mov dword [ebp - 0x10c], ecx
jne 0x10001bc0
xor ebx, dword [ebp - 0x110]
pop edi
mov ecx, dword [ebp - 4]
mov eax, ebx
pop esi
xor ecx, ebp
pop ebx
call fcn.1000c280
mov esp, ebp
pop ebp
ret
Function at 0x10001fa0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 8]
push esi
test ebx, ebx
je 0x1000212d
mov esi, dword [ebx + 0x1c]
test esi, esi
je 0x1000212d
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x1000212d
mov edx, dword [esi + 0x18]
mov dword [ebp - 8], edx
cmp edx, 2
je 0x1000212d
cmp edx, 1
jne 0x10001fe7
cmp dword [esi + 4], 0x2a
jne 0x1000212d
cmp dword [esi + 0x74], 0
jne 0x1000212d
push edi
mov edi, dword [ebp + 0x10]
cmp edx, 1
jne 0x10002010
push edi
push eax
push dword [ebx + 0x30]
call sym.zlib.dll_adler32
mov edx, dword [ebp - 8]
add esp, 0xc
mov dword [ebx + 0x30], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [esi + 0x2c]
mov dword [esi + 0x18], 0
cmp edi, ecx
jb 0x10002068
test edx, edx
jne 0x10002062
mov eax, dword [esi + 0x44]
mov ecx, dword [esi + 0x4c]
mov word [eax + ecx*2 - 2], dx
mov eax, dword [esi + 0x4c]
lea eax, [eax*2 - 2]
push eax
push edx
push dword [esi + 0x44]
call fcn.1000d6a0
mov ecx, dword [esi + 0x2c]
add esp, 0xc
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x6c], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x16b4], 0
sub edi, ecx
add eax, edi
mov edi, ecx
mov ecx, dword [ebx + 4]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebx]
mov dword [ebp - 0xc], ecx
mov ecx, esi
mov dword [ebx + 4], edi
mov dword [ebx], eax
call fcn.100035b0
mov ecx, dword [esi + 0x74]
cmp ecx, 3
jb 0x100020e8
mov ebx, dword [esi + 0x6c]
add ecx, 0xfffffffe
mov dword [ebp - 4], ecx
mov eax, dword [esi + 0x38]
mov ecx, dword [esi + 0x58]
mov edx, dword [esi + 0x34]
and edx, ebx
movzx edi, byte [eax + ebx + 2]
mov eax, dword [esi + 0x48]
shl eax, cl
mov ecx, dword [esi + 0x40]
xor edi, eax
and edi, dword [esi + 0x54]
mov eax, dword [esi + 0x44]
mov dword [esi + 0x48], edi
mov ax, word [eax + edi*2]
mov word [ecx + edx*2], ax
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x44]
mov word [eax + ecx*2], bx
inc ebx
sub dword [ebp - 4], 1
jne 0x10002090
mov ecx, esi
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x74], 2
call fcn.100035b0
mov ecx, dword [esi + 0x74]
cmp ecx, 3
jae 0x10002087
mov ebx, dword [ebp + 8]
add dword [esi + 0x6c], ecx
mov eax, dword [esi + 0x6c]
mov dword [esi + 0x5c], eax
mov eax, dword [ebp - 0xc]
mov dword [esi + 0x16b4], ecx
mov dword [esi + 0x74], 0
mov dword [esi + 0x78], 2
mov dword [esi + 0x60], 2
mov dword [esi + 0x68], 0
mov dword [ebx], eax
mov eax, dword [ebp - 0x10]
mov dword [ebx + 4], eax
mov eax, dword [ebp - 8]
pop edi
mov dword [esi + 0x18], eax
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
mov eax, 0xfffffffe
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10002230
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x100023bc
mov ecx, dword [esi + 0x1c]
test ecx, ecx
je 0x100023bc
cmp dword [esi + 0x20], 0
je 0x100023bc
cmp dword [esi + 0x24], 0
je 0x100023bc
mov dword [esi + 0x14], 0
mov dword [esi + 8], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x2c], 2
mov edx, dword [ecx + 0x18]
mov eax, dword [ecx + 8]
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x10], eax
test edx, edx
jns 0x10002293
neg edx
mov dword [ecx + 0x18], edx
test edx, edx
mov eax, 0x71
push edi
mov edi, 0x2a
cmovne eax, edi
mov dword [ecx + 4], eax
xor eax, eax
cmp edx, 2
setne al
mov dword [esi + 0x30], eax
lea eax, [ecx + 0x94]
mov dword [ecx + 0xb18], eax
lea eax, [ecx + 0x988]
mov dword [ecx + 0xb24], eax
lea eax, [ecx + 0xa7c]
mov dword [ecx + 0xb30], eax
xor eax, eax
mov dword [ecx + 0x28], 0
mov dword [ecx + 0xb20], 0x1005b8f8
mov dword [ecx + 0xb2c], 0x1005b8d0
mov dword [ecx + 0xb38], 0x1005b8e4
mov word [ecx + 0x16b8], ax
mov dword [ecx + 0x16bc], eax
call fcn.1000a4d0
mov esi, dword [esi + 0x1c]
xor edx, edx
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x4c]
add eax, eax
mov dword [esi + 0x3c], eax
mov eax, dword [esi + 0x44]
mov word [eax + ecx*2 - 2], dx
mov eax, dword [esi + 0x4c]
lea eax, [eax*2 - 2]
push eax
push edx
push dword [esi + 0x44]
call fcn.1000d6a0
mov eax, dword [esi + 0x84]
add esp, 0xc
lea ecx, [eax + eax*2]
movzx eax, word [ecx*4 + 0x10056582]
mov dword [esi + 0x80], eax
movzx eax, word [ecx*4 + 0x10056580]
mov dword [esi + 0x8c], eax
movzx eax, word [ecx*4 + 0x10056584]
mov dword [esi + 0x90], eax
xor eax, eax
movzx ecx, word [ecx*4 + 0x10056586]
pop edi
mov dword [esi + 0x7c], ecx
mov dword [esi + 0x6c], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x74], 0
mov dword [esi + 0x16b4], 0
mov dword [esi + 0x78], 2
mov dword [esi + 0x60], 2
mov dword [esi + 0x68], 0
mov dword [esi + 0x48], 0
pop esi
pop ebp
ret
mov eax, 0xfffffffe
pop esi
pop ebp
ret
Function at 0x100054f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], ecx
mov dword [edi], 0
nop dword [eax]
mov eax, ebx
sub eax, esi
push eax
lea eax, [esi + edx]
push eax
push dword [ecx + 0x14]
call fcn.1002b85d
add esp, 0xc
test eax, eax
jle 0x10005538
mov esi, dword [edi]
mov ecx, dword [ebp - 4]
add esi, eax
mov edx, dword [ebp - 8]
mov dword [edi], esi
cmp esi, ebx
jb 0x10005510
pop edi
pop esi
pop ebx
test eax, eax
jns 0x10005561
call fcn.10028040
push dword [eax]
call fcn.1002843b
mov ecx, dword [ebp - 4]
or edx, 0xffffffff
push eax
call fcn.100053f0
add esp, 8
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret
jne 0x1000556d
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x40], 1
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x100374d2
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10036e8a

Function at 0x10043301
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100431d5
Function at 0x40474d
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x41a004]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, ecx
mov dword [esp + 0x10], edx
mov ecx, dword [ebp + 8]
lea eax, [ecx - 1]
cmp eax, 0x67
ja case.0x404746.3
movzx eax, byte [eax + 0x4048cc]
jmp dword [eax*4 + 0x4048b4]
cmp ecx, 0x66
je 0x404759
mov dword [esi + 0x18], 1
push dword [esi + 0x2e0]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x3e8
push dword [esi + 0x2dc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x404788
push 2
push dword [esi + 0x2dc]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 0x2dc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esi + 0x2e4]
mov dword [esi + 0x2dc], 0
push eax
push 0
push 0x465
push edi
mov dword [esi + 0x9c], 0x14
call dword [sym.imp.USER32.dll_SendMessageW]
jmp case.0x404746.3
push 6
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
jmp case.0x404746.3
push 0
push dword [esi + 0x404]
call dword [sym.imp.USER32.dll_GetSubMenu]
mov ebx, eax
lea eax, [esp + 0x1c]
push eax
push dword [esi + 0x408]
call dword [sym.imp.USER32.dll_GetWindowRect]
test eax, eax
je 0x404807
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
jmp 0x40481a
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push 0
push edi
push 0
push eax
push ecx
push 0x180
push ebx
call dword [sym.imp.USER32.dll_TrackPopupMenu]
test eax, eax
je case.0x404746.3
mov edx, dword [esp + 0x10]
mov ecx, edi
push esi
push dword [ebp + 0xc]
push eax
call fcn.00404710
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0040621f
mov esp, ebp
pop ebp
ret 0xc
mov edx, esi
mov ecx, edi
call fcn.00401d20
jmp case.0x404746.3
push 0
push 0
push 0
lea eax, [esi + 0x3a4]
mov dword [esi + 0x40c], 0
push eax
mov dword [esi + 0x3a8], edi
call dword [sym.imp.COMCTL32.dll_Ordinal_345]
cmp dword [esi + 0x40c], 0
je case.0x404746.3
lea ecx, [esi + 0x410]
mov edx, edi
call fcn.004050d0
mov ecx, dword [esp + 0x2c]
mov eax, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040621f
mov esp, ebp
pop ebp
ret 0xc
Function at 0x404f40
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x41a004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
push str.USER32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
je 0x404fc6
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SetProcessDpiAwarenessContext
push edi
call esi
push 0xa11
push edi
mov dword [ebp - 0x10], eax
call esi
push str.SetProcessDPIAware
push edi
mov dword [ebp - 0x14], eax
call esi
push str.SetProcessDpiAwarenessInternal
push edi
mov dword [ebp - 0x18], eax
call esi
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x404fa3
push 0xfffffffffffffffc
call ecx
jmp 0x404fc5
test eax, eax
je 0x404fbc
mov esi, dword [ebp - 0x14]
test esi, esi
je 0x404fb6
push 2
call eax
call esi
jmp 0x404fc5
push 1
call eax
jmp 0x404fc5
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x404fc5
call eax
pop esi
push 2
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jne 0x405085
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov dword [ebp - 8], eax
mov edx, ebx
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0x403f20
push eax
call fcn.00404b50
add esp, 4
push 0
test eax, eax
je 0x405099
push 0
push 0
push 0x41b704
call dword [sym.imp.COMCTL32.dll_Ordinal_345]
push 0x4000
push dword [0x41b6f8]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x405074
push 1
push dword [0x41b6f8]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0
mov edx, 0x4033f0
mov ecx, 0x41b43c
call fcn.00403320
add esp, 4
mov dword [0x41b4ac], 0
mov dword [0x41b494], 0
mov dword [0x41b498], 0
mov dword [0x41b49c], 0
push 0
push 0
push 0x1d
push 0xffff
call dword [sym.imp.USER32.dll_PostMessageW]
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040621f
mov esp, ebp
pop ebp
ret 0x10
push 0xfffe
push 0x20
push 0
push str.Error...
push 2
push ebx
push 0
call dword [sym.imp.COMCTL32.dll_Ordinal_344]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
xor ecx, ebp
pop ebx
call fcn.0040621f
mov esp, ebp
pop ebp
ret 0x10
Function at 0x405150
Capabilities:
Delete registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x41a004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x2c], 0
xor ebx, ebx
mov dword [ebp - 0x30], 0
push ebx
mov edx, str.SoftwareClassesDirectoryBackground_shell_
lea ecx, [edi + 0x14]
mov dword [edi + 0x18], ebx
call fcn.00401890
add esp, 4
test eax, eax
je 0x405329
mov edx, dword [edi]
lea ecx, [edi + 0x14]
push ebx
call fcn.00401890
add esp, 4
test eax, eax
je 0x405329
mov ecx, dword [ebp + 8]
mov eax, dword [edi + 0x14]
test ecx, ecx
jne 0x4051c9
lea ecx, [ebp - 0x2c]
push ecx
push 1
push ebx
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
jmp 0x405320
cmp ecx, 2
jne 0x4051df
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
jmp 0x405324
cmp ecx, 1
jne 0x405329
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x2c]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x405329
lea eax, [edi + 0xc]
push eax
push 0x10
lea eax, [ebp - 0x24]
push eax
push 0
push 0
push str.____1_i_
push 0x2400
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
push 0
mov edx, 0x418278
mov dword [edi + 0x18], ebx
lea ecx, [edi + 0x14]
call fcn.00401890
add esp, 4
test eax, eax
je 0x405329
mov edx, dword [edi + 0x10]
lea ecx, [edi + 0x14]
push 0
call fcn.00401890
add esp, 4
test eax, eax
je 0x405329
push 0
lea edx, [ebp - 0x24]
lea ecx, [edi + 0x14]
call fcn.00401890
add esp, 4
test eax, eax
je 0x405329
mov eax, dword [edi + 0x18]
add eax, eax
push eax
push dword [edi + 0x14]
push 1
push 0
push str.MUIVerb
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x405329
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x30]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.command
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x405329
push eax
mov edx, 0x4182a0
mov dword [edi + 0x18], ebx
lea ecx, [edi + 0x14]
call fcn.00401890
add esp, 4
test eax, eax
je 0x405329
mov edx, dword [edi + 0x10]
lea ecx, [edi + 0x14]
push 0
call fcn.00401890
add esp, 4
test eax, eax
je 0x405329
push 0
mov edx, 0x4182a4
lea ecx, [edi + 0x14]
call fcn.00401890
add esp, 4
test eax, eax
je 0x405329
mov eax, dword [edi + 0x18]
add eax, eax
push eax
push dword [edi + 0x14]
push 1
push 0
push 0
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x405329
mov ebx, 1
mov eax, dword [ebp - 0x30]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x405339
push eax
call esi
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x405343
push eax
call esi
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040621f
mov esp, ebp
pop ebp
ret