joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4040c4
Capabilities:
Set file attributes

Disassembly:
push ecx
push ecx
push ebp
push esi
push edi
mov esi, edx
mov ebp, ecx
push 0x8001
mov dword [esp + 0x10], esi
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
call fcn.00403878
test eax, eax
je 0x404137
push 1
mov esi, 0x43ae70
xor ecx, ecx
push esi
call fcn.00408b10
push ebp
push dword [esp + 0x10]
push 0x6de2
push esi
push 0
call fcn.00408c52
add esp, 0x14
xor ecx, ecx
push ebp
push 1
call fcn.00408e88
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ecx
pop ecx
ret

Function at 0x404141
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x258
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetErrorMode]
xor ebx, ebx
push esi
push edi
mov edi, edx
mov esi, ecx
push 0x8001
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
call ebp
mov dword [esp + 0x14], eax
call fcn.004098c6
test eax, eax
lea eax, [esp + 0x18]
je 0x404184
push ebx
push ebx
push ebx
push eax
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
jmp 0x40418c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [edi], eax
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
push dword [esp + 0x14]
mov esi, eax
call ebp
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [edi], 0xffffffff
jne 0x4041df
call ebx
cmp eax, 2
je 0x4041b3
call ebx
call fcn.00403878
test eax, eax
je 0x4041db
push 1
mov esi, 0x43ae70
xor ecx, ecx
push esi
call fcn.00408b10
push 0x6de7
push esi
push 0
call fcn.00408c52
add esp, 0xc
xor eax, eax
jmp 0x404203
mov edx, edi
lea ecx, [esp + 0x18]
call fcn.0040433f
mov ecx, edi
test eax, eax
jne 0x4041f7
call fcn.0040420e
jmp 0x404203
lea edx, [esp + 0x18]
call fcn.004048ab
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x258
ret

Function at 0x40439a
Capabilities:
Get common file path

Disassembly:
push ebp
push esi
push edi
push 0x8001
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
push 0x104
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test ebp, ebp
jne 0x4043fd
call fcn.00403878
test eax, eax
je 0x404405
push 1
mov esi, 0x43ae70
xor ecx, ecx
push esi
call fcn.00408b10
push 0x6de5
push esi
push ebp
call fcn.00408c52
add esp, 0xc
jmp 0x404405
cmp ebp, 0x104
jbe 0x404409
xor eax, eax
jmp 0x40440c
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
ret
Function at 0x404410
Capabilities:
Get common file path

Disassembly:
push ebp
push esi
push edi
push 0x8001
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
push 0x105
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test ebp, ebp
jne 0x404473
call fcn.00403878
test eax, eax
je 0x40447b
push 1
mov esi, 0x43ae70
xor ecx, ecx
push esi
call fcn.00408b10
push 0x6e93
push esi
push ebp
call fcn.00408c52
add esp, 0xc
jmp 0x40447b
cmp ebp, 0x104
jbe 0x40447f
xor eax, eax
jmp 0x404482
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
ret

Function at 0x404486
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, edx
mov esi, ecx
push 0x8001
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
push 0
push dword [ebp + 8]
mov ebx, eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
test edi, edi
setne bl
call fcn.00403878
test eax, eax
je 0x4044fb
push 1
mov esi, 0x43ae70
xor ecx, ecx
push esi
call fcn.00408b10
push dword [ebp + 8]
push dword [ebp - 4]
push 0x6de6
push esi
push 0
call fcn.00408c52
add esp, 0x14
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret

Function at 0x4049ab
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov ecx, esi
call fcn.00404be1
test eax, eax
je 0x404a66
movzx eax, word [esi]
push eax
call fcn.0041d6db
pop ecx
mov word [ebp - 8], ax
lea ecx, [ebp - 8]
push 0x3a
pop eax
mov word [ebp - 6], ax
xor eax, eax
mov word [ebp - 4], ax
call fcn.004048fd
cmp eax, 3
je 0x404a66
cmp eax, 2
je 0x404a66
mov ebx, 0x104
lea eax, [ebp - 0x214]
push ebx
push eax
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x404a62
push 0x1a
lea eax, [ebp - 0x214]
push str.DeviceLanmanRedirector_
push eax
call fcn.0041d299
add esp, 0xc
test eax, eax
jne 0x404a62
lea edx, [ebp - 0x1e0]
lea ecx, [ebp - 0x420]
call fcn.0040496d
test eax, eax
je 0x404a62
lea eax, [ebp - 0x420]
mov edx, ebx
push 0xffffffffffffffff
push eax
mov ecx, edi
call fcn.00407464
pop ecx
lea eax, [esi + 4]
mov ecx, edi
push eax
call fcn.004074bd
jmp 0x404a75
xor eax, eax
jmp 0x404a7a
push 0xffffffffffffffff
push esi
mov edx, 0x104
mov ecx, edi
call fcn.00407464
xor eax, eax
pop ecx
inc eax
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404a7f
Capabilities:
Enumerate network shares

Disassembly:
sub esp, 0x18
push ebx
push edi
mov edi, dword [esp + 0x24]
mov ebx, ecx
mov ecx, edi
call fcn.00404be1
test eax, eax
jne 0x404a9c
mov eax, 0x4b0
jmp 0x404b19
lea eax, [esp + 0x14]
push eax
push 0
push 0
push 1
push 1
call dword [sym.imp.MPR.dll_WNetOpenEnumW]
test eax, eax
jne 0x404b19
push ebp
push esi
mov ebp, 0x640
push ebp
call fcn.0041c159
mov esi, eax
pop ecx
test esi, esi
je 0x404b14
movzx ecx, word [edi]
push ecx
call fcn.0041d6db
movzx eax, ax
pop ecx
mov dword [esp + 0x20], eax
or dword [esp + 0x10], 0xffffffff
lea eax, [esp + 0x14]
push eax
push esi
lea eax, [esp + 0x18]
mov dword [esp + 0x1c], ebp
push eax
push dword [esp + 0x28]
call dword [sym.imp.MPR.dll_WNetEnumResourceW]
mov dword [esp + 0x24], eax
cmp eax, 0xea
jne 0x404b1f
mov ebp, dword [esp + 0x14]
push ebp
push esi
call fcn.0041d6ee
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x404ad8
push 8
pop eax
pop esi
pop ebp
pop edi
pop ebx
add esp, 0x18
ret
test eax, eax
jne 0x404ba2
mov eax, dword [esp + 0x10]
xor edi, edi
test eax, eax
jle 0x404ad8
lea ecx, [esi + 0x10]
mov dword [esp + 0x18], ecx
mov edx, dword [ecx]
test edx, edx
je 0x404b53
movzx eax, word [edx]
push eax
call fcn.0041d6db
pop ecx
cmp word [esp + 0x20], ax
je 0x404b64
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x18]
inc edi
add ecx, 0x20
mov dword [esp + 0x18], ecx
cmp edi, eax
jl 0x404b34
jmp 0x404ad8
shl edi, 5
mov edx, 0x104
push 0xffffffffffffffff
mov ecx, ebx
push dword [edi + esi + 0x14]
call fcn.00407464
mov edi, dword [esp + 0x34]
add edi, 4
pop ecx
pop ecx
cmp word [edi], 0x5c
je 0x404b97
push ecx
push 0x43b02c
mov ecx, ebx
call fcn.004074bd
pop ecx
pop ecx
push ecx
push edi
mov ecx, ebx
call fcn.004074bd
pop ecx
pop ecx
push dword [esp + 0x1c]
call dword [sym.imp.MPR.dll_WNetCloseEnum]
push esi
call fcn.0041c139
mov eax, dword [esp + 0x28]
pop ecx
jmp 0x404b17
Function at 0x406666
Capabilities:
Hash data with md5

Disassembly:
xor eax, eax
mov dword [ecx + 4], eax
mov dword [ecx + 0xc], eax
mov dword [ecx], vtable.CMD5.1.0
mov dword [ecx + 8], vtable.CMD5.0
mov dword [ecx + 0x20], eax
mov dword [ecx + 0x24], eax
mov eax, ecx
mov dword [ecx + 0x10], 0x67452301
mov dword [ecx + 0x14], 0xefcdab89
mov dword [ecx + 0x18], 0x98badcfe
mov dword [ecx + 0x1c], 0x10325476
ret

Function at 0x408466
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0xc
push ebx
push esi
push edi
mov edi, edx
mov esi, ecx
movzx ebx, word [esi + 2]
movzx eax, word [edi + 2]
cmp bx, ax
jae 0x408485
or eax, 0xffffffff
jmp 0x408561
jbe 0x40848f
xor eax, eax
inc eax
jmp 0x408561
movzx edx, word [edi + 4]
push ebp
movzx ebp, word [esi + 6]
cmp edx, 6
ja 0x40851a
movzx eax, word [esi + 4]
mov ecx, ebp
sub ecx, eax
lea eax, [edx + 6]
add eax, ecx
cdq
push 7
pop ecx
idiv ecx
movzx eax, word [edi + 6]
imul eax, eax, 7
inc edx
movzx ecx, dx
add eax, ecx
mov dword [esp + 0x18], eax
add eax, 0xfffffff9
mov dword [esp + 0x14], eax
cmp ebx, 2
jne 0x4084fb
movzx ecx, word [esi]
test cl, 3
jne 0x4084fb
xor edx, edx
mov dword [esp + 0x10], 0x64
mov eax, ecx
div dword [esp + 0x10]
test edx, edx
jne 0x4084f6
mov eax, ecx
mov ecx, 0x190
div ecx
test edx, edx
jne 0x4084fb
push 0xc
pop ecx
jmp 0x4084fd
xor ecx, ecx
push 0xfffffffffffffff2
pop edx
lea eax, [ecx + ebx]
mov ecx, dword [esp + 0x14]
cmp ecx, dword [eax*4 + 0x43666c]
push 0xfffffffffffffff9
pop ebx
cmovle edx, ebx
add edx, dword [esp + 0x18]
jmp 0x40851e
movzx edx, word [edi + 6]
movzx ecx, word [edi + 8]
imul eax, edx, 0x18
add ecx, eax
movzx eax, word [edi + 0xa]
imul ecx, ecx, 0x3c
add ecx, eax
movzx eax, bp
imul edx, ecx, 0x3c
imul ecx, eax, 0x18
movzx eax, word [esi + 8]
pop ebp
add ecx, eax
movzx eax, word [esi + 0xa]
imul ecx, ecx, 0x3c
add ecx, eax
movzx eax, word [esi + 0xc]
imul ecx, ecx, 0x3c
add ecx, eax
xor eax, eax
cmp ecx, edx
setg al
or esi, 0xffffffff
cmp ecx, edx
cmovl eax, esi
pop edi
pop esi
pop ebx
add esp, 0xc
ret

Function at 0x409909
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push esi
mov esi, 0x11c
lea eax, [ebp - 0x11c]
push esi
push 0
push eax
call fcn.00417170
add esp, 0xc
mov dword [ebp - 0x11c], esi
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x118], 6
pop esi
sbb eax, eax
inc eax
leave
ret
Function at 0x40994a
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [ebp + 0x2c]
xorps xmm0, xmm0
mov dword [ebp - 0x34], eax
mov eax, 0x43b6e8
push esi
xor esi, esi
mov dword [ebp - 0x3c], 0x3c
cmp dword [ebp + 0x30], esi
mov dword [ebp - 0x38], 0x440
cmove eax, esi
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x28], edx
movups xmmword [ebp - 0x1c], xmm0
movzx eax, word [eax + 0x30]
mov dword [ebp - 0x20], eax
xor eax, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x3c]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
pop esi
test eax, eax
je 0x4099b4
mov edx, dword [ebp + 0x24]
mov ecx, dword [ebp - 4]
mov dword [edx], ecx
leave
ret

Function at 0x4099b6
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push esi
push edi
push 0x44
pop edi
push edi
lea eax, [ebp - 0x5c]
mov esi, ecx
push 0
push eax
mov ebx, edx
mov dword [ebp - 4], esi
call fcn.00417170
mov dword [ebp - 0x5c], edi
lea eax, [ebp - 0x18]
push 0x10
xor edi, edi
push 0
inc edi
push eax
mov word [ebp - 0x2c], di
call fcn.00417170
and dword [ebp - 0x18], 0
add esp, 0x18
call fcn.00409909
test eax, eax
je 0x409a22
push dword [ebp + 0x14]
lea eax, [ebp - 0x18]
mov edx, ebx
push dword [ebp + 0x10]
push ecx
push eax
lea eax, [ebp - 0x5c]
mov ecx, esi
push eax
push dword [ebp + 8]
sub esp, 0x14
call fcn.0040994a
add esp, 0x2c
jmp 0x409ac7
push esi
call fcn.0041c13e
push ebx
mov esi, eax
call fcn.0041c13e
add esi, eax
pop ecx
pop ecx
lea eax, [esi*2 + 4]
call fcn.0042b960
mov esi, esp
push dword [ebp - 4]
mov dword [ebp - 8], esi
push esi
call fcn.0041c164
push 0x43b570
push esi
call fcn.0041d0a8
push ebx
push esi
call fcn.0041d0a8
mov esi, dword [ebp + 8]
add esp, 0x18
xor ebx, ebx
test esi, esi
je 0x409a7b
cmp word [esi], bx
je 0x409a7b
push esi
call fcn.0041c13e
pop ecx
lea edi, [eax + 1]
lea eax, [edi + edi]
call fcn.0042b960
mov edi, esp
test esi, esi
je 0x409a94
push esi
push edi
call fcn.0041c164
pop ecx
pop ecx
jmp 0x409a99
xor eax, eax
mov word [edi], ax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x5c]
push eax
xor eax, eax
test esi, esi
cmovne eax, edi
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 8]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp dword [ebp - 0x14], 0
je 0x409ac7
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x18]
lea esp, [ebp - 0x68]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a4e5
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2008
call fcn.0042bbd0
push esi
push edi
push 0xc
mov edi, ecx
call fcn.004164b4
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
push dword [edi + 0xc]
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push str.R_03d
push eax
call fcn.0040a5d6
add esp, 0x10
lea ecx, [edi + 0x24]
call fcn.00407ed1
push eax
push 0x1000
lea eax, [ebp - 0x2008]
mov esi, 0x43b730
push eax
push esi
lea ecx, [ebp - 8]
call fcn.00407ed1
push eax
lea ecx, [edi + 0x20]
call fcn.00407ed1
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x2008]
push esi
push eax
call fcn.0041c1fe
mov esi, dword [ebp + 8]
pop ecx
pop ecx
test eax, eax
jne 0x40a57a
mov eax, dword [ebp - 4]
mov edx, esi
push ecx
add eax, 8
push eax
call fcn.004014be
pop ecx
pop ecx
jmp 0x40a5a2
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x2008]
push eax
add ecx, 8
call fcn.00408052
push ecx
mov ecx, dword [ebp - 4]
mov edx, 0x43b738
push 0x43b5fc
lea ecx, [ecx + 8]
call fcn.004082bd
mov eax, dword [ebp - 4]
push esi
add eax, 4
push 0x43b73c
push eax
call fcn.004083f0
mov eax, dword [ebp - 4]
lea ecx, [edi + 4]
add esp, 0xc
mov dword [eax], esi
lea eax, [ebp - 4]
push eax
call fcn.00407db5
lea ecx, [ebp - 8]
call fcn.00407eb8
pop edi
pop esi
leave
ret 4

Function at 0x40f948
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push esi
push dword [esp + 8]
mov esi, ecx
push dword [esi + 0x478]
call fcn.0040fa26
mov dword [esi + 0x478], eax
movzx eax, al
add eax, dword [esi + 0x47c]
imul eax, eax, 0x8088405
inc eax
mov dword [esi + 0x47c], eax
shr eax, 0x18
push eax
push dword [esi + 0x480]
call fcn.0040fa26
mov dword [esi + 0x480], eax
pop esi
ret 4

Function at 0x410629
Capabilities:
Hash data using djb2

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, 0x43644c
push edi
cmp dword [eax], 0
mov edi, 0x1505
cmovne esi, dword [eax]
movzx eax, word [esi]
test ax, ax
je 0x410663
push eax
call fcn.0041d6db
imul edi, edi, 0x21
lea esi, [esi + 2]
pop ecx
movzx ecx, ax
add edi, ecx
movzx ecx, word [esi]
mov eax, ecx
test cx, cx
jne 0x410647
mov eax, edi
pop edi
pop esi
ret 4
Function at 0x41569f
Capabilities:
Create process on windows
Get common file path
Query or enumerate registry value

Disassembly:
mov eax, 0x2644
call fcn.0042bbd0
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
mov ebx, ecx
xor ebp, ebp
push ebp
push 0x3eb
push dword [ebx + 0xc]
call edi
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call esi
push ebp
push 0x3ed
push dword [ebx + 0xc]
call edi
push eax
call esi
mov esi, 0x104
mov dword [esp + 0x14], ebp
cmp dword [ebx + 0x868], ebp
jne 0x415766
lea eax, [ebx + 0x42c]
push eax
lea eax, [esp + 0x654]
push str.SoftwareMicrosoftWindowsCurrentVersionApp_Paths_s.exe
push eax
call fcn.00409851
add esp, 0xc
lea eax, [esp + 0x14]
push eax
push 0x20019
push ebp
lea eax, [esp + 0x65c]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x415766
lea eax, [esp + 0x18]
mov dword [esp + 0x18], esi
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x24]
push eax
push ebp
push ebp
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41575c
mov edx, dword [ebx + 4]
lea ecx, [esp + 0x20]
add edx, 0x18
push ebp
call fcn.00405705
pop ecx
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edi, [ebx + 0x636]
cmp word [edi], bp
je 0x415866
push 0x20a
lea eax, [esp + 0x24]
push ebp
push eax
call fcn.00417170
add esp, 0xc
lea eax, [esp + 0x20]
push esi
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x230]
call fcn.0040439a
lea ecx, [esp + 0x230]
call fcn.00403dde
lea eax, [esp + 0x230]
push edi
push eax
call fcn.0041d0a8
mov eax, dword [ebx + 4]
lea ecx, [esp + 0x28]
push ebp
push dword [eax + 8]
call fcn.00415c5f
add esp, 0x10
cmp eax, 1
jne 0x4157e7
push 0x8918
call fcn.004164b4
pop ecx
mov ecx, eax
call fcn.0040ca99
jmp 0x4157f9
push 0x320
call fcn.004164b4
pop ecx
mov ecx, eax
call fcn.0040db51
mov esi, eax
test esi, esi
je 0x415866
mov eax, dword [ebx + 4]
mov ecx, esi
mov edx, dword [esi]
push ebp
push dword [eax + 8]
lea eax, [esp + 0x28]
push ebp
push eax
call dword [edx + 4]
test eax, eax
jne 0x41585e
mov eax, dword [esi]
lea ecx, [esp + 0x230]
push ebp
push ebp
push ebp
push ebp
push ebp
push ecx
push edi
mov ecx, esi
call dword [eax + 0x1c]
test eax, eax
jne 0x41585e
lea eax, [esp + 0x440]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 1
lea eax, [esp + 0x444]
push eax
push ebp
lea eax, [esp + 0x23c]
push eax
push ebp
push ebp
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2644
ret
Function at 0x415f33
Capabilities:
Create process on windows
Get common file path
Set environment variable

Disassembly:
sub esp, 0xc50
lea eax, [esp + 0x214]
push ebx
push ebp
push esi
push edi
push eax
lea eax, [esp + 0xa58]
mov edi, edx
push eax
lea edx, [esp + 0x850]
mov ebx, ecx
call fcn.004056ca
pop ecx
lea ecx, [esp + 0x228]
call fcn.004073eb
mov ebp, dword [esp + 0xc68]
pop ecx
mov ecx, dword [ebp + 4]
and ecx, 0x10
test eax, eax
je 0x415fc0
test ecx, ecx
jne 0x415f88
xor eax, eax
inc eax
jmp 0x4160b4
lea eax, [esp + 0x430]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 1
lea eax, [esp + 0x434]
xor esi, esi
push eax
push esi
push ebx
push esi
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor ecx, ecx
cmp eax, 0x20
setg cl
mov eax, ecx
jmp 0x4160b4
push 0x104
lea eax, [esp + 0x1c]
xor esi, esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push ecx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x644]
call fcn.004047e1
pop ecx
pop ecx
test eax, eax
je 0x415fff
lea eax, [esp + 0x63c]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.0041c164
pop ecx
pop ecx
lea eax, [esp + 0x18]
push eax
push str.ZIP_SOURCE
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push edi
lea ecx, [esp + 0x18]
call fcn.00407ea3
cmp dword [ebp + 0x222], esi
jbe 0x416039
lea eax, [esp + 0x18]
push eax
push edi
lea eax, [esp + 0x1c]
push str._s__ZIP_SOURCE__s_
push eax
call fcn.004083f0
add esp, 0x10
mov eax, dword [0x440dcc]
test eax, eax
je 0x416044
mov esi, dword [eax]
push esi
push ecx
lea eax, [esp + 0x850]
push eax
lea ecx, [esp + 0x20]
call fcn.00407ed1
mov edx, eax
mov ecx, ebx
call fcn.00409ad2
add esp, 0xc
mov esi, eax
cmp dword [esp + 0xc68], 0
je 0x41609d
mov edi, 0x103
mov dword [esp + 0x10], edi
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
neg eax
push 0x3e8
sbb eax, eax
and dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esp + 0x10], edi
je 0x416078
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x14]
call fcn.00407eb8
xor eax, eax
test esi, esi
setne al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc50
ret

Function at 0x4160bf
Capabilities:
Delete directory
Read .ini file

Disassembly:
push esi
mov esi, ecx
call fcn.00404680
test eax, eax
jne 0x404678
pop esi
ret
mov ecx, esi
pop esi
jmp fcn.00403d6e
push esi
push str.INSTALL.INI
push 0
push str.GARDETEMP
push str.INSTALL
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmp eax, 1
jne 0x4160e0
pop esi
ret
mov ecx, esi
pop esi
jmp 0x40466a
Function at 0x42706e
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00426d2e
Function at 0x401530
Capabilities:
Check for outputdebugstring error
Print debug messages

Disassembly:
push esi
push eax
push 0x457
call dword [sym.imp.KERNEL32.dll_SetLastError]
push section..rdata
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x457
jne 0x4015ad
call fcn.0040dea0
cmp byte [eax + 2], 0
jne 0x4015ad
test byte [eax + 0x68], 0x70
jne 0x4015ad
call fcn.0040e400
mov dword [esp], 0xffffffff
mov eax, dword [0x411294]
mov ecx, dword [0x411298]
mov edx, esp
mov esi, dword [0x411290]
push dword [ecx]
push 1
push edx
push dword [eax]
push esi
call fcn.00401510
add esp, 0x14
or eax, eax
sete al
cmp dword [esp], 0xffffffff
sete cl
or cl, al
movzx eax, cl
neg eax
add esp, 4
pop esi
ret
push 0
call sub.msvcrt.dll_exit
jmp 0x4015b7
nop
nop
nop
nop
nop
jmp 0x4015bf
nop

Function at 0x40bc38
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0x18]
sub ecx, ecx
push ebx
push esi
push edi
mov eax, dword [eax + 0x30]
mov edi, dword [ebp + 8]
mov eax, dword [eax + 0xc]
mov esi, dword [eax + 0xc]
cmp dword [esi + 0x18], ecx
je 0x40bc81
mov ebx, dword [ebp + 0xc]
or ecx, ecx
jne 0x40bc9d
cmp dword [esi + 0x18], ebx
je 0x40bc75
push ecx
push dword [ebp + 0x14]
push dword [esi + 0x18]
push edi
call fcn.0040d833
add esp, 0x10
push eax
pop ecx
mov esi, dword [esi]
cmp dword [esi + 0x18], 0
jne 0x40bc5a
test ecx, ecx
jne 0x40bc9d
push dword [ebp + 0x10]
push edi
call fcn.0040d795
pop ecx
pop ecx
test eax, eax
je 0x40bc9b
push dword [ebp + 0x14]
push eax
call dword [edi + 0x34]
push eax
pop ecx
jmp 0x40bc9d
xor ecx, ecx
pop edi
pop esi
push ecx
pop eax
pop ebx
pop ebp
ret

Function at 0x40d795
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
sub esp, 0x40
sub ecx, ecx
push ebx
push esi
or ebx, 0xffffffff
push edi
cmp byte [edx], cl
je 0x40d7c0
lea esi, [ebp - 0x40]
sub esi, edx
cmp ecx, 0x40
jae 0x40d7c0
mov al, byte [edx]
inc ecx
mov byte [esi + edx], al
inc edx
cmp byte [edx], 0
jne 0x40d7af
cmp byte [ebp + ecx - 0x44], 0x2e
mov byte [ebp + ecx - 0x40], 0
je 0x40d7d9
mov dword [ebp + ecx - 0x40], 0x6c6c642e
mov byte [ebp + ecx - 0x3c], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0xc]
mov edi, dword [eax + 0xc]
mov esi, dword [edi + 0x18]
or esi, esi
je 0x40d820
mov eax, dword [esi + 0x3c]
mov ecx, dword [eax + esi + 0x78]
sub eax, eax
or ecx, ecx
je 0x40d816
mov eax, dword [ecx + esi + 0xc]
add eax, esi
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0040de63
push eax
pop ebx
xor eax, eax
pop ecx
pop ecx
test ebx, ebx
je 0x40d82f
mov edi, dword [edi]
test ebx, ebx
jne 0x40d7e8
test eax, eax
jne 0x40d82a
lea eax, [ebp - 0x40]
push eax
mov eax, dword [ebp + 8]
call dword [eax + 0x30]
pop edi
pop esi
pop ebx
leave
ret
push esi
pop eax
jmp 0x40d82a