joyce8/EMBER2024-capa huggingface dataset:
Function at 0x450ef8
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x469bb0]
cmp dword [eax + 0x30], 0
je 0x450fa2
cmp dword [ebx + 0x94], 0
jne 0x450f9c
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x450e88
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x450f9c
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x450f62
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x450f9c
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00413938
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x450f71
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x451b04
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x451b39
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00403f3c
jmp 0x451b46
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00403ea0
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x452c28
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x452c69
mov eax, esi
call fcn.004392d0
test al, al
je 0x452c69
mov eax, dword [ebx + 0x84]
call fcn.00438fcc
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x452c69
push 0
mov eax, dword [ebx + 0x84]
call fcn.00438fcc
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x456330
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x45635e
mov eax, ebx
call fcn.00456de4
cmp dword [ebx + 0x40], 0
je 0x456357
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x4563cf
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x4563c1
cmp dword [ebx + 8], 0
je 0x456380
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x456392
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4563c1
cmp dword [ebx + 8], 0
je 0x456373
cmp eax, 3
je 0x4563a5
dec eax
jne 0x456373
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x456373
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x456373
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x4563ed
cmp dword [ebx + 0x14], 0xcc
je 0x4563ed
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.004563f8
pop ebx
ret
Function at 0x401000
Capabilities:
Parse pe header

Disassembly:
mov eax, dword [0x403010]
mov dword [eax], 1
mov eax, dword [0x403014]
mov dword [eax], 1
mov eax, dword [0x403018]
mov dword [eax], 1
mov ecx, dword [0x403004]
movzx edx, word [ecx]
xor eax, eax
cmp edx, 0x5a4d
jne 0x40107b
mov edx, dword [ecx + 0x3c]
cmp dword [ecx + edx], 0x4550
jne 0x40107b
add ecx, edx
movzx edx, word [ecx + 0x18]
cmp edx, 0x20b
je 0x401064
cmp edx, 0x10b
jne 0x40107b
cmp dword [ecx + 0x74], 0xf
jb 0x40107b
add ecx, 0xe8
jmp 0x401073
cmp dword [ecx + 0x84], 0xf
jb 0x40107b
add ecx, 0xf8
xor eax, eax
cmp dword [ecx], 0
setne al
push esi
mov ecx, dword [0x40300c]
cmp dword [ecx], 1
mov dword [0x405070], eax
mov eax, 2
sbb eax, 0
push eax
call sym.__set_app_type
add esp, 4
mov eax, dword [0x403040]
mov esi, dword [eax]
call sym.___p__fmode
mov dword [eax], esi
mov eax, dword [0x403038]
mov esi, dword [eax]
call sym.___p__commode
mov dword [eax], esi
call dbg._setargv
mov eax, dword [section..rdata]
cmp dword [eax], 1
jne 0x4010d3
push dbg._matherr
call dbg.__mingw_setusermatherr
add esp, 4
xor eax, eax
pop esi
ret

Function at 0x401110
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x40300c]
mov dword [eax], 1
jmp dbg.__tmainCRTStartup

Function at 0x401940
Capabilities:
Write file on windows

