joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41c530
Capabilities:
Copy file
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
shr edx, 3
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], 0
jmp 0x41c55d
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp - 0xc]
jae 0x41c5fb
cmp dword [0x442930], 0x29
jne 0x41c597
push 0
push 0
push 0
push 0
push str.Yafonaw_yejaruboxinuji_woj_zihube_tuhohot
push str.Hufugub_liguced
call dword [sym.imp.KERNEL32.dll_CopyFileExW]
push 0
push str.vajozuja
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeA]
mov edx, dword [ebp - 8]
mov dword [ebp - 0x10], edx
cmp dword [0x442930], 0xe1b
jne 0x41c5b3
push 0
push 0
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [ebp - 0x10]
shl eax, 1
mov dword [ebp - 0x10], eax
cmp dword [0x442930], 0x1c
jne 0x41c5e3
mov dword [ebp - 0x28], 0
xor ecx, ecx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetStdHandle]
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*4]
push edx
call fcn.0041c130
jmp 0x41c554
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41c610
Capabilities:
Accept command line arguments
Create pipe
Read .ini file
Shutdown system

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1a98
call fcn.0040e3d0
mov dword [ebp - 4], 0
jmp 0x41c62f
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x32d05d76
jge 0x41c6b3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x442930], 0x16
jne 0x41c65e
push str.pidigubaxiyigesujusiduzobegocufaxapopokeliligidudifitazobuvetuxovosuwekapeputuvujacokuwiga
push 0
push str.jetarecozuzusanufahoxuwayezuluyuros
push str.metazuyipadekofijan
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x442930], 0x9e
jne 0x41c6a3
push 0
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
lea ecx, [ebp - 0x278]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCPInfoExW]
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push 0
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileValidData]
cmp dword [ebp - 4], 0x9be51dc
jle 0x41c6ae
jmp 0x41c6b3
jmp 0x41c626
push 0x427050
mov edx, dword [0x442930]
push edx
mov eax, dword [0x43a37c]
push eax
call fcn.0041c530
mov dword [ebp - 0x27c], 0
jmp 0x41c6e5
mov ecx, dword [ebp - 0x27c]
add ecx, 1
mov dword [ebp - 0x27c], ecx
cmp dword [ebp - 0x27c], 0x3e79e
jge 0x41c733
cmp dword [0x442930], 0x10
jne 0x41c720
lea edx, [ebp - 0x280]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push str.zorulipuyayedejolezejobabacezizu
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
cmp dword [ebp - 0x27c], 0x1e673
jne 0x41c731
call fcn.0041c060
jmp 0x41c6d6
mov dword [ebp - 0x284], 0
jmp 0x41c74e
mov eax, dword [ebp - 0x284]
add eax, 1
mov dword [ebp - 0x284], eax
cmp dword [ebp - 0x284], 0xdd9a7
jge 0x41c788
cmp dword [0x442930], 0xc01
jne 0x41c786
push 0
call dword [sym.imp.KERNEL32.dll_HeapDestroy]
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_InitiateSystemShutdownA]
push 0
call dword [sym.imp.ADVAPI32.dll_ImpersonateSelf]
jmp 0x41c73f
jmp dword [0x43a37c]
Function at 0x431006
Capabilities:
Encode data using xor

