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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x101935e0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x107d058c], 0
push esi
mov esi, dword [ebp + 0xc]
je 0x10123c5c
push esi
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetTempPathW]
jmp 0x10123c8d
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.kernel32.dll_GetTempPathA]
test eax, eax
je 0x10123c8b
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push esi
push eax
call sym.rt3d.dll_public_virtual:_enum_E3RESULT___stdcall_e3_MODIFIER::Load_class_e3_STREAM___class_e3_CONTEXT__
push esi
call dword [sym.imp.kernel32.dll_lstrlenW]
jmp 0x10123c8d
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.10143940
leave
ret 8

Function at 0x10124390
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x1012439f
pop dword [ebp - 0x20]
mov eax, 0x1012439f
sub dword [ebp - 0x20], eax
mov dword [ebp - 0x30], 0xdf60838b
add dword [ebp - 0x30], 0x6ef1c1c0
mov dword [ebp - 0x2c], 0xf9d3253f
add dword [ebp - 0x2c], 0x38602706
mov dword [ebp - 0x28], 0xe5bcfff6
sub dword [ebp - 0x28], 0x9970bbc8
mov dword [ebp - 0x24], 0xbc425641
sub dword [ebp - 0x24], 0xbc425641
lea eax, [ebp - 0x30]
push eax
mov eax, 0x6ac310d4
add eax, 0xa55201e4
add eax, dword [ebp - 0x20]
call dword [eax]
mov dword [ebp - 0x30], 0xbb683f47
add dword [ebp - 0x30], 0xb90a2a0f
mov dword [ebp - 0x2c], 0x7d73eec0
sub dword [ebp - 0x2c], 0x3c078d4b
mov dword [ebp - 0x28], 0x386bfe2d
sub dword [ebp - 0x28], 0xd4fc91c1
mov dword [ebp - 0x24], 0xb892c208
sub dword [ebp - 0x24], 0xb892c208
lea ebx, [ebp - 0x30]
push ebx
push eax
mov eax, 0x7d2103e8
add eax, 0x92f40eb4
add eax, dword [ebp - 0x20]
call dword [eax]
push 0x40
push 0x1000
push 0x71a30
push 0
call eax
mov ecx, 0x2224d2dc
add ecx, 0xdddb7051
xor ebx, ebx
add ebx, eax
mov edi, 0x8228a09b
sub edi, 0x71aa1e9b
add edi, dword [ebp - 0x20]
mov edx, 0xdf2a23ad
sub dword [ebp - 0x14], ebx
mov esi, dword [edi]
xor dword [ebp - 8], ecx
sub esi, edx
mov dword [ebp - 0x18], 0xf8e4e95c
mov dword [ebx], esi
sub dword [ebp - 0xc], ecx
add ebx, 0x878d5911
add ebx, 0x7872a6f3
add edi, 0x8f787fae
add edi, 0x70878056
loop 0x101244b8
add eax, 0xfd84f8e4
sub eax, 0xfd83f95d
mov ebx, eax
add eax, 5
mov ecx, 0x10000000
add ecx, dword [ebp - 0x20]
call ebx
leave
ret
Function at 0x10132ac0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34c
mov eax, dword [0x101935e0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor edx, edx
push edi
xor ebx, ebx
inc edx
mov edi, dword [esi]
cmp dword [edi + 0x254], ebx
je 0x10132b20
cmp dword [edi + 0x264], ebx
je 0x10132b19
cmp byte [0x107d058c], 0
push edi
push dword [edi + 0x250]
je 0x10132b08
call dword [sym.imp.kernel32.dll_FindNextFileW]
jmp 0x10132b0e
call dword [sym.imp.kernel32.dll_FindNextFileA]
mov ecx, dword [esi]
xor edx, edx
inc edx
mov dword [ecx + 0x264], eax
mov eax, dword [esi]
jmp 0x10132c00
mov eax, dword [edi + 0x25c]
test eax, eax
je 0x10132c8f
push eax
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy]
pop ecx
pop ecx
mov ecx, dword [esi]
cmp dword [ecx + 0x260], ebx
je 0x10132b6e
lea eax, [ebp - 0x234]
push eax
call sym.rt3d.dll_public_virtual:_enum_E3RESULT___stdcall_e3_MODIFIER::Load_class_e3_STREAM___class_e3_CONTEXT__
mov eax, dword [esi]
push dword [eax + 0x260]
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat]
mov ecx, dword [esi]
add esp, 0xc
test byte [ecx + 0x268], 1
push 0x10
pop eax
lea edx, [eax + 0x70]
cmove eax, edx
mov dword [ecx], eax
cmp byte [0x107d058c], 0
je 0x10132b9a
push dword [esi]
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.kernel32.dll_FindFirstFileW]
jmp 0x10132bbc
lea eax, [ebp - 0x34c]
push eax
lea eax, [ebp - 0x234]
push eax
call sym.rt3d.dll_public_virtual:_enum_E3RESULT___stdcall_e3_MODIFIER::Load_class_e3_STREAM___class_e3_CONTEXT__
push dword [esi]
lea eax, [ebp - 0x34c]
push eax
call dword [sym.imp.kernel32.dll_FindFirstFileA]
mov ecx, dword [esi]
mov dword [ecx + 0x250], eax
xor eax, eax
mov ecx, dword [esi]
cmp dword [ecx + 0x250], 0xffffffff
setne al
mov dword [ecx + 0x264], eax
mov eax, dword [esi]
cmp dword [eax + 0x264], ebx
jne 0x10132bea
mov dword [eax + 0x250], ebx
mov eax, dword [esi]
xor edx, edx
inc edx
mov dword [eax + 0x254], edx
mov eax, dword [esi]
cmp dword [eax + 0x264], ebx
jne 0x10132c00
mov dword [esi + 4], edx
mov ecx, eax
cmp dword [eax + 0x264], ebx
je 0x10132c27
cmp byte [0x107d058c], 0
jne 0x10132c27
push dword [eax + 0x258]
add eax, 0x2c
push eax
call sym.rt3d.dll_public_virtual:_enum_E3RESULT___stdcall_e3_MODIFIER::Load_class_e3_STREAM___class_e3_CONTEXT__
mov ecx, dword [esi]
xor edx, edx
inc edx
mov eax, dword [ecx]
mov dword [ecx + 0x26c], eax
mov edi, dword [esi]
mov ebx, dword [edi + 0x26c]
shr ebx, 4
and ebx, edx
je 0x10132c5c
push esi
xor ebx, ebx
call sym.rt3d.dll_public_virtual:_enum_E3RESULT___stdcall_e3_MODIFIER::Load_class_e3_STREAM___class_e3_CONTEXT__
xor edx, edx
inc edx
cmp word [eax], 0x2e
je 0x10132c58
test byte [edi + 0x268], 3
jne 0x10132c66
mov ebx, edx
jmp 0x10132c66
test byte [edi + 0x268], 1
cmovne ebx, edx
mov eax, dword [edi + 0x264]
test eax, eax
je 0x10132c8a
push 0
test ebx, ebx
pop ebx
jne 0x10132ae0
test byte [edi + 0x26c], 2
jne 0x10132ae0
test eax, eax
setne al
jmp 0x10132c91
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10143940
leave
ret 4
Function at 0x40bc63
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push esi
push edi
push 7
xor eax, eax
pop ecx
lea edi, [ebp - 0x34]
mov dword [ebp - 0x38], 0x20
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
push 3
mov ecx, dword [ebp - 0x2c]
pop eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0xc]
mov dword [ebp - 8], ecx
push eax
lea eax, [ebp - 0x18]
push eax
push 2
push 0x4000000
push 0x30363165
mov dword [ebp - 0x14], esi
call fcn.0040c831
add esp, 0x14
push esi
push 0x202
call fcn.0040d6a2
push dword [ebp - 0x2c]
push 0x203
call fcn.0040d6a2
pop edi
pop esi
leave
ret 4

