joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6d60a28b
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 8

Function at 0x6d60a2d9
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
mov ebx, ecx
test esi, esi
jne 0x6d60a2ea
push 0xd
pop eax
jmp 0x6d60a314
push edi
xor edi, edi
push esi
call dword [sym.imp.kernel32.dll_lstrlenA]
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x6d60a2ed
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
ret 8

Function at 0x6d60a7b2
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x6d616878]
xor eax, ebp
mov dword [ebp + 0x9c], eax
mov eax, dword [ebp + 0xa8]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
or ecx, 0x2001f
push ecx
push eax
push dword [edi]
xor esi, esi
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x6c], esi
call fcn.6d60db2a
mov ebx, eax
cmp ebx, esi
je 0x6d60a825
lea ecx, [ebp - 0x74]
call fcn.6d601774
mov eax, ebx
mov ecx, dword [ebp + 0x9c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.6d60d7d5
add ebp, 0xa0
leave
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x6d60a83d
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x74]
call fcn.6d60a7b2
cmp eax, esi
jne 0x6d60a86f
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x64]
push eax
push esi
push dword [ebp - 0x74]
mov dword [ebp - 0x68], pe_nt_image_headers32
call ebx
test eax, eax
je 0x6d60a82d
lea ecx, [ebp - 0x74]
call fcn.6d601774
push dword [ebp - 0x78]
mov ecx, edi
call fcn.6d609c12
lea ecx, [ebp - 0x74]
mov esi, eax
call fcn.6d601774
mov eax, esi
jmp 0x6d60a80b
Function at 0x6d60d7d5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x6d616878]
jne 0x6d60d7df
repz ret
jmp fcn.6d60de74

Function at 0x6d60db2a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x6d60db39
pop dword [ebp - 0x1c]
mov eax, 0x71fcd852
add eax, 0xfb6402e7
sub dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], 0xc125751a
sub dword [ebp - 0x2c], 0x72d32fcf
mov dword [ebp - 0x28], 0xd64bd12
add dword [ebp - 0x28], 0x24ce8f33
mov dword [ebp - 0x24], 0xaf73a58b
add dword [ebp - 0x24], 0x9cd89ea3
mov dword [ebp - 0x20], 0xe0329057
add dword [ebp - 0x20], 0x1fcd6fa9
lea eax, [ebp - 0x2c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x1c]
call dword [eax]
mov dword [ebp - 0x2c], 0x96b565ab
add dword [ebp - 0x2c], 0xddbd03ab
mov dword [ebp - 0x28], 0x64117d3
sub dword [ebp - 0x28], 0xc4d4b65e
mov dword [ebp - 0x24], 0x610eb2b3
add dword [ebp - 0x24], 0x260b9b9
mov dword [ebp - 0x20], 0x8dbc2015
add dword [ebp - 0x20], 0x7243dfeb
lea ebx, [ebp - 0x2c]
push ebx
push eax
mov eax, 0x1fb61719
add eax, 0x4daad907
add eax, dword [ebp - 0x1c]
call dword [eax]
push 0x40
push 0x1000
push 0x38cdf
push 0
call eax
mov ecx, 0x4dc4
mov ebx, eax
mov esi, 0x467abbe3
add esi, 0x26e6e01d
add esi, dword [ebp - 0x1c]
mov edi, 0x2cb53323
sub edi, 0xb131d01c
xor dword [ebp - 0x14], edi
mov edx, dword [esi]
xor edx, edi
sub dword [ebp - 0x14], ecx
mov dword [ebx], edx
mov dword [ebp - 4], 0xf6ac429d
add ebx, 4
add esi, 0xa8a644be
sub esi, 0xa8a644ba
loop 0x6d60dc50
add eax, 0x129e3
xor ebx, ebx
add ebx, eax
add eax, 0x2bb68967
add eax, 0xd449769e
mov ecx, 0xd432ac2f
add ecx, 0x992d53d1
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret
Function at 0x401434
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x401443
pop dword [ebp - 0x14]
mov eax, 0x401443
sub dword [ebp - 0x14], eax
mov dword [ebp - 0x24], 0xe8b9b938
add dword [ebp - 0x24], 0x65988c13
mov dword [ebp - 0x20], 0x8d18a77e
add dword [ebp - 0x20], 0xa51aa4c7
mov dword [ebp - 0x1c], 0x211f65b4
add dword [ebp - 0x1c], 0x2b2cde7a
mov dword [ebp - 0x18], 0xc60c8a11
sub dword [ebp - 0x18], 0xc60c8a11
lea eax, [ebp - 0x24]
push eax
mov eax, 0x2f854857
add eax, 0xd0bb3821
add eax, dword [ebp - 0x14]
call dword [eax]
mov dword [ebp - 0x24], 0xc0eb22ec
sub dword [ebp - 0x24], 0x4c78b996
mov dword [ebp - 0x20], 0x8f0c25ad
sub dword [ebp - 0x20], 0x4d9fc438
mov dword [ebp - 0x1c], 0xfb5d6d79
sub dword [ebp - 0x1c], 0x97ee010d
mov dword [ebp - 0x18], 0x911751af
add dword [ebp - 0x18], 0x6ee8ae51
lea ebx, [ebp - 0x24]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x14]
call dword [eax]
push 0x40
push 0x1000
push 0x391d1
push 0
call eax
mov ecx, 0x6099a4f0
add ecx, 0x9f66a603
xor esi, esi
add esi, eax
mov edx, 0x1d993765
sub edx, 0x1d542365
add edx, dword [ebp - 0x14]
mov edi, 0x99903929
sub edi, 0x6a961643
xor dword [ebp - 0x10], 0x4c6f470a
mov ebx, dword [edx]
xor dword [ebp - 4], esi
sub ebx, edi
mov dword [esi], ebx
add dword [ebp - 4], 0x113dc942
add esi, 0xd00903a6
add esi, 0x2ff6fc5e
add edx, 0xde2b3d93
sub edx, 0xde2b3d8f
loop 0x40155d
add eax, 0xe8480654
sub eax, 0xe846e7b5
xor ebx, ebx
add ebx, eax
add eax, 0xf7ebace6
sub eax, 0xf7ebace1
mov ecx, 0xc92f6d75
add ecx, 0x3710928b
add ecx, dword [ebp - 0x14]
call ebx
leave
ret
Function at 0x593c9b65
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x593c9b74
pop dword [ebp - 0x20]
mov eax, 0x92b2228a
sub eax, 0x39758716
sub dword [ebp - 0x20], eax
mov dword [ebp - 0x30], 0x3a91663c
add dword [ebp - 0x30], 0x13c0df0f
mov dword [ebp - 0x2c], 0xbe50353d
sub dword [ebp - 0x2c], 0x8c1ce8f8
mov dword [ebp - 0x28], 0xb81b4ff5
add dword [ebp - 0x28], 0x9430f439
mov dword [ebp - 0x24], 0x3ee98b8
sub dword [ebp - 0x24], 0x3ee98b8
lea eax, [ebp - 0x30]
push eax
mov eax, 0xee773e89
add eax, 0x6ac3d1db
add eax, dword [ebp - 0x20]
call dword [eax]
mov dword [ebp - 0x30], 0x4ad9587c
add dword [ebp - 0x30], 0x299910da
mov dword [ebp - 0x2c], 0xd9d0fff0
add dword [ebp - 0x2c], 0x679b6185
mov dword [ebp - 0x28], 0xd195f0b1
add dword [ebp - 0x28], 0x91d97bbb
mov dword [ebp - 0x24], 0x27fc10dc
add dword [ebp - 0x24], 0xd803ef24
lea ebx, [ebp - 0x30]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x20]
call dword [eax]
push 0x40
push 0x1000
push 0x38e7f
push 0
call eax
mov ecx, 0x2b32e5a1
add ecx, 0xd4cd62eb
xor ebx, ebx
add ebx, eax
mov edx, 0x593e2000
add edx, dword [ebp - 0x20]
mov edi, 0x6f8ae3dd
sub edi, 0x3eb0c9fa
mov dword [ebp - 0x10], 0x95a7c3a9
mov esi, dword [edx]
xor dword [ebp - 4], edx
xor esi, edi
mov dword [ebx], esi
add dword [ebp - 8], 0xd8f02b84
add ebx, 0xe19352bf
sub ebx, 0xe19352bb
add edx, 0xe96c748a
add edx, 0x16938b7a
loop 0x593c9c8d
add eax, 0x11503
mov ebx, eax
add eax, 0xbfdc47e9
sub eax, 0xbfdc47e4
mov ecx, 0x65caf7f8
sub ecx, 0xc8ff7f8
add ecx, dword [ebp - 0x20]
call ebx
leave
ret
Function at 0x4021c0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
xor eax, eax
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x8c
lea edi, [ebp - 0x64]
mov ecx, 7
mov esi, dword [ebp + 8]
rep stosd dword es:[edi], eax
call fcn.00401892
xor edx, edx
test eax, eax
jne 0x4023ab
mov dword [esp + 8], 0x41f1f4
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.KERNEL32.dll_CreateMutexA
sub esp, 0xc
mov ebx, eax
test eax, eax
je 0x4023a8
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.KERNEL32.dll_WaitForSingleObject
test eax, 0xffffff7f
push edx
push edx
jne 0x40239f
call fcn.0040cbd8
mov dword [esp + 8], 0
mov dword [esp + 4], 0x7f00
mov dword [esp], 0
mov dword [ebp - 0x48], 0x30
mov dword [ebp - 0x44], 8
mov dword [ebp - 0x40], 0x40350f
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], 0
call fcn.00409ac6
mov dword [ebp - 0x28], 0x10
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0x41f1fd
mov dword [ebp - 0x1c], 0
test eax, eax
jne 0x4022b4
call fcn.0040d08e
mov dword [esp], ebx
call sub.KERNEL32.dll_ReleaseMutex
push eax
jmp 0x40239f
lea eax, [ebp - 0x48]
mov dword [esp], eax
call sub.USER32.dll_RegisterClassExA
test ax, ax
push edi
je 0x4022a1
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0x1e0
mov dword [esp + 0x18], 0x280
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0x80000000
mov dword [esp + 0xc], 0xca0000
mov dword [esp + 8], 0x41f1f4
mov dword [esp + 4], 0x41f1fd
mov dword [esp], 0
call sub.USER32.dll_CreateWindowExA
sub esp, 0x30
mov esi, eax
test eax, eax
je 0x4022a1
mov eax, dword [ebp + 0x14]
mov dword [esp], esi
mov dword [esp + 4], eax
lea edi, [ebp - 0x64]
call sub.USER32.dll_ShowWindow
push ecx
push ecx
mov dword [esp], esi
call sub.USER32.dll_UpdateWindow
push edx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], edi
call sub.USER32.dll_GetMessageA
sub esp, 0x10
test eax, eax
jle 0x4022a1
mov dword [esp + 4], edi
mov dword [esp], esi
call sub.USER32.dll_IsDialogMessageA
test eax, eax
push edx
push edx
jne 0x40234f
mov dword [esp], edi
call sub.USER32.dll_TranslateMessage
push ecx
mov dword [esp], edi
call sub.USER32.dll_DispatchMessageA
jmp 0x40234e
mov dword [esp], ebx
call sub.KERNEL32.dll_CloseHandle
push eax
mov edx, dword [ebp - 0x5c]
lea esp, [ebp - 0xc]
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret 0x10

Function at 0x40774a
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
add esp, 0xffffff80
lea esi, [ebp - 0x6c]
mov ebx, dword [ebp + 8]
mov dword [esp + 0xc], esi
mov dword [esp], ebx
mov dword [esp + 8], 0x64
mov dword [esp + 4], 0xd
call sub.USER32.dll_SendMessageA
sub esp, 0x10
mov dword [esp], esi
call fcn.00407595
mov dword [esp], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0xc
call sub.USER32.dll_SendMessageA
sub esp, 0x10
mov dword [esp], ebx
mov dword [esp + 8], 0
mov dword [esp + 4], 0x4075f9
call sub.USER32.dll_EnumChildWindows
sub esp, 0xc
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x407b10
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov edi, dword [ebp + 8]
cmp dword [0x42c2e4], 0
jne 0x407b52
mov dword [esp + 4], 0
mov dword [esp], 0x41f740
call sub.USER32.dll_FindWindowA
push edx
push edx
mov dword [esp + 4], 0x1500
mov dword [esp], eax
call sub.USER32.dll_GetDlgItem
mov dword [0x42c2e4], eax
push ecx
push ecx
imul eax, dword [ebp + 0xc], 0x3e8
mov dword [ebp - 0x28], eax
mov eax, dword [0x468d9c]
test eax, eax
je 0x407b6f
call eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
jmp 0x407b7e
call sub.KERNEL32.dll_GetTickCount
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], eax
lea eax, [edi + 0x29]
xor esi, esi
lea ebx, [edi + 0x25]
mov dword [ebp - 0x2c], eax
mov dword [esp], edi
call fcn.00405e94
cmp esi, dword [ebp - 0x28]
setbe byte [ebp - 0x21]
cmp al, byte [ebp - 0x21]
jae 0x407c3e
mov al, byte [edi + 0x1b]
and eax, 0xf
cmp al, 2
jne 0x407bf9
mov dword [esp], ebx
call fcn.00405b92
cmp ax, 0x412
jne 0x407bf9
cmp byte [edi + 0x28], 0
jns 0x407bf9
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call fcn.00405b92
mov dword [esp + 0xc], 0
movzx eax, ax
imul eax, eax, 0x64
sar eax, 0x10
mov dword [esp + 4], 0x402
mov dword [esp + 8], eax
mov eax, dword [0x42c2e4]
mov dword [esp], eax
call sub.USER32.dll_SendMessageA
sub esp, 0x10
jmp 0x407b89
mov al, byte [edi + 0x1b]
and eax, 0xf
cmp al, 2
je 0x407c1d
mov dword [esp], 0x3e8
call sub.KERNEL32.dll_Sleep
push eax
mov eax, dword [0x468d9c]
test eax, eax
je 0x407c2f
call eax
jmp 0x407c34
mov dword [esp], ebx
call fcn.00405b92
xor al, al
cmp ax, 0x3a00
jne 0x407c03
jmp 0x407c3e
call sub.KERNEL32.dll_GetTickCount
mov esi, eax
sub esi, dword [ebp - 0x20]
jmp 0x407b89
mov eax, dword [0x42c2e4]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x64
mov dword [esp + 4], 0x402
mov dword [esp], eax
call sub.USER32.dll_SendMessageA
mov al, byte [ebp - 0x21]
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x407e69
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
test ebx, ebx
jne 0x407e93
mov dword [esp + 4], 0
mov dword [esp], 0x41f798
call sub.USER32.dll_FindWindowA
mov ebx, eax
push edx
push edx
test esi, esi
jne 0x407ebf
mov dword [esp + 0xc], 0x430340
mov dword [esp + 8], 0x40
mov dword [esp + 4], 0xd
mov dword [esp], ebx
call sub.USER32.dll_SendMessageA
mov esi, 0x430340
sub esp, 0x10
lea eax, [ebp + 0x14]
mov dword [esp + 4], 0x1fff
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov dword [esp], 0x42e340
call sub.msvcrt.dll__vsnprintf
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 0xc], 0x10024
mov dword [esp + 4], 0x42e340
call sub.USER32.dll_MessageBoxA
sub esp, 0x10
cmp eax, 6
sete al
lea esp, [ebp - 8]
movzx eax, al
pop ebx
pop esi
pop ebp
ret
Function at 0x407f10
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
test ebx, ebx
jne 0x407f3a
mov dword [esp + 4], 0
mov dword [esp], 0x41f798
call sub.USER32.dll_FindWindowA
mov ebx, eax
push edx
push edx
test esi, esi
jne 0x407f66
mov dword [esp + 0xc], 0x42e300
mov dword [esp + 8], 0x40
mov dword [esp + 4], 0xd
mov dword [esp], ebx
call sub.USER32.dll_SendMessageA
mov esi, 0x42e300
sub esp, 0x10
lea eax, [ebp + 0x18]
mov dword [esp + 4], 0x1fff
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 8], eax
mov dword [esp], 0x42c300
call sub.msvcrt.dll__vsnprintf
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0x42c300
call sub.USER32.dll_MessageBoxA
sub esp, 0x10
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret

Function at 0x4087da
Capabilities:
Get graphical window text
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov eax, 0x103c
mov ebp, esp
push edi
push esi
push ebx
call fcn.0041d1c0
sub esp, eax
mov edi, dword [ebp + 8]
lea esi, [ebp - 0x1018]
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0x1000
mov dword [esp + 4], 0xd
mov dword [esp], edi
call sub.USER32.dll_SendMessageA
sub esp, 0x10
cmp byte [ebp - 0x1018], 0
jne 0x408824
xor eax, eax
jmp 0x408952
call sub.KERNEL32.dll_GetACP
xor ebx, ebx
mov dword [esp], edi
cmp eax, 0xfde9
sete bl
call sub.USER32.dll_OpenClipboard
dec ebx
and ebx, 0xfffffff4
add ebx, 0xd
push ecx
test eax, eax
je 0x40881d
cmp ebx, 1
jne 0x40885b
xor eax, eax
or ecx, 0xffffffff
mov edi, esi
repne scasb al, byte es:[edi]
not ecx
mov eax, ecx
jmp 0x408898
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.KERNEL32.dll_MultiByteToWideChar
sub esp, 0x18
mov ecx, eax
cmp ebx, 0xd
jne 0x408898
lea eax, [eax + eax]
mov dword [esp + 4], eax
mov dword [esp], 2
mov dword [ebp - 0x1020], ecx
call sub.KERNEL32.dll_GlobalAlloc
xor edi, edi
mov dword [ebp - 0x101c], eax
push edx
test eax, eax
push edx
je 0x408936
mov dword [esp], eax
call sub.KERNEL32.dll_GlobalLock
cmp ebx, 1
mov ecx, dword [ebp - 0x1020]
push edi
jne 0x4088d6
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x408901
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.KERNEL32.dll_MultiByteToWideChar
sub esp, 0x18
mov eax, dword [ebp - 0x101c]
mov dword [esp], eax
call sub.KERNEL32.dll_GlobalUnlock
push ecx
call sub.USER32.dll_EmptyClipboard
test eax, eax
je 0x40893f
mov eax, dword [ebp - 0x101c]
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.USER32.dll_SetClipboardData
test eax, eax
push edx
push edx
je 0x40893f
mov edi, 1
call sub.USER32.dll_CloseClipboard
mov eax, edi
jmp 0x408952
mov eax, dword [ebp - 0x101c]
xor edi, edi
mov dword [esp], eax
call sub.KERNEL32.dll_GlobalFree
push eax
jmp 0x408936
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x408c10
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
and edx, 0xfffffffb
cmp edx, 0x8000
jne 0x408c65
cmp dword [eax + 4], 5
jne 0x408c65
add eax, 0xc
lea edx, [ebp + 0x14]
mov dword [esp + 8], 0x10
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x408c65
mov eax, dword [ebp + 0x28]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x24]
mov dword [esp], eax
call sub.msvcrt.dll__beginthread
mov eax, 1
leave
ret
Function at 0x409cc2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x14]
mov eax, dword [ebp + 8]
mov dword [ebp + 8], ebx
mov ebx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [ebp + 0x10], ebx
mov ebx, dword [ebp + 0x18]
mov dword [ebp + 0xc], ebx
mov dword [ebp + 0x14], 1
pop ebx
pop ebp
jmp fcn.00409551
Function at 0x40afba
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov eax, 0x116c
mov ebp, esp
push edi
push esi
push ebx
call fcn.0041d1c0
or edx, 0xffffffff
sub esp, eax
mov ecx, edx
xor eax, eax
mov edi, dword [ebp + 8]
repne scasb al, byte es:[edi]
not ecx
mov ebx, dword [ebp + 0xc]
lea esi, [ecx - 1]
mov edi, ebx
mov dword [ebp - 0x115c], esi
mov ecx, edx
repne scasb al, byte es:[edi]
mov eax, ecx
not eax
lea eax, [esi + eax - 1]
cmp eax, 0xffe
jbe 0x40b002
xor eax, eax
jmp 0x40b0fa
lea esi, [ebp - 0x1018]
mov eax, dword [ebp + 8]
mov dword [esp], esi
mov dword [esp + 4], eax
call sub.msvcrt.dll_strcpy
mov dword [esp], esi
mov dword [esp + 4], 0x41f85b
lea edi, [ebp - 0x1158]
call sub.msvcrt.dll_strcat
mov dword [esp], esi
mov dword [esp + 4], ebx
call sub.msvcrt.dll_strcat
mov dword [esp], esi
mov dword [esp + 4], edi
call sub.KERNEL32.dll_FindFirstFileA
mov esi, eax
cmp eax, 0xffffffff
push ecx
push ecx
je 0x40affb
xor ebx, ebx
mov dword [ebp - 0x1160], edi
test byte [ebp - 0x1158], 0x10
jne 0x40b0bb
xor eax, eax
or ecx, 0xffffffff
lea edi, [ebp - 0x112c]
repne scasb al, byte es:[edi]
mov eax, dword [ebp - 0x115c]
not ecx
lea eax, [eax + ecx - 1]
cmp eax, dword [ebp + 0x1c]
jae 0x40b0bb
mov eax, dword [ebp + 0x10]
lea edi, [eax + ebx*4]
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
inc ebx
mov eax, dword [edi]
mov dword [esp], eax
call sub.msvcrt.dll_strcpy
mov dword [esp + 4], 0x41f85b
mov eax, dword [edi]
mov dword [esp], eax
call sub.msvcrt.dll_strcat
lea eax, [ebp - 0x112c]
mov dword [esp + 4], eax
mov eax, dword [edi]
mov dword [esp], eax
call sub.msvcrt.dll_strcat
mov eax, dword [ebp - 0x1160]
mov dword [esp], esi
mov dword [esp + 4], eax
call sub.KERNEL32.dll_FindNextFileA
cmp ebx, dword [ebp + 0x18]
push edx
push edx
jae 0x40b0dc
test eax, eax
jne 0x40b056
mov dword [esp], esi
call sub.KERNEL32.dll_FindClose
cmp dword [ebp + 0x14], 0
push eax
mov eax, 1
je 0x40b0fa
mov eax, dword [ebp + 0x14]
mov dword [eax], ebx
mov eax, 1
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [esp], ebx
call sub.KERNEL32.dll_GetFileAttributesA
cmp eax, 0xffffffff
push edx
je 0x40b1cc
test al, 0x10
jne 0x40b1e9
mov dword [esp + 4], 0x5c
mov dword [esp], ebx
call sub.msvcrt.dll_strrchr
or edi, 0xffffffff
test eax, eax
je 0x40b1f7
sub eax, ebx
mov edi, eax
jmp 0x40b1f7
mov edi, ebx
xor eax, eax
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
lea edi, [ecx - 1]
mov eax, edi
sub eax, 0
js 0x40b21e
cmp edi, dword [ebp + 0x10]
ja 0x40b21e
mov dword [esp + 8], edi
mov dword [esp + 4], ebx
mov dword [esp], esi
call sub.msvcrt.dll_strncpy
mov byte [esi + edi], 0
mov eax, 1
jmp 0x40b220
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x40b228
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
push ebx
sub esp, 0x10
mov ebx, dword [ebp + 8]
mov dword [esp], ebx
call sub.KERNEL32.dll_GetFileAttributesA
cmp eax, 0xffffffff
push edx
je 0x40b248
or ecx, 0xffffffff
test al, 0x10
jne 0x40b26b
mov dword [esp + 4], 0x5c
mov dword [esp], ebx
call sub.msvcrt.dll_strrchr
test eax, eax
je 0x40b25f
lea ebx, [eax + 1]
xor eax, eax
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
test ecx, ecx
jle 0x40b28a
cmp ecx, dword [ebp + 0x10]
ja 0x40b28a
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], ebx
mov dword [esp], eax
call sub.msvcrt.dll_strcpy
mov eax, 1
jmp 0x40b28c
xor eax, eax
lea esp, [ebp - 8]
pop ebx
pop edi
pop ebp
ret

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

Disassembly:
push ebp
mov eax, 0x202c
mov ebp, esp
push edi
push esi
push ebx
call fcn.0041d1c0
mov ecx, 0x400
sub esp, eax
lea edi, [ebp - 0x1018]
xor eax, eax
mov ebx, dword [ebp + 8]
rep stosd dword es:[edi], eax
mov dword [esp], ebx
call sub.KERNEL32.dll_GetFileAttributesA
cmp eax, 0xffffffff
push esi
je 0x40b2d3
test al, 0x10
je 0x40b2d3
mov eax, 1
jmp 0x40b429
lea eax, [ebp - 0x2018]
mov dword [esp + 0xc], 0
mov dword [esp + 8], eax
mov dword [esp + 4], 0x1000
mov dword [esp], ebx
call sub.KERNEL32.dll_GetFullPathNameA
mov dword [ebp - 0x201c], eax
dec eax
sub esp, 0x10
mov dword [ebp - 0x2020], eax
cmp eax, 0xffe
jbe 0x40b313
xor eax, eax
jmp 0x40b429
mov eax, dword [sym.imp.msvcrt.dll___mb_cur_max]
cmp dword [eax], 1
movsx eax, byte [ebp - 0x2018]
jne 0x40b337
mov edx, dword [sym.imp.msvcrt.dll__pctype]
mov edx, dword [edx]
mov ax, word [edx + eax*2]
and eax, 0x103
jmp 0x40b347
mov dword [esp + 4], 0x103
mov dword [esp], eax
call sub.msvcrt.dll__isctype
xor edi, edi
test eax, eax
je 0x40b35c
cmp byte [ebp - 0x2017], 0x3a
jne 0x40b35c
lea edi, [ebp - 0x2016]
cmp byte [ebp - 0x2018], 0x5c
jne 0x40b39c
cmp byte [ebp - 0x2017], 0x5c
jne 0x40b39c
mov al, byte [ebp - 0x2016]
mov dword [esp + 4], 0x5c
cmp al, 0x2e
je 0x40b384
cmp al, 0x3f
jne 0x40b38c
lea eax, [ebp - 0x2014]
jmp 0x40b392
lea eax, [ebp - 0x2016]
mov dword [esp], eax
call sub.msvcrt.dll_strchr
mov edi, eax
test edi, edi
je 0x40b30c
lea esi, [ebp - 0x1018]
lea edx, [edi + 1]
mov dword [esp + 4], 0x5c
mov dword [esp], edx
call sub.msvcrt.dll_strchr
mov ebx, dword [ebp - 0x201c]
mov edi, eax
test eax, eax
je 0x40b3d3
mov ebx, eax
lea eax, [ebp - 0x2018]
sub ebx, eax
lea eax, [ebp - 0x2018]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov dword [esp], esi
call sub.msvcrt.dll_strncpy
mov dword [esp], esi
call sub.KERNEL32.dll_GetFileAttributesA
inc eax
push ecx
je 0x40b402
cmp ebx, dword [ebp - 0x2020]
jb 0x40b3aa
jmp 0x40b2c9
mov dword [esp + 4], 0
mov dword [esp], esi
call sub.KERNEL32.dll_CreateDirectoryA
test eax, eax
push edx
push edx
jne 0x40b3f5
call sub.KERNEL32.dll_GetLastError
cmp eax, 0xb7
je 0x40b3f5
jmp 0x40b30c
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret