joyce8/EMBER2024-capa huggingface dataset:
Function at 0x446260
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x446293
push esi
call fcn.00449370
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44628c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x446319
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x446302
mov eax, dword [esi + 8]
test eax, eax
je 0x4462b7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x4462fe
cmp eax, 2
je 0x446302
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4462aa
cmp eax, 3
je 0x4462dd
cmp eax, 1
jne 0x4462aa
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x4462aa
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4462aa
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00446340
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x446328
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00446340
add esp, 4
pop esi
ret

Function at 0x453090
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x453133
test eax, eax
jbe 0x453133
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x453133
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x4530de
xor esi, esi
jmp 0x4530e4
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x45310f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.0040eea0
add esi, eax
push esi
mov ebx, esi
call fcn.0040eea0
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x4530f0
pop ebp
test edi, edi
pop edi
jne 0x453133
test ebx, ebx
je 0x453133
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.00459230
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x453275
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x45338d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x45338d
mov eax, dword [esi + 0x3c]
push eax
call fcn.00469cee
mov esi, eax
test esi, esi
je 0x45338d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x45338d
mov ecx, esi
call fcn.004531e0
cmp edi, eax
jge 0x45338d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x453313
mov dword [esp + 0x34], 1
jmp 0x45336e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x45338d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.00451aa0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x46a691
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x46a6c9
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0046871e
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004686f6
jmp 0x46a6d5
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x46bd86
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x46bdc8
call fcn.00471836
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x46bdc8
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x46bdbf
xor eax, eax
jmp 0x46bdd0
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0046bdd6
pop edi
pop esi
pop ebx
ret 4
Function at 0x471d66
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x471d94
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x471db2
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00471ccc
jmp 0x471db2
mov eax, dword [esi + 0x14]
test eax, eax
je 0x471db2
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00471ccc
test edi, edi
mov eax, edi
jne 0x471d9c
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..rdata
push 4
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x433072
nop
mov ebx, 0x40de38
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x182a6ae6
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x433060
nop
mov eax, section..data
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4330d2
nop
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0xd837274
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219

Function at 0x403fd8
Capabilities:
Encode data using xor

Disassembly:
call 0x403e92
sub ecx, ecx
sub ecx, 0xffffff91
call 0x403fd8
rcr byte [esi - 0x7f], 0x76
push cs
inc edi
loopne 0x404014
xor dword [esi + 0xe], 0x7333e047
sub esi, 0xfffffffc
jae 0x403f66
out dx, al
cld
loop 0x403fdb
mov ebx, 0xf51cd05b
inc esp
fdivr dword [edi + 0x19]
mov dh, 2
insd dword es:[edi], dx
ljmp 0xc495
int1
push edi
in eax, 0xf6
push es
fnstcw word [edi]
fbld tbyte [ecx + 0x7b]
mov ecx, 0x332e22b2
cmp al, 0xa5
and cl, cl
invalid
Function at 0x401760
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push edx
push ecx
mov esi, dword [ebp + 0xc]
sub eax, eax
test esi, esi
je 0x401821
call fcn.00401866
mov edi, eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
not eax
test ecx, ecx
je 0x40181f
test esi, 3
je 0x4017a3
xor al, byte [esi]
inc esi
movzx ebx, al
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x40178c
mov edx, ecx
shr ecx, 3
je 0x401805
lea ebx, [ebx]
xor eax, dword [esi]
add esi, 4
movzx ebx, al
shr eax, 8
xor eax, dword [edi + ebx*4]
movzx ebx, al
shr eax, 8
xor eax, dword [edi + ebx*4]
movzx ebx, al
shr eax, 8
xor eax, dword [edi + ebx*4]
movzx ebx, al
shr eax, 8
xor eax, dword [edi + ebx*4]
xor eax, dword [esi]
add esi, 4
movzx ebx, al
shr eax, 8
xor eax, dword [edi + ebx*4]
movzx ebx, al
shr eax, 8
xor eax, dword [edi + ebx*4]
movzx ebx, al
shr eax, 8
xor eax, dword [edi + ebx*4]
movzx ebx, al
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x4017b0
mov ecx, edx
and ecx, 7
je 0x40181f
lea esp, [esp]
xor al, byte [esi]
inc esi
movzx ebx, al
shr eax, 8
xor eax, dword [edi + ebx*4]
dec ecx
jne 0x401810
not eax
pop ecx
pop edx
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x403375
Capabilities:
Terminate process

Disassembly:
push edi
xor edi, edi
cmp dword [0x426928], edi
jne 0x403394
cmp dword [0x41a140], edi
jg 0x403399
dec dword [0x41a140]
mov dword [0x426874], edi
or eax, 0xffffffff
pop edi
ret
cmp dword [0x426874], edi
push esi
jg 0x40340f
mov esi, 0x2000
push esi
push dword [0x42686c]
push dword [0x426890]
call fcn.0041068d
add esp, 0xc
cmp eax, edi
mov dword [0x426874], eax
jne 0x4033d0
mov dword [0x426874], edi
or eax, 0xffffffff
jmp 0x403425
jge 0x4033fa
push 0x401
mov esi, str.error:__zipfile_read_error_n
push esi
call fcn.00409230
pop ecx
push eax
push esi
push 0x41a0a0
call dword [0x426aa0]
add esp, 0x10
push 3
call fcn.0040977a
mov eax, dword [0x42686c]
add dword [0x426898], esi
mov dword [0x426870], eax
call fcn.0040327a
mov eax, dword [0x426870]
dec dword [0x426874]
mov al, byte [eax]
inc dword [0x426870]
movzx eax, al
pop esi
pop edi
ret
Function at 0x4067f6
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
push esi
push 2
mov esi, eax
push 0x415258
push esi
call fcn.004092c0
add esp, 0xc
test eax, eax
je 0x40682a
push 2
push 0x415254
push esi
call fcn.004092c0
add esp, 0xc
test eax, eax
jne 0x406840
mov al, byte [esi + 2]
test al, al
je 0x406840
cmp al, 0x2f
je 0x406840
cmp al, 0x5c
je 0x406840
xor eax, eax
jmp 0x40697e
cmp dword [0x4191f0], 1
movzx eax, byte [esi]
jle 0x40685b
push 0x103
push eax
call fcn.00409ea8
pop ecx
pop ecx
jmp 0x40686a
mov ecx, dword [str.________________________________H]
movzx eax, word [ecx + eax*2]
and eax, 0x103
test eax, eax
push edi
mov edi, 0x104
je 0x40687a
cmp byte [esi + 1], 0x3a
je 0x40689e
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x218]
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
jne 0x406898
xor eax, eax
jmp 0x40697d
lea esi, [ebp - 0x218]
push 2
mov dword [ebp - 4], esi
push esi
mov esi, 0x426bd0
push esi
call fcn.004092c0
add esp, 0xc
test eax, eax
je 0x40697a
push 2
push dword [ebp - 4]
push esi
call fcn.0040a470
add esp, 0xc
push edi
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push edi
lea eax, [ebp - 0x218]
push eax
push esi
mov byte [0x426bd2], 0x2f
mov byte [0x426bd3], 0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x406904
mov byte [0x426bd0], al
jmp 0x406891
push 0xc
pop eax
cmp eax, dword [ebp - 8]
push 4
sbb eax, eax
inc eax
mov dword [0x426bd4], eax
lea eax, [ebp - 0x114]
push str.VFAT
push eax
call fcn.00412463
pop ecx
push eax
call fcn.004092c0
add esp, 0xc
test eax, eax
je 0x406970
push 4
lea eax, [ebp - 0x114]
push str.HPFS
push eax
call fcn.004092c0
add esp, 0xc
test eax, eax
je 0x406970
push 3
lea eax, [ebp - 0x114]
push 0x415240
push eax
call fcn.004092c0
add esp, 0xc
test eax, eax
je 0x406970
and dword [0x426bd8], 0
jmp 0x40697a
mov dword [0x426bd8], 1
xor eax, eax
inc eax
pop edi
pop esi
leave
ret
Function at 0x406b39
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 1
push 0xc0000000
or esi, 0xffffffff
push str.CONIN_
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, esi
jne 0x406b6e
mov eax, esi
jmp 0x406be9
lea eax, [ebp - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
test eax, eax
je 0x406b86
push 1
push edi
call dword [sym.imp.KERNEL32.dll_SetConsoleMode]
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
lea eax, [ebp - 8]
push eax
push 1
lea eax, [ebp - 4]
push eax
push edi
call esi
test eax, eax
je 0x406bcf
cmp dword [ebp - 8], 1
jne 0x406bcf
movzx eax, byte [ebp - 4]
cmp eax, 0xa
mov dword [ebp - 0x10], eax
jne 0x406bcf
push ebx
lea eax, [ebp - 8]
push eax
push 1
lea eax, [ebp - 4]
push eax
push edi
call esi
test eax, eax
je 0x406bcf
cmp dword [ebp - 8], 1
jne 0x406bcf
movzx eax, byte [ebp - 4]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x406bdf
push dword [ebp - 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_SetConsoleMode]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406d88
Capabilities:
Set file attributes

Disassembly:
sub esp, 0x24
push esi
push dword [0x426950]
call fcn.0040a5ea
xor esi, esi
cmp dword [0x41a0b0], esi
pop ecx
jne 0x406f75
push ebx
push ebp
push edi
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x24]
call fcn.00406c77
pop ecx
pop ecx
push esi
push 0x80
push 3
push esi
push 2
push 0x40000000
mov ebp, 0x426968
push ebp
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 0x10], eax
mov eax, dword [0x41a860]
mov eax, dword [eax + 0x14]
test al, 0x5f
mov esi, 0x41a864
mov edi, 0x41a0a0
je 0x406e28
and eax, 0x7f
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x406e28
push 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._nwarning___d_:_could_not_set_file_attributes_n
push esi
call fcn.00408233
add esp, 0xc
push eax
push esi
push edi
call dword [0x426aa0]
add esp, 0x10
mov ecx, dword [0x4268a0]
test ecx, ecx
je 0x406edc
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
push eax
movzx eax, word [0x4268c0]
call fcn.00406bee
test eax, eax
pop ecx
pop ecx
je 0x406edc
mov eax, dword [0x41a860]
push dword [eax + 0x14]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
push ebp
call fcn.0040627f
cmp eax, 0x4f
pop ecx
pop ecx
jne 0x406edc
cmp dword [0x41a0d4], 0
je 0x406eb2
push 1
push 0x41e864
push ebp
call fcn.00401aa5
push eax
push 0x414b84
push esi
call fcn.00408233
add esp, 0x14
push eax
push esi
push edi
call dword [0x426aa0]
add esp, 0x10
cmp dword [0x41a0d4], 0
mov eax, 0x414b78
jne 0x406eb7
mov eax, 0x4144c7
push 1
push eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff5
push eax
push str._compressed_WinNT_security_data_missing___d_bytes__s
push esi
call fcn.00408233
add esp, 0x10
push eax
push esi
push edi
call dword [0x426aa0]
add esp, 0x10
cmp dword [esp + 0x10], 0xffffffff
jne 0x406f08
push 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._nCreateFile___error__d_when_trying_set_file_time_n
push esi
call fcn.00408233
add esp, 0xc
push eax
push esi
push edi
call dword [0x426aa0]
add esp, 0x10
jmp 0x406f72
test ebx, ebx
je 0x406f68
mov eax, ebx
and al, 1
neg al
lea ecx, [esp + 0x1c]
sbb eax, eax
and eax, ecx
push eax
mov eax, ebx
and al, 2
neg al
lea ecx, [esp + 0x28]
sbb eax, eax
and eax, ecx
and bl, 4
neg bl
push eax
lea eax, [esp + 0x34]
sbb ebx, ebx
and ebx, eax
push ebx
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x406f68
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._nSetFileTime_failed:__d_n
push esi
call fcn.00408233
add esp, 0xc
push eax
push esi
push edi
call dword [0x426aa0]
add esp, 0x10
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x24
ret
Function at 0x407037
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push ebx
push esi
call fcn.00412688
test eax, eax
pop ecx
pop ecx
jne 0x40714f
push edi
mov eax, esi
call fcn.004067f6
push 0
push 0x80
push 3
push 0
mov edi, eax
push 3
neg edi
push 0x80000000
sbb edi, edi
and edi, dword [0x426bd8]
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40714a
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push esi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], 0
je 0x40714a
test edi, edi
jne 0x407104
lea esi, [ebx + 0x1c]
mov edi, esi
lea eax, [ebp - 0x1c]
call fcn.00406473
cmp dword [ebp - 0xc], 0
jne 0x4070d9
cmp dword [ebp - 8], 0
jne 0x4070d9
mov eax, dword [esi]
mov dword [ebx + 0x18], eax
jmp 0x4070e4
lea edi, [ebx + 0x18]
lea eax, [ebp - 0xc]
call fcn.00406473
cmp dword [ebp - 0x14], 0
jne 0x4070f7
cmp dword [ebp - 0x10], 0
jne 0x4070f7
mov eax, dword [esi]
mov dword [ebx + 0x20], eax
jmp 0x40714a
lea edi, [ebx + 0x20]
lea eax, [ebp - 0x14]
call fcn.00406473
jmp 0x40714a
lea edi, [ebx + 0x1c]
lea esi, [ebp - 0x1c]
call fcn.004064d9
cmp dword [ebp - 0xc], 0
jne 0x407123
cmp dword [ebp - 8], 0
jne 0x407123
mov eax, dword [ebx + 0x1c]
mov dword [ebx + 0x18], eax
jmp 0x40712e
lea edi, [ebx + 0x18]
lea esi, [ebp - 0xc]
call fcn.004064d9
cmp dword [ebp - 0x14], 0
jne 0x40713f
cmp dword [ebp - 0x10], 0
jne 0x40713f
mov eax, dword [ebx + 0x1c]
jmp 0x4070f2
lea edi, [ebx + 0x20]
lea esi, [ebp - 0x14]
call fcn.004064d9
xor eax, eax
pop edi
jmp 0x40719d
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x40719a
test al, 0x10
je 0x40719a
push 0x24
push 0
push ebx
call fcn.0040a000
push 0x210000
call fcn.0040390c
mov dword [ebx + 0x1c], eax
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x18], eax
mov eax, dword [ebp - 4]
shl eax, 7
not al
add esp, 0x10
and ax, 0x80
or ax, 0x4100
mov word [ebx + 6], ax
xor eax, eax
jmp 0x40719d
or eax, 0xffffffff
pop esi
pop ebx
leave
ret
Function at 0x407e46
Capabilities:
Check mutex on windows

Disassembly:
push esi
xor esi, esi
cmp dword [0x419b84], esi
je 0x407e56
xor eax, eax
inc eax
pop esi
ret
push ebx
push esi
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov ebx, eax
cmp ebx, esi
jne 0x407e6b
xor eax, eax
jmp 0x407edc
push ebp
push edi
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push ebx
mov ebp, 0x419b88
push ebp
call edi
mov esi, eax
test esi, esi
je 0x407ea4
push esi
push ebp
call edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [0x419b84]
jmp 0x407eda
push 0x41a080
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0x120
push 0
push 0x419f60
call fcn.0040a000
add esp, 0xc
call fcn.00407d8d
xor esi, esi
inc esi
push ebx
mov dword [0x419b84], esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, esi
pop edi
pop ebp
pop ebx
pop esi
ret
Function at 0x4096b9
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
inc esi
cmp dword [0x419c2c], esi
push edi
jne 0x4096d9
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp dword [ebp + 0xc], 0
mov al, byte [ebp + 0x10]
mov dword [0x419c28], esi
mov byte [0x419c24], al
jne 0x40973f
mov ecx, dword [0x42708c]
test ecx, ecx
je 0x409720
mov eax, dword [0x427088]
sub eax, 4
cmp eax, ecx
jmp 0x409719
mov eax, dword [eax]
test eax, eax
je 0x40970b
call eax
mov eax, dword [0x427088]
sub eax, 4
cmp eax, dword [0x42708c]
mov dword [0x427088], eax
jae 0x409703
mov eax, 0x419024
mov esi, 0x41902c
cmp eax, esi
mov edi, eax
jae 0x40973f
mov eax, dword [edi]
test eax, eax
je 0x409738
call eax
add edi, 4
cmp edi, esi
jb 0x409730
mov eax, 0x419030
mov esi, 0x419034
cmp eax, esi
mov edi, eax
jae 0x40975e
mov eax, dword [edi]
test eax, eax
je 0x409757
call eax
add edi, 4
cmp edi, esi
jb 0x40974f
cmp dword [ebp + 0x10], 0
pop edi
pop esi
jne 0x409778
push dword [ebp + 8]
mov dword [0x419c2c], 1
call fcn.0040961f
pop ebp
ret
Function at 0x40e113
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov ecx, dword [ebp + 0x3a4]
cmp ecx, dword [0x426d10]
mov eax, dword [0x419620]
push ebx
push esi
mov dword [ebp + 0x398], eax
push edi
jae 0x40e2d9
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x426d20]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x80], ebx
je 0x40e2d9
xor edi, edi
cmp dword [ebp + 0x3ac], edi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x7c], edi
jne 0x40e17d
xor eax, eax
jmp 0x40e2ed
test al, 0x20
je 0x40e18e
push 2
push edi
push edi
push ecx
call fcn.00410cfc
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x40e263
cmp dword [ebp + 0x3ac], edi
mov eax, dword [ebp + 0x3a8]
mov dword [ebp - 0x70], eax
mov dword [ebp + 0x3a4], edi
jbe 0x40e2aa
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp + 0x3a8]
lea eax, [ebp - 0x6c]
cmp ecx, dword [ebp + 0x3ac]
jae 0x40e1f0
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x40e1e1
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x80]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x40e1c3
mov edi, eax
lea eax, [ebp - 0x6c]
sub edi, eax
push 0
lea eax, [ebp - 0x78]
push eax
push edi
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40e230
mov eax, dword [ebp - 0x78]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x40e23c
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp + 0x3a8]
xor edi, edi
cmp eax, dword [ebp + 0x3ac]
jb 0x40e1b7
jmp 0x40e23e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
xor edi, edi
mov eax, dword [ebp - 0x74]
cmp eax, edi
jne 0x40e2d4
cmp dword [ebp + 0x3a4], edi
je 0x40e2aa
push 5
pop eax
cmp dword [ebp + 0x3a4], eax
jne 0x40e29c
mov dword [0x419be4], eax
jmp 0x40e2e0
push edi
lea ecx, [ebp - 0x78]
push ecx
push dword [ebp + 0x3ac]
push dword [ebp + 0x3a8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40e28e
mov eax, dword [ebp - 0x78]
mov dword [ebp + 0x3a4], edi
mov dword [ebp - 0x74], eax
jmp 0x40e23e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
jmp 0x40e23e
push dword [ebp + 0x3a4]
call fcn.0040f242
pop ecx
jmp 0x40e2ea
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x40e2c2
mov eax, dword [ebp + 0x3a8]
cmp byte [eax], 0x1a
je 0x40e176
mov dword [0x419be0], 0x1c
mov dword [0x419be4], edi
jmp 0x40e2ea
sub eax, dword [ebp - 0x7c]
jmp 0x40e2ed
and dword [0x419be4], 0
mov dword [0x419be0], 9
or eax, 0xffffffff
mov ecx, dword [ebp + 0x398]
pop edi
pop esi
pop ebx
call fcn.0040cc1b
add ebp, 0x39c
leave
ret