Disassembly:
push esi
push eax
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
mov dword [esp], eax
push 2
call sym.___acrt_iob_func
add esp, 4
push eax
push 1
push 0x1b
push str.Mingw_w64_runtime_failure:_n
call sym._fwrite
add esp, 0x10
push 2
call sym.___acrt_iob_func
add esp, 4
push dword [esp]
push esi
push eax
call dbg.vfprintf
add esp, 0xc
call sym._abort
int3
Function at 0x401df0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, dword [esp + 0x18]
cmp eax, 3
ja case.default.0x401e01
jmp dword [eax*4 + 0x40333c]
cmp dword [0x4050d8], 0
je 0x401f10
push 0x4050dc
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x4050f4]
test edi, edi
je 0x401f05
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x401e4b
mov edi, dword [edi + 8]
test edi, edi
je 0x401f05
push dword [edi]
call ebx
mov esi, eax
call ebp
test eax, eax
jne 0x401e40
test esi, esi
je 0x401e40
mov ecx, dword [edi + 4]
call dword [0x403408]
push esi
call ecx
add esp, 4
jmp 0x401e40
call dbg._fpreset
jmp case.default.0x401e01
cmp dword [0x4050d8], 0
je case.default.0x401e01
push 0x4050dc
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [0x4050f4]
test edi, edi
je 0x401ef8
mov ebx, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x401eb7
mov edi, dword [edi + 8]
test edi, edi
je 0x401ef8
push dword [edi]
call ebx
mov esi, eax
call ebp
test eax, eax
jne 0x401eb0
test esi, esi
je 0x401eb0
mov ecx, dword [edi + 4]
call dword [0x403408]
push esi
call ecx
add esp, 4
jmp 0x401eb0
cmp dword [0x4050d8], 0
jne 0x401eec
push 0x4050dc
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x4050d8], 1
jmp case.default.0x401e01
push 0x4050dc
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp case.default.0x401e01
push 0x4050dc
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [0x4050d8]
cmp eax, 1
jne case.default.0x401e01
mov eax, dword [0x4050f4]
test eax, eax
je 0x401f42
nop word cs:[eax + eax]
mov esi, dword [eax + 8]
push eax
call sym._free
add esp, 4
mov eax, esi
test esi, esi
jne 0x401f30
mov dword [0x4050f4], 0
mov dword [0x4050d8], 0
push 0x4050dc
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov eax, 1
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4020a0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push edi
push esi
mov esi, dword [0x403004]
movzx ecx, word [esi]
xor eax, eax
cmp ecx, 0x5a4d
jne 0x402106
mov ecx, dword [esi + 0x3c]
cmp dword [esi + ecx], 0x4550
jne 0x402106
add esi, ecx
movzx ecx, word [esi + 0x18]
cmp ecx, 0x10b
jne 0x402106
movzx ecx, word [esi + 6]
test ecx, ecx
je 0x402106
mov edx, dword [esp + 0xc]
sub edx, dword [0x403004]
movzx edi, word [esi + 0x14]
add esi, edi
add esi, 0x18
jmp 0x4020f6
add esi, 0x28
dec ecx
je 0x402106
mov edi, dword [esi + 0xc]
cmp edi, edx
ja 0x4020f0
add edi, dword [esi + 8]
cmp edi, edx
jbe 0x4020f0
mov eax, esi
pop esi
pop edi
ret
Function at 0x40279c
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
imul edx, dword [0x40c02c], 0x8088405
inc edx
mov dword [0x40c02c], edx
mul edx
mov eax, edx
ret

Function at 0x4051fc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x405235
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403278
jmp 0x40523e
mov eax, ebx
mov edx, esi
call fcn.0040322c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x405248
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA
test eax, eax
jle 0x405269
mov al, byte [esp]
jmp 0x40526b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x406e10
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x406f48
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0
mov eax, dword [ebp - 4]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
jne 0x406f32
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0xc]
je 0x406e6d
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 8]
jne 0x406f32
cmp dword [ebp - 0x10], 0
jne 0x406e82
mov eax, dword [ebp - 8]
call fcn.00403198
mov bl, 1
jmp 0x406f32
cmp dword [ebp - 0x10], 0x70000000
jb 0x406e90
call fcn.00405874
mov esi, dword [ebp - 0x10]
test esi, esi
sar esi, 0
lea eax, [ebp - 0x14]
mov ecx, esi
xor edx, edx
call fcn.00403278
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
call fcn.00403420
push eax
lea eax, [ebp - 0xc]
push eax
push 0
mov eax, dword [ebp - 4]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExA
cmp eax, 0xea
je 0x406e36
test eax, eax
jne 0x406f32
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0xc]
je 0x406ee0
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 8]
jne 0x406f32
mov esi, dword [ebp - 0x10]
test esi, esi
sar esi, 0
jmp 0x406eeb
dec esi
test esi, esi
je 0x406ef9
mov eax, dword [ebp - 0x14]
cmp byte [eax + esi - 1], 0
je 0x406eea
cmp dword [ebp - 0xc], 7
jne 0x406f04
test esi, esi
je 0x406f04
inc esi
lea eax, [ebp - 0x14]
mov edx, esi
call fcn.004034f0
cmp dword [ebp - 0xc], 7
jne 0x406f25
test esi, esi
je 0x406f25
lea eax, [ebp - 0x14]
call fcn.00403420
mov byte [eax + esi - 1], 0
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
call fcn.004031e8
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406f4f
lea eax, [ebp - 0x14]
call fcn.00403198
ret
Function at 0x100093c0
Capabilities:
Encode data using xor
Encrypt data using aes via x86 extensions

