joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4065a1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x4065c6
mov eax, dword [0x40a920]
cmp eax, 0xffffffff
je 0x4065bd
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [0x40a920], 0xffffffff
jmp 0x406639
cmp dword [0x424300], ebx
je 0x406639
cmp byte [0x423f00], bl
je 0x406605
cmp dword [0x40a920], 0xffffffff
jne 0x40660e
push 4
push 0x40000000
push 0x423f00
call fcn.00405f2e
cmp eax, 0xffffffff
mov dword [0x40a920], eax
je 0x406639
push 2
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp dword [0x40a920], 0xffffffff
je 0x406639
push esi
mov esi, 0x424b20
push 0x40ab98
push esi
call sub.KERNEL32.dll_lstrcatA
lea eax, [ebp + 8]
push ebx
push eax
push esi
call sub.KERNEL32.dll_lstrlenA
push eax
push esi
push dword [0x40a920]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop ebx
pop ebp
ret 4

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

Disassembly:
cmp dword [0x423b04], 0
push esi
jne 0x40681e
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4067f8
mov dword [ecx*4 + 0x423b00], eax
inc ecx
cmp ecx, 0x100
jl 0x4067f3
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x40684f
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x423b00]
xor eax, esi
inc ecx
dec edx
jne 0x406831
pop edi
not eax
pop esi
ret 0xc
Function at 0x431147
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x445018]
jne 0x431151
repz ret
jmp fcn.004315bc
Function at 0x4dcda7
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x101e09e0
mov edx, 0x811c9dc5
cmp dword [eax], 0
cmovne ecx, dword [eax]
jmp 0x4dcdcb
Function at 0x4f44cb
Capabilities:
Terminate process

Disassembly:
push ecx
push 0x10206d08
push 2
call fcn.00514e7f
pop ecx
push eax
call fcn.00403424
add esp, 0xc
push 2
call fcn.00514da1
int3

Function at 0x4ffc68
Capabilities:
Terminate process

Disassembly:
push 0x408
push 0x10209eb0
push 0x10209c74
call fcn.004033f8
add esp, 0xc
push 1
call fcn.00514da1
int3

Function at 0x501aec
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, ecx
mov dword [ebp - 0x10], edx
mov dword [ebp - 8], eax
xor ecx, ecx
imul eax, edx
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
cmp eax, 0x20
mov dword [ebp - 0x1c], eax
setl cl
xor esi, esi
mov dword [ebp - 0x14], ecx
lea ecx, [ebx + 8]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0xc], ecx
test edx, edx
jle 0x501b5d
mov ebx, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
xor edi, edi
test eax, eax
jle 0x501b52
mov ecx, dword [ebp + 0xc]
mov edx, edi
push ebx
push dword [ebp + 8]
push esi
call fcn.005018d5
mov ecx, dword [ebp - 0xc]
add esp, 0xc
mov byte [ecx], al
inc ecx
mov eax, dword [ebp - 8]
inc edi
mov dword [ebp - 0xc], ecx
cmp edi, eax
jl 0x501b2c
mov edx, dword [ebp - 0x10]
inc esi
cmp esi, edx
jl 0x501b26
mov ebx, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x1c]
lea edi, [ebp - 0x2c]
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov dword [ebp + 0x10], eax
test esi, esi
jle 0x501b9e
movzx edx, byte [ecx + eax]
mov ecx, dword [ebp + 0x10]
imul eax, edx, 0xd8
add eax, dword [ebp + edx*4 - 0x2c]
inc dword [ebp + edx*4 - 0x2c]
mov byte [eax + ebx + 0xe0], cl
mov eax, ecx
inc eax
lea ecx, [ebx + 8]
mov dword [ebp + 0x10], eax
cmp eax, esi
jl 0x501b72
mov edx, dword [ebp - 0x10]
xor esi, esi
mov ecx, esi
mov al, byte [ebp + ecx*4 - 0x2c]
mov byte [ebx + ecx + 4], al
inc ecx
cmp ecx, 4
jl 0x501ba2
cmp dword [ebp - 0x2c], esi
jne 0x501bb9
mov dword [ebx], esi
jmp 0x501be0
cmp dword [ebp - 0x28], esi
jne 0x501bc6
mov dword [ebx], 1
jmp 0x501be0
cmp dword [ebp - 0x24], esi
jne 0x501bd3
mov dword [ebx], 2
jmp 0x501be0
xor eax, eax
cmp dword [ebp - 0x20], eax
setne al
add eax, 3
mov dword [ebx], eax
lea edi, [ebx + 0x440]
mov dword [edi], esi
mov dword [edi + 4], esi
mov esi, edi
push 6
pop ecx
add edi, 8
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 8]
call fcn.005016dd
xor ecx, ecx
mov dword [ebp + 0x10], ecx
mov edx, dword [eax + 0x6838]
mov dword [ebp - 0x1c], edx
test edx, edx
jle 0x501c50
lea edi, [eax + 0x683c]
mov eax, dword [edi]
xor edx, edx
lea edi, [edi + 4]
movzx esi, byte [eax + ebx + 8]
mov eax, ecx
xor ecx, ecx
bts ecx, eax
cmp eax, 0x20
cmovae edx, ecx
xor ecx, edx
cmp eax, 0x40
cmovae edx, ecx
or dword [ebx + esi*8 + 0x440], ecx
mov ecx, dword [ebp + 0x10]
or dword [ebx + esi*8 + 0x444], edx
inc ecx
mov dword [ebp + 0x10], ecx
cmp ecx, dword [ebp - 0x1c]
jl 0x501c15
pop edi
pop esi
pop ebx
leave
ret

Function at 0x524b75
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005249eb
Function at 0x5b5e02
Capabilities:
Encode data using base64

Disassembly:
cmp byte [edi], 0
add byte [eax - 0x7fffffc1], al
aas
add byte [eax], al
cmp byte [edi], 0
add byte [eax - 0x7fffffc1], al
aas
add byte [eax], al
cmp byte [edi], 0
add byte [eax - 0x7fffffc1], al
aas
add byte [eax], al
cmp byte [edi], 0
add byte [eax + 0x4710cb3f], al
aas
add byte [eax], al
cmp byte [edi], 0
add byte [eax - 0x7fffffc1], al
aas
add byte [eax], al
cmp byte [edi], 0
add byte [eax - 0x7fffffc1], al
aas
add byte [eax], al
cmp byte [edi], 0
add byte [eax - 0x7fffffc1], al
aas
add byte [eax], al
cmp byte [edi], 0
add byte [eax - 0x7fffffc1], al
aas
add byte [eax], al
cmp byte [edi], 0
add byte [eax - 0x7fffffc1], al
aas
nop
xor dword [edi + 0x3f], edx
add byte [eax], al
cmp byte [edi], 0
add byte [eax - 0x7fffffc1], al
aas
add byte [eax], al
cmp byte [edi], 0
add byte [eax - 0x7fffffc1], al
aas
add byte [eax], al
cmp byte [edi], 0
add byte [eax - 0x7fffffc1], al
aas
add byte [eax], al
cmp byte [edi], 0
add byte [eax - 0x7fffffc1], al
aas
add byte [eax], al
cmp byte [edi], 0
add byte [eax - 0x7fffffc1], al
aas
cmp al, 0x7d
aas
fnstsw ax
jnp 0x5b5ef3
aad 9
js 0x5b5ef7
mov esp, 0x9a3f6096
ja 0x5b5edb
aas
jg 0x5b5f2c
pop esp
aas
pop edi
sub dword [ebx + 0x3f], edi
jmp 0x87998e84
cmp byte [edi], 0
add byte [eax - 0x7fffffc1], al
aas
add byte [eax], al
cmp byte [edi], 0
add byte [eax + 0x76a7f03f], al
aas
aas
add byte [eax], al
cmp byte [edi], 0
add byte [eax - 0x7fffffc1], al
aas
add byte [eax], al
cmp byte [edi], 0xf0
cmpsd dword [esi], dword es:[edi]
jbe 0x5b5f2f
notrack call 0xde5c9e6f
aas
add esi, ebx
push edx
aas
xchg cl, cl
add al, 0x3f
push ss
push 0x3d
aas
inc ebx
lodsd eax, dword [esi]
jns 0x5b5f43
add byte [eax], al
cmp byte [edi], 0
add byte [eax + 0x2439583f], al
aas
pop esi
dec ebx
pop eax
aas
add byte [eax], al
cmp byte [edi], 0
add byte [eax - 0x7fffffc1], al
aas
add byte [eax], al
add byte [eax - 0x7fffffc1], al
aas
add byte [eax], al
invalid
aas
jno 0x5b5eda
sub edi, dword [edi]
aas
dec esi
bound esp, qword [eax + 0x3f]
mov bl, byte [edi]
jae 0x5b5f77
mov cl, 0xe1
pop ecx
aas
add byte [eax], al
cmp byte [edi], 0
add byte [eax - 0x7fffffc1], al
aas
add byte [eax], al
cmp byte [edi], 0
add byte [eax - 0x7fffffc1], al
aas
add byte [eax], al
cmp byte [edi], 0
add byte [eax - 0x7fffffc1], al
aas
jb 0x5b5f5b
aas
add byte [eax], al
cmp byte [edi], 0
add byte [eax - 0x7fffffc1], al
aas
add byte [eax], al
cmp byte [edi], 0
add byte [eax - 0x7fffffc1], al
aas
add byte [eax], al
cmp byte [edi], 0x72
stc
jg 0x5b5fa3
add byte [eax], al
cmp byte [edi], 0
add byte [eax + 0x5068dc3f], al
aas
aas
aas
jb 0x5b5f9f
Function at 0x402200
Capabilities:
Hide graphical window

Disassembly:
push esi
push edi
push 0xfffffffffffffff0
push dword [esp + 0x10]
mov esi, ecx
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov cl, byte [esi + 8]
mov edi, eax
test edi, 0x10000000
je 0x402242
push dword [esp + 0xc]
or cl, 4
mov byte [esi + 8], cl
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x40223d
test edi, 0x21000000
jne 0x40223d
or byte [esi + 8], 2
mov cl, byte [esi + 8]
jmp 0x402248
and cl, 0xfd
mov byte [esi + 8], cl
test cl, 2
je 0x402259
mov ecx, esi
call fcn.00402980
pop edi
pop esi
ret 4
push 0
push dword [esi + 0x40]
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
ret 4

Function at 0x403fc0
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x528488
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x583184]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [esi + 8]
test edi, edi
jne 0x403ffb
xor al, al
jmp 0x40409e
add edi, 0x20
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x14], edi
je 0x404017
mov eax, dword [edi]
test eax, eax
je 0x404017
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], 0
mov eax, dword [esi + 8]
cmp dword [eax + 4], 0
je 0x40407b
push 1
lea ebx, [esi + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
mov eax, dword [esi + 8]
add eax, 0xc
push eax
push 4
push esi
push 0x403ae0
push 0
push 0
call fcn.00519f37
mov ecx, dword [esi + 8]
add esp, 0x18
mov dword [ecx + 0x10], eax
mov eax, dword [esi + 8]
cmp dword [eax + 0x10], 0
jne 0x4040ba
mov eax, dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
push 0xffffffffffffffff
push ebx
call eax
sub eax, 1
jne 0x404073
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [esi + 8]
call fcn.00403ca0
xor bl, bl
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x40409c
mov eax, dword [edi]
test eax, eax
je 0x404095
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x14], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00500396
mov esp, ebp
pop ebp
ret
mov byte [eax + 8], 1
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x4040d2
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [esi + 8]
push dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x40405d
mov bl, 1
jmp 0x40407d
Function at 0x404d20
Capabilities:
Check mutex on windows

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi]
test eax, eax
je 0x404d36
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
mov eax, dword [esp + 8]
mov word [esi + 4], 0
cmp dword [eax + 0x10], 0
je 0x404d50
cmp dword [eax + 0x14], 8
jb 0x404d52
mov eax, dword [eax]
jmp 0x404d52
xor eax, eax
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
test eax, eax
je 0x404d74
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x404d74
mov byte [esi + 5], 1
cmp dword [esi], 0
pop esi
setne al
ret 4

Function at 0x404d80
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x528608
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x583184]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
mov ebx, dword [ebp + 8]
test eax, eax
je 0x404dc3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
lea ecx, [ebp - 0x14]
mov word [edi + 4], 0
mov dword [ebp - 0x14], 0
call fcn.00422320
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
cmp dword [esi], 0
je 0x404dec
lea eax, [esi + 8]
jmp 0x404dee
xor eax, eax
cmp dword [ebx + 0x10], 0
je 0x404dfe
cmp dword [ebx + 0x14], 8
jb 0x404e00
mov ebx, dword [ebx]
jmp 0x404e00
xor ebx, ebx
push ebx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi], eax
test eax, eax
je 0x404e21
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x404e21
mov byte [edi + 5], 1
cmp dword [edi], 0
setne bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x404e4a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x404e5f
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 4], 0
push 0x2c
push esi
call fcn.00500671
add esp, 8
mov dword [ebp - 0x14], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00500396
mov esp, ebp
pop ebp
ret 4
Function at 0x404ea0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x528638
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x583184]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
mov ebx, dword [ebp + 8]
test eax, eax
je 0x404ee3
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi], 0
push ecx
lea ecx, [ebp - 0x14]
mov word [edi + 4], 0
mov dword [ebp - 0x14], 0
call fcn.00422450
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
cmp dword [esi], 0
je 0x404f0d
lea ecx, [esi + 8]
jmp 0x404f0f
xor ecx, ecx
cmp dword [ebx + 0x10], 0
mov dword [ebp - 0x18], ecx
je 0x404f24
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x404f26
mov eax, dword [ebx]
jmp 0x404f26
xor eax, eax
push eax
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ecx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
test eax, eax
jne 0x404f71
call ecx
cmp eax, 5
jne 0x404f6b
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebx + 0x10], 0
je 0x404f5b
cmp dword [ebx + 0x14], 8
jb 0x404f5d
mov ebx, dword [ebx]
jmp 0x404f5d
xor ebx, ebx
push ebx
push 0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [edi], eax
mov ecx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [edi]
test eax, eax
je 0x404f8f
call ecx
cmp eax, 0xb7
jne 0x404f84
mov byte [edi + 5], 1
mov ecx, dword [edi]
call fcn.0041e190
mov eax, dword [edi]
test eax, eax
setne bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x404fb5
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x404fca
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 4], 0
push 0x2c
push esi
call fcn.00500671
add esp, 8
mov dword [ebp - 0x14], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00500396
mov esp, ebp
pop ebp
ret 4
Function at 0x4099e0
Capabilities:
Copy file

Disassembly:
mov edx, dword [esp + 8]
mov ecx, dword [esp + 4]
jmp fcn.00423140

Function at 0x4099f0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x528998
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x583184]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x409a26
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x409a3a
mov al, 1
jmp 0x409b23
xor eax, eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
mov dword [ebp - 4], eax
lea edx, [ebp - 0x2c]
mov ecx, esi
call fcn.00423c40
test al, al
je 0x409ad0
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
push 0
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x409ad0
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x409ac6
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x409abc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409b3d
push edx
push ecx
call fcn.00500671
add esp, 8
xor eax, eax
mov word [ebp - 0x2c], ax
mov al, 1
jmp 0x409b15
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x409b0d
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x409b03
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x409b42
push edx
push ecx
call fcn.00500671
add esp, 8
xor eax, eax
mov word [ebp - 0x2c], ax
xor al, al
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00500396
mov esp, ebp
pop ebp
ret
call fcn.005047a9
call fcn.005047a9
int3

Function at 0x409e40
Capabilities:
Get common file path

Disassembly:
sub esp, 0x418
mov eax, dword [0x583184]
xor eax, esp
mov dword [esp + 0x414], eax
push esi
mov esi, dword [esp + 0x420]
mov eax, esi
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x409e6d
mov eax, dword [esi]
xor ecx, ecx
push 0x412
mov word [eax], cx
lea eax, [esp + 8]
push ecx
push eax
call fcn.00502c60
add esp, 0xc
lea eax, [esp + 4]
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x409eb1
xor al, al
pop esi
mov ecx, dword [esp + 0x414]
xor ecx, esp
call fcn.00500396
add esp, 0x418
ret
cmp eax, 0x208
jae 0x409e99
xor eax, eax
lea edx, [esp + 4]
mov word [esp + 0x414], ax
lea ecx, [edx + 2]
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x409ed0
sub edx, ecx
lea eax, [esp + 4]
sar edx, 1
mov ecx, esi
push edx
push eax
call fcn.00404420
mov ecx, dword [esp + 0x418]
mov al, 1
pop esi
xor ecx, esp
call fcn.00500396
add esp, 0x418
ret
Function at 0x40cfe0
Capabilities:
Check os version
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x140
mov eax, dword [0x583184]
xor eax, esp
mov dword [esp + 0x13c], eax
push esi
mov esi, dword [esp + 0x148]
push 0x118
push 0
lea eax, [esi + 4]
push eax
call fcn.00502c60
add esp, 0xc
mov dword [esi], 0x11c
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40d127
cmp dword [esi + 4], 6
push edi
ja 0x40d03b
jne 0x40d0c3
cmp dword [esi + 8], 2
jb 0x40d0c3
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
test edi, edi
je 0x40d0c3
push 0x10
push 1
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x40d0c3
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x40d0c3
movups xmm0, xmmword [0x559b80]
push eax
movups xmmword [esp + 0x128], xmm0
movups xmm0, xmmword [0x559b90]
movups xmmword [esp + 0x138], xmm0
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x40d0c3
lea eax, [esp + 0x124]
push eax
lea ecx, [edi + 6]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40d0c3
cmp word [edi + 2], ax
jbe 0x40d0c3
movzx edx, word [edi + 0x32]
movzx ecx, word [edi + 0x30]
movzx eax, word [edi + 0x36]
mov dword [esi + 4], edx
mov dword [esi + 8], ecx
mov dword [esi + 0xc], eax
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.RtlGetVersion
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x40d10e
push 0x118
lea eax, [esp + 0x10]
push 0
push eax
call fcn.00502c60
add esp, 0xc
mov dword [esp + 8], 0x11c
lea eax, [esp + 8]
push eax
call edi
test eax, eax
jne 0x40d10e
mov eax, dword [esp + 0x14]
mov dword [esi + 0xc], eax
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x13c]
xor ecx, esp
call fcn.00500396
add esp, 0x140
ret
mov ecx, dword [esp + 0x140]
xor al, al
pop esi
xor ecx, esp
call fcn.00500396
add esp, 0x140
ret
Function at 0x410790
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5295f8
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x583184]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
xorps xmm0, xmm0
movq qword [ebp - 0x30], xmm0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x30]
push eax
call fcn.0040fbc0
test al, al
jne 0x4107ff
xor bl, bl
jmp 0x410986
lea ecx, [ebp - 0x5c]
call fcn.0040dd90
mov byte [ebp - 4], 1
add esi, 0x24
mov eax, dword [esi]
cmp eax, dword [esi + 4]
je 0x41083c
push esi
lea ecx, [ebp - 0x5c]
call fcn.00412460
lea eax, [esi + 0xc]
push eax
lea ecx, [ebp - 0x50]
call fcn.00412460
lea eax, [esi + 0x18]
push eax
lea ecx, [ebp - 0x44]
call fcn.00412460
mov eax, dword [esi + 0x24]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.0040f2e0
test al, al
jne 0x410854
xor bl, bl
jmp 0x41097a
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
movq qword [ebp - 0x24], xmm0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov byte [ebp - 4], 2
lea edx, [ebp - 0x24]
lea ecx, [ebp - 0x5c]
call fcn.0040e970
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x20]
je 0x410949
mov ecx, edi
call fcn.0041ad70
test al, al
je 0x410949
mov ecx, dword [ebp - 0x20]
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 0x24]
sub ecx, eax
push edx
push ecx
push eax
mov ecx, edi
mov dword [ebp - 0x18], 0
call fcn.0041abb0
test al, al
je 0x410949
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0x24]
cmp dword [ebp - 0x18], eax
jne 0x410949
mov esi, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x30]
sub esi, ebx
mov eax, dword [edi]
mov dword [ebp - 0x34], esi
test eax, eax
je 0x410949
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x410949
push 0
lea ecx, [ebp - 0x18]
push ecx
push 4
lea ecx, [ebp - 0x34]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x410949
cmp dword [ebp - 0x18], 4
jne 0x410949
cmp ebx, dword [ebp - 0x2c]
je 0x410921
lea eax, [ebp - 0x18]
mov ecx, edi
push eax
push esi
push ebx
call fcn.0041abb0
test al, al
je 0x410949
cmp dword [ebp - 0x18], esi
jne 0x410949
lea eax, [ebp - 0x64]
xorps xmm0, xmm0
push eax
mov ecx, edi
movlpd qword [ebp - 0x64], xmm0
call fcn.0041ac30
test al, al
je 0x410945
push dword [ebp - 0x60]
mov ecx, edi
push dword [ebp - 0x64]
call fcn.0041adc0
mov bl, 1
jmp 0x41094b
xor bl, bl
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x41097a
mov eax, dword [ebp - 0x1c]
sub eax, ecx
push eax
push ecx
call fcn.00403320
add esp, 8
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x5c]
call fcn.00410be0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.004125c0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00500396
mov esp, ebp
pop ebp
ret 4
Function at 0x418660
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [0x583184]
xor eax, esp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x18]
push ebx
push ebp
mov ebp, ecx
mov dword [esp + 8], eax
push esi
mov esi, dword [esp + 0x20]
xor ebx, ebx
push edi
cmp dword [ebp + 0x10], 0xffffffff
mov edi, dword [esp + 0x20]
je 0x4186e2
mov ecx, 0x100000
nop dword [eax]
nop word [eax + eax]
cmp esi, 0x100000
mov dword [esp + 0x14], 0
push 0
mov eax, esi
cmova eax, ecx
lea ecx, [esp + 0x18]
push ecx
push eax
push edi
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x14]
add ebx, ecx
test eax, eax
je 0x4186e2
test ecx, ecx
je 0x4186de
add edi, ecx
sub esi, ecx
mov ecx, 0x100000
jne 0x4186a0
xor eax, eax
jmp 0x4186e7
mov eax, 1
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x4186f1
mov dword [ecx], ebx
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00500396
add esp, 0xc
ret 0xc