joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404c60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0xc
push ebp
push esi
mov esi, dword [0x43047c]
push edi
push 0x42447c
push 0xcb
push esi
mov ebp, ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x404cd1
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push edi
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test esi, esi
ja 0x404ca9
test eax, eax
je 0x404cd0
push esi
push eax
lea ecx, [esp + 0x18]
call fcn.00404ce0
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
lea eax, [esp + 0x10]
push eax
mov ecx, ebp
call fcn.00404a90
lea ecx, [esp + 0x10]
call fcn.00404d40
pop ebx
pop edi
pop esi
pop ebp
add esp, 0xc
ret

Function at 0x405f70
Capabilities:
Create process on windows
Get comspec environment variable
Query environment variable
Self delete

Disassembly:
sub esp, 0x34c
mov eax, dword [0x42efe0]
xor eax, esp
mov dword [esp + 0x348], eax
push 0x104
lea eax, [esp + 0x40]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x4060a4
push 0x104
lea ecx, [esp + 0x40]
push ecx
mov edx, ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test eax, eax
je 0x4060a4
push 0x104
lea eax, [esp + 0x248]
push eax
push str.COMSPEC
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x4060a4
push esi
push str._c_del
lea ecx, [esp + 0x148]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x148]
push eax
call esi
push str.___nul
lea ecx, [esp + 0x148]
push ecx
call esi
lea ecx, [esp + 4]
lea edx, [esp + 0x248]
lea eax, [esp + 0x144]
push ecx
mov dword [esp + 8], 0x3c
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], str.Open
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0xc], 0x40
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x4060a3
mov edx, dword [esp + 0x3c]
mov esi, dword [sym.imp.KERNEL32.dll_SetPriorityClass]
push 0x40
push edx
call esi
push 0x100
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
push 0xf
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push 0
lea eax, [esp + 0x44]
push eax
push 1
push 4
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
pop esi
mov ecx, dword [esp + 0x348]
xor ecx, esp
call fcn.00415c68
add esp, 0x34c
ret

Function at 0x406fa0
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 4]
push 4
lea eax, [esp + 0xc]
push eax
mov eax, dword [ecx]
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 8
Function at 0x414a50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x3c
mov eax, dword [0x42efe0]
xor eax, esp
mov dword [esp + 0x38], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x4c]
push edi
mov edi, dword [0x43047c]
push 0x42447c
push 0xcd
push edi
mov dword [esp + 0x24], ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
je 0x414c40
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push ebx
mov ebp, eax
push edi
mov dword [esp + 0x28], ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
push ebp
mov dword [esp + 0x14], edi
call dword [sym.imp.KERNEL32.dll_LockResource]
test edi, edi
mov dword [esp + 0x1c], eax
ja 0x414abe
test eax, eax
je 0x414c40
mov eax, dword [esi + 0x5c]
xor ebx, ebx
test eax, eax
jne 0x414acf
xor ebp, ebp
mov dword [esp + 0x14], ebp
jmp 0x414aed
mov ecx, dword [esi + 0x60]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x14], eax
mov ebp, eax
xor edi, edi
test ebp, ebp
jle 0x414b18
mov ecx, dword [esi + 0x6c]
test ecx, ecx
je 0x414b06
mov eax, dword [esi + 0x70]
sub eax, ecx
sar eax, 2
cmp edi, eax
jb 0x414b0b
call fcn.0041559b
mov eax, dword [esi + 0x6c]
add ebx, dword [eax + edi*4]
add edi, 1
cmp edi, ebp
jl 0x414af3
mov edi, dword [esp + 0x18]
lea ecx, [ebx + 0x400]
add edi, 0x10
push ecx
mov ecx, edi
call fcn.004134c0
mov ecx, edi
call fcn.00406e80
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
push edx
push ecx
lea edx, [esp + 0x30]
push edx
push eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], ebx
call section..text
mov eax, dword [esp + 0x30]
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor ebp, ebp
xor ebx, ebx
cmp dword [esp + 0x14], ebp
jle 0x414c40
mov dword [esp + 0x10], ebp
mov ecx, dword [esi + 0x6c]
test ecx, ecx
je 0x414b84
mov eax, dword [esi + 0x70]
sub eax, ecx
sar eax, 2
cmp ebp, eax
jb 0x414b89
call fcn.0041559b
mov eax, dword [esi + 0x5c]
test eax, eax
mov ecx, dword [esi + 0x6c]
mov edi, dword [ecx + ebp*4]
je 0x414bb2
mov ecx, dword [esi + 0x60]
sub ecx, eax
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ebp, eax
jb 0x414bb7
call fcn.0041559b
mov eax, dword [esi + 0x5c]
add eax, dword [esp + 0x10]
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0x38]
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], 0
mov byte [esp + 0x3c], 0
call fcn.00403a60
mov edx, dword [esp + 0x24]
push edi
lea eax, [ebx + edx]
push eax
sub esp, 0x1c
mov ecx, esp
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x58]
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], 0
push eax
mov byte [ecx + 4], 0
call fcn.00403a60
mov ecx, dword [esp + 0x3c]
call fcn.004149d0
add ebx, edi
cmp dword [esp + 0x44], 0x10
jb 0x414c2e
mov ecx, dword [esp + 0x30]
push ecx
call fcn.0041546c
add esp, 4
add dword [esp + 0x10], 0x1c
add ebp, 1
cmp ebp, dword [esp + 0x14]
jl 0x414b71
mov ecx, dword [esp + 0x48]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00415c68
add esp, 0x3c
ret 4
Function at 0x41802d
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
mov eax, dword [0x41c194]
xor eax, esp
mov dword [esp + 0x218], eax
mov eax, dword [ebp + 8]
mov edx, 0x104
push ebx
push esi
push edi
xor edi, edi
mov dword [esp + 0x14], eax
push ecx
lea ecx, [esp + 0x1c]
mov dword [eax], edi
mov dword [eax + 4], edi
call fcn.00405313
push 0x401da8
lea ecx, [esp + 0x1c]
call fcn.00417428
lea eax, [esp + 0x18]
push eax
push edi
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
mov esi, eax
test esi, esi
jne 0x4180af
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4180e9
mov ecx, dword [ebp + 4]
mov edx, 0xc8
push 0x401d60
call fcn.00417dc3
mov edi, eax
jmp 0x4180e9
lea edx, [esp + 0x10]
mov dword [esp + 0x10], edi
mov ecx, esi
call fcn.00417f0e
mov ebx, eax
test ebx, ebx
jns 0x4180db
mov ecx, dword [ebp + 4]
mov edx, 0xce
push ebx
push 0x401d60
call fcn.00417da6
mov edi, ebx
jmp 0x4180e9
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
cdq
mov dword [ecx], eax
mov dword [ecx + 4], edx
test esi, esi
je 0x4180f3
push esi
call fcn.00417e1f
mov ecx, dword [esp + 0x224]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041b4e0
mov esp, ebp
pop ebp
ret 8

Function at 0x419eae
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x419f1b
xor ebx, ebx
test eax, 0x4000
je 0x419ef0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_DecryptFileW]
test eax, eax
jne 0x419ef0
mov ecx, dword [ebp + 4]
mov edx, 0xd3
push 0x40426c
call fcn.00417dc3
jmp 0x419f1d
cmp word [edi], bx
je 0x419f1b
mov edx, edi
mov ecx, esi
call fcn.004195e1
mov esi, eax
test esi, esi
jns 0x419f1b
mov ecx, dword [ebp + 4]
mov edx, 0xd9
push esi
push 0x40426c
call fcn.00417da6
mov eax, esi
jmp 0x419f1d
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x41b2b0
Capabilities:
Delete file

Disassembly:
pushal
push 0
call dword [sym.imp.KERNEL32.dll_GlobalFree]
sub edx, edx
dec dl
jmp 0x41b2c0
mov esi, ebp
call 0x41b2c7
push ecx
inc esi
movzx ebx, cx
pop ebp
shld ecx, eax, 0x24
mov esi, ebp
shld edi, esi, cl
push 0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop ebx
add ebx, 0x289022d
mov ah, 0xa
xchg dh, ah
imul edx, ebp
sub ebx, 0x286d4f4
shl ecx, 0x3c
shld edi, esi, 0xcc
inc ecx
push ebx
add ebx, 0x1cf93d7
btc edi, 0xec
imul edi, esi
inc ecx
sub ebx, 0x1cf82c1
movzx edi, bp
adc ecx, ebp
jmp 0x41b31c
push ebx
sub ebx, 0x172dcac
not ecx
bsf edi, esi
lea edi, [0xf1467f6c]
add ebx, 0x172cb96
xchg dl, al
shl ecx, 0x8c
bsf edi, esi
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
pop ebx
sub ecx, edx
lea edi, [0x86bfac5d]
imul ecx, eax
btc edi, esi
sub ecx, ecx
imul edi, esi
inc esi
test eax, 0xd64f7c6d
push ebx
ret
Function at 0x41b834
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x41bd98
call fcn.0041bb5c
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x41b894
cmp eax, 0xffffffff
je 0x41b894
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x41b88d
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x41b88d
cmp edx, 0x10000000
jae 0x41b88d
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x41b88a
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
call fcn.0041bba1
ret 4

Function at 0x41b8f0
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 0x41b92e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x41b926
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x41b930
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x41b916
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x41ba00
Capabilities:
Parse pe header

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x4068c9
xor eax, eax
test eax, eax
je 0x4068dc
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x4068dc
xor ecx, ecx
jmp 0x4068df
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406a02
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4275ac], 0
push esi
jne 0x406a39
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406a13
mov dword [ecx*4 + 0x4275a8], eax
inc ecx
cmp ecx, 0x100
jl 0x406a0e
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406a6a
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4275a8]
xor eax, esi
inc ecx
dec edx
jne 0x406a4c
pop edi
not eax
pop esi
ret 0xc

Function at 0x4064c3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, section.sect_0
call 0x4064c3
lcall 0x5de5, 0x8b10c483
jmp loc.00aeaad8
Function at 0x41f993
Capabilities:
Parse pe header

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

Function at 0x432150
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x43217d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x43217d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

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

Disassembly:
pushal
mov eax, section..pdata
nop
nop
push 4
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x433072
nop
nop
nop
mov ebx, 0x40de38
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x4ec3327b
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
nop
loop 0x433060
nop
mov eax, section..data
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4330d2
nop
mov ebx, 0x4304d8
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x57fc5a4d
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x4330c0
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x4072ad
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x46bc7c], 0
jne 0x4072eb
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4072c1
mov dword [ecx*4 + 0x46bc78], eax
inc ecx
cmp ecx, 0x100
jl 0x4072bc
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x407318
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x46bc78]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x4072f9
not eax
pop ebp
ret 0xc

Function at 0x10c29058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.10c291a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x10c2907e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10c2906a
add dl, dl
jne 0x10c29089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10c290dc
xor eax, eax
add dl, dl
jne 0x10c29096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10c2917d
add dl, dl
jne 0x10c290a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10c290b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10c290bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10c290c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x10c290d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x10c29075
mov eax, 1
add dl, dl
jne 0x10c290ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10c290f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10c290e1
sub eax, ebx
mov ebx, 1
jne 0x10c29128
mov ecx, 1
add dl, dl
jne 0x10c2910e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x10c29119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10c29105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10c29075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x10c2913f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x10c2914a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10c29136
cmp eax, 0x7d00
jae 0x10c2916d
cmp eax, 0x500
jb 0x10c29168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10c29075
cmp eax, 0x7f
ja 0x10c29170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10c29075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x10c2919e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x10c29075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x401190
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov ecx, dword [esp + 8]
push esi
lea eax, [esp + 4]
push eax
push ecx
mov dword [esp + 0xc], 0
call fcn.00401070
mov esi, eax
mov eax, dword [esp + 0xc]
add esp, 8
xor ecx, ecx
test esi, esi
jle 0x4011d1
jmp 0x4011c0
mov dl, byte [ecx + eax]
add dl, 0x7a
xor dl, 0x19
mov byte [ecx + eax], dl
inc ecx
cmp ecx, esi
jl 0x4011c0
pop esi
pop ecx
ret

Function at 0x401260
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push ebx
mov ebx, dword [eax + 4]
mov eax, dword [eax]
movzx ecx, word [eax + 0x14]
xor edx, edx
push esi
lea esi, [ecx + eax + 0x18]
mov dword [esp + 8], 0
cmp dx, word [eax + 6]
jae 0x401307
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
add esi, 0x10
mov eax, dword [esi]
test eax, eax
jne 0x4012c2
mov eax, dword [esp + 0x1c]
mov edi, dword [eax + 0x38]
test edi, edi
jle 0x4012eb
mov ecx, dword [esi - 4]
push 4
push 0x1000
push edi
add ecx, ebx
push ecx
call ebp
push edi
push 0
push eax
mov dword [esi - 8], eax
call fcn.00436ab0
jmp 0x4012e8
mov edx, dword [esi - 4]
push 4
push 0x1000
push eax
add edx, ebx
push edx
call ebp
mov ecx, dword [esi + 4]
add ecx, dword [esp + 0x18]
mov edi, eax
mov eax, dword [esi]
push eax
push ecx
push edi
call fcn.00436b30
mov dword [esi - 8], edi
add esp, 0xc
mov edx, dword [esp + 0x20]
mov ecx, dword [edx]
mov eax, dword [esp + 0x10]
movzx edx, word [ecx + 6]
inc eax
add esi, 0x28
cmp eax, edx
mov dword [esp + 0x10], eax
jl 0x401293
pop edi
pop ebp
pop esi
pop ebx
pop ecx
ret
Function at 0x401310
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x10]
mov eax, dword [eax]
movzx ecx, word [eax + 0x14]
xor edx, edx
push ebp
lea ebp, [ecx + eax + 0x18]
mov dword [esp + 4], 0
cmp dx, word [eax + 6]
jae 0x401435
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push edi
add ebp, 0x24
mov eax, dword [ebp]
mov edi, eax
mov ebx, eax
shr eax, 0x1f
shr edi, 0x1d
shr ebx, 0x1e
push 0
and edi, 1
and ebx, 1
mov dword [esp + 0x18], eax
call esi
push 0
call esi
push 0
call esi
push 0
call esi
push 0
call esi
push 0
call esi
push 0
call esi
push 0
call esi
mov eax, dword [ebp]
test eax, 0x2000000
je 0x40139b
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
push 0x4000
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x401414
mov ecx, dword [esp + 0x14]
lea edx, [ebx + edi*2]
lea edx, [ecx + edx*2]
mov edi, dword [edx*4 + 0x47e7c8]
test eax, 0x4000000
je 0x4013b9
or edi, 0x200
push 0
call esi
push 0
call esi
push 0
call esi
push 0
call esi
push 0
call esi
push 0
call esi
push 0
call esi
push 0
call esi
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x401401
mov eax, dword [ebp]
test al, 0x40
je 0x4013f2
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
mov eax, dword [ecx + 0x20]
jmp 0x4013ff
test al, al
jns 0x401414
mov edx, dword [esp + 0x20]
mov eax, dword [edx]
mov eax, dword [eax + 0x24]
test eax, eax
jbe 0x401414
mov edx, dword [ebp - 0x1c]
lea ecx, [esp + 0x18]
push ecx
push edi
push eax
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx]
mov eax, dword [esp + 0x10]
movzx ecx, word [edx + 6]
inc eax
add ebp, 0x28
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x401342
pop edi
pop esi
pop ebx
pop ebp
add esp, 0xc
ret
Function at 0x401810
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, dword [esp + 8]
mov eax, 0x5a4d
cmp word [ebp], ax
je 0x401824
xor eax, eax
pop ebp
ret
push ebx
mov ebx, dword [ebp + 0x3c]
add ebx, ebp
cmp dword [ebx], 0x4550
je 0x401837
pop ebx
xor eax, eax
pop ebp
ret
push esi
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push edi
push 0
call esi
push 0
call esi
push 0
call esi
push 0
call esi
push 0
call esi
push 0
call esi
push 0
call esi
push 0
call esi
push 0
call esi
push 0
call esi
mov ecx, dword [ebx + 0x50]
mov edx, dword [ebx + 0x34]
push 4
push 0x2000
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test edi, edi
jne 0x40189e
mov eax, dword [ebx + 0x50]
push 4
push 0x2000
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test edi, edi
je 0x401987
push 0
call esi
push 0
call esi
push 0
call esi
push 0
call esi
push 0
call esi
push 0
call esi
push 0
call esi
push 0
call esi
push 0
call esi
push 0
call esi
push 0
call esi
push 0
call esi
push 0x14
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
xor eax, eax
push 4
mov dword [esi + 4], edi
mov dword [esi + 0xc], eax
mov dword [esi + 8], eax
mov dword [esi + 0x10], eax
mov ecx, dword [ebx + 0x50]
push 0x1000
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, dword [ebx + 0x54]
push 4
push 0x1000
push edx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [ebx + 0x54]
add ecx, dword [ebp + 0x3c]
mov dword [esp + 0x14], eax
push ecx
push ebp
push eax
call fcn.00436b30
mov edx, dword [ebp + 0x3c]
mov eax, dword [esp + 0x20]
push esi
add eax, edx
push ebx
mov dword [esi], eax
push ebp
mov dword [eax + 0x34], edi
call fcn.00401260
mov eax, edi
add esp, 0x18
sub eax, dword [ebx + 0x34]
je 0x401950
push eax
mov eax, esi
call fcn.00401440
add esp, 4
push esi
call fcn.00401500
add esp, 4
test eax, eax
je 0x40197e
push esi
call fcn.00401310
mov ecx, dword [esi]
mov eax, dword [ecx + 0x28]
add esp, 4
test eax, eax
je 0x401995
add eax, edi
je 0x40197e
push 0
push 1
push edi
call eax
test eax, eax
jne 0x40198e
push esi
call fcn.004016d0
add esp, 4
pop edi
pop esi
pop ebx
xor eax, eax
pop ebp
ret
mov dword [esi + 0x10], 1
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret

Function at 0x401ab0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401ac9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401b04
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401b00
lea ebx, [ebx]
cmp esi, eax
jae 0x401b04
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401af0
cmp esi, eax
jb 0x401b0a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret