joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100014b5
Capabilities:
Check os version
Delete file
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x244]
sub esp, 0x2c4
mov eax, dword [0x1003a0a0]
xor eax, ebp
mov dword [ebp + 0x240], eax
push ebx
xor ebx, ebx
push esi
push edi
cmp byte [0x1004d818], bl
jne 0x1000165a
mov edi, 0x104
push edi
lea eax, [ebp + 0x31]
push ebx
push eax
mov byte [ebp + 0x30], bl
call fcn.10016180
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
add esp, 0xc
push edi
lea eax, [ebp + 0x30]
push eax
push str._ProgramFiles_
call esi
push edi
lea eax, [ebp + 0x139]
push ebx
push eax
mov byte [ebp + 0x138], bl
call fcn.10016180
lea eax, [ebp + 0x30]
push eax
lea eax, [ebp + 0x138]
push str._scheck.txt
push eax
call fcn.10016a05
add esp, 0x18
lea eax, [ebp + 0x138]
push eax
mov dword [ebp - 0x78], ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp + 0x138]
push 0x1002f064
push eax
call fcn.10016fa6
pop ecx
pop ecx
cmp eax, ebx
je 0x1000156a
push eax
call fcn.10017034
pop ecx
mov dword [ebp - 0x78], 1
lea eax, [ebp + 0x138]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x94
lea eax, [ebp - 0x74]
push ebx
push eax
call fcn.10016180
add esp, 0xc
lea eax, [ebp - 0x74]
push eax
mov dword [ebp - 0x74], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x10001693
cmp dword [ebp - 0x78], ebx
jne 0x10001684
cmp dword [ebp - 0x70], 6
jb 0x10001684
mov eax, 0x1780
mov word [ebp + 0x24], ax
mov eax, 0x4ff6
push str.shell32.dll
mov dword [ebp - 0x78], ebx
mov dword [ebp + 0x20], 0xa520a1a4
mov word [ebp + 0x26], ax
mov byte [ebp + 0x28], 0xbd
mov byte [ebp + 0x29], 0x18
mov byte [ebp + 0x2a], 0x16
mov byte [ebp + 0x2b], 0x73
mov byte [ebp + 0x2c], 0x43
mov byte [ebp + 0x2d], 0xc5
mov byte [ebp + 0x2e], 0xaf
mov byte [ebp + 0x2f], 0x16
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x80], eax
cmp eax, ebx
je 0x10001677
push str.SHGetKnownFolderPath
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x10001651
lea ecx, [ebp - 0x78]
push ecx
push ebx
push ebx
lea ecx, [ebp + 0x20]
push ecx
call eax
test eax, eax
jl 0x10001651
mov ecx, dword [ebp - 0x78]
lea esi, [ebp - 0x7c]
call section..text
test eax, eax
jl 0x10001648
push ebx
push ebx
push edi
push 0x1004d818
push dword [ebp - 0x7c]
push dword [ebp - 0x78]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push dword [ebp - 0x78]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push dword [ebp - 0x80]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 0x1004d818
mov ecx, dword [ebp + 0x240]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10016165
add ebp, 0x244
leave
ret
push edi
push 0x1004d818
push str._APPDATA_
jmp 0x1000168f
push edi
push 0x1004d818
push str._ProgramFiles_
call esi
jmp 0x1000165a
mov eax, 0x1002f08c
jmp 0x1000165f
Function at 0x1000169a
Capabilities:
Set registry value

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
push 0x2001f
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
xor esi, esi
mov ebx, SysReAllocString
push ebx
lea eax, [esp + 0x20]
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
call fcn.100017b0
mov ebp, dword [sym.imp.ADVAPI32.dll_RegFlushKey]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x10001714
push 4
lea eax, [esp + 0x14]
push eax
push 4
push esi
push str.MaxConnectionsPer1_0Server
push dword [esp + 0x28]
mov dword [esp + 0x28], 2
call edi
push 4
lea eax, [esp + 0x14]
push eax
push 4
push esi
push str.MaxConnectionsPerServer
push dword [esp + 0x28]
call edi
lea esi, [esp + 0x14]
call fcn.100017e3
push ebx
call ebp
xor esi, esi
push 0x2001f
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
mov ebx, reloc.OLEAUT32.dll_SysReAllocString
push ebx
lea eax, [esp + 0x20]
call fcn.100017b0
test eax, eax
jne 0x1000176f
push 4
lea eax, [esp + 0x14]
push eax
push 4
push esi
push str.MaxConnectionsPer1_0Server
push dword [esp + 0x28]
mov dword [esp + 0x28], 2
call edi
push 4
lea eax, [esp + 0x14]
push eax
push 4
push esi
push str.MaxConnectionsPerServer
push dword [esp + 0x28]
call edi
lea esi, [esp + 0x14]
call fcn.100017e3
push ebx
call ebp
lea esi, [esp + 0x14]
call fcn.100017e3
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret

Function at 0x1000341a
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push edi
mov edi, edx
test ecx, ecx
jne 0x10003425
xor eax, eax
pop edi
ret
push esi
not eax
mov edx, 0xff
cmp edi, 8
jb 0x100034d7
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x10030608]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x10030608]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x10030608]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x10030608]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x10030608]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x10030608]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x10030608]
inc ecx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x10030608]
inc ecx
sub edi, 8
dec esi
jne 0x1000343c
pop ebx
test edi, edi
je 0x100034f0
movzx esi, byte [ecx]
xor esi, eax
and esi, edx
shr eax, 8
xor eax, dword [esi*4 + 0x10030608]
inc ecx
dec edi
jne 0x100034db
pop esi
not eax
pop edi
ret
Function at 0x100034f5
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov eax, dword [ecx]
movsx edx, dl
xor edx, eax
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edx*4 + 0x10030608]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x10030608]
pop esi
mov dword [ecx + 8], eax
ret

Function at 0x10003bf4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0xc]
imul edi, dword [ebp + 0x10]
cmp byte [esi], 0
je 0x10003c24
push 0
lea eax, [ebp + 0x10]
push eax
push edi
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10003c1f
mov byte [esi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x10003c4c
mov ecx, dword [esi + 0x1c]
mov eax, dword [esi + 0x18]
lea edx, [ecx + edi]
cmp edx, eax
jbe 0x10003c35
sub eax, ecx
mov edi, eax
mov eax, dword [esi + 0x14]
push edi
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.100166a0
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop ebp
ret
Function at 0x100048b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
cmp dword [esi], 0
push edi
jne 0x10004924
cmp dword [esi + 4], 0xffffffff
jne 0x10004924
lea edi, [esi + 0x140]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push edi
call fcn.10016200
mov al, byte [eax + esi + 0x13f]
pop ecx
cmp al, 0x5c
je 0x100048f4
cmp al, 0x2f
je 0x100048f4
push 0x1002efec
push edi
call fcn.10016ab0
pop ecx
pop ecx
lea eax, [ebp + 8]
push eax
push dword [ebp + 8]
call fcn.10003aea
pop ecx
pop ecx
test eax, eax
jne 0x1000490b
mov eax, dword [ebp + 8]
jmp 0x10004929
push eax
call fcn.10003e6d
mov dword [esi], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
pop ecx
add eax, 0x200
jmp 0x10004929
mov eax, 0x1000000
pop edi
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1003a0a0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
test ebx, ebx
je 0x10004e7f
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x10004e7f
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov al, byte [esi]
test al, al
je 0x10004f16
push edi
mov edi, esi
mov ecx, esi
cmp al, 0x2f
je 0x10004e96
cmp al, 0x5c
jne 0x10004e98
mov edi, ecx
inc ecx
mov al, byte [ecx]
test al, al
jne 0x10004e8e
cmp edi, esi
je 0x10004ecb
sub edi, esi
push edi
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.100166a0
lea eax, [ebp - 0x20c]
push eax
push ebx
mov byte [ebp + edi - 0x20c], 0
call fcn.10004e4b
add esp, 0x14
mov byte [ebp - 0x108], 0
pop edi
test ebx, ebx
je 0x10004ee6
lea eax, [ebp - 0x108]
push ebx
push eax
call fcn.10016aa0
pop ecx
pop ecx
lea eax, [ebp - 0x108]
push esi
push eax
call fcn.10016ab0
pop ecx
pop ecx
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x10004f16
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.10016165
leave
ret
Function at 0x10006895
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x1003a0a0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x94
lea eax, [ebp - 0x98]
push 0
push eax
call fcn.10016180
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x94], 6
mov ecx, dword [ebp - 4]
sbb eax, eax
inc eax
mov dword [edi + 0x10d0], eax
xor ecx, ebp
xor eax, eax
call fcn.10016165
leave
ret
Function at 0x10007494
Capabilities:
Delete file

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x1003a0a0]
xor eax, ebp
mov dword [ebp + 0x94], eax
mov eax, dword [ebp + 0xac]
mov dword [ebp - 0x78], eax
mov eax, dword [ebp + 0xb0]
push ebx
mov ebx, dword [ebp + 0xa8]
push esi
mov esi, dword [ebp + 0xa0]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0xb4]
push edi
mov edi, dword [ebp + 0xa4]
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0xb8]
push 0x103
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x6f]
push 0
push eax
mov byte [ebp - 0x70], 0
call fcn.10016180
lea eax, [ebp - 0x70]
call fcn.10001247
push str.local.inf
lea eax, [ebp - 0x70]
push 0x104
push eax
call fcn.10018f68
add esp, 0x18
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 0x7c]
mov eax, dword [esi]
push dword [ebp - 0x80]
push dword [ebp - 0x74]
push dword [ebp - 0x78]
push ebx
push edi
push esi
call dword [eax + 0x1c]
mov ecx, dword [ebp + 0x94]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10016165
add ebp, 0x98
leave
ret 0x1c
Function at 0x10008019
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ecx, ecx
cmp edi, ecx
je 0x10007f12
add edi, 0xfffffff4
jmp 0x10007f14
xor edi, edi
mov eax, dword [edi + 0x44]
cmp eax, ecx
jne 0x10007f30
cmp dword [ebp + 0x14], ecx
je 0x10007f81
xor al, al
test al, al
jne 0x10007f81
mov eax, 0x8000ffff
jmp case.default.0x10007fb2
mov ebx, dword [ebp + 0x14]
cmp ebx, ecx
je 0x10007f20
lea edx, [esp + 0x10]
push edx
mov esi, 0x1003200c
push esi
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
mov ecx, dword [eax]
push eax
call dword [ecx]
mov eax, dword [ebx]
lea ecx, [esp + 0x14]
push ecx
push esi
push ebx
call dword [eax]
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x10], eax
sete bl
test eax, eax
je 0x10007f6f
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10007f7d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov al, bl
jmp 0x10007f22
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x10007fa1
push dword [ebp + 0x1c]
add edi, 0xc
push dword [ebp + 0x20]
push edi
call fcn.10008a83
mov eax, 0x40180
jmp case.default.0x10007fb2
add ecx, 7
mov eax, 0x80004001
cmp ecx, 7
ja case.default.0x10007fb2
jmp dword [ecx*4 + 0x10008058]
push dword [ebp + 0x1c]
add edi, 0xc
push dword [ebp + 0x20]
push edi
call fcn.10008a83
jmp case.default.0x10007fb2
add edi, 0xc
je 0x10007fd7
lea eax, [edi - 0xc]
jmp 0x10007fd9
xor eax, eax
push dword [ebp + 0x20]
lea ecx, [eax + 0x34]
push 0xffffffffffffffff
call fcn.10005a70
test eax, eax
jl case.default.0x10007fb2
xor eax, eax
jmp case.default.0x10007fb2
push dword [ebp + 0x20]
lea eax, [edi + 0xc]
call fcn.10008b01
jmp case.default.0x10007fb2
add edi, 0xc
je 0x10008005
lea ecx, [edi - 0xc]
jmp 0x10008007
xor ecx, ecx
xor eax, eax
test byte [ecx + 0x78], 8
jne case.default.0x10007fb2
push dword [ebp + 0x20]
add ecx, 0x34
push 0xfffffffffffffffc
jmp 0x10007fe1
add edi, 0xc
je 0x10008023
lea esi, [edi - 0xc]
jmp 0x10008025
xor esi, esi
lea eax, [esi + 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov esi, dword [esi + 0x80]
test esi, esi
je case.0x10007fb2.6
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
jmp case.0x10007fb2.6
push dword [ebp + 0x1c]
add edi, 0x34
call fcn.100058cb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x10008208
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x1c
test eax, eax
je 0x1000821a
add eax, 0xfffffff0
jmp 0x1000821c
xor eax, eax
mov eax, dword [eax + 0x44]
and dword [ebp + 8], 0
push esi
mov esi, dword [ebp + 0xc]
push edi
push 7
pop ecx
lea edi, [ebp - 0x1c]
rep movsd dword es:[edi], dword [esi]
test eax, eax
jne 0x1000823e
and dword [ebp + 8], eax
mov eax, 0x80004005
jmp 0x1000824c
mov ecx, dword [eax]
lea edx, [ebp + 8]
push edx
push 0x10030cb4
push eax
call dword [ecx]
test eax, eax
jl 0x10008292
cmp dword [ebp + 8], 0
je 0x1000828f
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x10
xor edi, edi
call esi
test ax, ax
jge 0x10008268
inc edi
push 0x11
call esi
test ax, ax
jge 0x10008273
inc edi
inc edi
push 0x12
call esi
test ax, ax
jge 0x1000827f
add edi, 4
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push edi
lea edx, [ebp - 0x1c]
push edx
push eax
call dword [ecx + 0x1c]
jmp 0x10008292
xor eax, eax
inc eax
xor ecx, ecx
test eax, eax
mov eax, dword [ebp + 8]
setne cl
mov esi, ecx
test eax, eax
je 0x100082a8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop edi
mov eax, esi
pop esi
leave
ret 8

Function at 0x1000a3ac
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push ecx
push ebx
push ebp
push edi
call fcn.1000d1d4
mov edi, dword [sym.imp.KERNEL32.dll_FindResourceA]
or dword [esp + 0x10], 0xffffffff
push 5
mov ebx, 0xca
push ebx
push esi
call edi
mov ebp, eax
test ebp, ebp
je 0x1000a46c
push pe_nt_image_headers32
push ebx
push esi
call edi
mov edi, dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x1000a3f6
push eax
push esi
call edi
push eax
call ebx
and dword [esp + 0xc], 0
push ebp
push esi
call edi
test eax, eax
je 0x1000a451
push eax
call ebx
mov edi, eax
test edi, edi
je 0x1000a451
call fcn.1000a259
push 0
push 0x1000918c
push dword [esp + 0x20]
mov ebx, eax
push ebx
push esi
call dword [sym.imp.USER32.dll_DialogBoxIndirectParamA]
mov dword [esp + 0x10], eax
test eax, eax
je 0x1000a433
cmp eax, 0xffffffff
jne 0x1000a43d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0xc], eax
cmp ebx, edi
je 0x1000a45b
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x1000a45b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0xc], eax
cmp dword [esp + 0xc], 0
je 0x1000a46c
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x1000b394
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x1003a0a0]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
or ecx, 0x2001f
push ecx
push eax
push dword [edi]
mov dword [ebp - 0x11c], eax
xor esi, esi
lea eax, [ebp - 0x114]
mov dword [ebp - 0x114], esi
mov dword [ebp - 0x110], esi
call fcn.100017b0
mov ebx, eax
cmp ebx, esi
je 0x1000b3ff
lea esi, [ebp - 0x114]
call fcn.100017e3
mov eax, ebx
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10016165
leave
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x1000b41d
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0x114]
call fcn.1000b394
cmp eax, esi
jne 0x1000b465
lea eax, [ebp - 0x124]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x10c]
push eax
push esi
push dword [ebp - 0x114]
mov dword [ebp - 0x118], 0x100
call ebx
test eax, eax
je 0x1000b407
lea esi, [ebp - 0x114]
call fcn.100017e3
push dword [ebp - 0x11c]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
lea esi, [ebp - 0x114]
mov edi, eax
call fcn.100017e3
mov eax, edi
jmp 0x1000b3ee
Function at 0x1000c604
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0xb8
mov eax, dword [0x1003a0a0]
xor eax, ebp
mov dword [ebp + 0x70], eax
mov eax, dword [ebp + 0x7c]
push esi
mov esi, dword [0x1004ccd4]
push pe_nt_image_headers32
push 0xca
push esi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], 1
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x1000c737
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x1000c737
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x1000c737
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendDlgItemMessageA]
push edi
movzx eax, word [esi]
xor ecx, ecx
cmp cx, ax
je 0x1000c735
inc esi
inc esi
movzx edi, ax
movzx eax, word [esi]
inc esi
inc esi
mov ecx, dword [esi]
mov dword [ebp - 0x20], ecx
mov ecx, 0x403
add esi, 4
cmp cx, ax
jne 0x1000c6d4
push esi
lea eax, [ebp - 0x14]
call fcn.1000c5c2
push dword [ebp - 0x14]
movzx eax, di
push 0
push 0x143
push eax
mov eax, dword [ebp - 0x1c]
push dword [eax + 4]
call ebx
cmp eax, 0xffffffff
jne 0x1000c6c1
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x10]
cmp dword [ebp - 0x14], eax
je 0x1000c728
push dword [ebp - 0x14]
call fcn.1001881d
pop ecx
jmp 0x1000c728
mov ecx, 0x1234
cmp cx, ax
jne 0x1000c728
or dword [ebp - 0x40], 0xffffffff
push esi
lea eax, [ebp - 0x14]
mov dword [ebp - 0x44], 1
call fcn.1000c5c2
mov eax, dword [eax]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x10]
cmp dword [ebp - 0x14], eax
je 0x1000c708
push dword [ebp - 0x14]
call fcn.1001881d
pop ecx
lea eax, [ebp - 0x44]
push eax
push 0
movzx eax, di
push 0x401
push eax
mov eax, dword [ebp - 0x1c]
push dword [eax + 4]
call ebx
cmp eax, 0xffffffff
jne 0x1000c728
and dword [ebp - 0x18], 0
add esi, dword [ebp - 0x20]
cmp dword [ebp - 0x18], 0
jne 0x1000c66f
pop edi
pop ebx
mov ecx, dword [ebp + 0x70]
mov eax, dword [ebp - 0x18]
xor ecx, ebp
pop esi
call fcn.10016165
add ebp, 0x74
leave
ret 4
Function at 0x100146b4
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
mov al, byte [0x1004d934]
sub esp, 0x24
mov dword [esi], vtable.CXLockBase.0
mov dword [esi + 4], 0x3e8
test al, al
jne 0x100146ec
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, 0xff
cmp dword [ebp - 0x10], eax
ja 0x100146e7
mov al, byte [ebp - 0x10]
mov byte [0x1004d934], al
dec al
movzx eax, al
neg eax
sbb eax, eax
and dword [esi + 8], 0
and dword [esi + 0xc], 0
and eax, 0x3e8
and dword [esi + 0x14], 0
mov dword [esi + 4], eax
mov dword [esi], vtable.CXLockFast.0
mov dword [esi + 0x10], 0
mov eax, esi
leave
ret

Function at 0x10014a57
Capabilities:
Print debug messages

Disassembly:
push 0xc
mov eax, 0x1002bde1
call fcn.10019bee
cmp dword [ebp + 8], 0
je 0x10014bb3
lea esi, [ebp - 0x14]
call fcn.100138c0
and dword [ebp - 4], 0
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
mov ecx, esi
call fcn.10013afe
lea esi, [ebp - 0x18]
call fcn.100138c0
mov eax, esi
push eax
mov byte [ebp - 4], 1
call fcn.10013e48
lea esi, [ebp - 0x10]
call fcn.100138c0
lea eax, [ebx + 0x4020]
mov byte [ebp - 4], 2
cmp byte [eax], 0
mov esi, 0x1002f100
je 0x10014ae6
mov edx, dword [ebp - 0x14]
test edx, edx
jne 0x10014ac0
mov edx, esi
mov ecx, dword [ebp - 0x18]
test ecx, ecx
jne 0x10014ac9
mov ecx, esi
push edx
push eax
lea eax, [ebx + 0x101d]
push eax
push ecx
lea eax, [ebp - 0x10]
push str.__s____s____s__:__s_r_n
push eax
call fcn.10013ad5
add esp, 0x18
jmp 0x10014b12
mov ecx, dword [ebp - 0x14]
test ecx, ecx
jne 0x10014aef
mov ecx, esi
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x10014af8
mov eax, esi
push ecx
lea ecx, [ebx + 0x101d]
push ecx
push eax
lea eax, [ebp - 0x10]
push str.__s____s__:__s_r_n
push eax
call fcn.10013ad5
add esp, 0x14
mov ecx, ebx
call fcn.10014de0
cmp dword [ebx + 0x603c], 0xffffffff
je 0x10014b43
mov edi, dword [ebp - 0x10]
test edi, edi
jne 0x10014b2b
mov edi, esi
lea eax, [ebp - 0x10]
call fcn.10013a9a
push eax
push edi
push dword [ebx + 0x603c]
call fcn.1001ad29
add esp, 0xc
cmp dword [ebx + 0x18], 0
je 0x10014b80
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x10014b52
mov eax, esi
push eax
push dword [ebx + 0x6034]
lea eax, [ebp - 0x10]
push dword [ebx + 0x6038]
push str._s__d__:__s
push eax
call fcn.10013ad5
mov eax, dword [ebp - 0x10]
add esp, 0x14
test eax, eax
jne 0x10014b79
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebx + 0x6040]
test eax, eax
je 0x10014b97
cmp dword [ebp - 0x14], 0
je 0x10014b93
mov esi, dword [ebp - 0x14]
push esi
call eax
pop ecx
lea edi, [ebp - 0x10]
call fcn.10013a62
lea edi, [ebp - 0x18]
call fcn.10013a62
or dword [ebp - 4], 0xffffffff
lea edi, [ebp - 0x14]
call fcn.10013a62
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 8]
call fcn.10019cc6
ret
Function at 0x1001532c
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x1003a0a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, str._NULL_
test eax, eax
jne 0x1001534d
mov eax, ecx
test edx, edx
je 0x10015353
mov ecx, edx
push esi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
push ecx
push dword [ebp + 0xc]
lea eax, [ebp - 0x408]
push str.d:ProjectLIBCXLib_VS2008ProjectCXLibIncludeBase_CXLockFast.h
push str._s__d__:___DEAD__s_:___s__d__dwLockedThreadID_d__dwThreadID_d__CXLock_X__n
push 0x400
push eax
call fcn.1001b2ef
add esp, 0x2c
lea eax, [ebp - 0x408]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10016165
leave
ret 0x10

Function at 0x10015ce6
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x1004ccc0], 0
push esi
jne 0x10015c59
call fcn.10015b7f
test eax, eax
je 0x10015c9c
mov eax, dword [0x1004ccc0]
cmp eax, 1
jne 0x10015c7a
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x10015c9c
pop esi
ret
push eax
call dword [0x1004ccc8]
test eax, eax
jne 0x10015ce4
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x10015ca0
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x1004ccc0]
call dword [0x1004ccc8]
mov edi, eax
test edi, edi
je 0x10015cc5
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x10015ce1
mov edi, esi
add esi, 0xff0
push edi
push dword [0x1004ccc0]
call dword [0x1004ccc4]
add edi, 0x10
cmp edi, esi
jb 0x10015ccd
mov eax, edi
pop edi
pop esi
ret
jmp 0x10015c46

Function at 0x10016165
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1003a0a0]
jne 0x1001616f
repz ret
jmp fcn.1001b39e