joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5e51f5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov dword [ebp - 4], ebx
test byte [esi + 4], 1
mov edi, dword [esi + 0xc]
jne 0x5e524b
push 5
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x5e5224
call fcn.005c6b69
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x5e5239
call fcn.005c6b69
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x5e524b
call fcn.005c6b69
call fcn.005da715
cmp dword [eax + 0x3c], 0
je 0x5e5260
push edi
mov ecx, ebx
call fcn.005e4918
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.005e5446
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x5e5289
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x5e5295
mov edi, ebx
mov dword [eax + 0x88], ebx
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x6221f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
push edi
test esi, esi
jne 0x622209
call fcn.005da715
mov esi, dword [eax + 0xc]
push 0x7f7fd0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x62224b
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x62224b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x62224b
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.00622254
jmp 0x62224d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x6422fb
Capabilities:
Get file system object information

Disassembly:
push 0x274
mov eax, 0x752566
call fcn.0070c507
mov ebx, ecx
mov eax, dword [ebx + 0x14]
sub eax, 0x10
push eax
call fcn.00578420
pop ecx
lea esi, [eax + 0x10]
mov dword [ebp - 0x278], esi
and dword [ebp - 4], 0
lea ecx, [ebp - 0x278]
push 0
push 0x7606bc
call fcn.00590810
cmp eax, 0xffffffff
jne 0x6423d6
push 0
push 0x760b04
lea ecx, [ebp - 0x278]
call fcn.00590810
cmp eax, 0xffffffff
jne 0x6423d6
push 0
push 0x7606a8
lea ecx, [ebp - 0x278]
call fcn.00590810
cmp eax, 0xffffffff
jne 0x6423d6
mov eax, dword [ebx + 0x14]
sub eax, 0x10
push eax
call fcn.00578420
add eax, 0x10
pop ecx
mov dword [ebp - 0x280], eax
xor edx, edx
mov byte [ebp - 4], 1
push edx
lea ecx, [ebp - 0x114]
push ecx
push 0x104
push edx
push eax
lea edi, [eax - 0x10]
push edx
mov dword [ebp - 0x27c], edi
call dword [sym.imp.KERNEL32.dll_SearchPathA]
test eax, eax
jne 0x6423a5
mov eax, dword [ebx]
mov edi, dword [eax + 0x14]
mov ecx, edi
call dword [0x75cb80]
mov ecx, ebx
call edi
mov ecx, dword [ebp - 0x27c]
mov edi, eax
call fcn.00577240
jmp 0x64240f
lea eax, [ebp - 0x114]
push eax
call fcn.00710f40
pop ecx
push eax
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x278]
call fcn.005772d0
mov ecx, edi
mov byte [ebp - 4], 0
call fcn.00577240
mov esi, dword [ebp - 0x278]
push 0x105
push 0x160
lea eax, [ebp - 0x274]
push eax
push 0
push esi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
test eax, eax
je 0x6423fc
mov edi, dword [ebp - 0x274]
jmp 0x64240f
mov eax, dword [ebx]
mov edi, dword [eax + 0x14]
mov ecx, edi
call dword [0x75cb80]
mov ecx, ebx
call edi
mov edi, eax
lea ecx, [esi - 0x10]
call fcn.00577240
mov eax, edi
call fcn.0070c4b6
ret

Function at 0x6c93e2
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
call fcn.0072174e
pop ecx
test eax, eax
jne 0x6c9424
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str._s_s_X.tmp
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.0059cfc0
add esp, 0x18
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x6c93ea
leave
ret
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
leave
ret

Function at 0x725641
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.007254b7

Function at 0x72bf0e
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0072ba61
Function at 0x432004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
mov ebx, 0x40c7d0
nop
mov ecx, 0x68ee27f3
nop
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x43204e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x432024
nop
nop
nop
mov eax, section..rsrc
nop
mov ebx, 0x42f314
nop
mov ecx, 0x3aef3cda
nop
nop
nop
nop
test eax, eax
je 0x432084
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43206c
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219

Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..pdata
nop
mov ebx, 0x40de38
nop
nop
mov ecx, 0x45c545c0
test eax, eax
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x433024
nop
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
mov ecx, 0x36b122bc
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
nop
pop eax
nop
nop
nop
add eax, 0x403e6a
nop
sub eax, 0x403e10
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x431030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43101e
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp fcn.00401219

Function at 0x432004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..rsrc
mov ebx, 0x40c7d0
nop
nop
mov ecx, 0x61d82dbb
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
xor dword [eax], ecx
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x432024
nop
mov eax, section..data
nop
mov ebx, 0x42f314
mov ecx, 0x475d7f61
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x432084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43206c
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
pop eax
nop
nop
nop
add eax, 0x403d6a
nop
sub eax, 0x403d10
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
popal
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x41c500
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x427850], 0
jne 0x41c581
cmp dword [0x427870], 0
jne 0x41c530
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x427870], eax
test eax, eax
jne 0x41c530
push str.GetEnvironmentStrings_failed
call fcn.0041bd1c
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x427870]
jmp 0x41c544
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.004168a4
pop ecx
mov edi, eax
test eax, eax
jne 0x41c53c
lea edi, [ebp + 1]
push edi
call fcn.004161a8
pop ecx
mov ebx, eax
mov dword [0x427854], ebx
test ebx, ebx
jne 0x41c56e
xor eax, eax
jmp 0x41c644
push edi
mov edx, dword [0x427870]
push edx
push ebx
call fcn.00416754
add esp, 0xc
jmp 0x41c5a1
xor esi, esi
mov ebx, dword [0x427850]
jmp 0x41c59b
push eax
call fcn.004168a4
pop ecx
test eax, eax
jne 0x41c597
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x41c58b
lea ebx, [esi + 4]
push 4
mov dword [0x427858], ebx
inc ebx
push ebx
call fcn.00415c80
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x41c5c4
xor eax, eax
jmp 0x41c644
cmp dword [0x427850], 0
jne 0x41c5f5
xor esi, esi
mov ebx, dword [0x427854]
mov eax, dword [esp]
mov ebp, eax
jmp 0x41c5e6
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.004168a4
pop ecx
mov edi, eax
test eax, eax
jne 0x41c5dc
jmp 0x41c626
xor esi, esi
mov ebx, dword [0x427850]
mov eax, dword [esp]
mov edi, eax
jmp 0x41c620
push eax
call fcn.004168a4
pop ecx
test eax, eax
je 0x41c615
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x41c619
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x41c604
mov eax, dword [0x427850]
test eax, eax
je 0x41c636
push eax
call fcn.004161b8
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x427850], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x433072
mov ebx, 0x40de38
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x4bf37459
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x433060
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4330d2
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x339e7686
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4330c0
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x10001310
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 0xffffffffffffffff
push 0x10073e08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1ac
push esi
mov esi, ecx
push edi
mov dword [esp + 0x20], esi
lea ecx, [esi + 4]
call fcn.10001000
lea ecx, [esi + 0x14]
mov dword [esp + 0x1bc], 0
call fcn.10001000
lea ecx, [esi + 0x24]
mov byte [esp + 0x1bc], 1
call fcn.10001000
lea ecx, [esi + 0x34]
mov byte [esp + 0x1bc], 2
call fcn.10001000
lea eax, [esp + 0x24]
mov byte [esp + 0x1bc], 3
push eax
push 0x202
mov dword [esi], 0x100933b0
call dword [0x100dda20]
push 0
push 0
push 1
push 0
call dword [0x100dd94c]
lea ecx, [esp + 8]
push 3
lea edx, [esi + 0x54]
push ecx
push edx
mov dword [esi + 0x4c], eax
mov byte [esi + 0x57], 0
mov dword [esi + 0x48], 0xffffffff
mov byte [esp + 0x14], 0x2a
mov byte [esp + 0x15], 0x78
mov byte [esp + 0x16], 0x20
call dword [0x100dda10]
mov al, 0x50
mov cl, 0x74
mov byte [esp + 0x19], al
mov byte [esp + 0x1d], al
mov al, 0x6f
mov byte [esp + 0x20], cl
mov byte [esp + 0x1f], al
mov byte [esp + 0x21], al
mov byte [esp + 0x23], al
mov byte [esp + 0x26], al
mov byte [esp + 0x28], cl
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
mov byte [esp + 0xc], 0x45
mov byte [esp + 0xe], 0x69
mov byte [esp + 0xf], 0x6e
mov byte [esp + 0x10], 0x68
mov byte [esp + 0x12], 0x72
mov byte [esp + 0x16], 0x63
mov byte [esp + 0x18], 0x6c
mov byte [esp + 0x19], 0x48
mov byte [esp + 0x1b], 0x73
mov byte [esp + 0x1d], 0x59
mov byte [esp + 0x1e], 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0xc]
push ecx
push eax
push 0x100dce90
mov ecx, esi
call fcn.10001d60
mov ecx, dword [esp + 0x1b4]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x1b8
ret

Function at 0x10001d60
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x400
push ebx
push ebp
push esi
push edi
xor ebx, ebx
xor esi, esi
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x14]
mov dword [esp + 0x10], ebx
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x414]
lea edi, [esp + 0x10]
mov eax, ebx
xor edx, edx
div dword [esp + 0x41c]
mov ebp, dword [esp + 0x418]
xor eax, eax
mov byte [ebx + ecx], bl
inc ebx
add edi, 4
cmp ebx, 0x100
mov al, byte [edx + ebp]
mov dword [edi - 4], eax
jl 0x10001d8a
xor eax, eax
lea edi, [esp + 0x10]
mov dl, byte [eax + ecx]
mov ebp, dword [edi]
mov ebx, edx
and ebx, 0xff
add ebx, ebp
add esi, ebx
and esi, 0x800000ff
jns 0x10001dda
dec esi
or esi, 0xffffff00
inc esi
mov bl, byte [esi + ecx]
add edi, 4
mov byte [eax + ecx], bl
inc eax
cmp eax, 0x100
mov byte [esi + ecx], dl
jl 0x10001db9
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x400
ret 0xc
Function at 0x10001e00
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [esp + 0xc]
push esi
push edi
xor ecx, ecx
xor esi, esi
xor edi, edi
test eax, eax
jbe 0x10001e8c
mov eax, dword [esp + 0xc]
push ebx
push ebp
mov ebp, dword [esp + 0x18]
inc ecx
and ecx, 0x800000ff
jns 0x10001e2b
dec ecx
or ecx, 0xffffff00
inc ecx
mov dl, byte [ecx + eax]
mov ebx, edx
and ebx, 0xff
add esi, ebx
and esi, 0x800000ff
jns 0x10001e48
dec esi
or esi, 0xffffff00
inc esi
mov bl, byte [esi + eax]
mov byte [esp + 0x18], dl
mov byte [ecx + eax], bl
mov ebx, dword [esp + 0x18]
mov byte [esi + eax], dl
xor edx, edx
mov dl, byte [ecx + eax]
and ebx, 0xff
add edx, ebx
and edx, 0x800000ff
jns 0x10001e76
dec edx
or edx, 0xffffff00
inc edx
mov dl, byte [edx + eax]
mov bl, byte [edi + ebp]
xor bl, dl
mov edx, dword [esp + 0x1c]
mov byte [edi + ebp], bl
inc edi
cmp edi, edx
jb 0x10001e1a
pop ebp
pop ebx
pop edi
pop esi
ret 0xc

Function at 0x10001fa0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x14
push ebx
mov ebx, dword [esp + 0x1c]
push esi
push edi
mov eax, dword [ebx]
push 0
mov edi, ecx
push 0x80
mov ecx, dword [ebx + 4]
push 3
push 0
push 2
lea edx, [edi + 0x18]
push 0x40000000
push edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x40], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [esp + 0x24]
mov esi, eax
lea eax, [esp + 0xc]
push 0
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x10]
push 0
add eax, 0xfffffff8
push edx
add ebx, 8
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x24]
add eax, ecx
mov ecx, dword [0x100dcf90]
mov dword [esp + 0x24], eax
lea edx, [esp + 0xc]
push 4
lea eax, [esp + 0x19]
push edx
push eax
mov byte [esp + 0x20], 0xdb
call fcn.10008d40
lea ecx, [esp + 0x24]
push 4
lea edx, [esp + 0x1d]
push ecx
mov ecx, dword [0x100dcf90]
push edx
call fcn.10008d40
push 0x14
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [esp + 0x14]
push 9
push eax
mov ecx, edi
call fcn.10008050
pop edi
pop esi
pop ebx
add esp, 0x14
ret 8
Function at 0x10002070
Capabilities:
Get file size

Disassembly:
sub esp, 0x18
push esi
push edi
push 0
mov edi, ecx
push 0x80
push 3
push 0
push 0
lea eax, [edi + 0x18]
push accept
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x100020b0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, edi
call fcn.10002140
pop edi
pop esi
add esp, 0x18
ret 4
lea ecx, [esp + 8]
mov dword [esp + 8], 0
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x100dcf90]
lea edx, [esp + 8]
push 4
lea eax, [esp + 0x15]
push edx
push eax
mov byte [esp + 0x1c], 0xdd
call fcn.10008d40
lea ecx, [esp + 0xc]
push 4
lea edx, [esp + 0x19]
push ecx
mov ecx, dword [0x100dcf90]
push edx
call fcn.10008d40
mov ecx, dword [0x100dcf90]
push 4
lea eax, [esp + 0x1d]
push 0x100dcf94
push eax
call fcn.10008d40
push 0x12c
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [esp + 0x10]
push 0xd
push ecx
mov ecx, edi
call fcn.10008050
pop edi
pop esi
add esp, 0x18
ret 4
Function at 0x100026e0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100933c8
push 0x1000d4be
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov edi, eax
mov dword [ebp - 0x24], edi
test edi, edi
je 0x1000283d
push esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, edi
mov dword [ebp - 0x1c], esi
cmp byte [edi], 0x5c
jne 0x1000278c
lea eax, [edi + 1]
cmp byte [eax], 0x5c
jne 0x1000278c
mov esi, eax
mov dword [ebp - 0x1c], esi
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x10002767
cmp al, 0x5c
je 0x10002767
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
jmp 0x1000274f
cmp byte [esi], 0
je 0x10002770
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x10002785
cmp al, 0x5c
je 0x10002785
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
jmp 0x1000276d
cmp byte [esi], 0
je 0x100027ab
jmp 0x100027a7
lea eax, [edi + 1]
cmp byte [eax], 0x3a
jne 0x100027ab
mov esi, eax
mov dword [ebp - 0x1c], esi
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x100027ab
cmp al, 0x5c
jne 0x100027ab
inc esi
mov dword [ebp - 0x1c], esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov al, byte [esi]
test al, al
je 0x10002801
cmp al, 0x5c
jne 0x100027f3
mov byte [esi], 0
push edi
call ebx
mov dword [ebp - 0x20], eax
cmp eax, 0xffffffff
jne 0x100027e6
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x100027f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x100027f0
push edi
jmp 0x10002834
and eax, 0x10
cmp al, 0x10
je 0x100027f0
push edi
jmp 0x10002834
mov byte [esi], 0x5c
push esi
call dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
mov dword [ebp - 0x1c], esi
jmp 0x100027b1
mov dword [ebp - 4], 0xffffffff
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov dword [ebp - 4], 0xffffffff
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x100031f0
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
sub esp, 0x464
push ebx
push ebp
push esi
mov esi, dword [esp + 0x474]
mov dword [esp + 0x20], ecx
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x168]
push esi
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov cl, byte [eax + esi - 1]
mov edi, 0x100d1070
cmp cl, 0x5c
jne 0x1000322f
mov edi, 0x100dcf98
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
mov al, 0x2a
mov byte [esp + 0x1c], al
mov byte [esp + 0x1e], al
push edi
lea eax, [esp + 0x1c]
push esi
lea ecx, [esp + 0x170]
mov bl, 0x73
push eax
push ecx
mov byte [esp + 0x28], 0x25
mov byte [esp + 0x29], bl
mov byte [esp + 0x2a], 0x25
mov byte [esp + 0x2b], bl
mov byte [esp + 0x2d], 0x2e
mov byte [esp + 0x2f], 0
call ebp
add esp, 0x10
lea edx, [esp + 0x28]
lea eax, [esp + 0x168]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x20], eax
jne 0x1000329c
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x464
ret 4
mov byte [esp + 0x11], bl
mov byte [esp + 0x13], bl
mov byte [esp + 0x15], bl
mov byte [esp + 0x10], 0x25
mov byte [esp + 0x12], 0x25
mov byte [esp + 0x14], 0x25
mov byte [esp + 0x16], 0
mov bl, 1
cmp byte [esp + 0x54], 0x2e
je 0x1000333a
test byte [esp + 0x28], 0x10
je 0x100032f8
lea ecx, [esp + 0x54]
lea edx, [esp + 0x10]
push ecx
push edi
push esi
lea eax, [esp + 0x37c]
push edx
push eax
call ebp
add esp, 0x14
lea ecx, [esp + 0x370]
push ecx
mov ecx, dword [esp + 0x28]
call fcn.100031f0
jmp 0x1000333a
lea edx, [esp + 0x54]
lea eax, [esp + 0x10]
push edx
push edi
push esi
lea ecx, [esp + 0x278]
push eax
push ecx
call ebp
mov al, byte [esp + 0x3c]
add esp, 0x14
test bl, al
je 0x1000332c
lea edx, [esp + 0x26c]
push 0x80
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [esp + 0x26c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x28]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x100032be
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop edi
pop esi
test eax, eax
pop ebp
pop ebx
setne al
add esp, 0x464
ret 4