joyce8/EMBER2024-capa huggingface dataset:
Function at 0x3003975
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebx
mov eax, dword [0x300d080]
push esi
push edi
push ebp
xor ebx, ebx
push eax
call dword [sym.imp.USER32.dll_GetDC]
mov ebp, eax
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
push ebx
push 1
push 1
push edi
push esi
call dword [sym.imp.GDI32.dll_CreateBitmap]
push ebp
mov dword [0x3011e1c], eax
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push dword [0x3011e1c]
push eax
mov dword [0x3011e14], eax
call dword [sym.imp.GDI32.dll_SelectObject]
push ebp
push dword [0x300d080]
call dword [sym.imp.USER32.dll_ReleaseDC]
movzx eax, byte [esp + 0x14]
push 0x330008
push ebx
push dword [eax*4 + 0x3010480]
push dword [0x300d084]
push edi
push esi
mov eax, dword [0x3011e14]
push ebx
push ebx
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [0x300d080]
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x3003a14
mov eax, dword [0x300ede8]
push eax
push dword [0x300d07c]
call fcn.030062cc
jmp 0x3003a28
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, dword [0x3011e1c]
push eax
push 2
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov eax, dword [0x3011e14]
push eax
call dword [sym.imp.GDI32.dll_DeleteDC]
pop ebp
pop edi
pop esi
pop ebx
ret 0xc

Function at 0x30070f0
Capabilities:
Terminate process

Disassembly:
cmp dword [0x300da60], 1
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
jne 0x300710e
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x300da5c], 1
cmp dword [esp + 0x14], 0
mov ebx, dword [esp + 0x18]
mov byte [0x300da58], bl
jne 0x3007168
cmp dword [0x3013078], 0
je 0x3007156
mov edi, dword [0x3013074]
sub edi, 4
cmp edi, dword [0x3013078]
jb 0x3007156
mov eax, dword [edi]
test eax, eax
je 0x300714b
call eax
sub edi, 4
cmp edi, dword [0x3013078]
jae 0x3007143
push 0x300d01c
push 0x300d014
call fcn.030071a0
add esp, 8
push 0x300d024
push 0x300d020
call fcn.030071a0
add esp, 8
test ebx, ebx
jne 0x300718f
mov dword [0x300da60], 1
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop edi
pop esi
pop ebx
ret
Function at 0x3007fb0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x1a8
xor ecx, ecx
mov eax, 0x300dd38
push ebx
mov edx, dword [esp + 0x1b0]
push esi
push edi
push ebp
cmp dword [eax], edx
je 0x3007fd7
add eax, 8
inc ecx
cmp eax, 0x300ddc8
jb 0x3007fc8
cmp dword [ecx*8 + 0x300dd38], edx
lea ebx, [ecx*8]
jne 0x300819b
cmp dword [0x300da10], 1
je 0x3008157
cmp dword [0x300da10], 0
jne 0x300800e
cmp dword [0x300da14], 1
je 0x3008157
cmp edx, 0xfc
je 0x300819b
lea eax, [esp + 0xb4]
push 0x104
push eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
call ebp
test eax, eax
jne 0x300804b
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
mov ecx, 5
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea ebp, [esp + 0xb4]
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x300808f
lea edi, [esp + 0xb4]
mov ecx, 0xffffffff
sub eax, eax
push 3
repne scasb al, byte es:[edi]
not ecx
lea ebp, [esp + ecx + 0x7c]
push 0x300b5a0
push ebp
call fcn.030097a0
add esp, 0xc
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, ebp
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x300b580
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
lea edi, [esp + 0x14]
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebx + 0x300dd3c]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
lea edi, [esp + 0x14]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x12010
and ecx, 3
push str.Microsoft_Visual_C_Runtime_Library
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x1c]
push eax
call fcn.03009700
add esp, 0xc
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
cmp dword [0x3012f70], 0
je 0x300816d
mov eax, dword [0x3012f70]
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x3008177
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebx + 0x300dd3c]
push 0
lea eax, [esp + 0x14]
mov edi, edx
push eax
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1a8
ret
Function at 0x30099d0
Capabilities:
Write file on windows

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x418
cmp dword [0x3013070], edx
push ebx
push esi
push edi
push ebp
jbe 0x3009bd7
mov eax, edx
and eax, 0xffffffe7
sar eax, 3
add eax, 0x3012f70
mov dword [esp + 0x18], eax
mov eax, edx
and eax, 0x1f
mov ecx, dword [esp + 0x18]
shl eax, 3
mov ebx, dword [ecx]
mov ebp, eax
mov dword [esp + 0x1c], eax
mov al, byte [ebx + ebp + 4]
test al, 1
je 0x3009bd7
xor esi, esi
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x20], esi
cmp ebp, esi
jne 0x3009a39
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
test al, 0x20
je 0x3009a4a
push 2
push 0
push edx
call fcn.03009c00
add esp, 0xc
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
add ecx, dword [eax]
test byte [ecx + 4], 0x80
je 0x3009ae6
mov dword [esp + 0x10], 0
mov ebx, dword [esp + 0x430]
mov eax, ebx
sub eax, dword [esp + 0x430]
cmp eax, ebp
jae 0x3009b1f
lea edi, [esp + 0x24]
mov eax, ebx
sub eax, dword [esp + 0x430]
cmp eax, ebp
jae 0x3009aad
mov al, byte [ebx]
inc ebx
cmp al, 0xa
jne 0x3009a9b
mov byte [edi], 0xd
inc esi
inc edi
mov byte [edi], al
inc edi
mov eax, edi
lea ecx, [esp + 0x24]
sub eax, ecx
cmp eax, 0x400
jl 0x3009a82
lea eax, [esp + 0x24]
push 0
sub edi, eax
lea ecx, [esp + 0x28]
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x1c]
push eax
push edi
push ecx
mov eax, dword [edx]
mov ecx, dword [esp + 0x2c]
mov edx, dword [eax + ecx]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x3009b15
mov eax, dword [esp + 0x14]
add dword [esp + 0x20], eax
cmp eax, edi
jge 0x3009a6d
jmp 0x3009b1f
lea eax, [esp + 0x14]
push 0
mov edx, dword [esp + 0x434]
push eax
push ebp
mov ecx, dword [ecx]
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x3009b15
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], eax
jmp 0x3009b1f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x20], 0
jne 0x3009bc6
cmp dword [esp + 0x10], 0
je 0x3009b78
cmp dword [esp + 0x10], 5
jne 0x3009b5b
mov dword [0x300da18], 9
mov eax, dword [esp + 0x10]
pop ebp
pop edi
mov dword [0x300da1c], eax
mov eax, 0xffffffff
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x10]
push eax
call fcn.0300a1e0
add esp, 4
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [eax]
test byte [edx + ecx + 4], 0x40
je 0x3009ba2
mov eax, dword [esp + 0x430]
cmp byte [eax], 0x1a
jne 0x3009ba2
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, 0xffffffff
pop ebp
mov dword [0x300da18], 0x1c
mov dword [0x300da1c], 0
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, dword [esp + 0x20]
pop ebp
sub eax, esi
pop edi
pop esi
pop ebx
add esp, 0x418
ret
mov eax, 0xffffffff
pop ebp
mov dword [0x300da18], 9
mov dword [0x300da1c], 0
pop edi
pop esi
pop ebx
add esp, 0x418
ret
Function at 0x401173
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x618
push ebx
push esi
mov edx, 0x81
push edi
xor esi, esi
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x206]
mov word [ebp - 0x208], si
mov word [ebp - 0x410], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x40e]
mov word [ebp - 0x618], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x616]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, dword [ebp + 8]
cmp edi, esi
je 0x401263
push 0x25
pop ebx
push ebx
push edi
call fcn.00408db7
pop ecx
test eax, eax
pop ecx
jne 0x4011f7
push dword [ebp + 0x10]
push edi
push dword [ebp + 0xc]
call fcn.004084de
add esp, 0xc
push 1
pop eax
jmp 0x40129f
mov eax, edi
push ebx
push eax
call fcn.00408db7
pop ecx
test eax, eax
pop ecx
je 0x40120c
add eax, 2
inc esi
jmp 0x4011f9
mov eax, esi
push 2
cdq
pop ecx
idiv ecx
cmp edx, 1
je 0x401263
mov esi, 0x104
lea eax, [ebp - 0x208]
push esi
push edi
push eax
call fcn.004084de
lea eax, [ebp - 0x208]
push ebx
push eax
call fcn.00408db7
and word [eax], 0
lea edi, [eax + 2]
push ebx
push edi
call fcn.00408db7
add esp, 0x1c
mov ebx, eax
lea eax, [ebp - 0x410]
and word [ebx], 0
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x401267
xor eax, eax
jmp 0x40129f
add ebx, 2
lea eax, [ebp - 0x410]
push ebx
push eax
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x618]
push str._s_s_s
push eax
call fcn.00408d48
push dword [ebp + 0x10]
lea eax, [ebp - 0x618]
push dword [ebp + 0xc]
push eax
call fcn.00401173
add esp, 0x20
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401c47
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
push esi
push edi
push 0x44
xor edi, edi
pop esi
lea eax, [ebp - 0x54]
push esi
push edi
push eax
call fcn.00408520
push 0x10
lea eax, [ebp - 0x10]
push edi
push eax
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x28], 1
mov word [ebp - 0x24], 5
call fcn.00408520
add esp, 0x18
lea eax, [ebp - 0x25c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [ebp - 0x25c]
push eax
call esi
cmp word [ebp + eax*2 - 0x25e], 0x5c
jne 0x401cbe
lea eax, [ebp - 0x25c]
push eax
call esi
mov word [ebp + eax*2 - 0x25e], di
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x25c]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 5
pop edi
neg eax
sbb eax, eax
pop esi
inc eax
leave
ret
Function at 0x402ce8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [ecx + 4], 0
push esi
jne 0x402d10
push 0x41b098
lea ecx, [ebp - 0xc]
call fcn.00409506
lea eax, [ebp - 0xc]
push 0x4198d0
push eax
call fcn.004095b0
xor esi, esi
cmp dword [ecx + 0x3cc], esi
jle 0x402d31
mov eax, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dl, byte [edi]
xor byte [eax], dl
inc edi
inc eax
inc esi
cmp esi, dword [ecx + 0x3cc]
jl 0x402d21
pop edi
pop esi
leave
ret 8

Function at 0x402e9a
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
cmp word [eax], 0x5a4d
jne 0x402faf
mov esi, dword [eax + 0x3c]
add esi, eax
cmp dword [esi], 0x4550
jne 0x402faf
mov edi, 0x2000
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 4
push edi
push dword [esi + 0x50]
push dword [esi + 0x34]
call ebx
test eax, eax
mov dword [ebp - 4], eax
jne 0x402ef2
push 4
push edi
push dword [esi + 0x50]
push eax
call ebx
test eax, eax
mov dword [ebp - 4], eax
je 0x402faf
push 0x14
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
mov eax, dword [ebp - 4]
xor ecx, ecx
push 4
push 0x1000
mov dword [edi + 4], eax
mov dword [edi + 0xc], ecx
mov dword [edi + 8], ecx
mov dword [edi + 0x10], ecx
push dword [esi + 0x50]
push eax
call ebx
push 4
push 0x1000
push dword [esi + 0x54]
push dword [ebp - 4]
call ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 8], eax
mov ecx, dword [ebx + 0x3c]
add ecx, dword [esi + 0x54]
push ecx
push ebx
push eax
call fcn.00408970
mov eax, dword [ebx + 0x3c]
mov ecx, dword [ebp - 8]
add eax, ecx
mov ecx, dword [ebp - 4]
push edi
push esi
mov dword [edi], eax
push ebx
mov dword [eax + 0x34], ecx
call fcn.00402fbd
mov ebx, dword [ebp - 4]
add esp, 0x18
mov eax, ebx
sub eax, dword [esi + 0x34]
je 0x402f74
push eax
push edi
call fcn.00403127
pop ecx
pop ecx
push edi
call fcn.004031a1
test eax, eax
pop ecx
je 0x402fa8
push edi
call fcn.0040306a
mov eax, dword [edi]
pop ecx
mov eax, dword [eax + 0x28]
test eax, eax
je 0x402fb6
add eax, ebx
test eax, eax
je 0x402fa8
cmp byte [ebp + 0xc], 0
push 1
pop esi
je 0x402fb3
push 0
push esi
push ebx
call eax
test eax, eax
jne 0x402fb3
push edi
call fcn.00403327
pop ecx
xor eax, eax
jmp 0x402fb8
mov dword [edi + 0x10], esi
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402fbd
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
and dword [ebp - 4], 0
push esi
mov ecx, dword [eax + 4]
mov eax, dword [eax]
mov dword [ebp - 8], ecx
movzx ecx, word [eax + 0x14]
cmp word [eax + 6], 0
lea esi, [ecx + eax + 0x18]
jbe 0x403067
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
add esi, 0x10
mov ebx, 0x1000
cmp dword [esi], 0
jne 0x403028
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x38]
test eax, eax
mov dword [ebp - 0xc], eax
jle 0x403051
push 4
push ebx
push eax
mov eax, dword [esi - 4]
add eax, dword [ebp - 8]
push eax
call edi
push dword [ebp - 0xc]
mov dword [esi - 8], eax
push 0
push eax
call fcn.00408520
add esp, 0xc
jmp 0x403051
mov eax, dword [esi - 4]
push 4
add eax, dword [ebp - 8]
push ebx
push dword [esi]
push eax
call edi
mov ecx, dword [esi + 4]
push dword [esi]
add ecx, dword [ebp + 8]
mov dword [ebp - 0xc], eax
push ecx
push eax
call fcn.00408970
mov eax, dword [ebp - 0xc]
add esp, 0xc
mov dword [esi - 8], eax
mov eax, dword [ebp + 0x10]
inc dword [ebp - 4]
add esi, 0x28
mov eax, dword [eax]
movzx eax, word [eax + 6]
cmp dword [ebp - 4], eax
jl 0x402ff6
pop edi
pop ebx
pop esi
leave
ret

Function at 0x40339f
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor edx, edx
mov ecx, 0x41ff3c
push 8
mov eax, edx
pop esi
test al, 1
je 0x4033b9
shr eax, 1
xor eax, 0xedb88320
jmp 0x4033bb
shr eax, 1
dec esi
jne 0x4033ac
mov dword [ecx], eax
add ecx, 4
inc edx
cmp ecx, 0x42033c
jl 0x4033a7
mov dword [0x42033c], 1
pop esi
ret

Function at 0x4033d8
Capabilities:
Encode data using xor

Disassembly:
cmp dword [0x42033c], 0
push esi
mov esi, dword [esp + 8]
jne 0x4033eb
call fcn.0040339f
xor eax, eax
cmp dword [esp + 0x10], eax
jle 0x403418
mov ecx, dword [esp + 0xc]
mov edx, esi
and edx, 0xff
movzx ecx, byte [eax + ecx]
xor ecx, edx
shr esi, 8
mov ecx, dword [ecx*4 + 0x41ff3c]
xor esi, ecx
inc eax
cmp eax, dword [esp + 0x10]
jl 0x4033f3
mov eax, esi
pop esi
ret

Function at 0x403431
Capabilities:
Delete file

Disassembly:
push esi
push edi
push 0x41b15c
push dword [esp + 0x10]
call fcn.00409cdd
mov esi, eax
pop ecx
test esi, esi
pop ecx
je 0x403478
push 2
push 0
push esi
call fcn.00409bf3
push esi
call fcn.00409a70
push esi
mov edi, eax
call fcn.004099f3
push 0x41b154
push dword [esp + 0x24]
call fcn.00409cdd
mov esi, eax
add esp, 0x1c
test esi, esi
jne 0x40347c
xor al, al
jmp 0x4034d0
push 0
push 0
push esi
call fcn.00409bf3
add esp, 0xc
test edi, edi
jle 0x4034bd
push ebx
mov ebx, str.ABCDEFGHIJKLMNOPQRSTUVWXYZ
push ebx
call fcn.00408cb0
cmp edi, eax
pop ecx
jae 0x4034a2
mov eax, edi
jmp 0x4034a9
push ebx
call fcn.00408cb0
pop ecx
push esi
push eax
push 1
push ebx
call fcn.004098ba
sub edi, eax
add esp, 0x10
test edi, edi
jg 0x403493
pop ebx
push esi
call fcn.004099f3
pop ecx
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov al, 1
pop edi
pop esi
ret
Function at 0x403500
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x618
push ebx
push esi
mov edx, 0x81
push edi
xor ebx, ebx
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x206]
mov word [ebp - 0x208], bx
mov word [ebp - 0x410], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x40e]
mov word [ebp - 0x618], bx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, edx
xor eax, eax
lea edi, [ebp - 0x616]
push 0x25
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov edi, dword [ebp + 8]
push edi
call fcn.00408db7
pop ecx
test eax, eax
pop ecx
jne 0x40357a
push dword [ebp + 0x10]
push edi
push dword [ebp + 0xc]
call fcn.004084de
add esp, 0xc
push 1
pop eax
jmp 0x403626
xor esi, esi
mov eax, edi
push 0x25
push eax
call fcn.00408db7
pop ecx
cmp eax, ebx
pop ecx
je 0x403592
add eax, 2
inc esi
jmp 0x40357e
mov eax, esi
push 2
cdq
pop ecx
idiv ecx
cmp edx, 1
je 0x4035ea
mov esi, 0x104
lea eax, [ebp - 0x208]
push esi
push edi
push eax
call fcn.004084de
lea eax, [ebp - 0x208]
push 0x25
push eax
call fcn.00408db7
lea edi, [eax + 2]
push 0x25
push edi
mov word [eax], bx
call fcn.00408db7
add esp, 0x1c
mov ebx, eax
lea eax, [ebp - 0x410]
and word [ebx], 0
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x4035ee
xor eax, eax
jmp 0x403626
add ebx, 2
lea eax, [ebp - 0x410]
push ebx
push eax
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x618]
push str._s_s_s
push eax
call fcn.00408d48
push dword [ebp + 0x10]
lea eax, [ebp - 0x618]
push dword [ebp + 0xc]
push eax
call fcn.00403500
add esp, 0x20
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40362b
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
and word [ebp - 0x208], 0
push ebx
push esi
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x206]
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x208]
push eax
push dword [ebp + 8]
call fcn.00403500
add esp, 0xc
test eax, eax
je 0x40371b
push 0x5c
push dword [ebp + 8]
call fcn.00408db7
pop ecx
test eax, eax
pop ecx
je 0x40371f
lea eax, [ebp - 0x208]
push 0x5c
push eax
call fcn.00408de0
cmp byte [ebp + 0xc], 1
pop ecx
pop ecx
mov ebx, eax
jne 0x40369f
and word [ebx], 0
lea eax, [ebp - 0x208]
push eax
call fcn.004034d3
test al, al
pop ecx
jne 0x40371f
mov word [ebx], 0x5c
lea edi, [ebp - 0x208]
test edi, edi
je 0x40371f
push 0x5c
push edi
call fcn.00408db7
mov esi, eax
pop ecx
test esi, esi
pop ecx
jne 0x40370b
cmp byte [ebp + 0xc], al
jne 0x40371f
xor edi, edi
lea eax, [ebp - 0x208]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4036f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40371b
test esi, esi
je 0x4036ff
mov word [esi], 0x5c
cmp byte [ebp + 0xc], 1
jne 0x4036bb
cmp esi, ebx
je 0x40371f
jmp 0x4036bb
cmp word [esi - 2], 0x3a
lea edi, [esi + 2]
je 0x4036bb
and word [esi], 0
jmp 0x4036d6
xor eax, eax
jmp 0x403722
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40373e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
and word [ebp - 0x208], 0
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x206]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x410]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x208]
push eax
push 0
lea eax, [ebp - 0x410]
push 0x41b164
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push dword [ebp + 0xc]
lea eax, [ebp - 0x208]
push eax
push dword [ebp + 8]
call fcn.004084de
add esp, 0xc
mov al, 1
pop edi
leave
ret

Function at 0x4038c2
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2dc
push ebx
push esi
xor esi, esi
mov byte [ebp - 0xf], 0x65
cmp dword [ebp + 8], esi
mov dword [ebp - 0x14], esi
mov byte [ebp - 0x10], 0x25
mov byte [ebp - 0xe], 0x52
mov byte [ebp - 0xc], 0x74
mov byte [ebp - 0xd], 0x40
mov byte [ebp - 0xb], 0x6f
mov byte [ebp - 0xa], 0x50
mov byte [ebp - 9], 0x6d
mov byte [ebp - 7], 0x3c
mov byte [ebp - 8], 0x7c
mov byte [ebp - 6], 0x23
mov byte [ebp - 5], 0x59
mov byte [ebp - 3], 0x73
mov byte [ebp - 4], 0x4b
mov byte [ebp - 2], 0x24
mov byte [ebp - 1], 0x5e
je 0x40392c
push 0x41b15c
push dword [ebp + 8]
call fcn.00409cdd
mov ebx, eax
pop ecx
cmp ebx, esi
pop ecx
jne 0x403934
or eax, 0xffffffff
jmp 0x4039ea
push 2
push esi
push ebx
call fcn.00409bf3
add esp, 0xc
mov esi, 0x2c8
push 1
push 0xfffffd38
push ebx
call fcn.00409bf3
add esp, 0xc
test eax, eax
jne 0x4039e0
push esi
push eax
lea eax, [ebp - 0x2dc]
push eax
call fcn.00408520
push ebx
push esi
lea eax, [ebp - 0x2dc]
push 1
push eax
call fcn.00409cf0
add esp, 0x1c
cmp eax, esi
jne 0x4039e0
lea eax, [ebp - 0x2dc]
push esi
push eax
call fcn.004037d3
lea eax, [ebp - 0x10]
push 0x10
push eax
lea eax, [ebp - 0x2dc]
push esi
push eax
call fcn.004037a8
lea eax, [ebp - 0x2dc]
push eax
call fcn.00403800
add esp, 0x1c
test al, al
je 0x4039e0
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x4039c4
test dword [ebp - 0x2d8], eax
je 0x4039c7
inc dword [ebp - 0x14]
mov eax, 0xfffffd38
push 1
sub eax, dword [ebp - 0x18]
push eax
push ebx
call fcn.00409bf3
add esp, 0xc
jmp 0x403945
push ebx
call fcn.004099f3
mov eax, dword [ebp - 0x14]
pop ecx
pop esi
pop ebx
leave
ret
Function at 0x4039ee
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2dc
push ebx
push esi
xor esi, esi
push esi
mov dword [ebp - 0x14], esi
push dword [ebp + 8]
call fcn.004038c2
pop ecx
cmp eax, esi
pop ecx
jle 0x403a6e
cmp dword [ebp + 0xc], eax
jge 0x403a6e
sub eax, dword [ebp + 0xc]
push 0x41b15c
push dword [ebp + 8]
mov byte [ebp - 0xf], 0x65
dec eax
mov byte [ebp - 0x10], 0x25
mov dword [ebp + 0xc], eax
mov byte [ebp - 0xe], 0x52
mov byte [ebp - 0xc], 0x74
mov byte [ebp - 0xd], 0x40
mov byte [ebp - 0xb], 0x6f
mov byte [ebp - 0xa], 0x50
mov byte [ebp - 9], 0x6d
mov byte [ebp - 7], 0x3c
mov byte [ebp - 8], 0x7c
mov byte [ebp - 6], 0x23
mov byte [ebp - 5], 0x59
mov byte [ebp - 3], 0x73
mov byte [ebp - 4], 0x4b
mov byte [ebp - 2], 0x24
mov byte [ebp - 1], 0x5e
call fcn.00409cdd
mov ebx, eax
pop ecx
cmp ebx, esi
pop ecx
jne 0x403a75
xor al, al
jmp 0x403b3a
push 2
push esi
push ebx
call fcn.00409bf3
add esp, 0xc
mov esi, 0x2c8
push 1
push 0xfffffd38
push ebx
call fcn.00409bf3
add esp, 0xc
test eax, eax
jne 0x403b2c
push esi
push eax
lea eax, [ebp - 0x2dc]
push eax
call fcn.00408520
push ebx
push esi
lea eax, [ebp - 0x2dc]
push 1
push eax
call fcn.00409cf0
lea eax, [ebp - 0x2dc]
push esi
push eax
call fcn.004037d3
lea eax, [ebp - 0x10]
push 0x10
push eax
lea eax, [ebp - 0x2dc]
push esi
push eax
call fcn.004037a8
lea eax, [ebp - 0x2dc]
push eax
call fcn.00403800
add esp, 0x38
test al, al
je 0x403b2c
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp + 0xc]
je 0x403b13
inc dword [ebp - 0x14]
mov eax, 0xfffffd38
sub eax, dword [ebp - 0x18]
push 1
push eax
push ebx
call fcn.00409bf3
add esp, 0xc
jmp 0x403a86
lea eax, [ebp - 0x2dc]
push esi
push eax
push dword [ebp + 0x10]
call fcn.00408970
add esp, 0xc
mov byte [ebp + 0xf], 1
jmp 0x403b30
and byte [ebp + 0xf], 0
push ebx
call fcn.004099f3
mov al, byte [ebp + 0xf]
pop ecx
pop esi
pop ebx
leave
ret