joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42dcfa
Capabilities:
Parse pe header

Disassembly:
push 0x74
push 0x435a18
call fcn.0042df0c
xor edi, edi
mov dword [ebp - 0x20], edi
push edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call ebx
cmp word [eax], 0x5a4d
jne 0x42dd3a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42dd3a
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x42dd52
cmp eax, 0x20b
je 0x42dd3f
mov dword [ebp - 0x1c], edi
jmp 0x42dd66
cmp dword [ecx + 0x84], 0xe
jbe 0x42dd3a
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x42dd60
cmp dword [ecx + 0x74], 0xe
jbe 0x42dd3a
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 2
call dword [sym.imp.MSVCR71.dll___set_app_type]
pop ecx
or dword [0x4419fc], 0xffffffff
or dword [0x441a00], 0xffffffff
call dword [sym.imp.MSVCR71.dll___p__fmode]
mov ecx, dword [0x4419f4]
mov dword [eax], ecx
call dword [sym.imp.MSVCR71.dll___p__commode]
mov ecx, dword [0x4419f0]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCR71.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x4419f8], eax
call fcn.0042dfe8
call fcn.004d0000
cmp dword [0x441500], edi
jne 0x42ddc6
push 0x42e088
call dword [sym.imp.MSVCR71.dll___setusermatherr]
pop ecx
call fcn.0042e076
push 0x43d03c
push 0x43d038
call sub.MSVCR71.dll__initterm
push 0x42e02c
call fcn.0042dbce
mov eax, dword [0x4419ec]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x4419e8]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCR71.dll___wgetmainargs]
add esp, 0x20
mov dword [ebp - 0x3c], eax
cmp eax, edi
jge 0x42de1a
push 8
call sub.MSVCR71.dll__amsg_exit
pop ecx
push 0x43d034
push section..data
call sub.MSVCR71.dll__initterm
pop ecx
pop ecx
mov eax, dword [sym.imp.MSVCR71.dll__wcmdln]
mov esi, dword [eax]
cmp esi, edi
jne 0x42de44
or dword [ebp - 4], 0xffffffff
mov eax, 0xff
jmp 0x42defe
mov dword [ebp - 0x24], esi
mov ax, word [esi]
cmp ax, 0x20
ja 0x42deb3
cmp ax, di
je 0x42de5a
cmp dword [ebp - 0x20], edi
jne 0x42deb3
mov ax, word [esi]
cmp ax, di
je 0x42de6f
cmp ax, 0x20
ja 0x42de6f
inc esi
inc esi
mov dword [ebp - 0x24], esi
jmp 0x42de5a
mov dword [ebp - 0x58], edi
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
test byte [ebp - 0x58], 1
je 0x42de8b
movzx eax, word [ebp - 0x54]
jmp 0x42de8e
push 0xa
pop eax
push eax
push esi
push edi
push edi
call ebx
push eax
call fcn.004180e0
mov esi, eax
mov dword [ebp - 0x40], esi
cmp dword [ebp - 0x1c], edi
jne 0x42deab
push esi
call dword [sym.imp.MSVCR71.dll_exit]
call dword [sym.imp.MSVCR71.dll__cexit]
jmp 0x42def8
cmp ax, 0x22
jne 0x42dec4
xor eax, eax
cmp dword [ebp - 0x20], edi
sete al
mov dword [ebp - 0x20], eax
inc esi
inc esi
jmp 0x42de44
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0042df47
ret
Function at 0x4afce4
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb4
mov dword [esp], eax
lea esi, [esp + 0x30]
lea eax, [esp + 0xc]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edi, dword [esp]
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4afdaf
jmp 0x4afda3
cmp dword [esi + 0x10], 0x1000
jne 0x4afd8f
test byte [esi + 0x15], 1
jne 0x4afd8f
mov byte [esp + 4], 0
mov ebp, dword [esi + 0x14]
cmp ebp, 1
je 0x4afd40
cmp ebp, 2
je 0x4afd40
cmp ebp, 0x10
je 0x4afd40
cmp ebp, 0x20
jne 0x4afd5c
lea eax, [esp + 8]
push eax
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4afd5c
mov byte [esp + 4], 1
xor ebx, ebx
jmp 0x4afd6d
mov eax, dword [esi]
add eax, ebx
call fcn.004afcdc
add ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0xc]
jb 0x4afd60
cmp byte [esp + 4], 0
je 0x4afd8f
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov edi, eax
push 0x1c
push esi
push edi
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x4afdaf
mov eax, dword [esi + 4]
cmp eax, dword [esp]
je 0x4afd15
add esp, 0x4c
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0xe05c54
Capabilities:
Encode data using xor

