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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10016610
push 0x10009b48
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffcc
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push 0x1c
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x38]
xor ecx, ecx
mov cx, word [eax]
cmp ecx, 0x5a4d
je 0x10006076
mov byte [ebp - 0x3d], 0
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x3d]
jmp 0x100060ff
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x38]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
cmp dword [ecx], 0x4550
je 0x1000609d
mov byte [ebp - 0x3e], 0
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x3e]
jmp 0x100060ff
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x38]
add eax, dword [edx + 0xd8]
cmp dword [ebp + 0xc], eax
jb 0x100060d8
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x38]
add edx, dword [ecx + 0xd8]
mov eax, dword [ebp - 0x3c]
add edx, dword [eax + 0xdc]
cmp dword [ebp + 0xc], edx
jae 0x100060d8
mov byte [ebp - 0x3f], 1
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x3f]
jmp 0x100060ff
mov byte [ebp - 0x40], 0
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x40]
jmp 0x100060ff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100061a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x1001db58]
mov dword [ebp - 4], eax
jmp 0x100061b9
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x100061d6
lea eax, [ebp - 8]
push eax
push 0x40
push 0x10000
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x100061b0
mov esp, ebp
pop ebp
ret
Function at 0x100061e0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x1001db68], eax
je 0x100061fe
mov eax, 0x10dd
jmp 0x100062e0
mov eax, dword [0x1001db78]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x1000627d
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x14]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x10]
xor eax, eax
mov al, byte [edx + 0x36]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 8]
cmp dword [eax + 4], 0
jne 0x1000625b
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0x10], 0
je 0x1000625b
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x10]
push eax
call fcn.10006350
add esp, 4
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
push edx
call fcn.10009c61
add esp, 4
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
jmp 0x10006206
mov dword [0x1001db78], 0
call fcn.100062f0
mov ecx, dword [0x1001db74]
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0
je 0x100062ca
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.10009c61
add esp, 4
mov edx, dword [ebp - 0x14]
mov dword [ebp - 4], edx
jmp 0x10006295
mov dword [0x1001db74], 0
mov dword [0x1001db68], 0
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x10006850
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
cmp dword [eax], 0x52727464
je 0x10006865
xor eax, eax
jmp 0x100068da
mov ecx, dword [ebp + 8]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
add edx, 0x10000
mov dword [ebp - 4], edx
mov eax, dword [ebp + 8]
add eax, 0x48
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 0
jmp 0x10006892
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 0x38d
jae 0x100068d5
mov edx, dword [ebp - 0xc]
imul edx, edx, 0x48
mov eax, dword [ebp - 0x10]
cmp dword [eax + edx + 0x40], 0
je 0x100068d3
mov ecx, dword [ebp - 0xc]
imul ecx, ecx, 0x48
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + ecx + 0x40]
cmp eax, dword [ebp - 8]
jb 0x100068cf
mov ecx, dword [ebp - 0xc]
imul ecx, ecx, 0x48
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + ecx + 0x40]
cmp eax, dword [ebp - 4]
jb 0x100068d3
xor eax, eax
jmp 0x100068da
jmp 0x10006889
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x10006990
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x1001db6c], 0
je 0x100069a9
mov eax, dword [0x1001db6c]
jmp 0x10006a49
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp dword [ebp + 8], eax
jne 0x100069bb
xor eax, eax
jmp 0x10006a49
push 8
call fcn.10009cbb
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x10006a11
mov dword [ebp - 8], 8
cmp dword [ebp - 4], 0
je 0x100069fa
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.10009c61
add esp, 4
mov dword [ebp - 4], 0
mov eax, dword [ebp - 8]
mov dword [0x1001db6c], eax
mov dword [0x1001db70], 0
mov eax, dword [ebp - 8]
jmp 0x10006a49
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x10006a2b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
jmp 0x100069db
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov dword [edx + 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [0x1001db74]
mov dword [ecx], edx
mov eax, dword [ebp - 4]
mov dword [0x1001db74], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x10007290
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 8]
push eax
call fcn.10007360
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x1000734c
cmp dword [ebp - 4], 0x50000000
jb 0x100072cc
cmp dword [ebp - 4], 0x80000000
ja 0x100072cc
mov dword [ebp - 4], 0x80010000
jmp 0x100072a5
push 0x1c
push 0
lea edx, [ebp - 0x20]
push edx
call fcn.10007ec0
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x100072f2
jmp 0x1000734c
cmp dword [ebp - 0x10], 0x10000
jne 0x10007335
cmp dword [ebp - 0x14], 0x10000
jb 0x10007335
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x10007328
mov eax, dword [ebp - 0x24]
jmp 0x1000734e
mov eax, dword [ebp - 4]
add eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x10007347
mov ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 0x14]
push ecx
call fcn.10007360
add esp, 4
mov dword [ebp - 4], eax
jmp 0x100072a5
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x100073a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0xc]
sub eax, 0x10000
push eax
call fcn.10007470
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 8]
jbe 0x10007464
cmp dword [ebp - 4], 0x50000000
jb 0x100073e1
cmp dword [ebp - 4], 0x80000000
ja 0x100073e1
mov dword [ebp - 4], 0x4fff0000
jmp 0x100073ba
push 0x1c
push 0
lea edx, [ebp - 0x20]
push edx
call fcn.10007ec0
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x10007407
jmp 0x10007464
cmp dword [ebp - 0x10], 0x10000
jne 0x1000744a
cmp dword [ebp - 0x14], 0x10000
jb 0x1000744a
push 0x40
push 0x3000
push 0x10000
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
je 0x1000743d
mov eax, dword [ebp - 0x24]
jmp 0x10007466
mov eax, dword [ebp - 4]
sub eax, 0x10000
mov dword [ebp - 4], eax
jmp 0x1000745f
mov ecx, dword [ebp - 0x1c]
sub ecx, 0x10000
push ecx
call fcn.10007470
add esp, 4
mov dword [ebp - 4], eax
jmp 0x100073ba
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x100074a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x1001db68], eax
je 0x100074c5
mov eax, 0x10dd
jmp 0x1000765a
cmp dword [0x1001db6c], 0
je 0x100074d8
mov eax, dword [0x1001db6c]
jmp 0x1000765a
cmp dword [ebp + 8], 0
jne 0x100074e8
mov eax, 6
jmp 0x1000765a
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x10007511
mov dword [ebp - 0x14], 6
mov ecx, dword [ebp - 0x14]
mov dword [0x1001db6c], ecx
mov edx, dword [ebp + 8]
mov dword [0x1001db70], edx
mov eax, dword [ebp - 0x14]
jmp 0x1000765a
push 0x18
call fcn.10009cbb
add esp, 4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x1000756a
mov dword [ebp - 0x14], 8
mov ecx, dword [ebp - 0x14]
mov dword [0x1001db6c], ecx
cmp dword [ebp - 0x18], 0
je 0x10007559
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
push eax
call fcn.10009c61
add esp, 4
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp + 8]
mov dword [0x1001db70], ecx
mov eax, dword [ebp - 0x14]
jmp 0x1000765a
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.10005ed0
mov dword [ebp - 0x10], eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.10005ed0
mov dword [ebp + 0xc], eax
mov edx, dword [ebp - 0x10]
xor eax, eax
mov al, byte [edx + 0x36]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x40]
sub edx, dword [ebp - 8]
mov dword [ebp - 0xc], edx
cmp dword [ebp - 8], 0
je 0x100075ab
cmp dword [ebp - 8], 0x1e
jbe 0x100075c5
mov dword [ebp - 0x14], 9
cmp dword [0x1001db60], 0
je 0x100075c0
jmp 0x1000753a
jmp 0x10007531
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x44]
cmp ecx, dword [ebp + 0xc]
je 0x100075ea
mov dword [ebp - 0x14], 9
cmp dword [0x1001db60], 0
je 0x100075e5
jmp 0x1000753a
jmp 0x10007531
mov dword [ebp - 4], 0
lea edx, [ebp - 4]
push edx
push 0x40
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10007617
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x14], eax
jmp 0x10007531
mov edx, dword [ebp - 0x18]
mov dword [edx + 4], 1
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp + 8]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
mov dword [edx + 0x10], eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0xc]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 4]
mov dword [eax + 0x14], ecx
mov edx, dword [ebp - 0x18]
mov eax, dword [0x1001db78]
mov dword [edx], eax
mov ecx, dword [ebp - 0x18]
mov dword [0x1001db78], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret 8

