joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404990
Capabilities:
Get common file path
Get disk information
Get hostname
Manipulate console buffer
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1d60
call fcn.00410510
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [0x44a138]
push ebx
push esi
push edi
mov edi, dword [eax + 4]
mov eax, dword [0x44a13c]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 8]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 0x18], 0x9e3779b9
mov dword [ebp - 0x1c], edx
call fcn.00404980
mov ecx, dword [0x44a140]
mov edx, dword [0x44a144]
add dword [ebp - 8], 0x23f
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrencyFormatW]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x14], 0x20
jmp 0x404a00
mov dword [ebp - 0x10], 2
add dword [ebp - 0x10], 3
mov esi, dword [ebp - 0xc]
mov eax, dword [0x462254]
shl esi, 4
add esi, dword [ebp - 0x24]
cmp eax, 0xfa9
jne 0x404a2c
mov dword [0x462250], 0xedeb2e40
jmp 0x404a47
cmp eax, 0x3eb
jne 0x404a47
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [0x461ce0], 0
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
add ecx, eax
mov eax, dword [ebp - 0xc]
shr eax, 5
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0x20]
add dword [ebp - 4], edx
xor esi, ecx
cmp dword [0x462254], 0x9e6
mov dword [0x46224c], 0xf4ea3dee
jne 0x404a82
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommConfig]
xor dword [ebp - 4], esi
cmp dword [0x462254], 0x213
jne 0x404b20
push 0
lea eax, [ebp - 0x960]
push eax
push 0
push 0
push 0
push 0
call ebx
lea ecx, [ebp - 0x1560]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
lea edx, [ebp - 0x38]
push edx
lea eax, [ebp - 0x1160]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push 0
call dword [sym.imp.KERNEL32.dll_ClearCommBreak]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsA]
push 0
push 0
lea ecx, [ebp - 0x1d60]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0
call dword [sym.imp.KERNEL32.dll_IsBadCodePtr]
lea edx, [ebp - 0x30]
push edx
push 0
lea eax, [ebp - 0x4c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
lea ecx, [ebp - 0x160]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea edx, [ebp - 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
sub edi, dword [ebp - 4]
cmp dword [0x462254], 0xc
jne 0x404b3e
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetVolumeMountPointA]
push 0
call dword [sym.imp.KERNEL32.dll_GlobalUnWire]
mov eax, dword [ebp - 8]
mov edx, edi
shr edx, 5
lea ecx, [eax + edi]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov eax, edi
shl eax, 4
add eax, dword [ebp - 0x1c]
xor eax, dword [ebp - 4]
xor eax, ecx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
sub dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
sub dword [ebp - 8], eax
sub dword [ebp - 0x14], 1
jne 0x404a00
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 4], edi
pop edi
pop esi
mov dword [eax], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x404b90
Capabilities:
Connect pipe
Create process on windows
Create reverse shell
Read pipe
Set environment variable
Set thread local storage value
Write pipe

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1808
call fcn.00410510
mov eax, dword [0x462254]
mov ecx, dword [0x461ce4]
shr eax, 3
test eax, eax
jbe 0x404ca8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTimeFormatA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
mov edi, edi
cmp dword [0x462254], 0x959
jne 0x404c8e
push 0
lea eax, [ebp - 0x408]
push eax
push 0
push 0
push 0
push 0
call ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateJobObjectW]
push 0
lea ecx, [ebp - 0xc08]
push ecx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CallNamedPipeW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileShortNameW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push 0
push 0
push 0
push 0
push 0
push 0
call esi
push 0
push 0
push 0
call edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
lea edx, [ebp - 0x1008]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push 0
push 0
push 0
push 0
push 0
push 0
call esi
push 0
lea eax, [ebp - 0x1808]
push eax
push 0
call edi
mov ecx, dword [ebp - 4]
push ecx
call fcn.00404990
add dword [ebp - 4], 8
sub dword [ebp - 8], 1
jne 0x404bd0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408b8c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x449540]
jne 0x408b96
repz ret
jmp fcn.0040c8db

Function at 0x40b883
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00409ac6
and dword [ebp - 4], 0
cmp dword [0x44f2f4], 0
mov ebx, eax
jne 0x40b934
push 0x4024bc
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40b9e5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4024b0
push edi
call esi
test eax, eax
je 0x40b9e5
push eax
call fcn.00409a54
mov dword [esp], 0x4024a0
push edi
mov dword [0x44f2f4], eax
call esi
push eax
call fcn.00409a54
mov dword [esp], 0x40248c
push edi
mov dword [0x44f2f8], eax
call esi
push eax
call fcn.00409a54
mov dword [esp], 0x402470
push edi
mov dword [0x44f2fc], eax
call esi
push eax
call fcn.00409a54
pop ecx
mov dword [0x44f304], eax
test eax, eax
je 0x40b934
push 0x402458
push edi
call esi
push eax
call fcn.00409a54
pop ecx
mov dword [0x44f300], eax
mov eax, dword [0x44f300]
cmp eax, ebx
je 0x40b98c
cmp dword [0x44f304], ebx
je 0x40b98c
push eax
call fcn.00409acf
push dword [0x44f304]
mov esi, eax
call fcn.00409acf
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40b98c
test edi, edi
je 0x40b98c
call esi
test eax, eax
je 0x40b983
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40b983
test byte [ebp - 0xc], 1
jne 0x40b98c
or dword [ebp + 0x10], 0x200000
jmp 0x40b9c5
mov eax, dword [0x44f2f8]
cmp eax, ebx
je 0x40b9c5
push eax
call fcn.00409acf
pop ecx
test eax, eax
je 0x40b9c5
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40b9c5
mov eax, dword [0x44f2fc]
cmp eax, ebx
je 0x40b9c5
push eax
call fcn.00409acf
pop ecx
test eax, eax
je 0x40b9c5
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x44f2f4]
call fcn.00409acf
pop ecx
test eax, eax
je 0x40b9e5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40b9e7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10062fb0
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x10063174
pushal
mov esi, section.UPX1
lea edi, [esi - 0x39000]
push edi
or ebp, 0xffffffff
jmp 0x10062fda
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x10062fe1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10062fd0
mov eax, 1
add ebx, ebx
jne 0x10062ff3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x10062fe8
jne 0x10063004
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x10062fe8
xor ecx, ecx
sub eax, 3
jb 0x10063018
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1006308a
mov ebp, eax
add ebx, ebx
jne 0x10063023
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x10063030
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x10063054
inc ecx
add ebx, ebx
jne 0x10063040
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x10063035
jne 0x10063051
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x10063035
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x10063074
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x10063065
jmp 0x10062fd6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x10063074
add edi, ecx
jmp 0x10062fd6
pop esi
mov edi, esi
mov ecx, 0x1b67
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x10063092
cmp byte [edi], 0x19
jne 0x10063092
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 0x10063097
lea edi, [esi + 0x5f000]
mov eax, dword [edi]
or eax, eax
je 0x10063106
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x631dc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x63234]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x100630c4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x63238]
or eax, eax
je 0x10063100
mov dword [ebx], eax
add ebx, 4
jmp 0x100630e1
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x10063137
cmp al, 0xef
ja 0x1006312a
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x1006310c
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x10063119
mov ebp, dword [esi + 0x6323c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x237]
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 0x1006316b
sub esp, 0xffffff80
jmp 0x10003c1c
Function at 0x4021b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4021d4
xor eax, eax
jmp 0x402254
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4021eb
xor eax, eax
jmp 0x402254
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0x10]
and eax, 0xf
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x402237
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jae 0x402237
mov edx, dword [ebp - 4]
movzx eax, word [edx]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
jmp 0x40220e
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jb 0x402243
xor eax, eax
jmp 0x402254
mov edx, dword [ebp - 4]
movzx eax, word [edx]
test eax, eax
jne 0x402251
xor eax, eax
jmp 0x402254
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x40cdd8
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4630a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.0040acf8
mov dword [ebp - 0x14], eax
cmp dword [0x465124], edi
jne 0x40cec9
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x40ce56
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40cfa9
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x40cfa9
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40cfa9
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x465124], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x465128], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x46512c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x465134], eax
test eax, eax
je 0x40cec6
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x465130], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40ceee
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40cee1
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x40cf03
push 4
pop eax
jmp 0x40cfab
cmp dword [ebp - 0x14], edi
je 0x40cf03
push dword [0x465124]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40cee8
mov eax, dword [0x465130]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x40cf61
cmp dword [0x465134], esi
je 0x40cf61
push eax
call ebx
push dword [0x465134]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40cf61
test eax, eax
je 0x40cf61
call ecx
test eax, eax
je 0x40cf56
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40cf56
test byte [ebp - 8], 1
jne 0x40cf61
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x40cf91
mov eax, dword [0x465128]
cmp eax, esi
je 0x40cf8e
push eax
call ebx
test eax, eax
je 0x40cf8e
call eax
mov edi, eax
test edi, edi
je 0x40cf8e
mov eax, dword [0x46512c]
cmp eax, esi
je 0x40cf8e
push eax
call ebx
test eax, eax
je 0x40cf8e
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x465124]
call ebx
test eax, eax
je 0x40cfa9
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x40cfab
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00405d5d
leave
ret
Function at 0x401610
Capabilities:
Read file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x6c
mov ebx, dword [esp + 0x80]
mov esi, dword [esp + 0x84]
mov eax, dword [ebx]
test eax, eax
je 0x401790
mov edi, dword [ebx + 4]
mov eax, dword [esi + 4]
mov ebp, dword [sym.imp.WS2_32.dll_ntohl]
mov dword [esp], eax
call ebp
sub esp, 4
add edi, eax
mov dword [esp + 4], edi
mov dword [esp + 8], 0
mov eax, dword [ebx]
mov dword [esp], eax
call sub.msvcrt.dll_fseek
mov eax, dword [esi + 8]
mov dword [esp], eax
call ebp
sub esp, 4
mov dword [esp], eax
call sub.msvcrt.dll_malloc
test eax, eax
mov edi, eax
je 0x4017e0
mov edx, dword [ebx]
mov eax, dword [esi + 8]
mov dword [esp + 0x1c], edx
mov dword [esp], eax
call ebp
sub esp, 4
mov edx, dword [esp + 0x1c]
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov dword [esp], edi
mov dword [esp + 0xc], edx
call sub.msvcrt.dll_fread
test eax, eax
je 0x4017c5
cmp byte [esi + 0x10], 1
je 0x4016d1
mov eax, dword [ebx]
test eax, eax
je 0x4016c7
mov dword [esp], eax
call sub.msvcrt.dll_fclose
mov dword [ebx], 0
add esp, 0x6c
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.004088c0
mov eax, dword [esi + 0xc]
mov dword [esp], eax
call ebp
sub esp, 4
mov dword [esp], eax
call sub.msvcrt.dll_malloc
test eax, eax
mov dword [esp + 0x1c], eax
je 0x401845
mov eax, dword [esi + 8]
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x28], edi
mov dword [esp], eax
call ebp
sub esp, 4
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x34], eax
mov eax, dword [esi + 0xc]
mov dword [esp], eax
call ebp
sub esp, 4
lea ebp, [esp + 0x28]
mov dword [esp + 8], 0x38
mov dword [esp + 4], 0x40c0ab
mov dword [esp + 0x38], eax
mov dword [esp], ebp
call fcn.00405ce0
test eax, eax
js 0x4017f1
mov dword [esp + 4], 4
mov dword [esp], ebp
call fcn.00405d80
test eax, eax
js 0x40182b
mov dword [esp], ebp
call fcn.00407cc0
mov dword [esp], edi
call sub.msvcrt.dll_free
mov edi, dword [esp + 0x1c]
jmp 0x4016b3
lea eax, [ebx + 0x68]
mov dword [esp + 4], 0x40c044
mov dword [esp], eax
call fcn.00402f60
test eax, eax
mov dword [ebx], eax
jne 0x40162f
mov dword [esp], str.Cannot_open_archive_file_n
xor edi, edi
call fcn.00401ec0
add esp, 0x6c
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], str.Could_not_read_from_file_n
xor edi, edi
call fcn.00401ec0
jmp 0x4016c7
mov dword [esp], str.Could_not_allocate_read_buffer_n
call fcn.00401ec0
jmp 0x4016c7
mov edx, dword [esp + 0x40]
mov dword [esp + 4], eax
mov dword [esp], str.Error__d_from_inflateInit:__s_n
mov dword [esp + 8], edx
call fcn.00401ec0
mov dword [esp], edi
add esi, 0x12
xor edi, edi
call sub.msvcrt.dll_free
mov dword [esp + 4], esi
mov dword [esp], str.Error_decompressing__s_n
call fcn.00401ec0
jmp 0x4016c7
mov edx, dword [esp + 0x40]
mov dword [esp + 4], eax
mov dword [esp], str.Error__d_from_inflate:__s_n
mov dword [esp + 8], edx
call fcn.00401ec0
jmp 0x401809
mov dword [esp], str.Error_allocating_decompression_buffer_n
call fcn.00401ec0
jmp 0x401809
Function at 0x401860
Capabilities:
Write file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov ebx, dword [esp + 0x30]
mov esi, dword [esp + 0x34]
mov dword [esp], ebx
mov dword [esp + 4], esi
call fcn.00401610
mov dword [esp], ebx
mov edi, eax
call fcn.004048b0
cmp eax, 0xffffffff
je 0x4018e9
lea ebp, [esi + 0x12]
add ebx, 0x2068
mov dword [esp], ebx
mov dword [esp + 4], ebp
call fcn.00404b30
mov ebx, eax
mov eax, dword [esi + 0xc]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_ntohl]
sub esp, 4
test ebx, ebx
mov esi, eax
je 0x401908
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 1
mov dword [esp + 4], eax
mov dword [esp], edi
call sub.msvcrt.dll_fwrite
cmp eax, 1
je 0x4018d7
test esi, esi
jne 0x4018f1
mov dword [esp], ebx
call sub.msvcrt.dll_fclose
mov dword [esp], edi
call sub.msvcrt.dll_free
xor eax, eax
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], ebp
mov dword [esp], str.Failed_to_write_all_bytes_for__s_n
call fcn.00401ec0
mov eax, 0xffffffff
jmp 0x4018e9
mov dword [esp + 4], ebp
mov dword [esp], str._s_could_not_be_extracted__n
call fcn.00401ec0
mov eax, 0xffffffff
jmp 0x4018e9
Function at 0x404670
Capabilities:
Query environment variable

Disassembly:
push ebx
mov eax, 0x4018
call fcn.0040a890
sub esp, eax
mov eax, dword [esp + 0x4020]
lea ebx, [esp + 0x10]
mov dword [esp + 8], 0
mov dword [esp], 0
mov dword [esp + 4], eax
call fcn.004053d0
mov dword [esp + 8], 0x2000
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
sub esp, 0xc
test eax, eax
jne 0x4046d0
add esp, 0x4018
xor eax, eax
pop ebx
ret
lea eax, [esp + 0x2010]
mov dword [esp + 8], 0x2000
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
sub esp, 0xc
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], 0
call fcn.00405220
test eax, eax
je 0x4046bc
cmp byte [eax], 0
je 0x4046bc
mov dword [esp], eax
call sub.msvcrt.dll__strdup
add esp, 0x4018
pop ebx
ret

Function at 0x404720
Capabilities:
Set environment variable

Disassembly:
push edi
push esi
push ebx
sub esp, 0x10
mov eax, dword [esp + 0x20]
mov dword [esp + 8], 0
mov dword [esp], 0
mov dword [esp + 4], eax
call fcn.004053d0
mov esi, eax
mov eax, dword [esp + 0x24]
mov dword [esp + 8], 0
mov dword [esp], 0
mov dword [esp + 4], eax
call fcn.004053d0
mov dword [esp], esi
mov ebx, eax
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
sub esp, 8
mov edi, eax
mov dword [esp], esi
call sub.msvcrt.dll_free
mov dword [esp], ebx
call sub.msvcrt.dll_free
add esp, 0x10
mov eax, edi
pop ebx
pop esi
pop edi
ret

Function at 0x404790
Capabilities:
Set environment variable

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [esp + 0x20]
mov dword [esp + 8], 0
mov dword [esp], 0
mov dword [esp + 4], eax
call fcn.004053d0
mov dword [esp + 4], 0
mov ebx, eax
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
sub esp, 8
mov esi, eax
mov dword [esp], ebx
call sub.msvcrt.dll_free
add esp, 0x14
mov eax, esi
pop ebx
pop esi
ret

Function at 0x4047e0
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
push edi
mov eax, 0x203c
push esi
push ebx
call fcn.0040a890
mov ebx, 5
sub esp, eax
lea edi, [esp + 0x30]
mov dword [esp], 0x1000
mov dword [esp + 4], edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
sub esp, 8
lea esi, [esp + 0x10]
call sub.msvcrt.dll__getpid
mov dword [esp + 8], str._MEI_d
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0x10
mov dword [esp], esi
call fcn.00404550
mov dword [esp + 4], esi
mov dword [esp], edi
call dword [sym.imp.msvcrt.dll__wtempnam]
mov ebp, eax
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__wmkdir]
test eax, eax
je 0x404870
mov dword [esp], ebp
call sub.msvcrt.dll_free
sub ebx, 1
jne 0x404832
add esp, 0x203c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x2050]
mov dword [esp + 4], ebp
mov dword [esp + 8], 0x1000
mov dword [esp], eax
call fcn.00405220
mov dword [esp], ebp
call sub.msvcrt.dll_free
add esp, 0x203c
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x404910
Capabilities:
Delete directory

Disassembly:
push ebp
push edi
mov eax, 0x445c
push esi
push ebx
call fcn.0040a890
sub esp, eax
mov eax, dword [esp + 0x4470]
mov dword [esp + 8], 0x1000
lea ebp, [esp + 0x44c]
mov dword [esp + 4], eax
lea eax, [esp + 0x244e]
mov dword [esp], eax
call fcn.004053d0
lea eax, [esp + 0x244e]
mov dword [esp], ebp
mov dword [esp + 4], eax
call sub.msvcrt.dll_wcscpy
mov dword [esp], ebp
call sub.msvcrt.dll_wcslen
mov esi, eax
mov dword [esp + 0x22c], eax
movzx eax, word [esp + eax*2 + 0x44a]
cmp ax, 0x2f
je 0x404985
cmp ax, 0x5c
jne 0x404a11
lea ebx, [esp + 0x230]
mov dword [esp + 4], 0x40d2c8
mov dword [esp], ebp
call sub.msvcrt.dll_wcscat
mov dword [esp + 4], ebx
mov dword [esp], ebp
call dword [sym.imp.msvcrt.dll__wfindfirst]
cmp eax, 0xffffffff
mov dword [esp + 0x228], eax
je 0x4049f6
mov ecx, 0x87
mov edi, esp
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov eax, ebp
mov edx, dword [esp + 0x22c]
call fcn.00404a40
mov eax, dword [esp + 0x228]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__wfindnext]
test eax, eax
je 0x4049b5
mov eax, dword [esp + 0x228]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__findclose]
lea eax, [esp + 0x244e]
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__wrmdir]
add esp, 0x445c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], 0x40d2c4
mov dword [esp], ebp
call sub.msvcrt.dll_wcscat
mov eax, esi
add eax, 1
mov dword [esp + 0x22c], eax
jmp 0x404985

Function at 0x404a40
Capabilities:
Delete file

Disassembly:
push edi
push esi
push ebx
push eax
mov eax, 0x101c
call fcn.0040a890
sub esp, eax
mov edi, edx
mov eax, dword [esp + eax]
lea ebx, [esp + 0x1044]
mov dword [esp + 4], 0x40d2cc
mov dword [esp], ebx
mov esi, eax
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x404a80
add esp, 0x1020
pop ebx
pop esi
pop edi
ret
mov dword [esp + 4], 0x40d2d0
mov dword [esp], ebx
call sub.msvcrt.dll_wcscmp
test eax, eax
je 0x404a72
xor eax, eax
mov dword [esp + 4], ebx
mov dword [esp], esi
mov word [esi + edi*2], ax
call sub.msvcrt.dll_wcscat
test byte [esp + 0x1030], 0x10
jne 0x404ae0
mov dword [esp], esi
mov ebx, dword [sym.imp.msvcrt.dll__wremove]
call ebx
test eax, eax
je 0x404a72
mov dword [esp], 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
sub esp, 4
mov dword [esp], esi
call ebx
jmp 0x404a72
lea ebx, [esp + 0x1f]
mov dword [esp + 8], 0x1000
mov dword [esp + 4], esi
mov dword [esp], ebx
call fcn.00405220
mov dword [esp], ebx
call fcn.00404910
jmp 0x404a72