Disassembly:
jmp 0xe05c5e
pushal
call 0xe05c64
pop ebp
sub ebp, 0x10
sub ebp, 0xa05c54
jmp 0xe05c7a
mov eax, 0xa05c54
add eax, ebp
add eax, 0x4c
mov ecx, 0x5d0
mov edx, 0xed322ed3
xor byte [eax], dl
inc eax
dec ecx
jne 0xe05c91
jmp 0xe05ca4
pop eax
push ds
pop eax
pop edx
out dx, eax
rcl ebx, cl
rcl dword [edx + 0x12], cl
sub edx, ebx
rcl ebx, cl
rcr byte [esi], 1
imul edx, esi, 0xffffffd3
rcl ebx, cl
imul edi, ebx, 0x24d3d3d3
xor eax, edx
sbb ebx, dword [eax + 0x52]
invalid

Function at 0x4018ad
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4018ec
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4018ec
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4018ec
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4018ec
cmp dword [ecx + 0x74], 0xe
jbe 0x4018ec
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4245a3
Capabilities:
Create thread
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0042432a

Function at 0x426a6f
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00426249

Function at 0x426a7a
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00426484

Function at 0x43a4c0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43a4ed
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43a4ed
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4021e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
lea eax, [ebp - 8]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x4c]
mov dword [esp], eax
mov dword [ebp - 0x34], 0x41e9c0
mov dword [ebp - 0x30], 0x41f01e
mov dword [ebp - 0x28], 0x4022db
mov dword [ebp - 0x24], esp
call fcn.0041a840
lea eax, [ebp - 0x10]
mov dword [esp], eax
mov dword [ebp - 0x10], 0x400
mov dword [ebp - 0xc], 0
mov dword [esp + 4], 0x400
mov dword [ebp - 0x48], 0xffffffff
call fcn.004029c0
mov eax, dword [ebp - 0xc]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp], 0
mov dword [esp + 4], eax
mov dword [ebp - 0x48], 1
call sub.SHELL32.DLL_SHGetSpecialFolderPathA
sub esp, 0x10
test eax, eax
jne 0x4022b0
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [esp + 4], 0x424b64
mov dword [esp], eax
call fcn.00402d50
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x402297
mov dword [esp], eax
call fcn.0041dc40
lea eax, [ebp - 0x4c]
mov dword [esp], eax
call fcn.0041a7e0
mov eax, dword [ebp + 8]
leave
ret 4
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x48], 1
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00402d50
jmp 0x402288