Function at 0x40ca03
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push ebx
push esi
push edi
push 0x46
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x118]
mov dword [ebp - 0x11c], ebx
push 0x412f80
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, dword [ebp + 8]
push 1
pop esi
mov dword [0x412f98], eax
push esi
call fcn.0040b800
cmp eax, ebx
mov dword [0x412fa4], eax
je 0x40ca5a
push 4
call fcn.0040b800
test eax, eax
mov dword [0x412fa8], esi
je 0x40ca60
mov dword [0x412fa8], ebx
cmp dword [0x412fa4], ebx
mov dword [ebp - 0x11c], 0x11c
je 0x40caa2
cmp dword [0x412fa8], ebx
jne 0x40caa2
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40caa2
cmp dword [ebp - 0x114], esi
jae 0x40ca9c
cmp dword [ebp - 0x118], 6
jb 0x40caa2
mov dword [0x412fa0], esi
push 4
call fcn.0040b800
test eax, eax
je 0x40cac2
push 0x1000
call dword [sym.imp.USER32.dll_GetSystemMetrics]
test eax, eax
mov dword [0x412fac], esi
jne 0x40cac8
mov dword [0x412fac], ebx
call dword [sym.imp.KERNEL32.dll_GetACP]
mov dword [0x412fb0], eax
call fcn.0040c9d1
push dword [ebp + 0xc]
call fcn.0040d4cc
push dword [ebp + 0xc]
call fcn.0040e01d
pop edi
pop esi
pop ebx
leave
ret 8

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x403d6a
nop
sub eax, 0x403d10
nop
nop
nop
nop
mov ebx, dword [eax]
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp fcn.00401219
Function at 0x401933
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
mov eax, 0x42683f
call fcn.004256c0
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0x14]
mov byte [esi], bl
mov byte [esi + 1], bl
mov byte [esi + 2], bl
mov byte [esi + 3], bl
mov byte [esi + 4], bl
mov byte [esi + 5], bl
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
call fcn.004032ae
lea ecx, [esi + 0x20]
mov dword [ebp - 4], ebx
call fcn.0040198c
lea ecx, [esi + 0x30]
call fcn.004032ae
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x405386
Capabilities:
Set file attributes

Disassembly:
push edx
push ecx
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
test eax, eax
setne al
ret

Function at 0x405512
Capabilities:
Create directory

Disassembly:
mov eax, 0x426bd0
call fcn.004256c0
sub esp, 0x38
push ebx
push esi
xor ebx, ebx
mov esi, ecx
push ebx
push esi
call dword [sym.imp.kernel32.dll_CreateDirectoryW]
test eax, eax
je 0x405535
mov al, 1
jmp 0x40557b
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0xb7
je 0x405546
xor al, al
jmp 0x40557b
lea ecx, [ebp - 0x44]
call fcn.0040573f
lea ecx, [ebp - 0x1c]
call fcn.004032ae
push ebx
push esi
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], ebx
call fcn.0040598d
test al, al
je 0x405570
mov ebx, dword [ebp - 0x24]
shr ebx, 4
and bl, 1
push dword [ebp - 0x1c]
call fcn.00403a73
pop ecx
mov al, bl
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

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

Disassembly:
push ecx
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40598c
or eax, eax
ret

Function at 0x406d48
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
pushal
call 0x406d57
pop dword [ebp - 4]
mov eax, 0x8952b049
sub eax, 0x891242f2
sub dword [ebp - 4], eax
push 0x40
push 0x1000
push 0x364d6
push 0
mov eax, 0xe239f16a
add eax, 0x1e089ec2
add eax, dword [ebp - 4]
call dword [eax]
mov ecx, 0x3d23
mov ebx, eax
mov esi, 0xd3067a34
sub esi, 0xd2c30c34
add esi, dword [ebp - 4]
mov edx, 0x83ea8091
mov edi, dword [esi]
xor edi, edx
mov dword [ebx], edi
add ebx, 4
add esi, 0xab3ae192
add esi, 0x54c51e72
loop 0x406daa
add eax, 0x45ee6aa2
sub eax, 0x45ed8343
mov ebx, eax
add eax, 5
mov ecx, 0xec59186f
sub ecx, 0xec19186f
add ecx, dword [ebp - 4]
call ebx
leave
ret
Function at 0x40a4c0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x412250], 0
push esi
push edi
jne 0x40a436
call fcn.0040a3a2
test eax, eax
je 0x40a47b
mov eax, dword [0x412250]
cmp eax, 1
jne 0x40a457
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x40a47b
jmp 0x40a4bd
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x40a4bd
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 0x40a47f
xor eax, eax
jmp 0x40a4bd
mov eax, dword [esi]
push dword [0x412250]
call edi
mov edi, eax
test edi, edi
je 0x40a4a1
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x40a4bd
lea edi, [esi + 0xff0]
push esi
push dword [0x412250]
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x40a4a7
mov eax, esi
pop edi
pop esi
ret
jmp 0x40a422

Function at 0x40a788
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x412120]
jne 0x40a792
repz ret
jmp fcn.0040adba

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 0x432005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x432072
nop
nop
nop
mov ebx, 0x40c7d0
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x44940419
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x432060
nop
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4320d2
nop
nop
mov ebx, 0x42f314
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x5fbc6dd1
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4320c0
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219

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 0x10013ee8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x10013ef7
pop dword [ebp - 0x38]
mov eax, 0xc9392637
sub eax, 0xb937e740
sub dword [ebp - 0x38], eax
mov dword [ebp - 0x48], 0xfc1dbae3
add dword [ebp - 0x48], 0x52348a68
mov dword [ebp - 0x44], 0x6435dd7
sub dword [ebp - 0x44], 0xd4101192
mov dword [ebp - 0x40], 0xee13062e
add dword [ebp - 0x40], 0x5e393e00
mov dword [ebp - 0x3c], 0x5341de5b
sub dword [ebp - 0x3c], 0x5341de5b
lea eax, [ebp - 0x48]
push eax
mov eax, 0x2c8bd6b1
add eax, 0xe3743a57
add eax, dword [ebp - 0x38]
call dword [eax]
mov dword [ebp - 0x48], 0x27c6be36
add dword [ebp - 0x48], 0x4cabab20
mov dword [ebp - 0x44], 0x7075ed0c
sub dword [ebp - 0x44], 0x2f098b97
mov dword [ebp - 0x40], 0x5a634a38
add dword [ebp - 0x40], 0x90c2234
mov dword [ebp - 0x3c], 0x76c510e4
sub dword [ebp - 0x3c], 0x76c510e4
lea ebx, [ebp - 0x48]
push ebx
push eax
mov eax, 0x775a8f62
sub eax, 0x675a7e6a
add eax, dword [ebp - 0x38]
call dword [eax]
push 0x40
push 0x1000
push 0x3f3e5
push 0
call eax
mov ecx, 0x5289
mov ebx, eax
mov edx, 0x312a36c4
add edx, 0xded87f3c
add edx, dword [ebp - 0x38]
mov edi, 0x20758487
sub dword [ebp - 4], 0x7fea6a4e
mov esi, dword [edx]
add dword [ebp - 0x14], 0xe655301e
add esi, edi
add dword [ebp - 0x24], 0x1538ccaa
mov dword [ebx], esi
xor dword [ebp - 0x1c], 0xec899049
add ebx, 4
add edx, 0xefbde40a
sub edx, 0xefbde406
loop 0x1001400d
add eax, 0x53a810f9
sub eax, 0x53a6d402
xor ebx, ebx
add ebx, eax
add eax, 0xf2077a82
add eax, 0xdf88583
mov ecx, 0x10000000
add ecx, dword [ebp - 0x38]
call ebx
leave
ret

Function at 0x10023fab
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100037dc]
jne 0x100243f1
ret
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x100289d8], eax
mov dword [0x100289d4], ecx
mov dword [0x100289d0], edx
mov dword [0x100289cc], ebx
mov dword [0x100289c8], esi
mov dword [0x100289c4], edi
mov word [0x100289f0], ss
mov word [0x100289e4], cs
mov word [0x100289c0], ds
mov word [0x100289bc], es
mov word [0x100289b8], fs
mov word [0x100289b4], gs
pushfd
pop dword [0x100289e8]
mov eax, dword [ebp]
mov dword [0x100289dc], eax
mov eax, dword [ebp + 4]
mov dword [0x100289e0], eax
lea eax, [ebp + 8]
mov dword [0x100289ec], eax
mov eax, dword [ebp - 0x320]
mov dword [0x10028928], 0x10001
mov eax, dword [0x100289e0]
mov dword [0x100288dc], eax
mov dword [0x100288d0], 0xc0000409
mov dword [0x100288d4], 1
mov eax, dword [0x100037dc]
mov dword [ebp - 0x328], eax
mov eax, dword [0x10028734]
mov dword [ebp - 0x324], eax
call dword [sym.imp.kernel32.dll_IsDebuggerPresent]
mov dword [0x10028920], eax
push 1
call sub.MSVCR100.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.kernel32.dll_SetUnhandledExceptionFilter]
push 0x100037e4
call dword [sym.imp.kernel32.dll_UnhandledExceptionFilter]
cmp dword [0x10028920], 0
jne 0x100244dd
push 1
call sub.MSVCR100.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
leave
ret
Function at 0x4020a7
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x429040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push str.006:107_4:_00007:277_0:_004:_04:_008:_08:_08:_8:_7:2_3:_9:193_4:_
lea ecx, [ebp - 0x1c]
call fcn.004021b1
push 0xc
call fcn.004067ce
pop ecx
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, eax
call fcn.00401e79
mov eax, dword [eax + 4]
shl eax, 2
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push 0x40
push 0x4ac
push 0x45f000
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
xor eax, eax
push eax
push eax
push eax
push 0x402057
push eax
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ecx
push ecx
call fcn.00401c94
pop ecx
pop ecx
mov edx, 0x45f000
add edx, 0x188
mov esi, section..Shine
push esi
call edx
lea ecx, [ebp - 0x1c]
call fcn.0040223e
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.004067bb
leave
ret

Function at 0x4058ed
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x40590e
jl 0x405905
test edi, edi
jne 0x40590e
xor eax, eax
xor edx, edx
jmp 0x4059cf
cmp dword [ebx + 0x38], 0
je 0x405923
push eax
push edi
push dword [ebp + 8]
call fcn.004059d5
jmp 0x4059cf
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x40596a
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x40596a
cmp eax, edi
jb 0x405944
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.004073a0
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x405970
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x4059c4
mov ecx, ebx
call fcn.004051fe
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x4059af
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0040db73
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x4059c4
jmp 0x405982
test edx, edx
je 0x4059c4
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0040db73
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x406f70
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x406faf
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x406faf
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x406faf
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x406faf
cmp dword [ecx + 0x74], 0xe
jbe 0x406faf
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x40795f
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 8], edx
push 0
mov esi, ecx
inc edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
movzx eax, si
push 0x17
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x4079ee
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x4079ee
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 4]
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x4079ee
mov eax, dword [ebp - 8]
push 0x4037ac
push dword [eax]
call dword [sym.imp.msvcrt.dll_fopen]
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4079ee
push esi
push edi
push dword [ebp - 0xc]
push ebx
call dword [sym.imp.msvcrt.dll_fwrite]
push esi
lea edi, [eax - 1]
neg edi
sbb edi, edi
inc edi
call dword [sym.imp.msvcrt.dll_fclose]
add esp, 0x14
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4079fb
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push 8
mov eax, 0x40fa18
call fcn.0040f49f
mov dword [ebp - 0x14], edx
mov esi, ecx
test esi, esi
je 0x407b0d
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x17
mov edi, eax
push 0x8f
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
je 0x407b0d
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x407b0d
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 0x10]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x407b0d
push esi
push 1
push edi
push eax
call dword [sym.imp.msvcrt.dll_fwrite]
add esp, 0x10
lea ecx, [ebp - 0x10]
call dword [sym.imp.MFC42.dll_CString::CString_1]
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push 0x22
pop ebx
push ebx
push ebx
push 0x4037b0
push eax
call dword [sym.imp.MFC42.dll_CString::Format]
push esi
push dword [ebp - 0x10]
call dword [sym.imp.msvcrt.dll_fputs]
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push 0x4037d4
push eax
call dword [sym.imp.MFC42.dll_CString::Format]
push esi
push dword [ebp - 0x10]
call dword [sym.imp.msvcrt.dll_fputs]
mov edi, dword [ebp - 0x14]
add esp, 0x2c
mov ecx, edi
push 0x2f
push 0x5c
call dword [sym.imp.MFC42.dll_CString::Replace]
push ebx
push dword [edi]
lea eax, [ebp - 0x10]
push ebx
push 0x4037ec
push eax
call dword [sym.imp.MFC42.dll_CString::Format]
push esi
push dword [ebp - 0x10]
call dword [sym.imp.msvcrt.dll_fputs]
lea eax, [ebp - 0x10]
push 0x403810
push eax
call dword [sym.imp.MFC42.dll_CString::Format]
push esi
push dword [ebp - 0x10]
call dword [sym.imp.msvcrt.dll_fputs]
add esp, 0x2c
lea ecx, [ebp - 0x10]
call dword [0x41512c]
call fcn.0040f45b
ret
Function at 0x40854a
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x4123f4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x414a98], 0
push esi
push edi
mov edi, edx
mov esi, ecx
jne 0x4085b8
lea eax, [ebp - 0x108]
push eax
push dword [esi]
push dword [edi]
call dword [sym.imp.SHELL32.dll_FindExecutableA]
cmp eax, 0x20
jbe 0x4085a0
push 3
push dword [esi]
lea eax, [ebp - 0x108]
push dword [edi]
push eax
push 0x403bc0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
jmp 0x4085b8
cmp dword [0x414a98], 0
jne 0x4085b8
push 0
push 0
push 0x403bc8
call dword [sym.imp.MFC42.dll_AfxMessageBox]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0040eb40
leave
ret