joyce8/EMBER2024-capa huggingface dataset:
Function at 0x61fe27
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
push edx
push eax
xor edx, eax
push ecx
shr ax, cl
push edi
push esi
and edi, esi
ror ah, 4
sub si, si
push ebx
sbb bl, 0x6a
sub cl, bh
dec ecx
test dx, bx
dec bx
inc ecx
nop
cmp eax, eax
or ecx, edi
test bl, 0x7b
test esi, 0x5148194
sub ebx, eax
stc
or dx, 0x35b1
sub cl, bh
cmp ecx, 0x25be02d3
xchg si, ax
xchg edx, ecx
cmp di, 0x2d06
shl cx, cl
cmp di, 0x5f57
inc edx
add esi, edx
rol bx, 3
rol esi, 3
dec ecx
and esi, 0x269c8f9e
xor ax, 0x16cb
mov bh, 0x26
nop
adc cx, ax
and dx, 0x18
adc edi, 0x52b592fd
add bx, di
inc dx
dec si
and bx, bx
rol edi, 7
add ch, bh
mov si, dx
xchg edx, ecx
stc
ror dx, cl
xchg dx, cx
xchg bh, bh
not ch
adc bh, 0xe
adc al, cl
sbb edx, ebx
rol ax, 7
not di
ror bx, 8
xor eax, ecx
rol si, cl
xor si, 0x6296
stc
rol ecx, 3
inc edi
mov edi, 0x2a6b3770
adc bl, 0x3d
or dl, 0x2d
nop
cmp ecx, 0x6859c1d2
xchg esi, eax
not cl
nop
xchg edi, eax
xor al, dl
xor bx, cx
or ax, 0x3817
xchg edx, ebx
sbb esi, 0x3b2647df
xor dx, 0x4212
cmp eax, edx
mov cl, 8
sub bx, cx
nop
rol al, 7
ror bh, cl
inc dl
not edx
add ah, ch
cmp di, cx
adc bh, 0x27
shl bx, cl
xchg bl, cl
nop
nop
and si, 0x788c
ror bx, cl
stc
not ebx
inc cl
add edi, ebx
stc
pop ebx
rol edx, 4
inc ecx
push ebx
mov bx, 0xe61
and eax, esi
xchg bx, cx
ror edx, cl
xor esi, edx
mov ax, 0x1290
mov cx, bx
sbb ax, di
shr ebx, cl
adc cx, di
sub bl, dl
xchg ecx, edx
stc
cmp dl, dl
inc dh
inc esi
test dl, 0x6f
or dl, dl
mov ch, 1
rol ecx, cl
rol edi, cl
dec esi
or bh, 0x7a
or eax, 0x790aaa6e
test ch, ah
xor ebx, ebx
add edx, 0x5f55dee
test esi, edx
inc cx
stc
cmp ch, ch
cmp dl, 0x28
cmp dx, dx
mov ax, di
not bl
sub dh, 0x19
not ax
xor ah, dl
shr al, cl
cmp al, 0x10
and ecx, esi
sbb cx, bx
sub cl, 0x77
and di, si
adc eax, ecx
ror ebx, 3
inc bx
rol cx, 6
not edi
cmp eax, 0x7c83ad94
rol edi, cl
cmp bx, 0x54f
shl edx, 1
shr eax, 2
inc ecx
mov ah, 0x23
xchg dx, dx
or edx, 0x4e5c3bcd
shl di, cl
stc
xchg cl, dh
inc di
test edx, 0xa5807f5
stc
stc
not edi
add bl, 0x1d
ror si, cl
xor eax, ebx
test eax, edx
add al, ch
shr bl, cl
or ax, bx
sbb ax, 0x4085
mov dl, 0x10
not eax
not edi
sub ch, 0x73
shr di, 2
shr cl, 5
ror al, 1
cmp ecx, ebx
stc
ror bl, cl
shr edi, 5
rol dh, cl
add di, dx
sub ebx, ebx
ror bx, 4
adc dx, cx
mov dl, 0x25
cmp cl, 0x21
test di, 0x32c
shl edx, 6
ror dh, cl
or bh, ah
add si, 0x495
xor esi, edx
pop ebx
xor edi, 0x1c8307da
test dl, al
dec si
push ebx
test esi, ebx
ror dx, cl
xor cl, dh
mov al, 0x13
shl ax, 3
mov edi, 0x3d13f99c
inc si
stc
or ax, di
add bh, 0x1f
rol edx, cl
shl edx, cl
inc dl
sbb di, 0x4522
ror ecx, 7
stc
add ax, 0x2aba
dec eax
nop
shr eax, 7
add cx, ax
mov edi, 0x3dc911f
inc bx
xchg bh, ch
add cl, 8
shr eax, cl
mov eax, edx
sbb edi, 0x1595da75
add eax, eax
adc edx, 0x2e9709ef
rol esi, cl
xor edi, ecx
xchg di, dx
adc eax, edx
and edi, ecx
xor dh, 0x3f
mov ebx, edx
not ebx
ror ch, 6
add dl, 0x3d
shr dx, cl
or dl, bh
not ax
adc si, dx
stc
sbb edx, edx
adc ah, dh
sub dl, 0x64
sbb ebx, 0x56a9f762
stc
mov ch, cl
not dh
and ah, cl
pop ebx
pop esi
pop edi
pop ecx
pop eax
pop edx
stc
push edx
ror dx, 6
pop edx
pop ebp
ret
Function at 0x409010
Capabilities:
Enumerate gui resources

Disassembly:
sub esp, 0x824
cmp dword [0x4e1504], 0x13f7
mov eax, dword [esp + 0x828]
push ebx
push ebp
mov ebp, dword [esp + 0x834]
push esi
mov esi, dword [eax + 4]
push edi
mov edi, dword [eax]
mov eax, dword [ebp]
mov ebx, 0xc6ef3720
mov dword [esp + 0x20], eax
jne 0x40905f
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesW]
cmp dword [0x4e1504], 0x60b
mov ecx, dword [ebp + 4]
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x1c], eax
jne 0x4090ad
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
push 0
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x44]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetNamedPipeHandleStateW]
mov dword [esp + 0x18], 0x20
mov ecx, dword [esp + 0x28]
mov eax, edi
push ecx
shl eax, 4
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x1c], eax
call fcn.00408fc0
mov eax, edi
shr eax, 5
add eax, dword [esp + 0x1c]
cmp dword [0x4e1504], 0x1b
lea ebp, [ebx + edi]
mov dword [esp + 0x10], eax
mov dword [0x4c4964], 0xffcf03fc
jne 0x40911c
push 0
push 0
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
push 0x401360
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetLocaleInfoA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteProfileSectionA]
mov eax, dword [esp + 0x10]
xor eax, ebp
xor eax, dword [esp + 0x14]
mov dword [0x4c4964], 0
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
add dword [0x4c4964], eax
sub esi, dword [esp + 0x10]
mov dword [0x4c4968], 0xc5e121b4
mov ecx, esi
shr ecx, 5
mov dword [0x4c496c], 0xffffffff
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x24]
add dword [esp + 0x10], eax
mov eax, esi
shl eax, 4
add eax, dword [esp + 0x20]
lea edx, [ebx + esi]
xor eax, edx
xor eax, dword [esp + 0x10]
add ebx, 0x61c88647
sub edi, eax
sub dword [esp + 0x18], 1
jne 0x4090b5
mov eax, dword [esp + 0x838]
mov dword [eax], edi
pop edi
mov dword [eax + 4], esi
pop esi
pop ebp
pop ebx
add esp, 0x824
ret 8
Function at 0x4091b0
Capabilities:
Copy file
Manipulate console buffer
Terminate process

Disassembly:
sub esp, 0xb30
cmp dword [0x4e1504], 0x516
jne 0x409208
push 0
lea eax, [esp + 0x334]
push eax
push 0
call sub.KERNEL32.dll_VerLanguageNameA
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetDefaultCommConfigA]
xor edx, edx
xor ecx, ecx
mov word [esp + 2], dx
lea eax, [esp + 4]
push eax
mov word [esp + 4], cx
mov ecx, dword [esp + 4]
push ecx
push edx
lea edx, [esp + 0x73c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_ReadConsoleOutputCharacterA]
mov eax, dword [esp + 0xb38]
shr eax, 3
test eax, eax
jbe 0x40932e
mov ecx, dword [esp + 0xb34]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_FreeResource]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
cmp dword [0x4e1504], 0x29
jne 0x40927a
lea edx, [esp + 0x24]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_BuildCommDCBW]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CopyFileExW]
lea eax, [esp + 0x1c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeA]
cmp dword [0x4e1504], 0xe1b
jne 0x40929b
lea ecx, [esp + 0x40]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
push 0
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp dword [0x4e1504], 0x1c
jne 0x4092db
push 0
call esi
push 0
push 0
push 0
lea edx, [esp + 0x4c]
push edx
call edi
lea eax, [esp + 0x22c]
push eax
call ebx
push 0
call ebp
push 0
push 0
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea ecx, [esp + 0x180]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
mov edx, dword [esp + 0xb4c]
mov eax, dword [esp + 0x10]
push edx
push eax
call fcn.00409010
cmp dword [0x4e1504], 0x4fa
jne 0x40931a
xor edx, edx
xor ecx, ecx
lea eax, [esp + 0x20]
push eax
mov word [esp + 0x1c], cx
mov word [esp + 0x1e], dx
mov ecx, dword [esp + 0x1c]
push ecx
push edx
push edx
push edx
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterW]
add dword [esp + 0x10], 8
sub dword [esp + 0x14], 1
jne 0x409245
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xb30
ret 0xc
Function at 0x409340
Capabilities:
Check for unexpected memory writes
Connect pipe
Get disk information
Manipulate console buffer
Read pipe
Write pipe

Disassembly:
sub esp, 0x838
cmp dword [0x4e1504], 0x37
jne 0x409420
xor eax, eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0x20]
push ecx
push 0x401368
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_BuildCommDCBAndTimeoutsW]
push 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CallNamedPipeW]
push 0
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
push 0
call dword [sym.imp.KERNEL32.dll_InitAtomTable]
push 0x4013a8
call dword [sym.imp.KERNEL32.dll_AddAtomW]
push 0x401438
push 0
call dword [sym.imp.KERNEL32.dll_SetComputerNameExA]
lea edx, [esp + 0x18]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetWriteWatch]
push 0
lea eax, [esp + 0x3c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointW]
call dword [sym.imp.KERNEL32.dll_CreateTimerQueue]
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStructW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EscapeCommFunction]
mov dword [esp], 0
mov eax, dword [0x4e1508]
add dword [esp], eax
mov eax, 0x38d6
add dword [esp], eax
mov ecx, dword [esp]
mov eax, dword [esp + 0x83c]
mov dl, byte [ecx + eax]
mov ecx, dword [0x4c4960]
mov byte [ecx + eax], dl
add esp, 0x838
ret 4

Function at 0x409490
Capabilities:
Allocate or change rwx memory

Disassembly:
push ecx
mov eax, 0x65
mov word [0x4e0ba8], ax
mov ecx, 0x6c
mov edx, 0x33
mov eax, 0x32
mov word [0x4e0baa], cx
mov word [0x4e0bac], dx
mov word [0x4e0bae], ax
mov ecx, 0x65
mov edx, 0x6e
mov eax, 0x6b
push 0x4e0ba0
mov byte [0x4ba2a9], 0x65
mov byte [0x4ba2aa], 0x72
mov byte [0x4ba2b0], 0x2e
mov byte [0x4ba2b1], 0x64
mov byte [0x4ba2b2], 0x6c
mov byte [0x4ba2b4], 0
mov word [0x4e0bb6], cx
mov word [0x4e0ba6], dx
mov word [0x4e0ba0], ax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edx, dword [0x4e1504]
lea ecx, [esp]
push ecx
push 0x40
mov dword [0x4e0b9c], eax
mov eax, dword [0x4c4960]
push edx
push eax
mov byte [0x4ba2b6], 0
mov byte [0x4ba2af], 0x50
mov byte [0x4ba2ad], 0x61
mov byte [0x4ba2a8], 0x60
mov byte [0x4ba2b0], 0x7c
mov byte [0x4ba2b1], 0x6f
mov byte [0x4ba2b5], 0x74
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
pop ecx
ret
Function at 0x409590
Capabilities:
Copy file
Get common file path
Terminate process

Disassembly:
sub esp, 0xa30
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetCalendarInfoW]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_WriteProfileSectionA]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetConsoleCursorInfo]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_DebugBreak]
mov dword [esp + 0x10], 0
lea ebx, [ebx]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x4e1504], 0x16
jne 0x4095ed
push 0
push 0
call esi
call edi
push 0
push 0
push 0
push 0
call ebx
push 0x40144c
push 0x401470
call ebp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x4e1504], 0x9e
jne 0x409626
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0
lea eax, [esp + 0x244]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryW]
lea ecx, [esp + 0x44]
push ecx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov eax, dword [esp + 0x10]
cmp eax, 0x3775ee
jg 0x40963d
inc eax
cmp eax, 0x332beaf6
mov dword [esp + 0x10], eax
jl 0x4095c0
mov edx, dword [0x4e1504]
mov eax, dword [0x4c4960]
push 0x427010
push edx
push eax
call fcn.004091b0
xor esi, esi
cmp dword [0x4e1504], 0x10
jne 0x40966a
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnfix]
cmp esi, 0x1e673
jne 0x409677
call fcn.00409470
inc esi
cmp esi, 0x3e79e
jl 0x409656
mov esi, dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov ebx, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov ebp, dword [sym.imp.KERNEL32.dll_GetNamedPipeHandleStateW]
mov dword [esp + 0x10], 0xdd9a7
cmp dword [0x4e1504], 0xc01
jne 0x4096e0
push 0
push 0
call esi
call edi
push 0
push 0
push 0
push 0
call ebx
push 0
lea edx, [esp + 0x244]
push edx
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x28]
push eax
push 0
call ebp
sub dword [esp + 0x10], 1
jne 0x4096a0
call fcn.00408120
cmp dword [0x4e1504], 0x1144
pop edi
pop esi
pop ebp
pop ebx
jne 0x40977b
push 0x40148c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0
call dword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 0
push 0
push 0
lea ecx, [esp + 0x84]
push ecx
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoA]
push 0
push 0
push 0x401498
call dword [sym.imp.KERNEL32.dll_FindFirstChangeNotificationA]
push 0
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 0
call dword [sym.imp.KERNEL32.dll_GlobalUnfix]
push 0
push 0
push 0
lea eax, [esp + 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
xor eax, eax
add esp, 0xa30
ret
Function at 0x40a740
Capabilities:
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x40a763
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x40a76a
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x40a781
mov edx, dword [ebp - 4]
push edx
call fcn.00410820
add esp, 4
or eax, 0xffffffff
jmp 0x40a783
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x40a9e0
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40a9ff
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x40aa06
mov dword [ebp - 4], 0
cmp dword [ebp - 4], 0
je 0x40aa1d
mov ecx, dword [ebp - 4]
push ecx
call fcn.00410820
add esp, 4
or eax, 0xffffffff
jmp 0x40aa1f
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x4151b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4b9474]
jne 0x4151ba
repz ret
jmp fcn.0041b350
Function at 0x401b70
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x70
push ebx
push ebp
xor eax, eax
push esi
mov esi, dword [esp + 0x80]
push edi
mov ebx, ecx
mov ecx, 0x11
lea edi, [esp + 0x3c]
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x14]
inc eax
push eax
mov dword [esp + 0x40], 0x44
call fcn.00466c98
mov edi, eax
mov eax, dword [esi + 0x18]
mov ebp, 0x10
add esp, 4
cmp eax, ebp
jb 0x401bc5
mov ecx, dword [esi + 4]
jmp 0x401bc8
lea ecx, [esi + 4]
mov edx, edi
lea ebx, [ebx]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x401bd0
mov edx, ebx
lea ecx, [esp + 0x20]
call fcn.00401ad0
cmp dword [eax + 0x18], ebp
jb 0x401bef
mov ecx, dword [eax + 4]
jmp 0x401bf2
lea ecx, [eax + 4]
cmp dword [ebx + 0x18], ebp
jb 0x401bfc
mov eax, dword [ebx + 4]
jmp 0x401bff
lea eax, [ebx + 4]
lea edx, [esp + 0x10]
push edx
lea edx, [esp + 0x40]
push edx
push ecx
push 0
push 0
push 0
push 0
push 0
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
mov eax, dword [esp + 0x38]
setne bl
cmp eax, ebp
jb 0x401c36
mov eax, dword [esp + 0x24]
push eax
call fcn.00466c9d
add esp, 4
push edi
call fcn.00466c9d
mov ecx, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 4
push ecx
call esi
mov edx, dword [esp + 0x14]
push edx
call esi
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0x70
ret 4
Function at 0x4029a0
Capabilities:
Access peb ldr_data
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x475bbb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x12c
mov eax, dword [0x4b9314]
xor eax, esp
push ebx
xor ebx, ebx
mov dword [esp + 8], ebx
push esi
mov esi, dword [esp + 0x144]
mov dword [esp + 0x130], eax
mov eax, dword [esp + 0x148]
push edi
mov edi, dword [esp + 0x150]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x14], 0xff
mov dword [esp + 0x10], 1
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
cmp dword [eax + 0x18], 0x10
mov dword [esp + 0x140], ebx
jb 0x402a1d
mov eax, dword [eax + 4]
jmp 0x402a20
add eax, 4
lea ecx, [esp + 0xc]
push ecx
push 0x20019
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402a88
cmp dword [edi + 0x18], 0x10
jb 0x402a46
mov edi, dword [edi + 4]
jmp 0x402a49
add edi, 4
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x18]
push ecx
push ebx
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402a88
lea eax, [esp + 0x34]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x402a70
sub eax, edx
push eax
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x20]
call fcn.004015a0
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x402a9b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], ebx
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x20]
push ecx
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
mov ecx, esi
mov byte [esi + 4], bl
call fcn.004014b0
cmp dword [esp + 0x30], 0x10
jb 0x402acb
mov edx, dword [esp + 0x1c]
push edx
call fcn.00466c9d
add esp, 4
mov ecx, dword [esp + 0x138]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x12c]
pop ebx
xor ecx, esp
call fcn.0044c1c4
add esp, 0x138
ret 0xc
Function at 0x402b00
Capabilities:
Check if file exists
Read .ini file

Disassembly:
sub esp, 0x10c
mov eax, dword [0x4b9314]
xor eax, esp
push ebp
mov ebp, dword [esp + 0x118]
push esi
mov esi, ecx
mov dword [esp + 0x110], eax
cmp dword [esi + 0x38], 0x10
push edi
mov edi, dword [esp + 0x11c]
mov dword [esp + 0xc], 0
mov dword [esp + 0xc], 0x494840
jb 0x402b42
mov eax, dword [esi + 0x24]
jmp 0x402b45
lea eax, [esi + 0x24]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x402ba4
cmp dword [esi + 0x38], 0x10
jb 0x402b5b
mov esi, dword [esi + 0x24]
jmp 0x402b5e
add esi, 0x24
cmp dword [ebp + 0x18], 0x10
jb 0x402b69
mov eax, dword [ebp + 4]
jmp 0x402b6c
lea eax, [ebp + 4]
mov edx, dword [str.SKUInfo]
push esi
push 0xff
lea ecx, [esp + 0x1c]
push ecx
push 0x494840
push eax
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 0x14]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402b91
sub eax, edx
mov dword [esp + 0x10], eax
lea esi, [esp + 0x14]
jne 0x402ba8
mov esi, dword [esp + 0xc]
mov eax, esi
mov dword [edi + 0x18], 0xf
mov dword [edi + 0x14], 0
mov byte [edi + 4], 0
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402bc0
sub eax, edx
push eax
push esi
mov ecx, edi
call fcn.004015a0
mov ecx, dword [esp + 0x114]
mov eax, edi
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0044c1c4
add esp, 0x10c
ret 8
Function at 0x405e20
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x475f4b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x280
mov eax, dword [0x4b9314]
xor eax, ebp
push ebx
mov dword [esp + 0x27c], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [esp + 0x10], eax
xor ebx, ebx
xor eax, eax
mov ecx, 0x93
lea edi, [esp + 0x34]
mov dword [esp + 0x30], ebx
rep stosd dword es:[edi], eax
cmp dword [esi + 0x18], 8
mov ecx, dword [esi + 0x14]
lea edi, [esi + 4]
jb 0x405e7f
mov eax, dword [edi]
jmp 0x405e81
mov eax, edi
cmp word [eax + ecx*2 - 2], 0x5c
je 0x405e94
push 0x5c
push 1
mov ecx, esi
call fcn.00404990
push 0x494af4
call fcn.0044c6ad
add esp, 4
push eax
push 0x494af4
mov ecx, esi
call fcn.00404870
cmp dword [esi + 0x18], 8
jb 0x405eb6
mov edi, dword [edi]
lea ecx, [esp + 0x30]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x405fed
mov esi, 7
test byte [esp + 0x30], 0x10
je 0x405fd2
lea edx, [esp + 0x5c]
push 0x494af0
push edx
call fcn.0044cca0
add esp, 8
test eax, eax
je 0x405fd2
lea eax, [esp + 0x5c]
push 0x494ae8
push eax
call fcn.0044cca0
add esp, 8
test eax, eax
je 0x405fd2
lea ecx, [esp + 0x5c]
push str.common
push ecx
call fcn.0044cca0
add esp, 8
test eax, eax
je 0x405fd2
lea edx, [esp + 0x5c]
push edx
call fcn.0044c6ad
add esp, 4
push eax
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.USER32.dll_CharLowerBuffW]
lea ecx, [esp + 0x5c]
push ecx
call fcn.0044c6ad
add esp, 4
cmp eax, 2
je 0x405f68
lea edx, [esp + 0x5c]
push edx
call fcn.0044c6ad
add esp, 4
cmp eax, 5
jne 0x405fd2
lea eax, [esp + 0x5c]
push eax
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], ebx
mov word [esp + 0x1c], bx
call fcn.0044c6ad
add esp, 4
push eax
lea ecx, [esp + 0x60]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00404b70
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x298], ebx
call fcn.00405d90
cmp dword [esp + 0x2c], 8
mov dword [esp + 0x294], 0xffffffff
jb 0x405fc5
mov eax, dword [esp + 0x18]
push eax
call fcn.00466c9d
add esp, 4
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], ebx
mov word [esp + 0x18], bx
lea ecx, [esp + 0x30]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x405ed2
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 4]
cmp eax, ebx
jne 0x405ffc
xor eax, eax
jmp 0x406014
mov ecx, dword [ecx + 8]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov ecx, dword [esp + 0x28c]
xor edx, edx
cmp edx, eax
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x284]
pop edi
sbb eax, eax
pop esi
xor ecx, ebp
neg eax
pop ebx
call fcn.0044c1c4
mov esp, ebp
pop ebp
ret