joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4176fa
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041756b

Function at 0x417af4
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.0040a3e0
mov eax, dword [0x4aa600]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.004156fd
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x417b36
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x417c92
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00420910
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x4acc70]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00418893
mov ecx, dword [esi*4 + 0x4acc70]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x417c8b
cmp eax, dword [edi + ecx + 0x24]
jne 0x417c8b
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x417c8b
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00418893
add esp, 0x14
test edx, edx
jl 0x417c8b
jg 0x417c01
test eax, eax
jb 0x417c8b
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x417c8b
jl 0x417c1b
cmp dword [ebp - 0x1008], eax
ja 0x417c8b
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x417c39
test ebx, ebx
je 0x417c72
cmp ecx, edi
jae 0x417c72
mov al, byte [ecx]
cmp al, 0xd
jne 0x417c53
lea eax, [edi - 1]
cmp ecx, eax
jae 0x417c5f
cmp byte [ecx + 1], 0xa
jne 0x417c5f
inc ecx
jmp 0x417c5f
movzx eax, al
movsx eax, byte [eax + 0x4aa8d0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x417c39
cmp edx, ebx
jne 0x417c39
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x417c90
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00409a3b
leave
ret
Function at 0x417d31
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4acc70]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x417d71
cmp byte [ebx], 0xa
jne 0x417d71
or byte [eax + edi + 0x28], 4
jmp 0x417d76
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x417e74
mov al, byte [edx]
cmp al, 0x1a
je 0x417e56
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x417da5
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x417dca
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x417dd4
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x417d87
jmp 0x417e74
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x417e51
cmp dword [ebp - 0xc], 0
je 0x417e51
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4acc70]
test byte [eax + edi + 0x28], 0x48
je 0x417e2b
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x417e16
mov byte [esi], dl
jmp 0x417e27
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4acc70]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x417e74
cmp byte [ebp - 1], 0xa
jne 0x417e3a
cmp esi, ebx
jne 0x417e3a
mov byte [esi], 0xa
jmp 0x417e73
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004188b1
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x417e74
mov byte [esi], 0xd
jmp 0x417e73
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4acc70]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x417e70
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x417e74
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x417e7d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x4acc70]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x417ec0
cmp word [esi], dx
jne 0x417ec0
or byte [edi + eax + 0x28], 4
jmp 0x417ec5
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x418018
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x417ff8
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x417f07
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x417f3d
cmp eax, edx
jae 0x417f49
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x417edf
jmp 0x418018
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x417ff4
cmp dword [ebp - 0x14], 0
je 0x417ff4
mov eax, dword [ebx*4 + 0x4acc70]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x417fcc
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x417f95
mov word [esi], cx
jmp 0x417fc8
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4acc70]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4acc70]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4acc70]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x418018
pop ebx
cmp word [ebp - 4], bx
jne 0x417fdd
cmp esi, dword [ebp + 0xc]
jne 0x417fdd
mov word [esi], bx
jmp 0x418015
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004188b1
add esp, 0x10
cmp word [ebp - 4], bx
je 0x418018
push 0xd
jmp 0x418011
mov ecx, dword [ebx*4 + 0x4acc70]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41800f
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x418018
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x403c80
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x403c99
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x403cd4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x403cd0
lea ebx, [ebx]
cmp esi, eax
jae 0x403cd4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x403cc0
cmp esi, eax
jb 0x403cda
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x405820
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x44655b
mov eax, dword fs:[0]
push eax
sub esp, 0x10c
mov eax, dword [0x45b8b4]
xor eax, esp
mov dword [esp + 0x108], eax
mov eax, dword [0x45b8b4]
xor eax, esp
push eax
lea eax, [esp + 0x110]
mov dword fs:[0], eax
push 0x44eac8
lea ecx, [esp + 8]
mov dword [esp + 8], 0
call fcn.004039f0
lea eax, [esp + 8]
push eax
push 0x104
mov dword [esp + 0x120], 0
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 8]
push 0x44e658
push edx
call fcn.00403d50
mov eax, dword [esp + 0x10]
mov eax, dword [eax - 0xc]
add esp, 0xc
add eax, 0xffffffff
push eax
push esi
lea ecx, [esp + 0xc]
call fcn.00408850
mov dword [esp + 0x118], 0xffffffff
mov eax, dword [esp + 4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4058df
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x110]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.0042e419
add esp, 0x118
ret

Function at 0x406690
Capabilities:
Resume thread

Disassembly:
push 0xffffffffffffffff
push 0x44625a
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x45b8b4]
xor eax, esp
push eax
lea eax, [esp + 8]
mov dword fs:[0], eax
test esi, esi
je 0x40672d
push 0
push 0
push 4
mov ecx, esi
mov dword [esi + 0x34], 0
call fcn.00416068
test eax, eax
je 0x40672d
mov eax, dword [esi + 0x2c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov ecx, dword [esi + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp dword [edi + 0xf4], 0
jne 0x406721
push 0x1c
call fcn.0040cab3
add esp, 4
mov dword [esp + 4], eax
test eax, eax
mov dword [esp + 0x10], 0
je 0x406711
push 0xa
mov ecx, eax
call fcn.0041bd28
jmp 0x406713
xor eax, eax
mov dword [esp + 0x10], 0xffffffff
mov dword [edi + 0xf4], eax
mov ecx, dword [edi + 0xf4]
push esi
call fcn.0042219d
mov ecx, dword [esp + 8]
mov dword fs:[0], ecx
pop ecx
add esp, 0x10
ret

Function at 0x406b20
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x446e98
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x45b8b4]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov dword [esp + 0x18], 0
mov esi, dword [esp + 0x20]
mov ecx, dword [esi - 8]
mov eax, 1
sub eax, dword [esi - 4]
or ecx, eax
jge 0x406b6d
push 0
lea ecx, [esp + 0x24]
call fcn.00403890
mov esi, dword [esp + 0x20]
lea eax, [esp + 0xc]
push eax
push 0
push esi
push 0x406e60
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esi - 0x10]
mov dword [esp + 0x18], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406bba
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4
Function at 0x406bd0
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x446e98
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x45b8b4]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov dword [esp + 0x18], 0
mov esi, dword [esp + 0x20]
mov ecx, dword [esi - 8]
mov eax, 1
sub eax, dword [esi - 4]
or ecx, eax
jge 0x406c1d
push 0
lea ecx, [esp + 0x24]
call fcn.00403890
mov esi, dword [esp + 0x20]
lea eax, [esp + 0xc]
push eax
push 0
push esi
push 0x406ec0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esi - 0x10]
mov dword [esp + 0x18], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406c6a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4
Function at 0x406c80
Capabilities:
Copy file

Disassembly:
push 0xffffffffffffffff
push 0x446958
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45b8b4]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, ecx
push 0x44eac8
lea ecx, [esp + 0x20]
mov dword [esp + 0x34], 1
call fcn.004039f0
mov byte [esp + 0x30], 2
mov ebx, dword [esp + 0x38]
mov eax, dword [edi + 0xd4]
push ebx
push eax
lea ecx, [esp + 0x24]
push str._s_s
push ecx
call fcn.00403d50
add esp, 0x10
push 0x44eac8
lea ecx, [esp + 0x1c]
call fcn.004039f0
mov byte [esp + 0x30], 3
mov esi, dword [esp + 0x3c]
mov edx, dword [edi + 0xe8]
push esi
push edx
lea eax, [esp + 0x20]
push str._s_s
push eax
call fcn.00403d50
add esp, 0x10
call fcn.0041623a
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x406d2d
push 0x80004005
call fcn.00403720
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x20], eax
push esi
push ebx
lea ecx, [esp + 0x28]
push str.Copy_Temp__s__to_Run__s_
push ecx
mov byte [esp + 0x40], 4
call fcn.00403d50
mov esi, dword [esp + 0x30]
add esp, 0xc
add esi, 0xfffffff0
mov dword [esp + 0x28], esp
mov ebp, esp
push esi
call fcn.00403f60
add eax, 0x10
mov dword [ebp], eax
mov ecx, dword [edi + 0xfc]
add esp, 4
call fcn.00404170
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov edi, eax
mov byte [esp + 0x30], 3
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406daf
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov byte [esp + 0x30], 2
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406dd4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x30], 1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406df9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
mov byte [esp + 0x30], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406e1a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x30], 0xffffffff
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406e42
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 8
Function at 0x406f10
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x446910
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push ebp
push esi
mov eax, dword [0x45b8b4]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
push 0x44
lea eax, [esp + 0x30]
push 0
push eax
call fcn.00430e80
add esp, 0xc
push 0x44eac8
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 0x44
call fcn.004039f0
mov dword [esp + 0x80], 0
mov ecx, dword [edi + 0xe8]
push str.SP_Connector
push ecx
lea edx, [esp + 0x1c]
push str._s_s.exe
push edx
call fcn.00403d50
add esp, 0x10
call fcn.0041623a
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x406fa0
push 0x80004005
call fcn.00403720
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x10], eax
mov byte [esp + 0x80], 1
mov ecx, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x14]
push str.Invoke_process.__s_
push edx
call fcn.00403d50
mov esi, dword [esp + 0x1c]
add esp, 8
add esi, 0xfffffff0
mov dword [esp + 0x1c], esp
mov ebp, esp
push esi
call fcn.00403f60
add eax, 0x10
mov dword [ebp], eax
mov ecx, dword [edi + 0xfc]
add esp, 4
call fcn.00404170
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x30]
push ecx
push 0
push 0
push 0x20
push 0
push 0
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov ebp, eax
test ebp, ebp
jne 0x40707a
push ecx
mov ecx, esp
mov dword [esp + 0x1c], esp
push str._ERROR__CreateProcess
call fcn.004039f0
mov ecx, dword [edi + 0xfc]
call fcn.00404170
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x14]
push str._ERROR___d_has_occurred
push eax
call fcn.00403d50
mov esi, dword [esp + 0x1c]
add esp, 8
add esi, 0xfffffff0
mov dword [esp + 0x1c], esp
mov ebx, esp
push esi
call fcn.00403f60
add eax, 0x10
mov dword [ebx], eax
mov ecx, dword [edi + 0xfc]
add esp, 4
call fcn.00404170
mov byte [esp + 0x80], 0
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40709b
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov dword [esp + 0x80], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4070c6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x74
ret
Function at 0x408e90
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x20
mov eax, dword [0x45b8b4]
xor eax, esp
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x24]
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
push edi
mov ebx, edx
push 0x44f6c8
push eax
mov esi, ecx
mov dword [esp + 0x1c], ebx
call fcn.0042f26e
mov edi, eax
xor eax, eax
add esp, 8
cmp edi, eax
jne 0x408f2e
cmp ebx, eax
je 0x408f19
call fcn.0042f346
mov eax, dword [eax]
push eax
call fcn.0042f2a4
add esp, 4
test eax, eax
jne 0x408f00
xor ecx, ecx
push ecx
push eax
mov ecx, ebx
call fcn.00403df0
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0042e419
add esp, 0x20
ret
mov ecx, eax
lea esi, [ecx + 1]
mov dl, byte [ecx]
add ecx, 1
test dl, dl
jne 0x408f05
sub ecx, esi
push ecx
push eax
mov ecx, ebx
call fcn.00403df0
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0042e419
add esp, 0x20
ret
cmp ebp, eax
je 0x408f3b
mov ecx, dword [ebp]
mov dword [esp + 0x10], ecx
jmp 0x408f3f
mov dword [esp + 0x10], eax
mov ecx, esi
mov byte [esp + 0x18], al
mov dword [esp + 0x19], eax
mov dword [esp + 0x1d], eax
mov dword [esp + 0x21], eax
mov dword [esp + 0x25], eax
mov word [esp + 0x29], ax
mov byte [esp + 0x2b], al
call fcn.00403e80
push 2
push 0
push edi
call fcn.0042f411
push edi
call fcn.0042f62e
push 0
push 0
push edi
mov ebx, eax
call fcn.0042f411
add esp, 0x1c
test ebx, ebx
je 0x408fe2
mov eax, dword [esi]
sub eax, 0x10
mov edx, 1
sub edx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, ebx
or edx, eax
jge 0x408fa4
push ebx
mov ecx, esi
call fcn.00403890
mov ecx, dword [esi]
push edi
push 1
push ebx
push ecx
call fcn.0042f8f9
add esp, 0x10
cmp ebx, 0xffffffff
mov eax, ebx
jne 0x408fce
mov eax, dword [esi]
test eax, eax
je 0x408fd2
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x408fc3
sub eax, edx
test eax, eax
jl 0x409027
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x409027
mov dword [ecx - 0xc], eax
mov edx, dword [esi]
mov byte [eax + edx], 0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x408ffe
push ebx
lea ecx, [esp + 0x1c]
push ecx
push str._s_d_bytes
push eax
call fcn.00403d50
add esp, 0x10
push edi
call fcn.0042f987
add esp, 4
test ebp, ebp
je 0x409012
mov edx, dword [esp + 0x10]
mov dword [ebp], edx
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
mov al, 1
call fcn.0042e419
add esp, 0x20
ret
push 0x80070057
call fcn.00403720
int3
Function at 0x40bf30
Capabilities:
Set registry value

Disassembly:
push ecx
push ebx
push esi
push edi
mov esi, eax
push 0x36
push str.SOFTWARESamsungSamsungPrinterLiveUpdateSP_Connector
lea ecx, [esi + 0x14]
call fcn.00403df0
lea edi, [esi + 0x10]
push edi
push 0xf003f
xor ebx, ebx
push ebx
push str.SOFTWARESamsungSamsungPrinterLiveUpdateSP_Connector
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
mov dword [esi + 4], eax
mov dword [esi + 0xc], ebx
mov dword [esi + 8], ebx
jne 0x40bfb4
mov eax, dword [edi]
push 4
push 0x44fa1c
push 1
push ebx
push str.Update
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp eax, ebx
mov dword [esi + 4], eax
mov dword [esi + 0xc], 4
mov dword [esi + 8], 1
jne 0x40bff3
mov eax, dword [edi]
cmp eax, ebx
je 0x40bfaa
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [edi], ebx
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret
lea ecx, [esp + 0xc]
push ecx
push edi
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push str.SOFTWARESamsungSamsungPrinterLiveUpdateSP_Connector
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
mov dword [esi + 4], eax
mov dword [esi + 0xc], ebx
mov dword [esi + 8], ebx
jne 0x40bfaa
push str.Update
mov eax, 0x44fa1c
call fcn.0040c550
test eax, eax
jne 0x40bf9b
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x40c550
Capabilities:
Set registry value

Disassembly:
push edi
mov edi, eax
lea ecx, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x40c556
sub eax, ecx
mov ecx, dword [esi + 0x10]
add eax, 1
push eax
mov eax, dword [esp + 0xc]
push edi
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, edi
mov dword [esi + 4], eax
lea edi, [ecx + 1]
mov dl, byte [ecx]
add ecx, 1
test dl, dl
jne 0x40c581
sub ecx, edi
xor edx, edx
add ecx, 1
test eax, eax
sete dl
mov dword [esi + 0xc], ecx
mov dword [esi + 8], 1
pop edi
mov eax, edx
ret 4

Function at 0x40c5b0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
lea eax, [esp]
push eax
mov eax, dword [esi + 0x10]
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0xc]
push edx
push 0
push str.ProxyEnable
push eax
mov dword [esp + 0x18], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
mov ecx, dword [esp + 4]
mov edx, dword [esp]
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
jne 0x40c603
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
mov eax, 1
add esp, 0xc
ret 4
xor eax, eax
add esp, 0xc
ret 4

Function at 0x40c610
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10c
mov eax, dword [0x45b8b4]
xor eax, esp
mov dword [esp + 0x108], eax
mov eax, dword [esp + 0x110]
lea ecx, [esp]
push ecx
lea edx, [esp + 0xc]
push edx
mov edx, dword [esi + 0x10]
lea ecx, [esp + 0xc]
push ecx
push 0
push eax
push edx
mov dword [esp + 0x18], 0xc8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
mov ecx, dword [esp + 4]
mov edx, dword [esp]
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
jne 0x40c6a4
lea eax, [esp + 8]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x40c670
sub eax, edx
push eax
lea eax, [esp + 0xc]
push eax
mov ecx, edi
call fcn.00403df0
mov eax, 1
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.0042e419
add esp, 0x10c
ret 4
mov ecx, dword [esp + 0x108]
xor ecx, esp
xor eax, eax
call fcn.0042e419
add esp, 0x10c
ret 4

Function at 0x412002
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x412045
call fcn.0041c663
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x412045
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x412060
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.00411bb9
test ebx, ebx
mov esi, eax
je 0x41205e
test edi, edi
je 0x41205e
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4