Function at 0x10008b3b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1001b8d0]
jne 0x10008b45
repz ret
jmp fcn.1000e349
Function at 0x10012497
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1001b8d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.1000ceca
and dword [ebp - 0x14], 0
cmp dword [0x1001e890], 0
mov dword [ebp - 0x18], eax
jne 0x1001254a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x100125f2
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x100125f2
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x1001e890], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x1001e894], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x1001e898], eax
call edi
push eax
call esi
mov dword [0x1001e8a0], eax
test eax, eax
je 0x1001254a
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x1001e89c], eax
mov eax, dword [0x1001e89c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x100125a3
cmp dword [0x1001e8a0], ecx
je 0x100125a3
push eax
call esi
push dword [0x1001e8a0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x100125a3
test ebx, ebx
je 0x100125a3
call edi
test eax, eax
je 0x1001259a
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x1001259a
test byte [ebp - 8], 1
jne 0x100125a3
or dword [ebp + 0x10], 0x200000
jmp 0x100125d6
mov eax, dword [0x1001e894]
cmp eax, dword [ebp - 0x18]
je 0x100125d6
push eax
call esi
test eax, eax
je 0x100125d6
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x100125d6
mov eax, dword [0x1001e898]
cmp eax, dword [ebp - 0x18]
je 0x100125d6
push eax
call esi
test eax, eax
je 0x100125d6
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x1001e890]
call esi
test eax, eax
je 0x100125f2
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x100125f4
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10008b3b
leave
ret
Function at 0x1002a52
Capabilities:
Open clipboard

Disassembly:
push esi
push 0x1001454
call fcn.01004bf7
pop ecx
push 0xffffffffffffffff
push dword [0x10081c0]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esp + 8]
call dword [sym.imp.USER32.dll_OpenClipboard]
mov esi, eax
test esi, esi
jne 0x1002a88
push dword [0x10081c0]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, esi
pop esi
ret 4
Function at 0x10030b0
Capabilities:
Delete file
Delete registry value
Get hostname

