joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f7b60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
test eax, eax
je 0x4f7b97
mov edx, dword [ebp + 0x14]
lea ecx, [ebp + 0xc]
or edx, 0x20019
push ecx
push edx
push 0
push eax
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
mov eax, dword [ebp + 0xc]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x4f7b9a
mov esi, dword [ebp + 8]
test esi, esi
je 0x4f7d4d
call fcn.004fab20
test eax, eax
je 0x4f7c45
mov eax, dword [ebp + 0x10]
lea ecx, [ebp + 0xc]
push ecx
lea edx, [ebp + 0x14]
push 0
push edx
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4f7d41
mov eax, dword [ebp + 0x14]
cmp eax, 1
je 0x4f7be9
cmp eax, 2
je 0x4f7be9
cmp eax, 6
je 0x4f7be9
cmp eax, 7
jne 0x4f7d41
mov ecx, dword [ebp + 0xc]
add ecx, 2
push ecx
call fcn.004fed42
mov edx, dword [ebp + 0xc]
mov ebx, eax
xor eax, eax
mov edi, ebx
lea ecx, [edx + 2]
add esp, 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
mov ecx, dword [ebp + 0x10]
lea eax, [ebp + 0xc]
push eax
push ebx
push 0
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
push ebx
jne 0x4f7d2c
mov ecx, dword [ebp + 0x18]
call fcn.0043a030
cmp esi, dword [ebp + 8]
je 0x4f7d16
jmp 0x4f7d0f
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x4f7c51
mov dword [ebp + 0x10], eax
jmp 0x4f7c86
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebx, [eax + eax + 2]
mov eax, ebx
add eax, 3
and al, 0xfc
call fcn.00421270
mov edx, dword [ebp + 0x10]
mov edi, esp
push 0
push 0
push ebx
push edi
push 0xffffffffffffffff
push edx
push 0
push 0
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp + 0x10], edi
mov edx, dword [ebp + 0x10]
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp + 0x14]
push 0
push ecx
push 0
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4f7d41
mov eax, dword [ebp + 0x14]
cmp eax, 1
je 0x4f7cc0
cmp eax, 2
je 0x4f7cc0
cmp eax, 6
je 0x4f7cc0
cmp eax, 7
jne 0x4f7d41
mov eax, dword [ebp + 0xc]
add eax, 2
push eax
call fcn.004fed42
mov ecx, dword [ebp + 0xc]
mov ebx, eax
add ecx, 2
xor eax, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [ebp + 0x10]
lea eax, [ebp + 0xc]
push eax
push ebx
push 0
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
push ebx
jne 0x4f7d2c
mov ecx, dword [ebp + 0x18]
call fcn.0043a100
cmp esi, dword [ebp + 8]
je 0x4f7d16
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call fcn.004fed6b
add esp, 4
mov eax, 1
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret
call fcn.004fed6b
mov ecx, dword [ebp + 0x18]
add esp, 4
push 0x55aca0
call fcn.0043a030
cmp esi, dword [ebp + 8]
je 0x4f7d4d
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea esp, [ebp - 0xc]
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4f8790
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x51abf8
push eax
mov eax, dword [ebp + 0xc]
mov dword fs:[0], esp
push ebx
push esi
test eax, eax
push edi
je 0x4f87e6
lea ecx, [ebp + 0x14]
mov ebx, dword [ebp + 8]
push ecx
mov ecx, dword [ebp + 0x14]
lea edx, [ebp + 0xc]
or ecx, 0x20006
push edx
push 0
push ecx
push 0
push 0
push 0
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
mov eax, dword [ebp + 0xc]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x4f87eb
mov esi, dword [ebp + 8]
mov ebx, esi
test esi, esi
je 0x4f88da
call fcn.004fab20
test eax, eax
je 0x4f883a
mov edi, dword [ebp + 0x18]
push edi
call fcn.00421123
add esp, 4
lea edx, [eax + eax + 2]
mov eax, dword [ebp + 0x10]
push edx
push edi
push 1
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x4f88cf
cmp esi, ebx
je 0x4f8830
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x4f88dc
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x4f8845
xor edi, edi
jmp 0x4f887a
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ebx, [eax + eax + 2]
mov eax, ebx
add eax, 3
and al, 0xfc
call fcn.00421270
mov ecx, dword [ebp + 0x10]
mov edi, esp
push 0
push 0
push ebx
push edi
push 0xffffffffffffffff
push ecx
push 0
push 0
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, dword [ebp + 8]
mov edx, dword [ebp + 0x18]
lea ecx, [ebp + 0xc]
push edx
call fcn.00433db0
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax - 8]
inc ecx
push ecx
push eax
push 1
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x4f88c0
cmp esi, ebx
je 0x4f88aa
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
call fcn.004345c0
mov eax, 1
jmp 0x4f88dc
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
call fcn.004345c0
cmp esi, ebx
je 0x4f88da
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x18]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4f9550
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 8
lea eax, [esp + 0xc]
lea ecx, [esp]
push ebx
push ebp
push esi
push edi
push 0
push 0
mov ebx, dword [esp + 0x24]
push 0
push 0
push 0
push 0
push eax
push ecx
push 0
push 0
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x4f96cd
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4f96ac
mov eax, dword [esp + 0x1c]
cmp eax, 0x104
jae 0x4f95a6
mov eax, 0x104
mov dword [esp + 0x1c], eax
lea edx, [eax + eax + 2]
push edx
call fcn.004fed42
mov esi, eax
add esp, 4
test esi, esi
je 0x4f96cd
mov eax, dword [esp + 0x1c]
mov edi, esi
lea ecx, [eax + eax + 2]
xor eax, eax
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 eax, dword [esp + 0x1c]
inc eax
push eax
push esi
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x4f96c4
mov ebp, dword [esp + 0x20]
mov eax, ebp
or eax, 0x2001f
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x20]
push ecx
push eax
push 0
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4f96c4
mov edi, dword [esp + 0x20]
test edi, edi
je 0x4f96c4
push ebp
push edi
call fcn.004f9550
add esp, 8
test eax, eax
je 0x4f96b9
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x564ba0]
test eax, eax
je 0x4f9655
test ebp, ebp
je 0x4f9655
push 0
push ebp
push esi
push ebx
call eax
test eax, eax
jne 0x4f96c4
jmp 0x4f9661
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x4f96c4
mov eax, dword [esp + 0x10]
dec eax
mov dword [esp + 0x10], eax
je 0x4f96a3
mov edx, dword [esp + 0x1c]
xor eax, eax
mov edi, esi
lea ecx, [edx + edx + 2]
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 eax, dword [esp + 0x1c]
inc eax
push eax
push esi
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x4f96c4
mov eax, dword [esp + 0x14]
jmp 0x4f95fe
push esi
call fcn.004fed6b
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
test edi, edi
je 0x4f96c4
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.004fed6b
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret
Function at 0x4f99b0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x4f99bd
xor eax, eax
ret 0xc
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x4f9ac0
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 + 0x534094]
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 + 0x534094]
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 + 0x534094]
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 + 0x534094]
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 + 0x534094]
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 + 0x534094]
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 + 0x534094]
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 + 0x534094]
xor eax, edx
inc ecx
dec edi
jne 0x4f99d8
pop edi
test esi, esi
je 0x4f9ae2
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x534094]
xor eax, edx
inc ecx
dec esi
jne 0x4f9ac4
pop esi
pop ebx
not eax
ret 0xc
Function at 0x5024ee
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x502526
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004ff5c9
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004ff5a0
jmp 0x502532
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x504f9a
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push edi
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
jne 0x504fca
push edi
call ebx
push eax
call fcn.005050e8
push esi
mov esi, dword [ebp + 0xc]
movzx eax, byte [esi + 0x10]
cmp eax, dword [ebp - 4]
je 0x504ff4
test byte [ebp - 4], 1
je 0x504ff4
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x504ff4
push edi
call ebx
push eax
call fcn.005050e8
cmp dword [esi + 4], edi
lea eax, [esi + 4]
je 0x50509a
lea ecx, [ebp - 0x24]
push ecx
push eax
call fcn.00504ee7
cmp dword [esi + 8], edi
lea eax, [esi + 8]
pop ecx
pop ecx
je 0x505026
lea ecx, [ebp - 0x14]
push ecx
push eax
call fcn.00504ee7
pop ecx
lea eax, [ebp - 0x14]
pop ecx
mov dword [ebp - 8], eax
cmp dword [esi], edi
je 0x50503c
lea eax, [ebp - 0x1c]
push eax
push esi
call fcn.00504ee7
pop ecx
lea eax, [ebp - 0x1c]
pop ecx
mov dword [ebp - 0xc], eax
push edi
push 0x80
push 3
push edi
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x505066
push 0
call ebx
push eax
call fcn.005050e8
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x505084
push eax
call ebx
push eax
call fcn.005050e8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x505098
push eax
call ebx
push eax
call fcn.005050e8
xor edi, edi
movzx eax, byte [esi + 0x10]
cmp eax, dword [ebp - 4]
pop esi
je 0x5050c1
test byte [ebp - 4], 1
jne 0x5050c1
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x5050c1
push edi
call ebx
push eax
call fcn.005050e8
pop edi
pop ebx
leave
ret 8

Function at 0x51091b
Capabilities:
Receive data
Receive data on socket

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [ecx + 4]
call sub.WSOCK32.dll_recv
ret 0xc

Function at 0x510999
Capabilities:
Send data
Send data on socket

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [ecx + 4]
call sub.WSOCK32.dll_send
ret 0xc
Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
nop
mov ecx, 0xd1173cb
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43004e
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..data
mov ebx, 0x42e1d0
nop
nop
mov ecx, 0x13943f82
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x1c
xor eax, eax
cmp word [0x400000], 0x5a4d
mov dword [0x40d060], 1
mov dword [0x40d05c], 1
mov dword [0x40d058], 1
jne 0x401056
mov edx, dword [0x40003c]
cmp dword [edx + 0x400000], 0x4550
lea ecx, [edx + 0x400000]
je 0x4010b0
mov dword [0x40d014], eax
mov eax, dword [0x40d06c]
test eax, eax
je 0x4010a0
mov dword [esp], 2
call sym.___set_app_type
call sym.___p__fmode
mov edx, dword [0x40d080]
mov dword [eax], edx
call sym.___p__commode
mov edx, dword [0x40d068]
mov dword [eax], edx
call dbg._setargv
cmp dword [0x409018], 1
je 0x4010e0
xor eax, eax
add esp, 0x1c
ret
mov dword [esp], 1
call sym.___set_app_type
jmp 0x401070
movzx edx, word [ecx + 0x18]
cmp dx, 0x10b
je 0x4010f8
cmp dx, 0x20b
jne 0x401056
cmp dword [ecx + 0x84], 0xe
jbe 0x401056
mov edx, dword [ecx + 0xf8]
xor eax, eax
test edx, edx
setne al
jmp 0x401056
mov dword [esp], dbg._matherr
call dbg.__mingw_setusermatherr
xor eax, eax
add esp, 0x1c
ret
cmp dword [ecx + 0x74], 0xe
jbe 0x401056
mov ecx, dword [ecx + 0xe8]
xor eax, eax
test ecx, ecx
setne al
jmp 0x401056

Function at 0x4019d0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call dbg.__acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov dword [esp], 2
call dbg.__acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
lea esi, [esi]
Function at 0x401a30
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x40d074]
test esi, esi
jle 0x401b50
mov eax, dword [0x40d078]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x401a64
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x401ae7
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x401a50
mov dword [esp], ebx
call dbg.__mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x401b77
mov eax, dword [0x40d078]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call dbg._GetPEImageBase
mov edx, dword [0x40d078]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x401b57
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x401ae0
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x401af0
add dword [0x40d074], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x40d078]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x401ae0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x401a6e
mov eax, dword [0x40d078]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, [esi]
nop

Function at 0x402090
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x40d090
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x40d088]
sub esp, 4
test ebx, ebx
je 0x4020e5
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x4020de
test esi, esi
je 0x4020de
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x4020c0
mov dword [esp], 0x40d090
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x431001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x431072
nop
nop
nop
nop
mov ebx, 0x40915c
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
mov esi, 0x7a142c2c
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x431060
nop
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4310d2
nop
nop
mov ebx, 0x42f3f8
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x40e95884
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4310c0
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219
Function at 0x413dca
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44ea96
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4a31d4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
lea edi, [esi + 0xc]
mov ecx, edi
call fcn.00404d78
cmp eax, 6
jle 0x413e0f
mov ecx, edi
call fcn.00404e5e
push eax
lea ecx, [esi + 0x34]
call fcn.00401ec6
mov eax, dword [esi + 0xa4]
test eax, eax
je 0x413e20
push eax
call fcn.0042a250
pop ecx
and dword [esi + 0xa4], 0
lea ecx, [esi + 0xa0]
call fcn.00409d27
lea ecx, [esi + 0x9c]
call fcn.00409d27
mov ecx, dword [esi + 0x98]
test ecx, ecx
je 0x413e4d
push ecx
call fcn.0040ac2b
lea ecx, [esi + 0x84]
call fcn.00401a4f
lea ecx, [esi + 0x78]
call fcn.00401a4f
cmp dword [esi + 0x70], 0
je 0x413e6f
push dword [esi + 0x70]
call fcn.0043aeb4
pop ecx
cmp dword [esi + 0x5c], 0
je 0x413e7e
push dword [esi + 0x5c]
call fcn.0043aeb4
pop ecx
cmp dword [esi + 0x48], 0
je 0x413e8d
push dword [esi + 0x48]
call fcn.0043aeb4
pop ecx
lea ecx, [esi + 0x34]
call fcn.00401aa0
lea ecx, [esi + 0x30]
call fcn.00401aa0
mov ecx, edi
call fcn.00401a4f
mov ecx, esi
call fcn.00401a4f
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
leave
ret
Function at 0x43b64f
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0x43b3c1
dec ecx
add edx, ecx
sub edx, 0xa7f23d88
call fcn.0043b686
and edx, edx
xor dword [edi], esi
add edx, edx
mov ecx, 0x86921b92
inc edi
or edx, ecx
add edx, 0xa7f03764
push edx
pop edx
cmp edi, ebx
jne fcn.0043b64f
or ecx, ecx
ret
Function at 0x401de5
Capabilities:
Get file version info

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0xd8
push ebx
push esi
mov eax, ecx
mov ebx, edx
push edi
lea ecx, [ebp + 0x68]
mov dword [ebp + 0x64], eax
push ecx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
je 0x401ecf
call fcn.0042fe40
mov esi, esp
test esi, esi
je 0x401ecf
push edi
push 0
push esi
call fcn.00419e50
add esp, 0xc
push esi
push edi
push dword [ebp + 0x68]
push dword [ebp + 0x64]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x401ecf
mov edi, dword [sym.imp.VERSION.dll_VerQueryValueW]
lea eax, [ebp + 0x6c]
push eax
lea eax, [ebp + 0x70]
push eax
push 0x4458c8
push esi
call edi
test eax, eax
je 0x401ecf
mov ecx, dword [ebp + 0x70]
push str.VersionVI
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
lea eax, [ebp - 0x64]
push 0x44588c
push eax
call fcn.004029e8
add esp, 0x14
lea eax, [ebp + 0x6c]
push eax
lea eax, [ebp + 0x70]
push eax
lea eax, [ebp - 0x64]
push eax
push esi
call edi
test eax, eax
jne 0x401eb8
push str.VersionVI
lea eax, [ebp - 0x64]
push 0x445850
push eax
call fcn.004029e8
add esp, 0xc
lea eax, [ebp + 0x6c]
push eax
lea eax, [ebp + 0x70]
push eax
lea eax, [ebp - 0x64]
push eax
push esi
call edi
test eax, eax
je 0x401ecf
push 0x14
push dword [ebp + 0x70]
push ebx
call fcn.0041fb54
xor eax, eax
add esp, 0xc
mov word [ebx + 0x26], ax
inc eax
jmp 0x401ed1
xor eax, eax
lea esp, [ebp - 0x70]
pop edi
pop esi
pop ebx
add ebp, 0x74
leave
ret
Function at 0x401edc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_FindResourceW]
push str.FRAMEWORK
push 0x84
push dword [0x4472d0]
mov dword [ebp - 4], ecx
call edi
push eax
push dword [0x4472d0]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, eax
mov ecx, 0x4472bc
call fcn.0040ef74
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [0x4472bc]
xor ecx, ecx
test eax, eax
je 0x401f3b
cmp word [eax], cx
jne 0x401f4a
mov edx, str.Recherche_et_installation_du_framework_WINDEV._r_nRemarque_:_Vous_devez_avoir_un_acc
mov ecx, 0x4472bc
call fcn.0040ef74
mov ecx, 0x4472c8
call fcn.0040ef32
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.0041fae6
lea ecx, [ebp - 0x210]
call fcn.0040bd2b
push dword [ebp - 4]
lea eax, [ebp - 0x210]
push eax
call fcn.0041fb08
add esp, 0x10
lea ecx, [ebp - 0x210]
call fcn.0040bb6c
push str.FRAMEWORK
test eax, eax
je 0x401f99
push 0x85
jmp 0x401f9e
push 0x86
push dword [0x4472d0]
call edi
push eax
push dword [0x4472d0]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, 0x4472c0
mov edx, eax
mov ecx, edi
call fcn.0040ef74
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [0x4472c0]
test eax, eax
je 0x401fe1
xor ecx, ecx
cmp word [eax], cx
jne 0x402001
lea ecx, [ebp - 0x210]
call fcn.0040bb6c
mov ecx, edi
mov edx, str.Ce_programme_a
test eax, eax
jne 0x401ffc
mov edx, str.Premier_lancement_de_lapplication._r_nLes
call fcn.0040ef74
pop edi
pop esi
leave
ret