Disassembly:
push ebp
push ebx
test eax, eax
je 0x100098e0
test edx, edx
je 0x100098e0
call fcn.100093d7
mov eax, 0xffffffff
pop ebx
pop ebp
ret

Function at 0x10009920
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
call fcn.100093c0
mov edx, dword [esp + 0xc]
shl ecx, 4
test eax, eax
jne 0x10009991
lea eax, [edx + ecx + 0x10]
movups xmm0, xmmword [edx]
movups xmm1, xmmword [eax]
movups xmmword [eax], xmm0
movups xmmword [edx], xmm1
lea edx, [edx + 0x10]
lea eax, [eax - 0x10]
movups xmm0, xmmword [edx]
movups xmm1, xmmword [eax]
aesimc xmm0, xmm0
aesimc xmm1, xmm1
lea edx, [edx + 0x10]
lea eax, [eax - 0x10]
movups xmmword [eax + 0x10], xmm0
movups xmmword [edx - 0x10], xmm1
cmp eax, edx
ja 0x10009956
movups xmm0, xmmword [edx]
aesimc xmm0, xmm0
movups xmmword [edx], xmm0
pxor xmm0, xmm0
pxor xmm1, xmm1
xor eax, eax
ret

Function at 0x10019a40
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x10115770]
xor eax, ebp
mov dword [ebp - 4], eax
movdqu xmm0, xmmword [ebp + 8]
sub esp, 0x18
mov eax, esp
push str.CLSID_sInprocServer32
movdqu xmmword [eax], xmm0
movq xmm0, qword [ebp + 0x18]
movq qword [eax + 0x10], xmm0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x20
lea eax, [ebp - 0x20c]
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
movdqu xmm0, xmmword [ebp + 8]
sub esp, 0x18
mov eax, esp
push str.CLSID_s
movdqu xmmword [eax], xmm0
movq xmm0, qword [ebp + 0x18]
movq qword [eax + 0x10], xmm0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x20
lea eax, [ebp - 0x20c]
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp dword [ebp + 0x1c], 8
jb 0x10019ae2
push dword [ebp + 8]
call fcn.1006269c
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
call fcn.100626a1
mov esp, ebp
pop ebp
ret
Function at 0x1001c290
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100da608
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x10115770]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
push edi
mov eax, dword [0x10115770]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
sub esp, 0x18
mov ecx, esp
xor eax, eax
push eax
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push 0x1010655c
mov word [ecx], ax
call fcn.1001ac60
mov dl, 1
xor cl, cl
call fcn.10024b00
add esp, 0x18
mov esi, 1
call fcn.10022760
xor ecx, ecx
test eax, eax
cmovne esi, ecx
call fcn.10021b80
test eax, eax
jne 0x1001c383
test esi, esi
je 0x1001c383
lea ecx, [eax + 2]
call fcn.10021f60
test eax, eax
jne 0x1001c383
lea ecx, [eax + 6]
call fcn.10021f60
test eax, eax
jne 0x1001c383
lea ecx, [esp + 0x10]
call fcn.10023810
mov dword [esp + 0x38], 0
call fcn.1001a2b0
add eax, 4
lea ecx, [esp + 0x10]
cmp eax, ecx
je 0x1001c35b
push 0xffffffffffffffff
push 0
push ecx
mov ecx, eax
call fcn.1001a610
push 0
push 0
push edi
push 0x1001d920
push 0
push 0
call fcn.100634e2
add esp, 0x18
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.1001c390
int3
Function at 0x10020be0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100dacc8
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x10115770]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x74], eax
test edx, edx
je 0x10020d99
test edi, edi
je 0x10020d99
mov esi, 0x8000ffff
mov dword [ebp - 0x6c], 0
lea eax, [ebp - 0x6c]
mov dword [ebp - 4], 0
push eax
push 0x20119
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10020d7b
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x70]
push eax
push 0
push dword [ebp - 0x74]
push 0
push edi
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10020d80
mov eax, dword [ebp - 0x70]
add eax, 8
push eax
call fcn.10061f01
mov edi, eax
mov eax, dword [ebp - 0x70]
add eax, 8
push eax
push 0
push edi
call fcn.10068f30
add esp, 0x10
lea eax, [ebp - 0x70]
push eax
push edi
push dword [ebp - 0x74]
push 0
push dword [ebp - 0x18]
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10020d70
mov eax, dword [ebp - 0x74]
mov eax, dword [eax]
cmp eax, 4
jne 0x10020cff
xor eax, eax
push 0x4e
push eax
mov word [ebp - 0x68], ax
lea eax, [ebp - 0x66]
push eax
call fcn.10068f30
push 0xa
push 0x28
lea eax, [ebp - 0x68]
push eax
push dword [edi]
call fcn.10064b81
add esp, 0x1c
lea eax, [ebp - 0x68]
mov ecx, ebx
push eax
call fcn.1001a260
push edi
xor esi, esi
call fcn.10063170
add esp, 4
jmp 0x10020d80
cmp eax, 1
je 0x10020d66
cmp eax, 2
je 0x10020d66
cmp eax, 7
je 0x10020d66
cmp dword [ebp - 0x70], 0
jbe 0x10020d70
push 0x10107b44
mov ecx, ebx
call fcn.1001a260
xor esi, esi
cmp dword [ebp - 0x70], esi
jbe 0x10020d6e
xor eax, eax
mov word [ebp - 0x18], ax
mov dword [ebp - 0x16], eax
movzx eax, byte [esi + edi]
push eax
push 0x10107b4c
lea eax, [ebp - 0x18]
push 2
push eax
call fcn.10020e90
add esp, 0x10
lea eax, [ebp - 0x18]
mov ecx, ebx
push eax
call fcn.1001a5c0
inc esi
cmp esi, dword [ebp - 0x70]
jb 0x10020d27
push edi
xor esi, esi
call fcn.10063170
add esp, 4
jmp 0x10020d80
push edi
mov ecx, ebx
call fcn.1001a260
xor esi, esi
push edi
call fcn.10063170
add esp, 4
jmp 0x10020d80
mov esi, 0x80070005
mov eax, dword [ebp - 0x6c]
test eax, eax
je 0x10020d95
push eax
mov dword [ebp - 0x6c], 0
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x10020d9e
mov eax, 0x80004003
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100626a1
mov esp, ebp
pop ebp
ret
Function at 0x10020dc0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x10115770]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
test ecx, ecx
je 0x10020e7b
test edx, edx
je 0x10020e7b
test esi, esi
je 0x10020e7b
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x10020e1d
mov esi, 0x80070005
jmp 0x10020e54
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10020e22
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edi
push 1
push 0
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
neg esi
sbb esi, esi
and esi, 0x8000ffff
mov eax, dword [ebp - 8]
test eax, eax
je 0x10020e69
push eax
mov dword [ebp - 8], 0
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100626a1
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0x80004003
pop edi
xor ecx, ebp
pop esi
call fcn.100626a1
mov esp, ebp
pop ebp
ret

Function at 0x10021a10
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x810
mov eax, dword [0x10115770]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x808], eax
mov esi, ecx
mov eax, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x80c], eax
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0x804], ax
lea eax, [ebp - 0x802]
push eax
mov dword [ebp - 0x810], 0
call fcn.10068f30
add esi, 4
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x10021a73
mov esi, dword [esi]
mov ecx, dword [ebp - 0x80c]
cmp dword [ecx + 0x14], 8
jb 0x10021a81
mov ecx, dword [ecx]
mov eax, dword [ebp - 0x808]
cmp dword [eax + 0x14], 8
jb 0x10021a8f
mov eax, dword [eax]
cmp dword [ebx + 0x14], 8
jb 0x10021a97
mov ebx, dword [ebx]
push esi
push 0x400
lea edx, [ebp - 0x804]
push edx
push ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], ax
cmp word [ebp - 0x804], ax
jne 0x10021acd
xor ecx, ecx
jmp 0x10021ae5
lea ecx, [ebp - 0x804]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10021ad6
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x804]
mov ecx, edi
push eax
call fcn.1001ac60
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100626a1
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10021f60
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x10115770]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x228
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x230], 0
push 0
push eax
mov esi, ecx
call fcn.10068f30
add esp, 0xc
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
cmp edi, 0xffffffff
je 0x10022097
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x10022097
mov ebx, dword [sym.imp.KERNEL32.dll_Process32NextW]
cmp esi, 2
jne 0x10022040
lea eax, [ebp - 0x20c]
test eax, eax
je 0x10022085
cmp word [ebp - 0x20c], 0x5a
jne 0x10022085
cmp word [ebp - 0x20a], 0x68
jne 0x10022085
cmp word [ebp - 0x208], 0x75
jne 0x10022085
cmp word [ebp - 0x206], 0x44
jne 0x10022085
cmp word [ebp - 0x204], 0x6f
jne 0x10022085
cmp word [ebp - 0x202], 0x6e
jne 0x10022085
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100626a1
mov esp, ebp
pop ebp
ret
cmp esi, 6
jne 0x10022085
push 0
push 0
push 0x61
push 0x44
push 0x73
push 0x70
push 0x69
lea edx, [esi + 0x42]
lea ecx, [ebp - 0x20c]
call fcn.10021ed0
add esp, 0x1c
test al, al
jne 0x1002202a
push 0
push 0
push 0x72
push 0x6f
push 0x77
push 0x53
push 0x52
lea edx, [esi + 0x42]
call fcn.10021ed0
add esp, 0x1c
test al, al
jne 0x1002202a
lea eax, [ebp - 0x230]
push eax
push edi
call ebx
test eax, eax
jne 0x10021fd3
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100626a1
mov esp, ebp
pop ebp
ret
Function at 0x10024e90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100db398
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x10115770]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
cmp dword [0x1011aa70], 0
je 0x10024fbc
mov eax, dword [0x1011abd8]
test eax, eax
je 0x10024fbc
push 2
lea ecx, [ebp - 0x14]
xorps xmm0, xmm0
push ecx
push 0
push eax
movlpd qword [ebp - 0x18], xmm0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x10024ef9
call fcn.10025320
call fcn.10018a90
xor ecx, ecx
mov edx, eax
test edx, edx
setne cl
test ecx, ecx
jne 0x10024f15
push 0x80004005
call fcn.10020b70
mov eax, dword [edx]
mov ecx, edx
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x1a]
push edi
push esi
push eax
movzx eax, word [ebp - 0x1c]
push eax
movzx eax, word [ebp - 0x1e]
push eax
movzx eax, word [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
lea eax, [ebp - 0x14]
push str.__d___02d:_02d:_02d._03d__s__s_r_n
push eax
call fcn.10021670
mov esi, dword [ebp - 0x14]
lea ecx, [ebp - 0x14]
add esp, 0x24
mov eax, dword [esi - 0xc]
push 0
push ecx
add eax, eax
push eax
push esi
push dword [0x1011abd8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x10024f86
call fcn.10025320
push dword [0x1011abd8]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
test eax, eax
jne 0x10024f9b
call fcn.10025320
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x10024fbc
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100626a1
mov esp, ebp
pop ebp
ret