Function at 0x402430
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
lea eax, [ebp - 8]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x4c]
mov dword [esp], eax
mov dword [ebp - 0x34], 0x41e9c0
mov dword [ebp - 0x30], 0x41f02c
mov dword [ebp - 0x28], 0x40253e
mov dword [ebp - 0x24], esp
call fcn.0041a840
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0x104
mov dword [ebp - 0xc], 0
mov dword [esp + 4], 0x104
mov dword [esp], eax
mov dword [ebp - 0x48], 0xffffffff
call fcn.004029c0
jmp 0x4024b2
cmp eax, 0x103
jbe 0x402513
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x48], 1
add eax, eax
mov dword [esp + 4], eax
lea eax, [ebp - 0x10]
mov dword [esp], eax
call fcn.004029c0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x48], 1
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sub.KERNEL32.dll_GetTempPathA
sub esp, 8
test eax, eax
jne 0x402490
mov eax, dword [ebp + 8]
mov dword [eax], 1
mov dword [eax + 4], 0
mov dword [esp + 4], 1
mov dword [esp], eax
call fcn.004029c0
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x402501
mov dword [esp], eax
call fcn.0041dc40
lea eax, [ebp - 0x4c]
mov dword [esp], eax
call fcn.0041a7e0
mov eax, dword [ebp + 8]
leave
ret 4
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x48], 1
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.00402d50
jmp 0x4024f2
Function at 0x40b300
Capabilities:
Create http request
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
lea eax, [ebp - 8]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x4c]
mov dword [esp], eax
mov dword [ebp - 0x34], 0x41e9c0
mov dword [ebp - 0x30], 0x41f168
mov dword [ebp - 0x28], 0x40b53a
mov dword [ebp - 0x24], esp
call fcn.0041a840
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov dword [edx], 0
mov dword [edx + 4], 0
mov dword [edx + 8], 0
mov dword [edx + 0xc], 0
add edx, 0x10
mov dword [eax + 0x10], 1
mov dword [eax + 0x14], 0
mov dword [ebp - 0x50], edx
mov dword [esp + 4], 1
mov dword [esp], edx
mov dword [ebp - 0x48], 4
call fcn.004029c0
mov edx, dword [ebp + 8]
mov eax, edx
mov dword [edx + 0x18], 1
add eax, 0x18
mov dword [edx + 0x1c], 0
mov dword [esp + 4], 1
mov dword [esp], eax
mov dword [ebp - 0x48], 1
call fcn.004029c0
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x48], 3
add edx, 0x28
mov dword [ebp - 0x54], edx
mov dword [esp + 4], eax
mov dword [esp], edx
call fcn.0040ac80
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], str.tiny_dl_nix
mov dword [ebp - 0x48], 2
call sub.WININET.DLL_InternetOpenA
mov edx, dword [ebp + 8]
sub esp, 0x14
test eax, eax
mov dword [edx], eax
je 0x40b4dc
lea edx, [ebp - 0xc]
mov dword [ebp - 0xc], 0xbb8
mov dword [esp + 0xc], 4
mov dword [esp + 8], edx
mov dword [esp + 4], 2
mov dword [esp], eax
call sub.WININET.DLL_InternetSetOptionA
sub esp, 0x10
test eax, eax
je 0x40b517
mov edx, dword [ebp + 8]
lea eax, [ebp - 0xc]
mov dword [esp + 0xc], 4
mov dword [esp + 8], eax
mov dword [esp + 4], 5
mov eax, dword [edx]
mov dword [ebp - 0x48], 2
mov dword [esp], eax
call sub.WININET.DLL_InternetSetOptionA
sub esp, 0x10
test eax, eax
je 0x40b4f7
mov edx, dword [ebp + 8]
lea eax, [ebp - 0xc]
mov dword [esp + 0xc], 4
mov dword [esp + 8], eax
mov dword [esp + 4], 6
mov eax, dword [edx]
mov dword [ebp - 0x48], 2
mov dword [esp], eax
call sub.WININET.DLL_InternetSetOptionA
sub esp, 0x10
test eax, eax
je 0x40b4f0
mov edx, dword [ebp + 8]
lea eax, [ebp - 0xc]
mov dword [esp + 0xc], 4
mov dword [esp + 8], eax
mov dword [esp + 4], 3
mov eax, dword [edx]
mov dword [ebp - 0xc], 3
mov dword [ebp - 0x48], 2
mov dword [esp], eax
call sub.WININET.DLL_InternetSetOptionA
sub esp, 0x10
test eax, eax
je 0x40b505
lea eax, [ebp - 0x4c]
mov dword [esp], eax
call fcn.0041a7e0
leave
ret
call sub.KERNEL32.dll_GetLastError
jmp 0x40b4a3
call sub.KERNEL32.dll_GetLastError
lea esi, [esi]
jmp 0x40b471
call sub.KERNEL32.dll_GetLastError
lea eax, [ebp - 0x4c]
mov dword [esp], eax
call fcn.0041a7e0
leave
ret
call sub.KERNEL32.dll_GetLastError
test eax, eax
nop
je 0x40b43b
mov dword [esp], 0x424d2f
call sub.KERNEL32.dll_OutputDebugStringA
sub esp, 4
jmp 0x40b43b
Function at 0x414ae0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
lea eax, [ebp - 8]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x4c]
mov dword [esp], eax
mov dword [ebp - 0x24], esp
mov dword [ebp - 0x34], 0x41e9c0
mov dword [ebp - 0x30], 0x41f364
mov dword [ebp - 0x28], 0x414c15
call fcn.0041a840
mov edx, dword [ebp + 8]
mov dword [esp + 4], 2
mov eax, dword [edx + 8]
mov dword [ebp - 0x48], 0xffffffff
mov dword [esp], eax
call sub.USER32.dll_GetDlgItem
mov dword [ebp - 0x10], 0x200
mov dword [ebp - 0xc], 0
sub esp, 8
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x10]
mov dword [esp], eax
mov dword [esp + 4], 0x200
call fcn.004029c0
mov eax, dword [ebp - 0xc]
mov dword [esp + 8], 0x200
mov dword [ebp - 0x48], 1
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x50]
mov dword [esp], eax
call sub.USER32.dll_GetWindowTextA
mov eax, dword [ebp - 0xc]
sub esp, 0xc
mov dword [esp + 4], 0x42558c
mov dword [esp], eax
call sub.KERNEL32.dll_lstrcmpiA
sub esp, 8
test eax, eax
jne 0x414bc0
mov edx, dword [ebp + 8]
mov dword [esp + 4], 0x103
mov dword [esp], edx
call fcn.0040de10
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x414bb3
mov dword [esp], eax
call fcn.0041dc40
lea eax, [ebp - 0x4c]
mov dword [esp], eax
call fcn.0041a7e0
leave
ret
mov edx, dword [ebp + 8]
mov dword [esp + 0xc], 0x124
mov dword [esp + 8], 0x425600
mov dword [esp + 4], 0x425610
mov eax, dword [edx + 8]
mov dword [ebp - 0x48], 1
mov dword [esp], eax
call sub.USER32.dll_MessageBoxA
sub esp, 0x10
cmp eax, 6
jne 0x414ba4
mov eax, dword [ebp + 8]
mov dword [esp + 4], 0x103
mov dword [esp], eax
call fcn.0040de10
lea eax, [ebp - 0x10]
mov dword [esp], eax
call fcn.0041c6b0
jmp 0x414bb3

