joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49e208
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x1020
call fcn.004c14c0
mov eax, dword [0x4f01c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.004b18c1
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x49e24a
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x49e3c1
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004c1220
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1014], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x4f4758]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004b1ad0
mov ecx, dword [esi*4 + 0x4f4758]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x1020], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x49e3ba
cmp eax, dword [edi + ecx + 0x24]
jne 0x49e3ba
xor esi, esi
lea eax, [ebp - 0x101c]
push esi
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x49e3ba
push dword [ebp - 0x100c]
push esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004b1ad0
add esp, 0x14
cmp edx, esi
jl 0x49e3ba
jg 0x49e315
cmp eax, esi
jb 0x49e3ba
mov ebx, dword [ebp - 0x1014]
mov eax, dword [ebp - 0x101c]
cmp ebx, esi
jg 0x49e3ba
jl 0x49e337
cmp dword [ebp - 0x1008], eax
ja 0x49e3ba
lea edi, [ebp - 0x1004]
xorps xmm0, xmm0
add edi, eax
movlpd qword [ebp - 0x1018], xmm0
lea ecx, [ebp - 0x1004]
cmp dword [ebp - 0x1008], esi
jne 0x49e35c
cmp ebx, esi
je 0x49e3a1
mov edx, dword [ebp - 0x1014]
mov esi, dword [ebp - 0x1018]
cmp ecx, edi
jae 0x49e3a1
mov al, byte [ecx]
cmp al, 0xd
jne 0x49e382
lea eax, [edi - 1]
cmp ecx, eax
jae 0x49e38e
cmp byte [ecx + 1], 0xa
jne 0x49e38e
inc ecx
jmp 0x49e38e
movzx eax, al
movsx eax, byte [eax + 0x4f0d40]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x49e368
cmp edx, ebx
jne 0x49e368
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x1020]
jmp 0x49e3bf
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0047eeda
leave
ret
Function at 0x4b20aa
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov edx, dword [ebp + 8]
mov ecx, edx
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, edx
sar ecx, 6
and eax, 0x3f
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x4f4758]
mov dword [ebp - 0x18], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4b20ec
cmp byte [ebx], 0xa
jne 0x4b20ec
or byte [edi + eax + 0x28], 4
jmp 0x4b20f1
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4b21f4
mov cl, byte [eax]
cmp cl, 0x1a
je 0x4b21cf
lea ebx, [eax + 1]
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 0xc]
cmp cl, 0xd
je 0x4b2120
mov eax, dword [ebp - 8]
jmp 0x4b2140
mov edx, dword [ebp - 0x10]
cmp dword [ebp - 8], edx
mov edx, dword [ebp + 8]
jae 0x4b215c
mov ebx, dword [ebp - 8]
cmp byte [ebx], 0xa
jne 0x4b213a
add eax, 2
mov cl, 0xa
jmp 0x4b213d
mov eax, dword [ebp - 8]
mov ebx, dword [ebp + 0xc]
mov byte [esi], cl
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], esi
mov esi, dword [ebp - 0xc]
add esi, dword [ebp - 8]
cmp eax, dword [ebp - 0x10]
jb 0x4b2102
jmp 0x4b21f4
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4b21ca
cmp dword [ebp - 0x10], 0
je 0x4b21ca
mov edx, dword [ebp - 0x18]
mov eax, dword [edx*4 + 0x4f4758]
test byte [eax + edi + 0x28], 0x48
je 0x4b21a9
mov cl, byte [ebp - 1]
cmp cl, 0xa
jne 0x4b2199
mov byte [esi], 0xa
jmp 0x4b21f3
mov byte [esi], 0xd
mov eax, dword [edx*4 + 0x4f4758]
mov byte [eax + edi + 0x2a], cl
jmp 0x4b21f3
cmp byte [ebp - 1], 0xa
jne 0x4b21b3
cmp esi, ebx
je 0x4b2194
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004b1aee
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4b21f4
mov byte [esi], 0xd
jmp 0x4b21f3
mov eax, edx
and edx, 0x3f
sar eax, 6
imul edx, edx, 0x38
mov edi, dword [eax*4 + 0x4f4758]
mov al, byte [edi + edx + 0x28]
test al, 0x40
jne 0x4b21f1
or al, 2
mov byte [edi + edx + 0x28], al
jmp 0x4b21f4
mov byte [esi], cl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4b21fd
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
and eax, 0x3f
push ebx
mov ebx, dword [ebp + 0xc]
sar edx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [edx*4 + 0x4f4758]
mov dword [ebp - 8], edx
mov edx, dword [eax + edi + 0x18]
mov dword [ebp - 0x18], edx
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x4b2241
push 0xa
pop esi
cmp word [ebx], si
jne 0x4b2241
or byte [eax + edi + 0x28], 4
jmp 0x4b2246
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + edx*2]
mov eax, ebx
mov dword [ebp - 0x10], edx
mov esi, ebx
cmp ebx, edx
jae 0x4b23b1
movzx edx, word [eax]
mov ecx, edx
mov dword [ebp - 0xc], ecx
movzx ecx, cx
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 8]
cmp edx, 0x1a
je 0x4b2389
lea ebx, [eax + 2]
mov dword [ebp - 4], ebx
push 0xd
pop ebx
cmp dx, bx
mov ebx, dword [ebp + 0xc]
je 0x4b2293
mov ebx, dword [ebp - 0x14]
mov edx, esi
mov eax, dword [ebp - 4]
movzx ebx, bx
mov dword [ebp - 4], ebx
jmp 0x4b22bd
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 0x10]
jae 0x4b22dc
push 0xa
pop ebx
cmp word [edx], bx
jne 0x4b22aa
push ebx
add eax, 4
pop edx
jmp 0x4b22b2
mov eax, edx
mov edx, dword [ebp - 0xc]
movzx edx, dx
movzx edx, dx
mov dword [ebp - 4], edx
mov edx, esi
mov dword [ebp - 0x14], esi
mov ecx, dword [ebp - 4]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], 2
mov word [esi], cx
mov esi, dword [ebp - 0xc]
add esi, edx
cmp eax, dword [ebp - 0x10]
jb 0x4b2258
jmp 0x4b23b1
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4b2384
cmp dword [ebp - 0x14], 0
je 0x4b2384
mov eax, dword [ebp - 8]
push 0xa
mov eax, dword [eax*4 + 0x4f4758]
test byte [eax + edi + 0x28], 0x48
pop eax
je 0x4b2360
mov dx, word [ebp - 4]
cmp dx, ax
jne 0x4b2328
mov word [esi], ax
jmp 0x4b23ae
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebp - 8]
movzx ecx, dx
shr ecx, 8
push 0xa
mov eax, dword [eax*4 + 0x4f4758]
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x4f4758]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x4f4758]
pop ecx
mov byte [eax + edi + 0x2c], cl
jmp 0x4b23ae
cmp word [ebp - 4], ax
jne 0x4b236a
cmp esi, ebx
je 0x4b2320
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004b1aee
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x4b23b1
push 0xd
pop eax
jmp 0x4b2320
mov eax, ecx
and ecx, 0x3f
sar eax, 6
imul ecx, ecx, 0x38
mov edi, dword [eax*4 + 0x4f4758]
mov al, byte [edi + ecx + 0x28]
test al, 0x40
jne 0x4b23ab
or al, 2
mov byte [edi + ecx + 0x28], al
jmp 0x4b23b1
mov word [esi], dx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4b4acf
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x18
mov eax, dword [eax + 0xc]
nop
shr eax, 3
test al, 1
je 0x4b4ae9
mov al, 1
leave
ret
mov eax, dword [ebp + 8]
push ebx
push esi
mov eax, dword [eax + 0xc]
nop
test al, 0xc0
mov eax, dword [ebp + 8]
je 0x4b4b00
mov ecx, dword [eax]
cmp ecx, dword [eax + 4]
je 0x4b4b58
mov eax, dword [eax + 0x10]
nop
push eax
call fcn.004b8a42
mov esi, eax
pop ecx
cmp esi, 0xffffffff
je 0x4b4b58
xor ebx, ebx
lea eax, [ebp - 0x10]
inc ebx
xorps xmm0, xmm0
push ebx
push eax
movlpd qword [ebp - 8], xmm0
push dword [ebp - 4]
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x4b4b58
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x4b4b58
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x18]
jne 0x4b4b52
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
je 0x4b4b54
xor bl, bl
mov al, bl
jmp 0x4b4b5a
xor al, al
pop esi
pop ebx
leave
ret
Function at 0x4b72b9
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4f01c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4b7304
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004b7452
test al, al
jne 0x4b72fe
sub edx, 2
cmp edx, edi
jne 0x4b72e4
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4b7326
lea eax, [edi + 2]
cmp edx, eax
je 0x4b7326
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004b7205
add esp, 0x10
jmp 0x4b741e
push esi
lea ecx, [ebp - 0x255]
call fcn.004b7452
sub edx, edi
xor ecx, ecx
sar edx, 1
inc edx
test al, al
lea eax, [ebp - 0x254]
cmovne ecx, edx
xor ebx, ebx
push ebx
push ebx
push ebx
push eax
push ebx
push edi
mov dword [ebp - 0x260], ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4b7367
push dword [ebp - 0x25c]
jmp 0x4b7316
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4b73a4
cmp word [ebp - 0x226], 0
je 0x4b73c5
cmp word [ebp - 0x226], ax
jne 0x4b73a4
cmp word [ebp - 0x224], 0
je 0x4b73c5
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004b7205
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4b7411
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4b737e
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4b73f9
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4b741e
push 0x4b7035
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0049f070
add esp, 0x10
jmp 0x4b73ee
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047eeda
leave
ret

Function at 0x4b7f93
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4b7fa4
pop esi
ret
push ebx
push edi
push esi
call fcn.004b7f5c
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004b53a0
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4b7fcc
push ebx
push esi
push edi
call fcn.0049ab00
add esp, 0xc
push 0
call fcn.004b2f80
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4b839b
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004b7fe1
Function at 0x4bab39
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004b1f32
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4baba8
cmp esi, dword [ebp - 4]
je 0x4baba3
cmp dword [ebp + 0xc], 0
je 0x4baba3
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4bab80
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.004ba68e
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x4babaa
xor eax, eax
inc eax
jmp 0x4babaa
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x4bac15
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x4f01c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.004b1f32
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.004b1f32
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x4bac8c
cmp word [ecx], dx
je 0x4bac8c
mov eax, dword [0x4d277c]
push edi
dec eax
push eax
push 0x4d2668
call fcn.004babae
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x4bacff
cmp word [eax], dx
je 0x4bacff
mov eax, dword [edi]
test eax, eax
je 0x4bacb0
cmp word [eax], dx
je 0x4bacb0
lea eax, [ebp - 0x10]
push eax
call fcn.004ba594
jmp 0x4bacb9
lea eax, [ebp - 0x10]
push eax
call fcn.004ba62f
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x4bad29
mov eax, dword [0x4d2664]
push dword [ebp - 0x14]
dec eax
push eax
push 0x4d2358
call fcn.004babae
add esp, 0xc
test al, al
je 0x4bad29
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x4bacf4
cmp word [eax], di
je 0x4bacf4
lea eax, [ebp - 0x10]
push eax
call fcn.004ba594
pop ecx
jmp 0x4bad2b
lea eax, [ebp - 0x10]
push eax
call fcn.004ba62f
jmp 0x4bacf1
mov eax, dword [edi]
test eax, eax
je 0x4bad16
cmp word [eax], dx
je 0x4bad16
lea eax, [ebp - 0x10]
push eax
call fcn.004ba549
pop ecx
jmp 0x4bad29
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x4badf4
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.004baa33
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4badf4
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x4badf4
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x4badf4
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4bad81
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.004b3669
test ebx, ebx
je 0x4badef
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.004b3669
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4badf4
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4badf4
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.004bf66d
add esp, 0x10
xor eax, eax
inc eax
jmp 0x4badf6
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047eeda
leave
ret
Function at 0x4bfbb5
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.004bfb31
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4bfd24
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4bfd24
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4bfcd9
jg 0x4bfc11
test eax, eax
je 0x4bfccf
push 1
push 0x1000
call fcn.004b2f20
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4bfc34
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4bfcc6
push 0x8000
push ebx
call fcn.004ac734
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4bfc5d
jg 0x4bfc58
cmp ecx, 0x1000
jb 0x4bfc5d
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004b4381
add esp, 0x10
cmp eax, 0xffffffff
je 0x4bfca2
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x4bfc58
jl 0x4bfc89
test ecx, ecx
jne 0x4bfc4a
push dword [ebp - 0xc]
push ebx
call fcn.004ac734
push esi
call fcn.004b2f80
add esp, 0xc
xor ebx, ebx
jmp 0x4bfd32
cmp byte [edi + 0x24], 0
je 0x4bfcb9
cmp dword [edi + 0x20], 5
jne 0x4bfcb9
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4bfcc4
mov ebx, dword [edi + 0x18]
jmp 0x4bfcc6
xor ebx, ebx
push esi
call fcn.004b2f80
pop ecx
jmp 0x4bfd32
test ecx, ecx
jg 0x4bfc9b
jl 0x4bfcd9
test eax, eax
jae 0x4bfc9b
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004b1aee
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4bfcf9
cmp byte [edi + 0x1c], 0
je 0x4bfc9b
jmp 0x4bfd2a
push ebx
call fcn.004b8a42
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4bfc9b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x4bfd32
cmp byte [edi + 0x1c], 0
je 0x4bfd2f
mov ebx, dword [edi + 0x18]
jmp 0x4bfd32
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004b1aee
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4c13e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4c140d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4c140d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4019e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push esi
push edi
mov esi, dword [esp + 0xc]
mov edi, eax
shr eax, 4
and edi, 0xf
inc eax
and eax, 0xffff
push ecx
push eax
push 6
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
test eax, eax
je 0x401a30
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x401a30
xor ecx, ecx
xor eax, eax
mov ax, word [esi]
add esi, 2
cmp edi, ecx
je 0x401a35
inc ecx
lea esi, [esi + eax*2]
cmp ecx, 0x10
jl 0x401a1b
pop edi
xor eax, eax
pop esi
ret
mov edx, dword [esp + 0x1c]
lea ecx, [edx - 1]
cmp eax, ecx
jle 0x401a42
mov eax, ecx
lea edx, [eax + eax]
push ebx
mov ebx, dword [esp + 0x1c]
mov ecx, edx
push ebp
mov ebp, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
pop ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov word [edx + ebx], 0
pop ebx
pop edi
pop esi
ret

Function at 0x402290
Capabilities:
Create thread
Resume thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
jne 0x402325
push ebx
push edi
mov edi, dword [esi + 0x20]
mov ebx, 4
test edi, edi
je 0x4022df
call fcn.00402b10
test eax, eax
je 0x4022df
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4022cc
mov ecx, dword [eax + 0x3c]
add ecx, eax
je 0x4022cc
mov ebx, dword [ecx + 0x64]
lea eax, [edi - 0x2000]
cmp ebx, eax
jbe 0x4022d8
add edi, ebx
mov ebx, 0x10004
jmp 0x4022e1
xor edi, edi
lea ecx, [esi + 4]
push ecx
push ebx
push esi
push 0x402460
push edi
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
mov dword [esi + 8], eax
test eax, eax
pop ebx
je 0x402325
mov ecx, dword [esi + 0x24]
mov dword [esi + 0xc], 1
test ecx, ecx
je 0x402314
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov edx, dword [esi + 8]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x402330
Capabilities:
Terminate thread

Disassembly:
sub esp, 8
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
jne 0x402344
xor eax, eax
pop esi
add esp, 8
ret
mov eax, dword [esi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 8]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 8]
push 0
push ecx
push 2
mov dword [esp + 0x18], edx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov edx, dword [esi + 0x1c]
mov eax, dword [esi + 8]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x402390
mov ecx, dword [esi + 8]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [esi + 0x10]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ResetEvent]
push edx
call edi
mov eax, dword [esi + 0x14]
push eax
call edi
mov dword [esi + 0xc], 0
pop edi
mov eax, 1
pop esi
add esp, 8
ret
Function at 0x4024e0
Capabilities:
Check os version
Get system information on windows

