joyce8/EMBER2024-capa huggingface dataset:
Function at 0x109c8cd0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, 0x10957590
sub eax, 0x109565f0
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
push ecx
push 0x109565f0
call fcn.109d7ea0
add esp, 8
mov dword [ebp - 0x14], eax
mov edx, dword [ebp + 8]
mov dword [ebp - 0x10], edx
mov dword [ebp - 8], 0
call dword [0x10b3d494]
and eax, 0xffff
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x14], 0
je 0x109c8d33
push 0xffffffffffffffff
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
lea edx, [ebp - 0x10]
push edx
push 0x109c8a10
call fcn.109dc430
add esp, 0x14
mov eax, dword [ebp - 0x14]
push eax
push 0x10957590
push 0x109565f0
call fcn.109c8bf0
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x14]
push eax
call fcn.109c8b60
add esp, 0xc
mov ecx, dword [ebp + 8]
mov dword [ecx*4 + 0x10b417a0], eax
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [0x10b38c8c]
push ecx
call fcn.109c8bb0
add esp, 0xc
mov dword [0x10b38c8c], eax
cmp dword [ebp - 8], 0
jne 0x109c8dae
cmp dword [0x10a68af0], 0
je 0x109c8da1
push 0x10a87b80
push 4
call fcn.109dc750
add esp, 8
xor edx, edx
test edx, edx
jne 0x109c8d89
push 0
call fcn.10a29a52
cmp dword [ebp - 0x14], 0
je 0x109c8dc8
lea eax, [ebp - 0x18]
push eax
push 0x10
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call dword [0x10b46ce0]
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret
Function at 0x109d5d40
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
call fcn.109de2e0
mov eax, dword [0x10b3c3ae]
and eax, 0x2000000
test eax, eax
je 0x109d5d5b
call fcn.109dc710
cmp dword [0x10a87aa8], 0
je 0x109d5d7c
cmp dword [0x10a87aac], 0
je 0x109d5d7c
call fcn.109c9170
mov dword [0x10a87aac], 0
cmp dword [0x10b27530], 0
je 0x109d5d97
push 0
call dword [0x10b3ae6c]
mov dword [0x10b27530], 0
cmp dword [0x10b27534], 0
je 0x109d5dca
cmp dword [0x10b27538], 0
je 0x109d5dc0
mov ecx, dword [0x10b27538]
push ecx
call dword [0x10b383c0]
mov dword [0x10b27538], 0
mov dword [0x10b27534], 0
cmp dword [0x10b27514], 0
je 0x109d5dec
mov edx, dword [0x10b27514]
push edx
call dword [0x10b38b44]
mov eax, dword [0x10b27514]
push eax
call dword [0x10b38334]
cmp dword [0x10b274f8], 0
je 0x109d5e02
mov ecx, dword [0x10b274f8]
push ecx
call dword [0x10b38334]
cmp dword [0x10b4058c], 0
je 0x109d5e18
mov edx, dword [0x10b4058c]
push edx
call dword [0x10b38334]
cmp dword [0x10b27708], 0
je 0x109d5e2d
mov eax, dword [0x10b27708]
push eax
call dword [0x10b38334]
cmp dword [0x10b2767c], 0
je 0x109d5e43
mov ecx, dword [0x10b2767c]
push ecx
call dword [0x10b383c0]
cmp dword [0x10b27510], 0
je 0x109d5e59
mov edx, dword [0x10b27510]
push edx
call dword [0x10b38334]
cmp dword [0x10b274fc], 0
je 0x109d5e6e
mov eax, dword [0x10b274fc]
push eax
call dword [0x10b38334]
cmp dword [0x10b27500], 0
je 0x109d5e84
mov ecx, dword [0x10b27500]
push ecx
call dword [0x10b38334]
cmp dword [0x10b27504], 0
je 0x109d5e9a
mov edx, dword [0x10b27504]
push edx
call dword [0x10b38334]
cmp dword [0x10b27508], 0
je 0x109d5eaf
mov eax, dword [0x10b27508]
push eax
call dword [0x10b38334]
cmp dword [0x10b27514], 0
je 0x109d5ec5
mov ecx, dword [0x10b27514]
push ecx
call dword [0x10b38334]
cmp dword [0x10a68af0], 0
je 0x109d5edd
push 0x10a95100
push 3
call fcn.109dc750
add esp, 8
xor edx, edx
test edx, edx
jne 0x109d5ec5
cmp dword [0x10a68af0], 0
je 0x109d5efb
push 0x10b2778c
push 4
call fcn.109dc750
add esp, 8
xor eax, eax
test eax, eax
jne 0x109d5ee3
mov ecx, dword [ebp + 8]
push ecx
call fcn.10a29a52
pop ebp
ret
Function at 0x109e06d0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov dword [eax], 0x67452301
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], 0xefcdab89
mov edx, dword [ebp + 8]
mov dword [edx + 8], 0x98badcfe
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], 0x10325476
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp + 8]
mov dword [edx + 0x14], 0
pop ebp
ret

