joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e156
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov eax, dword [0x412ec4]
cmp eax, 0x270
jl 0x40e090
push esi
push edi
xor edx, edx
mov esi, 0x7fffffff
mov ecx, edx
shl ecx, 2
mov eax, dword [ecx + 0x4124fc]
xor eax, dword [ecx + 0x4124f8]
and eax, esi
xor eax, dword [ecx + 0x4124f8]
mov edi, eax
shr eax, 1
and edi, 1
xor eax, dword [edi*4 + 0x411500]
xor eax, dword [ecx + 0x412b2c]
inc edx
cmp edx, 0xe3
mov dword [ecx + 0x4124f8], eax
jl 0x40dfea
cmp edx, 0x26f
jge 0x40e062
lea ecx, [edx*4 + 0x4124f8]
mov eax, dword [ecx]
lea edx, [ecx + 4]
xor eax, dword [edx]
and eax, esi
xor eax, dword [ecx]
mov edi, eax
and edi, 1
mov edi, dword [edi*4 + 0x411500]
xor edi, dword [edx - 0x390]
shr eax, 1
xor edi, eax
mov dword [ecx], edi
mov ecx, edx
cmp ecx, 0x412eb4
jl 0x40e035
mov ecx, dword [0x412eb4]
mov eax, dword [0x4124f8]
xor eax, ecx
and eax, esi
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
xor eax, dword [ecx*4 + 0x411500]
pop edi
xor eax, dword [0x412b28]
pop esi
mov dword [0x412eb4], eax
xor eax, eax
mov ecx, dword [eax*4 + 0x4124f8]
inc eax
mov dword [0x412ec4], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
ret
call dword [sym.imp.kernel32.dll_GetTickCount]
cmp eax, dword [0x411ecc]
je 0x40e19d
xor ecx, ecx
mov dword [0x411ecc], eax
mov dword [0x4124f8], eax
inc ecx
mov eax, 0x4124f8
push esi
mov edx, dword [eax]
mov esi, edx
shr esi, 0x1e
xor esi, edx
imul esi, esi, 0x6c078965
add esi, ecx
mov dword [eax + 4], esi
add eax, 4
inc ecx
cmp eax, 0x412eb4
jl 0x40e177
mov dword [0x412ec4], ecx
pop esi
jmp 0x40dfd1

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

Disassembly:
cmp byte [0x41178e], 0
jne 0x40e1ff
xor ecx, ecx
push 8
mov eax, ecx
pop edx
test al, 1
je 0x40e1e3
shr eax, 1
xor eax, 0xedb88320
jmp 0x40e1e5
shr eax, 1
dec edx
jne 0x40e1d6
mov dword [ecx*4 + 0x411ed0], eax
inc ecx
cmp ecx, 0x100
jb 0x40e1d1
mov byte [0x41178e], 1
xor ecx, ecx
or eax, 0xffffffff
cmp dword [esp + 8], ecx
jbe 0x40e22b
mov edx, dword [esp + 4]
movzx edx, byte [ecx + edx]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x411ed0]
inc ecx
cmp ecx, dword [esp + 8]
jb 0x40e20a
not eax
ret 8
Function at 0x40e230
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
mov cl, byte [eax + 0x100]
push edi
mov byte [ebp - 1], cl
mov cl, byte [eax + 0x101]
xor edi, edi
mov byte [ebp - 2], cl
cmp dword [ebp + 0xc], edi
jbe 0x40e28b
push ebx
push esi
inc byte [ebp - 1]
movzx ecx, byte [ebp - 1]
lea esi, [ecx + eax]
mov dl, byte [esi]
add byte [ebp - 2], dl
movzx ecx, byte [ebp - 2]
add ecx, eax
mov bl, byte [ecx]
mov byte [esi], bl
mov byte [ecx], dl
movzx esi, byte [esi]
mov ecx, dword [ebp + 8]
movzx edx, dl
add esi, edx
and esi, 0xff
mov dl, byte [esi + eax]
add ecx, edi
xor byte [ecx], dl
inc edi
cmp edi, dword [ebp + 0xc]
jb 0x40e250
pop esi
pop ebx
mov cl, byte [ebp - 1]
mov byte [eax + 0x100], cl
mov cl, byte [ebp - 2]
mov byte [eax + 0x101], cl
pop edi
leave
ret 8

Function at 0x40e492
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
jbe 0x40e4bb
mov eax, dword [ebp + 0x10]
xor edx, edx
mov ecx, 0x3e8
div ecx
imul edx, edx, 0x3e8
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
xor eax, eax
cmp eax, dword [ebp + 0x10]
lea ecx, [ebp - 8]
sbb eax, eax
and eax, ecx
push eax
push ebx
push ebx
lea eax, [ebp - 0x10c]
push eax
push ebx
mov dword [ebp - 0x10c], 1
mov dword [ebp - 0x108], edi
call dword [sym.imp.ws2_32.dll_select]
cmp eax, 1
je 0x40e4f2
or eax, 0xffffffff
jmp 0x40e500
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
push edi
call dword [sym.imp.ws2_32.dll_recv]
pop ebx
leave
ret 0xc

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

Disassembly:
push 0
push dword [esp + 0x10]
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.ws2_32.dll_send]
cmp eax, dword [esp + 0xc]
sete al
ret 0xc

Function at 0x40e586
Capabilities:
Connect socket

Disassembly:
movzx eax, word [edi]
push esi
push 6
push 1
push eax
call dword [sym.imp.ws2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x40e5b6
push dword [esp + 8]
push edi
push esi
call dword [sym.imp.ws2_32.dll_connect]
test eax, eax
je 0x40e5b6
push esi
call dword [sym.imp.ws2_32.dll_closesocket]
or esi, 0xffffffff
mov eax, esi
pop esi
ret 4
Function at 0x40e601
Capabilities:
Get socket status
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x510
push esi
xor esi, esi
jmp 0x40e671
mov dword [ebp + 0x74], esi
cmp dword [ebp - 0x98], esi
jbe 0x40e671
mov eax, dword [ebp + 0x74]
mov eax, dword [ebp + eax*4 - 0x94]
mov dword [ebp + 0x70], ebx
cmp eax, edi
je 0x40e630
mov dword [ebp + 0x70], edi
push esi
push 0x400
lea ecx, [ebp - 0x498]
push ecx
push eax
call dword [sym.imp.ws2_32.dll_recv]
cmp eax, 1
mov dword [ebp + 0x6c], eax
jl 0x40e6a1
push esi
push eax
lea eax, [ebp - 0x498]
push eax
push dword [ebp + 0x70]
call dword [sym.imp.ws2_32.dll_send]
cmp eax, dword [ebp + 0x6c]
jne 0x40e6a1
inc dword [ebp + 0x74]
mov eax, dword [ebp + 0x74]
cmp eax, dword [ebp - 0x98]
jb 0x40e61c
push esi
push esi
push esi
lea eax, [ebp - 0x98]
push eax
push esi
mov dword [ebp - 0x98], 2
mov dword [ebp - 0x94], edi
mov dword [ebp - 0x90], ebx
call dword [sym.imp.ws2_32.dll_select]
cmp eax, 1
jge 0x40e611
pop esi
add ebp, 0x78
leave
ret

Function at 0x40e6a7
Capabilities:
Get socket status
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x514
push ebx
push esi
xor esi, esi
mov dword [ebp + 0x60], esi
mov dword [ebp + 0x64], 0x186a0
jmp 0x40e73b
push esi
push dword [ebp + 0x7c]
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
test eax, eax
je 0x40e773
cmp ebx, esi
jle 0x40e73b
mov dword [ebp + 0x6c], esi
cmp dword [ebp - 0xa4], esi
jbe 0x40e73b
mov eax, dword [ebp + 0x6c]
mov eax, dword [ebp + eax*4 - 0xa0]
cmp eax, edi
jne 0x40e6f9
mov ecx, dword [ebp + 0x78]
mov dword [ebp + 0x68], ecx
jmp 0x40e6fc
mov dword [ebp + 0x68], edi
push esi
push 0x400
lea ecx, [ebp - 0x4a4]
push ecx
push eax
call dword [sym.imp.ws2_32.dll_recv]
mov ebx, eax
cmp ebx, 1
jl 0x40e773
push esi
push ebx
lea eax, [ebp - 0x4a4]
push eax
push dword [ebp + 0x68]
call dword [sym.imp.ws2_32.dll_send]
cmp eax, ebx
jne 0x40e773
inc dword [ebp + 0x6c]
mov eax, dword [ebp + 0x6c]
cmp eax, dword [ebp - 0xa4]
jb 0x40e6e3
mov eax, dword [ebp + 0x78]
mov dword [ebp - 0x9c], eax
lea eax, [ebp + 0x60]
push eax
push esi
push esi
lea eax, [ebp - 0xa4]
push eax
push esi
mov dword [ebp - 0xa4], 2
mov dword [ebp - 0xa0], edi
call dword [sym.imp.ws2_32.dll_select]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40e6c2
pop esi
pop ebx
add ebp, 0x70
leave
ret 8
Function at 0x40e77c
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, eax
mov eax, dword [ebp + 0xc]
lea ecx, [esi + 1]
cmp ecx, 0x40
jae 0x40e810
test eax, eax
jbe 0x40e7b3
xor edx, edx
mov ebx, 0x3e8
div ebx
mov ebx, dword [ebp + 8]
imul edx, edx, 0x3e8
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
push 4
push ebx
lea eax, [ebp - 0x108]
push eax
mov dword [ebp - 0x10c], ecx
call fcn.0040d2eb
test esi, esi
jbe 0x40e7e1
mov eax, esi
shl eax, 2
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x104]
push eax
call fcn.0040d2eb
xor eax, eax
cmp eax, dword [ebp + 0xc]
lea ecx, [ebp - 8]
sbb eax, eax
and eax, ecx
push eax
push 0
push 0
lea eax, [ebp - 0x10c]
push eax
push 0
call dword [sym.imp.ws2_32.dll_select]
test eax, eax
jne 0x40e819
push 0x274c
call dword [sym.imp.ws2_32.dll_WSASetLastError]
or eax, 0xffffffff
pop esi
pop ebx
leave
ret 0xc
cmp eax, 0xffffffff
je 0x40e810
xor esi, esi
push dword [ebx + esi*4]
lea eax, [ebp - 0x10c]
call fcn.0040e46c
test al, al
jne 0x40e83a
inc esi
cmp esi, 1
jb 0x40e820
jmp 0x40e810
mov eax, dword [ebx + esi*4]
jmp 0x40e813

Function at 0x40e87a
Capabilities:
Create udp socket

Disassembly:
movzx eax, word [edi]
push esi
push 0x11
push 2
push eax
call dword [sym.imp.ws2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x40e8aa
push dword [esp + 8]
push edi
push esi
call dword [sym.imp.ws2_32.dll_bind]
test eax, eax
je 0x40e8aa
push esi
call dword [sym.imp.ws2_32.dll_closesocket]
or esi, 0xffffffff
mov eax, esi
pop esi
ret 4

Function at 0x40e8b0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
cmp dword [ebp + 0xc], 0xffffffff
je 0x40e948
test byte [ebp + 0x14], 2
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x4c]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 4], 0x26
je 0x40e8ea
call dword [sym.imp.ws2_32.dll_getpeername]
test eax, eax
je 0x40e8f2
or eax, 0xffffffff
jmp 0x40e9aa
call dword [sym.imp.ws2_32.dll_getsockname]
jmp 0x40e8de
cmp word [ebp - 0x4c], 2
jne 0x40e91d
push 4
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x20]
push eax
mov byte [ebp + 0xf], 1
call fcn.0040d2eb
push 2
lea eax, [ebp - 0x4a]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.0040d2eb
jmp 0x40e96a
cmp word [ebp - 0x4c], 0x17
jne 0x40e8e2
push 0x10
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x20]
push eax
mov byte [ebp + 0xf], 4
call fcn.0040d2eb
push 2
lea eax, [ebp - 0x4a]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0040d2eb
jmp 0x40e95d
push 0x1c
lea eax, [ebp - 0x20]
push eax
call fcn.0040d35b
test byte [ebp + 0x14], 1
je 0x40e966
mov byte [ebp + 0xf], 4
mov dword [ebp - 4], 0x12
jmp 0x40e971
mov byte [ebp + 0xf], 1
mov dword [ebp - 4], 6
mov al, byte [ebp + 0x10]
mov byte [ebp + 0xd], al
push 4
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x24]
push eax
mov byte [ebp + 0xc], 5
mov byte [ebp + 0xe], 0
call fcn.0040d2eb
mov eax, dword [ebp - 4]
add eax, 4
push eax
lea eax, [ebp - 0x24]
push eax
push dword [ebp + 8]
call fcn.0040e568
xor ecx, ecx
test al, al
setne cl
mov eax, ecx
leave
ret 0x10
Function at 0x40f1f1
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
cmp dword [ebp + 0xc], 0xffffffff
je 0x40f238
test byte [ebp + 0x14], 2
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 4], 0x10
je 0x40f224
call dword [sym.imp.ws2_32.dll_getpeername]
test eax, eax
je 0x40f22c
or eax, 0xffffffff
jmp 0x40f263
call dword [sym.imp.ws2_32.dll_getsockname]
jmp 0x40f21b
mov eax, dword [ebp - 0x18]
mov dword [ebp - 8], eax
mov ax, word [ebp - 0x1a]
jmp 0x40f23e
and dword [ebp - 8], 0
xor eax, eax
mov word [ebp - 0xa], ax
mov al, byte [ebp + 0x10]
mov byte [ebp - 0xb], al
push 8
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
mov byte [ebp - 0xc], 0
call fcn.0040e568
xor ecx, ecx
test al, al
setne cl
mov eax, ecx
leave
ret 0x10
Function at 0x40f5fe
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
sub esp, 0x218
push ebx
xor ebx, ebx
push esi
cmp eax, ebx
je 0x40f614
mov dword [eax], ebx
push 0x4035c8
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.kernel32.dll_lstrcpyW]
push dword [ebp + 8]
lea eax, [ebp - 0x206]
push eax
call dword [sym.imp.kernel32.dll_lstrcpyW]
mov byte [ebp + 0xb], bl
mov esi, 0xc0000000
jmp 0x40f65c
cmp byte [ebp + 0xb], 1
je 0x40f725
push 0xffffffffffffffff
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.kernel32.dll_WaitNamedPipeW]
inc byte [ebp + 0xb]
push ebx
push ebx
push 3
push ebx
push 3
push esi
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.kernel32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x40f640
push ebx
push ebx
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
mov dword [ebp - 8], 2
call dword [sym.imp.kernel32.dll_SetNamedPipeHandleState]
test eax, eax
je 0x40f71c
mov eax, dword [ebp + 0xc]
push ebx
mov dword [ebp - 0x10], eax
lea eax, [ebp - 8]
push eax
push 8
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 4]
mov dword [ebp - 0xc], ebx
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x40f71c
push ebx
lea eax, [ebp - 8]
push eax
push 8
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 4]
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x40f71c
cmp dword [ebp - 8], 8
jne 0x40f71c
mov eax, dword [ebp - 0xc]
inc eax
cmp eax, ebx
jbe 0x40f6e7
call fcn.0040d29c
mov esi, eax
jmp 0x40f6e9
xor esi, esi
cmp esi, ebx
je 0x40f716
push ebx
lea eax, [ebp - 8]
push eax
push dword [ebp - 0xc]
push esi
push dword [ebp - 4]
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x40f716
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 8]
jne 0x40f716
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x40f71c
mov dword [eax], esi
jmp 0x40f71c
push esi
call fcn.0040d2af
push dword [ebp - 4]
call dword [sym.imp.kernel32.dll_CloseHandle]
pop esi
pop ebx
leave
ret 0xc
Function at 0x40f898
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
mov dword [ebp - 4], ebx
cmp dword [edi], ebx
jbe 0x40f8ee
mov esi, dword [ebp - 4]
mov eax, dword [edi + 4]
shl esi, 2
add eax, esi
cmp dword [eax], 0
je 0x40f8d1
push 0
push dword [eax]
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
test eax, eax
je 0x40f8d1
mov eax, dword [edi + 4]
mov ecx, dword [eax + esi]
mov dword [eax + ebx*4], ecx
inc ebx
jmp 0x40f8e4
mov eax, dword [edi + 4]
push dword [esi + eax]
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [edi + 4]
and dword [esi + eax], 0
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [edi]
jb 0x40f8a7
inc ebx
cmp dword [edi], ebx
je 0x40f90a
mov eax, ebx
shl eax, 2
lea esi, [edi + 4]
call fcn.0040d255
test al, al
jne 0x40f908
xor al, al
jmp 0x40f934
mov dword [edi], ebx
mov eax, dword [edi + 4]
lea ebx, [eax + ebx*4 - 4]
mov eax, 0x4106a2
mov ecx, eax
test ecx, ecx
je 0x40f932
xor ecx, ecx
push ecx
push ecx
push dword [ebp + 8]
push eax
push ecx
push ecx
call dword [sym.imp.kernel32.dll_CreateThread]
test eax, eax
je 0x40f904
mov dword [ebx], eax
mov al, 1
pop esi
pop ebx
leave
ret 4
Function at 0x40fe0c
Capabilities:
Clear file content
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
push ebx
push edi
xor edi, edi
push edi
push 2
push 4
push edi
push 1
push 0xc0000000
push dword [ebp + 8]
mov byte [esp + 0x27], 0
call dword [sym.imp.kernel32.dll_CreateFileW]
or ebx, 0xffffffff
mov dword [esi], eax
cmp eax, ebx
je 0x40ff73
lea ecx, [esp + 0x20]
push ecx
push eax
call dword [sym.imp.kernel32.dll_GetFileSizeEx]
test eax, eax
je 0x40fe63
mov eax, dword [esp + 0x20]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x1c], eax
jmp 0x40fe6b
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov eax, dword [esp + 0x18]
and eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x40fea6
mov eax, dword [esp + 0x18]
or eax, dword [esp + 0x1c]
je 0x40ff5c
push edi
lea eax, [esp + 0x10]
push eax
push 5
lea eax, [esp + 0x1c]
push eax
push dword [esi]
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x40feb8
push dword [esi]
call dword [sym.imp.kernel32.dll_CloseHandle]
or dword [esi], 0xffffffff
jmp 0x40ff73
xor edi, edi
cmp dword [esp + 0xc], edi
je 0x40ff5c
cmp dword [esp + 0xc], 5
jne 0x40ff34
mov eax, dword [esp + 0x10]
xor eax, dword [esi + 0x10]
xor ecx, ecx
mov ebx, eax
add ebx, dword [esp + 0x20]
mov edi, ecx
adc edi, dword [esp + 0x24]
add ebx, 5
adc edi, ecx
mov dword [esp + 0x10], eax
cmp edi, dword [esp + 0x1c]
ja 0x40ff32
jb 0x40fef5
cmp ebx, dword [esp + 0x18]
ja 0x40ff32
cmp eax, 0xa00000
ja 0x40ff32
push 1
push ecx
push eax
push dword [esi]
call fcn.0040df3d
test al, al
je 0x40fea6
push 0
lea eax, [esp + 0x10]
push eax
push 5
lea eax, [esp + 0x1c]
push eax
push dword [esi]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], edi
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x40feb6
jmp 0x40fea6
xor edi, edi
push edi
push dword [esp + 0x28]
push dword [esp + 0x28]
push dword [esi]
call fcn.0040df3d
test al, al
je 0x40fea6
push dword [esi]
call dword [sym.imp.kernel32.dll_SetEndOfFile]
test eax, eax
je 0x40fea6
or dword [esi + 8], 0xffffffff
or dword [esi + 0xc], 0xffffffff
push edi
push edi
push edi
push dword [esi]
mov byte [esp + 0x1b], 1
call fcn.0040df3d
mov al, byte [esp + 0xb]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40ff9d
Capabilities:
Clear file content
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
xor ebx, ebx
mov byte [ebp - 1], bl
cmp edi, 0xa00000
ja 0x410071
push dword [esi]
call fcn.0040df5d
mov dword [ebp - 0x20], eax
and eax, edx
mov dword [ebp - 0x1c], edx
cmp eax, 0xffffffff
je 0x410071
push 2
push ebx
push ebx
push dword [esi]
call fcn.0040df3d
test al, al
je 0x410071
push dword [esi]
call fcn.0040df5d
mov dword [ebp - 0x18], eax
and eax, edx
mov dword [ebp - 0x14], edx
cmp eax, 0xffffffff
je 0x41005b
push 5
push ebx
lea eax, [ebp - 0x10]
push eax
call fcn.0040d36d
mov eax, dword [esi + 0x10]
xor eax, edi
push ebx
mov dword [ebp - 0x10], eax
lea eax, [ebp - 8]
push eax
push 5
lea eax, [ebp - 0x10]
push eax
push dword [esi]
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x410045
cmp dword [ebp - 8], 5
jne 0x410045
push ebx
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x410045
cmp dword [ebp - 8], edi
jne 0x410045
mov byte [ebp - 1], 1
jmp 0x41005b
push ebx
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [esi]
call fcn.0040df3d
push dword [esi]
call dword [sym.imp.kernel32.dll_SetEndOfFile]
push dword [esi]
call dword [sym.imp.kernel32.dll_FlushFileBuffers]
push ebx
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [esi]
call fcn.0040df3d
mov al, byte [ebp - 1]
pop ebx
leave
ret 4
Function at 0x410079
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x18
push ebx
push edi
push dword [esi]
call fcn.0040df5d
xor edi, edi
jmp 0x4100db
cmp dword [esp + 8], edi
je 0x410101
cmp dword [esp + 8], 5
jne 0x410183
mov eax, dword [esp + 0x10]
xor eax, dword [esi + 0x10]
mov dword [esp + 0x10], eax
cmp eax, 0xa00000
ja 0x410183
test byte [esp + 0x14], 1
jne 0x4100c1
cmp eax, edi
jne 0x41010a
push 1
push edi
push eax
push dword [esi]
call fcn.0040df3d
test al, al
je 0x410183
push dword [esi]
call fcn.0040df5d
push edi
mov dword [esp + 0x1c], eax
lea eax, [esp + 0xc]
push eax
push 5
lea eax, [esp + 0x1c]
push eax
push dword [esi]
mov dword [esp + 0x30], edx
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x41008f
jmp 0x410183
mov eax, dword [ebp + 0xc]
mov dword [eax], edi
mov al, 1
jmp 0x410185
jbe 0x41011b
call fcn.0040d29c
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x10]
jmp 0x41011f
mov dword [esp + 0xc], edi
cmp dword [esp + 0xc], edi
je 0x410183
push edi
lea ecx, [esp + 0xc]
push ecx
push eax
push dword [esp + 0x18]
push dword [esi]
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x41017a
mov edi, dword [esp + 0x10]
cmp dword [esp + 8], edi
jne 0x41017a
push dword [ebp + 0x10]
mov eax, dword [esp + 0x10]
xor ebx, ebx
call fcn.0040fce3
mov dword [esp + 8], eax
test eax, eax
je 0x41017a
mov ecx, dword [ebp + 8]
mov edx, dword [esp + 0xc]
mov dword [ecx], edx
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov eax, dword [esp + 0x18]
mov dword [esi + 8], eax
mov eax, dword [esp + 0x1c]
mov dword [esi + 0xc], eax
jmp 0x410106
push dword [esp + 0xc]
call fcn.0040d2af
xor al, al
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x41018d
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [esi + 8]
and eax, dword [esi + 0xc]
push ebx
xor ebx, ebx
mov byte [esp + 0xb], bl
cmp eax, 0xffffffff
je 0x41024c
push dword [esi]
call fcn.0040df5d
mov dword [esp + 0x18], eax
and eax, edx
mov dword [esp + 0x1c], edx
cmp eax, 0xffffffff
je 0x41024c
push ebx
push dword [esi + 0xc]
push dword [esi + 8]
push dword [esi]
call fcn.0040df3d
test al, al
je 0x41024c
push ebx
lea eax, [esp + 0x10]
push eax
push 5
lea eax, [esp + 0x1c]
push eax
push dword [esi]
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x41023c
cmp dword [esp + 0xc], 5
jne 0x41023c
or byte [esp + 0x14], 1
push ebx
push dword [esi + 0xc]
push dword [esi + 8]
push dword [esi]
call fcn.0040df3d
test al, al
je 0x41023c
push ebx
lea eax, [esp + 0x10]
push eax
push 5
lea eax, [esp + 0x1c]
push eax
push dword [esi]
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x41023c
cmp dword [esp + 0xc], 5
jne 0x41023c
push dword [esi]
call dword [sym.imp.kernel32.dll_FlushFileBuffers]
mov byte [esp + 0xb], 1
push ebx
push dword [esp + 0x20]
push dword [esp + 0x20]
push dword [esi]
call fcn.0040df3d
mov al, byte [esp + 0xb]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x410305
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
cmp dword [esi], 0
push ebx
push edi
mov bl, 1
mov byte [ebp - 5], 0
jne 0x410331
call fcn.0040f968
mov dword [esi], eax
test eax, eax
jne 0x41032d
xor al, al
jmp 0x41052d
mov byte [ebp - 5], 1
test byte [ebp + 8], 1
je 0x4103a7
mov ecx, dword [0x411c8c]
lea edi, [ebp - 0x11c]
call fcn.0040d649
mov eax, dword [0x411b04]
movzx cx, byte [eax + 8]
mov word [ebp - 0x4c], cx
movzx cx, byte [eax + 9]
mov word [ebp - 0x4a], cx
movzx cx, byte [eax + 0xa]
mov word [ebp - 0x48], cx
movzx ax, byte [eax + 0xb]
mov word [ebp - 0x46], ax
xor eax, eax
mov word [ebp - 0x44], ax
mov eax, edi
push eax
push 0x2711
push esi
call fcn.0040f9e7
mov bl, al
test bl, bl
je 0x4103c9
cmp word [ebp - 0x4c], 0
je 0x4103a3
lea eax, [ebp - 0x4c]
push eax
push 0x2712
push esi
call fcn.0040f9e7
mov bl, al
test bl, bl
je 0x4103c9
test byte [ebp + 8], 2
je 0x4103c9
lea eax, [ebp - 0xc]
push eax
push 4
pop edi
mov ebx, 0x2713
mov eax, esi
mov dword [ebp - 0xc], 0x1030403
call fcn.0040f97b
mov bl, al
test byte [ebp + 8], 4
je 0x410439
test bl, bl
je 0x41051b
call fcn.0040d384
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 4
pop edi
mov ebx, 0x2719
mov eax, esi
call fcn.0040f97b
mov bl, al
test bl, bl
je 0x41051b
call fcn.0040d3c6
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
mov ebx, 0x271b
mov eax, esi
call fcn.0040f97b
mov bl, al
test bl, bl
je 0x41051b
call dword [sym.imp.kernel32.dll_GetTickCount]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
mov ebx, 0x271a
mov eax, esi
call fcn.0040f97b
mov bl, al
test bl, bl
je 0x41051b
test byte [ebp + 8], 8
je 0x4104d7
lea eax, [ebp - 0x16c]
push eax
mov dword [ebp - 0x16c], 0x11c
call dword [sym.imp.kernel32.dll_GetVersionExW]
mov eax, dword [ebp - 0x168]
movzx ecx, word [ebp - 0x58]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x164]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x160]
mov dword [ebp - 0x18], eax
movzx eax, word [ebp - 0x56]
shl eax, 0x10
or eax, ecx
movzx ecx, word [ebp - 0x54]
mov dword [ebp - 0x14], eax
movzx eax, byte [ebp - 0x52]
shl eax, 0x10
or eax, ecx
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x20]
push eax
push 0x14
pop edi
mov ebx, 0x271c
mov eax, esi
call fcn.0040f97b
mov bl, al
test bl, bl
je 0x41051b
call dword [sym.imp.kernel32.dll_GetUserDefaultUILanguage]
movzx eax, ax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 2
pop edi
mov ebx, 0x271d
mov eax, esi
call fcn.0040f97b
mov bl, al
test bl, bl
je 0x41051b
test byte [ebp + 8], 0x10
je 0x410517
push 0x103
lea eax, [ebp - 0x254]
push eax
push 0
call dword [sym.imp.kernel32.dll_GetModuleFileNameW]
test eax, eax
jbe 0x410517
xor ecx, ecx
mov word [ebp + eax*2 - 0x254], cx
lea eax, [ebp - 0x254]
push eax
push 0x271e
push esi
call fcn.0040f9e7
mov bl, al
test bl, bl
jne 0x41052b
cmp byte [ebp - 5], 1
jne 0x41052b
push dword [esi]
call fcn.0040d2af
and dword [esi], 0
mov al, bl
pop edi
pop ebx
leave
ret 4