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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x458768]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x418f99
cmp byte [ebx], 0xa
jne 0x418f99
or byte [eax + edi + 0x28], 4
jmp 0x418f9e
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x41909c
mov al, byte [edx]
cmp al, 0x1a
je 0x41907e
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x418fcd
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x418ff2
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x418ffc
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x418faf
jmp 0x41909c
push 0
lea eax, [ebp - 0xc]
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 0x419079
cmp dword [ebp - 0xc], 0
je 0x419079
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x458768]
test byte [eax + edi + 0x28], 0x48
je 0x419053
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x41903e
mov byte [esi], dl
jmp 0x41904f
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x458768]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41909c
cmp byte [ebp - 1], 0xa
jne 0x419062
cmp esi, ebx
jne 0x419062
mov byte [esi], 0xa
jmp 0x41909b
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00419ad9
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41909c
mov byte [esi], 0xd
jmp 0x41909b
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x458768]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x419098
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41909c
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4190a5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x458768]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4190e8
cmp word [esi], dx
jne 0x4190e8
or byte [edi + eax + 0x28], 4
jmp 0x4190ed
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x419240
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x419220
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41912f
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x419165
cmp eax, edx
jae 0x419171
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x419107
jmp 0x419240
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 0x41921c
cmp dword [ebp - 0x14], 0
je 0x41921c
mov eax, dword [ebx*4 + 0x458768]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4191f4
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4191bd
mov word [esi], cx
jmp 0x4191f0
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x458768]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x458768]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x458768]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x419240
pop ebx
cmp word [ebp - 4], bx
jne 0x419205
cmp esi, dword [ebp + 0xc]
jne 0x419205
mov word [esi], bx
jmp 0x41923d
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00419ad9
add esp, 0x10
cmp word [ebp - 4], bx
je 0x419240
push 0xd
jmp 0x419239
mov ecx, dword [ebx*4 + 0x458768]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x419237
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x419240
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x425570
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
push esi
push edi
call dword [sym.imp.KERNEL32.dll_FreeConsole]
mov edx, str.sioABcuhcuAUIs
mov ecx, 0x457c50
call fcn.00403800
mov edi, eax
mov ecx, dword [edi]
mov ecx, dword [ecx + 4]
mov ecx, dword [ecx + edi + 0x30]
mov esi, dword [ecx + 4]
mov ecx, esi
mov dword [esp + 0x10], esi
mov edx, dword [esi]
call dword [edx + 4]
lea eax, [esp + 0xc]
push eax
call fcn.00403660
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0xa
mov eax, dword [edx + 0x20]
call eax
mov byte [esp + 0xc], al
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 8]
test eax, eax
je 0x4255d8
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
push dword [esp + 0xc]
mov ecx, edi
call fcn.004047b0
mov ecx, edi
call fcn.00403430
push 4
call fcn.00407415
add esp, 4
lea ecx, [esp + 0x18]
mov dword [eax], 0x425440
push ecx
push 0
push eax
push 0x404e30
push 0
push 0
call fcn.0040bc1c
add esp, 0x18
mov dword [esp + 0x14], eax
test eax, eax
je 0x4256e8
cmp dword [esp + 0x18], 0
je 0x4256f7
call sub.KERNEL32.dll_GetCurrentThreadId
mov ecx, dword [esp + 0x18]
cmp ecx, eax
je 0x4256fe
push 0
push ecx
push dword [esp + 0x1c]
call fcn.00406cd2
add esp, 0xc
test eax, eax
jne 0x425705
xorps xmm0, xmm0
mov dword [esp + 0x1c], eax
xor ecx, ecx
movlpd qword [esp + 0x14], xmm0
mov dword [esp + 0x20], ecx
lea edi, [eax + 0x64]
mov dword [esp + 0x24], eax
mov dword [esp + 0xc], eax
mov esi, 2
cmp ecx, eax
je 0x425688
mov dword [ecx], 0
add ecx, 4
mov dword [esp + 0x20], ecx
jmp 0x42569f
lea eax, [esp + 0xc]
push eax
push ecx
lea ecx, [esp + 0x24]
call fcn.00404960
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
sub esi, 1
jne 0x425675
sub edi, 1
jne 0x425670
mov edx, dword [esp + 0x1c]
test edx, edx
je 0x4256d9
sub eax, edx
mov ecx, edx
and eax, 0xfffffffc
cmp eax, 0x1000
jb 0x4256cf
mov edx, dword [ecx - 4]
add eax, 0x23
sub ecx, edx
add ecx, 0xfffffffc
cmp ecx, 0x1f
ja 0x42570c
push eax
push edx
call fcn.00407445
add esp, 8
cmp dword [esp + 0x18], 0
jne 0x425711
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push 6
mov dword [esp + 0x1c], 0
call fcn.0040501f
push 1
call fcn.0040501f
push 5
call fcn.0040501f
push 2
call fcn.0040501f
call fcn.0040f26f
call fcn.0040e59b
int3

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 0x412eb1
Capabilities:
Parse pe header

Disassembly:
dec eax
mov dword [esp + 8], ebx
inc esp
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], edx
push ebp
dec eax
mov ebp, esp
dec eax
sub esp, 0x50
mov ebx, ecx
inc ebp
test eax, eax
jne 0x412d44
xor ecx, ecx
call dword [0x19357]
dec eax
test eax, eax
je 0x412d44
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x412d44
dec eax
arpl word [eax + 0x3c], cx
dec eax
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x412d44
mov eax, 0x20b
cmp word [ecx + 0x18], ax
jne 0x412d44
cmp dword [ecx + 0x84], 0xe
jbe 0x412d44
cmp dword [ecx + 0xf8], 0
je 0x412d44
mov ecx, ebx
call fcn.00412de5
dec eax
lea eax, [ebp + 0x18]
mov byte [ebp + 0x28], 0
dec eax
mov dword [ebp - 0x20], eax
dec esp
lea ecx, [ebp - 0x2c]
dec eax
lea eax, [ebp + 0x20]
dec eax
mov dword [ebp - 0x18], eax
dec esp
lea eax, [ebp - 0x20]
dec eax
lea eax, [ebp + 0x28]
dec eax
mov dword [ebp - 0x10], eax
dec eax
lea edx, [ebp - 0x28]
mov eax, 2
dec eax
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
call fcn.00412bd5
cmp dword [ebp + 0x20], 0
je 0x412d91
dec eax
mov ebx, dword [esp + 0x60]
dec eax
add esp, 0x50
pop ebp
ret
mov ecx, ebx
call fcn.00412d99
int3
inc ebp
xor eax, eax
xor edx, edx
jmp 0x412cdd

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

Disassembly:
mov edi, esp
mov dword [edi], eax
mov ebx, 0xbed8dd0
shr ebx, 3
mov edx, 0x13dd812
xor edx, ebx
mov eax, edx
dec eax
mov edi, dword [eax + 1]
xor edi, ecx
mov dword [esi], edi
add edx, 4
mov edi, 4
add esi, edi
mov edi, 0x53de2368
shr edi, 1
add edi, 0xd6515e74
xor edi, edx
or edi, 0
jne 0x4062cc
ret

Function at 0x408eb4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x408eed
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00404dd4
jmp 0x408ef6
mov eax, ebx
mov edx, esi
call fcn.00404c98
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x408f00
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x408f22
movzx eax, word [esp]
jmp 0x408f24
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4096ac
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x4097d1
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.004094c0
mov esi, eax
mov eax, dword [0x412c30]
cmp byte [eax], 0
je 0x409779
mov eax, dword [0x412b6c]
call fcn.0040317c
call fcn.00402f6c
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x409688]
call fcn.00405ad8
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x4097ec
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x4097b5
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x412b4c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x415b48]
call fcn.00405b90
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4097d8
lea eax, [ebp - 4]
mov edx, dword [0x409688]
call fcn.00405ae4
ret
Function at 0x4010b0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x42603c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x11c
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.00413700
add esp, 0xc
lea ecx, [ebp - 0x120]
push ecx
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x11c], 6
mov ecx, dword [ebp - 4]
sbb eax, eax
xor ecx, ebp
inc eax
call fcn.0040f51e
mov esp, ebp
pop ebp
ret

Function at 0x401110
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x42603c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x11c
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.00413700
add esp, 0xc
lea ecx, [ebp - 0x120]
push ecx
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x11c]
cmp eax, 5
jbe 0x401185
cmp eax, 6
jbe 0x401173
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040f51e
mov esp, ebp
pop ebp
ret
jne 0x401185
mov eax, dword [ebp - 0x118]
cmp eax, 1
jbe 0x401185
cmp eax, 2
jae 0x401160
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.0040f51e
mov esp, ebp
pop ebp
ret
Function at 0x401950
Capabilities:
Print debug messages
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x42603c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
mov esi, ecx
push 0x3fe
push eax
lea ecx, [ebp - 0x406]
push ecx
mov dword [ebp - 0x40c], esi
mov edi, edx
mov word [ebp - 0x408], ax
call fcn.00413700
add esp, 0xc
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov esi, dword [edi + 0x13]
mov edx, dword [edi + 0xb]
mov eax, dword [edi + 0xf]
mov dword [ebp - 0x414], 0x16e3600
mov dword [ebp - 0x41c], edx
mov dword [ebp - 0x418], eax
test esi, esi
je 0x401b85
push esi
call fcn.0040f7a3
add esp, 4
push 0x16e3600
mov ebx, eax
call fcn.0040f7a3
add esp, 4
mov dword [ebp - 0x410], eax
test ebx, ebx
jne 0x401a20
push esi
mov ecx, dword [ebp - 0x40c]
push ecx
lea edx, [ebp - 0x408]
push 0x41c41c
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x408]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040f51e
mov esp, ebp
pop ebp
ret
test eax, eax
jne 0x401a2b
push 0xb71b00
jmp 0x4019e4
push esi
add edi, 0x17
push edi
push ebx
call fcn.00414d50
mov edx, dword [ebp - 0x410]
add esp, 0xc
mov ecx, esi
mov eax, ebx
lea edi, [ebp - 0x414]
call fcn.00409e90
test eax, eax
je 0x401aad
mov ecx, dword [ebp - 0x40c]
push esi
push 0xb71b00
push eax
push ecx
lea edx, [ebp - 0x408]
push 0x41c458
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x18
lea eax, [ebp - 0x408]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push ebx
call fcn.0040f769
mov ecx, dword [ebp - 0x410]
add esp, 4
push ecx
call fcn.0040f769
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040f51e
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x40c]
push 0x41c4d0
push edi
call fcn.0040fa31
mov esi, eax
add esp, 8
test esi, esi
jne 0x401b08
push ebx
call fcn.0040f769
mov edx, dword [ebp - 0x410]
add esp, 4
push edx
call fcn.0040f769
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
lea eax, [ebp - 0x408]
push str._ls_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea ecx, [ebp - 0x408]
push ecx
jmp 0x401a07
push 0
push 0
push esi
call fcn.00410433
mov edx, dword [ebp - 0x414]
mov edi, dword [ebp - 0x410]
add esp, 0xc
push esi
push edx
push 1
push edi
call fcn.004100cb
push esi
call fcn.0041051c
add esp, 0x14
push ebx
call fcn.0040f769
add esp, 4
push edi
call fcn.0040f769
mov eax, dword [ebp - 0x40c]
add esp, 4
push 0
push 0x80
push 3
push 0
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x401b85
lea ecx, [ebp - 0x41c]
push ecx
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.0040f51e
mov esp, ebp
pop ebp
ret
Function at 0x401e90
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x85c
mov eax, dword [0x42603c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
xor ecx, ecx
push 0x7fe
push ecx
lea edx, [ebp - 0x84e]
push edx
mov dword [ebp - 0x85c], eax
mov word [ebp - 0x850], cx
call fcn.00413700
add esp, 0xc
push 0x104
lea eax, [ebp - 0x850]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
lea ecx, [ebp - 0x850]
push ecx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test esi, esi
je 0x401fd9
push ebx
push esi
call fcn.0040f7a3
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x401fd8
push ebx
push esi
push 0
lea edx, [ebp - 0x850]
push edx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x401fcf
push 0
lea eax, [ebp - 0x858]
push eax
push 0x41c5fc
push ebx
mov dword [ebp - 0x858], 0
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x401fcf
mov eax, dword [ebp - 0x858]
test eax, eax
je 0x401fcf
push edi
mov ecx, 0x12
mov esi, str.StringFileInfo12345678FileVersion
lea edi, [ebp - 0x50]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movzx ecx, word [eax + 2]
movzx edx, word [eax]
push ecx
push edx
lea eax, [ebp - 0x50]
push str.StringFileInfo_04x_04xFileVersion
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 0
lea ecx, [ebp - 0x854]
push ecx
lea edx, [ebp - 0x50]
push edx
push ebx
mov dword [ebp - 0x854], 0
call dword [sym.imp.VERSION.dll_VerQueryValueW]
pop edi
test eax, eax
je 0x401fcf
mov eax, dword [ebp - 0x854]
test eax, eax
je 0x401fcf
mov edx, dword [ebp - 0x85c]
sub edx, eax
jmp 0x401fc0
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x401fc0
push ebx
call fcn.0040f769
add esp, 4
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040f51e
mov esp, ebp
pop ebp
ret
Function at 0x4026a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a0
mov eax, dword [0x42603c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
push 0x18e
mov esi, ecx
push eax
lea ecx, [ebp - 0x192]
push ecx
mov word [ebp - 0x194], ax
call fcn.00413700
add esp, 0xc
mov dword [ebp - 0x19c], 0xc8
mov dword [ebp - 0x1a0], 1
xor eax, eax
jmp 0x4026f0
movzx ecx, word [eax + str.SystemCurrentControlSetServices_]
mov word [ebp + eax - 0x194], cx
add eax, 2
test cx, cx
jne 0x4026f0
mov eax, esi
mov edx, esi
jmp 0x402710
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x402710
lea edi, [ebp - 0x194]
sub eax, edx
add edi, 0xfffffffe
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x402726
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
lea edx, [ebp - 0x198]
push edx
push 1
mov ecx, eax
push 0
lea eax, [ebp - 0x194]
push eax
and ecx, 3
push reloc.OLEAUT32.dll_SysReAllocString
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
pop edi
pop esi
test eax, eax
jne 0x4027b2
push 0x190
push eax
lea ecx, [ebp - 0x194]
push ecx
call fcn.00413700
add esp, 0xc
lea edx, [ebp - 0x19c]
push edx
mov edx, dword [ebp - 0x198]
lea eax, [ebp - 0x194]
push eax
lea ecx, [ebp - 0x1a0]
push ecx
push 0
push str.ImagePath
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4027c2
mov eax, dword [ebp - 0x198]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040f51e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x198]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
call fcn.0040f51e
mov esp, ebp
pop ebp
ret
Function at 0x402ba0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xe64
mov eax, dword [0x42603c]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push edi
push 0x103
lea edx, [ebp - 0x113]
push 0
push edx
mov dword [ebp - 0xe5c], eax
mov dword [ebp - 0xe58], ecx
mov byte [ebp - 0x114], 0
call fcn.00413700
add esp, 0xc
push 0x3ff
lea eax, [ebp - 0x513]
push 0
push eax
mov byte [ebp - 0x514], 0
call fcn.00413700
add esp, 0xc
xor ecx, ecx
push 0x7fe
push ecx
lea edx, [ebp - 0xd12]
push edx
mov word [ebp - 0xd14], cx
call fcn.00413700
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push esi
lea eax, [ebp - 0x114]
push str._s.EXE
push eax
call edi
add esp, 0xc
lea ecx, [ebp - 0xe54]
push ecx
lea edx, [ebp - 0x114]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
mov dword [ebp - 0xe60], ebx
cmp ebx, 0xffffffff
jne 0x402c70
xor eax, eax
pop edi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0040f51e
mov esp, ebp
pop ebp
ret
push 0x104
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.00413700
add esp, 0xc
lea ecx, [ebp - 0xe28]
push ecx
push esi
lea edx, [ebp - 0x114]
push str._s_s
push edx
call edi
add esp, 0x10
push 0
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
test eax, eax
jne 0x402d3d
lea ecx, [ebp - 0x114]
push ecx
lea edx, [ebp - 0x514]
push 0x41c95c
push edx
call edi
lea eax, [ebp - 0xd14]
add esp, 0xc
push eax
lea ebx, [ebp - 0x514]
call fcn.00402070
lea ecx, [ebp - 0xd14]
add esp, 4
push ecx
call fcn.00402950
add esp, 4
push 0x104
push 0
push 0xf9c168
call fcn.00413700
add esp, 0xc
xor eax, eax
jmp 0x402d10
mov cl, byte [ebp + eax - 0x114]
mov byte [eax + 0xf9c168], cl
inc eax
test cl, cl
jne 0x402d10
mov edx, dword [ebp - 0xe58]
mov ecx, dword [ebp - 0xe5c]
push esi
call fcn.004044d0
mov ebx, dword [ebp - 0xe60]
add esp, 4
lea edx, [ebp - 0xe54]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x402c70
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.0040f51e
mov esp, ebp
pop ebp
ret
Function at 0x4039e0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x42603c]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0x11c
lea eax, [ebp - 0x120]
push 0
push eax
mov edi, ecx
call fcn.00413700
add esp, 0xc
lea ecx, [ebp - 0x120]
push ecx
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x11c], 6
jae 0x403a40
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040f51e
mov esp, ebp
pop ebp
ret
push esi
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x403a62
push str.SetFileInformationByHandle
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x403a74
pop esi
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040f51e
mov esp, ebp
pop ebp
ret
push 0x28
push ebx
push 0
push edi
call eax
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 4]
pop esi
mov eax, edi
xor ecx, ebp
pop edi
call fcn.0040f51e
mov esp, ebp
pop ebp
ret