Disassembly:
call 0x43100c
nop
nop
pop eax
nop
nop
nop
add eax, 0x403e6a
nop
sub eax, 0x403e10
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x431030
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
jne 0x43101e
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp loc.00401219
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x4022b7
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
mov al, byte [esi]
cmp al, 0x22
jne 0x4022e0
mov al, byte [esi + 1]
inc esi
test al, al
je 0x4022d8
cmp al, 0x22
jne 0x4022cc
cmp byte [esi], 0x22
jne 0x4022ea
inc esi
jmp 0x4022ea
cmp al, 0x20
jle 0x4022ea
inc esi
cmp byte [esi], 0x20
jg 0x4022e4
mov al, byte [esi]
test al, al
je 0x4022f4
cmp al, 0x20
jle 0x4022dd
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0040237e
push 0x404004
push section..data
call fcn.00402364
test byte [ebp - 0x18], 1
pop ecx
pop ecx
je 0x402324
movzx eax, word [ebp - 0x14]
jmp 0x402327
push 0xa
pop eax
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov esi, eax
call fcn.00402396
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x401780
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x41c9c8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4265dc]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
mov eax, dword [0x4265dc]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 0x10]
sub esp, 0x18
mov ecx, esp
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.00403ad0
push dword [ebp + 0xc]
lea eax, [esp + 0x2c]
push dword [ebp + 8]
push eax
call fcn.004016a0
add esp, 0x24
mov dword [esp + 0x38], 0
cmp dword [eax + 0x14], 0x10
jb 0x4017fd
mov eax, dword [eax]
mov dword [esp + 0xc], eax
mov ecx, esi
lea eax, [esp + 0xc]
push eax
call fcn.00405b22
cmp dword [esp + 0x24], 0x10
mov dword [esi], vtable.std::runtime_error.0
jb 0x401826
push dword [esp + 0x10]
call fcn.00405c4f
add esp, 4
mov ecx, dword [ebp + 8]
mov eax, esi
mov dword [esi + 0xc], ecx
mov ecx, dword [ebp + 0xc]
mov dword [esi], vtable.std::_System_error.0
mov dword [esi + 0x10], ecx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00405aa4
mov esp, ebp
pop ebp
ret 0xc
Function at 0x402210
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, edx
mov eax, 0xc6ef1700
push esi
push edi
mov dword [ebp - 4], ebx
mov esi, dword [ebx]
mov edi, dword [ebx + 4]
mov ebx, 0x20
jmp 0x402230
mov edx, esi
mov ecx, esi
shl ecx, 4
shr edx, 5
xor edx, ecx
mov ecx, eax
shr ecx, 0xb
add edx, esi
and ecx, 3
mov ecx, dword [ecx*4 + 0x4275c0]
add ecx, eax
add eax, 0x71c88748
xor edx, ecx
sub edi, edx
mov edx, edi
mov ecx, edi
shl ecx, 4
shr edx, 5
xor edx, ecx
mov ecx, eax
and ecx, 3
add edx, edi
mov ecx, dword [ecx*4 + 0x4275c0]
add ecx, eax
xor edx, ecx
sub esi, edx
dec ebx
jne 0x402230
mov ebx, dword [ebp - 4]
mov dword [ebx + 4], edi
pop edi
mov dword [ebx], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402d00
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41cb0f
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x4265dc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x10], 0
mov dword [edi], 0x42398c
mov dword [edi + 0x70], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], 0
mov eax, dword [edi]
mov dword [ebp - 0x10], 1
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x18]
mov dword [ecx + edi - 4], eax
mov eax, dword [edi]
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov esi, dword [eax + 4]
add esi, edi
mov ecx, esi
call fcn.00401bb0
lea eax, [ebp - 0x14]
mov dword [esi + 0x3c], 0
lea ebx, [edi + 0x10]
mov ecx, esi
push eax
mov dword [esi + 0x38], ebx
call fcn.00401b90
push eax
mov dword [ebp - 4], 2
call fcn.00404820
mov byte [ebp - 4], 1
add esp, 4
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x402dca
mov edx, dword [ecx]
call dword [edx + 8]
test eax, eax
je 0x402dca
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
mov ecx, dword [ebp - 0x18]
push 0x20
mov eax, dword [ecx]
mov eax, dword [eax + 0x20]
call eax
cmp dword [esi + 0x38], 0
mov byte [esi + 0x40], al
jne 0x402def
mov eax, dword [esi + 0xc]
mov ecx, esi
or eax, 4
push 0
push eax
call fcn.00401ad0
mov dword [ebp - 4], 3
mov eax, dword [edi]
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x70]
mov dword [ecx + edi - 4], eax
mov ecx, ebx
call fcn.00404580
lea eax, [ebx + 4]
mov dword [ebx], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov dword [ebx + 0xc], eax
lea ecx, [ebx + 8]
lea eax, [ebx + 0x14]
mov byte [ebx + 0x4c], 0
mov dword [ebx + 0x1c], eax
lea eax, [ebx + 0x18]
mov dword [ebx + 0x20], eax
lea eax, [ebx + 0x24]
mov dword [ebx + 0x2c], eax
lea eax, [ebx + 0x28]
mov dword [ebx + 0x30], eax
mov byte [ebx + 0x45], 0
mov dword [ebx + 0x10], ecx
mov dword [ecx], 0
mov eax, dword [ebx + 0x20]
mov dword [eax], 0
mov eax, dword [ebx + 0x30]
mov dword [eax], 0
mov eax, dword [ebx + 0xc]
mov dword [eax], 0
mov eax, dword [ebx + 0x1c]
mov dword [eax], 0
mov eax, dword [ebx + 0x2c]
mov dword [eax], 0
mov dword [ebx + 0x50], 0
mov eax, dword [0x428b98]
mov dword [ebx + 0x48], eax
mov eax, edi
mov dword [ebx + 0x40], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x404040
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x41cc18
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4265dc]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x4265dc]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x40], 0
je 0x404194
cmp byte [ebx + 0x45], 0
je 0x404194
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x4040a0
xor al, al
jmp 0x404196
mov ecx, 0xf
mov byte [esp + 0x18], 0
xorps xmm0, xmm0
mov dword [esp + 0x2c], ecx
cmp ecx, 0x10
movq qword [esp + 0x18], xmm0
lea eax, [esp + 0x18]
mov dword [esp + 0x28], 8
cmovae eax, dword [esp + 0x18]
mov byte [eax + 8], 0
mov dword [esp + 0x40], 0
jmp 0x4040e0
cmp dword [esp + 0x2c], 0x10
lea eax, [esp + 0x14]
mov ecx, dword [ebx + 0x40]
lea edi, [esp + 0x18]
cmovae edi, dword [esp + 0x18]
lea esi, [esp + 0x18]
cmovae esi, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x2c]
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x404121
dec eax
je 0x404125
sub eax, 2
je 0x40417b
xor bl, bl
jmp 0x40417d
mov byte [ebx + 0x45], 0
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x18]
cmp ecx, 0x10
mov esi, dword [esp + 0x14]
cmovae eax, edx
sub esi, eax
je 0x40415c
push dword [ebx + 0x50]
cmp ecx, 0x10
lea eax, [esp + 0x1c]
push esi
cmovae eax, edx
push 1
push eax
call fcn.00406a96
add esp, 0x10
cmp esi, eax
jne 0x40411d
cmp byte [ebx + 0x45], 0
je 0x40417b
test esi, esi
jne 0x4040e0
push esi
push 8
lea ecx, [esp + 0x20]
call fcn.004039e0
jmp 0x4040e0
mov bl, 1
cmp dword [esp + 0x2c], 0x10
jb 0x404190
push dword [esp + 0x18]
call fcn.00405c4f
add esp, 4
mov al, bl
jmp 0x404196
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00405aa4
mov esp, ebp
pop ebp
ret
Function at 0x4154f8
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4265dc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00409f98
mov dword [ebp - 0x14], eax
cmp dword [0x428b28], esi
jne 0x4155eb
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x415578
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4156cb
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x4156cb
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4156cb
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x428b28], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x428b2c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x428b30], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x428b38], eax
test eax, eax
je 0x4155e8
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x428b34], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x415610
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x415603
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x415625
push 4
pop eax
jmp 0x4156cd
cmp dword [ebp - 0x14], esi
je 0x415625
push dword [0x428b28]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x41560a
mov eax, dword [0x428b34]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x415683
cmp dword [0x428b38], edi
je 0x415683
push eax
call ebx
push dword [0x428b38]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x415683
test eax, eax
je 0x415683
call ecx
test eax, eax
je 0x415678
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x415678
test byte [ebp - 8], 1
jne 0x415683
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4156b3
mov eax, dword [0x428b2c]
cmp eax, edi
je 0x4156b0
push eax
call ebx
test eax, eax
je 0x4156b0
call eax
mov esi, eax
test esi, esi
je 0x4156b0
mov eax, dword [0x428b30]
cmp eax, edi
je 0x4156b0
push eax
call ebx
test eax, eax
je 0x4156b0
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x428b28]
call ebx
test eax, eax
je 0x4156cb
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x4156cd
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405aa4
mov esp, ebp
pop ebp
ret
Function at 0x653570
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x20]
cmp dword [eax], 5
je 0x65358b
push eax
push esi
call fcn.00653bb0
add esp, 8
test eax, eax
jle 0x6535d3
push edi
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 0
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esi + 0x1c]
call dword [sym.imp.WS2_32.dll_send]
push 0xf
push esi
mov edi, eax
call fcn.00587ea0
add esp, 8
test edi, edi
jg 0x6535d0
push edi
call fcn.005d0110
add esp, 4
test eax, eax
je 0x6535d0
push 0xa
push esi
call fcn.00588600
add esp, 8
mov eax, edi
pop edi
pop esi
ret
Function at 0x100187a2
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov dword [ebp + 8], 0x10018855
mov eax, dword [ebp + 8]
leave
sub esp, 0x60
pushfd
pushal
push dword [esp + 0x84]
push 0
push eax
fnsave dword [esp + 0x30]
wait
push dword fs:[0]
mov dword fs:[0], esp
mov eax, 1
jmp dword [esp + 0xc]

Function at 0x1003e510
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100e4460
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [esp + 0x30]
push ebp
push esi
push edi
mov ecx, dword [eax]
push ecx
lea ecx, [esp + 0x10]
call fcn.100d98a8
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0
xor ebp, ebp
call fcn.10042040
mov ecx, dword [esp + 0x40]
mov byte [esp + 0x2c], 1
cmp ecx, 3
ja case.default.0x1003e564
jmp dword [ecx*4 + 0x1003e6cc]
mov al, byte [esi]
test al, al
je 0x1003e592
cmp al, 0x20
je 0x1003e57e
cmp al, 0xa1
jne 0x1003e592
cmp byte [esi + 1], al
jne 0x1003e592
test al, 0x80
je 0x1003e58a
mov al, byte [esi + 1]
inc esi
test al, al
je 0x1003e592
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x1003e571
test ecx, ecx
je case.default.0x1003e564
mov dl, byte [esi]
xor ecx, ecx
test dl, dl
mov eax, esi
je case.default.0x1003e564
mov edi, dword [esp + 0x3c]
mov dl, byte [eax]
test dl, 0x80
je 0x1003e5d8
cmp dl, 0xa1
jne 0x1003e5cc
cmp byte [eax + 1], 0xa1
jne 0x1003e5cc
test ecx, ecx
jne 0x1003e5c4
mov edi, eax
mov ecx, 1
inc eax
jmp 0x1003e5ec
mov dl, byte [eax + 1]
inc eax
xor ecx, ecx
test dl, dl
je 0x1003e606
jmp 0x1003e5ec
cmp dl, 0x20
jne 0x1003e5ea
test ecx, ecx
jne 0x1003e5e3
mov edi, eax
mov ecx, 1
jmp 0x1003e5ec
xor ecx, ecx
mov dl, byte [eax + 1]
inc eax
test dl, dl
jne 0x1003e5ac
cmp ecx, 1
jne case.default.0x1003e564
mov dl, byte [edi]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x1003e564
mov dl, byte [eax - 1]
lea edi, [eax - 1]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x1003e564
mov al, byte [esi]
test al, al
je 0x1003e65e
test al, 0x80
mov byte [esp + 0x3c], al
je 0x1003e644
mov cl, byte [esi + 1]
test cl, cl
je 0x1003e65e
cmp al, 0xa1
jne 0x1003e634
cmp cl, al
je 0x1003e641
mov ax, word [esi]
lea ecx, [esp + 0x10]
push eax
call fcn.10042310
inc esi
jmp 0x1003e656
cmp al, 0x20
je 0x1003e656
mov ecx, dword [esp + 0x3c]
push ecx
lea ecx, [esp + 0x14]
call fcn.10042350
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x1003e61d
push 0
lea ecx, [esp + 0x14]
call fcn.10042350
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.1004f0d0
mov edx, dword [esp + 0x38]
add esp, 4
test ebp, ebp
mov dword [edx], eax
je 0x1003e691
mov al, byte [esp + 0x3c]
mov byte [ebp], al
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 0
mov dword [esp + 0x10], 0x102894e8
call fcn.10042240
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call fcn.100d983a
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x10047280
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x100e49eb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.100d95af
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x10047302
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.100d7421
mov eax, dword [eax]
push 0x102f5cc0
push eax
call fcn.100c8a94
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.100d983a
test bl, bl
je 0x10047302
push 0x102f5cc0
lea ecx, [esp + 0xc]
call fcn.100d9bca
push 0x102f5ccc
lea ecx, [esp + 0xc]
call fcn.100d9bca
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x1004733e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.100d983a
jmp 0x10047409
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x100473c2
lea edx, [esp + 0x7c]
push 0x102f5cc8
push edx
call fcn.100c8a94
add esp, 8
test eax, eax
je 0x100473c2
lea eax, [esp + 0x7c]
push 0x102f5cc4
push eax
call fcn.100c8a94
add esp, 8
test eax, eax
je 0x100473c2
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10047352
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.100d983a
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x10047c00
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x10047c62
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc