joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401ae0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov dword [0x40406c], eax
push str.Riched32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push str.mifedount
push str.Deltapo
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x401b33
xor eax, eax
jmp 0x401b4e
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x16a4120
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.GVD1
lea edi, [esi - 0x1270000]
push edi
or ebp, 0xffffffff
jmp 0x16a4142
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x16a4149
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
mov al, byte [edi]
jb 0x16a4138
mov eax, 1
add ebx, ebx
jne 0x16a415d
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x16a416e
jne 0x16a417e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x16a417e
dec eax
add ebx, ebx
jne 0x16a417a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x16a4152
xor ecx, ecx
sub eax, 3
jb 0x16a4196
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x16a420a
sar eax, 1
mov ebp, eax
jmp 0x16a41a1
add ebx, ebx
jne 0x16a41a1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x16a41ae
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x16a41d2
inc ecx
add ebx, ebx
jne 0x16a41be
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x16a41b3
jne 0x16a41cf
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x16a41b3
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
mov al, byte [edi + ecx]
jbe 0x16a41f4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x16a41e6
jmp 0x16a413e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x16a41f4
add edi, ecx
jmp 0x16a413e
pop esi
mov edi, esi
mov ecx, 0x346a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x16a4212
cmp byte [edi], 0x16
jne 0x16a4212
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x16a4217
lea edi, [esi + 0x12a1000]
mov eax, dword [edi]
or eax, eax
je 0x16a4286
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x12a57f8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x12a58e8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x16a4244
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x12a58ec]
or eax, eax
je 0x16a4280
mov dword [ebx], eax
add ebx, 4
jmp 0x16a4261
call dword [esi + 0x12a58f0]
popal
jmp 0x46b748
Function at 0x68b1f0
Capabilities:
Encode data using xor

Disassembly:
jg 0x68b1e5
mov ecx, 0x72e81c68
dec esp
add ah, bl
les eax, [esi + 0x2855736]
nop
mov ecx, dword [esi]
pop ebx
sub edx, dword [ecx + 4]
inc esp
sub al, 0x8a
sbb eax, 0x5e04fae3
push cs
cmp byte [eax], 0x11
popal
rcr byte [ebx], cl
or byte [0xff6a7ffc], 0x50
call dword [edx - 0x33]
call 0xe9624257
sbb bl, ah
jg 0x68b172
test eax, 0xe44daa13
call fcn.00717596
mov eax, dword [0x77574a60]
ljmp 0x4ab3
xchg esi, eax
push eax
call 0xfe994906
xchg dword [edx - 0x4295e2c4], ecx
push 0x102d0f0a
call 0x882c326a
add bh, al
add al, 0xa3
pop ds
or esi, dword [edx - 0xa]
xor byte [esi + edx], 0x57
mov word [edi - 0x67], ss
js 0x68b204
jmp 0x7eec0884

Function at 0x71ec74
Capabilities:
Encode data using xor

Disassembly:
mov edi, dword [eax + 0x20]
adc edi, edi
call [ebx]
cld
mov eax, dword [ecx + 0x20]
mov ebx, eax
xor ebx, edi
or ebx, esi
je 0x71ec42
cmp edi, eax
sbb edx, dword [ebp - 0x14]
setl dh
pushfd
salc
or eax, 0x5c261c0e
popal
jp 0x71ec36
inc eax
fisttp word [edi - 0x74bf0009]
dec ebp
or byte [ebx], bh
inc ecx
inc eax
setg al
jmp 0x71ec36
invalid
mov edi, 0x60efe80c
das
pop eax
mov dword [esi + 0xc], ecx
push dword [ecx + 8]
call 0x44719913
pop ds
cli
das
sub byte [eax + eax*8 + 0x56b4840f], al
ror byte [edi], 0x84
mov ah, 0x56
or al, dh
jno 0x71ec1d
sub al, 8
push es
jo 0x71ec8b
push ss
inc esp
add esp, dword [ebx + 0x75]
lea ebp, [0x8eff0641]
scasb al, byte es:[edi]
push ebx
mov byte [0x9a661ad7], al
or al, 0x8b
pop eax
or byte [eax - 0x7d], dl
in al, dx
dec eax
add edi, dword [edx + 0x47]
lds ecx, [ecx + 0x4841a5e1]
test eax, eax
jno 0x71ed05
fsub st(5), st(0)
stosb byte es:[edi], al
inc eax
add al, 0xbf
fsub dword [edx]
add ecx, dword [ecx - 0x7c7ebf27]
aaa
popal
ret
push edi
call 0x4dc7319
mov ecx, esi
push edi
call 0x44c85ed6
push ebx
mov esp, 0x8d83f89
xor byte cs:[edx], 0xf8
cmc
jp 0x71ed9f
ret
ja 0x71ee03
invalid
invalid

Function at 0x73b265
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [ebp - 0xc]
pop ecx
jmp 0x73b2db
mov eax, dword [0xf1573c7e]
test esi, esi
je 0x73b334
xchg ebx, eax
cmp esi, dword [eax - 0x3b]
xchg esp, eax
lahf
jl 0x73b2d2
sbb esi, dword [edi + 0x3b04468b]
add eax, 0x8b31146
cmp eax, dword [0x7be4fbdf]
push eax
adc dword [ecx + 0x5a053b30], esp
adc dword [edi + 0x27def9c6], ecx
xor al, 0x3b
add eax, 0x827d1164
invalid
add eax, 0x44
add ebp, dword [ecx]
jne 0x73b34f
push esi
call 0xf77aa479
sbb ecx, dword [ebp + 0x57fe8b59]
call 0xebc6d670
and al, 0x57
invalid
and byte [edx + 0x39bb8bbb], bh
add al, ch
unpcklps xmm3, xmmword [ecx - 1]
mov bl, 0x83
and esi, esi
mov ebx, 0x887e8da
add byte [eax], al
mov dword [edx], ecx
jae 0x73b396
invalid
in al, dx
invalid
Function at 0x84da50
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x5d900d
lea edi, [esi - 0x1d800d]
push edi
or ebp, 0xffffffff
jmp 0x84da72
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x84da79
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x84da68
mov eax, 1
add ebx, ebx
jne 0x84da8b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x84da80
jne 0x84da9c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x84da80
xor ecx, ecx
sub eax, 3
jb 0x84dab0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x84db22
mov ebp, eax
add ebx, ebx
jne 0x84dabb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x84dac8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x84daec
inc ecx
add ebx, ebx
jne 0x84dad8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x84dacd
jne 0x84dae9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x84dacd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x84db0c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x84dafd
jmp 0x84da6e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x84db0c
add edi, ecx
jmp 0x84da6e
pop esi
mov edi, esi
mov ecx, 0x16c2
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x84db2a
cmp byte [edi], 0x11
jne 0x84db2a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x84db2f
lea edi, [esi + 0x449000]
mov eax, dword [edi]
or eax, eax
je 0x84db9e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x45515c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x4551b4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x84db5c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x4551bc]
or eax, eax
je 0x84db98
mov dword [ebx], eax
add ebx, 4
jmp 0x84db79
call dword [esi + 0x4551b8]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x84dbcf
cmp al, 0xef
ja 0x84dbc2
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x84dba4
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x84dbb1
mov ebp, dword [esi + 0x4551c0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x197]
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 0x84dc03
sub esp, 0xffffff80
jmp 0x40ce7e
Function at 0x46ce1e
Capabilities:
Copy file
Move file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x20034
call fcn.00441ef0
push ebx
push esi
lea eax, [ebp - 0x20034]
mov esi, edx
push eax
mov edx, 0x7fff
call fcn.0046dcfe
lea eax, [ebp - 0x10034]
mov edx, 0x7fff
push eax
mov ecx, esi
call fcn.0046dcfe
pop ecx
pop ecx
lea eax, [ebp - 0x10034]
push eax
lea eax, [ebp - 0x20034]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
jne 0x46cea8
cmp byte [ebp + 8], al
je 0x46cecc
lea eax, [ebp - 0x10034]
push eax
lea eax, [ebp - 0x20034]
push eax
call fcn.004251c2
pop ecx
pop ecx
test eax, eax
je 0x46cf8d
lea eax, [ebp - 0x10034]
push eax
lea eax, [ebp - 0x20034]
push eax
call dword [sym.imp.KERNEL32.DLL_MoveFileW]
jmp 0x46cf8d
lea ecx, [ebp - 0x20034]
call fcn.0046e0b7
test al, al
je 0x46cecc
lea ecx, [ebp - 0x10034]
call fcn.0046e0b7
test al, al
je 0x46ced2
cmp byte [ebp + 8], 0
jne 0x46cf0b
xor al, al
pop esi
pop ebx
leave
ret
lea eax, [ebp - 0x10034]
push eax
lea ecx, [ebp - 0x34]
call fcn.0040b606
lea ecx, [ebp - 0x34]
call fcn.0046d1df
mov bl, al
lea ecx, [ebp - 0x34]
neg bl
sbb bl, bl
call fcn.0040b1ff
add bl, 1
jne 0x46cecc
lea ecx, [ebp - 0x10034]
call fcn.0046e0b7
test al, al
je 0x46cecc
lea eax, [ebp - 0x20034]
push str..
push eax
call fcn.00428fc8
lea eax, [ebp - 0x20034]
push eax
call fcn.004248f3
xor ecx, ecx
mov word [ebp + eax*2 - 0x20032], cx
lea eax, [ebp - 0x10034]
push eax
call fcn.004248f3
xor ecx, ecx
mov dword [ebp - 0x20], 2
add esp, 0x10
mov word [ebp + eax*2 - 0x10032], cx
lea eax, [ebp - 0x20034]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x10034]
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0xe], eax
mov dword [ebp - 0xa], eax
mov dword [ebp - 0x12], eax
mov dword [ebp - 0x24], eax
mov eax, 0x614
mov word [ebp - 0x14], ax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
jne 0x46cecc
mov al, 1
jmp 0x46cece
Function at 0x46d2c7
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x288
push ebx
push esi
mov esi, ecx
xor ebx, ebx
lea ecx, [esp + 0x10]
mov byte [esp + 0xf], bl
call fcn.0040c25d
lea ecx, [esp + 0x30]
call fcn.0040c25d
lea ecx, [esp + 0x20]
call fcn.0040c25d
lea edx, [esp + 0x10]
mov ecx, esi
call fcn.0040592d
mov ecx, dword [esp + 0x10]
call fcn.0046e0b7
test al, al
je 0x46d31e
push str..
lea ecx, [esp + 0x14]
call fcn.004052b7
push ebx
lea eax, [esp + 0x24]
push ebx
push eax
lea edx, [esp + 0x3c]
lea ecx, [esp + 0x1c]
call fcn.00406bff
add esp, 0xc
lea eax, [esp + 0x40]
push eax
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
mov esi, eax
mov al, 1
mov byte [esp + 0xe], al
cmp esi, 0xffffffff
je 0x46d3be
cmp al, 1
jne 0x46d3be
test byte [esp + 0x40], 0x10
jne 0x46d399
mov byte [esp + 0xf], al
lea ecx, [esp + 0x10]
lea eax, [esp + 0x30]
push eax
call fcn.0040c1c3
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x14]
call fcn.00407cf8
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x14]
call fcn.004052b7
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
cmp eax, 1
jne 0x46d3b5
lea eax, [esp + 0x40]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
mov al, byte [esp + 0xe]
jne 0x46d351
mov al, bl
mov byte [esp + 0xe], al
jmp 0x46d351
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
jmp 0x46d3c9
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov bl, byte [esp + 0xf]
lea ecx, [esp + 0x20]
call fcn.0040b1ff
lea ecx, [esp + 0x30]
call fcn.0040b1ff
lea ecx, [esp + 0x10]
call fcn.0040b1ff
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x473c3c
Capabilities:
Create directory
Delete directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x50000
call fcn.00441ef0
push ebx
push edi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x20004]
push eax
push 0x7fff
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFullPathNameW]
test eax, eax
je 0x473cf2
lea eax, [ebp - 0x20004]
push eax
lea eax, [ebp - 0x10004]
push str.___s
push eax
call fcn.0041faa3
lea eax, [ebp - 0x10004]
push eax
call fcn.004248f3
mov ebx, eax
add esp, 0x10
cmp word [ebp + ebx*2 - 0x10006], 0x5c
jne 0x473cb5
cmp word [ebp + ebx*2 - 0x10008], 0x3a
je 0x473cb5
xor eax, eax
mov word [ebp + ebx*2 - 0x10006], ax
xor edi, edi
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
test eax, eax
jne 0x473cca
cmp byte [ebp + 0x10], al
je 0x473cf2
push edi
push 0x2200000
push 3
push edi
push edi
push 0x40000000
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x473cfa
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
xor eax, eax
pop edi
pop ebx
leave
ret 0xc
push 0x2fffa
lea eax, [ebp - 0x50000]
push 0
push eax
call fcn.004222d0
lea eax, [ebx + ebx]
mov dword [ebp - 0x50000], 0xa0000003
mov word [ebp - 0x4fff6], ax
add eax, 2
mov word [ebp - 0x4fff4], ax
lea eax, [ebp - 0x10004]
push 0x7fff
push eax
lea eax, [ebp - 0x4fff0]
push eax
call fcn.0042d27b
mov eax, dword [ebp - 0x4fff6]
lea ecx, [ebp + 8]
add esp, 0x18
xor edx, edx
add eax, 0xc
mov word [ebp - 0x4fffc], ax
movzx eax, ax
push edx
push ecx
push edx
push edx
add eax, 8
push eax
lea eax, [ebp - 0x50000]
push eax
push 0x900a4
push edi
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
push edi
test eax, eax
jne 0x473d89
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x473ce9
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
inc eax
jmp 0x473cf4
Function at 0x405e50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x405e5f
pop dword [ebp - 0x3c]
mov eax, 0x4830c338
add eax, 0xb80f9b27
sub dword [ebp - 0x3c], eax
mov dword [ebp - 0x4c], 0x9fd27f8d
sub dword [ebp - 0x4c], 0x51803a42
mov dword [ebp - 0x48], 0x4ada25da
add dword [ebp - 0x48], 0xe759266b
mov dword [ebp - 0x44], 0xc6b329a8
sub dword [ebp - 0x44], 0x7a66e57a
mov dword [ebp - 0x40], 0xd1528f49
sub dword [ebp - 0x40], 0xd1528f49
lea eax, [ebp - 0x4c]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x3c]
call dword [eax]
mov dword [ebp - 0x4c], 0x1a524c50
sub dword [ebp - 0x4c], 0xa5dfe2fa
mov dword [ebp - 0x48], 0x901a3162
sub dword [ebp - 0x48], 0x4eadcfed
mov dword [ebp - 0x44], 0xf1c52e4e
sub dword [ebp - 0x44], 0x8e55c1e2
mov dword [ebp - 0x40], 0x7e79dc2c
add dword [ebp - 0x40], 0x818623d4
lea ebx, [ebp - 0x4c]
push ebx
push eax
mov eax, 0x527541e5
add eax, 0xadcc1e8f
add eax, dword [ebp - 0x3c]
call dword [eax]
push 0x40
push 0x1000
push 0x38e44
push 0
call eax
mov ecx, 0x3f80
xor ebx, ebx
add ebx, eax
mov esi, 0x42a600
add esi, dword [ebp - 0x3c]
mov edx, 0xba34f138
sub edx, 0xa0b1dcd1
xor dword [ebp - 0x24], 0x599c7c39
mov edi, dword [esi]
add dword [ebp - 8], ebx
xor edi, edx
xor dword [ebp - 0x30], 0xfd9d2eec
mov dword [ebx], edi
sub dword [ebp - 0x1c], esi
add ebx, 4
add esi, 4
loop 0x405f72
add eax, 0xf0d3
mov ebx, eax
add eax, 0x6521ca3
add eax, 0xf9ade362
mov ecx, 0x400000
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret
Function at 0x404b90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x404ba5
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x404be6
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x404be2
nop word [eax + eax]
cmp esi, edx
jae 0x404be6
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x404bd0
cmp esi, edx
jb 0x404beb
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret
Function at 0x40a160
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x66ba18
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x726100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 8]
add eax, 4
cmp dword [eax + 0x14], 8
jb 0x40a199
mov eax, dword [eax]
push 2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
mov dword [ebp - 0x14], esi
push 0
push 1
push 0x18
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov ebx, eax
test ebx, ebx
jne 0x40a23e
call fcn.00427fa4
mov ecx, eax
test ecx, ecx
jne 0x40a1d8
push 0x80004005
call fcn.00404730
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp + 8], edi
push 0xb
mov byte [ebp - 4], 1
call fcn.0042758c
test eax, eax
je 0x40a200
push 0xb
push eax
lea ecx, [ebp + 8]
call fcn.00404920
mov edi, dword [ebp + 8]
push ecx
mov ebx, esp
mov byte [ebp - 4], 2
add edi, 0xfffffff0
mov dword [ebp + 0xc], ebx
push edi
call fcn.00404750
mov ecx, dword [ebp - 0x10]
add esp, 4
add eax, 0x10
mov dword [ebx], eax
call fcn.0040b4c0
mov byte [ebp - 4], 0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x40a28c
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x40a28c
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ecx, dword [ebp + 0xc]
add ecx, 4
mov dword [ebp + 8], eax
cmp dword [ecx + 0x14], 8
jb 0x40a257
mov ecx, dword [ecx]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
push ebx
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push dword [ebp + 8]
push 0
push 1
push 0x18
push edi
call dword [sym.imp.KERNEL32.dll_UpdateResourceW]
test eax, eax
je 0x40a283
push 0
jmp 0x40a285
push 1
push edi
call dword [sym.imp.KERNEL32.dll_EndUpdateResourceW]
test esi, esi
je 0x40a29c
mov eax, dword [sym.imp.KERNEL32.dll_FreeLibrary]
test eax, eax
je 0x40a29c
push esi
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x40c070
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x66bd2b
mov eax, dword fs:[0]
push eax
sub esp, 0x884
mov eax, dword [0x726100]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x884], ecx
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x880], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x87c], eax
mov eax, dword [ebp + 0x14]
push 0x208
mov dword [ebp - 0x88c], eax
lea eax, [ebp - 0x628]
push 0
push eax
mov dword [ebp - 0x888], ebx
call fcn.00617a20
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x628]
add esp, 0xc
push ebx
push eax
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x628]
push str..
push eax
call ebx
lea eax, [ebp - 0x878]
push eax
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov dword [ebp - 0x890], esi
mov dword [ebp - 4], 0
cmp esi, 0xffffffff
jne 0x40c134
mov edi, 0xfffffcdf
jmp 0x40c284
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.00617a20
add esp, 0xc
nop word [eax + eax]
push dword [ebp - 0x888]
lea eax, [ebp - 0x420]
push eax
call edi
push 0x6913d0
lea eax, [ebp - 0x420]
push eax
call ebx
lea eax, [ebp - 0x84c]
push eax
lea eax, [ebp - 0x420]
push eax
call ebx
test byte [ebp - 0x878], 0x10
jne 0x40c1ad
push dword [ebp - 0x87c]
mov ecx, dword [ebp - 0x884]
lea eax, [ebp - 0x420]
push 0
push 0
push eax
push dword [ebp - 0x880]
call fcn.0040b9b0
jmp 0x40c260
push 0x691510
lea eax, [ebp - 0x84c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x40c26c
push 0x691514
lea eax, [ebp - 0x84c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x40c26c
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00617a20
mov eax, dword [ebp - 0x87c]
add esp, 0xc
test eax, eax
je 0x40c22b
push eax
lea eax, [ebp - 0x218]
push eax
call edi
push 0x6913d0
lea eax, [ebp - 0x218]
push eax
call ebx
lea eax, [ebp - 0x84c]
push eax
lea eax, [ebp - 0x218]
push eax
call ebx
jmp 0x40c23b
lea eax, [ebp - 0x84c]
push eax
lea eax, [ebp - 0x218]
push eax
call edi
push dword [ebp - 0x88c]
mov ecx, dword [ebp - 0x884]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
push eax
push dword [ebp - 0x880]
call fcn.0040c070
mov edi, eax
test edi, edi
js 0x40c284
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x878]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40c150
xor edi, edi
cmp esi, 0xffffffff
je 0x40c295
mov eax, dword [sym.imp.KERNEL32.dll_FindClose]
test eax, eax
je 0x40c295
push esi
call eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005f4722
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40c590
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x66bd6e
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x726100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x3c]
call fcn.00408e90
push 4
sub esp, 0x1c
mov dword [ebp - 4], 0
mov esi, esp
mov dword [ebp - 0x14], esi
mov ecx, esi
push 0
push dword [ebp + 8]
mov dword [esi + 0xc], 0x69142c
mov dword [esi + 0x14], 0x691434
call fcn.00408da0
lea ecx, [ebp - 0x3c]
mov dword [esi], vtable.zpath.0
call fcn.0040ccd0
test al, al
jne 0x40c60a
mov esi, 0xfffffcdb
jmp 0x40c6fd
mov eax, dword [ebp - 0x38]
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x14], 0
push 2
cmp eax, 0xffffffff
je 0x40c62c
lea ecx, [ebp - 0x14]
push ecx
push 0
push eax
call ebx
jmp 0x40c636
mov ecx, dword [ebp - 0x18]
push 0
mov eax, dword [ecx]
call dword [eax + 0x14]
mov esi, dword [ebp - 0x10]
lea ecx, [ebp - 0x14]
push 0
push ecx
mov edi, eax
mov dword [esi + 4], 0
lea eax, [esi + 4]
push 4
push eax
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [ebp - 0x3c]
call fcn.0040c2d0
push 0
push 0
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call fcn.0040c070
mov esi, eax
test esi, esi
js 0x40c6fd
push 4
sub esp, 0x1c
mov esi, esp
mov ecx, esi
mov dword [ebp + 0xc], esi
push 0
push dword [ebp + 8]
mov dword [esi + 0xc], 0x69142c
mov dword [esi + 0x14], 0x691434
call fcn.00408da0
lea ecx, [ebp - 0x3c]
mov dword [esi], vtable.zpath.0
call fcn.0040ccd0
test al, al
jne 0x40c6b7
mov esi, 0xfffffcda
jmp 0x40c6fd
mov eax, dword [ebp - 0x38]
mov dword [ebp + 8], 0
push 0
cmp eax, 0xffffffff
je 0x40c6d2
lea ecx, [ebp + 8]
push ecx
push edi
push eax
call ebx
jmp 0x40c6db
mov ecx, dword [ebp - 0x18]
push edi
mov eax, dword [ecx]
call dword [eax + 0x14]
push 0
lea eax, [ebp + 8]
push eax
mov eax, dword [ebp - 0x10]
push 4
add eax, 4
push eax
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ecx, [ebp - 0x3c]
call fcn.0040c2d0
xor esi, esi
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], 4
mov dword [ebp - 0x3c], vtable.is::file_lite.0
call fcn.0040c2d0
lea ecx, [ebp - 0x34]
call fcn.00409300
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8