joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2d41c14
Capabilities:
Encode data using base64
Encrypt data using rc4 ksa

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov dword [esp], ecx
mov esi, eax
mov ebp, edx
xor ebx, ebx
xor edi, edi
mov eax, dword [esp]
mov ecx, 3
cdq
idiv ecx
test eax, eax
jle 0x2d41cb2
xor edx, edx
mov dl, byte [esi + ebx]
shr edx, 2
mov dl, byte [edx + 0x4a9eb4]
mov byte [ebp + edi], dl
mov dl, byte [esi + ebx]
and dl, 3
and edx, 0xff
shl edx, 4
xor ecx, ecx
mov cl, byte [esi + ebx + 1]
shr ecx, 4
add edx, ecx
mov dl, byte [edx + 0x4a9eb4]
push edx
pop edx
mov byte [ebp + edi + 1], dl
mov dl, byte [esi + ebx + 1]
and dl, 0xf
and edx, 0xff
shl edx, 2
xor ecx, ecx
mov cl, byte [esi + ebx + 2]
shr ecx, 6
add edx, ecx
mov dl, byte [edx + 0x4a9eb4]
push edx
pop edx
mov byte [ebp + edi + 2], dl
mov dl, byte [esi + ebx + 2]
and dl, 0x3f
and edx, 0xff
mov dl, byte [edx + 0x4a9eb4]
mov byte [ebp + edi + 3], dl
add edi, 4
add ebx, 3
dec eax
jne 0x2d41c33
mov eax, dword [esp]
mov ecx, 3
cdq
idiv ecx
dec edx
je 0x2d41cc8
dec edx
je 0x2d41cfd
jmp 0x2d41d4e
xor eax, eax
mov al, byte [esi + ebx]
shr eax, 2
mov al, byte [eax + 0x4a9eb4]
mov byte [ebp + edi], al
mov al, byte [esi + ebx]
and al, 3
and eax, 0xff
shl eax, 4
mov al, byte [eax + 0x4a9eb4]
mov byte [ebp + edi + 1], al
mov byte [ebp + edi + 2], 0x3d
mov byte [ebp + edi + 3], 0x3d
jmp 0x2d41d4e
xor eax, eax
mov al, byte [esi + ebx]
shr eax, 2
mov al, byte [eax + 0x4a9eb4]
mov byte [ebp + edi], al
mov al, byte [esi + ebx]
and al, 3
and eax, 0xff
shl eax, 4
xor edx, edx
mov dl, byte [esi + ebx + 1]
shr edx, 4
add eax, edx
mov al, byte [eax + 0x4a9eb4]
mov byte [ebp + edi + 1], al
mov al, byte [esi + ebx + 1]
and al, 0xf
and eax, 0xff
shl eax, 2
mov al, byte [eax + 0x4a9eb4]
mov byte [ebp + edi + 2], al
mov byte [ebp + edi + 3], 0x3d
mov eax, dword [esp]
add eax, 2
mov ecx, 3
cdq
idiv ecx
shl eax, 2
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x2d42b60
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
test esi, esi
jbe 0x2d42b80
mov ecx, 1
mov ebx, edx
add ebx, ecx
dec ebx
mov bl, byte [ebx]
mov edi, eax
add edi, ecx
dec edi
xor byte [edi], bl
inc ecx
dec esi
jne 0x2d42b6e
pop edi
pop esi
pop ebx
ret
Function at 0x2d43f04
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov esi, eax
xor edx, edx
push ebp
push 0x484ccc
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, esi
call fcn.02cc3894
add eax, 2
mov ecx, 3
cdq
idiv ecx
mov edx, eax
shl edx, 2
mov eax, dword [ebp - 4]
call fcn.02cc3c20
mov eax, esi
call fcn.02cc3894
add eax, 2
mov ecx, 3
cdq
idiv ecx
mov edi, eax
test edi, edi
jle 0x2d4404f
mov ebx, 1
mov eax, esi
call fcn.02cc3894
lea edx, [ebx + ebx*2]
cmp eax, edx
jge 0x2d43f92
mov eax, esi
call fcn.02cc3894
mov ecx, eax
mov eax, ebx
dec eax
lea eax, [eax + eax*2]
sub ecx, eax
mov eax, ebx
dec eax
lea eax, [eax + eax*2]
lea eax, [esi + eax]
lea edx, [ebp - 7]
call fcn.02cc1cd8
jmp 0x2d43fa8
mov eax, ebx
dec eax
lea eax, [eax + eax*2]
lea eax, [esi + eax]
lea edx, [ebp - 7]
mov ecx, 3
call fcn.02cc1cd8
mov al, byte [ebp - 7]
mov edx, eax
and dl, 0xfc
and edx, 0xff
shr edx, 2
mov ecx, 0x484cf0
mov dl, byte [ecx + edx]
mov byte [ebp - 0xb], dl
and al, 3
and eax, 0xff
shl eax, 4
mov dl, byte [ebp - 6]
and dl, 0xf0
and edx, 0xff
shr edx, 4
or eax, edx
mov edx, 0x484cf0
mov al, byte [edx + eax]
mov byte [ebp - 0xa], al
mov dl, byte [ebp - 6]
and dl, 0xf
and edx, 0xff
shl edx, 2
mov al, byte [ebp - 5]
mov ecx, eax
and cl, 0xc0
and ecx, 0xff
shr ecx, 6
or edx, ecx
mov ecx, 0x484cf0
mov dl, byte [ecx + edx]
mov byte [ebp - 9], dl
and al, 0x3f
and eax, 0xff
mov edx, 0x484cf0
mov al, byte [edx + eax]
mov byte [ebp - 8], al
mov eax, dword [ebp - 4]
call fcn.02cc3aec
mov edx, ebx
dec edx
shl edx, 2
lea edx, [eax + edx]
lea eax, [ebp - 0xb]
mov ecx, 4
call fcn.02cc1cd8
inc ebx
dec edi
jne 0x2d43f60
mov eax, esi
call fcn.02cc3894
mov ecx, 3
cdq
idiv ecx
dec edx
jne 0x2d44095
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.02cc3894
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.02cc3aec
mov byte [eax + ebx - 2], 0x3d
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.02cc3894
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.02cc3aec
mov byte [eax + ebx - 1], 0x3d
jmp 0x2d440c2
mov eax, esi
call fcn.02cc3894
mov ecx, 3
cdq
idiv ecx
cmp edx, 2
jne 0x2d440c2
mov eax, dword [ebp - 4]
mov eax, dword [eax]
call fcn.02cc3894
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.02cc3aec
mov byte [eax + ebx - 1], 0x3d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x2d440de
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x2d49074
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x118], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x489e0d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, 0x489e24
call fcn.02cc360c
lea eax, [ebp - 0x14]
mov edx, ebx
call fcn.02cc3650
mov edx, dword [ebp - 0x14]
mov eax, 0x489e30
call fcn.02cc3bd8
test eax, eax
jg 0x2d490d9
lea eax, [ebp - 0x14]
mov ecx, dword [ebp - 0x14]
mov edx, 0x489e3c
call fcn.02cc38e0
xor eax, eax
push ebp
push 0x489de2
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
push 0
push 0x489e44
call fcn.02cedbac
mov ebx, eax
test ebx, ebx
je 0x2d491d8
push 0
push 0x80000000
push 0
push 0
mov eax, dword [ebp - 0x14]
call fcn.02cc3a94
push eax
push ebx
call fcn.02cedbb4
mov esi, eax
xor eax, eax
mov dword [ebp - 0xc], eax
mov edi, 0x194
mov dword [ebp - 0x10], pe_nt_image_headers32
lea eax, [ebp - 0x114]
xor ecx, ecx
mov edx, dword [ebp - 0x10]
call fcn.02cc2144
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x114]
push eax
push 0x13
push esi
call fcn.02cedb9c
test eax, eax
je 0x2d49179
lea eax, [ebp - 0x118]
lea edx, [ebp - 0x114]
call fcn.02cc37b0
mov eax, dword [ebp - 0x118]
call fcn.02cc8058
mov edi, eax
cmp edi, 0x194
jae 0x2d491c8
xor eax, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], pe_nt_image_headers32
lea eax, [ebp - 0x114]
xor ecx, ecx
mov edx, dword [ebp - 0x10]
call fcn.02cc2144
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x114]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
call fcn.02cedb9c
test eax, eax
je 0x2d491c8
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x114]
call fcn.02cc37b0
test esi, esi
je 0x2d491d2
push esi
call fcn.02cedba4
push ebx
call fcn.02cedba4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x2d491ec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x489e14
lea eax, [ebp - 0x118]
call fcn.02cc35b8
lea eax, [ebp - 0x14]
call fcn.02cc35b8
ret

Function at 0x2d52fa8
Capabilities:
Hash data with crc32

Disassembly:
push ebx
push esi
xor esi, esi
mov ecx, 0x4b2fc4
mov eax, esi
mov edx, 8
mov ebx, eax
and ebx, 1
test bl, bl
je 0x2d52fca
shr eax, 1
xor eax, 0xedb88320
jmp 0x2d52fcc
shr eax, 1
dec edx
jne 0x2d52fb8
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x2d52fb1
mov byte [0x4b33c4], 1
pop esi
pop ebx
ret

Function at 0x2d52fe8
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
cmp byte [0x4b33c4], 0
jne 0x2d52fff
call fcn.02d52fa8
mov eax, edi
dec eax
test eax, eax
jl 0x2d53028
inc eax
xor edx, edx
xor ecx, ecx
mov cl, byte [esi + edx]
xor ecx, ebx
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4b2fc4]
shr ebx, 8
xor ecx, ebx
mov ebx, ecx
inc edx
dec eax
jne 0x2d53009
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x2d55578
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov ebx, eax
xor eax, eax
mov al, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
mov al, byte [eax]
dec al
je 0x2d555a9
dec al
je 0x2d555e5
dec al
je 0x2d55629
dec al
je 0x2d55694
jmp 0x2d5571e
mov esi, dword [ebx + 0x24]
inc esi
mov edi, dword [ebx + 0x20]
sub edi, esi
jb 0x2d5571e
inc edi
mov edx, esi
sub edx, dword [ebx + 0x24]
xor ecx, ecx
mov cl, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
mov dl, byte [ecx + edx]
xor eax, eax
mov al, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x2d555b9
jmp 0x2d5571e
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x2d5571e
mov esi, 1
mov al, byte [ebx + 0x48]
mov edx, eax
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov dl, byte [edx + esi]
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
xor eax, eax
mov al, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x2d555f5
jmp 0x2d5571e
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x2d5571e
mov esi, 1
mov al, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov ecx, esi
dec ecx
mov edx, dword [ebx + 0x24]
cmp ecx, edx
jae 0x2d55657
xor ebp, ebp
jmp 0x2d55668
mov ecx, esi
sub ecx, edx
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx ebp, byte [edx + ecx]
add eax, ebp
sar eax, 1
jns 0x2d55671
adc eax, 0
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
add al, byte [edx + esi]
and al, 0xff
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x2d55639
jmp 0x2d5571e
xor ebp, ebp
xor eax, eax
mov dword [esp + 4], eax
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x2d5571e
mov esi, 1
mov al, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov edx, esi
dec edx
cmp edx, dword [ebx + 0x24]
jb 0x2d556ec
mov edx, esi
sub edx, dword [ebx + 0x24]
xor ecx, ecx
mov cl, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx ebp, byte [ecx + edx]
mov dl, byte [ebx + 0x48]
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov ecx, esi
sub ecx, dword [ebx + 0x24]
movzx edx, byte [edx + ecx]
mov dword [esp + 4], edx
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
mov dword [esp], edx
mov cl, byte [esp + 4]
push eax
mov eax, ebp
pop edx
call fcn.02d53030
add al, byte [esp]
and al, 0xff
xor edx, edx
mov dl, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x2d556a8
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x401559
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1424
call fcn.00410c80
and byte [ebp - 0x24], 0
push ebx
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x23]
stosd dword es:[edi], eax
and byte [ebp - 0x18], 0
lea esi, [ecx + 0x1c]
stosd dword es:[edi], eax
stosb byte es:[edi], al
xor eax, eax
lea edi, [ebp - 0x17]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0xc], ecx
mov ecx, esi
stosb byte es:[edi], al
call fcn.00402077
push dword [esi + 4]
mov ebx, str.Languages
push 1
push str.count
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov edi, dword [ebp - 0xc]
and dword [ebp - 4], 0
test eax, eax
mov dword [edi + 0x5c], eax
jle 0x40160c
lea eax, [edi + 0x60]
mov dword [ebp - 8], eax
push dword [ebp - 4]
lea eax, [ebp - 0x24]
push str.key_d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov ecx, esi
call fcn.00402077
push dword [esi + 4]
lea eax, [ebp - 0x18]
push 0xa
push eax
lea eax, [ebp - 0x24]
push str.0x0009
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x16]
push eax
call fcn.0040cfa0
inc dword [ebp - 4]
pop ecx
mov ecx, dword [ebp - 8]
add dword [ebp - 8], 2
mov word [ecx], ax
mov eax, dword [ebp - 4]
cmp eax, dword [edi + 0x5c]
jl 0x4015b8
mov ecx, esi
call fcn.00402077
push dword [esi + 4]
lea eax, [ebp - 0x18]
push 0xa
push eax
push str.0x0009
push str.Default
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x16]
push eax
call fcn.0040cfa0
and byte [ebp - 0x424], 0
pop ecx
mov word [edi + 0x58], ax
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x423]
rep stosd dword es:[edi], eax
and dword [ebp - 4], 0
mov ecx, esi
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.00402077
push dword [esi + 4]
lea eax, [ebp - 0x424]
mov edi, 0x4155f0
push 0x400
push eax
push edi
push str.RequireExactLangMatch
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [ebp - 0x424]
lea eax, [ebp - 0x424]
test ecx, ecx
lea ebx, [ebp - 0x424]
je 0x4016d5
mov ecx, dword [ebp - 0xc]
add ecx, 0x128
mov dword [ebp - 8], ecx
mov cl, byte [ebx]
test cl, cl
je 0x4016d5
cmp cl, 0x2c
je 0x4016b0
inc ebx
jmp 0x4016d1
and byte [ebx], 0
add eax, 2
push eax
call fcn.0040cfa0
test eax, eax
pop ecx
je 0x4016ce
mov ecx, dword [ebp - 8]
inc dword [ebp - 4]
add dword [ebp - 8], 2
mov word [ecx], ax
inc ebx
mov eax, ebx
test ebx, ebx
jne 0x4016a2
add eax, 2
push eax
call fcn.0040cfa0
test eax, eax
pop ecx
je 0x4016f1
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
mov word [edx + ecx*2 + 0x128], ax
mov ecx, esi
call fcn.00402077
push dword [esi + 4]
lea eax, [ebp - 0x1424]
push 0x1000
push eax
push edi
push str.cmdline
push str.Startup
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 0x1424]
push eax
call fcn.00401175
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402867
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push esi
mov esi, ecx
mov eax, dword [esi + 4]
cmp byte [eax + 0x1f0], 0
jne 0x402980
cmp byte [eax + 0x1f1], 0
jne 0x402980
mov eax, dword [ebp + 8]
push 5
push 0x75
mov dword [esi + 0x7c], eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x402980
push edi
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
and byte [ebp - 0x40], 0
push 0xc
mov dword [ebp + 8], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x3f]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov ax, word [esi + 0xc]
pop edi
cmp ax, 0x804
jne 0x4028dc
push 0x41410c
jmp 0x402906
cmp ax, 0x404
jne 0x4028e9
push 0x414104
jmp 0x402906
and eax, 0xff
cmp ax, 0x11
jne 0x4028fb
push str.MS_UI_Gothic
jmp 0x402906
cmp ax, 0x12
jne 0x402951
push 0x4140ec
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push dword [ebp + 8]
lea ecx, [ebp - 0xc]
call fcn.0040231c
lea eax, [ebp - 0x40]
push 9
push eax
lea ecx, [ebp - 0xc]
call fcn.004024c7
push esi
push 0x4025e1
push dword [esi + 8]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_DialogBoxIndirectParamA]
lea ecx, [ebp - 0xc]
mov dword [esi + 0x78], eax
call fcn.004023ab
jmp 0x402968
push esi
push 0x4025e1
push dword [esi + 8]
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.USER32.dll_DialogBoxIndirectParamA]
mov dword [esi + 0x78], eax
push dword [esi + 0x78]
call dword [sym.imp.USER32.dll_SetActiveWindow]
push 5
push dword [esi + 0x78]
call dword [sym.imp.USER32.dll_ShowWindow]
xor eax, eax
jmp 0x402983
or eax, 0xffffffff
pop esi
leave
ret 4
Function at 0x402b5b
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov ecx, dword [ebp + 0x14]
push edi
mov dword [esi], eax
xor eax, eax
lea edi, [esi + 0x18]
mov dword [esi + 0x14], ecx
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov word [esi + 0xc], ax
push eax
mov ecx, edi
mov dword [edi + 0xc], 0x412314
mov dword [edi + 0x14], 0x41231c
call fcn.00401a66
mov ebx, 0x412310
push 0
mov dword [edi], ebx
lea edi, [esi + 0x34]
mov ecx, edi
mov dword [edi + 0xc], 0x412314
mov dword [edi + 0x14], 0x41231c
call fcn.00401a66
mov eax, dword [ebp + 0x18]
mov dword [edi], ebx
and dword [esi + 0x50], 0
lea edi, [esi + 0x58]
mov dword [esi + 0x54], eax
push 0
mov ecx, edi
mov dword [edi + 0xc], 0x412314
mov dword [edi + 0x14], 0x41231c
call fcn.00401a66
mov dword [edi], ebx
xor eax, eax
and byte [esi + 0x80], al
lea edi, [esi + 0x88]
mov dword [esi + 0x74], eax
mov dword [esi + 0x78], eax
mov dword [esi + 0x7c], eax
mov dword [esi + 0x84], eax
push eax
mov ecx, edi
mov dword [edi + 0xc], 0x412314
mov dword [edi + 0x14], 0x41231c
call fcn.00401a66
lea ecx, [esi + 0xa8]
push 1
mov dword [edi], ebx
call fcn.00403f93
push 1
lea ecx, [esi + 0xc4]
call fcn.00403f93
lea eax, [esi + 0x34]
push 0x104
push eax
lea ecx, [ebp - 0x10]
call fcn.00403b2e
push 0x104
lea ecx, [ebp - 0x10]
call fcn.00403b6f
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [ebp - 0x10]
call fcn.00403b48
lea eax, [ebp - 0x28]
lea ecx, [esi + 0x34]
push eax
call fcn.004042cb
push eax
lea ecx, [esi + 0x34]
call fcn.00401bcb
lea ecx, [ebp - 0x28]
call fcn.00401b39
lea eax, [ebp - 0x1c]
push 0
push eax
call fcn.00403ff1
pop ecx
pop ecx
push eax
mov ecx, edi
call fcn.00401bcb
lea ecx, [ebp - 0x1c]
call fcn.00401b39
push str.issetup
mov ecx, edi
call fcn.004049b4
push edi
mov ecx, edi
call fcn.004045e8
mov ecx, edi
call fcn.00402077
push 0
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0
lea ecx, [ebp - 0x44]
push dword [ebp + 0x10]
mov dword [ebp - 0x38], 0x412314
mov dword [ebp - 0x30], 0x41231c
call fcn.00403a2f
mov dword [ebp - 0x44], ebx
mov ebx, str.setup.ini
push ebx
lea ecx, [ebp - 0x44]
call fcn.004049b4
lea ecx, [ebp - 0x6c]
call fcn.00402d86
push 0
lea eax, [ebp - 0x44]
sub esp, 0x1c
mov ecx, esp
push 1
push eax
call fcn.00403fc0
lea ecx, [ebp - 0x6c]
call fcn.00402dbd
test al, al
je 0x402d3a
push ebx
lea eax, [ebp - 0x1c]
push edi
push eax
call fcn.00404e5d
add esp, 0xc
lea ecx, [ebp - 0x44]
push eax
call fcn.00401bcb
lea ecx, [ebp - 0x1c]
call fcn.00401b39
lea eax, [ebp - 0x44]
lea ecx, [ebp - 0x6c]
push eax
call fcn.00403326
push 0x204
call fcn.0040cf8a
test eax, eax
pop ecx
je 0x402d59
lea ecx, [ebp - 0x44]
push ecx
mov ecx, eax
push dword [ebp + 0xc]
call fcn.0040105a
jmp 0x402d5b
xor eax, eax
lea ecx, [ebp - 0x6c]
mov dword [esi + 4], eax
mov dword [ebp - 0x6c], 0x412354
call fcn.004032b6
lea ecx, [ebp - 0x64]
call fcn.00401b39
lea ecx, [ebp - 0x44]
call fcn.00401b39
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x403326
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov dword [ebp - 4], ecx
push esi
push edi
lea ecx, [ebp - 0x2c]
call fcn.00402d86
push 2
sub esp, 0x1c
mov ecx, esp
push 1
push dword [ebp + 8]
call fcn.00403fc0
lea ecx, [ebp - 0x2c]
call fcn.004033eb
test al, al
jne 0x403372
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0x412354
call fcn.004032b6
lea ecx, [ebp - 0x24]
call fcn.00401b39
xor al, al
jmp 0x4033e4
mov esi, 0x1400
push esi
call fcn.0040cf8a
mov ebx, eax
push esi
push 0
push ebx
call fcn.004108c0
add esp, 0x10
mov ecx, dword [ebp - 4]
push esi
push ebx
call fcn.004034d9
mov edi, eax
test edi, edi
je 0x4033bf
cmp edi, 0xffffffff
je 0x4033bf
lea eax, [ebp + 8]
push 0
push eax
push edi
push ebx
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
push 0
push ebx
call fcn.004108c0
add esp, 0xc
jmp 0x40338b
lea ecx, [ebp - 0x2c]
call fcn.004032b6
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0x412354
call fcn.004032b6
lea ecx, [ebp - 0x24]
call fcn.00401b39
cmp edi, 0xffffffff
setne al
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x403641
Capabilities:
Delete directory
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x178
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x10]
test eax, eax
je 0x403660
push eax
call dword [sym.imp.OLEAUT32.dll_VariantInit]
test eax, eax
jne 0x403667
xor eax, eax
jmp 0x403772
push ebx
push edi
push 0x41418c
lea eax, [ebp - 0x1c]
push esi
push eax
call fcn.00404e5d
mov edi, eax
add esp, 0xc
mov ecx, edi
call fcn.00402077
mov edi, dword [edi + 4]
lea eax, [ebp - 0x178]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
lea ecx, [ebp - 0x1c]
mov ebx, eax
call fcn.00401b39
cmp ebx, 0xffffffff
je 0x40374b
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpA]
lea eax, [ebp - 0x14c]
push 0x414188
push eax
call edi
test eax, eax
je 0x403734
lea eax, [ebp - 0x14c]
push 0x414184
push eax
call edi
test eax, eax
je 0x403734
test byte [ebp - 0x178], 0x10
jne 0x403734
lea eax, [ebp - 0x14c]
push 0
push eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x10], 0x412314
mov dword [ebp - 8], 0x41231c
call fcn.00403a2f
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x412310
push eax
lea eax, [ebp - 0x38]
push esi
push eax
call fcn.00404ce8
mov edi, eax
add esp, 0xc
mov ecx, edi
call fcn.00402077
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x38]
call fcn.00401b39
lea ecx, [ebp - 0x1c]
call fcn.00401b39
lea eax, [ebp - 0x178]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
cmp eax, 1
je 0x4036a8
mov edi, dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
call edi
mov ecx, esi
call fcn.00402077
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
cmp ebx, 0xffffffff
mov esi, eax
je 0x40376e
push ebx
call edi
pop edi
mov eax, esi
pop ebx
pop esi
leave
ret
Function at 0x4037bf
Capabilities:
Delete file
Get common file path

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 8]
mov dword [esi], eax
mov eax, dword [esp + 0x14]
push ebx
push 0x104
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebx
call edi
cmp byte [eax + esi + 7], 0x5c
jne 0x4037f8
push ebx
call edi
and byte [eax + esi + 7], 0
lea edi, [esi + 0x10c]
push ebx
push str._s_isdelet.ini
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, esi
pop edi
pop esi
pop ebx
ret 8