joyce8/EMBER2024-capa huggingface dataset:
Function at 0x418987
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x43c320]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4189cd
cmp word [ebx], dx
jne 0x4189cd
or byte [eax + edi + 0x28], 4
jmp 0x4189d2
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x418b35
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x418b15
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x418a13
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x418a49
cmp eax, edx
jae 0x418a57
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x4189ee
jmp 0x418b35
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x418b10
cmp dword [ebp - 0x18], 0
je 0x418b10
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x43c320]
test byte [eax + edi + 0x28], 0x48
je 0x418ae6
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x418aaa
mov word [esi], cx
jmp 0x418ae1
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x43c320]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x43c320]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x43c320]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x418b35
pop eax
cmp word [ebp - 4], ax
jne 0x418af6
cmp esi, ebx
jne 0x418af6
mov word [esi], ax
jmp 0x418b32
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0041955a
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x418b35
push 0xd
pop eax
jmp 0x418af1
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x43c320]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x418b2f
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x418b35
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x41be5b
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42f2f0
push 0x42f2e8
push str.FlsAlloc
push 0x1f
call fcn.0041bd1a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41be8f
push dword [ebp + 8]
mov ecx, esi
call dword [0x4281b0]
call esi
jmp 0x41be95
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41bed9
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42f300
push 0x42f2f8
push str.FlsGetValue
push 0x21
call fcn.0041bd1a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41bf10
push dword [ebp + 8]
mov ecx, esi
call dword [0x4281b0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x41bf18
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42f308
push 0x42f300
push str.FlsSetValue
push 0x22
call fcn.0041bd1a
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41bf52
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x4281b0]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]

Function at 0x41d3d3
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x436040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x41d416
call fcn.00418814
mov dword [eax], 0xf
call fcn.00418827
mov dword [eax], 0xd
call fcn.00417d5f
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040a1d3
leave
ret
test eax, eax
jne 0x41d41d
inc eax
jmp 0x41d40a
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x41d408
xor eax, eax
cmp ecx, 1
setne al
jmp 0x41d40a

Function at 0x41dcaf
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041d7ca
Function at 0x41e624
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x436040]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x41e66f
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0041e7bf
test al, al
jne 0x41e669
sub edx, 2
cmp edx, edi
jne 0x41e64f
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x41e691
lea eax, [edi + 2]
cmp edx, eax
je 0x41e691
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0041e570
add esp, 0x10
jmp 0x41e78b
push esi
lea ecx, [ebp - 0x255]
call fcn.0041e7bf
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41e6d4
push dword [ebp - 0x25c]
jmp 0x41e681
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x41e711
cmp word [ebp - 0x226], 0
je 0x41e732
cmp word [ebp - 0x226], ax
jne 0x41e711
cmp word [ebp - 0x224], 0
je 0x41e732
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0041e570
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x41e77e
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x41e6eb
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x41e766
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x41e78b
push 0x41e3a0
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00423b40
add esp, 0x10
jmp 0x41e75b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a1d3
leave
ret
Function at 0x41f097
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x41f134
push ebx
push esi
call fcn.0041f060
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0041d4fe
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41f0e1
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41f133
push edi
push eax
call fcn.0041a80a
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41f101
call fcn.00417b00
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41f132
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041d4fe
add esp, 0x20
test eax, eax
jne 0x41f120
push edi
call fcn.00417b00
jmp 0x41f128
push ebx
call fcn.00417b00
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x41f137
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x41f148
pop esi
ret
push ebx
push edi
push esi
call fcn.0041f060
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0041a80a
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x41f170
push ebx
push esi
push edi
call fcn.0040aec0
add esp, 0xc
push 0
call fcn.00417b00
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0x424ec5
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.00424e41
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x425034
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x425034
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x424fe9
jg 0x424f21
test eax, eax
je 0x424fdf
push 1
push 0x1000
call fcn.0041bb8a
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x424f44
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x424fd6
push 0x8000
push ebx
call fcn.004172b5
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x424f6d
jg 0x424f68
cmp ecx, 0x1000
jb 0x424f6d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0041a096
add esp, 0x10
cmp eax, 0xffffffff
je 0x424fb2
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x424f68
jl 0x424f99
test ecx, ecx
jne 0x424f5a
push dword [ebp - 0xc]
push ebx
call fcn.004172b5
push esi
call fcn.00417b00
add esp, 0xc
xor ebx, ebx
jmp 0x425042
cmp byte [edi + 0x24], 0
je 0x424fc9
cmp dword [edi + 0x20], 5
jne 0x424fc9
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x424fd4
mov ebx, dword [edi + 0x18]
jmp 0x424fd6
xor ebx, ebx
push esi
call fcn.00417b00
pop ecx
jmp 0x425042
test ecx, ecx
jg 0x424fab
jl 0x424fe9
test eax, eax
jae 0x424fab
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0041955a
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x425009
cmp byte [edi + 0x1c], 0
je 0x424fab
jmp 0x42503a
push ebx
call fcn.00416002
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x424fab
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x425042
cmp byte [edi + 0x1c], 0
je 0x42503f
mov ebx, dword [edi + 0x18]
jmp 0x425042
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0041955a
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x426cb0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x426cdd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x426cdd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x1f40440
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1992000]
push edi
or ebp, 0xffffffff
jmp 0x1f40462
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x1f40469
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1f40458
mov eax, 1
add ebx, ebx
jne 0x1f4047b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x1f4048c
jne 0x1f404ab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1f404ab
dec eax
add ebx, ebx
jne 0x1f40498
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x1f40470
add ebx, ebx
jne 0x1f404a7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x1f404fd
xor ecx, ecx
sub eax, 3
jb 0x1f404c3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1f40532
sar eax, 1
mov ebp, eax
jmp 0x1f404ce
add ebx, ebx
jne 0x1f404ce
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1f4049c
inc ecx
add ebx, ebx
jne 0x1f404dc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1f4049c
add ebx, ebx
jne 0x1f404e9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x1f404de
jne 0x1f404fa
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1f404de
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x1f4051c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x1f4050e
jmp 0x1f4045e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x1f4051c
add edi, ecx
jmp 0x1f4045e
pop esi
mov edi, esi
mov ecx, 0x1ae22
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x1f4053a
cmp byte [edi], 0xd6
jne 0x1f4053a
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 0x1f4053f
lea edi, [esi + 0x1b03000]
mov eax, dword [edi]
or eax, eax
je 0x1f405ae
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2fd3eb8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2fd3ffc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x1f4056c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2fd4004]
or eax, eax
je 0x1f405a8
mov dword [ebx], eax
add ebx, 4
jmp 0x1f40589
call dword [esi + 0x2fd4000]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x1f405df
cmp al, 0xef
ja 0x1f405d2
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x1f405b4
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x1f405c1
mov ebp, dword [esi + 0x2fd4008]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
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 0x1f40613
sub esp, 0xffffff80
jmp 0x93215c
Function at 0x401c59
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
mov dword [ebp - 4], ecx
push edi
lea ecx, [ebp - 0x10]
mov ebx, edx
call fcn.004147df
lea ecx, [ebp - 0x1c]
call fcn.004147df
push 0x3c
xor edi, edi
lea eax, [ebp - 0x58]
push edi
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [ebp + 8]
add esp, 0xc
mov dword [ebp - 0x58], 0x3c
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x54], 0x740
mov dword [ebp - 0x3c], 0xa
test bl, 1
je 0x401cb1
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x54], 0x8740
test bl, 2
je 0x401cbd
mov dword [ebp - 0x4c], str.runas
and ebx, 0x10000
jne 0x401ccc
or dword [ebp - 0x54], 0x100
mov eax, dword [0x42272c]
push 5
push eax
mov dword [ebp - 0x50], eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp - 0x50]
call dword [sym.imp.USER32.dll_BringWindowToTop]
mov ecx, dword [ebp - 4]
lea edx, [ebp - 0x10]
call fcn.00403022
push eax
lea ecx, [ebp - 0x1c]
call fcn.00414864
cmp dword [ebp - 0xc], edi
jne 0x401d14
push dword [ebp - 0x1c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x10]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
xor eax, eax
inc eax
jmp 0x401d5b
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x401d49
cmp ebx, edi
jne 0x401d3d
push 0xffffffffffffffff
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor edi, edi
inc edi
push dword [ebp - 0x1c]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [ebp - 0x10]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, edi
pop ecx
pop ecx
pop edi
pop ebx
leave
ret 4
Function at 0x402766
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push dword [ebp + 8]
mov esi, ecx
call fcn.004023c3
xor edi, edi
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x40266d
push edi
push edi
mov dword [0x422724], esi
mov dword [0x422728], edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x422720], eax
cmp eax, edi
je 0x4027c1
cmp dword [0x422770], 2
je 0x4027b3
call fcn.00408c2e
mov eax, dword [0x422720]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x422720]
mov ecx, dword [0x422728]
mov dword [0x4228c4], edi
cmp ecx, edi
je 0x402807
cmp ecx, 1
je 0x4027fb
cmp ecx, 2
je 0x4027f7
cmp ecx, 3
je 0x4027f3
cmp ecx, 0x67
jle 0x4027ee
cmp ecx, 0x6b
jle 0x402870
push ecx
push 0x14
jmp 0x402841
push 0x12
jmp 0x4027fd
push 0x13
jmp 0x4027fd
push 0x11
push edi
call fcn.00409684
pop ecx
pop ecx
jmp 0x402870
mov dword [ebp + 8], edi
cmp dword [0x4228cc], edi
jne 0x402870
cmp eax, edi
je 0x40282e
lea ecx, [ebp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x40282e
cmp dword [ebp + 8], edi
jne 0x40282e
xor eax, eax
jmp 0x402875
mov ecx, dword [ebp + 8]
mov eax, 0x80070000
and ecx, eax
cmp ecx, eax
je 0x402844
push dword [ebp + 8]
push 0x21
push edi
jmp 0x402868
mov eax, dword [ebp + 8]
and eax, 0xffff
cmp eax, 0xe
jne 0x40285a
cmp dword [0x422774], 0xffffffff
je 0x402870
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp + 8]
push 0x22
push 1
call fcn.00409684
add esp, 0xc
mov eax, 0x80004005
pop edi
pop esi
leave
ret 4

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

Disassembly:
push esi
push edi
mov edi, ecx
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4030d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, 0xb7
cmp eax, esi
je 0x4030bd
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x4030d3
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4030d0
test al, 0x10
jne 0x4030d0
push esi
jmp 0x4030b3
xor eax, eax
inc eax
pop edi
pop esi
ret
Function at 0x403327
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set current directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x260
push ebx
push esi
mov ebx, ecx
push edi
push ebx
lea ecx, [ebp - 0xc]
call fcn.00414803
push 0x41dbcc
lea ecx, [ebp - 0xc]
call fcn.00414922
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
je 0x403405
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
push ebx
lea ecx, [ebp - 0xc]
call fcn.00414864
push 0x5c
lea ecx, [ebp - 0xc]
call fcn.00401585
lea eax, [ebp - 0x234]
push eax
lea ecx, [ebp - 0xc]
call fcn.00414922
test byte [ebp - 0x260], 0x10
je 0x4033cc
push 0x41dbc8
lea eax, [ebp - 0x234]
push eax
call edi
test eax, eax
je 0x4033e4
push 0x41dbc0
lea eax, [ebp - 0x234]
push eax
call edi
test eax, eax
je 0x4033e4
mov ecx, dword [ebp - 0xc]
call fcn.00403327
jmp 0x4033e0
push 0
push dword [ebp - 0xc]
call esi
test eax, eax
je 0x403432
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x403432
lea eax, [ebp - 0x260]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x403373
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FindClose]
push dword [0x422794]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push 0
push ebx
call esi
test eax, eax
je 0x403432
push ebx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x403432
push dword [ebp - 0xc]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
xor eax, eax
inc eax
jmp 0x40343c
push dword [ebp - 0xc]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
xor eax, eax
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403442
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
cmp dword [0x4228d8], 0
push esi
mov esi, ecx
je 0x40345c
xor eax, eax
inc eax
jmp 0x4034a0
lea eax, [ebp - 0x250]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x403457
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test byte [ebp - 0x250], 0x10
jne 0x403499
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x403495
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x4034a0
xor eax, eax
jmp 0x4034a0
mov ecx, esi
call fcn.00403327
pop esi
leave
ret
Function at 0x403908
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 0
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
movzx ecx, word [0x422730]
mov esi, dword [sym.imp.KERNEL32.dll_FindResourceExA]
push ecx
push dword [ebp - 8]
mov dword [ebp - 4], eax
push dword [ebp - 0xc]
push eax
call esi
mov ebx, eax
mov edi, 0x409
test ebx, ebx
jne 0x403956
push edi
push dword [ebp - 8]
push dword [ebp - 0xc]
push dword [ebp - 4]
call esi
mov ebx, eax
test ebx, ebx
je 0x403980
mov esi, dword [ebp + 8]
test esi, esi
je 0x403969
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esi], eax
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x403980
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
jmp 0x4039ea
cmp dword [0x422734], 0
jne 0x4039e8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SetProcessPreferredUILanguages
push dword [0x42275c]
mov dword [0x422734], 1
call esi
push 0
mov ebx, eax
movzx eax, word [0x422730]
push edi
push 0
push eax
lea eax, [ebp - 0x4c]
push str._04X_c_04X_c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
test ebx, ebx
jne 0x4039de
push str.SetThreadPreferredUILanguages
push dword [0x42275c]
call esi
mov ebx, eax
test ebx, ebx
je 0x4039e8
push 0
lea eax, [ebp - 0x4c]
push eax
push 4
call ebx
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4