Function at 0x109e5150
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x10b0d0a0
push 0x80000002
call dword [0x10b46ed4]
cmp dword [ebp - 4], 0
je 0x109e522d
mov dword [ebp - 8], 0
mov ecx, 1
test ecx, ecx
je 0x109e5223
mov dword [ebp - 0x214], 0x100
mov dword [ebp - 0xc], 0x100
push 0x100
push 0
lea edx, [ebp - 0x210]
push edx
call fcn.10a29e70
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x210]
push ecx
push 0
push 0
lea edx, [ebp - 0x214]
push edx
lea eax, [ebp - 0x110]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [0x10b46ec8]
test eax, eax
je 0x109e51ea
jmp 0x109e5223
push 0
lea eax, [ebp - 0x110]
push eax
call fcn.109e7270
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x109e5215
lea ecx, [ebp - 0x110]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [0x10b46ecc]
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
jmp 0x109e5185
mov ecx, dword [ebp - 4]
push ecx
call dword [0x10b46ed0]
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x109ecec0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0xc], 0xffffffff
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 0
jmp 0x109ecef4
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp + 8]
jae 0x109ecf67
cmp dword [ebp + 0x10], 0
je 0x109ecf31
cmp dword [ebp - 0x14], 1
jbe 0x109ecf31
mov edx, dword [ebp + 0xc]
add edx, dword [ebp - 0x14]
xor eax, eax
mov al, byte [edx - 2]
cmp eax, 0xff
jne 0x109ecf31
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x14]
xor edx, edx
mov dl, byte [ecx - 1]
cmp edx, 0x15
jne 0x109ecf31
mov dword [ebp - 0x10], 4
cmp dword [ebp - 0x10], 0
ja 0x109ecf5c
mov eax, dword [ebp - 0xc]
shr eax, 8
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x14]
xor edx, edx
mov dl, byte [ecx]
xor edx, dword [ebp - 0xc]
and edx, 0xff
xor eax, dword [edx*4 + 0x10b0e080]
mov dword [ebp - 0xc], eax
jmp 0x109ecf65
mov eax, dword [ebp - 0x10]
sub eax, 1
mov dword [ebp - 0x10], eax
jmp 0x109eceeb
mov ecx, dword [ebp - 0xc]
xor ecx, 0xffffffff
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x109ee8b0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0xc]
test edx, edx
je 0x109ee8e7
push ebx
push esi
lea esi, [edx]
mov bl, byte [ecx]
mov edx, eax
xor bl, al
and edx, 0x1ff
mov byte [ecx], bl
xor ebx, ebx
mov bl, ah
mov ax, word [edx*2 + 0x10b42800]
inc ecx
or ax, bx
dec esi
jne 0x109ee8c4
pop esi
pop ebx
ret

Function at 0x109eea40
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
mov ecx, 0x10b41e20
add eax, 0xc
push esi
push edi
sub ecx, eax
mov edx, 0x249
mov esi, dword [ecx + eax]
mov edi, dword [eax]
xor edi, esi
mov dword [eax], edi
add eax, 4
dec edx
jne 0x109eea55
pop edi
pop esi
ret
Function at 0x109f4932
Capabilities:
Encode data using xor

