joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b452
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x40b483
mov eax, dword fs:[4]
mov dword [ebp + 8], eax
mov eax, dword fs:[8]
mov dword [ebp - 4], eax
cmp ebx, dword [ebp - 4]
jb 0x40b48a
cmp ebx, dword [ebp + 8]
jae 0x40b48a
xor eax, eax
jmp 0x40b67a
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x40b49b
xor eax, eax
inc eax
jmp 0x40b679
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x40b4b1
cmp ecx, edx
jae 0x40b5f6
cmp dword [eax + 4], 0
je 0x40b4ba
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x40b4a2
cmp dword [ebp + 8], 0
je 0x40b4dc
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x40b5f6
cmp eax, esi
jae 0x40b5f6
mov eax, dword [0x10084a8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x40b501
cmp dword [esi*4 + 0x10084b0], edi
je 0x40b5fa
inc esi
cmp esi, eax
jl 0x40b4ef
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [0x10010cc]
test eax, eax
je 0x40b676
cmp dword [ebp - 8], 0x1000000
jne 0x40b676
test byte [ebp - 0xc], 0xcc
je 0x40b57f
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x40b676
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40b676
cmp word [eax + 0x18], 0x10b
jne 0x40b676
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x40b676
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x40b57f
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x40b57f
test byte [ecx + 0x27], 0x80
jne 0x40b5f6
push 1
push 0x10084f0
call dword [0x10010c8]
test eax, eax
jne 0x40b493
mov ecx, dword [0x10084a8]
test ecx, ecx
mov edx, ecx
jle 0x40b5b3
lea eax, [ecx*4 + 0x10084ac]
cmp dword [eax], edi
je 0x40b5b3
dec edx
sub eax, 4
test edx, edx
jg 0x40b5a7
test edx, edx
jne 0x40b5e4
push 0xf
pop ebx
cmp ecx, ebx
jg 0x40b5c0
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x40b5d8
lea eax, [edx*4 + 0x10084b0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x40b5c6
cmp ecx, 0x10
jge 0x40b5e4
inc ecx
mov dword [0x10084a8], ecx
push 0
push 0x10084f0
call dword [0x10010c8]
jmp 0x40b493
xor eax, eax
jmp 0x40b679
test esi, esi
jle 0x40b493
mov ebx, dword [0x10010c8]
push 1
push 0x10084f0
call ebx
test eax, eax
jne 0x40b493
cmp dword [esi*4 + 0x10084b0], edi
je 0x40b650
mov eax, dword [0x10084a8]
lea esi, [eax - 1]
test esi, esi
jl 0x40b63e
cmp dword [esi*4 + 0x10084b0], edi
je 0x40b63a
dec esi
jns 0x40b62e
test esi, esi
jge 0x40b64e
cmp eax, 0x10
jge 0x40b649
inc eax
mov dword [0x10084a8], eax
lea esi, [eax - 1]
jmp 0x40b650
je 0x40b668
xor ecx, ecx
test esi, esi
jl 0x40b668
lea eax, [ecx*4 + 0x10084b0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x40b656
push 0
push 0x10084f0
call ebx
jmp 0x40b493
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4190f3
Capabilities:
Resolve function by parsing pe exports

Disassembly:
lea edi, [eax + ebx]
je 0x41dd19
push 0
jmp 0x41dcde
jne 0x419143
lea edi, [ebx]
lea esi, [ebx]
jmp 0x41915d
mov edx, ebx
mov esi, ebx
mov eax, ebx
jmp 0x419111
add eax, dword [ebx + 0x3c]
add edx, dword [eax + 0x78]
push 0xffffffffffffffff
jmp 0x41913f
ret 4
add esi, dword [edx + 0x20]
pop ecx
lodsd eax, dword [esi]
inc ecx
cmp ecx, dword [edx + 0x18]
jmp 0x419084
add edi, dword [edx + 0x1c]
add esi, dword [edx + 0x24]
lea esi, [esi + ecx*2]
jmp 0x41dd58
movzx eax, byte [edi]
lea edi, [edi + 1]
sub dword [esp], eax
cmp byte [edi], 1
pop eax
jmp 0x41dcca
ja 0x41dcdf
xor eax, 0xd23b54a5
sbb eax, dword [esp + 4]
jmp 0x4190e1
pop eax
imul eax, eax, 0xf
push eax
jmp 0x41dcad
ret
push ebx
movzx eax, word [esi]
pop esi
add esi, dword [edi + eax*4]
jmp 0x41911e
Function at 0x1000b0e5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1003e258]
jne 0x1000b0ef
repz ret
jmp fcn.1000e9ac

Function at 0x1001a6bf
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.1000dc80
and dword [ebp - 4], 0
cmp dword [0x10040a28], 0
mov ebx, eax
jne 0x1001a770
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1001a821
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x1001a821
push eax
call fcn.1000dc0e
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x10040a28], eax
call esi
push eax
call fcn.1000dc0e
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x10040a2c], eax
call esi
push eax
call fcn.1000dc0e
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x10040a30], eax
call esi
push eax
call fcn.1000dc0e
pop ecx
mov dword [0x10040a38], eax
test eax, eax
je 0x1001a770
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1000dc0e
pop ecx
mov dword [0x10040a34], eax
mov eax, dword [0x10040a34]
cmp eax, ebx
je 0x1001a7c8
cmp dword [0x10040a38], ebx
je 0x1001a7c8
push eax
call fcn.1000dc89
push dword [0x10040a38]
mov esi, eax
call fcn.1000dc89
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x1001a7c8
test edi, edi
je 0x1001a7c8
call esi
test eax, eax
je 0x1001a7bf
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1001a7bf
test byte [ebp - 0xc], 1
jne 0x1001a7c8
or dword [ebp + 0x10], 0x200000
jmp 0x1001a801
mov eax, dword [0x10040a2c]
cmp eax, ebx
je 0x1001a801
push eax
call fcn.1000dc89
pop ecx
test eax, eax
je 0x1001a801
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x1001a801
mov eax, dword [0x10040a30]
cmp eax, ebx
je 0x1001a801
push eax
call fcn.1000dc89
pop ecx
test eax, eax
je 0x1001a801
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10040a28]
call fcn.1000dc89
pop ecx
test eax, eax
je 0x1001a821
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1001a823
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1001d439
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff8
sub esp, 0xa0
call fcn.10001077
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x2c], ecx
je 0x1001d46b
jmp 0x1001d491
mov eax, dword [esp + 0x28]
cmp word [eax], 0x5a4d
mov dword [esp + 0x24], eax
je 0x1001d49b
jmp 0x1001d4b3
lea eax, [esp + 0x40]
mov dword [0x1003e1f8], 0x32
mov dword [esp + 0x20], eax
call fcn.1001d74b
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x1c], ecx
je 0x1001d4d1
jmp 0x1001d4c7
mov eax, dword [esp + 0x2c]
lea esp, [ebp - 4]
pop esi
pop ebp
ret
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 0x18], ecx
je 0x1001d558
mov eax, dword [esp + 0x24]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x28], eax
jmp 0x1001d45a
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x2c], eax
jmp 0x1001d491
lea eax, [esp + 0x30]
mov dword [esp], eax
call fcn.1001d16c
lea ecx, [esp + 0x40]
add ecx, 0x24
mov edx, dword [esp + 0x30]
mov dword [esp + 0x90], edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
lea eax, [0x1001d5c6]
mov ecx, dword [esp + 0x10]
mov dword [ecx], 0x117200
mov edx, dword [0x1003e1e0]
mov dword [esp + 0x40], edx
mov edx, dword [0x1003e1e4]
mov dword [esp + 0x94], edx
mov edx, dword [0x1003e1e8]
mov dword [esp + 0x88], edx
mov edx, dword [0x1003e1ec]
mov dword [esp + 0x5c], edx
mov edx, dword [0x1003e1f0]
mov dword [esp + 0x84], edx
mov dword [0x1003e1f4], 0x1e4d
mov dword [esp + 0x28], eax
jmp 0x1001d45a
lea eax, [esp + 0x40]
add eax, 0x20
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x48], ecx
mov dword [0x1003e1f8], 0x1467
mov edx, dword [esp + 0x18]
mov esi, dword [ecx + edx + 0x50]
mov dword [esp + 0xc], eax
mov dword [esp + 8], esi
lea eax, [esp + 0x40]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov dword [ecx], edx
mov esi, dword [esp + 0x38]
mov dword [esp], eax
mov dword [esp + 4], esi
call fcn.1001e333
mov ecx, esp
lea edx, [esp + 0x40]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 1
mov dword [0x1003e1f8], 0xc9f
mov dword [esp + 0x1c], eax
jmp 0x1001d4c7
Function at 0x1001d74b
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x2c
mov dword [ebp - 0xc], 0
mov dword [0x1003e1f4], 0x1eeb
mov eax, dword fs:[0x30]
mov dword [ebp - 0xc], eax
xor ecx, ecx
mov edx, dword [ebp - 0xc]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + 0x3c]
mov esi, dword [0x1003e1f4]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
jmp 0x1001d806
mov eax, dword [ebp - 0x20]
add esp, 0x2c
pop esi
pop edi
pop ebp
ret
mov eax, 1
mov dword [0x1003e1f4], 0xd6f
mov dword [ebp - 0x20], eax
jmp 0x1001d78c
mov eax, dword [ebp - 0x24]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x2c], eax
jl 0x1001d806
jmp 0x1001d831
xor eax, eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x30]
cmp word [ecx + edx*2 - 0x14], 0x64
mov dword [ebp - 0x20], eax
jne 0x1001d78c
xor eax, eax
mov ecx, dword [ebp - 0x34]
add ecx, 0xc3f
mov dword [0x1003e1f8], ecx
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x30]
cmp word [ecx + edx*2 - 0x12], 0x64
mov dword [ebp - 0x20], eax
je 0x1001d8a8
jmp 0x1001d78c
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
mov edx, eax
add edx, 0xfffff3a4
mov esi, dword [ebp - 0x18]
cmp word [esi + ecx*2], 0
mov edi, ecx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x2c], edi
jne 0x1001d7aa
mov eax, dword [ebp - 0x2c]
xor ecx, ecx
mov edx, dword [ebp - 0x28]
mov dword [0x1003e1f4], edx
mov esi, dword [ebp - 0x18]
cmp word [esi + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x20], ecx
jne 0x1001d78c
xor eax, eax
mov ecx, dword [ebp - 0x34]
add ecx, 0xfffff319
mov dword [0x1003e1f4], ecx
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x30]
cmp word [ecx + edx*2 - 0x18], 0x6f
mov dword [ebp - 0x20], eax
jne 0x1001d78c
xor eax, eax
mov ecx, dword [ebp - 0x34]
add ecx, 0x1680
mov dword [0x1003e1f4], ecx
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x30]
cmp word [ecx + edx*2 - 0x16], 0x61
mov dword [ebp - 0x20], eax
je 0x1001d7c9
jmp 0x1001d78c
xor eax, eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x30]
cmp word [ecx + edx*2 - 0x10], 0x6c
mov dword [ebp - 0x20], eax
jne 0x1001d78c
xor eax, eax
mov dword [0x1003e1f8], 0xc31
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x30]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x20], eax
je 0x1001d796
jmp 0x1001d78c
Function at 0x1001d8e7
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x5c
mov eax, dword [ebp + 8]
mov ecx, dword [0x1003e1f4]
add ecx, 0xffffe9b9
mov dword [0x1003e1f4], ecx
mov dword [ebp - 0x10], eax
call fcn.1001e159
xor ecx, ecx
mov edx, eax
mov esi, dword [eax + 0x3c]
mov edi, edx
add edi, esi
mov esi, dword [eax + esi]
cmp esi, 0x4550
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], edi
je 0x1001d935
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x78]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x14]
add ecx, dword [edx + eax + 0x20]
mov esi, dword [0x1003e1f4]
mov edi, esi
add edi, 0x13d1
mov dword [0x1003e1f4], edi
mov edi, dword [edx + eax + 0x24]
mov dword [0x1003e1f8], 0x1ae9
mov ebx, dword [edx + eax + 0x18]
cmp ebx, 0
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
je 0x1001da9d
jmp 0x1001da4d
mov eax, dword [ebp - 0x3c]
movzx ecx, word [eax]
mov edx, dword [ebp - 0x30]
add edx, 0x24d2
mov dword [0x1003e1f8], edx
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x24]
add edx, dword [edx + esi + 0x1c]
mov ecx, dword [edx + ecx*4]
mov edx, dword [ebp - 0x30]
add edx, 0x6e8
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x44]
mov dword [0x1003e1f4], eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x40]
add ecx, edx
mov dword [ebp - 0x28], ecx
jmp 0x1001da9d
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x4c]
xor edx, edx
mov esi, dword [ebp - 0x2c]
mov edi, dword [esi + ecx*4]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x58], edx
mov eax, dword [ebp - 0x58]
mov ecx, eax
mov edx, dword [ebp - 0x54]
add ecx, edx
mov esi, dword [ebp - 0x1c]
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 - 0x5c], eax
mov byte [ebp - 0x5d], bh
mov byte [ebp - 0x5e], cl
je 0x1001da68
mov eax, dword [ebp - 0x5c]
add eax, 1
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x64]
cmp eax, 0x20
setb cl
mov dl, byte [ebp - 0x5d]
cmp dl, 0
setne ch
mov dh, byte [ebp - 0x5e]
and dh, ch
and dh, cl
test dh, 1
mov dword [ebp - 0x58], eax
jne 0x1001d9f4
jmp 0x1001da68
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x34]
add eax, ecx
mov dword [ebp - 0x68], eax
xor eax, eax
mov ecx, dword [ebp - 0x68]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], ecx
jmp 0x1001d9da
mov al, byte [ebp - 0x5e]
test al, 1
jne 0x1001d991
jmp 0x1001da75
xor eax, eax
mov ecx, dword [ebp - 0x3c]
add ecx, 2
mov edx, dword [ebp - 0x50]
add edx, 1
mov esi, dword [ebp - 0x38]
cmp edx, esi
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x28], eax
jb 0x1001d9da
mov eax, dword [ebp - 0x28]
add esp, 0x5c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1001db15
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov edi, dword [0x1003e1f8]
add edi, 0xffffdb6c
mov dword [0x1003e1f4], edi
mov dword [0x1003e200], 0
mov byte [0x1003e204], 0
mov dword [0x1003e1f8], 0x1f5
mov dword [0x1003e1fc], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov eax, dword [0x1003e1fc]
add eax, 1
mov dword [0x1003e1fc], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x1001db6c
jmp 0x1001db9c
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
xor eax, eax
mov dword [0x1003e1fc], 0
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov dword [ebp - 0x24], eax
xor edx, edx
mov esi, dword [ebp - 0x10]
div esi
mov dword [0x1003e208], 0
mov dword [0x1003e1f8], 0x12d9
mov edi, dword [0x1003e200]
mov ebx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x24]
movzx esi, byte [ebx + esi]
add esi, edi
mov edi, dword [ebp - 0x14]
movzx edx, byte [edi + edx]
add esi, edx
mov dword [0x1003e208], esi
mov dword [0x1003e1f4], 0x1d57
mov eax, esi
cdq
idiv ecx
mov dword [0x1003e200], edx
mov ecx, dword [ebp - 0x24]
mov cl, byte [ebx + ecx]
mov byte [0x1003e204], cl
mov cl, byte [ebx + edx]
mov edx, dword [ebp - 0x24]
mov byte [ebx + edx], cl
mov cl, byte [0x1003e204]
mov esi, dword [0x1003e200]
mov byte [ebx + esi], cl
mov dword [0x1003e1f4], 0x13c
mov esi, dword [0x1003e1fc]
add esi, 1
mov dword [0x1003e1fc], esi
cmp esi, 0x100
mov dword [ebp - 0x20], esi
jl 0x1001dbab
jmp 0x1001db94
Function at 0x1001dcfe
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 dword [0x1003e1fc], 0
mov dword [0x1003e200], 0
mov dword [0x1003e20c], 0
mov dword [0x1003e1f4], 0x201d
cmp eax, 0
mov ebx, edi
mov dword [ebp - 0x10], eax
mov eax, edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], edi
je 0x1001de3b
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
mov esi, 0x100
mov dword [0x1003e1f4], 0x1361
add ecx, 1
mov dword [ebp - 0x2c], eax
mov eax, ecx
mov dword [ebp - 0x30], edx
cdq
idiv esi
mov dword [0x1003e1fc], edx
mov ecx, dword [ebp - 0x20]
movzx edi, byte [ecx + edx]
mov ebx, dword [ebp - 0x30]
add edi, ebx
mov eax, edi
mov dword [ebp - 0x34], edx
cdq
idiv esi
mov dword [0x1003e200], edx
mov esi, dword [ebp - 0x34]
mov cl, byte [ecx + esi]
mov byte [0x1003e204], cl
mov edi, dword [ebp - 0x20]
mov cl, byte [edi + edx]
mov byte [edi + esi], cl
mov cl, byte [0x1003e204]
mov edx, dword [0x1003e200]
mov byte [edi + edx], cl
mov edx, dword [0x1003e1fc]
movzx edx, byte [edi + edx]
mov ebx, dword [0x1003e200]
movzx ebx, byte [edi + ebx]
add ebx, edx
and ebx, 0xff
mov dword [0x1003e20c], ebx
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x2c]
mov cl, byte [edx + ecx]
xor cl, byte [edi + ebx]
mov ebx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x2c]
mov byte [ebx + edx], cl
mov dword [0x1003e1f4], 0x1056
add edx, 1
mov ecx, dword [ebp - 0x10]
cmp edx, ecx
mov dword [ebp - 0x38], edx
je 0x1001de3b
mov eax, dword [0x1003e200]
mov ecx, dword [0x1003e1fc]
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x28], edx
jmp 0x1001dd61
mov eax, dword [0x1003e1f8]
add eax, 0x3b1
mov dword [0x1003e1f8], eax
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1001e333
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x54
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x2c], ecx
xor eax, eax
mov dword [0x1003e1f4], 0x1243
mov dword [0x1003e1f8], 0x2000
mov dword [ebp - 0x30], eax
jmp 0x1001e395
lea eax, [ebp - 0x24]
mov dword [0x1003e1f8], 0x14aa
mov dword [ebp - 0x34], eax
call fcn.1001de5d
mov dword [esp], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 4], eax
call fcn.1001e001
cmp eax, 0
mov dword [ebp - 0x38], eax
je 0x1001e467
jmp 0x1001e3bd
mov eax, dword [ebp - 0x30]
mov cl, byte [eax + 0x1001f4cc]
mov dl, byte [eax + 0x1001f49d]
sub dl, cl
mov byte [ebp + eax - 0x24], dl
add eax, 1
cmp eax, 0xe
mov dword [ebp - 0x30], eax
je 0x1001e361
jmp 0x1001e395
mov eax, dword [ebp - 0x2c]
add eax, 0x2c
mov ecx, dword [ebp - 0x38]
mov edx, esp
mov dword [edx + 0xc], 0x40
mov dword [edx + 8], 0x1000
mov dword [edx + 4], 0x6000
mov dword [edx], 0
mov dword [ebp - 0x3c], eax
call ecx
sub esp, 0x10
mov dword [esp], eax
mov ecx, dword [ebp - 0x28]
mov dword [esp + 4], ecx
mov dword [ebp - 0x40], eax
call fcn.1001e5d4
mov dword [0x1003e1f8], 0xa05
mov eax, dword [ebp - 0x40]
mov word [eax], 0x5a4d
mov dword [eax + 0x3c], 0xc0
mov dword [eax + 0xc0], 0x4550
add eax, 0xffc00000
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + 0x18], eax
xor eax, eax
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x40]
mov dword [ecx], edx
add edx, 0x2566
mov dword [0x1003e1f4], 0x138f
mov esi, dword [ebp - 0x40]
cmp esi, 0
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x48], eax
je 0x1001e45e
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
add esp, 0x54
pop esi
pop ebp
ret
xor eax, eax
add esp, 0x54
pop esi
pop ebp
ret
Function at 0x41c652
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ecx
push esi
push edi
push 0x4379fc
push dword [esp + 0x18]
push dword [0x445068]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x41c76b
push esi
push dword [0x445068]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x41c76b
push esi
push dword [0x445068]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x41c76b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x41c76b
push ebx
push ebp
push edi
xor ebp, ebp
push 2
mov dword [esp + 0x1c], ebp
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x41c763
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x41c75c
push edi
push esi
push eax
call fcn.00424250
add esp, 0xc
mov dword [esp + 0x10], ebp
lea eax, [esp + 0x10]
push eax
push ebp
push ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x41c755
push ebp
push dword [esp + 0x14]
call fcn.0041c5b6
mov ecx, dword [esp + 0x10]
mov edi, eax
push ecx
mov edx, dword [ecx]
mov esi, dword [edx + 8]
mov ecx, esi
call dword [0x436278]
call esi
test edi, edi
je 0x41c755
mov eax, dword [edi + 8]
mov dword [edi + 8], ebp
test eax, eax
jne 0x41c743
push 0xffffff
lea eax, [esp + 0x18]
push eax
push dword [edi + 4]
call sub.gdiplus.dll_GdipCreateHBITMAPFromBitmap
test eax, eax
je 0x41c743
mov dword [edi + 8], eax
mov eax, dword [edi]
push 1
mov esi, dword [eax]
mov ecx, esi
call dword [0x436278]
mov ecx, edi
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x14]
pop ebp
pop ebx
jmp 0x41c76d
xor eax, eax
pop edi
pop esi
pop ecx
pop ecx
ret 4

Function at 0x41cf89
Capabilities:
Delete file

Disassembly:
push ebp
lea ebp, [esp - 0xfa8]
mov eax, 0x1028
call fcn.00421590
mov eax, dword [0x44277c]
xor eax, ebp
mov dword [ebp + 0xfa4], eax
cmp word [0x454892], 0
je 0x41d03a
push esi
push 6
push dword [0x442724]
mov esi, 0x454892
push esi
call fcn.0040e208
push eax
call fcn.0041418a
test eax, eax
jne 0x41d039
push 0x453890
call fcn.0041cbb6
push 0x800
push esi
lea eax, [ebp - 0x60]
push eax
call fcn.0041268b
lea eax, [ebp - 0x60]
push eax
call fcn.00426433
pop ecx
lea eax, [eax*2 + 2]
cmp eax, 0x1002
jae 0x41d04f
xor ecx, ecx
push 0x1e
mov word [ebp + eax - 0x60], cx
lea eax, [ebp - 0x80]
push ecx
push eax
call fcn.00422640
add esp, 0xc
mov dword [ebp - 0x7c], 3
push 0x14
pop eax
mov word [ebp - 0x70], ax
lea eax, [ebp - 0x60]
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
pop esi
mov ecx, dword [ebp + 0xfa4]
xor ecx, ebp
call fcn.004210f9
add ebp, 0xfa8
leave
ret
call fcn.004213f9
int3
Function at 0x41fd98
Capabilities:
Hide graphical window

Disassembly:
and dword [0x45388c], 0
push 1
push dword [esp + 8]
mov byte [0x44c46d], 1
mov byte [0x44c46e], 1
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 2
push dword [esp + 0xc]
call fcn.00401323
cmp dword [0x463cd4], 0
jne 0x41fdd8
cmp byte [0x44c47b], 0
je 0x41fde1
cmp dword [0x44c474], 0
jne 0x41fdf4
push 0
push 1
push 0x111
push dword [esp + 0x10]
call dword [sym.imp.USER32.dll_SendMessageW]
ret 4

Function at 0x41ffdd
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.00421590
mov eax, dword [0x44277c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push esi
push str.sfxcmd
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push 0x1000
lea eax, [ebp - 0x2004]
push eax
push esi
call fcn.004123d6
mov esi, eax
test esi, esi
je 0x42003e
movzx ecx, word [esi]
push ecx
jmp 0x420029
add esi, 2
movzx eax, word [esi]
push eax
call fcn.004124f2
test al, al
jne 0x420022
push esi
push str.sfxpar
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004210f9
leave
ret 4