joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10031daf
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xfc
mov eax, dword [0x1008f210]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 0x7c], eax
xor ecx, ecx
movzx eax, byte [ecx + str.80_]
mov esi, dword [ebp + 8]
mov edx, eax
sar eax, 3
movsx eax, byte [eax + esi]
and edx, 7
movzx edx, word [edx*2 + 0x10073f68]
test eax, edx
setne al
mov byte [ebp + ecx - 0x74], al
inc ecx
cmp ecx, 0x38
jl 0x10031dcf
mov dword [ebp - 0x78], ebx
mov edi, dword [ebp - 0x78]
lea eax, [edi + edi]
lea ecx, [ebp + eax*4 - 0xf8]
lea esi, [ebp + eax*4 - 0xfc]
movzx eax, byte [edi + 0x10074010]
mov dword [ecx], ebx
mov dword [esi], ebx
xor edx, edx
mov edi, eax
cmp edi, 0x1c
jge 0x10031e2d
mov bl, byte [ebp + edi - 0x74]
jmp 0x10031e34
mov bl, byte [ebp + edi - 0x90]
mov byte [ebp + edx - 0x3c], bl
inc edx
inc edi
cmp edx, 0x1c
jl 0x10031e22
push 0x1c
pop edi
add eax, edi
cmp eax, 0x38
jge 0x10031e4f
mov dl, byte [ebp + eax - 0x74]
jmp 0x10031e56
mov dl, byte [ebp + eax - 0x90]
mov byte [ebp + edi - 0x3c], dl
inc edi
inc eax
cmp edi, 0x38
jl 0x10031e44
xor ebx, ebx
xor eax, eax
lea edx, [eax + 0x10074038]
movzx edi, byte [edx - 0x18]
cmp byte [ebp + edi - 0x3c], bl
je 0x10031e7e
mov edi, dword [eax*4 + 0x10073f78]
or dword [esi], edi
movzx edx, byte [edx]
cmp byte [ebp + edx - 0x3c], bl
je 0x10031e90
mov edx, dword [eax*4 + 0x10073f78]
or dword [ecx], edx
inc eax
cmp eax, 0x18
jl 0x10031e65
inc dword [ebp - 0x78]
cmp dword [ebp - 0x78], 0x10
jl 0x10031dff
push dword [ebp - 0x7c]
lea eax, [ebp - 0xfc]
push eax
call fcn.10031cff
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1004c55d
leave
ret
Function at 0x100361be
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1006ee12
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x1008f210]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov eax, dword [0x10092fdc]
mov ecx, 0x10092fdc
mov dword [esp + 0x1c], 0x80004005
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
mov ebx, dword [ebp + 8]
push dword [ebp + 0xc]
and dword [esp + 0x54], 0
lea edi, [ebx + 8]
push edi
mov dword [esp + 0x2c], edi
call fcn.100230ae
mov esi, edi
call fcn.10036fb1
push dword [edi]
call fcn.1003703f
mov eax, dword [ebx + 0x34]
mov eax, dword [eax]
pop ecx
mov ecx, dword [ebx + 0x1c]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], eax
cmp dword [esp + 0x2c], 0
mov esi, dword [ebx + 0x34]
mov eax, dword [ebx + 0x1c]
je 0x10036250
cmp dword [esp + 0x2c], eax
je 0x10036255
call fcn.1004cee2
cmp dword [esp + 0x30], esi
je 0x10036388
lea esi, [esp + 0x2c]
call fcn.10037af5
mov dword [esp + 0x14], eax
call fcn.10037af5
push dword [esp + 0x14]
mov esi, eax
add esi, 4
mov ecx, 0x10078b7c
mov dword [esp + 0x2c], esi
call fcn.10035a9d
test eax, eax
je 0x10036324
mov eax, dword [0x10092fdc]
mov ecx, 0x10092fdc
call dword [eax + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
mov byte [esp + 0x54], 1
call fcn.10037334
mov ebx, eax
mov eax, dword [esp + 0x18]
call fcn.100372cb
test eax, eax
jle 0x100362d1
lea eax, [esp + 0x18]
lea edi, [esp + 0x10]
call fcn.100359a7
jmp 0x10036302
push dword [esp + 0x14]
lea eax, [esp + 0x24]
push eax
mov ecx, edi
call fcn.100374f9
pop ecx
pop ecx
lea edi, [esp + 0x10]
mov byte [esp + 0x50], 2
call fcn.100359a7
mov byte [esp + 0x50], 1
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
call fcn.10011a8a
push dword [esp + 0x10]
call fcn.1003703f
mov byte [esp + 0x54], 0
mov eax, dword [esp + 0x1c]
pop ecx
add eax, 0xfffffff0
call fcn.10011a8a
mov edi, dword [esp + 0x24]
mov ebx, dword [ebp + 8]
mov eax, dword [esi + 0x14]
mov eax, dword [eax]
mov ecx, dword [esi]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x38], eax
cmp dword [esp + 0x34], 0
mov eax, dword [esi + 0x14]
mov esi, dword [esi]
mov dword [esp + 0x40], eax
je 0x10036349
cmp dword [esp + 0x34], esi
je 0x1003634e
call fcn.1004cee2
mov eax, dword [esp + 0x40]
cmp dword [esp + 0x38], eax
je 0x1003637a
lea esi, [esp + 0x34]
call fcn.10037a69
push dword [edi]
mov eax, dword [eax]
push eax
call fcn.10036b81
test eax, eax
je 0x1003638d
call fcn.10037db8
mov esi, dword [esp + 0x28]
jmp 0x10036333
lea esi, [esp + 0x2c]
call fcn.10037de7
jmp 0x1003623d
and dword [esp + 0x1c], 0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
call fcn.10011a8a
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x1003650a
Capabilities:
Delete file
Move file

Disassembly:
push 0x10
mov eax, 0x1006ed81
call fcn.1005218d
mov ebx, ecx
lea eax, [ebp - 0x10]
xor esi, esi
push eax
mov edi, edx
mov dword [ebp - 0x18], esi
call fcn.100230e2
mov dword [ebp - 4], esi
mov ecx, dword [ebp - 0x10]
push ebx
call fcn.10036698
cmp eax, esi
jne 0x1003667d
push esi
push dword [ebp - 0x10]
call fcn.100517ef
pop ecx
pop ecx
test eax, eax
jne 0x10036684
mov eax, dword [0x10092fdc]
mov ecx, 0x10092fdc
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 1
push dword [ebp - 0x10]
lea eax, [ebp - 0x14]
push str._s.tmp
call fcn.1002d353
pop ecx
pop ecx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call fcn.10051807
pop ecx
pop ecx
test eax, eax
je 0x100365fd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, 0x10078b74
lea eax, [ebp - 0x1c]
push esi
push eax
lea ecx, [ebp - 0x10]
call fcn.10035a38
pop ecx
pop ecx
mov byte [ebp - 4], 2
mov eax, dword [eax]
push ebx
mov ecx, eax
call fcn.10036698
mov edi, eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.10011a8a
test edi, edi
je 0x100365ed
lea eax, [ebp - 0x1c]
push esi
push eax
lea ecx, [ebp - 0x10]
call fcn.10035a38
pop ecx
pop ecx
push 5
push dword [ebp - 0x10]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x10036667
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.10011a8a
jmp 0x10036684
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 4
push esi
push dword [ebp - 0x14]
call edi
mov ecx, dword [ebp - 0x10]
push ebx
call fcn.10036698
cmp eax, esi
jne 0x10036672
mov esi, 0x10078b74
lea eax, [ebp - 0x1c]
push esi
push eax
lea ecx, [ebp - 0x10]
call fcn.10035a38
pop ecx
pop ecx
mov byte [ebp - 4], 3
mov eax, dword [eax]
push ebx
mov ecx, eax
call fcn.10036698
mov ebx, eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.10011a8a
test ebx, ebx
je 0x100365ed
lea eax, [ebp - 0x1c]
push esi
push eax
lea ecx, [ebp - 0x10]
call fcn.10035a38
pop ecx
pop ecx
push 5
push dword [ebp - 0x10]
push dword [eax]
call edi
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.10011a8a
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.10011a8a
mov dword [ebp - 0x18], 1
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.10011a8a
mov eax, dword [ebp - 0x18]
call fcn.10052265
ret
Function at 0x100366fc
Capabilities:
Copy file

Disassembly:
push 0x10
mov eax, 0x1006ed46
call fcn.1005218d
mov eax, dword [ebx + 0x14]
cmp eax, 0xffffffff
je 0x10036804
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebx + 0xc]
push eax
lea eax, [ebp - 0x10]
lea ecx, [ebx + 8]
push eax
call fcn.100374f9
pop ecx
pop ecx
and dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.100370d0
test eax, eax
je 0x100367f9
mov eax, dword [0x10092fdc]
mov esi, 0x10092fdc
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 1
mov eax, dword [0x10092fdc]
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.10037192
lea edi, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.100359a7
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.10011a8a
push dword [ebp - 0x10]
lea eax, [ebp - 0x1c]
push eax
call fcn.100371fe
pop ecx
pop ecx
lea edi, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.100359a7
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.10011a8a
mov eax, edi
push eax
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x14]
call fcn.100374f9
pop ecx
pop ecx
push 0
push dword [eax]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
call fcn.10011a8a
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.10011a8a
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.10011a8a
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.10011a8a
or dword [ebx + 0x14], 0xffffffff
call fcn.10052265
ret
Function at 0x10036da9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x1008f210]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
push edi
push 0x80
push 2
push edi
push 1
push 0xc0000000
push eax
mov ebx, ecx
mov dword [ebp - 0x224], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x228], eax
cmp eax, 0xffffffff
jne 0x10036df9
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x10036f48
push dword [ebx + 4]
call fcn.1004c552
mov esi, eax
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax]
pop ecx
mov ecx, dword [ebx + 8]
mov dword [ebp - 0x234], esi
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x230], ecx
mov dword [ebp - 0x22c], eax
mov eax, dword [ebx + 0x1c]
mov dword [ebp - 0x238], eax
mov eax, dword [ebx + 8]
cmp dword [ebp - 0x230], edi
je 0x10036e40
cmp dword [ebp - 0x230], eax
je 0x10036e45
call fcn.1004cee2
mov eax, dword [ebp - 0x238]
cmp dword [ebp - 0x22c], eax
je 0x10036ea9
lea esi, [ebp - 0x230]
call fcn.10037a69
mov esi, dword [eax]
mov edi, dword [esi + 0x10]
sub edi, dword [esi + 0xc]
jne 0x10036e6d
call fcn.1004cee2
push edi
push dword [esi + 0xc]
push dword [ebp - 0x220]
call fcn.100545a0
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0xc]
add esp, 0xc
add dword [ebp - 0x220], eax
lea edi, [ebp - 0x244]
lea esi, [ebp - 0x230]
call fcn.100377a0
mov esi, dword [ebp - 0x234]
xor edi, edi
jmp 0x10036e24
xor eax, eax
push 0x208
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21a]
push edi
push eax
call fcn.10051a60
push dword [ebx + 4]
lea eax, [ebp - 0x21c]
push dword [ebp - 0x224]
push str.Path:_s__PartSize__d
push eax
call fcn.1004c8f5
mov ebx, dword [ebx + 4]
add esp, 0x1c
push edi
lea eax, [ebp - 0x220]
push eax
push ebx
mov dword [ebp - 0x224], esi
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x220], edi
jmp 0x10036f21
mov eax, dword [ebp - 0x220]
add dword [ebp - 0x224], eax
sub ebx, eax
je 0x10036f2d
push edi
lea eax, [ebp - 0x220]
push eax
push ebx
push dword [ebp - 0x224]
push dword [ebp - 0x228]
call esi
test eax, eax
jne 0x10036f02
push dword [ebp - 0x234]
call fcn.1004d030
pop ecx
push dword [ebp - 0x228]
xor edi, edi
inc edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1004c55d
leave
ret 4

Function at 0x10036fee
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 0xc], 0
and dword [ebp - 4], 0
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, ecx
push 0
lea ecx, [ebp - 4]
push ecx
mov dword [ebp - 8], eax
push eax
jmp 0x10037025
mov eax, dword [ebp - 4]
add ebx, eax
sub dword [ebp - 8], eax
je 0x10037031
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push ebx
push dword [ebp + 8]
call esi
test eax, eax
jne 0x10037012
jmp 0x10037038
mov dword [ebp - 0xc], 1
mov eax, dword [ebp - 0xc]
pop esi
pop ebx
leave
ret
Function at 0x1003703f
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push 4
mov eax, 0x1006ec2f
call fcn.1005218d
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call fcn.100230e2
and dword [ebp - 4], 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1003707d
xor esi, esi
inc esi
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.10011a8a
mov eax, esi
call fcn.10052265
ret
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
push edi
call esi
test eax, eax
jne 0x10037067
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
mov edi, 0xb7
cmp eax, edi
je 0x10037067
lea ecx, [ebp - 0x10]
call fcn.10036f5b
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
jne 0x100370b2
xor esi, esi
jmp 0x1003706a
push eax
call fcn.1003703f
pop ecx
test eax, eax
je 0x100370ae
push 0
push dword [ebp + 8]
call esi
test eax, eax
jne 0x10037067
call ebx
cmp eax, edi
jne 0x100370ae
jmp 0x10037067
Function at 0x1003e40f
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1006ac8b
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x1008f210]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, ecx
lea esi, [edi + 0x258]
push dword [esi + 8]
mov eax, dword [esi]
xor ebx, ebx
push ebx
mov ecx, esi
call dword [eax + 4]
lea eax, [esp + 0x10]
add edi, 0x1c8
push eax
call fcn.1003e0e0
push 0xe
lea ecx, [esp + 0x14]
mov dword [esp + 0x34], ebx
call fcn.1003e386
pop ecx
push 0xf
lea ecx, [esp + 0x14]
call fcn.1003e386
pop ecx
push 0x11
push esi
lea edi, [esp + 0x18]
call fcn.1003e341
push 0x10
push esi
call fcn.1003e341
push 9
push esi
call fcn.1003e341
push 6
push esi
call fcn.1003e341
push 0x12
push esi
call fcn.1003e341
push 0x14
push esi
call fcn.1003e341
push 0x13
push esi
call fcn.1003e341
push 0x15
push esi
call fcn.1003e341
add esp, 0x40
push 0xa
push esi
call fcn.1003e341
push 0x16
push esi
call fcn.1003e341
add esp, 0x10
mov eax, esi
call fcn.1003e1a2
push ebx
push 0x61
call fcn.10041404
push ebx
push 0x62
call fcn.10041404
push ebx
push 0x63
call fcn.10041404
push 0x14
mov eax, esi
call fcn.1003e3bf
pop ecx
push 6
mov eax, esi
call fcn.1003e3bf
pop ecx
push 9
mov eax, esi
call fcn.1003e3bf
pop ecx
push 0x11
mov eax, esi
call fcn.1003e3bf
pop ecx
or dword [esp + 0x30], 0xffffffff
mov ecx, edi
call fcn.1003a351
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1003fcda
Capabilities:
Get system information on windows

Disassembly:
push 0x48
mov eax, 0x1006c912
call fcn.100521c0
mov ebx, dword [ebp + 8]
xor edi, edi
lea ecx, [ebx + 0x240]
mov dword [ebp - 4], edi
push dword [ecx + 8]
mov eax, dword [ecx]
push edi
call dword [eax + 4]
lea esi, [ebx + 0xc]
call fcn.1003af5c
lea eax, [ebp - 0x54]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x40]
or dword [esi + 0x4c], 0xffffffff
or dword [esi + 0x50], 0xffffffff
mov dword [esi + 0x48], eax
mov dword [esi + 0x44], edi
mov dword [esi + 4], 4
mov dword [ebp - 0x14], edi
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp + 0x14]
jge 0x1003fe26
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x14]
mov edi, dword [eax + ecx*4]
lea eax, [ebp - 0x20]
call fcn.10039c13
mov byte [ebp - 4], 1
push dword [ebp - 0x20]
call dword [sym.imp.USER32.dll_CharUpperW]
cmp dword [ebp - 0x1c], 0
jne 0x1003fd6f
mov esi, 0x80070057
push dword [ebp - 0x20]
call fcn.1004d030
pop ecx
mov eax, esi
jmp 0x1003fe35
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x20]
shl eax, 4
add eax, dword [ebp + 0x10]
cmp word [edx], 0x42
jne 0x1003fe05
xor eax, eax
inc eax
lea esi, [ebp - 0x20]
call fcn.1003b536
lea ebx, [ebp - 0x24]
lea ecx, [ebp - 0x28]
mov eax, esi
call fcn.1003fc95
test eax, eax
jne 0x1003fdd6
mov eax, dword [ebp - 0x20]
cmp word [eax], 0x3a
je 0x1003fdb1
mov eax, 0x80070057
jmp 0x1003fdd6
xor eax, eax
inc eax
lea esi, [ebp - 0x20]
call fcn.1003b536
lea ebx, [ebp - 0x2c]
lea ecx, [ebp - 0x30]
mov eax, esi
call fcn.1003fc95
test eax, eax
jne 0x1003fdd6
cmp dword [ebp - 0x1c], eax
jne 0x1003fdaa
test eax, eax
je 0x1003fdda
mov esi, eax
jmp 0x1003fd5f
mov ebx, dword [ebp + 8]
sub esp, 0x10
mov edi, esp
lea esi, [ebp - 0x30]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
add ebx, 0x240
movsd dword es:[edi], dword [esi]
call fcn.1003ff77
mov byte [ebp - 4], 0
push dword [ebp - 0x20]
call fcn.1004d030
mov ebx, dword [ebp + 8]
jmp 0x1003fe1d
push eax
lea ecx, [ebx + 0xc]
call fcn.1003afba
test eax, eax
jne 0x1003fdd6
mov byte [ebp - 4], al
push dword [ebp - 0x20]
call fcn.1004d030
inc dword [ebp - 0x14]
pop ecx
jmp 0x1003fd2a
xor eax, eax
jmp 0x1003fe35
call fcn.10052265
ret 0x10
Function at 0x100475f5
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
lea eax, [esi + 4]
xor ebx, ebx
cmp dword [eax], ebx
jne 0x10047612
push ebx
push ebx
push eax
call fcn.10046945
add esp, 0xc
cmp eax, ebx
jne 0x1004766e
push edi
lea edi, [esi + 8]
cmp dword [edi], ebx
jne 0x10047629
push ebx
push ebx
push edi
call fcn.10046945
add esp, 0xc
cmp eax, ebx
jne 0x1004766d
lea eax, [esi + 4]
call fcn.100475a7
mov eax, edi
call fcn.100475a7
mov byte [esi + 0x10], bl
cmp dword [esi + 0xc], ebx
je 0x10047644
xor eax, eax
jmp 0x1004766d
lea eax, [ebp - 4]
push eax
push ebx
push esi
push 0x100475c2
push ebx
push ebx
call fcn.1004f23f
add esp, 0x18
mov dword [esi + 0xc], eax
cmp eax, ebx
jne 0x10047640
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jne 0x1004766d
xor eax, eax
inc eax
pop edi
pop ebx
leave
ret
Function at 0x1004965d
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x10049673
xor al, al
pop ebp
ret
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne al
pop ebp
ret

Function at 0x1004af70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
test ebx, ebx
je 0x1004b004
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 8], eax
test eax, eax
je 0x1004b004
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x1004affb
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x1004aff4
push ebx
push dword [ebp - 8]
push eax
call fcn.100545a0
and dword [ebp - 4], 0
add esp, 0xc
lea eax, [ebp - 4]
push eax
push 0
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jne 0x1004afed
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.1004a978
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop esi
pop ebx
leave
ret

Function at 0x1004b8a0
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
movzx ecx, ax
shr eax, 0x10
push edi
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
push dword [esi + 4]
mov dword [ebp - 8], ecx
call dword [sym.imp.USER32.dll_ClientToScreen]
push esi
lea eax, [ebp - 8]
call fcn.1004b9f1
mov edi, eax
test edi, edi
jne 0x1004b8df
push esi
push 0x1004bbe5
call dword [sym.imp.USER32.dll_EnumWindows]
jmp case.default.0x1004b8f4
push dword [esi + 0x2c]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
lea eax, [edi - 1]
cmp eax, 7
ja case.default.0x1004b8f4
jmp dword [eax*4 + 0x1004b984]
push dword [esi + 0x90]
call dword [sym.imp.USER32.dll_SetCursor]
xor eax, eax
cmp edi, 2
setne al
add eax, 0xf001
jmp 0x1004b96d
push dword [esi + 0x94]
call dword [sym.imp.USER32.dll_SetCursor]
dec edi
neg edi
sbb edi, edi
and edi, 3
push 0
add edi, 0xf003
push edi
jmp 0x1004b970
push dword [esi + 0x98]
call dword [sym.imp.USER32.dll_SetCursor]
xor eax, eax
cmp edi, 5
setne al
lea eax, [eax*4 + 0xf004]
jmp 0x1004b96d
push dword [esi + 0x9c]
call dword [sym.imp.USER32.dll_SetCursor]
xor eax, eax
cmp edi, 6
setne al
lea eax, [eax + eax + 0xf005]
push 0
push eax
push 0x112
push dword [esi + 0x2c]
call dword [sym.imp.USER32.dll_SendMessageW]
xor eax, eax
pop edi
leave
ret
Function at 0x1004c19f
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x10092fc4], 0
push esi
jne 0x1004c112
call fcn.1004c038
test eax, eax
je 0x1004c155
mov eax, dword [0x10092fc4]
cmp eax, 1
jne 0x1004c133
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x1004c155
pop esi
ret
push eax
call dword [0x10092fcc]
test eax, eax
jne 0x1004c19d
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x1004c159
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x10092fc4]
call dword [0x10092fcc]
mov edi, eax
test edi, edi
je 0x1004c17e
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x1004c19a
mov edi, esi
add esi, 0xff0
push edi
push dword [0x10092fc4]
call dword [0x10092fc8]
add edi, 0x10
cmp edi, esi
jb 0x1004c186
mov eax, edi
pop edi
pop esi
ret
jmp 0x1004c0ff

Function at 0x1004c55d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1008f210]
jne 0x1004c567
repz ret
jmp fcn.10052297