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

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40f4cc
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40f4cc
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40f4cc
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40f4cc
cmp dword [ecx + 0x74], 0xe
jbe 0x40f4cc
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x419a59
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x43700c]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x419aa4
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00419bf4
test al, al
jne 0x419a9e
sub edx, 2
cmp edx, edi
jne 0x419a84
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x419ac6
lea eax, [edi + 2]
cmp edx, eax
je 0x419ac6
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004199a5
add esp, 0x10
jmp 0x419bc0
push esi
lea ecx, [ebp - 0x255]
call fcn.00419bf4
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x419b09
push dword [ebp - 0x25c]
jmp 0x419ab6
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x419b46
cmp word [ebp - 0x226], 0
je 0x419b67
cmp word [ebp - 0x226], ax
jne 0x419b46
cmp word [ebp - 0x224], 0
je 0x419b67
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004199a5
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x419bb3
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x419b20
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x419b9b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x419bc0
push 0x4197d5
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0041dff0
add esp, 0x10
jmp 0x419b90
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040e627
leave
ret

Function at 0x41a90e
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x429794
push 0x42978c
push str.FlsAlloc
push 0x1f
call fcn.0041a849
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41a942
push dword [ebp + 8]
mov ecx, esi
call dword [0x42723c]
call esi
jmp 0x41a948
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x41a98c
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4297a4
push 0x42979c
push str.FlsGetValue
push 0x21
call fcn.0041a849
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41a9c3
push dword [ebp + 8]
mov ecx, esi
call dword [0x42723c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x41a9cb
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4297ac
push 0x4297a4
push str.FlsSetValue
push 0x22
call fcn.0041a849
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41aa05
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x42723c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x421df0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x421e1d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x421e1d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x425260
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x10]
push ecx
push 0
mov edx, dword [ebp - 4]
push edx
push 0x4252f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 8], eax
mov eax, 1
test eax, eax
je 0x4252e0
push 8
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 8]
push ecx
push 1
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x4252ae
jmp 0x4252b2
xor eax, eax
jmp 0x4252e2
push 1
push 0
push 0
push 0
lea edx, [ebp - 0x2c]
push edx
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x4252de
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea ecx, [ebp - 0x2c]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x4252b2
jmp 0x425288
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x419b60
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], esi
mov esi, 1
mov dword [ebp - 0x10], 0
push 1
push 0x5022f0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x419bec
mov eax, 0x51eb851f
mov ecx, esi
imul esi
sar edx, 5
mov eax, esi
sar ecx, 0x1f
sub edx, ecx
imul edi, edx, 0x64
sub eax, edi
jne 0x419bec
cmp esi, 0x15f90
jl 0x419be3
cmp esi, 0x1d4c0
jge 0x419bc0
mov eax, 0x32
jmp 0x419be5
cmp esi, 0x2bf20
jge 0x419bcf
mov eax, 0x64
jmp 0x419be5
mov eax, 0x1482
cmp esi, 0x57d78
jl 0x419be5
mov eax, 0xfa
jmp 0x419be5
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 4]
test eax, eax
je 0x419c00
inc esi
cmp esi, 0x57e40
jl 0x419b78
mov eax, dword [ebp - 4]
test eax, eax
je 0x419c1a
mov dword [ebp - 0x14], 0x98
lea eax, [ebp - 0x14]
push eax
call fcn.004259f0
add esp, 4
mov eax, dword [0x5022f4]
test eax, eax
jne 0x419c48
cmp dword [0x4fe460], 1
je 0x419c88
xor edi, edi
xor esi, esi
call fcn.00419d20
mov dword [0x5022f4], 1
cmp dword [0x4fe460], 1
je 0x419c73
mov dword [0x5022f0], 0
push dword [0x5022ec]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x419ca3
mov edx, dword [ebp + 8]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 8]
mov dword [edx], eax
xor eax, eax
mov esp, ebp
pop ebp
ret
push esi
push 2
call fcn.00472ab0
push edi
push 0x16
call fcn.00472ab0
add esp, 0x10
jmp 0x419c48
push 1
push 2
call fcn.00472ab0
mov esi, eax
push 1
push 0x16
call fcn.00472ab0
add esp, 0x10
mov edi, eax
jmp 0x419c30
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x70
call fcn.00428c60
add esp, 0xc
test eax, eax
je 0x419ccd
mov edx, dword [ebp + 8]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 8]
mov dword [edx], 0
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
mov edx, 0x70
mov ecx, dword [edx + 0x4fe3bc]
mov dword [eax + edx - 4], ecx
mov esi, dword [edx + 0x4fe3b8]
mov dword [eax + edx - 8], esi
mov edi, dword [edx + 0x4fe3b4]
mov dword [eax + edx - 0xc], edi
mov ecx, dword [edx + 0x4fe3b0]
mov dword [eax + edx - 0x10], ecx
sub edx, 0x10
jne 0x419cd5
push dword [ebp - 0x10]
push dword [0x5022ec]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [ebp - 0x10]
jmp 0x419c62

Function at 0x419d20
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x5022e0], 0
je 0x419d30
mov esp, ebp
pop ebp
ret
mov dword [0x5022e0], 1
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x5022ec], eax
cmp eax, 0xffffffff
jne 0x419d56
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov esp, ebp
pop ebp
ret
push 0x419b40
call fcn.00473080
push 0x419b00
call fcn.00473080
add esp, 8
jmp 0x419d2c
Function at 0x419d70
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], esi
mov esi, 1
mov dword [ebp - 0x10], 0
push 1
push 0x5022f0
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x419dfc
mov eax, 0x51eb851f
mov ecx, esi
imul esi
sar edx, 5
mov eax, esi
sar ecx, 0x1f
sub edx, ecx
imul edi, edx, 0x64
sub eax, edi
jne 0x419dfc
cmp esi, 0x15f90
jl 0x419df3
cmp esi, 0x1d4c0
jge 0x419dd0
mov eax, 0x32
jmp 0x419df5
cmp esi, 0x2bf20
jge 0x419ddf
mov eax, 0x64
jmp 0x419df5
mov eax, 0x1482
cmp esi, 0x57d78
jl 0x419df5
mov eax, 0xfa
jmp 0x419df5
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 4]
test eax, eax
je 0x419e10
inc esi
cmp esi, 0x57e40
jl 0x419d88
mov eax, dword [ebp - 4]
test eax, eax
je 0x419e2a
mov dword [ebp - 0x14], 0x98
lea eax, [ebp - 0x14]
push eax
call fcn.004259f0
add esp, 4
mov eax, dword [0x5022f4]
test eax, eax
jne 0x419e58
cmp dword [0x4fe460], 1
je 0x419ea6
xor edi, edi
xor esi, esi
call fcn.00419d20
mov dword [0x5022f4], 1
cmp dword [0x4fe460], 1
je 0x419e91
mov dword [0x5022f0], 0
push dword [0x5022ec]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
mov dword [ebp - 0x10], esi
test esi, esi
je 0x419ee1
mov eax, dword [ebp + 8]
mov dword [eax], esi
cmp dword [0x4fe460], 1
je 0x419ec4
xor eax, eax
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
push esi
push 2
call fcn.00472ab0
push edi
push 0x16
call fcn.00472ab0
add esp, 0x10
jmp 0x419e58
push 1
push 2
call fcn.00472ab0
mov esi, eax
push 1
push 0x16
call fcn.00472ab0
add esp, 0x10
mov edi, eax
jmp 0x419e40
push 1
push 2
call fcn.00472ab0
push 1
push 0x16
mov dword [esi + 0x64], eax
call fcn.00472ab0
add esp, 0x10
mov dword [esi + 0x68], eax
jmp 0x419e85
lea eax, [ebp - 0x10]
push eax
push 0
push 0x70
call fcn.00428c60
add esp, 0xc
test eax, eax
je 0x419f08
mov edx, dword [ebp + 8]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 8]
mov dword [edx], 0
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
mov edx, 0x70
mov ecx, dword [edx + 0x4fe3bc]
mov dword [eax + edx - 4], ecx
mov esi, dword [edx + 0x4fe3b8]
mov dword [eax + edx - 8], esi
mov edi, dword [edx + 0x4fe3b4]
mov dword [eax + edx - 0xc], edi
mov ecx, dword [edx + 0x4fe3b0]
mov dword [eax + edx - 0x10], ecx
sub edx, 0x10
jne 0x419f10
push dword [ebp - 0x10]
push dword [0x5022ec]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov esi, dword [ebp - 0x10]
jmp 0x419e77
Function at 0x4259f0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
call fcn.004381f0
mov ebx, dword [ebp + 8]
cmp dword [0x50cc40], 0
jne 0x425a17
test ebx, ebx
je 0x425a0c
mov eax, dword [ebx]
jmp 0x425a0e
xor eax, eax
push eax
call fcn.004757f0
add esp, 4
test ebx, ebx
je 0x425a1f
mov eax, dword [ebx]
jmp 0x425a21
xor eax, eax
push eax
call fcn.004ca970
add esp, 4
jmp 0x425a04

Function at 0x426050
Capabilities:
Check mutex on windows

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0xc]
Function at 0x426e80
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp eax, 0xfffffffa
mov dword [ebp - 0x10], ebx
mov ebx, ecx
lea ecx, [eax + 5]
jg 0x426e95
mov ecx, eax
mov dword [ebp - 4], eax
mov eax, 0xfb93e673
mov dword [ebp - 8], esi
mov esi, edx
mul ecx
shr edx, 9
mov dword [ebp - 0xc], edi
imul edi, edx, 0x209
sub ecx, edi
mov edi, dword [0x4fe460]
cmp edi, 2
lea eax, [ecx + 0x69]
mov dword [esi], eax
jge 0x426ef1
lea ecx, [ecx*4 + 0x1a4]
lea edx, [ecx*8]
sub edx, ecx
mov ecx, dword [edx + 0x502564]
test ecx, ecx
jne 0x426f7a
mov dword [edx + 0x502564], 1
mov eax, dword [esi]
jmp 0x426f7a
lea eax, [ecx*4 + 0x1a4]
lea edx, [eax*8]
sub edx, eax
lea ecx, [edx + 0x502564]
push ecx
call fcn.00419fb0
add esp, 4
test eax, eax
jne 0x426f72
mov edx, dword [esi]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
cmp dword [edx + 0x502560], 0
je 0x426fea
mov dword [edx + 0x502564], 0
mov edx, dword [esi]
push 0xffffffffffffffff
lea eax, [edx*4]
shl edx, 5
sub edx, eax
push dword [edx + 0x502560]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esi]
lea eax, [edx*4]
shl edx, 5
sub edx, eax
lea ecx, [edx + 0x502564]
push ecx
call fcn.00419fb0
add esp, 4
mov edi, dword [0x4fe460]
mov eax, dword [esi]
cmp edi, 1
je 0x426fcb
mov edx, dword [ebp + 0x14]
lea ecx, [eax*4]
shl eax, 5
sub eax, ecx
mov ecx, dword [eax + 0x502578]
xor eax, eax
mov dword [ebx], ecx
test ecx, ecx
je 0x426fc3
mov esi, dword [ebp - 4]
cmp esi, dword [ecx + 0x100]
jbe 0x426fb2
mov eax, ecx
mov ecx, dword [ecx + 0x28]
test ecx, ecx
mov dword [ebx], ecx
jne 0x426f9f
mov dword [edx], eax
xor eax, eax
mov ebx, dword [ebp - 0x10]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
mov dword [edx], 0
jmp 0x426fb4
lea edx, [eax*4]
shl eax, 5
sub eax, edx
lea eax, [eax + 0x502570]
push eax
call fcn.00419f60
add esp, 4
mov eax, dword [esi]
jmp 0x426f7f
xor eax, eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov ecx, dword [esi]
lea edx, [ecx*4]
shl ecx, 5
sub ecx, edx
mov dword [ecx + 0x502560], eax
mov dword [ecx + 0x502564], 0
jmp 0x426f39
Function at 0x428a90
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
mov dword [ebp - 8], esi
mov dword [ebp - 4], ebx
mov esi, dword [eax + 0x7c]
test esi, esi
mov dword [ebp - 0xc], edi
je 0x428c4c
mov edx, dword [0x4fe460]
mov edi, dword [esi + 0x14]
lea eax, [edi*4]
shl edi, 5
sub edi, eax
cmp edx, 2
lea ebx, [edi + 0x5069e8]
jge 0x428adf
mov eax, dword [ebx]
test eax, eax
jne 0x428b20
mov dword [edi + 0x5069e8], 1
jmp 0x428b20
push ebx
call fcn.00419fb0
add esp, 4
test eax, eax
jne 0x428b1a
cmp dword [edi + 0x5069e4], 0
je 0x428c2c
mov dword [edi + 0x5069e8], 0
push 0xffffffffffffffff
push dword [edi + 0x5069e4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
call fcn.00419fb0
add esp, 4
mov edx, dword [0x4fe460]
cmp edx, 1
je 0x428c18
mov eax, dword [esi + 0x18]
dec eax
mov dword [esi + 0x18], eax
test eax, eax
jle 0x428b8f
mov eax, dword [0x4fe460]
cmp eax, 1
je 0x428b74
cmp eax, 2
jge 0x428b4f
mov dword [edi + 0x5069e8], 0
jmp 0x428b65
mov dword [edi + 0x5069e8], 0
push dword [edi + 0x5069e4]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
xor eax, eax
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
push dword [edi + 0x5069f8]
push dword [edi + 0x5069f4]
call fcn.00419f90
add esp, 8
mov eax, dword [0x4fe460]
jmp 0x428b3e
mov edx, dword [esi]
test edx, edx
je 0x428b9b
mov eax, dword [esi + 4]
mov dword [edx + 4], eax
mov eax, dword [esi + 4]
test eax, eax
je 0x428ba6
mov dword [eax], edx
jmp 0x428bac
mov dword [edi + 0x5069e0], edx
mov eax, dword [ebp + 8]
mov dword [eax + 0x7c], 0
mov eax, dword [0x4fe460]
cmp eax, 1
je 0x428bfd
cmp eax, 2
jge 0x428bd1
mov dword [edi + 0x5069e8], 0
jmp 0x428be7
mov dword [edi + 0x5069e8], 0
push dword [edi + 0x5069e4]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push dword [esi + 8]
call fcn.00428d20
push esi
call fcn.00428d20
add esp, 8
jmp 0x428b65
push dword [edi + 0x5069f8]
push dword [edi + 0x5069f4]
call fcn.00419f90
add esp, 8
mov eax, dword [0x4fe460]
jmp 0x428bc0
lea eax, [edi + 0x5069f4]
push eax
call fcn.00419f60
add esp, 4
jmp 0x428b29
xor eax, eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [edi + 0x5069e4], eax
mov dword [edi + 0x5069e8], 0
jmp 0x428b03
xor eax, eax
mov esi, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x4297a0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0xc]
Function at 0x4572d0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
mov ecx, dword [esp + 0xc]

Function at 0x4572dc
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0xc], esi
mov esi, ecx
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 8], ebx
mov ebx, edx
mov dword [ebp - 4], edi
mov edx, eax
mov dword [ecx], 0
cmp dword [0x50cc40], 0
je 0x4573b1
cmp dword [ebp + 0x20], 2
je 0x457313
cmp dword [ebp + 0x20], 1
jne 0x457322
mov eax, 0xffffffff
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 0x18], 0
je 0x457332
cmp dword [ebp + 0x20], 0xfffffffa
je 0x457476
cmp dword [ebp + 0x20], 0
je 0x457482
xor ecx, ecx
cmp dword [ebp + 0x18], 0
je 0x457365
cmp dword [ebp + 0x1c], 0
je 0x457365
push edi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], edx
call fcn.004ca720
push edi
call fcn.004ca890
mov edx, dword [ebp - 0x10]
add esp, 8
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x4573b1
push edi
push esi
push ebx
call fcn.004ca7c0
add esp, 0xc
mov esi, eax
mov eax, dword [ebp + 0x14]
cmp esi, 0xffffffff
mov dword [eax], esi
je 0x4574a6
push 0
push edi
push 2
push 0x4e944c
call fcn.004ca780
add esp, 0x10
mov edx, dword [ebp + 0x14]
mov eax, 1
mov byte [esi + ebx], 0xa
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 4]
inc dword [edx]
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x10], edx
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x24]
test ecx, ecx
mov edx, dword [ebp - 0x10]
mov dword [edi], 0
je 0x4573d9
mov edi, dword [ecx + 0x140]
test edi, edi
jne 0x4573de
mov edi, 0x20000
cmp esi, edi
jbe 0x457452
cmp dword [ebp + 0x20], 0
je 0x457452
test ecx, ecx
je 0x4573f6
mov edi, dword [ecx + 0x140]
test edi, edi
jne 0x4573fb
mov edi, 0x20000
mov dword [ebp - 0x10], edx
push 0
mov dword [ebp - 0x14], edi
lea eax, [ebp - 0x18]
push eax
push edi
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x457440
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x18]
add ebx, edx
sub esi, edx
add dword [ecx], edx
cmp dword [ebp + 0x24], 0
je 0x457435
mov edx, dword [ebp + 0x24]
mov edx, dword [edx + 0x140]
test edx, edx
jne 0x45743a
mov edx, 0x20000
cmp esi, edx
ja 0x457440
mov edi, esi
test esi, esi
je 0x457469
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 0x18]
jne 0x457469
test eax, eax
jne 0x4573fe
jmp 0x457469
push 0
lea ecx, [ebp - 0x18]
push ecx
push esi
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x18]
mov dword [ecx], edx
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
mov edi, edx
mov ecx, 1
jmp 0x457344
mov dword [ebp - 0x10], edx
call fcn.004ca9b0
mov edx, dword [ebp - 0x10]
mov edi, eax
cmp dword [0x50cc40], 0
je 0x457369
mov ecx, 1
jmp 0x45733e
xor eax, eax
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4ca930
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov dword [ebp + 0xc], 0
mov dword [ebp + 8], 0x28f
mov esp, ebp
pop ebp
jmp fcn.004220a0
Function at 0x1001a5b
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
cmp byte [0x100b2e0], 0
je 0x1001aa0
lea eax, [ebp - 4]
push eax
push 0x20006
push 0
push 0x100b0cc
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1001aa0
push 0x100b2e0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret
Function at 0x1001cf4
Capabilities:
Get common file path
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x348
mov eax, dword [0x100b2d0]
push ebx
xor ebx, ebx
cmp byte [0x100b2e0], bl
mov dword [ebp - 4], eax
je 0x1001e03
lea eax, [ebp - 0x344]
push eax
push 0x2001f
push ebx
push 0x100b0cc
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1001e03
push esi
lea eax, [ebp - 0x348]
push eax
lea eax, [ebp - 0x340]
push eax
push ebx
push ebx
mov esi, 0x100b2e0
push esi
push dword [ebp - 0x344]
mov dword [ebp - 0x348], 0x238
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1001df6
push edi
push 0x40
pop ecx
mov byte [ebp - 0x108], bl
lea edi, [ebp - 0x107]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, 0x104
push edi
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1001dae
push 0x1001271
push edi
lea eax, [ebp - 0x108]
push eax
call fcn.010066cf
push 0x100bc44
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x340]
push 0x100b1b8
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x340]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x340]
push eax
push 1
push ebx
push esi
push dword [ebp - 0x344]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
push dword [ebp - 0x344]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov ecx, dword [ebp - 4]
pop ebx
call fcn.010064de
leave
ret

Function at 0x1001e53
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x100b2d0]
push esi
push edi
mov dword [ebp - 4], eax
mov esi, 0x104
push esi
lea eax, [ebp - 0x108]
push eax
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x1001ecc
push 0x10012a4
push esi
lea eax, [ebp - 0x108]
push eax
call fcn.010066cf
lea eax, [ebp - 0x108]
push eax
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
push 0x40
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll__lopen]
mov esi, eax
cmp esi, 0xffffffff
je 0x1001ecc
push 2
push edi
push esi
call dword [sym.imp.KERNEL32.dll__llseek]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll__lclose]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
call fcn.010064de
leave
ret

Function at 0x1001edf
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp + 8]
push eax
push 0x20019
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1001f2a
lea eax, [ebp - 4]
push eax
push esi
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x1001f21
mov dword [ebp - 4], esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
pop esi
leave
ret 8
Function at 0x1001f37
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp + 8]
push eax
push 0x20019
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1001f86
push esi
push esi
push esi
push esi
lea eax, [ebp - 4]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
je 0x1001f7d
mov dword [ebp - 4], esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
pop esi
leave
ret 4

Function at 0x1001ff9
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1002019
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jmp 0x100201c
and eax, 0x10
pop ebp
ret 4

Function at 0x1002251
Capabilities:
Shutdown system

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
test byte [ebp + 8], 2
jne 0x1002266
call fcn.0100221e
cmp eax, 2
jne 0x10022a3
test byte [ebp + 8], 4
jne 0x1002288
push 4
push 0x40
push 0
push 0x1001271
push 0x522
push 0
call fcn.01003ebe
cmp eax, 6
jne 0x10022a3
cmp word [0x100ba64], 0
jne 0x100229e
push 0
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x10022a3
call fcn.010019c3
pop ebp
ret 4