joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100e246
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0
push ebx
push esi
push edi
mov edi, ecx
je 0x100e26a
push dword [ebp + 8]
lea ecx, [ebp - 4]
call fcn.01026a4d
jmp 0x100e287
lea esi, [edi + 0x5c]
mov ecx, esi
call fcn.0100c453
lea eax, [ebp - 4]
push eax
lea ecx, [edi + 0x7c]
call fcn.0100de46
mov ecx, esi
call fcn.0100c4da
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [edi + 0x74], 1
call ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
mov ecx, edi
call fcn.0100ca59
mov dword [ebp + 8], eax
test eax, eax
jl 0x100e2f1
mov esi, dword [ebp - 8]
test esi, esi
je 0x100e360
push esi
mov ecx, edi
call fcn.0100e193
lea ecx, [esi + 8]
mov dword [ebp + 8], eax
mov eax, dword [ecx]
call dword [eax + 0xc]
cmp dword [ebp + 8], 0
jl 0x100e32c
mov eax, dword [esi]
push esi
call dword [eax + 8]
call ebx
mov dword [ebp - 0xc], eax
sub eax, dword [ebp - 0x10]
cmp eax, 0x14
jb 0x100e29c
jmp 0x100e388
mov eax, dword [0x1029018]
cmp eax, 0x1029018
je 0x100e31d
test byte [eax + 0x1c], 4
je 0x100e31d
push dword [ebp + 8]
push 0x1002300
push 0x1001e48
push 0x37
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100a721
mov eax, dword [ebp - 8]
test eax, eax
je 0x100e388
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x100e388
mov eax, dword [0x1029018]
cmp eax, 0x1029018
je 0x100e358
test byte [eax + 0x1c], 4
je 0x100e358
push dword [ebp + 8]
push 0x10022d0
push 0x1001e48
push 0x38
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100a721
mov eax, dword [esi]
push esi
call dword [eax + 8]
jmp 0x100e388
mov eax, dword [0x1029018]
cmp eax, 0x1029018
je 0x100e384
test byte [eax + 0x1c], 1
je 0x100e384
push 0x1001e48
push 0x39
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100a6cf
and dword [ebp + 8], 0
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 0x10]
and dword [edi + 0x74], 0
cmp eax, 0x14
jb 0x100e39e
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x64]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
test eax, eax
je 0x100e3ae
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp + 8]
leave
ret 4
Function at 0x10161a9
Capabilities:
Copy file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push edi
mov edx, ecx
xor eax, eax
push 7
pop ecx
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
lea eax, [edx + 0x224]
mov dword [ebp - 0x14], eax
mov eax, 0x750
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x20]
add edx, 0x434
push eax
mov ebx, 0x80004005
mov dword [ebp - 0x1c], 2
mov dword [ebp - 6], edx
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
jne 0x1016200
xor ebx, ebx
jmp 0x1016269
mov eax, dword [0x1029018]
mov edi, 0x1029018
cmp eax, edi
je 0x1016269
test byte [eax + 0x1c], 4
push esi
mov esi, 0x1003bf4
je 0x101622d
push esi
push 0x1a
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100a6cf
mov eax, dword [0x1029018]
cmp eax, edi
je 0x1016268
test byte [eax + 0x1c], 4
je 0x101624d
push dword [ebp - 0x18]
push esi
push 0x1b
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100c249
mov eax, dword [0x1029018]
cmp eax, edi
je 0x1016268
test byte [eax + 0x1c], 4
je 0x1016268
push dword [ebp - 0x14]
push esi
push 0x1c
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.0100c249
pop esi
pop edi
mov eax, ebx
pop ebx
leave
ret 4
Function at 0x402111
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x1c
push dword [section..data]
call dword [sym.imp.USER32.dll_ShowWindowAsync]
mov esi, dword [ebp + 8]
xor ecx, ecx
xor eax, eax
mov byte [eax + esi], al
inc eax
cmp eax, 0x100
jl 0x40212c
mov byte [esi + 0x100], cl
mov byte [esi + 0x101], cl
xor edi, edi
mov dword [ebp + 8], ecx
mov eax, edi
mov cl, byte [edi + esi]
cdq
idiv dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push dword [section..data]
mov al, byte [edx + eax]
mov edx, dword [ebp + 8]
add edx, ecx
add eax, edx
and eax, 0xff
mov dword [ebp + 8], eax
call dword [sym.imp.USER32.dll_GetParent]
movzx ebx, byte [edi + esi]
push 0x30
push dword [0x404004]
call dword [sym.imp.USER32.dll_ShowWindowAsync]
mov eax, dword [ebp + 8]
add eax, esi
mov cl, byte [eax]
mov byte [edi + esi], cl
mov byte [eax], bl
push dword [section..data]
call dword [sym.imp.USER32.dll_GetLastActivePopup]
inc edi
cmp edi, 0x100
jl 0x402148
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret

Function at 0x4021ac
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push dword [0x404008]
mov esi, dword [sym.imp.USER32.dll_GetLastActivePopup]
call esi
push dword [0x404004]
call esi
mov esi, dword [ebp + 8]
and dword [ebp + 8], 0
cmp dword [ebp + 0x10], 0
movzx eax, byte [esi + 0x101]
movzx ebx, byte [esi + 0x100]
mov dword [ebp - 4], eax
jle 0x402235
push edi
mov edi, 0xff
push dword [section..data]
call dword [sym.imp.USER32.dll_GetParent]
mov ecx, dword [ebp - 4]
inc ebx
and ebx, edi
mov edx, dword [ebp + 8]
movzx eax, byte [ebx + esi]
add ecx, eax
and ecx, edi
mov dword [ebp - 4], ecx
mov cl, byte [ecx + esi]
mov byte [ebx + esi], cl
mov ecx, dword [ebp - 4]
mov byte [ecx + esi], al
mov ecx, dword [ebp + 0xc]
add ecx, edx
mov dl, byte [ebx + esi]
add edx, eax
and edx, edi
mov al, byte [edx + esi]
xor byte [ecx], al
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x10]
jl 0x4021ec
pop edi
mov al, byte [ebp - 4]
mov byte [esi + 0x101], al
push dword [0x40400c]
call dword [sym.imp.USER32.dll_GetLastActivePopup]
mov byte [esi + 0x100], bl
pop esi
pop ebx
leave
ret
Function at 0x40285c
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
push dword [0x40403c]
mov edi, dword [sym.imp.USER32.dll_GetLastActivePopup]
mov esi, ecx
call edi
lea eax, [ebx + 5]
push eax
call fcn.0040298b
pop ecx
mov dword [esi], eax
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebx + 5]
push 0x40
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push dword [ebp + 8]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push ebx
push eax
push dword [esi]
mov dword [ebp + 0x10], eax
call fcn.0040293d
add esp, 0xc
push dword [0x40403c]
call edi
add dword [esi], ebx
push dword [0x40403c]
call edi
mov eax, dword [esi]
mov byte [eax], 0xe9
push dword [0x40403c]
call edi
inc dword [esi]
mov ecx, dword [esi]
mov eax, dword [ebp + 0x10]
sub eax, ecx
lea eax, [eax + ebx - 4]
mov dword [ecx], eax
push dword [0x40403c]
call edi
or eax, 0xffffffff
pop edi
sub eax, ebx
add dword [esi], eax
mov eax, esi
pop esi
pop ebx
leave
ret 0xc
Function at 0x401000
Capabilities:
Create service
Get common file path
Start service

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x8004
call fcn.00401e20
mov eax, dword [0x41f014]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push dword [section..data]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0x8000
mov edi, eax
lea eax, [ebp - 0x8004]
push 0
push eax
call fcn.00402f00
add esp, 0xc
lea eax, [ebp - 0x8004]
push eax
push 0x8000
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x401156
push esi
push dword [0x41f004]
lea esi, [ebp - 0x8004]
lea esi, [esi + eax*2]
push 4
push esi
call fcn.00404c80
push dword [section..data]
lea eax, [edi*2 + 2]
push eax
push esi
call fcn.00404c80
push dword [0x41f008]
push 0x10
push esi
call fcn.00404c80
add esp, 0x24
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [0x41f920], eax
pop esi
test eax, eax
jne 0x4010c5
call fcn.00401ae0
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401dcc
mov esp, ebp
pop ebp
ret
push 0xf01ff
push dword [section..data]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [0x41f924], eax
test eax, eax
jne 0x40112c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
jne 0x401123
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x8004]
push eax
mov eax, dword [section..data]
push 1
push 3
push 1
push 0xf01ff
push eax
push eax
push dword [0x41f920]
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov dword [0x41f924], eax
jmp 0x401128
mov eax, dword [0x41f924]
test eax, eax
je 0x40114c
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x40114c
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401dcc
mov esp, ebp
pop ebp
ret
call fcn.00401ae0
call fcn.00401170
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop edi
call fcn.00401dcc
mov esp, ebp
pop ebp
ret

Function at 0x401170
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x41f014]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x41f928]
test eax, eax
je 0x40118f
push eax
call sub.ntdll.dll_NtClose
mov eax, dword [0x41f924]
test eax, eax
je 0x4011bd
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
push dword [0x41f924]
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push dword [0x41f924]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [0x41f920]
test eax, eax
je 0x4011cd
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401dcc
mov esp, ebp
pop ebp
ret
Function at 0x409604
Capabilities:
Parse pe header

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

Function at 0x40a5f4
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x419250
push 0x419248
push str.FlsAlloc
push 0x1f
call fcn.0040a4b3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40a628
push dword [ebp + 8]
mov ecx, esi
call dword [0x417168]
call esi
jmp 0x40a62e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40a672
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x419260
push 0x419258
push str.FlsGetValue
push 0x21
call fcn.0040a4b3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40a6a9
push dword [ebp + 8]
mov ecx, esi
call dword [0x417168]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x40a6b1
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x419268
push 0x419260
push str.FlsSetValue
push 0x22
call fcn.0040a4b3
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40a6eb
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x417168]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x40dcd2
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x40dd6f
push ebx
push esi
call fcn.0040dc9b
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0040dc2f
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40dd1c
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40dd6e
push edi
push eax
call fcn.0040a2d5
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40dd3c
call fcn.0040a29b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40dd6d
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040dc2f
add esp, 0x20
test eax, eax
jne 0x40dd5b
push edi
call fcn.0040a29b
jmp 0x40dd63
push ebx
call fcn.0040a29b
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x401000
Capabilities:
Resolve function by hash
Resolve function by parsing pe exports