Function at 0x419ca0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 8], ebx
mov ebx, dword [sym.imp.msvcrt.dll__iob]
mov dword [ebp - 4], esi
lea esi, [ebp + 0xc]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
add ebx, 0x40
mov dword [esp + 0xc], ebx
mov dword [esp], str.Mingw_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov eax, dword [ebp + 8]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
Function at 0x401000
Capabilities:
Allocate or change rwx memory

Disassembly:
mov esi, 0x8c8b
lea ebx, [0x481304]
mov eax, 0x8a7a
add eax, 0x3d6d88d6
sub eax, 0x3d6d8724
sub esi, 0x3d6d8600
push 0x84bb
push esi
push 0x82a7
push 0x81a5
call sub.user32.dll_GetActiveWindow
pop ebx
pop esi
pop esi
pop ebx
push 0x40
push 0x3000
push 0x11800
push 0
call sub.kernel32.dll_VirtualAlloc
call fcn.0047bca9
ret
Function at 0x401450
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
push dword [esp + 0xc]
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x40147a
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x14]
test eax, eax
mov dword [ecx], eax
jne 0x40147e
xor eax, eax
pop esi
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x10]
push 1
mov dword [ecx], eax
pop eax
pop esi
ret

Function at 0x401499
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
push edi
xor edi, edi
push edi
push 1
push edi
lea eax, [ebp - 4]
push edi
push eax
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call esi
test eax, eax
jne 0x4014da
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x4014ed
push 8
push 1
push edi
lea eax, [ebp - 4]
push edi
push eax
call esi
test eax, eax
je 0x4014ed
lea eax, [ebp - 8]
push eax
push 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x4014f1
xor eax, eax
jmp 0x401503
cmp dword [ebp - 4], edi
je 0x401500
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [ebp - 8]
pop edi
pop esi
leave
ret

Function at 0x401ce6
Capabilities:
Encode data using xor

Disassembly:
pop ebp
ret
stosb byte es:[edi], al
in al, dx
jb 0x401cf6
sti
mov dh, 0x54
sti
xor cl, byte [ecx + 0xf]
imul edx, dword [esi + edx*4], 0xe4a1b668
jg 0x401cc8
mov dh, 0xa1
in al, 0x7f
int 0x57
push edi
and esp, esi
cmc
dec byte [edi]
cmp dword [eax + 0x51767f0f], eax
or byte [edi], 0x7f
jbe 0x401d58
daa
imul esi, edx, 0x784c6f39
push edx
mov ebx, 0xc4ad40d
sbb ch, ch
sbb dword [ebp - 0x79], 0xf40b2b30
loope 0x401d02
adc dword [esp + edi*2], edx
mov bl, 0x73
dec edx
push cs
clc
sub bh, byte [eax + eax]
pop ebp
invalid
imul ebx, ecx, 0x558f6466
mov esp, 0x35349c40
pop edi
mov ebp, 0xa607bb81
xor eax, 0x48f15d96
cmp dword [edx + 0x6774bc], 0x77
fst dword fs:[edx - 0x677eda91]
invalid
ja 0x401dbe
fst dword [edx - 0x677eda91]
lodsb al, byte cs:[esi]
jo 0x401d3f
and ch, byte [ecx - 0x31]
and ch, dh
xchg edx, eax
out dx, eax
cdq
dec ecx
mov edx, esi
mov al, byte [0x1e127cf4]
push eax
outsb dx, byte [esi]
jb 0x401d3c
aad 0
dec edi
invalid
bnd jmp 0x401dd8
mov byte [0x23df58e], al
push esi
rol dword [ebx - 0x37], cl
invalid
Function at 0x401020
Capabilities:
Terminate process

Disassembly:
push esi
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401063
push str.SetDefaultDllDirectories
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x401063
push 0x800
mov ecx, esi
call dword [0x4232ec]
call esi
test eax, eax
jne 0x4010a2
push 0x4235d4
call dword [sym.imp.KERNEL32.dll_SetDllDirectoryW]
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4010a2
push str.LdrEnumerateLoadedModules
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x4010a2
push 0
push 0x401100
push 0
mov ecx, esi
call dword [0x4232ec]
call esi
push 0xa
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
jne 0x4010c6
push 0x2777
call fcn.00403b70
add esp, 4
push 0xc000001d
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.00407fe0
cmp eax, 0x5010300
jae 0x4010ea
push 0x2778
call fcn.00403b70
add esp, 4
push 0x47e
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.004108de
push eax
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x403190
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x42e008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x44]
push 0x20
xor esi, esi
push eax
mov dword [ebp - 0x48], esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
je 0x403240
cmp eax, 0x20
ja 0x403240
call fcn.00409250
push esi
mov ebx, eax
mov dword [ebp - 0x58], edx
lea eax, [ebp - 0x48]
push eax
push 1
push str.D:P_A_CIOI_FA___SY__A_CIOI_FA___BA__A_CIOI_FRFX___BU_
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorA
test eax, eax
je 0x403240
mov eax, dword [ebp - 0x48]
push ebx
push dword [ebp - 0x58]
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x44]
push eax
push str._sTemp_asw._08x_08x
push edi
mov dword [ebp - 0x54], 0xc
mov dword [ebp - 0x4c], esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
lea eax, [ebp - 0x54]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x403248
movzx eax, word [ebp - 0x44]
push ebx
push dword [ebp - 0x58]
push eax
push str._c:_asw._08x_08x
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
lea eax, [ebp - 0x54]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x403248
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x403256
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
test esi, esi
pop edi
sete al
xor ecx, ebp
pop esi
pop ebx
call fcn.00410bbe
mov esp, ebp
pop ebp
ret
Function at 0x403280
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push 0xa
push str.EDAT_ECOO
push 0x400000
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x403399
push edi
push ebx
push 0x400000
call dword [sym.imp.KERNEL32.dll_LoadResource]
push ebx
push 0x400000
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x403398
cmp ebx, 0x40
jae 0x403398
test edi, edi
je 0x403398
mov ecx, dword [esi + 0x10]
cmp ebx, ecx
ja 0x4032f6
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4032eb
mov eax, dword [esi]
xor ecx, ecx
mov dword [esi + 0x10], ebx
mov word [eax + ebx*2], cx
jmp 0x403302
sub eax, ecx
mov ecx, esi
push 0
push eax
call fcn.00403c90
cmp dword [esi + 0x14], 8
jb 0x40330a
mov esi, dword [esi]
lea eax, [ebx + edi]
xor edx, edx
xor ecx, ecx
cmp edi, eax
cmova ebx, edx
test ebx, ebx
je 0x403398
cmp ebx, 0x20
jb 0x403382
lea eax, [edi - 1]
add eax, ebx
lea edx, [ebx - 1]
lea edx, [esi + edx*2]
cmp esi, eax
ja 0x403332
cmp edx, edi
jae 0x403382
mov eax, ebx
and eax, 0xffffffe0
nop word [eax + eax]
movq xmm1, qword [edi]
xorps xmm0, xmm0
punpcklbw xmm1, xmm0
add ecx, 0x20
movups xmmword [esi], xmm1
movq xmm1, qword [edi + 8]
punpcklbw xmm1, xmm0
movups xmmword [esi + 0x10], xmm1
movq xmm1, qword [edi + 0x10]
punpcklbw xmm1, xmm0
movups xmmword [esi + 0x20], xmm1
movq xmm1, qword [edi + 0x18]
add edi, 0x20
punpcklbw xmm1, xmm0
movups xmmword [esi + 0x30], xmm1
add esi, 0x40
cmp ecx, eax
jne 0x403340
cmp ecx, ebx
je 0x403398
sub edi, ecx
movzx eax, byte [edi + ecx]
lea esi, [esi + 2]
inc ecx
mov word [esi - 2], ax
cmp ecx, ebx
jne 0x403388
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4038c0
Capabilities:
Extract resource via kernel32 functions
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x42e008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
xor esi, esi
mov dword [ebp - 0x10], ecx
push esi
push esi
push esi
push 0x1000002
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebx, eax
test ebx, ebx
jne 0x403900
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x403996
push edi
push 0
push 0
push 0
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
jne 0x403920
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x40398e
push 0x10
push 1
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40397f
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40397f
lea ecx, [ebp - 8]
mov dword [ebp - 0xc], esi
push ecx
lea ecx, [ebp - 0xc]
push ecx
push 0x423800
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40397f
mov ecx, dword [ebp - 0xc]
movzx eax, word [ecx + 0xc]
push eax
movzx eax, word [ecx + 0xe]
push eax
movzx eax, word [ecx + 8]
push eax
movzx eax, word [ecx + 0xa]
push eax
push 0x423804
push dword [ebp - 0x10]
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
jmp 0x403987
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
test esi, esi
pop esi
sete al
xor ecx, ebp
pop ebx
call fcn.00410bbe
mov esp, ebp
pop ebp
ret