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

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x6e0]
cmp eax, 1
jne 0x45a590
mov eax, dword [esi + 0x6e4]
xor edi, edi
cmp eax, edi
jne 0x45a54c
mov dword [esi + 0x708], 3
pop edi
pop esi
xor eax, eax
pop ebx
ret
cmp dword [esi + 0x6ec], edi
je 0x45a562
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x18]
mov ecx, esi
call fcn.0045a690
mov ecx, dword [esi + 0x6e4]
push pe_nt_image_headers32
push ecx
call dword [sym.imp.kernel32.dll__lopen]
cmp eax, 0xffffffff
mov dword [esi + 0x6ec], eax
jne 0x45a63c
mov dword [esi + 0x708], 3
pop edi
pop esi
xor eax, eax
pop ebx
ret
cmp eax, 3
jne 0x45a59c
xor edi, edi
jmp 0x45a630
cmp eax, 4
jne 0x45a64b
mov edx, dword [esi + 0x6f4]
mov eax, dword [esi + 0x6f0]
push 0xa
push edx
push eax
call dword [sym.imp.kernel32.dll_FindResourceA]
mov ebx, eax
xor edi, edi
cmp ebx, edi
jne 0x45a5d3
mov dword [esi + 0x708], 3
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov ecx, dword [esi + 0x6f0]
push ebx
push ecx
call dword [sym.imp.kernel32.dll_LoadResource]
cmp eax, edi
mov dword [esi + 0x6f8], eax
jne 0x45a5fb
mov dword [esi + 0x708], 3
pop edi
pop esi
xor eax, eax
pop ebx
ret
push eax
call dword [sym.imp.kernel32.dll_LockResource_1]
cmp eax, edi
mov dword [esi + 0x6e8], eax
jne 0x45a61c
mov dword [esi + 0x708], 3
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov edx, dword [esi + 0x6f0]
push ebx
push edx
call dword [sym.imp.kernel32.dll_SizeofResource]
mov dword [esi + 0x700], eax
mov dword [esi + 0x6fc], edi
mov dword [esi + 0x704], edi
mov dword [esi + 0x708], edi
pop edi
pop esi
mov eax, 1
pop ebx
ret
cmp eax, 2
jne 0x45a67c
mov eax, dword [esi + 0x6fc]
mov ecx, dword [esi + 0x6ec]
xor edi, edi
push edi
push eax
push ecx
call dword [sym.imp.kernel32.dll__llseek]
cmp eax, 0xffffffff
jne 0x45a636
mov dword [esi + 0x708], 6
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov dword [esi + 0x708], 1
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x45e0e0
Capabilities:
Create thread
Resume thread

Disassembly:
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0x710]
test eax, eax
jne 0x45e154
mov eax, dword [esi + 0x70c]
mov dword [esi + 0x710], 1
push eax
mov dword [esi + 0x714], 0
call dword [sym.imp.kernel32.dll_ResetEvent]
mov ecx, dword [esi + 0x708]
push ecx
call dword [sym.imp.kernel32.dll_SetEvent]
lea edx, [esp + 4]
push edx
push 4
push esi
push 0x45e160
push 0
push 0
call fcn.004c8b54
mov ecx, dword [esp + 0x24]
add esp, 0x18
mov dword [esi + 0x704], eax
push ecx
push eax
call dword [sym.imp.kernel32.dll_SetThreadPriority]
mov edx, dword [esi + 0x704]
push edx
call dword [sym.imp.kernel32.dll_ResumeThread]
pop esi
pop ecx
ret 4
Function at 0x462290
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
push 0xa
push eax
push ebp
call dword [sym.imp.kernel32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4622b1
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
push ebp
call dword [sym.imp.kernel32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x4622c4
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.kernel32.dll_LockResource_1]
mov ebx, eax
test ebx, ebx
jne 0x4622d6
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
push ebp
call dword [sym.imp.kernel32.dll_SizeofResource]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x28]
push edx
mov edx, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x28]
push edx
push ecx
push eax
push ebx
push eax
push 0
push 0
push 0
call fcn.00461c10
add esp, 0x2c
mov edi, eax
push esi
call dword [sym.imp.kernel32.dll_FreeResource]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret

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