Disassembly:
jmp 0x401002
cld
xor edx, edx
mov dl, 0x30
push dword fs:[edx]
pop edx
mov edx, dword [edx + 0xc]
mov edx, dword [edx + 0x14]
mov esi, dword [edx + 0x28]
xor ecx, ecx
mov cl, 0x18
xor edi, edi
xor eax, eax
lodsb al, byte [esi]
cmp al, 0x61
jl 0x401023
sub al, 0x20
ror edi, 0xd
add edi, eax
loop 0x40101a
cmp edi, 0x6a4abc5b
mov ebx, dword [edx + 0x10]
mov edx, dword [edx]
jne 0x401011
mov edx, dword [ebx + 0x3c]
add edx, ebx
push dword [edx + 0x34]
mov edx, dword [edx + 0x78]
add edx, ebx
mov esi, dword [edx + 0x20]
add esi, ebx
xor ecx, ecx
inc ecx
lodsd eax, dword [esi]
add eax, ebx
cmp dword [eax], 0x50746547
jne 0x40104b
cmp dword [eax + 4], 0x41636f72
jne 0x40104b
cmp dword [eax + 8], 0x65726464
jne 0x40104b
dec ecx
mov esi, dword [edx + 0x24]
add esi, ebx
mov cx, word [esi + ecx*2]
mov esi, dword [edx + 0x1c]
add esi, ebx
mov edx, dword [esi + ecx*4]
add edx, ebx
push edx
xor edi, edi
push edi
push 0x41797261
push 0x7262694c
push 0x64616f4c
push esp
push ebx
call edx
push 0x1013233
mov word [esp + 2], di
push 0x72657375
push esp
call eax
push 0x141786f
mov ebx, edi
mov byte [esp + 3], bl
push 0x42656761
push 0x7373654d
push esp
push eax
call dword [esp + 0x2c]
push edi
push 0x2e646c72
push 0x6f57206f
push 0x6c6c6548
mov ebx, esp
push edi
push ebx
push ebx
push edi
call eax
push 0x1737365
mov ebx, edi
mov byte [esp + 3], bl
push 0x636f7250
push 0x74697845
push esp
push dword [esp + 0x48]
call dword [esp + 0x48]
push edi
call eax
Function at 0x10025e20
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
mov ebx, dword [0x10049438]
push esi
mov esi, edx
mov dword [ebp - 4], esi
test ebx, ebx
jne 0x10025e46
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ebx, dword [ebp - 0x30]
lea ecx, [esi*4]
test esi, esi
je 0x10025e6a
or eax, 0xffffffff
xor edx, edx
div esi
cmp eax, 4
jae 0x10025e6a
pop esi
mov eax, 0x8007000e
pop ebx
mov esp, ebp
pop ebp
ret 0x10
lea eax, [ecx + 0x30]
cmp eax, ecx
jb 0x10025e5d
xor edx, edx
div ebx
lea esi, [eax + 1]
cmp esi, eax
jb 0x10025e5d
or eax, 0xffffffff
xor edx, edx
div ebx
mov ecx, esi
imul ecx, ebx
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], ecx
cmp esi, eax
ja 0x10025e5d
push 4
push 0x2000
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, eax
mov dword [ebp - 0xc], ecx
test ecx, ecx
je 0x10025e5d
xor edx, edx
mov eax, 0x30
div ebx
push edi
inc eax
mov edi, eax
imul edi, ebx
cmp eax, dword [ebp - 8]
jbe 0x10025edc
push 0x8000
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop edi
pop esi
mov eax, 0x8007000e
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 4
push 0x1000
push edi
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x10025f0e
push 0x8000
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop edi
pop esi
mov eax, 0x8007000e
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp - 4]
xor edx, edx
mov ecx, dword [ebp - 0x10]
mov dword [esi + 0x24], ebx
mov ebx, eax
mov dword [esi + 0x2c], ecx
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0x20], eax
mov dword [esi + 0x28], edi
mov dword [esi + 0x14], ecx
cmp ebx, 0x60
ja 0x10025f57
mov eax, 0x30
xor ecx, ecx
div ebx
test edx, edx
setne cl
xor edx, edx
add ecx, eax
mov eax, edi
div ebx
mov edx, eax
imul eax, ebx
sub edx, ecx
mov dword [ebp - 4], edx
sub edi, eax
xor ebx, ebx
mov eax, edx
jmp 0x10025f71
lea eax, [edi - 0x30]
div ebx
mov ecx, eax
mov dword [ebp - 4], eax
imul ecx, ebx
sub edi, ecx
mov ecx, 1
sub edi, 0x30
add ebx, 0xffffffd0
mov dword [esi + 0x18], ebx
mov edx, esi
mov dword [esi + 0x1c], edi
sub edx, dword [esi + 0x18]
mov dword [esi + 0x10], edx
test eax, eax
je 0x10025fa7
mov eax, dword [esi + 0x20]
imul eax, ecx
add eax, edx
mov dword [esi], ecx
mov edx, dword [ebp - 4]
mov dword [eax + 8], edx
mov dword [eax], 0
mov dword [eax + 4], 0
mov edx, dword [esi]
mov eax, dword [ebp - 4]
jmp 0x10025faf
mov dword [esi], 0
xor edx, edx
mov dword [esi + 8], ecx
dec ecx
add eax, ecx
mov dword [esi + 4], edx
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0x10]
pop edi
mov dword [eax], esi
mov eax, dword [ebp + 0x14]
mov ecx, dword [esi + 0x10]
pop esi
pop ebx
mov dword [eax], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10
Function at 0x10027ac0
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10042180
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
mov eax, dword [0x10047ca4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
cmp esi, 1
jne 0x10027c1d
push ebx
mov dword [0x10049270], 0x28
mov dword [0x10049298], 0
call fcn.10027800
push ebx
call dword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
cmp dword [0x1004945c], 0
mov dword [ebp - 0x128], 0
jne 0x10027d00
lea eax, [ebp - 0x128]
push eax
push ecx
lea ecx, [ebp - 0x124]
call fcn.10028910
test eax, eax
jne 0x10027b92
push esi
call fcn.10028550
push 0x10049420
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x10049450
push 0
push 0
push 0
push 0
push 0x10002638
push 0
mov dword [0x10049444], esi
push 0x10028d90
mov dword [0x10049448], esi
call dword [sym.imp.ADVAPI32.dll_RegisterTraceGuidsW]
jmp 0x10027d00
cmp dword [0x1004926c], 0
lea eax, [ebp - 0x124]
mov dword [0x100470e0], eax
mov byte [ebp - 0x17], 0
jne 0x10027bb4
mov dword [0x1004926c], 0xfff
cmp dword [0x1004945c], 0
jne 0x10027bd7
mov ecx, 0x23fa
call fcn.10028660
cmp dword [0x10047cac], 0xffffffff
jne 0x10027bd7
push 1
call fcn.10028550
cmp dword [0x10047060], 0x10028360
jne 0x10027c0e
cmp dword [ebp - 0x128], 0
je 0x10027c0e
push 0x10007438
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push dword [0x100470e0]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push 0x10007440
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov dword [0x100470e0], 0x10007464
jmp 0x10027d00
test esi, esi
jne 0x10027d00
cmp dword [ebp + 0x10], esi
je 0x10027c32
lea eax, [esi + 1]
jmp 0x10027d0a
mov dword [ebp - 4], 0
mov edi, dword [0x10049280]
test edi, edi
je 0x10027c7b
cmp dword [edi], 0
je 0x10027c78
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x10027c5f
mov eax, dword [ecx]
push ecx
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x1004a1e8]
call esi
mov dword [edi + 0xc], 0
add edi, 0x18
jmp 0x10027c43
mov esi, dword [ebp + 0xc]
push 0x1004928c
call dword [sym.imp.MSDART.DLL_MPDeleteCriticalSection]
push 0x10049290
call dword [sym.imp.MSDART.DLL_MPDeleteCriticalSection]
push 0x10049294
call dword [sym.imp.MSDART.DLL_MPDeleteCriticalSection]
mov eax, dword [0x10049288]
add esp, 0xc
test eax, eax
je 0x10027caf
push eax
call dword [sym.imp.KERNEL32.dll_HeapDestroy]
call fcn.10028600
mov ecx, dword [0x10049450]
mov eax, ecx
mov edx, dword [0x10049454]
or eax, edx
je 0x10027ce2
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_UnregisterTraceGuids]
mov dword [0x10049450], 0
mov dword [0x10049454], 0
cmp dword [0x10049444], 0
je 0x10027d00
push 0x10049420
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
mov dword [0x10049444], 0
push ecx
mov edx, esi
mov ecx, ebx
call fcn.10027ea0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100401a0
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10027df0
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
cmp dword [0x10047ccc], 2
jne 0x10027e33
push 0x10049478
push 1
call dword [sym.imp.ole32.dll_CoGetMalloc]
test eax, eax
js 0x10027e8c
cmp dword [0x10049438], 0
jne 0x10027e2d
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x24]
mov dword [0x10049438], eax
dec dword [0x10047ccc]
push esi
push 0x14
push 0
call dword [sym.imp.MSDART.DLL_MpGetHeapHandle]
push eax
call dword [sym.imp.MSDART.DLL_MpHeapAlloc]
mov esi, eax
add esp, 0xc
test esi, esi
je 0x10027e76
push esi
call dword [sym.imp.MSDART.DLL_MPInitializeCriticalSection]
add esp, 4
mov dword [esi + 4], 0xffffffff
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
jmp 0x10027e78
xor esi, esi
mov dword [0x10049468], esi
test esi, esi
pop esi
je 0x10027e8c
mov eax, 1
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x100288b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x10]
mov edi, dword [esi + 0xc]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
push 0
push 2
mov dword [esi + 0x14], 0
mov byte [edi], 0
push dword [esi + 8]
push 0
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegGetValueA]
mov edx, eax
test edx, edx
jne 0x100288fa
cmp dword [ebp - 4], 1
jbe 0x100288fa
xor ecx, ecx
cmp byte [edi], 0x3a
setne cl
mov dword [esi + 0x14], ecx
xor eax, eax
test edx, edx
pop edi
sete al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10028cb0
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x10047ca4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x114]
mov byte [ebp - 0x114], 0
push eax
push 0
push 2
push edx
push 0
push ecx
mov dword [esi], 0
mov dword [ebp - 0x228], 0x10e
call dword [sym.imp.ADVAPI32.dll_RegGetValueA]
test eax, eax
je 0x10028d13
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100401a0
mov esp, ebp
pop ebp
ret 4
push 0x10e
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x10028d6b
cmp eax, 0x10e
jae 0x10028d6b
mov edx, 0x10e
lea ecx, [ebp - 0x224]
push 0x100073d0
sub edx, eax
add ecx, eax
call fcn.100297b0
test eax, eax
js 0x10028d6b
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.msvcrt.dll__stricmp]
add esp, 8
neg eax
sbb eax, eax
inc eax
mov dword [esi], eax
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop esi
call fcn.100401a0
mov esp, ebp
pop ebp
ret 4

