joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404c70
Capabilities:
Get geographical location
Identify system language via api
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x4340c0]
sub esp, 0xa0
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
test eax, eax
je 0x404ca4
nop dword [eax]
cmp eax, esi
je 0x404ca4
inc edi
mov eax, edi
shl eax, 4
mov eax, dword [eax + 0x4340c0]
test eax, eax
jne 0x404c90
shl edi, 4
cmp dword [edi + 0x4340c0], 0
jne 0x404cbb
pop edi
mov eax, 0x42aa08
pop esi
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
push esi
mov dword [ebp - 8], eax
lea eax, [ebp - 0x60]
push str.SfxString_d
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x60]
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
mov dword [ebp - 4], esi
call ebx
mov edx, 2
test eax, eax
jne 0x404d63
xor ecx, ecx
lea eax, [esi + 2]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041e4d0
mov ecx, dword [ebp - 4]
add esp, 4
inc ecx
mov esi, eax
lea eax, [ebp - 0x60]
push ecx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp eax, dword [ebp - 4]
ja 0x404d5a
call ebx
test eax, eax
jne 0x404d5a
mov eax, dword [edi + 0x4340cc]
test eax, eax
je 0x404d52
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x404d5a
push 2
push dword [edi + 0x4340cc]
call fcn.0041e4c2
add esp, 8
mov dword [edi + 0x4340cc], esi
jmp 0x404d63
push esi
call fcn.0041e4d9
add esp, 4
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [edi + 0x4340cc]
test eax, eax
jne 0x404e9d
mov ebx, dword [edi + 0x4340c4]
cmp dword [edi + 0x4340c8], eax
je 0x404e02
mov dx, word [0x434f08]
test dx, dx
jne 0x404df1
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov cx, ax
mov word [0x434f08], ax
mov edx, 0x3ff
and cx, dx
cmp cx, 9
je 0x404db6
movzx eax, ax
jmp 0x404df4
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
mov ecx, 0x409
cmp ax, cx
jne 0x404dea
mov esi, dword [0x42adb0]
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
movzx edx, word [0x434f08]
cmp eax, esi
movzx ecx, si
cmove edx, ecx
mov word [0x434f08], dx
jmp 0x404df1
mov dx, word [0x434f08]
movzx eax, dx
cmp eax, dword [0x42adb0]
jne 0x404e02
mov ebx, dword [edi + 0x4340c8]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
xor ecx, ecx
mov edx, 2
lea esi, [eax + 1]
lea eax, [esi + 2]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041e4d0
mov ecx, dword [0x4340bc]
add esp, 4
mov dword [edi + 0x4340cc], eax
cmp ecx, 0xffffffff
jne 0x404e82
push 0x1f
lea eax, [ebp - 0xa0]
mov dword [0x4340bc], 0
push eax
movzx eax, word [0x434f08]
push 0x1004
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jle 0x404e7c
lea eax, [ebp - 0xa0]
push eax
call fcn.0041fca5
mov ecx, eax
add esp, 4
mov dword [0x4340bc], ecx
jmp 0x404e82
mov ecx, dword [0x4340bc]
lea eax, [esi + 1]
push eax
push dword [edi + 0x4340cc]
push esi
push ebx
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [edi + 0x4340cc]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x405660
Capabilities:
Identify system language via api

Disassembly:
mov dx, word [0x434f08]
test dx, dx
jne 0x4056cc
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov cx, ax
mov word [0x434f08], ax
mov edx, 0x3ff
and cx, dx
cmp cx, 9
je 0x40568d
movzx eax, ax
ret
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
mov ecx, 0x409
cmp ax, cx
jne 0x4056c5
push esi
mov esi, dword [0x42adb0]
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
movzx edx, word [0x434f08]
cmp eax, esi
movzx ecx, si
cmove edx, ecx
mov word [0x434f08], dx
pop esi
movzx eax, dx
ret
mov dx, word [0x434f08]
movzx eax, dx
ret

