joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401fa0
Capabilities:
Contain obfuscated stackstrings
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
mov eax, dword [0x504628]
xor eax, ebp
mov dword [ebp - 4], eax
mov al, 0x65
mov byte [ebp - 0x13], al
mov byte [ebp - 0x10], al
mov al, 0x6c
push ebx
mov byte [ebp - 0xf], al
mov byte [ebp - 0xa], al
mov byte [ebp - 9], al
lea eax, [ebp - 0x34]
mov bl, 0x72
push eax
lea ecx, [ebp - 0x14]
push ecx
mov byte [ebp - 0x14], 0x6b
mov byte [ebp - 0x12], bl
mov byte [ebp - 0x11], 0x6e
mov byte [ebp - 0xe], 0x33
mov byte [ebp - 0xd], 0x32
mov byte [ebp - 0xc], 0x2e
mov byte [ebp - 0xb], 0x64
mov byte [ebp - 8], 0
mov byte [ebp - 0x34], 0x4c
mov byte [ebp - 0x33], 0x6f
mov byte [ebp - 0x32], 0x61
mov byte [ebp - 0x31], 0x64
mov byte [ebp - 0x30], 0x4c
mov byte [ebp - 0x2f], 0x69
mov byte [ebp - 0x2e], 0x62
mov byte [ebp - 0x2d], bl
mov byte [ebp - 0x2c], 0x61
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0x79
mov byte [ebp - 0x29], 0x41
mov byte [ebp - 0x28], 0
call fcn.00472820
lea edx, [ebp - 0x24]
mov dword [0x50e7cc], eax
push edx
lea eax, [ebp - 0x14]
push eax
mov byte [ebp - 0x24], 0x4c
mov byte [ebp - 0x23], 0x6f
mov byte [ebp - 0x22], 0x61
mov byte [ebp - 0x21], 0x64
mov byte [ebp - 0x20], 0x4c
mov byte [ebp - 0x1f], 0x69
mov byte [ebp - 0x1e], 0x62
mov byte [ebp - 0x1d], bl
mov byte [ebp - 0x1c], 0x61
mov byte [ebp - 0x1b], bl
mov byte [ebp - 0x1a], 0x79
mov byte [ebp - 0x19], 0x57
mov byte [ebp - 0x18], 0
call fcn.00472820
lea ecx, [ebp - 0x44]
push ecx
lea edx, [ebp - 0x14]
push edx
mov dword [0x50e7d0], eax
mov byte [ebp - 0x44], 0x4c
mov byte [ebp - 0x43], 0x6f
mov byte [ebp - 0x42], 0x61
mov byte [ebp - 0x41], 0x64
mov byte [ebp - 0x40], 0x4c
mov byte [ebp - 0x3f], 0x69
mov byte [ebp - 0x3e], 0x62
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x61
mov byte [ebp - 0x3b], bl
mov byte [ebp - 0x3a], 0x79
mov byte [ebp - 0x39], 0x45
mov byte [ebp - 0x38], 0x78
mov byte [ebp - 0x37], 0x41
mov byte [ebp - 0x36], 0
call fcn.00472820
mov dword [0x50e7d4], eax
mov byte [ebp - 0x54], 0x4c
mov byte [ebp - 0x53], 0x6f
mov byte [ebp - 0x52], 0x61
mov byte [ebp - 0x51], 0x64
mov byte [ebp - 0x50], 0x4c
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x14]
push ecx
mov byte [ebp - 0x4f], 0x69
mov byte [ebp - 0x4e], 0x62
mov byte [ebp - 0x4d], bl
mov byte [ebp - 0x4c], 0x61
mov byte [ebp - 0x4b], bl
mov byte [ebp - 0x4a], 0x79
mov byte [ebp - 0x49], 0x45
mov byte [ebp - 0x48], 0x78
mov byte [ebp - 0x47], 0x57
mov byte [ebp - 0x46], 0
call fcn.00472820
push 0
push 0
push 0
push 0x401d50
push 0
push 0
mov dword [0x50e7d8], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0045a0a2
mov esp, ebp
pop ebp
ret
Function at 0x403080
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x504628]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x50e7e8], 0
jne 0x403144
cmp byte [0x50e7e9], 0
mov al, 1
mov byte [0x50e7e8], al
jne 0x4030bd
push 0x50e440
mov byte [0x50e7e9], al
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
call fcn.00402740
call fcn.00403160
mov dword [0x50e7e4], eax
mov al, 0x73
mov cl, 0x65
mov byte [ebp - 0x1f], al
mov byte [ebp - 0x14], al
mov byte [ebp - 0x13], al
lea eax, [ebp - 0x20]
mov byte [ebp - 0xf], cl
mov byte [ebp - 0xc], cl
mov byte [ebp - 0x15], cl
mov dl, 0x6f
push eax
lea ecx, [ebp - 0x10]
push ecx
mov byte [ebp - 0x10], 0x6b
mov byte [ebp - 0xe], 0x72
mov byte [ebp - 0xd], 0x6e
mov byte [ebp - 0xb], 0x6c
mov byte [ebp - 0xa], 0x33
mov byte [ebp - 9], 0x32
mov byte [ebp - 8], 0
mov byte [ebp - 0x20], 0x49
mov byte [ebp - 0x1e], 0x57
mov byte [ebp - 0x1d], dl
mov byte [ebp - 0x1c], 0x77
mov byte [ebp - 0x1b], 0x36
mov byte [ebp - 0x1a], 0x34
mov byte [ebp - 0x19], 0x50
mov byte [ebp - 0x18], 0x72
mov byte [ebp - 0x17], dl
mov byte [ebp - 0x16], 0x63
mov byte [ebp - 0x12], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x50e7e0], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045a0a2
mov esp, ebp
pop ebp
ret

Function at 0x403160
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x504628]
xor eax, ebp
mov dword [ebp - 4], eax
mov al, 0x65
mov cl, 0x74
mov byte [ebp - 0xf], al
mov byte [ebp - 0xc], al
mov byte [ebp - 0x23], al
mov byte [ebp - 0x1c], al
mov byte [ebp - 0x17], al
lea eax, [ebp - 0x24]
mov byte [ebp - 0x22], cl
mov byte [ebp - 0x1f], cl
mov byte [ebp - 0x18], cl
mov dl, 0x6e
push eax
lea ecx, [ebp - 0x10]
push ecx
mov byte [ebp - 0x10], 0x6b
mov byte [ebp - 0xe], 0x72
mov byte [ebp - 0xd], dl
mov byte [ebp - 0xb], 0x6c
mov byte [ebp - 0xa], 0x33
mov byte [ebp - 9], 0x32
mov byte [ebp - 8], 0
mov byte [ebp - 0x24], 0x47
mov byte [ebp - 0x21], 0x4e
mov byte [ebp - 0x20], 0x61
mov byte [ebp - 0x1e], 0x69
mov byte [ebp - 0x1d], 0x76
mov byte [ebp - 0x1b], 0x53
mov byte [ebp - 0x1a], 0x79
mov byte [ebp - 0x19], 0x73
mov byte [ebp - 0x16], 0x6d
mov byte [ebp - 0x15], 0x49
mov byte [ebp - 0x14], dl
mov byte [ebp - 0x13], 0x66
mov byte [ebp - 0x12], 0x6f
mov byte [ebp - 0x11], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x403242
xor ecx, ecx
lea edx, [ebp - 0x48]
push edx
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], ecx
call eax
mov eax, dword [ebp - 0x48]
cmp ax, 6
je 0x40322f
cmp ax, 9
jne 0x403242
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045a0a2
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.0045a0a2
mov esp, ebp
pop ebp
ret
Function at 0x403ef0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x504628]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
xor ecx, ecx
push 0x7e
xor eax, eax
push ecx
lea edx, [ebp - 0x8a]
push edx
mov dword [ebp - 0x90], esi
mov word [ebp - 0xc], ax
mov dword [ebp - 0xa], eax
mov word [ebp - 6], ax
mov word [ebp - 0x8c], cx
call fcn.0045f850
add esp, 0xc
test ebx, ebx
je 0x403ffa
test esi, esi
je 0x403ffa
push edi
mov edi, 0x41
mov edi, edi
push 0x40
lea ecx, [ebp - 0x8c]
push ecx
lea edx, [ebp - 0xc]
mov eax, 0x3a
push edx
mov word [ebp - 0xc], di
mov word [ebp - 0xa], ax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x403fa6
lea eax, [ebp - 0x8c]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403f80
sub eax, edx
sar eax, 1
mov esi, eax
push esi
lea eax, [ebp - 0x8c]
push ebx
push eax
call fcn.0045aae0
add esp, 0xc
test eax, eax
je 0x403fc0
inc edi
cmp di, 0x5b
jl 0x403f50
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045a0a2
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x90]
lea ecx, [ebp - 0xc]
push ecx
push 0x104
push edi
call fcn.0045ab86
lea edx, [ebx + esi*2]
push edx
push 0x104
push edi
call fcn.0045abf5
add esp, 0x18
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045a0a2
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
xor al, al
pop ebx
call fcn.0045a0a2
mov esp, ebp
pop ebp
ret
Function at 0x404d40
Capabilities:
Allocate or change rwx memory
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x504628]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x29]
push eax
xor edi, edi
push edi
push 1
push 0x14
call sub.ntdll.dll_RtlAdjustPrivilege
mov cl, 0x69
mov dl, 0x74
mov al, 0x6c
mov byte [ebp - 0x27], cl
mov byte [ebp - 0x1c], cl
mov byte [ebp - 0x18], cl
lea ecx, [ebp - 0x28]
mov byte [ebp - 0xb], dl
mov byte [ebp - 0x1d], dl
mov byte [ebp - 0x14], dl
mov byte [ebp - 9], al
mov byte [ebp - 8], al
mov al, 0x65
push ecx
lea edx, [ebp - 0xc]
push edx
mov byte [ebp - 0xc], 0x6e
mov byte [ebp - 0xa], 0x64
mov byte [ebp - 7], 0
mov byte [ebp - 0x28], 0x4b
mov byte [ebp - 0x26], 0x55
mov byte [ebp - 0x25], 0x73
mov byte [ebp - 0x24], al
mov byte [ebp - 0x23], 0x72
mov byte [ebp - 0x22], 0x45
mov byte [ebp - 0x21], 0x78
mov byte [ebp - 0x20], 0x63
mov byte [ebp - 0x1f], al
mov byte [ebp - 0x1e], 0x70
mov byte [ebp - 0x1b], 0x6f
mov byte [ebp - 0x1a], 0x6e
mov byte [ebp - 0x19], 0x44
mov byte [ebp - 0x17], 0x73
mov byte [ebp - 0x16], 0x70
mov byte [ebp - 0x15], 0x61
mov byte [ebp - 0x13], 0x63
mov byte [ebp - 0x12], 0x68
mov byte [ebp - 0x11], al
mov byte [ebp - 0x10], 0x72
mov byte [ebp - 0xf], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x404e4e
mov al, 0x53
lea esp, [esp]
cmp byte [esi], 0xe8
jne 0x404e0a
cmp byte [esi - 1], al
je 0x404e0d
inc esi
jmp 0x404e00
mov eax, dword [esi + 1]
lea edx, [ebp - 0x30]
push edx
push 0x40
push 0x1000
lea ecx, [esi + eax + 5]
push esi
mov dword [0x50e7f4], ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, 0x404cf0
sub eax, esi
sub eax, 5
mov dword [esi + 1], eax
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045a0a2
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0045a0a2
mov esp, ebp
pop ebp
ret
Function at 0x404e60
Capabilities:
Enumerate threads

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
xor eax, eax
push esi
mov esi, 5
mov dword [ebp - 4], eax
cmp dword [0x50e7f8], eax
jne 0x404e7b
xor esi, esi
cmp dword [0x50e7fc], eax
jne 0x404e88
mov esi, 1
cmp dword [0x50e800], eax
jne 0x404e95
mov esi, 2
cmp dword [0x50e804], eax
jne 0x404efe
mov esi, 3
push ebx
mov ebx, dword [ebp + 8]
push edi
mov dword [esi*4 + 0x50e7f8], ebx
mov dword [esi*4 + 0x50e808], 0x405330
mov dword [esi*4 + 0x50e818], eax
cmp ecx, eax
je 0x404f0a
push ecx
push eax
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x404fc3
push ebx
mov ecx, esi
call fcn.00404c40
add esp, 4
push edi
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
cmp esi, 4
jl 0x404ea2
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push eax
push 4
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
xor eax, eax
mov dword [ebp - 8], edi
cmp edi, 0xffffffff
je 0x404fcd
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x24]
push eax
push edi
mov dword [ebp - 0x24], 0x1c
call sub.KERNEL32.dll_Thread32First
mov ebx, eax
test ebx, ebx
je 0x404fc3
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x18], eax
jne 0x404fae
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [ebp - 0x1c]
cmp ecx, eax
je 0x404fae
push ecx
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x404fbc
mov ecx, dword [ebp + 8]
push ecx
mov ecx, esi
call fcn.00404c40
add esp, 4
push edi
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 8]
lea edx, [ebp - 0x24]
push edx
push edi
call sub.KERNEL32.dll_Thread32Next
mov ebx, eax
jmp 0x404fbf
mov edi, dword [ebp - 8]
test ebx, ebx
jne 0x404f63
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x405190
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x405221
mov eax, method.CGdiObject.virtual_8
test eax, eax
je 0x405221
lea ecx, [ebp + 8]
push ecx
mov eax, ebx
call fcn.00406ee0
add esp, 4
test eax, eax
je 0x405221
push esi
push edi
mov edi, dword [ebp + 8]
push 0x40
push 0x1000
lea edx, [edi + 0xe]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
mov dword [esi], edi
push edi
add esi, 4
lea eax, [esi + 5]
push ebx
push eax
mov dword [ebp + 8], eax
call fcn.00461c00
mov edx, dword [ebp + 8]
mov eax, method.CGdiObject.virtual_8
sub eax, esi
mov ecx, ebx
sub ecx, esi
mov byte [esi], 0xe9
sub eax, 5
mov dword [esi + 1], eax
sub ecx, 0xa
mov byte [esi + edi + 5], 0xe9
mov dword [esi + edi + 6], ecx
mov ecx, dword [ebp + 0xc]
push ebx
mov dword [0x50e7dc], edx
call fcn.00404e60
add esp, 0x10
pop edi
pop esi
pop ebx
pop ebp
ret
xor eax, eax
pop ebx
pop ebp
ret

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

Disassembly:
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x405376
test al, 0x10
je 0x405376
mov eax, 1
ret
xor eax, eax
ret

Function at 0x405380
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x405393
xor eax, eax
mov word [ebx], ax
push esi
mov byte [ebp - 1], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4053ab
test al, 0x10
jne 0x405461
mov eax, esi
push edi
xor edi, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4053b3
sub eax, edx
sar eax, 1
je 0x40543a
movzx eax, word [esi + edi*2]
cmp ax, 0x5c
je 0x4053d4
cmp ax, 0x2f
jne 0x405421
xor ecx, ecx
push esi
movzx ebx, ax
mov word [esi + edi*2], cx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4053ed
test al, 0x10
jne 0x40541a
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40541a
mov eax, dword [ebp + 8]
test eax, eax
je 0x40541a
cmp byte [ebp - 1], 0
jne 0x40541a
push esi
push 0x104
push eax
call fcn.0045ab86
add esp, 0xc
mov byte [ebp - 1], 1
mov word [esi + edi*2], bx
mov ebx, dword [ebp + 8]
mov eax, esi
inc edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405427
sub eax, edx
sar eax, 1
cmp edi, eax
jb 0x4053c4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop edi
test eax, eax
je 0x405461
test ebx, ebx
je 0x405461
cmp byte [ebp - 1], 0
jne 0x405461
push esi
push 0x104
push ebx
call fcn.0045ab86
add esp, 0xc
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4058c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov al, cl
ret

Function at 0x4058e0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ca506
mov eax, dword fs:[0]
push eax
sub esp, 0x274
mov eax, dword [0x504628]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x278], eax
mov bl, 0x25
mov al, 0x2a
mov byte [ebp - 0x268], bl
mov dl, 0x73
mov byte [ebp - 0x266], al
mov byte [ebp - 0x1c], bl
mov byte [ebp - 0x19], al
mov bl, 0x5c
mov eax, ecx
mov dword [ebp - 0x270], 0
mov byte [ebp - 0x267], dl
mov byte [ebp - 0x265], 0
mov byte [ebp - 0x1b], dl
mov byte [ebp - 0x1a], bl
mov byte [ebp - 0x18], 0
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x405956
sub eax, esi
push ecx
cmp byte [eax + ecx - 1], bl
jne 0x40597b
lea ecx, [ebp - 0x268]
push ecx
push 0x103
lea edx, [ebp - 0x124]
push edx
jmp 0x40598b
lea eax, [ebp - 0x1c]
push eax
push 0x103
lea ecx, [ebp - 0x124]
push ecx
call fcn.0045b60d
xor esi, esi
add esp, 0x10
cmp eax, esi
jl 0x4059a0
cmp eax, 0x103
jne 0x4059a4
mov byte [ebp - 0x21], 0
lea edx, [ebp - 0x264]
push edx
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x26c], eax
cmp eax, 0xffffffff
je 0x405ac8
mov bl, 1
test byte [ebp - 0x264], 0x10
jne 0x405a9f
test bl, bl
je 0x405a00
lea eax, [ebp - 0x238]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4059e3
lea ecx, [ebp - 0x238]
push ecx
sub eax, edx
push edi
call fcn.004060e0
xor bl, bl
jmp 0x405a85
lea edx, [ebp - 0x274]
push edx
call fcn.00405c10
lea ecx, [ebp - 0x238]
push ecx
push eax
lea edx, [ebp - 0x27c]
push edx
mov dword [ebp - 4], esi
call fcn.00405cd0
add esp, 0xc
mov byte [ebp - 4], 1
mov ecx, dword [eax]
mov eax, dword [ecx - 0xc]
push ecx
push edi
call fcn.004060e0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x27c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405a5c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x274]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405a85
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x270]
mov ecx, dword [ebp - 0x278]
inc eax
cmp eax, 0xa
mov dword [ebp - 0x270], eax
mov dword [ecx], eax
jge 0x405abb
mov eax, dword [ebp - 0x26c]
lea edx, [ebp - 0x264]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4059c9
mov ecx, dword [ebp - 0x26c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0045a0a2
mov esp, ebp
pop ebp
ret
Function at 0x4064a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4064bb
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4064f4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x4064f0
jmp 0x4064e0
cmp esi, eax
jae 0x4064f4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4064e0
cmp esi, eax
jb 0x4064fb
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x406ea0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [ebp - 4]
push eax
push 0x40
push esi
push edi
call ebx
test eax, eax
jne 0x406ebe
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
push esi
push ecx
push edi
call fcn.00461c00
mov eax, dword [ebp - 4]
add esp, 0xc
lea edx, [ebp - 4]
push edx
push eax
push esi
push edi
call ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x406f40
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x407018
cmp dword [ebp + 0xc], 0
je 0x407018
lea ecx, [ebp - 4]
push ecx
call fcn.00406ee0
add esp, 4
test eax, eax
je 0x407018
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push esi
push edi
mov edi, dword [ebp - 4]
push 0x40
push 0x1000
lea edx, [edi + 0xe]
push edx
push 0
call ebx
mov ecx, dword [ebp + 8]
mov esi, eax
mov dword [esi], edi
push edi
add esi, 4
lea eax, [esi + 5]
push ecx
push eax
mov dword [ebp - 4], eax
call fcn.00461c00
add esp, 0xc
push 0x40
push 0x1000
push edi
push 0
call ebx
push edi
mov ebx, eax
push 0x90
push ebx
call fcn.0045f850
mov eax, dword [ebp + 0xc]
sub eax, esi
sub eax, 5
mov dword [esi + 1], eax
mov eax, dword [ebp + 8]
mov byte [esi], 0xe9
mov byte [esi + edi + 5], 0xe9
mov edx, eax
sub edx, esi
sub edx, 0xa
mov dword [esi + edi + 6], edx
sub esi, eax
sub esi, 5
mov dword [ebx + 1], esi
mov esi, edi
push ebx
mov edi, eax
mov byte [ebx], 0xe9
call fcn.00406ea0
add esp, 0x10
push 0x8000
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, dword [ebp - 4]
pop edi
pop esi
mov dword [0x50e7c8], eax
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x423450
Capabilities:
Read file on windows
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x5c
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
push eax
push esi
mov dword [edi], 0
call fcn.004233e0
mov ebx, eax
test ebx, ebx
jne 0x423483
mov dword [edi], 6
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebx + 0x20]
mov edx, dword [esi + 0x78]
push 0
push ecx
push edx
call fcn.0045cedd
mov eax, dword [esi + 0x78]
mov ecx, dword [ebx + 0x28]
mov edx, dword [0x50eaa8]
push eax
push 1
push ecx
push edx
call fcn.0045d40d
mov ecx, dword [0x50eaac]
push 0
lea eax, [esp + 0x2c]
push eax
mov eax, dword [0x50eaa8]
mov dword [esp + 0x30], 0
mov edx, dword [ebx + 0x28]
push ecx
push edx
push eax
call fcn.004c8e60
add esp, 0x30
test eax, eax
jne 0x4235da
mov ecx, dword [esp + 0xc]
cmp ecx, dword [ebx + 0x24]
jne 0x4235da
mov eax, dword [0x50eaac]
movzx esi, word [eax]
movzx edi, word [eax + 2]
xor eax, eax
push 0x2c
push eax
lea edx, [esp + 0x44]
push edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
call fcn.0045f850
add esp, 0xc
push 0
push 0
lea edx, [esp + 0x18]
push edx
mov eax, 0x18
mov word [esp + 0x2e], ax
push 0
mov ecx, 1
lea eax, [esp + 0x4c]
mov word [esp + 0x30], cx
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], edi
push eax
mov ecx, 0xa
lea esi, [esp + 0x28]
lea edi, [esp + 0x50]
mov dword [esp + 0x28], 0x28
mov dword [esp + 0x38], 0
push 0
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x28], 0
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov esi, eax
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4235a2
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebx + 0x24]
mov edx, dword [0x50eaac]
sub ecx, 4
add edx, 4
push eax
call fcn.00433500
mov edi, dword [ebp + 8]
add esp, 4
mov ecx, edi
call fcn.00451f07
push esi
mov ecx, edi
call fcn.00451edb
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [edi], 7
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8