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

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 4
not eax
jb 0x407f6a
push edi
mov edi, esi
shr edi, 2
mov ebx, dword [edx]
add edx, 4
xor eax, ebx
sub esi, 4
mov ecx, eax
mov ebx, eax
and ecx, 0xff
shr ebx, 8
mov eax, dword [ecx*4 + 0x4a8ed0]
xor eax, ebx
mov ecx, eax
and ecx, 0xff
shr eax, 8
mov ecx, dword [ecx*4 + 0x4a8ed0]
xor ecx, eax
mov eax, ecx
and eax, 0xff
shr ecx, 8
mov eax, dword [eax*4 + 0x4a8ed0]
xor eax, ecx
mov ecx, eax
and ecx, 0xff
shr eax, 8
mov ecx, dword [ecx*4 + 0x4a8ed0]
xor eax, ecx
dec edi
jne 0x407f0b
pop edi
mov ecx, esi
dec esi
test ecx, ecx
je 0x407f90
inc esi
mov ecx, eax
xor ebx, ebx
mov bl, byte [edx]
and ecx, 0xff
xor ecx, ebx
shr eax, 8
mov ecx, dword [ecx*4 + 0x4a8ed0]
xor eax, ecx
inc edx
dec esi
jne 0x407f72
pop esi
pop ebx
not eax
ret

Function at 0x407fd0
Capabilities:
Get system information on windows

Disassembly:
mov eax, dword [0x4c6fa0]
test eax, eax
jne 0x40804e
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push 0x4c6d40
mov dword [0x4c6fa0], 1
mov dword [0x4c6d40], 0x114
call esi
mov edx, dword [0x4c6d50]
xor eax, eax
cmp edx, 2
push 0x4c6e80
sete al
mov dword [0x4c0a6c], eax
mov dword [0x4c6e80], 0x11c
call esi
push 0x4c0c9c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.GetNativeSystemInfo
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
pop esi
mov dword [0x4c6f9c], eax
test eax, eax
push 0x4c6e58
je 0x408048
call eax
ret
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
ret
Function at 0x40ace0
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
sub esp, 0x660
push ebx
push ebp
push esi
mov esi, dword [esp + 0x670]
xor ebp, ebp
cmp esi, ebp
je 0x40ae65
push esi
call fcn.0041ec73
add esp, 4
test eax, eax
je 0x40ae65
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40ae65
test bl, 1
je 0x40ad2d
and ebx, 0xfffffffe
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test bl, 0x10
je 0x40ae54
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x12]
mov word [esp + 0x10], bp
push esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x14]
push eax
call fcn.0041ed27
lea ecx, [esp + 0x18]
push 0x4c0f5c
push ecx
call fcn.0041ecfd
mov ecx, 0x93
xor eax, eax
lea edi, [esp + 0x22c]
add esp, 0x10
mov dword [esp + 0x218], ebp
lea edx, [esp + 0x218]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40ae42
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcmpW]
lea ecx, [esp + 0x244]
push 0x4c0590
push ecx
call ebp
test eax, eax
je 0x40ae24
lea edx, [esp + 0x244]
push 0x4c0598
push edx
call ebp
test eax, eax
je 0x40ae24
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x46a]
mov word [esp + 0x468], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x468]
push esi
push eax
call fcn.0041ed27
lea ecx, [esp + 0x18]
push 0x4c0364
push ecx
call fcn.0041ecfd
lea edx, [esp + 0x254]
lea eax, [esp + 0x20]
push edx
push eax
call fcn.0041ecfd
lea ecx, [esp + 0x480]
push ecx
call fcn.0040ace0
add esp, 0x1c
lea edx, [esp + 0x218]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40ada3
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x660
ret
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop esi
pop ebp
pop ebx
add esp, 0x660
ret
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x660
ret
Function at 0x40e5b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4a1fd8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
lea ecx, [esp + 4]
call fcn.0041706a
mov eax, dword [esp + 0x30]
push 0
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0
call fcn.0041712f
lea ecx, [esp + 4]
mov esi, eax
mov dword [esp + 0x28], 0xffffffff
call fcn.004170a9
mov ecx, dword [esp + 0x20]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret

Function at 0x40f130
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x4a21c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, dword [esp + 0x1c]
xor ebx, ebx
cmp esi, ebx
push edi
je 0x40f24f
push esi
call fcn.0041ec73
add esp, 4
test eax, eax
je 0x40f24f
push esi
lea ecx, [esp + 0x24]
call fcn.004884a7
cmp word [esi], 0x5c
mov dword [esp + 0x18], ebx
jne 0x40f19f
cmp word [esi + 2], 0x5c
jne 0x40f19f
push 3
push 0x5c
lea ecx, [esp + 0x28]
call fcn.0048897d
inc eax
lea ecx, [esp + 0x20]
push eax
push 0x5c
call fcn.0048897d
jmp 0x40f1aa
push 0x5c
lea ecx, [esp + 0x24]
call fcn.0048896f
mov esi, eax
cmp esi, 0xffffffff
je 0x40f209
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [esp + 0xc]
push esi
push eax
lea ecx, [esp + 0x28]
call fcn.00484cce
mov ecx, dword [esp + 0xc]
mov byte [esp + 0x18], 1
push ecx
call fcn.0040e6d0
add esp, 4
test eax, eax
jne 0x40f1e8
mov edx, dword [esp + 0xc]
push ebx
push edx
call edi
test eax, eax
je 0x40f231
inc esi
lea ecx, [esp + 0x20]
push esi
push 0x5c
call fcn.0048897d
lea ecx, [esp + 0xc]
mov esi, eax
mov byte [esp + 0x18], bl
call fcn.00488433
cmp esi, 0xffffffff
jne 0x40f1b7
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], 0xffffffff
call fcn.00488433
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 4]
mov dword fs:[0], ecx
add esp, 0x10
ret
lea ecx, [esp + 0xc]
mov byte [esp + 0x18], bl
call fcn.00488433
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], 0xffffffff
call fcn.00488433
mov ecx, dword [esp + 0x10]
pop edi
pop esi
xor eax, eax
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

Function at 0x40f420
Capabilities:
Copy file

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
test edi, edi
je 0x40f4a9
push edi
call fcn.0041ec73
add esp, 4
test eax, eax
je 0x40f4a9
mov esi, dword [esp + 0x10]
test esi, esi
je 0x40f4a9
push esi
call fcn.0041ec73
add esp, 4
test eax, eax
je 0x40f4a9
push edi
call fcn.0040e5b0
add esp, 4
test eax, eax
je 0x40f4a9
push esi
push edi
call fcn.0041ee4b
add esp, 8
test eax, eax
je 0x40f4a9
push esi
call fcn.0040e790
add esp, 4
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x40f4a1
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40f4a9
push 0
push 0
push 0x240
push esi
push 0
push edi
push 0
push 0
call dword [sym.imp.SETUPAPI.dll_SetupInstallFileW]
test eax, eax
je 0x40f4a9
pop edi
mov eax, 1
pop esi
ret
pop edi
xor eax, eax
pop esi
ret
Function at 0x411090
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4a2430
push eax
mov dword fs:[0], esp
sub esp, 0x10
xor eax, eax
push ebp
mov ebp, dword [esp + 0x24]
push esi
mov esi, ecx
push edi
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x411110
push 0x3d
push ebp
call fcn.0041f280
add esp, 8
test eax, eax
jne 0x411110
push 0x3b
push ebp
call fcn.0041f280
add esp, 8
test eax, eax
jne 0x411110
mov eax, dword [0x4aefa8]
mov dword [esp + 0x2c], eax
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], 0
push ecx
push ebp
mov ecx, esi
call fcn.00411e60
test eax, eax
je 0x411126
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], 0xffffffff
call fcn.004320a0
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
mov edx, dword [esp + 0x30]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea edx, [esp + 0x20]
push edx
call fcn.00407590
add esp, 0xc
mov edi, eax
add esi, 4
push ebp
lea eax, [esp + 0x18]
push esi
push eax
mov byte [esp + 0x30], 1
call fcn.004327e0
push 0x3d
lea ecx, [esp + 0x14]
push eax
push ecx
mov byte [esp + 0x30], 2
call fcn.004337f0
push edi
lea edx, [esp + 0x10]
push eax
push edx
mov byte [esp + 0x30], 3
call fcn.00432620
push 0x3b
push eax
lea eax, [esp + 0x38]
mov byte [esp + 0x2c], 4
push eax
call fcn.004337f0
push eax
mov ecx, esi
mov byte [esp + 0x28], 5
call fcn.00432240
lea ecx, [esp + 0x30]
mov byte [esp + 0x24], 4
call fcn.004320a0
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 3
call fcn.004320a0
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 2
call fcn.004320a0
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], 1
call fcn.004320a0
lea ecx, [esp + 0x18]
mov byte [esp + 0x24], 0
call fcn.004320a0
lea ecx, [esp + 0x2c]
mov dword [esp + 0x24], 0xffffffff
call fcn.004320a0
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
mov eax, 1
pop ebp
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
Function at 0x411900
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4a2568
push eax
mov dword fs:[0], esp
push ebx
push esi
mov esi, dword [esp + 0x18]
mov ebx, ecx
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x41197d
push 0x3d
push esi
call fcn.0041f280
add esp, 8
test eax, eax
jne 0x41197d
push 0x3b
push esi
call fcn.0041f280
add esp, 8
test eax, eax
jne 0x41197d
mov eax, dword [0x4aefa8]
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0
push ecx
push esi
mov ecx, ebx
call fcn.00411e60
test eax, eax
jne 0x411993
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call fcn.004320a0
xor eax, eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 8
mov edx, dword [esp + 0x1c]
mov eax, dword [edx - 8]
cdq
sub eax, edx
mov esi, eax
sar esi, 1
inc esi
push esi
call fcn.00488166
mov ecx, esi
mov ebx, eax
mov edx, ecx
xor eax, eax
mov edi, ebx
push esi
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push ebx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x28]
push eax
call fcn.00407760
mov ecx, dword [esp + 0x30]
add esp, 0x10
push ebx
call fcn.00432360
push ebx
call fcn.0048818f
add esp, 4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call fcn.004320a0
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 8

Function at 0x411a10
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4a2588
push eax
mov dword fs:[0], esp
push ebx
push esi
mov esi, dword [esp + 0x18]
mov ebx, ecx
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x411a8d
push 0x3d
push esi
call fcn.0041f280
add esp, 8
test eax, eax
jne 0x411a8d
push 0x3b
push esi
call fcn.0041f280
add esp, 8
test eax, eax
jne 0x411a8d
mov eax, dword [0x4aefa8]
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0
push ecx
push esi
mov ecx, ebx
call fcn.00411e60
test eax, eax
jne 0x411aa3
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call fcn.004320a0
xor eax, eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret 8
mov edx, dword [esp + 0x1c]
mov eax, dword [edx - 8]
cdq
sub eax, edx
sar eax, 1
inc eax
lea ebx, [eax + eax]
push ebx
call fcn.00488166
mov ecx, ebx
mov esi, eax
mov edx, ecx
xor eax, eax
mov edi, esi
push ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push esi
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x28]
push eax
call fcn.00407760
mov ecx, dword [esp + 0x30]
add esp, 0x10
push esi
call fcn.00437b10
push esi
call fcn.0048818f
add esp, 4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x14], 0xffffffff
call fcn.004320a0
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret 8
Function at 0x411f60
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, ebx
push esi
je 0x411fc4
mov esi, dword [esp + 0x10]
test esi, esi
je 0x411fc4
mov edx, dword [esp + 0x14]
test edx, edx
je 0x411fc4
mov ecx, dword [esp + 0x1c]
xor eax, eax
test ecx, ecx
je 0x411f86
mov dword [ecx], esi
mov ecx, dword [esp + 0x18]
cmp ecx, esi
jb 0x411fc6
push ebp
mov ebp, ecx
push edi
xor eax, eax
mov edi, edx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebp
and ecx, 3
rep stosb byte es:[edi], al
pop edi
pop ebp
test esi, esi
jbe 0x411fba
mov ecx, ebx
mov eax, edx
sub ecx, edx
mov dl, byte [ecx + eax]
xor dl, 0x54
mov byte [eax], dl
inc eax
dec esi
jne 0x411fae
pop esi
mov eax, 1
pop ebx
ret 0x14
xor eax, eax
pop esi
pop ebx
ret 0x14

Function at 0x411fd0
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, ebx
push esi
je 0x412034
mov esi, dword [esp + 0x10]
test esi, esi
je 0x412034
mov edx, dword [esp + 0x14]
test edx, edx
je 0x412034
mov ecx, dword [esp + 0x1c]
xor eax, eax
test ecx, ecx
je 0x411ff6
mov dword [ecx], esi
mov ecx, dword [esp + 0x18]
cmp ecx, esi
jb 0x412036
push ebp
mov ebp, ecx
push edi
xor eax, eax
mov edi, edx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebp
and ecx, 3
rep stosb byte es:[edi], al
pop edi
pop ebp
test esi, esi
jbe 0x41202a
mov ecx, ebx
mov eax, edx
sub ecx, edx
mov dl, byte [ecx + eax]
xor dl, 0x54
mov byte [eax], dl
inc eax
dec esi
jne 0x41201e
pop esi
mov eax, 1
pop ebx
ret 0x14
xor eax, eax
pop esi
pop ebx
ret 0x14
Function at 0x42260d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4c2c68
cmp edx, dword [eax]
je 0x42262f
add eax, 8
inc ecx
cmp eax, 0x4c2cf8
jl 0x422620
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4c2c68]
jne 0x42275d
mov eax, dword [0x4c924c]
cmp eax, 1
je 0x422737
test eax, eax
jne 0x422660
cmp dword [0x4c29e8], 1
je 0x422737
cmp edx, 0xfc
je 0x42275d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x422697
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0042a6c0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00424c60
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4226da
lea eax, [ebp - 0x1a4]
push eax
call fcn.00424c60
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4ad098
push edi
call fcn.0041f140
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0042a6c0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0042a6d0
lea eax, [ebp - 0xa0]
push 0x4ad078
push eax
call fcn.0042a6d0
push dword [esi + 0x4c2c6c]
lea eax, [ebp - 0xa0]
push eax
call fcn.0042a6d0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0042a629
add esp, 0x2c
pop edi
jmp 0x42275d
lea eax, [ebp + 8]
lea esi, [esi + 0x4c2c6c]
push 0
push eax
push dword [esi]
call fcn.00424c60
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x435d20
Capabilities:
Extract resource via kernel32 functions
Print debug messages

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push ebx
push ebp
mov ebp, eax
push esi
mov esi, dword [esp + 0x10]
and ebp, 0xf
shr eax, 4
inc eax
push edi
and eax, 0xffff
push ecx
push eax
push 6
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
je 0x435d79
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x435d79
xor edi, edi
xor ebx, ebx
mov bx, word [esi]
add esi, 2
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp ebp, edi
je 0x435d80
inc edi
lea esi, [esi + ebx*2]
cmp edi, 0x10
jl 0x435d5d
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, dword [esp + 0x24]
mov ebp, dword [esp + 0x20]
mov edx, ecx
xor eax, eax
mov edi, ebp
push 0
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
push 0
and ecx, 3
rep stosb byte es:[edi], al
mov eax, edx
dec eax
push eax
push ebp
push ebx
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x435d7b
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
pop edi
dec ecx
pop esi
pop ebp
mov eax, ecx
pop ebx
ret
Function at 0x43b850
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push esi
push edi
mov esi, dword [esp + 0xc]
mov edi, eax
shr eax, 4
and edi, 0xf
inc eax
and eax, 0xffff
push ecx
push eax
push 6
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
je 0x43b8a0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x43b8a0
xor ecx, ecx
xor eax, eax
mov ax, word [esi]
add esi, 2
cmp edi, ecx
je 0x43b8a5
inc ecx
lea esi, [esi + eax*2]
cmp ecx, 0x10
jl 0x43b88b
pop edi
xor eax, eax
pop esi
ret
mov edx, dword [esp + 0x1c]
lea ecx, [edx - 1]
cmp eax, ecx
jle 0x43b8b2
mov eax, ecx
lea edx, [eax + eax]
push ebx
mov ebx, dword [esp + 0x1c]
mov ecx, edx
push ebp
mov ebp, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
pop ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov word [edx + ebx], 0
pop ebx
pop edi
pop esi
ret

Function at 0x449810
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4a4a8c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x4c1960]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
lea edi, [esi + 8]
mov dword [edi], eax
mov ecx, dword [0x4c1960]
lea ebp, [esi + 0x18]
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov dword [ebp], ecx
mov edx, dword [0x4c1960]
mov dword [esi + 0x20], edx
lea ecx, [esi + 0x28]
mov byte [esp + 0x1c], 2
call fcn.00487126
mov eax, dword [esp + 0x24]
mov ecx, edi
push eax
mov byte [esp + 0x20], 3
mov dword [esi], 0x4aefc0
mov dword [esi + 4], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x1c], ebx
mov word [esi + 0x24], 0xffff
call fcn.004885ca
mov eax, dword [esp + 0x28]
mov cx, word [esp + 0x30]
test eax, 0xffff0000
mov word [esi + 0x24], cx
mov dword [esi + 0x14], eax
je 0x4498b3
push eax
mov ecx, ebp
call fcn.004885ca
mov edx, dword [ebp]
mov dword [esi + 0x14], edx
mov eax, dword [esp + 0x2c]
test eax, 0xffff0000
mov dword [esi + 0x1c], eax
je 0x4498d1
lea edi, [esi + 0x20]
push eax
mov ecx, edi
call fcn.004885ca
mov eax, dword [edi]
mov dword [esi + 0x1c], eax
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x10
Function at 0x44e6d0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4af010
push 0x4224fc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov ecx, dword [ebp + 8]
xor edx, edx
cmp ecx, edx
je 0x44e762
mov dword [ebp - 4], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], ecx
cmp word [ecx], 0x5a4d
jne 0x44e75b
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x20], eax
cmp dword [eax], 0x4550
jne 0x44e75b
cmp word [eax + 0x14], dx
je 0x44e75b
cmp dword [ebp + 0xc], edx
je 0x44e735
cmp word [eax + 4], 0x14c
jne 0x44e75b
mov dword [ebp - 4], 0xffffffff
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x44e850
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
test ebx, ebx
push edi
je 0x44e89d
mov edi, dword [esp + 0x18]
test edi, edi
je 0x44e89d
mov eax, dword [ebx + 0x3c]
xor ecx, ecx
add eax, ebx
xor edx, edx
mov cx, word [eax + 0x14]
mov dx, word [eax + 6]
lea esi, [ecx + eax + 0x18]
xor ecx, ecx
test edx, edx
mov dword [esp + 0x14], esi
jbe 0x44e89d
lea eax, [esi + 0x10]
mov esi, dword [eax - 4]
cmp edi, esi
jb 0x44e895
mov ebp, dword [eax]
add ebp, esi
cmp edi, ebp
jb 0x44e8a4
inc ecx
add eax, 0x28
cmp ecx, edx
jb 0x44e886
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov eax, dword [esp + 0x14]
lea edx, [ecx + ecx*4]
mov esi, dword [eax + edx*8 + 0xc]
lea ecx, [eax + edx*8]
mov eax, dword [eax + edx*8 + 0x14]
sub eax, esi
add eax, ebx
add eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x44f150
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4af020
push 0x4224fc
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor ebx, ebx
mov dword [ebp - 0x20], ebx
lea eax, [ebp - 0x20]
push eax
mov edi, dword [ebp + 0x14]
push edi
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0044e9b0
add esp, 0x10
mov esi, eax
cmp esi, ebx
je 0x44f203
mov eax, dword [esi]
push eax
mov eax, dword [ebp - 0x20]
push eax
call edi
add esp, 8
mov dword [ebp - 0x24], eax
mov edi, dword [ebp + 0x10]
sub edi, dword [ebp - 0x20]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x30], ebx
lea ecx, [ebp - 0x30]
push ecx
push 0x40
push 4
push esi
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
call ebx
test eax, eax
je 0x44f1fc
mov dword [esi], edi
lea edx, [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x30]
push eax
push 4
push esi
call ebx
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xffffffff
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x456450
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push esi
mov esi, eax
shr eax, 4
and esi, 0xf
inc eax
push edi
mov edi, dword [esp + 0xc]
and eax, 0xffff
push ecx
push eax
push 6
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
je 0x45649e
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x45649e
xor edx, edx
xor ecx, ecx
mov cx, word [eax]
add eax, 2
cmp esi, edx
je 0x4564a3
inc edx
lea eax, [eax + ecx*2]
cmp edx, 0x10
jl 0x456489
pop edi
xor eax, eax
pop esi
ret
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
test edi, edi
jne 0x4564b3
test esi, esi
jne 0x4564d1
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jle 0x4564cf
mov byte [eax + esi - 1], 0
jne 0x4564d8
mov byte [esi + edi - 1], 0
mov eax, edi
pop edi
dec eax
pop esi
ret