Disassembly:
push 0xffffffffffffffff
push 0x4d7bde
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], 0x4d8bfc
xor edi, edi
push 0x80
mov dword [esp + 0x1c], edi
mov dword [esi + 0xc], 0x4d8d20
call fcn.004c7e90
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], 0x1f
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], pe_nt_image_headers32
mov ebx, 1
push 0x80
mov byte [esp + 0x20], bl
mov dword [esi + 0x28], 0x4d8d1c
call fcn.004c7e90
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], 0x1f
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], pe_nt_image_headers32
push 0x80
mov byte [esp + 0x24], 2
mov dword [esi + 0x44], 0x4d86f4
call fcn.004c7e90
mov ecx, dword [esp + 0x1c]
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], 0x1f
mov dword [esi + 0x54], edi
mov dword [esi + 0x58], pe_nt_image_headers32
mov dword [esi], 0x4d8d18
mov dword [esi + 0x1c], ebx
add esp, 0xc
mov dword [esi + 0x38], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x60], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x477960
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x14], 0xca
jne 0x477990
push esi
call fcn.004824d0
mov al, byte [esi + 0x40]
add esp, 4
test al, al
je 0x477989
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x477a0a
mov eax, dword [esi + 0x190]
mov cl, byte [eax + 0x10]
test cl, cl
je 0x4779ff
mov eax, dword [esi + 8]
test eax, eax
je 0x4779b4
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x190]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x4779fb
cmp eax, 2
je 0x4779ff
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4779a7
cmp eax, 3
je 0x4779da
cmp eax, 1
jne 0x4779a7
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x4779a7
mov edx, dword [esi + 0x11c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4779a7
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
mov dword [esi + 0x84], eax
jmp 0x477a2a
cmp eax, 0xcc
je 0x477a2a
mov ecx, dword [esi]
push esi
mov dword [ecx + 0x14], 0x14
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
call dword [ecx]
add esp, 4
cmp dword [esi + 0x14], 0xcc
je 0x477a4d
mov edx, dword [esi + 0x180]
push esi
call dword [edx]
add esp, 4
mov dword [esi + 0x78], 0
mov dword [esi + 0x14], 0xcc
mov eax, dword [esi + 0x180]
mov cl, byte [eax + 8]
test cl, cl
je 0x477a78
mov ecx, dword [esi]
push esi
mov dword [ecx + 0x14], 0x30
mov edx, dword [esi]
call dword [edx]
mov eax, dword [esi + 0x180]
add esp, 4
mov cl, byte [eax + 8]
test cl, cl
jne 0x477a5a
mov dl, byte [esi + 0x41]
xor ecx, ecx
test dl, dl
setne cl
add ecx, 0xcd
mov al, 1
mov dword [esi + 0x14], ecx
pop esi
ret

Function at 0x477bf0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x14]
cmp eax, 0xcf
je 0x477c1f
cmp eax, 0xcc
je 0x477c1f
mov eax, dword [esi]
push esi
mov dword [eax + 0x14], 0x14
mov ecx, dword [esi]
mov edx, dword [esi + 0x14]
mov dword [ecx + 0x18], edx
mov eax, dword [esi]
call dword [eax]
add esp, 4
mov eax, dword [esp + 0xc]
test eax, eax
jg 0x477c2c
mov eax, 1
mov ecx, dword [esi + 0x190]
mov dl, byte [ecx + 0x11]
test dl, dl
je 0x477c42
mov ecx, dword [esi + 0x7c]
cmp eax, ecx
jle 0x477c42
mov eax, ecx
mov dword [esi + 0x84], eax
mov eax, dword [esi + 0x14]
cmp eax, 0xcc
je 0x477c6c
mov edx, dword [esi + 0x180]
push esi
call dword [edx]
add esp, 4
mov dword [esi + 0x78], 0
mov dword [esi + 0x14], 0xcc
mov eax, dword [esi + 0x180]
mov cl, byte [eax + 8]
test cl, cl
je 0x477c97
mov ecx, dword [esi]
push esi
mov dword [ecx + 0x14], 0x30
mov edx, dword [esi]
call dword [edx]
mov eax, dword [esi + 0x180]
add esp, 4
mov cl, byte [eax + 8]
test cl, cl
jne 0x477c79
mov dl, byte [esi + 0x41]
xor ecx, ecx
test dl, dl
setne cl
add ecx, 0xcd
mov al, 1
mov dword [esi + 0x14], ecx
pop esi
ret
Function at 0x478c50
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 0xc]
cmp ecx, 0xc
jb 0x478d0a
mov eax, dword [esp + 8]
cmp byte [eax], 0x41
jne 0x478d0a
cmp byte [eax + 1], 0x64
jne 0x478d0a
cmp byte [eax + 2], 0x6f
jne 0x478d0a
cmp byte [eax + 3], 0x62
jne 0x478d0a
cmp byte [eax + 4], 0x65
jne 0x478d0a
push ebx
xor ecx, ecx
mov cl, byte [eax + 7]
push ebp
push esi
push edi
mov edi, ecx
xor edx, edx
mov dl, byte [eax + 8]
xor ecx, ecx
mov cl, byte [eax + 9]
mov esi, dword [esp + 0x14]
shl edi, 8
add edi, edx
mov ebp, ecx
xor edx, edx
xor ecx, ecx
mov dl, byte [eax + 0xa]
mov cl, byte [eax + 0xb]
shl ebp, 8
add ebp, edx
xor edx, edx
mov dl, byte [eax + 5]
xor ebx, ebx
mov bl, byte [eax + 6]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esi]
mov dword [ecx + 0x1c], edi
shl edx, 8
add ecx, 0x18
add edx, ebx
mov ebx, dword [esp + 0x1c]
push 1
mov dword [ecx], edx
mov dword [ecx + 8], ebp
mov dword [ecx + 0xc], ebx
mov eax, dword [esi]
push esi
mov dword [eax + 0x14], 0x4c
mov ecx, dword [esi]
call dword [ecx + 4]
add esp, 8
mov byte [esi + 0x108], 1
mov byte [esi + 0x109], bl
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, dword [esp + 4]
push 1
push eax
mov edx, dword [eax]
mov dword [edx + 0x14], 0x4e
mov edx, dword [esp + 0x18]
add ecx, edx
mov edx, dword [eax]
mov dword [edx + 0x18], ecx
mov ecx, dword [eax]
call dword [ecx + 4]
add esp, 8
ret
Function at 0x4c29d0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x4c29db
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x4c2ade
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x4e75a8]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x4e75a8]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x4e75a8]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x4e75a8]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x4e75a8]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x4e75a8]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x4e75a8]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x4e75a8]
xor eax, edx
inc ecx
dec edi
jne 0x4c29f6
pop edi
test esi, esi
je 0x4c2b00
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x4e75a8]
xor eax, edx
inc ecx
dec esi
jne 0x4c2ae2
pop esi
pop ebx
not eax
ret
Function at 0x4c818e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4c81ae
call dword [sym.imp.kernel32.dll_GetLastError]
push eax
call fcn.004ca7f8
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x4c81d1
test byte [esp + 8], 2
je 0x4c81d1
call fcn.004ca86b
mov dword [eax], 0xd
call fcn.004ca874
mov dword [eax], 5
jmp 0x4c81aa
xor eax, eax
ret

