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

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ebx
imul esi, dword [ebp + 0xc]
cmp byte [edi], 0
je 0x60e036
mov ecx, dword [ebp + 8]
mov edx, dword [edi + 4]
push 0
lea eax, [ebp + 0xc]
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x60e02c
mov byte [edi + 8], 1
mov eax, dword [ebp + 0xc]
xor edx, edx
div ebx
pop esi
pop ebp
ret
mov ecx, dword [edi + 0x1c]
mov eax, dword [edi + 0x18]
lea edx, [ecx + esi]
cmp edx, eax
jbe 0x60e047
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0x14]
add eax, ecx
mov ecx, dword [ebp + 8]
push esi
push eax
push ecx
call fcn.005da270
add dword [edi + 0x1c], esi
add esp, 0xc
mov eax, esi
xor edx, edx
div ebx
pop esi
pop ebp
ret

Function at 0x60e460
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov eax, dword [edx]
movsx ecx, cl
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x67f3a0]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x67f3a0]
mov dword [edx + 8], ecx
ret

Function at 0x60e4b0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x60e4b7
xor eax, eax
ret
push esi
not eax
cmp edx, 8
jb 0x60e58d
mov esi, edx
shr esi, 3
push edi
lea esp, [esp]
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x67f3a0]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x67f3a0]
movzx edi, byte [ecx + 2]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x67f3a0]
movzx edi, byte [ecx + 3]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x67f3a0]
movzx edi, byte [ecx + 4]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x67f3a0]
movzx edi, byte [ecx + 5]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x67f3a0]
movzx edi, byte [ecx + 6]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x67f3a0]
movzx edi, byte [ecx + 7]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x67f3a0]
add ecx, 8
sub edx, 8
dec esi
jne 0x60e4d0
pop edi
test edx, edx
je 0x60e5aa
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x67f3a0]
inc ecx
dec edx
jne 0x60e591
not eax
pop esi
ret
Function at 0x60f1b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp byte [esi], 0
je 0x60f1f7
cmp byte [esi + 1], 0
je 0x60f1ff
mov eax, dword [esi + 4]
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [esi], 0
push ebx
je 0x60f212
cmp byte [esi + 1], 0
je 0x60f206
mov edx, dword [esi + 4]
push 1
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebx, eax
sub ebx, dword [esi + 0xc]
mov dword [ebp - 4], ebx
jmp 0x60f21a
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x1c], ecx
jmp 0x60f1d1
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0
mov ebx, dword [ebp - 4]
jmp 0x60f21a
mov eax, dword [esi + 0x1c]
mov dword [ebp - 4], eax
mov ebx, eax
push edi
mov edi, 0xffff
mov dword [ebp - 8], edi
cmp ebx, edi
jae 0x60f22c
mov dword [ebp - 8], ebx
mov edi, ebx
push 0x404
call fcn.005d9a1b
add esp, 4
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x60f249
pop edi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 4
mov dword [ebp - 0x14], 0xffffffff
cmp edi, eax
jbe 0x60f35d
jmp 0x60f269
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov ebx, dword [ebp - 4]
add eax, 0x400
mov dword [ebp - 0xc], edi
cmp eax, edi
ja 0x60f278
mov dword [ebp - 0xc], eax
mov eax, ebx
sub eax, dword [ebp - 0xc]
sub ebx, eax
mov dword [ebp - 0x1c], eax
cmp ebx, 0x404
jbe 0x60f28f
mov ebx, 0x404
cmp byte [esi], 0
je 0x60f2b4
cmp byte [esi + 1], 0
je 0x60f35d
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push 0
push 0
add ecx, eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x60f2b7
mov dword [esi + 0x1c], eax
cmp byte [esi], 0
mov edi, ebx
je 0x60f2e0
mov ecx, dword [ebp - 0x10]
mov edx, dword [esi + 4]
push 0
lea eax, [ebp - 0x18]
push eax
push ebx
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x60f2db
mov byte [esi + 8], 1
mov eax, dword [ebp - 0x18]
jmp 0x60f309
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea edx, [eax + ebx]
cmp edx, ecx
jbe 0x60f2f1
sub ecx, eax
mov edi, ecx
mov ecx, dword [esi + 0x14]
mov edx, dword [ebp - 0x10]
push edi
add ecx, eax
push ecx
push edx
call fcn.005da270
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div ebx
cmp eax, 1
jne 0x60f35d
lea eax, [ebx - 3]
test eax, eax
js 0x60f34b
lea esp, [esp]
mov ecx, dword [ebp - 0x10]
dec eax
cmp byte [eax + ecx], 0x50
jne 0x60f33f
cmp byte [eax + ecx + 1], 0x4b
jne 0x60f33f
cmp byte [eax + ecx + 2], 5
jne 0x60f33f
cmp byte [eax + ecx + 3], 6
je 0x60f345
test eax, eax
jns 0x60f320
jmp 0x60f34b
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x60f35d
mov edx, dword [ebp - 8]
cmp dword [ebp - 0xc], edx
jb 0x60f260
mov eax, dword [ebp - 0x10]
push eax
call fcn.005d94fd
mov eax, dword [ebp - 0x14]
add esp, 4
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x60f390
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp byte [esi], 0
push edi
mov edi, 1
je 0x60f3c3
mov edx, dword [esi + 4]
push 0
lea eax, [ebp - 8]
push eax
push edi
lea ecx, [ebp - 1]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x60f3be
mov byte [esi + 8], 1
mov edi, dword [ebp - 8]
jmp 0x60f3ee
mov eax, dword [esi + 0x18]
push ebx
mov ebx, dword [esi + 0x1c]
lea ecx, [ebx + 1]
cmp ecx, eax
jbe 0x60f3d5
sub eax, ebx
mov edi, eax
mov edx, dword [esi + 0x14]
push edi
add edx, ebx
push edx
lea eax, [ebp - 1]
push eax
call fcn.005da270
add esp, 0xc
add ebx, edi
mov dword [esi + 0x1c], ebx
pop ebx
cmp edi, 1
pop edi
jne 0x60f403
movzx ecx, byte [ebp - 1]
mov edx, dword [ebp + 8]
mov dword [edx], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0
je 0x60f3fd
cmp byte [esi + 8], 0
je 0x60f3fd
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret

Function at 0x60f420
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov ecx, dword [esi + 8]
push ebx
mov edx, ecx
and edx, 0xfffd
or edx, 2
mov ebx, edx
xor ebx, 1
imul ebx, edx
mov edx, dword [esi]
shr ebx, 8
push edi
xor al, bl
movsx edi, al
xor edi, edx
shr edx, 8
and edi, 0xff
mov ebx, dword [edi*4 + 0x67f3a0]
xor ebx, edx
movzx edx, bl
add edx, dword [esi + 4]
mov dword [esi], ebx
imul edx, edx, 0x8088405
inc edx
mov dword [esi + 4], edx
shr edx, 0x18
xor edx, ecx
and edx, 0xff
shr ecx, 8
xor ecx, dword [edx*4 + 0x67f3a0]
pop edi
mov dword [esi + 8], ecx
pop ebx
ret

Function at 0x6122e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [esi], 0
push edi
jne 0x61239f
cmp dword [esi + 4], 0xffffffff
jne 0x61239f
lea edi, [esi + 0x140]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov eax, edi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x612310
sub eax, edx
mov al, byte [eax + esi + 0x13f]
cmp al, 0x5c
je 0x612341
cmp al, 0x2f
je 0x612341
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x612330
mov ax, word [0x67f838]
mov word [edi], ax
mov edi, dword [ebp + 0xc]
cmp edi, 1
jne 0x612365
push edi
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x612365
mov eax, 0x2000000
pop edi
pop ecx
pop ebp
ret 8
mov edx, dword [ebp + 8]
lea ecx, [ebp + 0xc]
push ecx
push edi
push edx
push ebx
call fcn.0060e180
add esp, 0x10
test eax, eax
jne 0x612384
mov eax, dword [ebp + 0xc]
pop edi
pop ecx
pop ebp
ret 8
call fcn.00611a30
mov dword [esi], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
add eax, 0x200
pop edi
pop ecx
pop ebp
ret 8
mov eax, 0x1000000
pop edi
pop ecx
pop ebp
ret 8
Function at 0x6138d0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x10], 0
push 0
test esi, esi
je 0x6138fc
push str.C:UsersPublic131.zip
call fcn.0060d6c0
add esp, 8
test eax, eax
je 0x613901
push 0
call fcn.005d9107
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x613906
sub eax, edx
mov ebx, eax
lea eax, [ebp - 8]
push eax
push str.C:UsersPublic131.zip
mov word [ebp - 8], 0x6272
mov byte [ebp - 6], cl
mov word [ebp - 0xc], 0x6277
mov byte [ebp - 0xa], cl
call fcn.005d8cc8
lea ecx, [ebp - 0xc]
push ecx
push str.C:UsersPublic137.zip
mov esi, eax
call fcn.005d8cc8
push esi
mov edi, eax
call fcn.005d916f
add esp, 0x14
test eax, eax
jne 0x61399b
push esi
push 1
lea edx, [ebp - 1]
push 1
push edx
call fcn.005d9426
push esi
call fcn.005d916f
add esp, 0x14
test eax, eax
jne 0x61398e
mov eax, dword [ebp - 0x10]
cdq
idiv ebx
mov eax, dword [ebp + 8]
push edi
push 1
push 1
mov cl, byte [edx + eax]
xor byte [ebp - 1], cl
lea edx, [ebp - 1]
push edx
call fcn.005d8b92
add esp, 0x10
inc dword [ebp - 0x10]
push esi
call fcn.005d916f
add esp, 4
test eax, eax
je 0x613950
push esi
call fcn.005d8d93
push edi
call fcn.005d8d93
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x6139c0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x6bd8f4]
xor eax, ebp
mov dword [ebp - 4], eax
test byte [0x6c5f50], 1
jne 0x6139f9
or dword [0x6c5f50], 1
cmp dword [ebp + 0x38], 0x10
jb 0x6139f0
mov eax, dword [ebp + 0x24]
mov dword [0x6c5f4c], eax
jmp 0x6139f9
lea ecx, [ebp + 0x24]
mov dword [0x6c5f4c], ecx
cmp dword [ebp + 0x1c], 0x10
push esi
push edi
mov edi, dword [ebp + 8]
jae 0x613a07
lea edi, [ebp + 8]
push 3
call fcn.00409e10
call fcn.00409f00
push edi
mov esi, eax
push 0x2712
push esi
call fcn.00409f40
push 1
push 0x29
push esi
call fcn.00409f40
push 0x258
push 0xd
push esi
call fcn.00409f40
push 0
push 0x2b
push esi
call fcn.00409f40
push 1
push 0x34
push esi
call fcn.00409f40
add esp, 0x40
push 0
push 0x40
push esi
call fcn.00409f40
push 0
push 0x51
push esi
call fcn.00409f40
lea edx, [ebp - 0x14]
push edx
push 0x2751
push esi
mov dword [ebp - 0x14], 0x622d6163
mov dword [ebp - 0x10], 0x6c646e75
mov dword [ebp - 0xc], 0x72632e65
mov word [ebp - 8], 0x74
call fcn.00409f40
push 0x613880
push 0x4e2b
push esi
call fcn.00409f40
mov ecx, dword [0x6c5f4c]
lea eax, [ebp - 0x18]
push eax
push ecx
mov word [ebp - 0x18], 0x6277
mov byte [ebp - 0x16], 0
call fcn.005d8cc8
mov edi, eax
add esp, 0x38
test edi, edi
je 0x613adb
push edi
push 0x2711
push esi
call fcn.00409f40
push esi
call fcn.0040a130
push edi
call fcn.005d8d93
add esp, 0x14
push esi
call fcn.0040a150
mov esi, 0x10
add esp, 4
cmp dword [ebp + 0x1c], esi
jb 0x613afa
mov edx, dword [ebp + 8]
push edx
call fcn.0044513a
add esp, 4
cmp dword [ebp + 0x38], esi
pop edi
mov dword [ebp + 0x1c], 0xf
mov dword [ebp + 0x18], 0
mov byte [ebp + 8], 0
pop esi
jb 0x613b1f
mov eax, dword [ebp + 0x24]
push eax
call fcn.0044513a
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005d7d2e
mov esp, ebp
pop ebp
ret
Function at 0x6151e0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
mov eax, dword [0x6bd8f4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x244
call fcn.0044510b
add esp, 4
test eax, eax
je 0x615217
mov edi, 0x67dd9e
mov esi, eax
call fcn.00409be0
mov esi, eax
jmp 0x615219
xor esi, esi
push 2
push 0
mov ebx, str.C:UsersPublic137.zip
call fcn.006122e0
xor edi, edi
mov dword [0x6c5e58], eax
cmp eax, edi
je 0x61524e
cmp esi, edi
je 0x615273
call fcn.00409c80
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005d7d2e
mov esp, ebp
pop ebp
ret
push 8
call fcn.0044510b
mov ebx, eax
add esp, 4
mov dword [ebx], 1
mov dword [ebx + 4], esi
call fcn.0060efc0
test eax, eax
je 0x615286
mov edi, ebx
call fcn.00610a00
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005d7d2e
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [ebp - 0x138], eax
mov byte [ebp - 0x134], al
mov dword [ebp - 0x10], edi
cmp dword [ebx], 1
je 0x6152a8
mov dword [0x6c5e58], 0x80000
jmp 0x61526c
mov esi, dword [ebx + 4]
mov ecx, dword [esi]
or edx, 0xffffffff
cmp dword [ecx + 4], edx
jg 0x6152bc
mov ecx, 0x10000
jmp 0x6152ff
cmp dword [esi + 4], edx
je 0x6152cd
mov edi, ecx
call fcn.0060de80
or edx, 0xffffffff
xor edi, edi
mov eax, dword [esi]
mov dword [esi + 4], edx
mov eax, dword [eax + 4]
mov dword [ebp - 0x138], eax
mov byte [ebp - 0x134], 0
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
xor ecx, ecx
mov dword [0x6c5e58], ecx
cmp ecx, edi
jne 0x61526c
xor ecx, ecx
mov esi, eax
cmp eax, ecx
jg 0x615332
cmp dword [ebx], 1
je 0x6153d6
mov dword [0x6c5e58], 0x80000
jmp 0x6153f5
xor ecx, ecx
mov dword [ebp - 0x138], ecx
mov byte [ebp - 0x134], 0
mov dword [ebp - 0x10], ecx
cmp dword [ebx], 1
je 0x615353
mov dword [0x6c5e58], 0x80000
jmp 0x615367
mov ecx, dword [ebx + 4]
push edi
lea edx, [ebp - 0x138]
call fcn.00611cb0
mov dword [0x6c5e58], eax
push edi
push ebx
lea ecx, [ebp - 0x134]
call fcn.00612e40
add esp, 8
test eax, eax
jne 0x615382
inc edi
cmp edi, esi
jl 0x615330
jmp 0x615315
cmp dword [ebx], 1
je 0x6153a4
mov dword [0x6c5e58], 0x80000
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005d7d2e
mov esp, ebp
pop ebp
ret
mov esi, dword [ebx + 4]
call fcn.0060fd60
mov dword [0x6c5e58], eax
test esi, esi
je 0x6153ba
call fcn.00409c80
push ebx
call fcn.0044513a
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005d7d2e
mov esp, ebp
pop ebp
ret
mov esi, dword [ebx + 4]
call fcn.0060fd60
mov dword [0x6c5e58], eax
test esi, esi
je 0x6153ec
call fcn.00409c80
push ebx
call fcn.0044513a
add esp, 4
push str.C:UsersPublic137.zip
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.005d7d2e
mov esp, ebp
pop ebp
ret
Function at 0x401292
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00401252
add esp, 0xc
push 0
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 0x18]
imul ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret
Function at 0x402bd8
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x81c
mov dword [ebp - 0x814], 0
push 0x7f02
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
mov dword [ebp - 0x81c], eax
lea ecx, [ebp - 0x810]
push ecx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
push 0x3e8
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [ebp - 0x818], eax
push 0
push 0
push 0x147
mov eax, dword [ebp - 0x818]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x402c58
mov dword [ebp - 0x10], 0
push 0
push 0
push 0x14b
mov ecx, dword [ebp - 0x818]
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
lea edx, [ebp - 0x810]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
push eax
call fcn.004047df
add esp, 4
test eax, eax
je 0x402cef
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 1
je 0x402cd7
cmp dword [ebp - 8], 1
je 0x402cd7
mov edx, dword [ebp - 4]
push edx
call fcn.00402aa5
add esp, 4
test eax, eax
je 0x402cd7
mov eax, dword [ebp - 4]
push eax
push 0
push 0x143
mov ecx, dword [ebp - 0x818]
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [ebp - 0x814]
add edx, 1
mov dword [ebp - 0x814], edx
mov eax, dword [ebp - 4]
push eax
call fcn.004047df
add esp, 4
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 4], edx
jmp 0x402c77
mov eax, dword [ebp - 0x814]
sub eax, 1
cmp dword [ebp - 0x10], eax
jle 0x402d09
mov ecx, dword [ebp - 0x814]
sub ecx, 1
mov dword [ebp - 0x10], ecx
push 0
mov edx, dword [ebp - 0x10]
push edx
push 0x14e
mov eax, dword [ebp - 0x818]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040264e
add esp, 4
mov edx, dword [ebp - 0x81c]
push edx
call dword [sym.imp.USER32.dll_SetCursor]
mov esp, ebp
pop ebp
Function at 0x4035d3
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x53c
lea eax, [ebp - 0x218]
mov dword [ebp - 0x434], eax
lea ecx, [ebp - 0x424]
mov dword [ebp - 0xc], ecx
lea edx, [ebp - 0x538]
mov dword [ebp - 0x21c], edx
mov dword [ebp - 0x428], 0
cmp dword [0x40f1e0], 0
je 0x403615
jmp 0x403871
push 0x3f1
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [ebp - 4], eax
push 0x104
lea ecx, [ebp - 0x218]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [ebp - 0x218]
push eax
call fcn.004047df
add esp, 4
mov dword [ebp - 0x430], eax
mov ecx, dword [ebp - 0x430]
add ecx, 1
push ecx
lea edx, [ebp - 0x538]
push edx
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.USER32.dll_CharToOemBuffW]
mov ecx, dword [ebp - 0x434]
xor edx, edx
mov dx, word [ecx]
test edx, edx
je 0x4037fe
mov eax, dword [ebp - 0x21c]
mov cl, byte [eax]
mov byte [ebp - 0x42c], cl
mov edx, dword [ebp - 0x21c]
add edx, 1
mov dword [ebp - 0x21c], edx
mov eax, dword [ebp - 0x434]
mov cx, word [eax]
mov word [ebp - 8], cx
mov edx, dword [ebp - 0x434]
add edx, 2
mov dword [ebp - 0x434], edx
mov eax, dword [ebp - 0x42c]
and eax, 0xff
cmp eax, 0x5f
jne 0x4036e6
mov ecx, dword [ebp - 8]
and ecx, 0xffff
cmp ecx, 0x5f
je 0x4036e6
mov dword [ebp - 0x428], 1
jmp 0x403670
mov edx, dword [ebp - 0x42c]
and edx, 0xff
cmp edx, 0x20
jge 0x403715
mov eax, dword [ebp - 0x42c]
and eax, 0xff
test eax, eax
je 0x403715
mov dword [ebp - 0x428], 1
jmp 0x403670
mov ecx, dword [ebp - 0x42c]
and ecx, 0xff
cmp ecx, 0x22
jne 0x403735
mov dword [ebp - 0x428], 1
jmp 0x403670
mov edx, dword [ebp - 0x42c]
and edx, 0xff
cmp edx, 0x2a
jl 0x403765
mov eax, dword [ebp - 0x42c]
and eax, 0xff
cmp eax, 0x2f
jg 0x403765
mov dword [ebp - 0x428], 1
jmp 0x403670
mov ecx, dword [ebp - 0x42c]
and ecx, 0xff
cmp ecx, 0x3a
jl 0x403796
mov edx, dword [ebp - 0x42c]
and edx, 0xff
cmp edx, 0x3f
jg 0x403796
mov dword [ebp - 0x428], 1
jmp 0x403670
mov eax, dword [ebp - 0x42c]
and eax, 0xff
cmp eax, 0x5b
jl 0x4037c6
mov ecx, dword [ebp - 0x42c]
and ecx, 0xff
cmp ecx, 0x5d
jg 0x4037c6
mov dword [ebp - 0x428], 1
jmp 0x403670
mov edx, dword [ebp - 0x42c]
and edx, 0xff
cmp edx, 0x7c
jne 0x4037e6
mov dword [ebp - 0x428], 1
jmp 0x403670
mov eax, dword [ebp - 0xc]
mov cx, word [ebp - 8]
mov word [eax], cx
mov edx, dword [ebp - 0xc]
add edx, 2
mov dword [ebp - 0xc], edx
jmp 0x403670
mov eax, dword [ebp - 0xc]
mov word [eax], 0
mov ecx, dword [ebp - 0xc]
add ecx, 2
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0x428], 0
je 0x403871
mov dword [0x40f1e0], 1
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x53c]
push eax
push 0xb0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
lea edx, [ebp - 0x424]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x53c]
push edx
push 0xb1
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [0x40f1e0], 0
mov esp, ebp
pop ebp
Function at 0x403f48
Capabilities:
Check os version
Get system information on windows
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov dword [ebp - 0x14], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
and eax, 0x80000000
test eax, eax
je 0x403f86
push 0x10
push str.Error
push str.This_program_requires_an_OS_with_Unicode_support__i.e_Windows_2000__XP__Vista__Windows_7_or_later
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
or eax, 0xffffffff
jmp 0x4040b1
mov ecx, dword [ebp - 4]
and ecx, 0xff
shl ecx, 8
mov edx, dword [ebp - 4]
and edx, 0xffff
sar edx, 8
and edx, 0xff
and edx, 0xff
or ecx, edx
mov word [0x40f1d8], cx
mov eax, dword [ebp + 8]
mov dword [0x40f1d4], eax
push 0x24
push 0
lea ecx, [ebp - 0x38]
push ecx
call fcn.004046b0
add esp, 0xc
push str.GetNativeSystemInfo
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x403ff4
lea edx, [ebp - 0x38]
push edx
call dword [ebp - 8]
jmp 0x403ffe
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x38]
and ecx, 0xffff
cmp ecx, 9
je 0x40401a
mov edx, dword [ebp - 0x38]
and edx, 0xffff
cmp edx, 6
jne 0x404024
mov dword [0x40f1dc], 1
mov dword [ebp - 0x10], 8
mov dword [ebp - 0xc], 0xfff
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
push 0
push 0x403bd9
push 0
push 0x65
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_CreateDialogParamW]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0
push 0
lea ecx, [ebp - 0x58]
push ecx
call dword [sym.imp.USER32.dll_GetMessageW]
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x4040ae
cmp dword [ebp - 0x3c], 0xffffffff
jne 0x404086
or eax, 0xffffffff
jmp 0x4040b1
lea edx, [ebp - 0x58]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.USER32.dll_IsDialogMessageW]
test eax, eax
jne 0x4040ac
lea ecx, [ebp - 0x58]
push ecx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea edx, [ebp - 0x58]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x404062
mov eax, dword [ebp - 0x50]
mov esp, ebp
pop ebp
ret 0x10