joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407000
Capabilities:
Create thread

Disassembly:
push ecx
cmp byte [0x41b00e], 0
push esi
push edi
mov esi, eax
je 0x4070de
mov eax, dword [0x41d274]
push 0
push eax
call fcn.004012c0
mov eax, dword [0x41d274]
call fcn.004014c0
mov eax, dword [0x41d274]
call fcn.004015d0
cmp dword [0x41d23c], 0x7fffffff
jne 0x407044
call fcn.00405ef0
test esi, esi
je 0x407057
mov ecx, dword [0x41d274]
push esi
push ecx
call fcn.00401c70
jmp 0x40708e
mov edx, dword [0x41d274]
push edx
call fcn.004019c0
mov eax, dword [0x41d274]
push 0
push 0
push eax
push 0x406880
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x41d274]
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov esi, eax
je 0x4070b0
call fcn.00401220
push esi
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 8
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x4070d7
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [0x41d274], eax
pop edi
pop esi
pop ecx
ret
xor eax, eax
mov dword [0x41d274], eax
pop edi
pop esi
pop ecx
ret
Function at 0x4077c0
Capabilities:
Check os version

Disassembly:
mov eax, dword [0x41d2b0]
sub esp, 8
test eax, eax
push ebx
jne 0x4077d8
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [0x41d2b0], eax
cmp al, 6
jae 0x4077e3
xor al, al
pop ebx
add esp, 8
ret
cmp byte [0x41b00e], 0
je 0x4077dc
lea eax, [esp + 8]
push eax
call dword [0x41d264]
call fcn.00407580
mov ecx, dword [esp + 8]
push ecx
mov bl, al
call dword [0x41d270]
mov al, bl
pop ebx
add esp, 8
ret

Function at 0x407810
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x40
push esi
lea eax, [esp + 4]
push eax
mov eax, dword [0x41d28c]
push 0x14
call fcn.00402950
mov esi, eax
test esi, esi
jne 0x407832
xor al, al
pop esi
add esp, 0x40
ret
push edi
push 0x3c
lea ecx, [esp + 0x10]
push 0
push ecx
call fcn.00401100
add esp, 0xc
lea edx, [esp + 0xc]
push edx
mov dword [esp + 0x10], 0x3c
mov dword [esp + 0x2c], 1
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], 0x41b238
mov dword [esp + 0x24], 0x40a2b8
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
test edi, edi
pop edi
setne al
pop esi
add esp, 0x40
ret

Function at 0x4078e0
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 8
push ebx
lea eax, [esp + 4]
push eax
mov dword [0x41d250], 0
xor bl, bl
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ecx, eax
test ecx, ecx
mov dword [esp + 8], ecx
jne 0x407913
xor al, al
pop ebx
add esp, 8
ret
mov eax, 1
cmp dword [esp + 4], eax
jle 0x407988
push ebp
push esi
push edi
mov edi, dword [ecx + eax*4]
movzx ebp, word [edi]
cmp bp, 0x6e
jne 0x40796d
movzx ecx, word [edi + 2]
lea esi, [edi + 2]
xor edx, edx
test cx, cx
je 0x407961
jmp 0x407940
cmp cx, 0x30
jb 0x407961
cmp cx, 0x39
ja 0x407961
movzx ecx, cx
lea edx, [edx + edx*4]
add esi, 2
lea edx, [ecx + edx*2 - 0x30]
movzx ecx, word [esi]
test cx, cx
jne 0x407940
mov ecx, dword [esp + 0x14]
mov dword [0x41b028], edx
mov bl, 2
cmp bp, 0x65
jne 0x40797c
cmp word [edi + 2], 0
jne 0x40797c
mov bl, 1
add eax, 1
cmp eax, dword [esp + 0x10]
jl 0x407921
pop edi
pop esi
pop ebp
push ecx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov al, bl
pop ebx
add esp, 8
ret
Function at 0x4079a0
Capabilities:
Create process on windows
Query environment variable

Disassembly:
sub esp, 0x26c
cmp byte [0x40b00d], 0
push ebx
push ebp
push esi
push edi
je 0x407b27
call fcn.00407b40
lea eax, [esp + 0x14]
push eax
mov eax, dword [0x41d28c]
push 0x17
call fcn.00402950
lea ecx, [esp + 0x14]
push ecx
mov ebp, eax
mov eax, dword [0x41d28c]
push 0x38
call fcn.00402950
mov edi, eax
test edi, edi
je 0x407b27
test ebp, ebp
je 0x407b27
push 0x104
lea edx, [esp + 0x74]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x407b27
lea edx, [esp + 0x70]
nop
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x407a10
mov ecx, edi
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407a20
mov eax, 0x41b238
mov si, word [eax]
add eax, 2
test si, si
jne 0x407a30
sub eax, 0x41b238
sub ecx, edi
sar eax, 1
sar ecx, 1
lea eax, [ecx + eax*2 - 2]
lea ecx, [esp + 0x70]
sub edx, ecx
sar edx, 1
add eax, edx
lea eax, [eax + eax + 2]
test eax, eax
je 0x407b27
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x407b27
push 0x41b238
push 0x41b238
lea edx, [esp + 0x78]
push edx
push edi
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
push 0x44
lea eax, [esp + 0x2c]
push 0
push eax
call fcn.00401100
add esp, 0xc
push 0x10
lea ecx, [esp + 0x1c]
push 0
push ecx
call fcn.00401100
add esp, 0xc
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x2c]
push eax
push 0
push 0
push 0x8000000
push 0
push 0
push 0
push esi
push 0
mov dword [esp + 0x50], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x407afe
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00407b40
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x26c
ret
mov ecx, dword [esp + 0x1c]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call ebx
mov edx, dword [esp + 0x18]
push edx
call ebx
mov eax, ebp
call fcn.00404d30
mov eax, edi
call fcn.00404d30
mov eax, esi
call fcn.00404d30
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x26c
ret

Function at 0x407ba0
Capabilities:
Check os version

Disassembly:
mov eax, dword [0x41d2b0]
sub esp, 0xc
test eax, eax
jne 0x407bb7
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [0x41d2b0], eax
cmp al, 6
jae 0x407bcb
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
neg eax
sbb eax, eax
neg eax
add esp, 0xc
ret
lea eax, [esp]
push eax
push 0xf01ff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x407beb
xor al, al
add esp, 0xc
ret
mov eax, dword [esp]
lea ecx, [esp + 8]
push ecx
push 4
lea edx, [esp + 0xc]
push edx
push 0x14
push eax
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov ecx, dword [esp]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp dword [esp + 4], eax
setne al
add esp, 0xc
ret
Function at 0x407c20
Capabilities:
Get common file path

Disassembly:
push edi
push 0x104
push 0x41b030
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
xor edi, edi
test eax, eax
jne 0x407c40
mov word [0x41b030], di
jmp 0x407c6f
mov eax, 0x41b030
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407c45
sub eax, 0x41b030
sar eax, 1
sub eax, 1
je 0x407c6f
cmp word [eax*2 + 0x41b02e], 0x5c
jne 0x407c6f
mov word [eax*2 + 0x41b02e], di
push 0x400
push 0x41b238
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x407c94
mov word [0x41ba38], di
mov word [0x41b238], di
jmp 0x407cfb
mov edx, 0x400
xor eax, eax
jmp 0x407ca0
movzx ecx, word [eax + 0x41b238]
mov word [eax + 0x41ba38], cx
add eax, 2
cmp cx, di
je 0x407cbb
sub edx, 1
jne 0x407ca0
cmp edx, edi
jne 0x407cc6
mov word [0x41c236], di
mov eax, 0x41ba38
jmp 0x407cd0
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x407cd0
jmp 0x407ce0
sub eax, 2
cmp eax, 0x41ba38
je 0x407cf2
cmp word [eax], 0x5c
jne 0x407ce0
jmp 0x407cf8
cmp word [eax], 0x5c
jne 0x407cfb
mov word [eax], di
push esi
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push edi
push 0x1a
push 0x41c238
push edi
call esi
test eax, eax
jne 0x407d1a
mov word [0x41c238], di
jmp 0x407d4a
mov eax, 0x41c238
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x407d20
sub eax, 0x41c238
sar eax, 1
sub eax, 1
je 0x407d4a
cmp word [eax*2 + 0x41c236], 0x5c
jne 0x407d4a
mov word [eax*2 + 0x41c236], di
push edi
push edi
push 0x41ca38
push edi
call esi
test eax, eax
pop esi
jne 0x407d62
mov word [0x41ca38], di
pop edi
ret
mov eax, 0x41ca38
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x407d67
sub eax, 0x41ca38
sar eax, 1
sub eax, 1
je 0x407d91
cmp word [eax*2 + 0x41ca36], 0x5c
jne 0x407d91
mov word [eax*2 + 0x41ca36], di
pop edi
ret

Function at 0x407da0
Capabilities:
Get disk information
Query environment variable

Disassembly:
sub esp, 0x214
push esi
push edi
lea eax, [esp + 0xc]
push eax
mov eax, dword [0x41d28c]
push 0x16
call fcn.00402950
mov edi, eax
test edi, edi
je 0x407e71
push 0x104
lea ecx, [esp + 0x14]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x407e61
mov edx, 0x40a270
lea eax, [esp + 0x10]
mov esi, 0x104
lea ebx, [ebx]
cmp word [eax], 0
je 0x407dfe
add eax, 2
sub esi, 1
jne 0x407df0
test esi, esi
je 0x407e24
movzx ecx, word [edx]
mov word [eax], cx
add eax, 2
add edx, 2
test cx, cx
je 0x407e18
sub esi, 1
jne 0x407e02
test esi, esi
jne 0x407e24
mov word [esp + 0x216], si
push 0
push 0
push 0
push 0
lea edx, [esp + 0x18]
push edx
push 0
push 0
lea eax, [esp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
push edi
push 0
je 0x407e64
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 8]
pop edi
pop esi
add esp, 0x214
ret
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
xor eax, eax
pop esi
add esp, 0x214
ret
Function at 0x408260
Capabilities:
Enumerate processes
Terminate process
Terminate process by name

Disassembly:
sub esp, 0x23c
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x18]
push eax
mov eax, dword [0x41d28c]
push 5
mov dword [esp + 0x18], 0
call fcn.00402950
mov esi, eax
test esi, esi
mov dword [esp + 0x14], esi
je 0x40838e
lea edi, [esp + 0x10]
call fcn.00403980
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x4082b4
call fcn.00407b40
jmp 0x40837e
lea ecx, [esp + 0x1c]
push ecx
push ebp
mov dword [esp + 0x24], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x408377
mov ebx, dword [esp + 0x10]
test ebx, ebx
mov edi, ebx
je 0x408360
lea ecx, [ecx]
mov esi, dword [edi]
lea edx, [esp + 0x40]
mov eax, edx
sub esi, eax
lea ebx, [ebx]
movzx eax, word [esi + edx]
cmp ax, 0x41
jb 0x408303
cmp ax, 0x5a
ja 0x408303
add eax, 0x20
movzx ecx, ax
movzx eax, word [edx]
cmp ax, 0x41
jb 0x408318
cmp ax, 0x5a
ja 0x408318
add eax, 0x20
add edx, 2
test cx, cx
movzx eax, ax
je 0x408328
cmp cx, ax
je 0x4082f0
movzx edx, ax
movzx eax, cx
sub eax, edx
je 0x40833b
mov edi, dword [edi + 4]
test edi, edi
jne 0x4082e0
jmp 0x408360
mov ecx, dword [esp + 0x24]
push ecx
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x408360
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 0x1c]
push edx
push ebp
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4082d3
mov esi, dword [esp + 0x14]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea eax, [esp + 0x10]
call fcn.00403880
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x23c
ret

Function at 0x4083b0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x210
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x14]
push eax
mov eax, dword [0x41d28c]
push 0x16
call fcn.00402950
mov edx, dword [esp + 0x224]
lea ecx, [esp + 0x14]
push ecx
mov esi, eax
mov eax, dword [0x41d28c]
push edx
call fcn.00402950
test esi, esi
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov ebp, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov ebx, eax
je 0x40845b
test ebx, ebx
je 0x408453
push 0x104
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x408453
lea eax, [esp + 0x18]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x408413
mov edi, dword [esp + 0x14]
lea edx, [esp + 0x18]
sub eax, edx
sar eax, 1
sub eax, 1
push eax
call fcn.00404970
add esp, 4
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret
push esi
push 0
call ebp
push eax
call edi
test ebx, ebx
je 0x408467
push ebx
push 0
call ebp
push eax
call edi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x210
ret
Function at 0x408480
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
lea eax, [esp]
push eax
push 0x20119
push 0
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4084cb
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
push esi
push edx
mov edx, dword [esp + 8]
push eax
push 0
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
pop ecx
ret
Function at 0x4089e0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x14
push esi
mov esi, eax
mov eax, dword [esi + 0x14]
test eax, eax
je 0x408b04
push ebp
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebp, eax
test ebp, ebp
je 0x408b03
movzx eax, word [esi + 8]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x28]
push 0
push esi
push ebp
push eax
push 0
push ecx
push edx
call dword [sym.imp.GDI32.dll_GetDIBits]
test eax, eax
je 0x408b03
mov eax, dword [esp + 0x20]
push edi
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x408b02
mov eax, dword [esi + 0x20]
mov ecx, dword [esi]
push ebx
mov ebx, dword [esi + 0x14]
add eax, eax
add eax, eax
lea edx, [ecx + eax]
lea edx, [edx + ebx + 0xe]
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [esp + 0x16], edx
xor edx, edx
push edx
lea eax, [ecx + eax + 0xe]
lea ecx, [esp + 0x14]
push ecx
mov word [esp + 0x22], dx
mov word [esp + 0x24], dx
push 0xe
lea edx, [esp + 0x20]
push edx
push edi
mov word [esp + 0x28], 0x4d42
mov dword [esp + 0x32], eax
call ebx
test eax, eax
je 0x408b01
cmp dword [esp + 0x10], 0xe
jne 0x408b01
mov ecx, dword [esi + 0x20]
push 0
lea eax, [esp + 0x14]
push eax
lea edx, [ecx*4 + 0x28]
push edx
push esi
push edi
call ebx
test eax, eax
je 0x408b01
mov eax, dword [esi + 0x20]
lea ecx, [eax*4 + 0x28]
cmp dword [esp + 0x10], ecx
jne 0x408b01
mov esi, dword [esi + 0x14]
push 0
lea edx, [esp + 0x14]
push edx
push esi
push ebp
push edi
call ebx
test eax, eax
je 0x408b01
cmp dword [esp + 0x10], esi
jne 0x408b01
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x408b01
mov eax, ebp
call fcn.00404d30
pop ebx
pop edi
pop ebp
pop esi
add esp, 0x14
ret

Function at 0x408b10
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x804
push esi
push eax
push ecx
lea edx, [esp + 0x10]
push str._s_s
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 0
push 0x80
push 1
push 0
push 0
push 0x40000000
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x408b86
mov edx, dword [esp + 0x80c]
push edi
push 0
lea ecx, [esp + 0xc]
push ecx
push ebx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
pop edi
je 0x408b86
cmp dword [esp + 4], ebx
jb 0x408b86
mov al, 1
pop esi
add esp, 0x804
ret
xor al, al
pop esi
add esp, 0x804
ret
Function at 0x408b90
Capabilities:
Create directory

Disassembly:
sub esp, 0x800
cmp byte [0x41b01e], 0
push ebx
mov ebx, eax
jne 0x408c06
mov eax, ecx
mov dx, word [eax]
add eax, 2
test dx, dx
jne 0x408ba4
sub eax, ecx
sar eax, 1
sub eax, 1
cmp word [ecx + eax*2 - 2], 0x5c
jne 0x408bc1
sub eax, 1
xor edx, edx
test eax, eax
jbe 0x408bd5
cmp word [ecx + edx*2], 0x5c
je 0x408c06
add edx, 1
cmp edx, eax
jb 0x408bc7
mov eax, dword [esp + 0x808]
push eax
push ecx
lea ecx, [esp + 0xc]
push str._s_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 0
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x408c11
lea ecx, [esp + 4]
push esi
mov eax, edi
call fcn.00408b10
add esp, 4
pop ebx
add esp, 0x800
ret

Function at 0x408c20
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
sub esp, 0x84c
push ebp
push esi
lea eax, [esp + 0x10]
push eax
mov eax, dword [0x41d28c]
push 0x1f
call fcn.00402950
mov ebp, dword [sym.imp.USER32.dll_wsprintfW]
push edi
push ebx
lea ecx, [esp + 0x58]
push str._s_s
push ecx
mov dword [esp + 0x18], eax
call ebp
add esp, 0x10
lea edx, [esp + 0x50]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x408ca8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x408ca8
lea eax, [esp + 0xc]
push eax
mov eax, dword [0x41d28c]
push 7
call fcn.00402950
mov esi, eax
test esi, esi
je 0x408ca8
push edi
push esi
push ebx
lea ecx, [esp + 0x5c]
push str._s_s_s
push ecx
call ebp
add esp, 0x14
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
lea edx, [esp + 0x50]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x408cc3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x408d0f
push 0x3c
lea eax, [esp + 0x18]
push 0
push eax
call fcn.00401100
mov ecx, dword [esp + 0x14]
add esp, 0xc
lea eax, [esp + 0x14]
lea edx, [esp + 0x50]
push eax
mov dword [esp + 0x18], 0x3c
mov dword [esp + 0x34], 1
mov dword [esp + 0x1c], 0x400
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov ecx, dword [esp + 8]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
pop ebp
add esp, 0x84c
ret
Function at 0x4069c5
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x4069e9
xor eax, eax
test eax, eax
je 0x4069fc
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x4069fc
xor ecx, ecx
jmp 0x4069ff
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406b22
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x427dec], 0
push esi
jne 0x406b59
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406b33
mov dword [ecx*4 + 0x427de8], eax
inc ecx
cmp ecx, 0x100
jl 0x406b2e
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406b8a
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x427de8]
xor eax, esi
inc ecx
dec edx
jne 0x406b6c
pop edi
not eax
pop esi
ret 0xc

Function at 0x431001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40915c
nop
mov ecx, 0x389f13fc
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43104e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x431024
nop
nop
nop
mov eax, section..data
mov ebx, 0x42f3f8
nop
mov ecx, 0x42d73a92
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x431084
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x42e004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
je 0x42e072
nop
nop
nop
nop
nop
mov ebx, 0x407ef8
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x53ea0bad
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x42e060
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x42e0d2
nop
nop
nop
mov ebx, 0x42cd70
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x2b165997
nop
nop
nop
nop
nop
xor dword [eax], esi
add eax, edi
nop
nop
nop
nop
loop 0x42e0c0
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x401300
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40135b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40135b
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x401348
cmp esi, edx
jae 0x40135b
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x401336
cmp esi, edx
jae 0x40135b
xor eax, eax
cmp word [esi], ax
pop edi
cmove esi, eax
mov eax, esi
pop esi
pop ebx
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret

Function at 0x401710
Capabilities:
Get common file path
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x42f040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeConsole]
cmp dword [ebp + 8], 0
je 0x401898
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.0040f700
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0040f700
add esp, 0x18
lea eax, [ebp - 0x414]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [ebp - 0x414]
push eax
lea ecx, [ebp - 0x20c]
call fcn.00401680
push 0x428d10
lea ecx, [ebp - 0x20c]
call fcn.00401680
push dword [esi + 4]
lea ecx, [ebp - 0x20c]
call fcn.00401680
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x401898
push ebx
push edi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [esi + 4]
mov ebx, eax
test edx, edx
jne 0x4017e2
xor ecx, ecx
jmp 0x4017f6
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4017e7
sub ecx, edi
sar ecx, 1
push ecx
push edx
mov ecx, 0x43091c
call fcn.00401b50
mov edx, dword [esi + 8]
test edx, edx
jne 0x40180d
xor ecx, ecx
jmp 0x401821
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401812
sub ecx, edi
sar ecx, 1
push ecx
push edx
mov ecx, 0x430920
call fcn.00401b50
push dword [esi + 0xc]
call fcn.00411508
push dword [esi + 0x10]
mov dword [0x430914], eax
call fcn.00411508
push 0x80
mov dword [0x430910], eax
mov dword [0x43090c], ebx
call fcn.0040d8df
push 0x80
mov esi, eax
push 0
push esi
mov dword [ebp - 0x418], esi
call fcn.0040f700
add esp, 0x18
mov ecx, esi
call fcn.00401f20
mov ecx, eax
mov dword [0x430918], eax
mov edx, dword [eax]
call dword [edx + 0xc]
dec eax
pop edi
neg eax
pop ebx
sbb eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040d81c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
xor ecx, ebp
pop esi
call fcn.0040d81c
mov esp, ebp
pop ebp
ret