Function at 0x4d0079
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4fad50
cmp edx, dword [eax]
je 0x4d009b
add eax, 8
inc ecx
cmp eax, 0x4fade0
jl 0x4d008c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4fad50]
jne 0x4d01c9
mov eax, dword [0x50e9bc]
cmp eax, 1
je 0x4d01a3
test eax, eax
jne 0x4d00cc
cmp dword [0x4f8414], 1
je 0x4d01a3
cmp edx, 0xfc
je 0x4d01c9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4d0103
lea eax, [ebp - 0x1a4]
push 0x4e8bd8
push eax
call fcn.004cdfa0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004cb1d0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4d0146
lea eax, [ebp - 0x1a4]
push eax
call fcn.004cb1d0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4ee5f4
push edi
call fcn.004ca5e0
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x4e8bbc
push eax
call fcn.004cdfa0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004cdfb0
lea eax, [ebp - 0xa0]
push 0x4e8bb8
push eax
call fcn.004cdfb0
push dword [esi + 0x4fad54]
lea eax, [ebp - 0xa0]
push eax
call fcn.004cdfb0
push 0x12010
lea eax, [ebp - 0xa0]
push 0x4e8b90
push eax
call fcn.004d32c8
add esp, 0x2c
pop edi
jmp 0x4d01c9
lea eax, [ebp + 8]
lea esi, [esi + 0x4fad54]
push 0
push eax
push dword [esi]
call fcn.004cb1d0
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 0x41d0e0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x14000]
push edi
jmp 0x41d0fa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x41d101
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x41d0f0
mov eax, 1
add ebx, ebx
jne 0x41d113
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x41d108
jne 0x41d124
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41d108
xor ecx, ecx
sub eax, 3
jb 0x41d138
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41d1aa
mov ebp, eax
add ebx, ebx
jne 0x41d143
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x41d150
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41d174
inc ecx
add ebx, ebx
jne 0x41d160
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41d155
jne 0x41d171
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41d155
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41d194
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41d185
jmp 0x41d0f6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41d194
add edi, ecx
jmp 0x41d0f6
pop esi
mov edi, esi
mov ecx, 0x4cc
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41d1b2
cmp byte [edi], 0xb
jne 0x41d1b2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x41d1b7
lea edi, [esi + 0x1b000]
mov eax, dword [edi]
or eax, eax
je 0x41d226
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x247b4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x247f0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41d1e4
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x247f8]
or eax, eax
je 0x41d220
mov dword [ebx], eax
add ebx, 4
jmp 0x41d201
call dword [esi + 0x247f4]
mov ebp, dword [esi + 0x247fc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x41d25a
sub esp, 0xffffff80
jmp 0x40153c
Function at 0x40762a
Capabilities:
Get disk information

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
push ebp
push esi
push edi
push eax
xor ebp, ebp
call fcn.0040780a
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
jne 0x407652
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
mov dword [ecx], eax
pop ebx
pop ecx
ret
mov ebx, dword [esp + 0x20]
mov edx, dword [ebx]
lea eax, [edx*4 + 4]
push eax
call fcn.00408406
mov esi, dword [esp + 0x20]
mov edi, eax
add esp, 4
test edi, edi
mov dword [esi], edi
jne 0x40767c
pop edi
pop esi
mov dword [ebx], eax
pop ebp
pop ebx
pop ecx
ret
mov ecx, dword [ebx]
xor eax, eax
push 0x8000
lea ecx, [ecx*4 + 4]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
call fcn.00408406
add esp, 4
mov ebx, eax
mov ecx, 0x2000
xor eax, eax
mov edi, ebx
push 0x8000
push ebx
push eax
rep stosd dword es:[edi], eax
mov dword [esp + 0x24], ebx
call dword [sym.imp.kernel32.dll_QueryDosDeviceA]
test eax, eax
jne 0x4076df
mov eax, dword [esp + 0x20]
push ebx
mov dword [eax], 0
call fcn.00408778
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x18]
lea ecx, [eax + 0x8000]
cmp eax, ecx
jae 0x4077e5
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4077e1
mov edx, dword [esp + 0x10]
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push ebx
push edx
call fcn.0040e291
add esp, 0xc
test eax, eax
jne 0x4077c0
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
add ecx, 8
push ecx
call fcn.00408406
mov ecx, dword [esi]
mov edi, ebx
add esp, 4
mov dword [ecx + ebp*4], eax
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esi]
repne scasb al, byte es:[edi]
mov edi, dword [edx + ebp*4]
not ecx
add ecx, 3
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esi]
mov edi, ebx
not ecx
mov edx, dword [eax + ebp*4]
add ecx, 3
mov dword [edx], ecx
mov eax, dword [esi]
mov edx, dword [str.._]
mov ecx, dword [eax + ebp*4]
add ecx, 4
mov dword [ecx], edx
mov al, byte [0x41d298]
mov byte [ecx + 4], al
mov ecx, dword [esi]
xor eax, eax
mov edx, dword [ecx + ebp*4]
or ecx, 0xffffffff
add edx, 4
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
inc ebp
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x1c]
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x18]
not ecx
dec ecx
add eax, 0x8000
lea ebx, [ebx + ecx + 1]
cmp ebx, eax
jb 0x4076f1
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
push eax
mov dword [ecx], ebp
call fcn.00408778
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x4098eb
Capabilities:
Check os version
Query environment variable

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x122c
call fcn.00408a5b
lea eax, [ebp - 0x98]
push ebx
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.kernel32.dll_GetVersionExA]
test eax, eax
je 0x40992e
cmp dword [ebp - 0x88], 2
jne 0x40992e
cmp dword [ebp - 0x94], 5
jb 0x40992e
push 1
pop eax
jmp 0x409a30
lea eax, [ebp - 0x122c]
push 0x1090
push eax
push 0x40e88f
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x409a1d
xor ebx, ebx
lea ecx, [ebp - 0x122c]
cmp byte [ebp - 0x122c], bl
je 0x409970
mov al, byte [ecx]
cmp al, 0x61
jl 0x40996b
cmp al, 0x7a
jg 0x40996b
sub al, 0x20
mov byte [ecx], al
inc ecx
cmp byte [ecx], bl
jne 0x40995d
lea eax, [ebp - 0x122c]
push 0x16
push eax
push 0x40e877
call fcn.0040886b
add esp, 0xc
test eax, eax
jne 0x409992
lea eax, [ebp - 0x122c]
jmp 0x4099db
lea eax, [ebp - 0x19c]
push 0x104
push eax
push ebx
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
cmp byte [ebp - 0x19c], bl
lea ecx, [ebp - 0x19c]
je 0x4099c6
mov al, byte [ecx]
cmp al, 0x61
jl 0x4099c1
cmp al, 0x7a
jg 0x4099c1
sub al, 0x20
mov byte [ecx], al
inc ecx
cmp byte [ecx], bl
jne 0x4099b3
lea eax, [ebp - 0x19c]
push eax
lea eax, [ebp - 0x122c]
push eax
call fcn.0040cad2
pop ecx
pop ecx
cmp eax, ebx
je 0x409a1d
push 0x2c
push eax
call fcn.0040855f
pop ecx
cmp eax, ebx
pop ecx
je 0x409a1d
inc eax
mov ecx, eax
cmp byte [eax], bl
je 0x409a02
cmp byte [ecx], 0x3b
jne 0x4099fd
mov byte [ecx], bl
jmp 0x4099fe
inc ecx
cmp byte [ecx], bl
jne 0x4099f4
push 0xa
push ebx
push eax
call fcn.0040c8ac
add esp, 0xc
cmp eax, 2
je 0x409a30
cmp eax, 3
je 0x409a30
cmp eax, 1
je 0x409a30
lea eax, [ebp - 4]
push eax
call fcn.004098be
cmp byte [ebp - 4], 6
pop ecx
sbb eax, eax
add eax, 3
pop ebx
leave
ret
Function at 0x40b61c
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
mov eax, dword [0x42027c]
push ebx
push ebp
mov ebp, dword [sym.imp.kernel32.dll_GetEnvironmentStringsW]
push esi
push edi
xor ebx, ebx
xor esi, esi
xor edi, edi
cmp eax, ebx
jne 0x40b66a
call ebp
mov esi, eax
cmp esi, ebx
je 0x40b64b
mov dword [0x42027c], 1
jmp 0x40b673
call dword [sym.imp.kernel32.dll_GetEnvironmentStringsA]
mov edi, eax
cmp edi, ebx
je 0x40b745
mov dword [0x42027c], 2
jmp 0x40b6f9
cmp eax, 1
jne 0x40b6f4
cmp esi, ebx
jne 0x40b683
call ebp
mov esi, eax
cmp esi, ebx
je 0x40b745
cmp word [esi], bx
mov eax, esi
je 0x40b698
inc eax
inc eax
cmp word [eax], bx
jne 0x40b68a
inc eax
inc eax
cmp word [eax], bx
jne 0x40b68a
sub eax, esi
mov edi, dword [sym.imp.kernel32.dll_WideCharToMultiByte]
sar eax, 1
push ebx
push ebx
inc eax
push ebx
push ebx
push eax
push esi
push ebx
push ebx
mov dword [esp + 0x34], eax
call edi
mov ebp, eax
cmp ebp, ebx
je 0x40b6e9
push ebp
call fcn.00408406
cmp eax, ebx
pop ecx
mov dword [esp + 0x10], eax
je 0x40b6e9
push ebx
push ebx
push ebp
push eax
push dword [esp + 0x24]
push esi
push ebx
push ebx
call edi
test eax, eax
jne 0x40b6e5
push dword [esp + 0x10]
call fcn.00408778
pop ecx
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x10]
push esi
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
mov eax, ebx
jmp 0x40b747
cmp eax, 2
jne 0x40b745
cmp edi, ebx
jne 0x40b709
call dword [sym.imp.kernel32.dll_GetEnvironmentStringsA]
mov edi, eax
cmp edi, ebx
je 0x40b745
cmp byte [edi], bl
mov eax, edi
je 0x40b719
inc eax
cmp byte [eax], bl
jne 0x40b70f
inc eax
cmp byte [eax], bl
jne 0x40b70f
sub eax, edi
inc eax
mov ebp, eax
push ebp
call fcn.00408406
mov esi, eax
pop ecx
cmp esi, ebx
jne 0x40b72f
xor esi, esi
jmp 0x40b73a
push ebp
push edi
push esi
call fcn.0040cfa3
add esp, 0xc
push edi
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsA]
mov eax, esi
jmp 0x40b747
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x40b78d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x41f8d8
cmp edx, dword [eax]
je 0x40b7af
add eax, 8
inc ecx
cmp eax, 0x41f968
jb 0x40b7a0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x41f8d8]
jne 0x40b8dd
mov eax, dword [0x41ffd0]
cmp eax, 1
je 0x40b8b7
test eax, eax
jne 0x40b7e0
cmp dword [0x41ffd4], 1
je 0x40b8b7
cmp edx, 0xfc
je 0x40b8dd
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40b817
lea eax, [ebp - 0x1a4]
push 0x40eb7f
push eax
call fcn.0040ba6f
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040982a
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40b85a
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040982a
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40eb7b
push edi
call fcn.0040b96f
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x40eb5f
push eax
call fcn.0040ba6f
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040ba7b
lea eax, [ebp - 0xa0]
push 0x40eb5b
push eax
call fcn.0040ba7b
push dword [esi + 0x41f8dc]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040ba7b
push 0x12010
lea eax, [ebp - 0xa0]
push 0x40eb33
push eax
call fcn.0040d2d8
add esp, 0x2c
pop edi
jmp 0x40b8dd
lea eax, [ebp + 8]
lea esi, [esi + 0x41f8dc]
push 0
push eax
push dword [esi]
call fcn.0040982a
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