Disassembly:
mov eax, dword [0x447348]
sub esp, 0x114
test eax, eax
jne 0x40262d
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push edi
push 0x4470e0
mov dword [0x447348], 1
mov dword [0x4470e0], 0x114
call esi
mov edx, dword [0x4470f0]
xor eax, eax
cmp edx, 2
sete al
test eax, eax
mov dword [0x444048], eax
je 0x402608
push ebx
push 0x4471f8
mov dword [0x4471f8], 0x11c
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.kernel32.dll
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push str.GetNativeSystemInfo
push esi
call edi
push str.GetProductInfo
push esi
mov dword [0x44733c], eax
call edi
mov dword [0x447340], eax
mov eax, dword [0x44733c]
test eax, eax
push 0x447318
je 0x402584
call eax
jmp 0x40258a
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [0x4471fc]
cmp eax, 6
jae 0x4025a2
cmp eax, 5
jne 0x4025b6
cmp dword [0x447200], 2
jb 0x4025b6
cmp word [0x447318], 9
jne 0x4025b6
mov dword [0x4470d4], 1
push str.Ntdll.dll
call ebx
test eax, eax
pop ebx
je 0x4025d4
push str.RtlGetVersion
push eax
call edi
mov edx, eax
mov dword [0x447344], edx
jmp 0x4025da
mov edx, dword [0x447344]
test edx, edx
je 0x402608
mov ecx, 0x44
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
mov dword [esp + 8], 0x114
push eax
call edx
test eax, eax
jne 0x402608
mov ecx, dword [esp + 0x14]
mov dword [0x4470ec], ecx
push 0x4470e8
push 0x4470e4
call fcn.004029d0
add esp, 8
call fcn.00402640
pop edi
mov eax, 1
pop esi
add esp, 0x114
ret
mov eax, 1
add esp, 0x114
ret
Function at 0x4044f0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov eax, dword [ecx + 4]
push ebx
push ebp
push esi
push edi
mov edi, dword [ecx]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], 0
test ecx, ecx
je 0x404531
lea edx, [esp + 0x14]
or eax, 0x20019
push edx
push eax
push 0
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
mov eax, dword [esp + 0x14]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x404533
mov esi, edi
test esi, esi
je 0x4045a8
mov ebx, dword [esp + 0x20]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x20]
push eax
push 0
push ecx
push 0
push ebx
push esi
call ebp
test eax, eax
jne 0x40459d
mov ecx, dword [esp + 0x20]
mov eax, 4
cmp ecx, eax
jne 0x40459d
cmp dword [esp + 0x1c], eax
jbe 0x40456e
mov dword [esp + 0x1c], eax
lea edx, [esp + 0x1c]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push 0
push ebx
push esi
call ebp
test eax, eax
jne 0x40459d
cmp esi, edi
je 0x40458f
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
cmp esi, edi
je 0x4045a8
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc