joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1010ba18
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff8
sub esp, 0x98
mov eax, dword [0x1028fff4]
add eax, 0xfffffdcf
mov dword [0x1028fff4], eax
call fcn.1000108e
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x24], ecx
je 0x1010ba67
mov eax, dword [esp + 0x24]
lea esp, [ebp - 4]
pop esi
pop ebp
ret
mov eax, dword [esp + 0x20]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x1c], eax
jmp 0x1010baf8
lea eax, [esp + 0x38]
mov dword [0x1028fff8], 0xcff
mov dword [esp + 0x18], eax
call fcn.1010c2bd
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x14], ecx
jne 0x1010bb90
lea eax, [esp + 0x28]
mov dword [esp], eax
call fcn.1010b773
lea ecx, [0x1010ccfc]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x74], edx
mov dword [esp + 0x84], 0x153800
mov edx, dword [0x1028ffe0]
mov dword [esp + 0x70], edx
mov edx, dword [0x1028ffe4]
mov dword [esp + 0x78], edx
mov edx, dword [0x1028ffe8]
mov dword [esp + 0x44], edx
mov edx, dword [0x1028ffec]
mov dword [esp + 0x64], edx
mov edx, dword [0x1028fff0]
mov dword [esp + 0x3c], edx
mov dword [0x1028fff4], 0xfffff70e
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], ecx
mov eax, dword [esp + 0x1c]
cmp word [eax], 0x5a4d
mov dword [esp + 0x20], eax
jne 0x1010ba50
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x3c]
add eax, ecx
mov dword [esp + 0xc], eax
mov dword [esp + 8], ecx
mov eax, dword [esp + 0xc]
cmp dword [eax], 0x4550
jne 0x1010ba50
lea eax, [esp + 0x38]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x68], ecx
mov dword [0x1028fff8], 0x2382
mov edx, dword [esp + 8]
mov esi, dword [ecx + edx + 0x50]
mov dword [esp + 0x50], esi
mov dword [0x1028fff4], 0x17e8
mov esi, dword [esp + 0x30]
mov dword [esp], eax
mov dword [esp + 4], esi
call fcn.1010c693
mov ecx, esp
lea edx, [esp + 0x38]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 1
mov ecx, dword [0x1028fff4]
add ecx, 0xfffff71a
mov dword [0x1028fff4], ecx
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x24], eax
jmp 0x1010ba46
Function at 0x1010bd8f
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov dword [0x10290000], 0
mov byte [0x10290004], 0
mov dword [0x1028fff4], 0x2002
mov dword [0x1028fff8], 0xf6c
mov dword [0x1028fffc], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
jmp 0x1010be18
xor eax, eax
mov dword [0x1028fff8], 0x1a2c
mov dword [0x1028fffc], 0
mov dword [ebp - 0x20], eax
jmp 0x1010be4a
mov eax, dword [0x1028fff8]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
add eax, 0xffffeb75
mov dword [0x1028fff8], eax
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov dword [0x1028fff4], 0x142c
mov eax, dword [0x1028fffc]
add eax, 1
mov dword [0x1028fffc], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x1010be18
jmp 0x1010bde0
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov dword [0x10290008], 0
mov edx, dword [0x10290000]
mov esi, dword [ebp - 0x18]
movzx edi, byte [esi + eax]
add edi, edx
mov dword [ebp - 0x28], 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 [0x10290008], edi
mov dword [0x1028fff8], 0x232c
mov eax, edi
cdq
idiv ecx
mov dword [0x10290000], edx
mov dword [0x1028fff4], 0x347
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x28]
mov cl, byte [ecx + edi]
mov byte [0x10290004], cl
mov ecx, dword [ebp - 0x18]
mov cl, byte [ecx + edx]
mov edx, dword [ebp - 0x18]
mov byte [edx + edi], cl
mov cl, byte [0x10290004]
mov edx, dword [0x10290000]
mov esi, dword [ebp - 0x18]
mov byte [esi + edx], cl
mov edx, dword [0x1028fffc]
add edx, 1
mov dword [0x1028fffc], edx
cmp edx, 0x100
mov dword [ebp - 0x20], edx
jl 0x1010be4a
jmp 0x1010bdfb
Function at 0x1010c2bd
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x38
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 [0x1028fff8]
mov edi, esi
add edi, 0xffffde83
mov dword [0x1028fff4], 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
jmp 0x1010c3c5
mov eax, dword [ebp - 0x24]
add esp, 0x38
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x28]
xor ecx, ecx
add eax, 0xfffff184
mov dword [0x1028fff8], eax
mov dword [ebp - 0x24], ecx
jmp 0x1010c308
mov eax, dword [ebp - 0x2c]
mov dword [0x1028fff8], 0x9f
mov ecx, dword [ebp - 0x18]
cmp word [ecx + eax*2 - 0x1a], 0x6c
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], edx
je 0x1010c40d
jmp 0x1010c312
mov dword [0x1028fff4], 0xadf
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff9
mov dword [ebp - 0x34], eax
mov eax, 1
mov ecx, 0xadf
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x34]
cmp word [edx + esi*2], 0x6c
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], ecx
je 0x1010c308
jmp 0x1010c312
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x30]
cmp word [eax + ecx*2 - 0x14], 0x64
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x28], edx
je 0x1010c42b
jmp 0x1010c312
mov dword [0x1028fff8], 0x1815
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x30]
cmp word [eax + ecx*2 - 0x16], 0x61
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x28], edx
je 0x1010c383
jmp 0x1010c312
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x18]
cmp word [ecx + eax*2], 0
mov edx, eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x2c], edx
je 0x1010c326
mov eax, dword [ebp - 0x38]
add eax, 1
cmp eax, 0x104
setl cl
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x3d], cl
mov al, byte [ebp - 0x3d]
test al, 1
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x20], edx
jne 0x1010c3c5
jmp 0x1010c326
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x30]
cmp word [eax + ecx*2 - 0x18], 0x6f
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x28], edx
je 0x1010c3a1
jmp 0x1010c312
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x30]
cmp word [eax + ecx*2 - 0x12], 0x64
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x28], edx
jne 0x1010c312
mov eax, dword [ebp - 0x1c]
add eax, 0xffffdce0
mov dword [0x1028fff4], eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x30]
cmp word [ecx + edx*2 - 0x10], 0x6c
mov dword [ebp - 0x28], eax
je 0x1010c34e
jmp 0x1010c312
Function at 0x1010c693
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, [0x10219f79]
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.1010bf01
mov eax, dword [0x1028fff4]
add eax, 0xffffe70f
mov dword [0x1028fff4], eax
call fcn.1010c219
mov dword [esp], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 4], eax
call fcn.1010bb9d
cmp eax, 0
mov dword [ebp - 0x3c], eax
je 0x1010c7a6
mov eax, dword [ebp - 0x3c]
mov ecx, dword [0x1028fff4]
add ecx, 0x1acf
mov dword [0x1028fff4], 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.1010c48e
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 [0x1028fff4], 0x112
mov ecx, dword [ebp - 0x40]
mov dword [edx + 0x14], ecx
add ecx, 0x25e7
mov esi, dword [ebp - 0x40]
cmp esi, 0
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x48], eax
je 0x1010c79c
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 0x1010c949
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x54
mov eax, dword [ebp + 8]
mov ecx, dword [0x1028fff4]
add ecx, 0x4b29
mov dword [0x1028fff4], ecx
mov dword [ebp - 0x10], eax
call fcn.1010c012
xor ecx, ecx
mov edx, eax
mov esi, dword [eax + 0x3c]
mov esi, dword [eax + esi + 0x78]
mov dword [0x1028fff8], 0x47e5
mov edi, edx
add edi, dword [eax + esi + 0x20]
mov dword [0x1028fff4], 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 0x1010ca08
jmp 0x1010c9d5
mov eax, dword [ebp - 0x28]
movzx ecx, word [eax]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
add edx, dword [edx + esi + 0x1c]
mov dword [0x1028fff4], 0xc39
mov edi, dword [ebp - 0x1c]
add edi, dword [edx + ecx*4]
mov dword [ebp - 0x24], edi
jmp 0x1010ca08
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
mov edx, dword [eax + ecx + 0x24]
mov dword [ebp - 0x2c], edx
mov eax, 0x660
xor ecx, ecx
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x2c]
add edx, esi
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], edx
jmp 0x1010ca13
mov al, byte [ebp - 0x39]
test al, 1
jne 0x1010c9b0
jmp 0x1010ca95
mov eax, dword [ebp - 0x24]
add esp, 0x54
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x34]
xor esi, esi
add edx, 0x24f8
mov edi, dword [ebp - 0x14]
mov ebx, dword [edi + ecx*4]
mov dword [0x1028fff4], edx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x4c], esi
mov eax, dword [ebp - 0x4c]
mov ecx, eax
mov edx, dword [ebp - 0x44]
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 - 0x50], eax
mov byte [ebp - 0x51], bh
mov byte [ebp - 0x39], cl
je 0x1010c9fc
mov eax, dword [ebp - 0x50]
add eax, 1
mov cl, byte [ebp - 0x51]
cmp cl, 0
setne dl
mov ch, byte [ebp - 0x39]
and ch, dl
cmp eax, 0x20
setb dl
and ch, dl
test ch, 1
mov dword [ebp - 0x4c], eax
jne 0x1010ca3f
jmp 0x1010c9fc
mov eax, dword [ebp - 0x28]
add eax, 2
mov ecx, dword [ebp - 0x40]
add ecx, 1
mov edx, dword [ebp - 0x18]
cmp ecx, edx
setb bl
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x5c], ecx
mov byte [ebp - 0x5d], bl
xor eax, eax
mov cl, byte [ebp - 0x5d]
test cl, 1
mov edx, dword [ebp - 0x48]
mov esi, dword [ebp - 0x5c]
mov edi, dword [ebp - 0x58]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x38], edi
jne 0x1010ca13
jmp 0x1010ca08
Function at 0x1010cadf
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x30
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [0x1028fffc], 0
mov dword [0x10290000], 0
mov dword [0x1029000c], 0
mov dword [0x1028fff8], 0x14e0
cmp eax, 0
sete bl
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
mov byte [ebp - 0x1d], bl
xor eax, eax
mov cl, byte [ebp - 0x1d]
test cl, 1
mov edx, eax
mov esi, eax
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x2c], eax
jne 0x1010cc36
jmp 0x1010cb50
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
mov esi, 0x100
mov dword [0x1028fff4], 0xb69
mov edi, eax
add edi, 1
add ecx, 1
mov dword [ebp - 0x30], eax
mov eax, ecx
mov dword [ebp - 0x34], edx
cdq
idiv esi
mov dword [0x1028fffc], edx
mov ecx, dword [ebp - 0x1c]
movzx ebx, byte [ecx + edx]
mov ecx, dword [ebp - 0x34]
add ebx, ecx
mov eax, ebx
mov dword [ebp - 0x38], edx
cdq
idiv esi
mov dword [0x10290000], edx
mov ecx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x38]
mov cl, byte [ecx + esi]
mov byte [0x10290004], cl
mov ebx, dword [ebp - 0x1c]
mov cl, byte [ebx + edx]
mov byte [ebx + esi], cl
mov dword [0x1028fff4], 0x226c
mov cl, byte [0x10290004]
mov edx, dword [0x10290000]
mov byte [ebx + edx], cl
mov edx, dword [0x1028fffc]
movzx edx, byte [ebx + edx]
mov ecx, dword [0x10290000]
movzx ecx, byte [ebx + ecx]
add ecx, edx
and ecx, 0xff
mov dword [0x1029000c], ecx
mov dword [0x1028fff4], 0x11c5
mov edx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x30]
mov dl, byte [edx + esi]
xor dl, byte [ebx + ecx]
mov ecx, dword [ebp - 0x18]
mov byte [ecx + esi], dl
mov ecx, dword [ebp - 0x10]
cmp edi, ecx
mov dword [ebp - 0x3c], edi
je 0x1010cc36
mov eax, dword [0x1028fffc]
mov ecx, dword [0x10290000]
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x2c], edx
jmp 0x1010cb50
mov dword [0x1028fff8], 0xe7d
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x421090
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x42dbf8]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00421025
mov eax, sym.imp.authz.dll_AuthzAddSidsToContext
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.0040fb80
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x4210df
cmp dword [ebp - 0x1c], 5
jb 0x4210f7
jmp 0x4210f3
cmp dword [ebp - 0x10], 1
jne 0x4210f7
cmp dword [ebp - 0x1c], 4
ja 0x4210f3
jne 0x4210f7
cmp dword [ebp - 0x18], 0
jbe 0x4210f7
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x42868c
call fcn.00420ef9
test eax, eax
jge 0x421118
mov byte [0x4318fc], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040e454
add ebp, 0x78
leave
ret

Function at 0x4215b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0
jne 0x4215de
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.004014fe
add esp, 4
mov ecx, dword [ebp - 0x10]
mov dword [ecx], 0
push 0
push 0
push 2
push 0
push 0
push 0x40000000
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x421606
cmp dword [ebp - 4], 0
jne 0x42160a
xor al, al
jmp 0x421645
push 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x14]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x421639
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x421645
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov esp, ebp
pop ebp
ret 4
Function at 0x1e002ec3
Capabilities:
Get common file path
Get disk size
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
xor ebx, ebx
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x1e]
stosd dword es:[edi], eax
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
stosw word es:[edi], ax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov esi, 0x1e02a558
jmp 0x1e002ef4
xor ebx, ebx
push 8
lea eax, [ebp - 0x40]
push eax
mov word [ebp - 0x20], bx
mov dword [ebp - 0x28], ebx
call fcn.1e025189
jmp 0x1e002f7a
push dword [ebp - 0x54]
push dword [ebp - 0x40]
call fcn.1e019d0a
test eax, eax
jne 0x1e002f71
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
je 0x1e002f71
mov eax, dword [ebp - 0xc]
imul eax, dword [ebp - 0x10]
cdq
mov ecx, eax
mov eax, dword [ebp - 0x14]
mov edi, edx
cdq
push edx
push eax
push edi
push ecx
call fcn.1e017180
cmp edx, ebx
mov edi, eax
mov dword [ebp - 0x2c], edx
jb 0x1e002f71
ja 0x1e002f5d
cmp edi, dword [ebp - 0x28]
jbe 0x1e002f71
push 8
push dword [ebp - 0x40]
lea eax, [ebp - 0x20]
push eax
call fcn.1e017ce7
mov ebx, dword [ebp - 0x2c]
mov dword [ebp - 0x28], edi
lea eax, [ebp - 0x40]
push eax
call fcn.1e024342
test eax, eax
jne 0x1e002f08
jmp 0x1e002ffa
xor ebx, ebx
cmp word [ebp - 0x20], bx
je 0x1e002f99
lea eax, [ebp - 0x20]
push eax
push esi
call fcn.1e017cc5
xor edi, edi
inc edi
mov ebx, edi
jmp 0x1e002fa8
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
xor edi, edi
inc edi
cmp dword [ebp - 4], 0
je 0x1e002fcb
push 0
push esi
call dword [sym.imp.msvcrt.dll_wcschr]
push dword [ebp - 4]
push 0x1e0012a0
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
jmp 0x1e002fd6
push 0x1e00128c
push esi
call fcn.1e018193
push 0
push esi
call fcn.1e0175b1
test eax, eax
push esi
je 0x1e00300a
call fcn.1e002e42
test eax, eax
je 0x1e002ff7
push edi
push esi
call fcn.1e0238ff
test eax, eax
jne 0x1e003009
inc dword [ebp - 4]
cmp dword [ebp - 4], 0xffff
jb 0x1e002f80
jmp 0x1e003043
push esi
call fcn.1e017a7b
test eax, eax
je 0x1e00302f
push esi
call fcn.1e002dc3
test eax, eax
je 0x1e00302f
test ebx, ebx
mov dword [ebp - 8], edi
je 0x1e003043
push 6
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x1e003043
cmp word [ebp - 0x20], 0
je 0x1e003054
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.1e01b350
cmp word [ebp - 0x20], 0
je 0x1e003054
cmp dword [ebp - 8], 0
je 0x1e002ef2
lea eax, [ebp - 0x54]
push eax
call fcn.1e01b2eb
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1e003316
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push 0x18
push 0x1e0013d8
call fcn.1e0171b4
xor esi, esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 4], esi
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x10]
cmp eax, esi
jne 0x1e00334c
push dword [0x1e02f1d8]
call sub.LOG.dll_LogBegin
push 0x41b
jmp 0x1e0033b1
push esi
push 0x1e001378
push eax
push 0x1e001360
push esi
call fcn.1e01a608
add esp, 0x14
mov dword [ebp - 0x20], eax
push eax
call fcn.1e025989
mov dword [ebp - 0x1c], eax
cmp eax, esi
je 0x1e0033a1
push dword [0x1e02a54c]
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
lea eax, [eax + eax + 2]
push eax
push dword [0x1e02a54c]
push 2
push esi
push 0x1e00134c
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x1e0033c4
push dword [0x1e02f1d8]
call sub.LOG.dll_LogBegin
push 0x41c
push 0x1e001344
call sub.LOG.dll_LogW
pop ecx
pop ecx
call sub.LOG.dll_LogEnd
jmp 0x1e0033cb
mov dword [ebp - 0x24], 1
or dword [ebp - 4], 0xffffffff
call fcn.1e0033e1
mov eax, dword [ebp - 0x24]
call fcn.1e0171ed
ret 4

Function at 0x1e003602
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
push ebx
push esi
xor ebx, ebx
push ebx
push dword [ebp + 8]
push dword [ebp + 0xc]
push ebx
call fcn.1e01a608
add esp, 0x10
mov esi, eax
push esi
call fcn.1e01795f
test eax, eax
je 0x1e00366a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x250]
push eax
push esi
call fcn.1e0175b1
test eax, eax
je 0x1e003663
cmp word [ebp - 0x1c], bx
je 0x1e003660
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
pop ecx
pop ecx
jne 0x1e003663
xor ebx, ebx
inc ebx
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
push 0
call fcn.1e018041
pop esi
mov eax, ebx
pop ebx
leave
ret 8

Function at 0x1e0041cc
Capabilities:
Delete file

Disassembly:
push ebx
xor ebx, ebx
cmp word [0x1e02a7a8], bx
push esi
mov esi, 0x1e02a7a8
jne 0x1e0041e9
push 0x104
push esi
call sym.MIGISM.dll_IsmGetTempDirectory
push 0
push dword [esp + 0x10]
push esi
push 0
call fcn.1e01a608
add esp, 0x10
mov esi, eax
push esi
call fcn.1e01795f
test eax, eax
je 0x1e004225
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [esp + 0x10]
push esi
call fcn.1e0175b1
test eax, eax
je 0x1e00421e
xor ebx, ebx
inc ebx
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
push 0
call fcn.1e018041
pop esi
mov eax, ebx
pop ebx
ret 8
Function at 0x1e004e8e
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push esi
xor esi, esi
cmp dword [0x1e02a524], esi
jne 0x1e004ea9
xor eax, eax
jmp 0x1e004f2a
push edi
mov edi, dword [ebp + 8]
cmp word [edi], 0x7c
jne 0x1e004eb7
xor eax, eax
jmp 0x1e004f29
push dword [ebp + 0xc]
call dword [sym.imp.msvcrt.dll_wcslen]
pop ecx
lea ecx, [eax + eax + 2]
mov eax, 0x105
cmp ecx, eax
ja 0x1e004eb3
push eax
lea eax, [ebp - 0x20c]
push eax
call sym.MIGISM.dll_IsmGetTempFile
push esi
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x1e004eb3
push esi
push esi
lea eax, [ebp - 0x20c]
push eax
push dword [0x1e02ebc8]
call fcn.1e01ba18
push edi
push 0x1e0016ac
call sym.MIGISM.dll_TrackedIsmCreateObjectHandle
mov esi, eax
push 1
lea eax, [ebp - 0x20c]
push eax
push esi
call fcn.1e00cce4
push esi
call fcn.1e01bc81
xor eax, eax
inc eax
pop edi
pop esi
leave
ret 8

Function at 0x1e004fb9
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push edi
xor edi, edi
cmp dword [0x1e02a544], edi
je 0x1e004fd1
xor eax, eax
jmp 0x1e005046
mov eax, dword [0x1e02a534]
cmp eax, edi
je 0x1e004fe1
push eax
push edi
call fcn.1e018041
cmp dword [ebp + 8], edi
je 0x1e005019
push 0x104
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x1e005043
push edi
push 0x1e0016c0
lea eax, [ebp - 0x208]
push eax
push edi
call fcn.1e01a608
add esp, 0x10
mov dword [0x1e02a534], eax
jmp 0x1e005043
push esi
call fcn.1e01463b
mov esi, eax
cmp esi, edi
je 0x1e005042
push edi
push 0x1e0016c0
push dword [esi + 0xc]
push edi
call fcn.1e01a608
add esp, 0x10
push esi
mov dword [0x1e02a534], eax
call fcn.1e0142a5
pop esi
xor eax, eax
inc eax
pop edi
leave
ret 4