Function at 0x10028f60
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x10047ca4]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x10049420
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x10049448], 0
je 0x10029062
mov ecx, dword [0x10049450]
mov eax, ecx
mov edx, dword [0x10049454]
or eax, edx
je 0x10028fbb
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_UnregisterTraceGuids]
mov dword [0x10049450], 0
mov dword [0x10049454], 0
push 0x10e
lea eax, [ebp - 0x114]
mov dword [0x1004926c], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x10029058
cmp eax, 0x10e
jae 0x10029058
mov edx, 0x10e
lea ecx, [ebp - 0x114]
push 0x100073d0
sub edx, eax
add ecx, eax
call fcn.100297b0
test eax, eax
js 0x10029058
mov ecx, dword [0x1004926c]
mov eax, ecx
not eax
mov dword [0x10049460], 1
and eax, 0xfff
xor ecx, eax
cmp dword [0x1004945c], 0
lea eax, [ebp - 0x114]
mov dword [0x1004926c], ecx
mov dword [0x100470e0], eax
jne 0x1002904e
mov ecx, 0x23fa
call fcn.10028660
cmp dword [0x10047cac], 0xffffffff
jne 0x1002904e
push 1
call fcn.10028550
mov dword [0x100470e0], 0x10007464
mov dword [0x10049448], 0
push 0x10049420
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100401a0
mov esp, ebp
pop ebp
ret