joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b040
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41f8a0
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x42b00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
test esi, esi
je 0x40b1a8
cmp word [esi], 0
je 0x40b1a8
lea ecx, [ebp - 0x244]
call fcn.004066f0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x228]
mov dword [ebp - 0x238], 0
test eax, eax
je 0x40b0b7
push eax
mov eax, dword [ebp - 0x234]
lea ecx, [ebp - 0x234]
call dword [eax + 0xc]
movzx eax, word [esi]
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x224], 0
cmp eax, 0x5c
je 0x40b0f0
test ax, ax
je 0x40b122
cmp word [esi + 2], 0x3a
jne 0x40b122
cmp word [esi + 4], 0x5c
jne 0x40b122
push 0x5c
push esi
call fcn.0040e679
add esp, 8
test eax, eax
je 0x40b122
cmp eax, esi
jbe 0x40b10e
cmp word [eax - 2], 0x3a
lea ecx, [eax - 2]
cmovne eax, ecx
sub eax, esi
lea ecx, [ebp - 0x244]
add eax, 2
sar eax, 1
push eax
push esi
call fcn.0040ccd0
mov edi, dword [ebp - 0x238]
test edi, edi
jne 0x40b13e
cmp dword [ebp - 0x220], edi
je 0x40b189
mov edi, dword [ebp - 0x228]
test edi, edi
je 0x40b189
cmp word [edi], 0
je 0x40b189
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x40b189
cmp word [edi], 0
je 0x40b167
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp word [ebp - 0x218], 0
mov esi, eax
je 0x40b192
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
jmp 0x40b192
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x244]
call fcn.00405c50
mov eax, esi
jmp 0x40b1aa
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040d18e
mov esp, ebp
pop ebp
ret
Function at 0x1001505
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
push 0x450
push esi
push ebx
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 4]
push eax
push 0x20019
push esi
push 0x1001130
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1001552
xor eax, eax
inc eax
jmp 0x1001666
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 8]
push eax
push ebx
lea eax, [ebp - 0xc]
push eax
push esi
push 0x10011ac
push dword [ebp - 4]
mov dword [ebp - 0xc], 3
mov dword [ebp - 8], 4
call edi
test eax, eax
jne 0x1001659
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0xc]
push eax
push esi
mov dword [ebp - 8], esi
mov esi, 0x10011c0
push esi
push dword [ebp - 4]
mov dword [ebp - 0xc], 1
call edi
test eax, eax
jne 0x1001659
mov eax, dword [ebp - 8]
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.010022c0
pop ecx
lea ecx, [ebp - 8]
push ecx
push eax
mov dword [ebp + 8], eax
lea eax, [ebp - 0xc]
push eax
push 0
push esi
push dword [ebp - 4]
call edi
test eax, eax
jne 0x1001650
lea eax, [ebx + 0x424]
push eax
push dword [ebp + 8]
call dword [sym.imp.ole32.dll_CLSIDFromString]
push dword [ebp + 8]
mov esi, eax
call fcn.010022af
xor eax, eax
pop ecx
cmp esi, eax
jne 0x1001659
lea ecx, [ebp - 8]
push ecx
push eax
lea ecx, [ebp - 0xc]
push ecx
push eax
mov esi, 0x10011e0
push esi
push dword [ebp - 4]
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], eax
call edi
test eax, eax
jne 0x1001659
mov eax, dword [ebp - 8]
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.010022c0
pop ecx
lea ecx, [ebp - 8]
push ecx
push eax
mov dword [ebp + 8], eax
lea eax, [ebp - 0xc]
push eax
push 0
push esi
push dword [ebp - 4]
call edi
test eax, eax
je 0x100166c
push dword [ebp + 8]
call fcn.010022af
pop ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 4
lea eax, [ebx + 0x434]
push eax
push dword [ebp + 8]
call dword [sym.imp.ole32.dll_CLSIDFromString]
push dword [ebp + 8]
mov esi, eax
call fcn.010022af
pop ecx
test esi, esi
je 0x100169b
xor esi, esi
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x1001665
lea eax, [ebp - 8]
push eax
lea eax, [ebx + 0x448]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x1001200
push dword [ebp - 4]
mov dword [ebx + 0x444], 1
mov dword [ebp - 0xc], 3
mov dword [ebp - 8], 4
call edi
lea edi, [ebx + 0xc]
lea esi, [ebx + 0x424]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebx + 8], 1
xor esi, esi
jmp 0x100168e
Function at 0x10025c3
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x1002e50
call fcn.010028f4
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x10043b0
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x10023d8
cmp eax, esi
jne 0x10023cb
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x10023db
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10023b2
xor esi, esi
inc esi
mov eax, dword [0x10043ac]
cmp eax, esi
jne 0x10023ee
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1002429
mov eax, dword [0x10043ac]
test eax, eax
jne 0x1002423
mov dword [0x10043ac], esi
push 0x1001108
push 0x10010fc
call fcn.0100232f
pop ecx
pop ecx
test eax, eax
je 0x1002429
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x10024f3
mov dword [0x100407c], esi
mov eax, dword [0x10043ac]
cmp eax, esi
jne 0x100244d
push 0x10010f8
push 0x10010f0
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x10043ac], 2
cmp dword [ebp - 0x1c], ebx
jne 0x100245a
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x10043bc], ebx
je 0x100247b
push 0x10043bc
call fcn.01002869
pop ecx
test eax, eax
je 0x100247b
push ebx
push 2
push ebx
call dword [0x10043bc]
push dword [0x1004064]
push dword [0x1004068]
push dword [0x1004060]
call fcn.0100177a
add esp, 0xc
mov dword [0x1004078], eax
cmp dword [0x100406c], ebx
jne 0x10024d9
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
push eax
push ecx
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x100407c], ebx
jne 0x10024e7
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1004078]
call fcn.01002939
ret
call fcn.01002a41
jmp 0x1002390
Function at 0x2580434e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x2580435d
pop dword [ebp - 0x20]
mov eax, 0x2580435d
sub dword [ebp - 0x20], eax
mov dword [ebp - 0x30], 0xaffaf566
sub dword [ebp - 0x30], 0x61a8b01b
mov dword [ebp - 0x2c], 0xa968763d
sub dword [ebp - 0x2c], 0x773529f8
mov dword [ebp - 0x28], 0x3dc86c8c
add dword [ebp - 0x28], 0xe83d7a2
mov dword [ebp - 0x24], 0x49d9a98a
add dword [ebp - 0x24], 0xb6265676
lea eax, [ebp - 0x30]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x20]
call dword [eax]
mov dword [ebp - 0x30], 0xa1a66c56
add dword [ebp - 0x30], 0xd2cbfd00
mov dword [ebp - 0x2c], 0x33d3ac85
sub dword [ebp - 0x2c], 0xf2674b10
mov dword [ebp - 0x28], 0x417d165a
add dword [ebp - 0x28], 0x21f25612
mov dword [ebp - 0x24], 0x72130b63
add dword [ebp - 0x24], 0x8decf49d
lea ebx, [ebp - 0x30]
push ebx
push eax
mov eax, 0xbe50a69d
sub eax, 0x98ced61d
add eax, dword [ebp - 0x20]
call dword [eax]
push 0x40
push 0x1000
push 0x3c614
push 0
call eax
mov ecx, 0x94491d37
add ecx, 0x6bb729eb
mov esi, eax
mov edx, 0x84c37b67
sub edx, 0x5f40e567
add edx, dword [ebp - 0x20]
mov edi, 0x52819afe
sub edi, 0xe4f80b4a
add dword [ebp - 0x14], 0x57096fcc
mov ebx, dword [edx]
xor dword [ebp - 8], 0x6c316ba
add ebx, edi
sub dword [ebp - 0xc], esi
mov dword [esi], ebx
add dword [ebp - 0x14], 0xe552c7f3
add esi, 0x16e13161
add esi, 0xe91ecea3
add edx, 0x99b7f551
add edx, 0x66480ab3
loop 0x25804475
add eax, 0x7968cd91
add eax, 0x869841ca
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x25800000
add ecx, dword [ebp - 0x20]
call ebx
leave
ret
Function at 0x4018e0
Capabilities:
Compiled with py2exe
Query environment variable

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebx
call fcn.00401220
add esp, 4
test eax, eax
jne 0x4018f9
mov eax, 0xff
pop ebx
ret
push ebx
call fcn.004013e0
add esp, 4
test eax, eax
je 0x4018f2
mov eax, dword [0x40668c]
cmp dword [eax + 8], 0
push esi
je 0x401944
mov esi, dword [sym.imp.MSVCR90.dll___iob_func]
push edi
push 0
call esi
mov edi, dword [sym.imp.MSVCR90.dll_setbuf]
push eax
call edi
add esp, 8
push 0
call esi
add eax, 0x20
push eax
call edi
add esp, 8
push 0
call esi
add eax, 0x40
push eax
call edi
add esp, 8
pop edi
mov esi, dword [sym.imp.MSVCR90.dll_getenv]
push 0x405238
call esi
add esp, 4
test eax, eax
je 0x401973
push str.PY2EXE_VERBOSE
call esi
push eax
call dword [sym.imp.MSVCR90.dll_atoi]
mov ecx, dword [0x40582c]
add esp, 8
mov dword [ecx], eax
jmp 0x40197f
mov edx, dword [0x40582c]
mov dword [edx], 0
mov eax, dword [0x405844]
mov dword [eax], 1
mov ecx, dword [0x405834]
mov dword [ecx], 1
mov edx, dword [0x40668c]
mov eax, dword [edx + 4]
mov ecx, dword [0x40583c]
push 0x406140
mov dword [ecx], eax
call dword [0x4056d4]
add esp, 4
call fcn.00401660
call dword [0x405744]
test eax, eax
jne 0x4019d5
call fcn.004016f0
test eax, eax
jne 0x401a3b
call dword [0x4056ac]
jmp 0x4019de
call fcn.004017d0
test eax, eax
jne 0x401a3b
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x401a0b
push 1
call dword [0x405824]
push eax
push 0x405258
call dword [0x4057c4]
add esp, 0xc
push ebx
call fcn.00401540
add esp, 4
pop esi
xor eax, eax
pop ebx
ret
push eax
call dword [0x4057d4]
mov esi, eax
add esp, 4
test esi, esi
je 0x401a30
push esi
push str.frozen
call dword [0x4057c4]
push esi
call fcn.00401c40
add esp, 0xc
push ebx
call fcn.00401540
add esp, 4
xor eax, eax
pop esi
pop ebx
ret

Function at 0x401b90
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push esi
push edi
push eax
push ecx
call dword [0x4057ec]
push 1
call dword [0x405854]
mov esi, eax
add esp, 0xc
test esi, esi
je 0x401bf0
call dword [0x4056c4]
push eax
call dword [0x4057d4]
add esp, 4
test eax, eax
je 0x401be7
push eax
push 0
push esi
call dword [0x40585c]
add esp, 0xc
test eax, eax
jne 0x401be7
push esi
push 0x405288
call dword [0x4057c4]
add esp, 8
push esi
call fcn.00401c40
add esp, 4
call fcn.00401aa0
push str.PYTHONINSPECT
mov edi, eax
call dword [sym.imp.MSVCR90.dll_getenv]
add esp, 4
test eax, eax
je 0x401c35
mov esi, dword [sym.imp.MSVCR90.dll___iob_func]
push 0x405278
call esi
push eax
call dword [0x4057dc]
add esp, 8
test eax, eax
je 0x401c35
push str._stdin_
call esi
push eax
call dword [0x4057e4]
add esp, 8
call dword [0x4056bc]
mov eax, edi
pop edi
pop esi
ret
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404369

Function at 0x4025e7
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x40f530
call fcn.00403770
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x4024e7
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x4024e7
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x4024e7
cmp dword [eax + 0x400074], 0xe
jbe 0x4024e7
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x4024eb
and dword [ebp - 0x1c], 0
push 1
call fcn.00409c90
pop ecx
test eax, eax
jne 0x4024ff
push 0x1c
call fcn.00409c90
pop ecx
call fcn.00405287
test eax, eax
jne 0x402510
push 0x10
call fcn.00409c90
pop ecx
call fcn.00405952
and dword [ebp - 4], 0
call fcn.004032ff
test eax, eax
jge 0x40252a
push 0x1b
call fcn.00409c90
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x412ba0], eax
call fcn.00409c90
mov dword [0x41203c], eax
call fcn.00409c90
test eax, eax
jge 0x402550
push 8
call fcn.00409c90
pop ecx
call fcn.00405fde
test eax, eax
jge 0x402561
push 9
call fcn.00409c90
pop ecx
push 1
call fcn.00409c90
pop ecx
test eax, eax
je 0x402574
push eax
call fcn.00409c90
pop ecx
mov eax, dword [0x412018]
mov dword [0x41201c], eax
push eax
push dword [0x412010]
push dword [0x41200c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4025a2
push eax
call fcn.00409c90
call fcn.00402400
jmp 0x4025d7
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.004037b5
ret
call fcn.00409c90
jmp 0x402495

Function at 0x409c90
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x409c9f
pop dword [ebp - 0xc]
mov eax, 0x9edfdfdb
sub eax, 0x9e9f433c
sub dword [ebp - 0xc], eax
push 0x40
push 0x1000
push 0x3b3da
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0xc]
call dword [eax]
mov ecx, 0x502b
xor edi, edi
add edi, eax
mov ebx, 0x84c92678
add ebx, 0x7b78154c
add ebx, dword [ebp - 0xc]
mov edx, 0xd2d9bf2d
add edx, 0x6b63ff53
xor dword [ebp - 8], esi
mov esi, dword [ebx]
xor dword [ebp - 4], eax
sub esi, edx
add dword [ebp - 8], ebx
mov dword [edi], esi
mov dword [ebp - 8], 0xcf309aea
add edi, 0xc1df33bc
sub edi, 0xc1df33b8
add ebx, 0xd7af6d27
add ebx, 0x285092dd
loop 0x409cf5
add eax, 0x861cd04f
add eax, 0x79e46330
xor ebx, ebx
add ebx, eax
add eax, 0xcd805366
sub eax, 0xcd805361
mov ecx, 0xb875b789
add ecx, 0x47ca4877
add ecx, dword [ebp - 0xc]
call ebx
leave
ret
Function at 0x405ef4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422a34], 0
push esi
jne 0x405f2b
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405f05
mov dword [ecx*4 + 0x422a30], eax
inc ecx
cmp ecx, 0x100
jl 0x405f00
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405f5c
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422a30]
xor eax, esi
inc ecx
dec edx
jne 0x405f3e
pop edi
not eax
pop esi
ret 0xc

Function at 0x40c6a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xa000]
push edi
or ebp, 0xffffffff
jmp 0x40c6c2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40c6c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40c6b8
mov eax, 1
add ebx, ebx
jne 0x40c6db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40c6d0
jne 0x40c6ec
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40c6d0
xor ecx, ecx
sub eax, 3
jb 0x40c700
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40c772
mov ebp, eax
add ebx, ebx
jne 0x40c70b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40c718
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40c73c
inc ecx
add ebx, ebx
jne 0x40c728
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40c71d
jne 0x40c739
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40c71d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40c75c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40c74d
jmp 0x40c6be
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40c75c
add edi, ecx
jmp 0x40c6be
pop esi
lea edi, [esi + 0xa000]
mov eax, dword [edi]
or eax, eax
je 0x40c7c4
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xc000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xc050]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40c779
mov ecx, edi
jns 0x40c7a8
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xc054]
or eax, eax
je 0x40c7be
mov dword [ebx], eax
add ebx, 4
jmp 0x40c796
call dword [esi + 0xc05c]
mov ebp, dword [esi + 0xc058]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1f7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40c7f8
sub esp, 0xffffff80
jmp 0x40a94c
Function at 0x10001100
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
push ebx
push esi
xor eax, eax
xor ebx, ebx
push 0x206
mov word [ebp - 0x240], ax
lea eax, [ebp - 0x23e]
push ebx
push eax
mov dword [ebp - 4], ebx
call sub.msvcrt.dll_memset
mov esi, 0x3fff
push esi
mov dword [ebp - 0x20], 0x104
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ebx
call fcn.1000ac58
add esp, 0x10
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x100012cf
push edi
mov edi, 0x800
push edi
call fcn.1000ac58
pop ecx
mov dword [ebp - 0xc], eax
cmp eax, ebx
je 0x100012ce
lea eax, [ebp - 4]
push eax
push 0x2001f
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10001290
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x240]
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x100011c7
push dword [ebp - 4]
mov eax, dword [0x1003974c]
call dword [eax + 0x1c]
jmp 0x10001290
cmp dword [ebp - 0x14], ebx
je 0x10001290
mov dword [ebp - 0x10], ebx
jbe 0x10001290
push edi
push ebx
push dword [ebp - 0xc]
call sub.msvcrt.dll_memset
push esi
push ebx
push dword [ebp - 8]
call sub.msvcrt.dll_memset
mov eax, dword [ebp - 8]
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], edi
mov word [eax], cx
lea ecx, [ebp - 0x1c]
push ecx
push dword [ebp - 0xc]
lea ecx, [ebp - 0x18]
push ebx
push ebx
push ecx
push eax
push dword [ebp - 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x1000126a
push dword [ebp + 0x10]
mov eax, dword [0x10039724]
push dword [ebp - 0xc]
call dword [eax + 4]
mov dword [ebp - 0x24], eax
cmp eax, ebx
je 0x10001281
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push 0x1a
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
cmp dword [ebp + 0x14], ebx
je 0x10001281
mov ecx, dword [ebp - 0x24]
call fcn.1000adf7
lea eax, [ecx + eax*2 - 2]
cmp word [eax], 0x22
jne 0x10001261
xor edx, edx
mov word [eax], dx
mov eax, ecx
call fcn.1000b15c
jmp 0x10001281
push 0x2c
push 0x21
push 2
push 0x29
push 0x54
push 0x56
push 0x1b
push 3
push ebx
call dword [sym.imp.GDI32.dll_ArcTo]
inc dword [ebp - 0x10]
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x14]
jb 0x100011d9
cmp dword [ebp - 4], ebx
je 0x100012a0
push dword [ebp - 4]
mov eax, dword [0x1003974c]
call dword [eax + 0x1c]
lea eax, [ebp - 8]
push esi
push eax
call fcn.1000ab81
pop ecx
pop ecx
push 0x2f
push 0x3b
push 0x27
push ebx
push 0x1e
push 0x22
push 0x50
push 0x5a
push ebx
call dword [sym.imp.GDI32.dll_BitBlt]
lea eax, [ebp - 0xc]
push edi
push eax
call fcn.1000ab81
pop ecx
pop ecx
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
Function at 0x1000441a
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
and dword [ebp - 4], 0
push ebx
push esi
push 0x10
call fcn.1000ac58
mov esi, eax
mov eax, dword [0x10039720]
cmp word [eax + 0x22a], 0x3a
pop ecx
jne 0x10004470
mov dx, word [eax + 0x228]
mov word [ebp - 0x24], dx
mov cx, word [eax + 0x22a]
mov word [ebp - 0x22], cx
mov ax, word [eax + 0x22c]
mov word [ebp - 0x20], ax
xor eax, eax
mov word [ebp - 0x1e], ax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
and dword [esi + 4], 0
mov dword [esi], 2
mov eax, dword [0x10039720]
mov eax, dword [eax + 0x224]
push eax
mov dword [esi + 8], eax
call fcn.10004a0e
lea ebx, [esi + 0xc]
pop ecx
mov dword [ebx], eax
test eax, eax
je 0x100044ba
mov edx, dword [eax]
xor ecx, ecx
push edi
test edx, edx
je 0x100044b3
mov eax, dword [eax + 4]
mov edi, eax
cmp dword [edi], 0x3b
je 0x100044c9
inc ecx
add edi, 8
cmp ecx, edx
jb 0x100044a6
xor eax, eax
pop edi
test eax, eax
jne 0x100044cf
call fcn.10004bfe
test eax, eax
je 0x100044cf
or dword [ebp - 4], 0xffffffff
jmp 0x100044d6
mov eax, dword [eax + ecx*8 + 4]
jmp 0x100044b5
push esi
call fcn.1000839a
pop ecx
call fcn.1000c994
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret
Function at 0x100048c2
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
cmp dword [ebp + 0xc], 1
push edi
jne 0x100049ed
call fcn.1000abd0
lea eax, [ebp - 0xc]
push eax
call fcn.1000cef9
xor edi, edi
pop ecx
cmp edx, edi
jg 0x100048fc
jl 0x10004a06
cmp eax, 0x2c643
jb 0x10004a06
push ebx
push esi
call fcn.1000b749
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x1003973c], eax
call esi
push str.0KabXl_bH0tOp9_YQcQTMkM2N9nsYBV0Tn7uz718UfjEG_e.iyU4FPH_i5Orr2FP_p.sKjZc903PQ13P6sgWnSTmSX8y_i3gUDAEdyloiXodkNFASKWSqQ_1nxgebUEaQMVtpVB_M.BS_8LsGUybGOivpQc0rEyk2KiW_ZrRxzGJNyUfA_HlVn16HkSjzIuyQRvKPlP6r.MXgawmXWvOwrC_nxQT_jHvzB.TrVnQ8.oqQUwaK_4uz6fsEbLrL7Qxy5YHSy4SiQd6Zo2fP9tcvC6eSzOX8gqUQYmD
call fcn.1000acd6
pop ecx
push 0xf
pop ecx
mov dword [ebp + 0xc], ecx
cmp eax, ecx
ja 0x1000492f
mov dword [ebp + 0xc], eax
xor ebx, ebx
mov byte [ebp - 5], 0
cmp dword [ebp + 0xc], edi
jbe 0x1000495b
push 0x20
lea eax, [ebx + 0x42]
mov byte [ebp + ebx - 0x14], al
lea eax, [ebp - 0x54]
push eax
push 0xffffffffffffffff
lea eax, [ebp - 0x14]
push eax
push edi
push edi
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
inc ebx
cmp ebx, dword [ebp + 0xc]
jb 0x1000493a
mov eax, dword [ebp + 8]
push 0x104
lea ecx, [ebp - 0x25c]
push ecx
push eax
mov dword [0x10039754], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov ebx, eax
call esi
pop esi
cmp ebx, edi
pop ebx
jne 0x10004987
xor eax, eax
jmp 0x10004a09
cmp eax, 0x7a
je 0x10004980
push dword [0x10039754]
call fcn.1001d3f9
mov dword [esp], 0x50c
push 0x11c
push 0x1002b218
call fcn.1000f138
add esp, 0xc
lea ecx, [ebp - 4]
push ecx
push edi
push edi
push 0x100045a3
push edi
push edi
mov dword [0x10039740], eax
mov dword [ebp - 4], edi
call dword [eax + 0x70]
push 0x55
push 0x61
push 3
push edi
push 0x25
push 0x4f
push 0x17
push 0x2f
push edi
mov dword [0x10039738], eax
call dword [sym.imp.GDI32.dll_BitBlt]
cmp dword [0x10039738], edi
jne 0x10004a01
jmp 0x10004980
cmp dword [ebp + 0xc], 0
jne 0x10004a01
push 0
push dword [0x10039738]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
call fcn.10004cba
xor eax, eax
inc eax
pop edi
leave
ret 0xc