Disassembly:
push 0x3942
jle 0x109f494b
add dword [esp], 0x109a52a6
add dword [esp], 0x4bdc3
jmp 0x109f4943
ret
sub esp, 0x20
mov dword [esp + 0x1c], 0x7daa969a
mov dword [esp + 0x18], 0x20030
mov dword [esp + 0x14], ebp
mov ebp, 0x109f4918
mov dword [esp + 0x10], ebx
mov dword [esp + 0x1c], ebp
xor ebp, ebp
mov ebx, dword [esp + 0x1c]
mov ebx, dword [ebx]
xor ebp, ebx
add dword [esp + 0x1c], 4
dec word [esp + 0x18]
jne 0x109f4971
cmp ebp, 0x5c0
je 0x109f498e
int3
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
add esp, 0x20
add dword [esp], 0x109c0ee8
add dword [esp], 0x302c3
jmp 0x109f49a3
ret

Function at 0x10a0ee41
Capabilities:
Encode data using xor

Disassembly:
add dword [esp], 0x81
push dword [esp]
sub dword [esp], 0x7e
push dword [esp]
xchg dword [esp], edx
mov edx, dword [edx]
sub esp, 0x20
mov dword [esp + 0x1c], 0x6f843133
mov dword [esp + 0x18], 0x2006b
mov dword [esp + 0x14], ecx
mov ecx, 0x10a0ee10
mov dword [esp + 0x10], ebx
mov dword [esp + 0x1c], ecx
xor ecx, ecx

Function at 0x10a23b80
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp + 8]
add eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.10a2b08b
add esp, 4
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax - 1]
mov dword [ebp - 0x14], edx
cmp dword [ebp - 4], 0
jne 0x10a23bc1
xor eax, eax
jmp 0x10a23c77
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.10a29b30
add esp, 0xc
mov eax, dword [ebp - 4]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [ebp - 0x14]
jae 0x10a23c4a
mov edx, dword [ebp - 0x10]
push edx
call fcn.10a295a0
add esp, 4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jge 0x10a23bfa
jmp 0x10a23c4a
mov eax, dword [ebp - 0x18]
sub eax, 1
test eax, eax
jle 0x10a23c1c
mov ecx, dword [ebp - 0x18]
sub ecx, 1
push ecx
push 0
mov edx, dword [ebp - 0x10]
add edx, 1
push edx
call fcn.10a29e70
add esp, 0xc
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov cl, byte [eax]
cmp ecx, 0xcc
je 0x10a23c39
mov edx, dword [ebp - 0x10]
xor eax, eax
mov al, byte [edx]
cmp eax, 0x90
jne 0x10a23c3f
mov ecx, dword [ebp - 0x10]
mov byte [ecx], 0
mov edx, dword [ebp - 0x10]
add edx, dword [ebp - 0x18]
mov dword [ebp - 0x10], edx
jmp 0x10a23bdb
push 0
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x14]
sub ecx, dword [ebp - 4]
push ecx
call fcn.109ecec0
add esp, 0xc
mov dword [ebp - 8], eax
mov edx, dword [ebp - 4]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
push eax
call fcn.10a2b080
add esp, 4
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x432005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x43200c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x40729f
nop
sub eax, 0x407245
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x432030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x401482
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x13c
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x124]
mov esi, dword [ebp + 0xc]
mov dword [esp + 0x10], eax
mov eax, dword [0x4337ec]
mov dword [esp + 8], 0
mov dword [esp], ebx
mov dword [esp + 4], esi
or eax, 8
mov dword [esp + 0xc], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
sub esp, 0x14
test eax, eax
jne 0x4015a6
mov eax, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
lea edi, [ebp - 0x11d]
mov dword [ebp - 0x12c], eax
mov eax, dword [ebp - 0x124]
mov dword [esp + 0xc], 0x105
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [ebp - 0x12c]
sub esp, 0x10
test eax, eax
jne 0x401540
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp - 0x124]
je 0x401525
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
push ecx
jmp 0x4015a6
mov dword [esp + 8], 0
mov dword [esp + 4], edi
mov dword [esp], eax
call fcn.00401482
sub esp, 0xc
test eax, eax
je 0x4014db
mov eax, dword [ebp - 0x124]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
mov dword [esp], 2
call fcn.00407dd3
test eax, eax
push edx
je 0x401581
mov edx, dword [0x4337ec]
mov dword [esp + 0xc], 0
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 8], edx
call eax
sub esp, 0x10
jmp 0x4015a6
cmp dword [0x4337ec], 0
mov eax, 1
jne 0x4015a6
mov dword [esp], ebx
mov dword [esp + 4], esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
push ebx
setne al
push ebx
movzx eax, al
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 0xc
Function at 0x4039a1
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
cmp dword [ebp + 8], 0
je 0x4039cc
mov eax, dword [0x424c44]
test eax, eax
je 0x4039c0
mov dword [esp], eax
call dword [sym.imp.USER32.dll_DestroyWindow]
push eax
mov dword [0x424c44], 0
jmp 0x403a3b
cmp dword [0x424c44], 0
je 0x4039e4
mov dword [esp], 0
call fcn.00408361
push ecx
jmp 0x403a3b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, dword [0x433840]
jbe 0x403a3b
mov eax, dword [0x433858]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x4038ec
mov dword [esp + 8], 0
mov dword [esp + 4], 0x6f
mov dword [esp], eax
call dword [sym.imp.USER32.dll_CreateDialogParamA]
sub esp, 0x14
mov dword [0x424c44], eax
mov dword [esp + 4], 5
mov dword [esp], eax
call dword [sym.imp.USER32.dll_ShowWindow]
push edx
push edx
leave
ret

Function at 0x403a3d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x34
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], 0
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [0x40a010]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
xor edx, edx
sub esp, 0x14
test eax, eax
je 0x403a80
xor edx, edx
cmp dword [ebp - 0xc], ebx
sete dl
mov eax, edx
mov ebx, dword [ebp - 4]
leave
ret 8
Function at 0x407340
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
lea eax, [ebp - 0x18]
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 8]
mov dword [0x4321b4], 0x44
mov dword [esp + 0x20], 0x4321b4
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
sub esp, 0x28
test eax, eax
je 0x4073bc
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
mov eax, dword [ebp - 0x18]
jmp 0x4073be
xor eax, eax
leave
ret 4

Function at 0x40760d
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x14
mov ebx, dword [ebp + 8]
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
push edx
je 0x407638
and eax, 0xfffffffe
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebx
push ebx
mov ebx, dword [ebp - 4]
leave
ret 4

Function at 0x40763f
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
mov ebx, dword [ebp + 8]
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor edx, edx
cmp eax, 0xffffffff
cmovne edx, eax
mov eax, dword [ebp + 0x10]
push ecx
mov dword [esp], ebx
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, dword [ebp - 4]
sub esp, 0x1c
leave
ret 0xc

Function at 0x407698
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, 0x65
push ebx
sub esp, 0x2c
mov ebx, dword [ebp + 8]
lea edi, [ebp - 0x1c]
dec esi
je 0x4076f2
mov dword [ebp - 0x1c], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x1a
xor edx, edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], edi
div ecx
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
add edx, 0x61
mov byte [ebp - 0x1a], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
sub esp, 0x10
test eax, eax
je 0x4076ac
mov eax, ebx
jmp 0x4076f7
mov byte [ebx], 0
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret 8
Function at 0x407701
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x34
mov ebx, dword [ebp + 0x14]
cmp dword [ebp + 0x18], 1
lea edx, [ebp - 0x14]
sbb eax, eax
xor al, al
add eax, 0x20119
mov byte [ebx], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x10], edx
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
sub esp, 0x14
test eax, eax
jne 0x4077a3
lea eax, [ebp - 0x10]
mov dword [esp + 0x14], eax
lea eax, [ebp - 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], 0x400
mov dword [esp + 0x10], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
sub esp, 0x18
test eax, eax
jne 0x40778c
mov eax, dword [ebp - 0xc]
dec eax
cmp eax, 1
jbe 0x40778f
mov byte [ebx], 0
mov eax, dword [ebp - 0x14]
mov byte [ebx + 0x3ff], 0
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
mov ebx, dword [ebp - 4]
leave
ret 0x14
Function at 0x407d1a
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov eax, dword [ebp + 8]
mov dword [esp], 0x4319b4
mov dword [esp + 4], eax
call fcn.00407881
push ebx
push ebx
mov dword [esp], 0x4319b4
call fcn.004074fc
test eax, eax
mov ebx, eax
push esi
jne 0x407d4e
xor eax, eax
jmp 0x407dca
mov dword [esp], eax
call fcn.00407904
test byte [0x433844], 0x80
push ecx
jne 0x407d6e
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
sub ebx, 0x4319b4
jmp 0x407d91
mov al, byte [ebx]
cmp al, 0x5c
je 0x407d4a
test al, al
jne 0x407d60
jmp 0x407d4a
call fcn.00407ce2
test eax, eax
push edx
jne 0x407da8
mov dword [esp], 0x4319b4
call fcn.00407496
push ecx
mov dword [esp], 0x4319b4
call esi
cmp eax, ebx
push edx
mov dword [esp], 0x4319b4
jg 0x407d7a
jmp 0x407daf
test byte [eax], 0x10
jne 0x407d84
jmp 0x407d4a
call fcn.004078bf
push ecx
mov dword [esp], 0x4319b4
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
inc eax
setne al
push ebx
movzx eax, al
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret 4
Function at 0x4083b0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4321fc], 0
push ebp
mov ebp, esp
push esi
mov edx, dword [ebp + 0xc]
push ebx
je 0x4083cd
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
not eax
add ecx, edx
jmp 0x4083fb
xor ecx, ecx
mov eax, ecx
mov ebx, 8
mov esi, eax
and eax, 1
neg eax
shr esi, 1
and eax, 0xedb88320
xor eax, esi
dec ebx
jne 0x4083d6
mov dword [ecx*4 + 0x4321f8], eax
inc ecx
cmp ecx, 0x100
jne 0x4083cf
jmp 0x4083c1
cmp edx, ecx
je 0x408414
inc edx
mov bl, al
xor bl, byte [edx - 1]
shr eax, 8
movzx ebx, bl
xor eax, dword [ebx*4 + 0x4321f8]
jmp 0x4083fb
pop ebx
not eax
pop esi
pop ebp
ret 0xc
Function at 0x402220
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x40b9d3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x210
push ebx
push ebp
push esi
push edi
xor ebx, ebx
lea ecx, [esp + 0x10]
mov dword [esp + 0x228], ebx
call sub.MFC42.DLL_CString::CString_1
mov edx, dword [esp + 0x230]
mov byte [esp + 0x228], 1
mov ebp, dword [edx - 8]
cmp ebp, 3
jle 0x402362
mov ecx, 0x82
xor eax, eax
lea edi, [esp + 0x18]
lea esi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x14], esi
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x14]
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
call esi
cmp eax, 1
jne 0x4022e0
lea ecx, [esp + 0x10]
mov byte [esp + 0x228], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x230]
mov dword [esp + 0x228], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
jmp 0x40238b
dec ebp
cmp ebp, ebx
jle 0x4022f8
mov al, byte [esp + ebp + 0x18]
mov byte [esp + ebp + 0x18], bl
cmp al, 0x5c
je 0x4022f6
dec ebp
cmp ebp, ebx
jg 0x4022e5
cmp ebp, ebx
je 0x402362
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x14]
call fcn.0040ad5e
push ecx
lea edx, [esp + 0x14]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call fcn.0040aeb4
call fcn.00402220
add esp, 4
cmp eax, ebx
je 0x402362
mov eax, dword [esp + 0x230]
push ebx
push eax
call esi
test eax, eax
mov byte [esp + 0x228], bl
lea ecx, [esp + 0x10]
je 0x40236d
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x230]
mov dword [esp + 0x228], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, 1
jmp 0x40238b
mov byte [esp + 0x228], bl
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x230]
mov dword [esp + 0x228], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [esp + 0x220]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x21c
ret

Function at 0x402f80
Capabilities:
Shutdown system

Disassembly:
sub esp, 0xa8
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [esp + 0x24], 2
jne 0x402ffc
lea ecx, [esp]
push ecx
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x403006
lea edx, [esp + 8]
push edx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov ecx, dword [esp]
push 0
push 0
lea eax, [esp + 0xc]
push 0
push eax
push 0
push ecx
mov dword [esp + 0x1c], 1
mov dword [esp + 0x28], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x403006
push 0
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
add esp, 0xa8
ret