joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4032e7
Capabilities:
Delete directory
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1030
call fcn.00409c80
cmp dword [0x2a9c060], 0x594
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [eax]
mov eax, dword [eax + 4]
push edi
mov dword [ebp - 0x14], esi
mov dword [ebp - 8], eax
jne 0x403327
push 0x402b44
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push 0x402c08
call dword [sym.imp.KERNEL32.dll_GlobalAddAtomA]
mov eax, dword [0x427c68]
mov dword [ebp - 0x24], eax
mov eax, dword [0x427c6c]
xor ebx, ebx
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
call fcn.004032e0
mov eax, dword [0x427c70]
add dword [ebp - 0x10], 0x23f
mov dword [ebp - 0x30], eax
mov eax, dword [0x427c74]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x1c], 0x20
jmp 0x403367
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0xc], 2
add dword [ebp - 0xc], 3
mov eax, esi
shl eax, 4
cmp dword [0x2a9c060], 0xc
mov dword [ebp - 4], eax
jne 0x4033af
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_SetThreadIdealProcessor]
push ebx
call dword [sym.imp.KERNEL32.dll_DebugActiveProcess]
xor eax, eax
mov word [ebp - 0x20], ax
lea edi, [ebp - 0x1e]
stosw word es:[edi], ax
push dword [ebp - 0x20]
push ebx
call dword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
mov eax, dword [ebp - 0x30]
add dword [ebp - 4], eax
mov eax, dword [0x2a9c060]
cmp eax, 0xfa9
jne 0x4033cb
mov dword [0x2a9b5fc], 0xedeb2e40
cmp eax, 0x3eb
jne 0x4033d8
mov dword [0x2a9afac], ebx
mov ecx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov edx, esi
shr edx, cl
lea eax, [edi + esi]
mov dword [ebp - 0x18], eax
mov dword [0x2a9b5f8], 0xf4ea3dee
add edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x18]
xor dword [ebp - 4], eax
xor edx, dword [ebp - 4]
cmp dword [0x2a9c060], 0x213
mov dword [ebp - 0x18], edx
jne 0x403421
push ebx
push 0x402c10
push ebx
push 0x402c48
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CompareStringA]
mov eax, dword [ebp - 0x18]
add dword [ebp - 8], 0x64
sub dword [ebp - 8], eax
sub dword [ebp - 8], 0x64
cmp dword [0x2a9c060], 0xc
jne 0x40345e
push ebx
lea eax, [ebp - 0x830]
push eax
push 0x402c78
call dword [sym.imp.KERNEL32.dll_FindFirstVolumeMountPointW]
push ebx
lea eax, [ebp - 0x1030]
push eax
push 0x402cd4
call dword [sym.imp.KERNEL32.dll_GetVolumePathNameW]
mov eax, dword [ebp - 8]
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x24]
add dword [ebp - 4], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
mov esi, eax
shr esi, cl
lea edx, [edi + eax]
xor dword [ebp - 4], edx
add esi, dword [ebp - 0x28]
cmp dword [0x2a9c060], 0x121
jne 0x40349c
push 0x402cf4
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov eax, dword [ebp - 8]
xor dword [ebp - 4], esi
mov ecx, dword [ebp - 4]
sub dword [ebp - 0x14], ecx
add dword [ebp - 0x10], 0x61c88647
dec dword [ebp - 0x1c]
jne 0x403364
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x14]
pop edi
pop esi
mov dword [ecx], edx
mov dword [ecx + 4], eax
pop ebx
leave
ret 4
Function at 0x4034c7
Capabilities:
Get common file path
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.00409c80
mov eax, dword [0x2a9c060]
mov ecx, dword [0x2a9afb0]
push esi
shr eax, 3
xor esi, esi
cmp eax, esi
jbe 0x4035bf
push ebx
push edi
mov edi, ecx
mov ebx, eax
cmp dword [0x2a9c060], 0x959
jne 0x4035ad
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SignalObjectAndWait]
push 0x402d60
push esi
call dword [sym.imp.KERNEL32.dll_CreateJobObjectW]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_EnumDateFormatsExA]
push 0x402da0
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
push 0x402e14
push esi
call dword [sym.imp.KERNEL32.dll_SetFileShortNameA]
push esi
lea eax, [ebp - 0x800]
push eax
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_LCMapStringA]
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
push esi
push esi
push esi
push esi
push esi
push esi
push 0x402d2c
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
lea eax, [ebp - 0x400]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
lea eax, [ebp - 0x1000]
push eax
push esi
push 0x402e4c
push esi
call dword [sym.imp.KERNEL32.dll_FoldStringW]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0x402e80
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push edi
call fcn.004032e7
add edi, 8
dec ebx
jne 0x4034f3
pop edi
pop ebx
pop esi
leave
ret
Function at 0x403903
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
push esi
xor esi, esi
push 0
call dword [sym.imp.USER32.dll_CharUpperW]
call dword [sym.imp.USER32.dll_GetMessageExtraInfo]
cmp esi, 0x2710
jge 0x403934
lea eax, [ebp - 0x408]
push eax
push 0
call dword [sym.imp.GDI32.dll_GetDeviceGammaRamp]
inc esi
cmp esi, 0x5d744c
jl 0x40390f
push ebx
push edi
xor esi, esi
mov edi, 0x2b259d
mov ebx, 0x785074d5
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp esi, edi
jle 0x40395a
cmp dword [ebp - 4], ebx
jne 0x403963
inc esi
cmp esi, 0x1c1b
jl 0x40394b
xor esi, esi
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
call dword [sym.imp.KERNEL32.dll_GetLastError]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp esi, 0x206d47
jg 0x40398a
inc esi
cmp esi, 0x4f6a4
jl 0x403965
cmp dword [0x2a9c060], 0x400
jne 0x4039ae
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesLengthA]
xor esi, esi
push esi
push esi
call fcn.00403a71
push esi
call fcn.00403b35
add esp, 0xc
mov eax, dword [0x42803c]
mov dword [0x2a9c060], eax
mov eax, dword [0x428010]
mov dword [0x2a9c064], eax
call fcn.00403691
xor esi, esi
push 0x4030cc
call dword [sym.imp.KERNEL32.dll_GlobalFindAtomW]
cmp esi, edi
jle 0x4039dd
cmp dword [ebp - 4], ebx
jne 0x4039e6
inc esi
cmp esi, 0x11915
jl 0x4039c9
pop edi
mov esi, 0x3078f
pop ebx
cmp dword [0x2a9c060], 0x51f
jne 0x403a1c
push 0x4030f0
push 0
lea eax, [ebp - 0x808]
push eax
push 0x403150
push 0x4030d4
push 0x4031b8
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
dec esi
jne 0x4039ed
mov eax, dword [0x2a9afb0]
mov dword [0x2a9b5f4], eax
call eax
xor eax, eax
pop esi
leave
ret 0x10

Function at 0x406303
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4273f0]
jne 0x40630d
repz ret
jmp fcn.00408af3
Function at 0x408027
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.004047fd
and dword [ebp - 4], 0
cmp dword [0x4288ec], 0
mov ebx, eax
jne 0x4080d8
push 0x4019d0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x408189
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4019c4
push edi
call esi
test eax, eax
je 0x408189
push eax
call fcn.0040478b
mov dword [esp], 0x4019b4
push edi
mov dword [0x4288ec], eax
call esi
push eax
call fcn.0040478b
mov dword [esp], 0x4019a0
push edi
mov dword [0x4288f0], eax
call esi
push eax
call fcn.0040478b
mov dword [esp], 0x401984
push edi
mov dword [0x4288f4], eax
call esi
push eax
call fcn.0040478b
pop ecx
mov dword [0x4288fc], eax
test eax, eax
je 0x4080d8
push 0x40196c
push edi
call esi
push eax
call fcn.0040478b
pop ecx
mov dword [0x4288f8], eax
mov eax, dword [0x4288f8]
cmp eax, ebx
je 0x408130
cmp dword [0x4288fc], ebx
je 0x408130
push eax
call fcn.00404806
push dword [0x4288fc]
mov esi, eax
call fcn.00404806
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x408130
test edi, edi
je 0x408130
call esi
test eax, eax
je 0x408127
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x408127
test byte [ebp - 0xc], 1
jne 0x408130
or dword [ebp + 0x10], 0x200000
jmp 0x408169
mov eax, dword [0x4288f0]
cmp eax, ebx
je 0x408169
push eax
call fcn.00404806
pop ecx
test eax, eax
je 0x408169
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x408169
mov eax, dword [0x4288f4]
cmp eax, ebx
je 0x408169
push eax
call fcn.00404806
pop ecx
test eax, eax
je 0x408169
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4288ec]
call fcn.00404806
pop ecx
test eax, eax
je 0x408189
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40818b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401660
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 0xc]
call fcn.00401730
push 2
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0xc]
cmp dword [edx + 4], 0
jne 0x401692
xor al, al
jmp 0x401706
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4016b4
xor al, al
jmp 0x401706
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 8], eax
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4016e9
xor al, al
jmp 0x401706
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [ebp - 0xc]
mov dword [ecx], eax
mov edx, dword [ebp - 0xc]
cmp dword [edx], 0
jne 0x401704
xor al, al
jmp 0x401706
mov al, 1
mov esp, ebp
pop ebp
ret 0xc

Function at 0x401810
Capabilities:
Check for time delay via gettickcount
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
cmp dword [eax + 4], 0xffffffff
je 0x401897
mov dword [ebp - 8], 0x103
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 4], eax
cmp dword [ebp - 8], 0x103
jne 0x401868
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push 0x10
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 4]
cmp eax, 0x3e8
jbe 0x401866
jmp 0x401868
jmp 0x401832
cmp dword [ebp - 8], 0x103
jne 0x401880
push 0
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0xc]
mov dword [edx + 4], 0xffffffff
mov esp, ebp
pop ebp
ret

Function at 0x4018a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
add eax, 8
push eax
push 0
mov ecx, dword [ebp - 4]
push ecx
push 0x403a60
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, dword [ebp - 4]
mov dword [edx + 4], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0xffffffff
je 0x4018d6
mov al, 1
jmp 0x4018d8
xor al, al
mov esp, ebp
pop ebp
ret
Function at 0x403e60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [ebp + 0x14], 0
je 0x403e82
push 0
push 2
call dword [ebp + 0x14]
add esp, 8
mov eax, dword [ebp + 0xc]
push eax
push 3
call dword [ebp + 0x14]
add esp, 8
cmp dword [ebp + 0xc], 0
jne 0x403ea9
cmp dword [ebp + 0x14], 0
je 0x403e98
push 0x13
push 0
call dword [ebp + 0x14]
add esp, 8
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 0xfffffffd
jmp 0x403f28
mov dword [ebp - 4], 0
push 0
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x403ed9
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0xc]
je 0x403efa
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x14], 0
je 0x403ef3
push 0x14
push 0
call dword [ebp + 0x14]
add esp, 8
mov eax, 0xfffffffe
jmp 0x403f28
cmp dword [ebp + 0x14], 0
je 0x403f0c
mov edx, dword [ebp - 4]
push edx
push 4
call dword [ebp + 0x14]
add esp, 8
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x14], 0
je 0x403f26
push 0
push 5
call dword [ebp + 0x14]
add esp, 8
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x404130
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
push 0x400
lea ecx, [ebp - 0x10]
call fcn.00401000
push 0x400
lea ecx, [ebp - 8]
call fcn.00401000
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 8]
call fcn.00401040
push eax
call fcn.00403fe0
add esp, 8
push 0x4052d8
lea ecx, [ebp - 0x10]
call fcn.00401040
push eax
call fcn.00403fe0
add esp, 8
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x10]
call fcn.00401040
push eax
call fcn.00403f90
add esp, 8
push 0x4052dc
lea ecx, [ebp - 0x10]
call fcn.00401040
push eax
call fcn.00403f90
add esp, 8
mov edx, dword [ebp + 0xc]
push edx
lea ecx, [ebp - 0x10]
call fcn.00401040
push eax
call fcn.00403f90
add esp, 8
push 0x44
push 0
lea eax, [ebp - 0x68]
push eax
call fcn.00404020
add esp, 0xc
push 0x10
push 0
lea ecx, [ebp - 0x20]
push ecx
call fcn.00404020
add esp, 0xc
mov dword [ebp - 0x68], 0x44
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x68]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x10]
call fcn.00401040
push eax
lea ecx, [ebp - 8]
call fcn.00401040
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x404234
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 0x6d], 0
lea ecx, [ebp - 8]
call fcn.00401090
lea ecx, [ebp - 0x10]
call fcn.00401090
mov al, byte [ebp - 0x6d]
jmp 0x404273
movzx ecx, byte [ebp + 0x10]
test ecx, ecx
je 0x404248
push 0xffffffffffffffff
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x6e], 1
lea ecx, [ebp - 8]
call fcn.00401090
lea ecx, [ebp - 0x10]
call fcn.00401090
mov al, byte [ebp - 0x6e]
mov esp, ebp
pop ebp
ret
Function at 0x404280
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
push edx
call fcn.00404060
add esp, 4
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
push eax
call fcn.00404060
add esp, 4
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
lea eax, [edx + ecx + 2]
cmp eax, dword [ebp + 0x14]
jbe 0x4042d6
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 0x10]
push edx
call fcn.00403fe0
add esp, 8
jmp 0x40432d
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x10]
movzx edx, word [ecx + eax*2 - 2]
cmp edx, 0x5c
je 0x4042fe
mov eax, 0x5c
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0x10]
mov word [edx + ecx*2], ax
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0x10]
lea ecx, [eax + edx*2]
push ecx
call fcn.00403fe0
add esp, 8
push 0
mov edx, dword [ebp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40432d
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
lea eax, [edx + ecx + 2]
cmp eax, dword [ebp + 0x14]
jbe 0x40434e
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp + 0x10]
push edx
call fcn.00403fe0
add esp, 8
jmp 0x40438c
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x10]
movzx edx, word [ecx + eax*2 - 2]
cmp edx, 0x5c
je 0x404376
mov eax, 0x5c
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0x10]
mov word [edx + ecx*2], ax
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0x10]
lea ecx, [eax + edx*2]
push ecx
call fcn.00403fe0
add esp, 8
mov esp, ebp
pop ebp
ret
Function at 0x404760
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x404788
xor eax, eax
jmp 0x404844
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0x1c]
push edx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4047d0
xor eax, eax
jmp 0x404844
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x10]
push eax
call fcn.00404090
add esp, 0xc
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea edx, [ebp - 4]
push edx
push 1
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jge 0x404822
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
jmp 0x404844
push 0
mov edx, dword [ebp - 4]
push edx
call fcn.004015f0
add esp, 8
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ecx + 8]
call eax
mov eax, dword [ebp - 0x20]
mov esp, ebp
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
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 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403d6f
nop
nop
sub eax, 0x403d15
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219