joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10133192
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x102a94f8]
jne 0x1013319c
repz ret
jmp fcn.10135119

Function at 0x101384af
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.10134196
and dword [ebp - 4], 0
cmp dword [0x102ab958], 0
mov ebx, eax
jne 0x10138560
push 0x1027aac8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x10138611
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1027aabc
push edi
call esi
test eax, eax
je 0x10138611
push eax
call fcn.10134124
mov dword [esp], 0x1027aaac
push edi
mov dword [0x102ab958], eax
call esi
push eax
call fcn.10134124
mov dword [esp], 0x1027aa98
push edi
mov dword [0x102ab95c], eax
call esi
push eax
call fcn.10134124
mov dword [esp], 0x1027aa7c
push edi
mov dword [0x102ab960], eax
call esi
push eax
call fcn.10134124
pop ecx
mov dword [0x102ab968], eax
test eax, eax
je 0x10138560
push 0x1027aa64
push edi
call esi
push eax
call fcn.10134124
pop ecx
mov dword [0x102ab964], eax
mov eax, dword [0x102ab964]
cmp eax, ebx
je 0x101385b8
cmp dword [0x102ab968], ebx
je 0x101385b8
push eax
call fcn.1013419f
push dword [0x102ab968]
mov esi, eax
call fcn.1013419f
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x101385b8
test edi, edi
je 0x101385b8
call esi
test eax, eax
je 0x101385af
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x101385af
test byte [ebp - 0xc], 1
jne 0x101385b8
or dword [ebp + 0x10], 0x200000
jmp 0x101385f1
mov eax, dword [0x102ab95c]
cmp eax, ebx
je 0x101385f1
push eax
call fcn.1013419f
pop ecx
test eax, eax
je 0x101385f1
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x101385f1
mov eax, dword [0x102ab960]
cmp eax, ebx
je 0x101385f1
push eax
call fcn.1013419f
pop ecx
test eax, eax
je 0x101385f1
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x102ab958]
call fcn.1013419f
pop ecx
test eax, eax
je 0x10138611
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x10138613
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10139436
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff8
sub esp, 0xa0
mov eax, dword [0x102a9494]
add eax, 0xfffffdcf
mov dword [0x102a9494], eax
call fcn.1000108e
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x2c], ecx
je 0x1013952c
jmp 0x10139522
lea eax, [esp + 0x30]
mov dword [esp], eax
call fcn.10139183
lea ecx, [0x1013a6d2]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x58], edx
mov dword [esp + 0x4c], 0x10f400
mov edx, dword [0x102a9480]
mov dword [esp + 0x48], edx
mov edx, dword [0x102a9484]
mov dword [esp + 0x70], edx
mov edx, dword [0x102a9488]
mov dword [esp + 0x5c], edx
mov edx, dword [0x102a948c]
mov dword [esp + 0x80], edx
mov edx, dword [0x102a9490]
mov dword [esp + 0x8c], edx
mov dword [0x102a9494], 0xfffff70e
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], ecx
mov eax, dword [esp + 0x24]
cmp word [eax], 0x5a4d
mov dword [esp + 0x20], eax
je 0x101394fc
mov eax, dword [esp + 0x20]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x24], eax
jmp 0x101394d9
mov eax, dword [esp + 0x20]
add eax, 0x3c
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax]
mov edx, dword [esp + 0x20]
cmp dword [edx + ecx], 0x4550
mov dword [esp + 0x18], ecx
je 0x1013955f
jmp 0x101394e8
mov eax, dword [esp + 0x2c]
lea esp, [ebp - 4]
pop esi
pop ebp
ret
lea eax, [esp + 0x40]
mov dword [0x102a9498], 0xcff
mov dword [esp + 0x14], eax
call fcn.10139ce9
mov dword [esp + 0x10], eax
xor eax, eax
mov ecx, dword [esp + 0x10]
cmp ecx, 0
mov dword [esp + 0xc], eax
je 0x1013946d
jmp 0x101395c9
lea eax, [esp + 0x40]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x88], ecx
mov dword [0x102a9498], 0x2382
mov edx, dword [esp + 0x18]
mov esi, dword [ecx + edx + 0x50]
mov dword [esp + 0x84], esi
mov dword [0x102a9494], 0x17e8
mov esi, dword [esp + 0x38]
mov dword [esp], eax
mov dword [esp + 4], esi
call fcn.1013a093
mov ecx, esp
lea edx, [esp + 0x40]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 1
mov ecx, dword [0x102a9494]
add ecx, 0xfffff71a
mov dword [0x102a9494], ecx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x2c], eax
jmp 0x10139522
Function at 0x101397c6
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 dword [0x102a94a0], 0
mov byte [0x102a94a4], 0
mov dword [0x102a9494], 0x2002
mov dword [0x102a9498], 0xf6c
mov dword [0x102a949c], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
jmp 0x10139849
mov eax, dword [0x102a9498]
add eax, 0xffffeb75
mov dword [0x102a9498], eax
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [0x102a9498], 0x1a2c
xor eax, eax
mov dword [0x102a949c], 0
mov dword [ebp - 0x20], eax
jmp 0x1013987b
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov dword [0x102a9494], 0x142c
mov eax, dword [0x102a949c]
add eax, 1
mov dword [0x102a949c], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x10139849
jmp 0x1013982e
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov dword [0x102a94a8], 0
mov edx, dword [0x102a94a0]
mov esi, dword [ebp - 0x18]
movzx edi, byte [esi + eax]
add edi, edx
mov dword [ebp - 0x24], eax
xor edx, edx
mov ebx, dword [ebp - 0x10]
div ebx
mov esi, dword [ebp - 0x14]
movzx edx, byte [esi + edx]
add edi, edx
mov dword [0x102a94a8], edi
mov dword [0x102a9498], 0x232c
mov eax, edi
cdq
idiv ecx
mov dword [0x102a94a0], edx
mov dword [0x102a9494], 0x347
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x24]
mov cl, byte [ecx + edi]
mov byte [0x102a94a4], cl
mov ecx, dword [ebp - 0x18]
mov cl, byte [ecx + edx]
mov edx, dword [ebp - 0x18]
mov byte [edx + edi], cl
mov cl, byte [0x102a94a4]
mov edx, dword [0x102a94a0]
mov esi, dword [ebp - 0x18]
mov byte [esi + edx], cl
mov edx, dword [0x102a949c]
add edx, 1
mov dword [0x102a949c], edx
cmp edx, 0x100
mov dword [ebp - 0x20], edx
jl 0x1013987b
jmp 0x10139817
Function at 0x10139ce9
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x34
mov dword [ebp - 0xc], 0
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 [0x102a9498]
mov edi, esi
add edi, 0xffffde83
mov dword [0x102a9494], edi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x18]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], edx
je 0x10139da0
jmp 0x10139d75
mov eax, dword [ebp - 0x2c]
xor ecx, ecx
add eax, 0xfffff184
mov dword [0x102a9498], eax
mov dword [ebp - 0x30], ecx
jmp 0x10139e69
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x34]
cmp word [eax + ecx*2 - 0x18], 0x6f
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x2c], edx
je 0x10139dc4
jmp 0x10139d47
mov eax, dword [ebp - 0x24]
add eax, 1
cmp eax, 0x104
setl cl
mov dword [ebp - 0x38], eax
mov byte [ebp - 0x39], cl
mov al, byte [ebp - 0x39]
test al, 1
mov ecx, dword [ebp - 0x38]
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x28], edx
jne 0x10139d2f
jmp 0x10139da0
mov eax, dword [ebp - 0x28]
mov dword [0x102a9498], 0x9f
mov ecx, dword [ebp - 0x18]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x2c], edx
je 0x10139d5e
jmp 0x10139d47
mov dword [0x102a9498], 0x1815
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x34]
cmp word [eax + ecx*2 - 0x16], 0x61
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x2c], edx
jne 0x10139d47
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x34]
cmp word [eax + ecx*2 - 0x14], 0x64
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x2c], edx
jne 0x10139d47
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x34]
cmp word [eax + ecx*2 - 0x12], 0x64
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x2c], edx
jne 0x10139d47
mov eax, dword [ebp - 0x1c]
add eax, 0xffffdce0
mov dword [0x102a9494], eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x34]
cmp word [ecx + edx*2 - 0x10], 0x6c
mov dword [ebp - 0x2c], eax
jne 0x10139d47
mov eax, 1
mov ecx, 0xadf
mov dword [0x102a9494], 0xadf
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x34]
cmp word [edx + esi*2 - 0xe], 0x6c
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], eax
jne 0x10139d47
mov eax, dword [ebp - 0x30]
add esp, 0x34
pop esi
pop edi
pop ebp
ret
Function at 0x1013a093
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x50
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
lea edx, [0x1027994d]
mov esi, 0xe
lea edi, [ebp - 0x28]
mov dword [esp], edi
mov dword [esp + 4], edx
mov dword [esp + 8], 0xe
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], esi
call fcn.10139932
mov eax, dword [0x102a9494]
add eax, 0xffffe70f
mov dword [0x102a9494], eax
call fcn.10139c45
mov dword [esp], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 4], eax
call fcn.101395d6
cmp eax, 0
mov dword [ebp - 0x3c], eax
je 0x1013a1a6
mov eax, dword [ebp - 0x3c]
mov ecx, dword [0x102a9494]
add ecx, 0x1acf
mov dword [0x102a9494], ecx
mov ecx, esp
mov dword [ecx + 0xc], 0x40
mov dword [ecx + 8], 0x1000
mov dword [ecx + 4], 0x6000
mov dword [ecx], 0
call eax
sub esp, 0x10
mov dword [esp], eax
mov ecx, dword [ebp - 0x2c]
mov dword [esp + 4], ecx
mov dword [ebp - 0x40], eax
call fcn.10139e95
xor eax, eax
mov ecx, dword [ebp - 0x40]
mov word [ecx], 0x5a4d
mov dword [ecx + 0x3c], 0xc0
mov dword [ecx + 0xc0], 0x4550
add ecx, 0xffc00000
mov edx, dword [ebp - 0x30]
mov dword [edx], ecx
mov dword [0x102a9494], 0x112
mov ecx, dword [ebp - 0x40]
mov dword [edx + 0x14], ecx
add ecx, 0x14de
mov esi, dword [ebp - 0x40]
cmp esi, 0
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x48], eax
je 0x1013a19c
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
add esp, 0x50
pop esi
pop edi
pop ebp
ret
xor eax, eax
add esp, 0x50
pop esi
pop edi
pop ebp
ret
Function at 0x1013a349
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x40
mov eax, dword [ebp + 8]
mov ecx, dword [0x102a9494]
add ecx, 0x4b29
mov dword [0x102a9494], ecx
mov dword [ebp - 0x10], eax
call fcn.10139a43
xor ecx, ecx
mov edx, eax
mov esi, dword [eax + 0x3c]
mov esi, dword [eax + esi + 0x78]
mov dword [0x102a9498], 0x47e5
mov edi, edx
add edi, dword [eax + esi + 0x20]
mov dword [0x102a9494], 0x660
mov eax, dword [eax + esi + 0x18]
cmp eax, 0
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], ecx
je 0x1013a4ba
jmp 0x1013a43f
mov eax, dword [ebp - 0x28]
mov ecx, eax
mov edx, dword [ebp - 0x2c]
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 - 0x30], eax
mov byte [ebp - 0x31], bh
mov byte [ebp - 0x32], cl
jne 0x1013a45b
mov al, byte [ebp - 0x32]
test al, 1
jne 0x1013a41a
jmp 0x1013a48c
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x40]
xor esi, esi
mov edi, dword [ebp - 0x14]
mov ebx, dword [edi + eax*4]
add edx, 0x24f8
mov dword [0x102a9494], edx
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x28], esi
jmp 0x1013a3b7
mov eax, dword [ebp - 0x48]
movzx ecx, word [eax]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
add edx, dword [edx + esi + 0x1c]
mov dword [0x102a9494], 0xc39
mov edi, dword [ebp - 0x1c]
add edi, dword [edx + ecx*4]
mov dword [ebp - 0x24], edi
jmp 0x1013a4ba
mov eax, 0x660
xor ecx, ecx
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
add edx, dword [edx + esi + 0x24]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x38], ecx
jmp 0x1013a3ec
mov eax, dword [ebp - 0x30]
add eax, 1
mov cl, byte [ebp - 0x31]
cmp cl, 0
setne dl
mov ch, byte [ebp - 0x32]
and ch, dl
cmp eax, 0x20
setb dl
and ch, dl
test ch, 1
mov dword [ebp - 0x28], eax
jne 0x1013a3b7
jmp 0x1013a3e0
xor eax, eax
mov ecx, dword [ebp - 0x48]
add ecx, 2
mov edx, dword [ebp - 0x44]
add edx, 1
mov esi, dword [ebp - 0x18]
cmp edx, esi
mov edi, dword [ebp - 0x4c]
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x24], eax
jb 0x1013a3ec
mov eax, dword [ebp - 0x24]
add esp, 0x40
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1013a4c5
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 [0x102a949c], 0
mov dword [0x102a94a0], 0
mov dword [0x102a94ac], 0
mov dword [0x102a9498], 0x14e0
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 0x1013a5f0
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
mov esi, 0x100
mov dword [0x102a9494], 0xb69
add ecx, 1
mov dword [ebp - 0x2c], eax
mov eax, ecx
mov dword [ebp - 0x30], edx
cdq
idiv esi
mov dword [0x102a949c], 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 [0x102a94a0], edx
mov esi, dword [ebp - 0x34]
mov cl, byte [ecx + esi]
mov byte [0x102a94a4], cl
mov edi, dword [ebp - 0x20]
mov cl, byte [edi + edx]
mov byte [edi + esi], cl
mov dword [0x102a9494], 0x226c
mov cl, byte [0x102a94a4]
mov edx, dword [0x102a94a0]
mov byte [edi + edx], cl
mov edx, dword [0x102a949c]
movzx edx, byte [edi + edx]
mov ebx, dword [0x102a94a0]
movzx ebx, byte [edi + ebx]
add ebx, edx
and ebx, 0xff
mov dword [0x102a94ac], ebx
mov dword [0x102a9494], 0x11c5
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
add edx, 1
mov ecx, dword [ebp - 0x10]
cmp edx, ecx
mov dword [ebp - 0x38], edx
jne 0x1013a602
mov dword [0x102a9498], 0xe7d
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [0x102a949c]
mov ecx, dword [0x102a94a0]
mov edx, dword [ebp - 0x38]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x28], edx
jmp 0x1013a528
Function at 0x4082e8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, ecx
push esi
push edi
cmp dword [ebx + 0x38], 0
je 0x40830f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004090d8
jmp 0x4083c4
mov eax, dword [ebx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], eax
test eax, eax
je 0x408331
mov eax, dword [ebx + 0x30]
mov eax, dword [eax]
jmp 0x408333
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test edi, edi
jl 0x4083b8
jg 0x408348
test esi, esi
je 0x4083b8
test ecx, ecx
jl 0x408391
jg 0x408352
test eax, eax
je 0x408391
cmp edi, ecx
jg 0x408366
jl 0x40835c
cmp esi, eax
jae 0x408366
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edi
push eax
push dword [ebp + 8]
push dword [esp + 0x1c]
call fcn.004e5be0
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x30]
add edx, ecx
sub esi, ecx
sbb edi, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [ebx + 0x20]
add dword [eax], ecx
jmp 0x408394
mov edx, dword [ebp + 8]
test edi, edi
jl 0x4083b8
jg 0x40839e
test esi, esi
je 0x4083b8
cmp dword [ebx + 0x4c], 0
je 0x4083b8
push dword [ebx + 0x4c]
push esi
push 1
push edx
call fcn.004edd17
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4083cd
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x38], 0
je 0x4083f4
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00409009
jmp 0x4084c3
mov eax, dword [edi + 0x1c]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], eax
test eax, eax
je 0x408416
mov eax, dword [edi + 0x2c]
mov eax, dword [eax]
jmp 0x408418
xor eax, eax
cdq
mov dword [esp + 0xc], eax
mov ecx, edx
mov dword [esp + 0x10], ecx
test ebx, ebx
jl 0x4084b7
jg 0x408435
test esi, esi
je 0x4084b7
test ecx, ecx
jl 0x408482
jg 0x40843f
test eax, eax
je 0x408482
cmp ebx, ecx
jg 0x408453
jl 0x408449
cmp esi, eax
jae 0x408453
mov eax, esi
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], ebx
push eax
push dword [esp + 0x18]
push dword [ebp + 8]
call fcn.004e5be0
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
mov eax, dword [edi + 0x2c]
add edx, ecx
sub esi, ecx
mov dword [esp + 0xc], edx
sbb ebx, dword [esp + 0x10]
sub dword [eax], ecx
mov eax, dword [edi + 0x1c]
add dword [eax], ecx
jmp 0x408489
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
test ebx, ebx
jl 0x4084b7
jg 0x408493
test esi, esi
je 0x4084b7
cmp dword [edi + 0x4c], 0
je 0x4084b7
mov ecx, edi
call fcn.0040896f
push dword [edi + 0x4c]
push esi
push 1
push dword [esp + 0x18]
call fcn.004edf3b
add esp, 0x10
sub esi, eax
sbb ebx, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x408725
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x6f03ac]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
or edi, 0xffffffff
mov esi, ecx
cmp ebx, edi
jne 0x40874b
xor eax, eax
jmp 0x408810
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x408774
mov edx, dword [esi + 0x30]
mov eax, dword [edx]
add eax, ecx
cmp ecx, eax
jae 0x408774
dec dword [edx]
mov eax, ebx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
jmp 0x408810
cmp dword [esi + 0x4c], 0
je 0x40880e
mov ecx, esi
call fcn.0040896f
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4087a1
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.004ee33d
cmp eax, edi
pop ecx
pop ecx
cmovne edi, ebx
jmp 0x40880e
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
mov edx, dword [ecx]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x1c]
test eax, eax
js 0x40880e
cmp eax, 1
jle 0x4087dd
cmp eax, 3
jne 0x40880e
push dword [esi + 0x4c]
movsx ecx, byte [ebp - 0x25]
push ecx
jmp 0x408793
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x24]
sub eax, ecx
mov dword [ebp - 0x30], eax
je 0x408800
push dword [esi + 0x4c]
push eax
mov eax, ecx
push 1
push eax
call fcn.004edd17
add esp, 0x10
cmp dword [ebp - 0x30], eax
jne 0x40880e
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x34], eax
mov eax, ebx
jne 0x408810
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004cdce5
leave
ret 4

Function at 0x408992
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x6f03ac]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
cmp dword [esi + 0x38], 0
je 0x408a14
cmp byte [esi + 0x3d], 0
je 0x408a14
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x4089e6
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
mov edx, dword [ecx]
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x4089ea
sub eax, 1
je 0x4089ee
dec eax
sub eax, 1
je 0x408a14
xor al, al
jmp 0x408a16
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x408a0b
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.004edd17
add esp, 0x10
cmp edi, eax
jne 0x4089e6
cmp byte [esi + 0x3d], 0
sete al
jmp 0x408a16
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004cdce5
leave
ret
Function at 0x40bb81
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 4
mov eax, 0x655de9
call fcn.004ce621
push ecx
call fcn.00421f90
push 4
call fcn.004223c0
pop ecx
pop ecx
push 0x6db5b0
push 0x82
call fcn.00419a80
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x40bbf6
push esi
call fcn.00419a80
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40bbef
push esi
call fcn.00419a80
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
je 0x40bbef
push 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
call fcn.004223d0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push 0x4014f0
sub esp, 0x84
mov ecx, esp
mov dword [ebp - 0x10], esp
push 0xffffffffffffffff
push str.CImageAnimUI
call fcn.0040edd0
and dword [ebp - 4], 0
call fcn.00432c90
or dword [ebp - 4], 0xffffffff
mov ecx, eax
call fcn.00432d60
call fcn.004ce5ea
ret

Function at 0x40be4c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x6f03ac]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x214]
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftWindows_NTCurrentVersionAppCompatFlagsCompatibility_AssistantPersisted
push reloc.gdiplus.dll_Ordinal_1
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40bec3
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x40bec3
push 4
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 1
push eax
push 4
push 0
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004cdce5
leave
ret