Disassembly:
push ebp
lea ebp, [esp - 0x1ac]
sub esp, 0x22c
mov eax, dword [0x10081b8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x1b8]
push 0x10
pop ebx
push 0x101
mov dword [ebp + 0x1a8], eax
lea eax, [ebp - 0x70]
push eax
push 0xffffffffffffffff
xor esi, esi
push edi
push esi
push esi
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x7c], esi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x70]
push eax
push 0x10016b4
call fcn.01004bf7
pop ecx
mov dword [ebp - 0x74], esi
mov esi, dword [0x1008404]
pop ecx
jmp 0x100313d
lea eax, [esi + 0x208]
push eax
push 0x10016a0
call fcn.01004bf7
pop ecx
pop ecx
lea eax, [ebp - 0x70]
push eax
lea eax, [esi + 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x1003146
mov dword [ebp - 0x74], esi
mov esi, dword [esi + 0x41c]
test esi, esi
jne 0x100310c
jmp 0x100329d
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp + 0x196]
push eax
mov byte [ebp + 0x195], 0x5c
mov byte [ebp + 0x194], 0x5c
mov dword [ebp - 0x80], ebx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
mov bl, byte [edi]
lea eax, [ebp + 0x194]
push eax
push edi
push 0x1001684
mov byte [edi], 0x24
call fcn.01004bf7
add esp, 0xc
push 0
push edi
lea eax, [ebp + 0x194]
push eax
call sub.NDdeApi.dll_Ordinal_501
test eax, eax
mov dword [ebp + 0x1b8], eax
mov byte [edi], bl
jne 0x100327d
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
push 2
lea eax, [ebp - 0x78]
push eax
call fcn.01002e5a
test eax, eax
jne 0x10031cb
push edi
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10031de
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1001668
call fcn.01004bf7
pop ecx
pop ecx
push dword [ebp + 0x1b4]
call sub.USER32.dll_DdeImpersonateClient
push 0
push 0
push 0x306
push dword [0x1008428]
call dword [sym.imp.USER32.dll_SendMessageA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x74]
test eax, eax
jne 0x1003219
mov eax, dword [esi + 0x41c]
mov dword [0x1008404], eax
jmp 0x1003225
mov ecx, dword [esi + 0x41c]
mov dword [eax + 0x41c], ecx
push dword [esi + 0x40c]
push dword [0x10081d0]
call sub.USER32.dll_DdeFreeStringHandle
mov eax, dword [esi + 0x414]
test eax, eax
je 0x1003246
push eax
call sub.USER32.dll_DdeFreeDataHandle
mov eax, dword [esi + 0x418]
test eax, eax
je 0x1003256
push eax
call sub.USER32.dll_DdeFreeDataHandle
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [0x1008a60]
push dword [0x1008430]
push dword [0x10081d0]
call sub.USER32.dll_DdePostAdvise
mov dword [ebp - 0x7c], 1
jmp 0x10032aa
push eax
push 0x1001644
call fcn.01004bf7
pop ecx
pop ecx
push dword [ebp + 0x1b8]
push 0x20
push dword [ebp + 0x1b4]
call fcn.01002f9e
push edi
push 0x1001618
call fcn.01004bf7
pop ecx
pop ecx
mov ecx, dword [ebp + 0x1a8]
mov eax, dword [ebp - 0x7c]
pop edi
pop esi
pop ebx
call fcn.01006d6c
add ebp, 0x1ac
leave
ret 8
Function at 0x100395a
Capabilities:
Get hostname
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x1b4]
sub esp, 0x234
mov eax, dword [0x10081b8]
push edi
mov dword [ebp + 0x1b0], eax
xor edi, edi
call fcn.0100303d
push 9
lea eax, [ebp - 0x78]
push eax
call fcn.01002e5a
test eax, eax
je 0x100399c
push 0x1001948
call fcn.01004bf7
pop ecx
xor eax, eax
jmp 0x1003a4e
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp + 0x19e]
push eax
mov byte [ebp + 0x19d], 0x5c
mov byte [ebp + 0x19c], 0x5c
mov dword [ebp - 0x74], 0x10
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push esi
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x80]
push eax
push 0
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp + 0x98]
push eax
push edi
push dword [ebp - 0x78]
mov dword [ebp - 0x74], 0x101
mov dword [ebp - 0x7c], 0x105
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov esi, eax
test esi, esi
jne 0x1003a2a
mov eax, dword [ebp - 0x74]
mov byte [ebp + eax + 0x98], 0
mov eax, dword [ebp - 0x7c]
mov byte [ebp + eax - 0x70], 0
xor eax, eax
cmp byte [ebp + 0x98], 0x24
sete al
push eax
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp + 0x98]
push eax
call fcn.010032c5
inc edi
cmp esi, 0x103
jne 0x10039c3
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push 0x1001938
call fcn.01004bf7
pop ecx
pop ecx
xor eax, eax
inc eax
pop esi
mov ecx, dword [ebp + 0x1b0]
pop edi
call fcn.01006d6c
add ebp, 0x1b4
leave
ret

Function at 0x1003c4a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x10081b8]
push ebx
mov dword [ebp - 4], eax
push 0x90
lea eax, [ebp - 0x94]
push eax
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x1003c7c
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1003cf8
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
movzx eax, ax
cdq
mov ecx, 0x2710
idiv ecx
mov edi, edx
movzx eax, di
push eax
lea eax, [ebp - 0x94]
push eax
push 0x1001a50
push 0x105
push dword [ebp + 8]
call fcn.01003933
add esp, 0x14
push 0
push 0x80
push 1
push 0
push 0
push 0x40000000
push dword [ebp + 8]
inc edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
jne 0x1003cee
mov ax, bx
inc ebx
cmp ax, 0x2710
jb 0x1003c90
push 0x1001a10
call fcn.01004bf7
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1003cf7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
pop ebx
call fcn.01006d6c
leave
ret 4
Function at 0x1003d05
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x10081b8]
push ebx
push esi
mov esi, dword [ebp + 0x98]
push edi
mov dword [ebp + 0x8c], eax
lea eax, [ebp - 0x7c]
xor edi, edi
push eax
inc edi
push esi
mov dword [0x1008a6c], edi
call fcn.010033d5
mov ebx, eax
test ebx, ebx
lea eax, [ebp - 0x7c]
je 0x1003d72
push edi
push eax
push esi
push dword [0x1008428]
call fcn.010061e9
push ebx
mov dword [ebp + 0x98], eax
call fcn.010033a0
push esi
push 0x101
push 0x1008300
call fcn.01002d92
jmp 0x1003df7
push eax
call fcn.01003c4a
test eax, eax
jne 0x1003e14
push edi
lea eax, [ebp - 0x7c]
push eax
push esi
push dword [0x1008428]
call fcn.010061e9
test eax, eax
mov dword [ebp + 0x98], eax
jne 0x1003e14
movzx eax, word [ebp + 0x9c]
push eax
lea eax, [ebp - 0x7c]
push eax
push esi
call fcn.010032c5
test eax, eax
jne 0x1003db6
push 8
pop eax
jmp 0x1003e14
push 2
lea eax, [ebp - 0x80]
push eax
call fcn.01002e5a
test eax, eax
jne 0x1003df7
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x7c]
push eax
push edi
push 0
push esi
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x80]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
push 0x1001a60
call fcn.01004bf7
pop ecx
pop ecx
push dword [0x1008a60]
push dword [0x1008430]
push dword [0x10081d0]
call sub.USER32.dll_DdePostAdvise
mov eax, dword [ebp + 0x98]
mov ecx, dword [ebp + 0x8c]
pop edi
pop esi
pop ebx
call fcn.01006d6c
add ebp, 0x90
leave
ret 8

Function at 0x1004cb2
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x10081b8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
cmp esi, edi
mov dword [ebp - 4], eax
je 0x1004d68
mov ebx, dword [ebp + 8]
cmp ebx, edi
je 0x1004d68
mov eax, dword [0x1008a78]
neg eax
sbb eax, eax
and eax, 0x53
add eax, 0x59
imul eax, dword [ebp + 0x10]
push edi
push edi
add eax, 4
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x1008a78], edi
lea eax, [ebp + 0xc]
push edi
push eax
je 0x1004d22
mov edi, 0xac
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp + 0xc], edi
je 0x1004d63
push 0x1001ef4
jmp 0x1004d6d
push 0x59
lea eax, [ebp - 0x60]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp + 0xc], 0x59
je 0x1004d3c
push 0x1001ee0
jmp 0x1004d6d
movzx eax, word [ebp - 0x60]
mov dword [esi], eax
mov eax, dword [ebp - 0x5e]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x5a]
push 0x4f
mov dword [esi + 8], eax
add esi, 0xc
push esi
push 0xffffffffffffffff
lea eax, [ebp - 0x56]
push eax
push 1
push edi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor eax, eax
inc eax
jmp 0x1004d75
push 0x1001ec4
call fcn.01004bf7
pop ecx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01006d6c
leave
ret 0xc