Function at 0x4056d0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push edi
mov edi, dword [ebp + 8]
mov ecx, edi
call fcn.00416340
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov ebx, eax
test ebx, ebx
jle 0x40574d
push esi
push edi
lea ecx, [ebp - 0x10]
lea esi, [ebx + 1]
call fcn.00416280
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
mov dword [ebp + 8], eax
mov dword [ebp - 4], ecx
cmp esi, dword [edi + 8]
jbe 0x40571d
push esi
mov ecx, edi
call fcn.00416c10
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
push eax
push ecx
push dword [edi]
call fcn.0041fd04
push dword [ebp - 0x10]
mov esi, dword [edi]
call fcn.0041e4d9
add esp, 0x10
lea eax, [ebx + 1]
push eax
push esi
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [edi]
xor eax, eax
mov dword [edi + 4], ebx
pop esi
mov word [ecx + ebx*2], ax
mov eax, edi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x405960
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 4]
mov dword [ebp - 8], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push eax
mov dword [ebp - 0x10], 0
mov word [ebp - 0xc], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x4059ac
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x405d20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
movzx ecx, word [0x434f08]
mov edi, eax
mov ebx, dword [ebp + 0xc]
push ecx
push ebx
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
mov esi, eax
test esi, esi
jne 0x405d65
push 0x409
push ebx
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
mov esi, eax
test esi, esi
je 0x405d90
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x405d76
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebx], eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x405d90
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [0x434f14], 0
jne 0x405dfc
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SetProcessPreferredUILanguages
push dword [0x434f58]
mov dword [0x434f14], 1
call edi
movzx ecx, word [0x434f08]
mov esi, eax
push 0
push 0x409
push 0
push ecx
lea eax, [ebp - 0x40]
push str._04X_c_04X_c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
test esi, esi
jne 0x405df2
push str.SetThreadPreferredUILanguages
push dword [0x434f58]
call edi
mov esi, eax
test esi, esi
je 0x405dfc
push 0
lea eax, [ebp - 0x40]
push eax
push 4
call esi
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x405ef0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
push 1
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov edi, dword [ebp + 8]
mov esi, eax
mov ecx, edi
mov dword [ebp - 8], esi
call fcn.00416340
push edi
lea ecx, [ebp - 0x18]
add esi, 2
call fcn.00416280
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
mov dword [ebp + 8], eax
mov dword [ebp - 4], ecx
cmp esi, dword [edi + 8]
jbe 0x405f41
push esi
mov ecx, edi
call fcn.00416c10
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
push eax
push ecx
push dword [edi]
call fcn.0041fd04
push dword [ebp - 0x18]
call fcn.0041e4d9
add esp, 0x10
lea ecx, [ebp - 0x18]
push edi
call fcn.00416280
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
mov dword [ebp + 8], eax
mov dword [ebp - 4], ecx
cmp esi, dword [edi + 8]
jbe 0x405f7d
push esi
mov ecx, edi
call fcn.00416c10
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
push eax
push ecx
push dword [edi]
call fcn.0041fd04
push dword [ebp - 0x18]
mov esi, dword [edi]
call fcn.0041e4d9
mov eax, dword [ebp - 8]
add esp, 0x10
inc eax
push eax
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov eax, dword [edi]
xor ecx, ecx
cmp word [eax], cx
je 0x405fb8
nop dword [eax + eax]
inc ecx
cmp word [eax + ecx*2], 0
jne 0x405fb0
mov dword [edi + 4], ecx
xor edx, edx
mov word [eax + ecx*2], dx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x406a00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
cmp dword [0x435094], 3
jne 0x406a3a
push 0
lea eax, [ebp - 8]
mov word [ebp - 4], 0xd7a
push eax
push 3
lea eax, [ebp - 4]
mov byte [ebp - 2], 0xa
push eax
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor al, al
mov esp, ebp
pop ebp
ret
push ebx
push esi
push edi
lea ecx, [ebp - 0x20]
call fcn.00416180
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov eax, dword [edi]
cmp byte [eax + esi], 0
je 0x406a8a
mov ecx, dword [ebp - 0x1c]
mov bl, byte [eax + esi]
cmp bl, 0xa
je 0x406a8a
cmp bl, 0xd
je 0x406a8a
cmp dword [ebp - 0x18], ecx
jne 0x406a73
lea ecx, [ebp - 0x20]
call fcn.004169e0
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
inc esi
mov byte [eax + ecx], bl
inc ecx
mov byte [eax + ecx], 0
mov eax, dword [edi]
mov dword [ebp - 0x1c], ecx
cmp byte [eax + esi], 0
jne 0x406a56
lea ecx, [ebp - 0x14]
call fcn.00416340
mov edi, dword [ebp - 0x1c]
test edi, edi
je 0x406af5
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00416280
mov esi, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x2c]
cmp edi, dword [ebp - 0xc]
jbe 0x406ab9
push edi
lea ecx, [ebp - 0x14]
call fcn.00416c10
push esi
push ebx
push dword [ebp - 0x14]
call fcn.0041fd04
push dword [ebp - 0x2c]
mov esi, dword [ebp - 0x14]
call fcn.0041e4d9
add esp, 0x10
lea eax, [edi + 1]
push eax
push esi
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, dword [ebp - 0x14]
xor edx, edx
mov dword [ebp - 0x10], eax
mov word [ecx + eax*2], dx
cmp byte [ebp + 0x10], 0
pop edi
pop esi
pop ebx
push dword [ebp - 0x14]
jne 0x406b15
push dword [0x434084]
push 0xb
push 0
call fcn.0040c000
add esp, 0x10
jmp 0x406b21
push 0x20
push 0
call fcn.0040c000
add esp, 0xc
push dword [ebp - 0x14]
call fcn.0041e4d9
push dword [ebp - 0x20]
call fcn.0041e4d9
add esp, 8
xor al, al
mov esp, ebp
pop ebp
ret
Function at 0x407130
Capabilities:
Create process on windows
Get disk information
Self delete
Set file attributes
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x30
cmp word [eax + 2], 0x3a
push edi
jne 0x4072bd
movzx ecx, word [eax + 4]
cmp ecx, 0x5c
je 0x407157
cmp ecx, 0x2f
jne 0x4072bd
mov ax, word [eax]
mov word [ebp - 0xc], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0xa], 0x5c003a
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x4072ba
lea eax, [ebp - 0x24]
push str.7ZSfx_03x.cmd
push eax
call fcn.00404580
add esp, 8
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4072af
push esi
lea ecx, [ebp - 0x18]
call fcn.00416340
push str.:Repeat_r_n
lea ecx, [ebp - 0x18]
call fcn.004164b0
push str.del__
lea ecx, [ebp - 0x18]
call fcn.004167f0
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x18]
call fcn.00416790
push 0x42bc9c
lea ecx, [ebp - 0x18]
call fcn.004167f0
push str.if_exist__
lea ecx, [ebp - 0x18]
call fcn.004167f0
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x18]
call fcn.00416790
push str.__goto_Repeat_r_n
lea ecx, [ebp - 0x18]
call fcn.004167f0
push str.del__
lea ecx, [ebp - 0x18]
call fcn.004167f0
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x18]
call fcn.00416790
push 0x42bc9c
lea ecx, [ebp - 0x18]
call fcn.004167f0
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x18]
push 1
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00406ee0
add esp, 0xc
lea ecx, [ebp - 4]
push 0
push ecx
push esi
push dword [eax]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x30]
mov esi, eax
call fcn.0041e4d9
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
pop esi
je 0x4072cb
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0x14]
jne 0x4072cb
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 0
push 0
push 0
push dword [ebp - 0x24]
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push dword [ebp - 0x18]
call fcn.0041e4d9
add esp, 4
push dword [ebp - 0x24]
call fcn.0041e4d9
add esp, 4
mov eax, dword [ebp + 8]
push eax
call fcn.0041e4d9
add esp, 4
pop edi
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x24]
call fcn.00404830
push dword [ebp - 0x18]
call fcn.0041e4d9
push dword [ebp - 0x24]
call fcn.0041e4d9
mov eax, dword [ebp + 8]
add esp, 0xc
push eax
call fcn.0041e4d9
add esp, 4
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x407af0
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
cmp dword [0x43505c], esi
jle 0x407b9d
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
nop dword [eax]
mov eax, dword [0x435058]
lea ecx, [ebp - 0xc]
mov eax, dword [eax + esi*4]
add eax, 0xc
push eax
call fcn.00416280
lea eax, [ebp - 0xc]
push eax
call fcn.00404940
lea eax, [ebp - 0xc]
push 0x434f6c
push eax
call fcn.004068f0
lea eax, [ebp - 0xc]
push eax
call fcn.00404940
lea eax, [ebp - 0xc]
push 0x434f78
push eax
call fcn.00406820
lea eax, [ebp - 0xc]
push 0x434f84
push eax
call fcn.00406750
lea eax, [ebp - 0xc]
push eax
call fcn.004069c0
lea eax, [ebp - 0xc]
push eax
call fcn.00404940
mov eax, dword [0x435058]
add esp, 0x28
mov eax, dword [eax + esi*4]
push dword [ebp - 0xc]
push dword [eax]
call edi
push dword [ebp - 0xc]
call fcn.0041e4d9
inc esi
add esp, 4
cmp esi, dword [0x43505c]
jl 0x407b10
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x409180
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push 0
push 0
call fcn.00420326
mov ecx, dword [ebp + 8]
add esp, 0x18
mov dword [ecx], eax
test eax, eax
je 0x4091ab
xor eax, eax
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov ecx, 1
cmovne ecx, eax
mov eax, ecx
mov esp, ebp
pop ebp
ret

Function at 0x409390
Capabilities:
Set current directory

Disassembly:
push esi
push dword [0x434f78]
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
cmp dword [esi + 8], 0
je 0x4093fa
mov eax, dword [esi + 8]
cmp eax, dword [0x434f7c]
jne 0x4093ef
mov ecx, dword [0x434f78]
mov eax, dword [esi + 4]
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4093e6
test dx, dx
je 0x4093e2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4093e6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4093c0
xor eax, eax
jmp 0x4093eb
sbb eax, eax
or eax, 1
test eax, eax
je 0x4093fa
push dword [esi + 4]
call fcn.00404830
add esp, 4
mov eax, dword [esi + 4]
xor ecx, ecx
mov dword [esi + 8], 0
pop esi
mov word [eax], cx
mov al, 1
ret

Function at 0x40a750
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x4343b4]
mov byte [0x434f40], 0
push ebx
mov ebx, ecx
mov dword [ebp - 4], ebx
push esi
push edi
test eax, 0x200
jne 0x40a7d3
push 0x65
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
mov esi, dword [sym.imp.USER32.dll_GetSystemMetrics]
mov edi, eax
push 0
push 0x32
call esi
push eax
push 0x31
call esi
push eax
push 1
push 0x65
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.USER32.dll_LoadImageW]
push edi
mov esi, eax
push 1
push 0x80
push dword [ebx + 4]
test esi, esi
cmove esi, edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
call edi
push esi
push 0
push 0x80
push dword [ebx + 4]
call edi
mov eax, dword [0x4343b4]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
test eax, 0x4000
je 0x40a84c
push 0x4b2
push dword [ebx + 4]
call edi
push 0x4b2
push dword [ebx + 4]
mov esi, eax
call edi
push 0xfffffffffffffff0
push esi
mov edi, eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov ebx, dword [sym.imp.USER32.dll_SetWindowLongW]
or eax, 0x80
push eax
push 0xfffffffffffffff0
push edi
call ebx
mov edi, dword [ebp - 4]
push 0x4b5
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0x4b5
push dword [edi + 4]
mov esi, eax
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0xfffffffffffffff0
push esi
mov edi, eax
call dword [sym.imp.USER32.dll_GetWindowLongW]
or eax, 0x80
push eax
push 0xfffffffffffffff0
push edi
call ebx
mov ebx, dword [ebp - 4]
mov edi, dword [ebx + 0x10]
push 0x4b2
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
push edi
push esi
call dword [sym.imp.USER32.dll_SetWindowTextW]
push esi
call fcn.004066d0
add esp, 4
mov ecx, ebx
push dword [ebx + 0xc]
call fcn.0040bb10
mov eax, dword [ebx + 8]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
and eax, 3
jmp dword [eax*4 + 0x40aacc]
Function at 0x40ae60
Capabilities:
Get common file path
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4d0
push esi
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
lea eax, [ebp - 0x10]
push edi
mov edi, ecx
push eax
push 0x4b6
push dword [edi + 4]
call esi
push eax
call fcn.00404b20
mov eax, dword [ebp - 4]
add esp, 8
sub eax, dword [ebp - 0xc]
add eax, 2
cmp dword [edi + 0x38], 0
mov dword [edi + 0x58], eax
jne 0x40aed0
push 0x4b6
push dword [edi + 4]
call esi
test eax, eax
je 0x40aeb3
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [edi + 0x38], 0
jne 0x40aed0
push 0x4b7
push dword [edi + 4]
call esi
test eax, eax
je 0x40aed0
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x2b4
lea eax, [ebp - 0x2c4]
push 0
push eax
call fcn.0041bff0
add esp, 0xc
lea eax, [ebp - 0x4d0]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x103
push 0x2b4
lea eax, [ebp - 0x2c4]
push eax
push 0
lea eax, [ebp - 0x4d0]
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov eax, dword [ebp - 0x2c4]
push 0x4b7
push dword [edi + 4]
mov dword [edi + 0x50], eax
call esi
push 0x409950
push 0xfffffffffffffffc
push eax
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov ecx, edi
mov dword [edi + 0x54], eax
call fcn.0040a750
mov ecx, edi
mov esi, eax
call fcn.0040bcc0
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40c210
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
mov dword [ebp - 4], ebx
mov eax, dword [ebx + 4]
test eax, eax
je 0x40c279
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40c279
push esi
mov esi, dword [ebx + 4]
mov ebx, dword [sym.imp.USER32.dll_SetWindowTextW]
push edi
push dword [0x434f18]
push esi
call ebx
push esi
call fcn.004066d0
push 0x2d
call fcn.00404c70
add esp, 8
mov edi, eax
mov eax, dword [ebp - 4]
push 0x4b2
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
push edi
push esi
call ebx
push esi
call fcn.004066d0
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
push ebx
push 0x40c4a0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40ca40
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor eax, eax
mov edx, eax
mov ecx, eax
and edx, 1
shr ecx, 1
neg edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
neg edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
neg edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
shr ecx, 1
and edx, 1
neg edx
and edx, 0xedb88320
xor edx, ecx
mov ecx, edx
shr edx, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, edx
mov dword [eax*4 + 0x437e60], ecx
inc eax
cmp eax, 0x100
jb 0x40ca42
cmp eax, 0x800
jae 0x40cb13
nop word [eax + eax]
mov edx, dword [eax*4 + 0x437a60]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x437e60]
mov dword [eax*4 + 0x437e60], edx
inc eax
cmp eax, 0x800
jb 0x40caf0
mov dword [0x437e40], 0x4295d0
mov dword [0x437e38], 0x4295d0
mov dword [0x437e3c], 0x4294f0
call fcn.00414480
mov ecx, dword [0x437e38]
test eax, eax
mov edx, 0x4294f0
cmove ecx, edx
mov dword [0x437e38], ecx
ret
Function at 0x414430
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
lea eax, [ebp - 0x134]
mov dword [ebp - 0x134], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x41447a
cmp dword [ebp - 0x130], 5
jb 0x41447a
lea eax, [ebp - 0x20]
push eax
call fcn.004145b0
add esp, 4
test eax, eax
je 0x41447a
mov eax, dword [ebp - 8]
shr eax, 0x19
and eax, 1
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x414890
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4148bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4148bb
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [ebp - 4]
add ecx, esi
pop esi
adc edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
mov esp, ebp
pop ebp
ret 4

Function at 0x414ac0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0x10]
mov edx, ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], edx
mov dword [ebx], 0
nop dword [eax + eax]
cmp esi, dword [0x4345b0]
lea eax, [ebp + 0x10]
push 0
push eax
mov ecx, esi
mov dword [ebp + 0x10], 0
cmova ecx, dword [0x4345b0]
push ecx
push edi
push dword [edx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp + 0x10]
add dword [ebx], ecx
test eax, eax
je 0x414b27
test ecx, ecx
je 0x414b1c
mov edx, dword [ebp - 4]
add edi, ecx
sub esi, ecx
jne 0x414ae0
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x418eb0
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
xor ecx, ecx
lea esi, [edi + 0x1c]
shr edi, 2
mov eax, edi
mov dword [ebp - 0xc], esi
shr eax, 1
add eax, 3
mov dword [ebx], eax
add ebx, 0x10
mov dword [ebp - 8], ebx
test edi, edi
je 0x418eed
nop dword [eax]
mov eax, dword [edx]
lea edx, [edx + 4]
mov dword [ebx + ecx*4], eax
inc ecx
cmp ecx, edi
jb 0x418ee0
cmp ecx, esi
jae 0x418fca
mov eax, ecx
sub eax, edi
lea esi, [ebx + eax*4]
mov dword [ebp + 8], esi
nop
xor edx, edx
mov ebx, dword [ebx + ecx*4 - 4]
mov eax, ecx
div edi
mov dword [ebp - 4], eax
test edx, edx
jne 0x418f63
movzx edx, bl
movzx esi, byte [edx + str.cw]
mov edx, ebx
shr edx, 0x18
shl esi, 8
movzx eax, byte [edx + str.cw]
or esi, eax
mov eax, ebx
shr eax, 0x10
movzx eax, al
shl esi, 8
shr ebx, 8
movzx eax, byte [eax + str.cw]
or esi, eax
movzx eax, bl
shl esi, 8
movzx ebx, byte [eax + str.cw]
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x42c350]
xor ebx, eax
or ebx, esi
mov esi, dword [ebp + 8]
jmp 0x418fb0
cmp edi, 6
jbe 0x418fb0
cmp edx, 4
jne 0x418fb0
mov eax, ebx
shr eax, 0x10
movzx eax, al
movzx edx, byte [eax + str.cw]
mov eax, ebx
shr eax, 0x18
movzx eax, byte [eax + str.cw]
shl eax, 8
or edx, eax
mov eax, ebx
shr eax, 8
movzx eax, al
shl edx, 8
movzx eax, byte [eax + str.cw]
or edx, eax
movzx eax, bl
shl edx, 8
movzx ebx, byte [eax + str.cw]
or ebx, edx
mov eax, dword [esi]
add esi, 4
xor eax, ebx
mov dword [ebp + 8], esi
mov ebx, dword [ebp - 8]
mov dword [ebx + ecx*4], eax
inc ecx
cmp ecx, dword [ebp - 0xc]
jb 0x418f00
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4