joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10025f51
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.10025ecd
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x100260c0
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x100260c0
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x10026075
jg 0x10025fad
test eax, eax
je 0x1002606b
push 1
push 0x1000
call fcn.10018430
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x10025fd0
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x10026062
push 0x8000
push ebx
call fcn.10025dfe
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x10025ff9
jg 0x10025ff4
cmp ecx, 0x1000
jb 0x10025ff9
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.10017c96
add esp, 0x10
cmp eax, 0xffffffff
je 0x1002603e
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x10025ff4
jl 0x10026025
test ecx, ecx
jne 0x10025fe6
push dword [ebp - 0xc]
push ebx
call fcn.10025dfe
push esi
call fcn.10017eb2
add esp, 0xc
xor ebx, ebx
jmp 0x100260ce
cmp byte [edi + 0x24], 0
je 0x10026055
cmp dword [edi + 0x20], 5
jne 0x10026055
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x10026060
mov ebx, dword [edi + 0x18]
jmp 0x10026062
xor ebx, ebx
push esi
call fcn.10017eb2
pop ecx
jmp 0x100260ce
test ecx, ecx
jg 0x10026037
jl 0x10026075
test eax, eax
jae 0x10026037
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100199d1
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x10026095
cmp byte [edi + 0x1c], 0
je 0x10026037
jmp 0x100260c6
push ebx
call fcn.1001f1aa
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x10026037
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x100260ce
cmp byte [edi + 0x1c], 0
je 0x100260cb
mov ebx, dword [edi + 0x18]
jmp 0x100260ce
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.100199d1
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10027730
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1002775d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1002775d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x401530
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.0041eeb0
mov eax, dword [0x42a038]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x2004]
push 0x2000
push eax
call dword [sym.imp.MSVCR120.dll_vsprintf_s]
add esp, 0x10
mov esi, eax
lea eax, [ebp - 0x2004]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0041d60e
mov esp, ebp
pop ebp
ret

Function at 0x402db0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], 0x206
mov dword [ebp - 0xc], 1
mov esi, edx
test edi, edi
je 0x402e1c
test esi, esi
je 0x402e1c
lea eax, [ebp - 8]
push eax
push 0x20119
push 0
push str.SoftwareIntelServicesDAL
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x402e1c
lea eax, [ebp - 4]
push eax
push esi
lea eax, [ebp - 0xc]
push eax
push 0
push edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x402e1c
mov eax, dword [ebp - 4]
shr eax, 1
cmp word [esi + eax*2], 0
je 0x402e24
xor ecx, ecx
mov word [esi + eax*2], cx
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x402e40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
mov edi, ecx
mov dword [ebp - 0xc], 4
mov dword [ebp - 8], 4
mov esi, edx
test edi, edi
je 0x402ea3
test esi, esi
je 0x402ea3
lea eax, [ebp - 4]
push eax
push 0x20119
push 0
push str.SoftwareIntelServicesDAL
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x402ea3
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0xc]
push eax
push 0
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
test eax, eax
je 0x402eab
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x402ec0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 4]
mov dword [ebp - 8], ecx
push eax
push 0x20106
push 0
push str.SoftwareIntelServicesDAL
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x402f19
push 4
lea eax, [ebp - 8]
push eax
push 4
push 0
push str.JHI_ADDRESS_TYPE
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
test eax, eax
jne 0x402f13
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov esp, ebp
pop ebp
ret
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x501
mov esp, ebp
pop ebp
ret
Function at 0x403aa0
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41f068
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x42a038]
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 ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x58]
mov esi, dword [ebp + 8]
push ebx
push esi
push eax
mov dword [ebp - 0x5c], esi
call fcn.00404d00
push ebx
push esi
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
call fcn.00404ed0
test bl, bl
mov byte [ebp - 4], 1
sete al
movzx eax, al
push eax
push esi
lea eax, [ebp - 0x40]
push eax
call fcn.00404ed0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
mov esi, dword [sym.imp.MSVCR120.dll__wremove]
cmovae eax, dword [ebp - 0x28]
push eax
call esi
add esp, 4
lea eax, [ebp - 0x40]
cmp dword [ebp - 0x2c], 8
cmovae eax, dword [ebp - 0x40]
push eax
call esi
add esp, 4
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x58]
cmovae ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x44], 8
push ecx
cmovae eax, dword [ebp - 0x58]
push eax
call dword [sym.imp.MSVCR120.dll__wrename]
add esp, 8
test eax, eax
je 0x403b5f
xor bl, bl
jmp 0x403b85
push 0xffffffffffffffff
push dword [edi + 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x5c]
mov ecx, edi
call fcn.004053f0
mov dword [eax], 2
push dword [edi + 0x10]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov bl, 1
cmp dword [ebp - 0x2c], 8
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jb 0x403b99
push dword [ebp - 0x40]
call esi
add esp, 4
xor eax, eax
mov dword [ebp - 0x2c], 7
cmp dword [ebp - 0x14], 8
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
jb 0x403bbb
push dword [ebp - 0x28]
call esi
add esp, 4
xor eax, eax
mov dword [ebp - 0x14], 7
cmp dword [ebp - 0x44], 8
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
jb 0x403bdd
push dword [ebp - 0x58]
call esi
add esp, 4
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.0041d60e
mov esp, ebp
pop ebp
ret 8
Function at 0x406840
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x41f3b8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x42a038]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x42a038]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x40], 0
je 0x406971
cmp byte [esi + 0x45], 0
je 0x406971
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x4068a0
xor al, al
jmp 0x406973
sub esp, 8
lea ecx, [esp + 0x20]
call fcn.00406210
mov dword [esp + 0x40], 0
lea edi, [esi + 0x48]
mov ebx, dword [esp + 0x2c]
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x1c]
cmp ebx, 0x10
lea ecx, [esp + 0x1c]
cmovae ecx, dword [esp + 0x1c]
cmovae edx, dword [esp + 0x1c]
add eax, edx
push eax
push ecx
mov ecx, dword [esi + 0x40]
push edi
call dword [sym.imp.MSVCP120.dll_public:_int___thiscall_std::codecvt_char__char__int_::unshift_int___char___char___char___const]
sub eax, 0
je 0x4068f8
dec eax
je 0x4068fc
sub eax, 2
je 0x406957
xor bl, bl
jmp 0x406959
mov byte [esi + 0x45], 0
mov ebx, dword [esp + 0x2c]
lea eax, [esp + 0x18]
mov ecx, dword [esp + 0x18]
cmp ebx, 0x10
mov edi, dword [esp + 0x14]
cmovae eax, ecx
sub edi, eax
je 0x406934
push dword [esi + 0x50]
cmp ebx, 0x10
lea eax, [esp + 0x1c]
push edi
cmovae eax, ecx
push 1
push eax
call dword [sym.imp.MSVCR120.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x4068f4
cmp byte [esi + 0x45], 0
je 0x406957
test edi, edi
lea edi, [esi + 0x48]
jne 0x4068b7
push 0
push 8
lea ecx, [esp + 0x20]
call fcn.004028b0
jmp 0x4068b4
mov bl, 1
cmp dword [esp + 0x2c], 0x10
jb 0x40696d
push dword [esp + 0x18]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov al, bl
jmp 0x406973
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0041d60e
mov esp, ebp
pop ebp
ret

Function at 0x4086c0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x4e], 0xd3
mov byte [ebp - 0x4d], 0xc2
mov byte [ebp - 0x4c], 0xca
mov byte [ebp - 0x4b], 0xee
mov byte [ebp - 0x4a], 0xc9
mov byte [ebp - 0x49], 0xc1
mov byte [ebp - 0x48], 0xc8
mov byte [ebp - 0x47], 0xa7
call fcn.00408401
pushfd
rcl bh, cl
mov cl, 0x8d
inc ebp
test al, 0x50
call fcn.00408411
mov esi, dword [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call fcn.004083c6
add esp, 0x10
les edx, [eax]
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x4086ef
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
invalid
Function at 0x408b20
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x408ad8
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x408af6
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x408b54
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x408b3b
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x408b44
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x408b4e
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x408b30
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x408aba
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x408ba1
dec eax
je 0x408b98
sub eax, 3
je 0x408b8f
mov dword [ebp - 4], 0x40
jmp 0x408bbe
mov dword [ebp - 4], 4
jmp 0x408ba4
mov dword [ebp - 4], 0x20
jmp 0x408ba4
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x408bf0
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x408b70
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.00408401
das
xor dword [edx + 0x1475ffb5], eax
push 1
push esi
call edi
mov eax, esi
jmp 0x408bfc
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x408c90
Capabilities:
Contain obfuscated stackstrings

Disassembly:
call dword [ebp - 0x3a]
test dword [esi + 0x25fffffc], edi
lea eax, [ebp - 0x354]
push eax
call fcn.00408411
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.004083c6
add esp, 0xc
mov dword [ebp - 0x68c], eax
call dword [ebp - 0x68c]
mov dword [ebp - 0x674], eax
mov dword [ebp - 0x384], 4
and byte [ebp - 0x334], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
movsd dword es:[edi], dword [esi]
aas
cld
invalid
inc dword [eax]
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
mov byte [ebp - 0x3bb], 2
mov byte [ebp - 0x3ba], 0x13
mov byte [ebp - 0x3b9], 0xa
mov byte [ebp - 0x3b8], 3
mov byte [ebp - 0x3b7], 0x20
mov byte [ebp - 0x3b6], 0xf
mov byte [ebp - 0x3b5], 0xa
mov byte [ebp - 0x3b4], 3
mov byte [ebp - 0x3b3], 0x28
mov byte [ebp - 0x3b2], 7
mov byte [ebp - 0x3b1], 0xb
mov byte [ebp - 0x3b0], 3
mov byte [ebp - 0x3af], 0x27
mov byte [ebp - 0x3ae], 0x66
lea eax, [ebp - 0x3c4]
push eax
call fcn.00408411
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.004083c6
add esp, 0xc
invalid
Function at 0x40e260
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41fb48
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x42a038]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
push 4
mov dword [esi], vtable.intel_dal::ICommandsServer.0
call dword [sym.imp.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_]
mov edi, eax
add esp, 4
test edi, edi
je 0x40e2b5
push 0
push 0xa
push 0xa
push 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov dword [edi], eax
jmp 0x40e2b7
xor edi, edi
mov eax, dword [ebp + 8]
mov dword [esi + 8], edi
mov dword [esi + 0xc], eax
mov byte [esi + 4], 0xa
lea edi, [esi + 0x10]
mov dword [ebp - 4], 0
push edi
push 0x202
mov dword [esi], vtable.intel_dal::CommandsServerSocketsWin32.0
mov dword [esi + 0x1a0], 0xffffffff
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x40e310
mov dword [ebp + 8], str.WSAStartup_failed
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
call dword [sym.imp.MSVCR120.dll_public:_void___thiscall_std::exception::constructor_char_const__const_const__]
push 0x4272a4
lea eax, [ebp - 0x1c]
push eax
call sub.MSVCR120.dll__CxxThrowException
cmp byte [edi], 2
jne 0x40e330
cmp byte [edi + 1], 2
jne 0x40e330
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov dword [ebp + 8], str.Could_not_find_a_usable_version_of_Winsock.dll
jmp 0x40e2f5
Function at 0x40e640
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x1a0], 0xffffffff
je 0x40e6f2
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
push ebx
mov eax, dword [esi + 8]
push 0xffffffffffffffff
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0
push 0
push dword [esi + 0x1a0]
call dword [sym.imp.WS2_32.dll_accept]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40e6e5
call fcn.0040e8c0
mov edi, eax
push 0
test edi, edi
jne 0x40e69a
mov eax, dword [esi + 8]
mov edi, dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
push 1
push dword [eax]
call edi
jmp 0x40e6d4
push 0
push edi
push 0x40e700
mov dword [edi], ebx
mov eax, dword [esi + 0xc]
push 0
mov dword [edi + 4], eax
mov eax, dword [esi + 8]
push 0
mov dword [edi + 8], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x40e6c7
mov ecx, edi
call fcn.0040e8b0
jmp 0x40e6ce
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
cmp dword [esi + 0x1a0], 0xffffffff
jne 0x40e658
pop ebx
pop edi
pop esi
ret
mov eax, dword [esi + 8]
push 0
push 1
push dword [eax]
call edi
pop ebx
pop edi
pop esi
ret
Function at 0x4107a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, ecx
cmp byte [esi + 4], 0
je 0x4107de
mov eax, dword [ebp - 4]
and eax, 0xffff02ff
or eax, 0x2ff
push 0
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebp - 4]
push eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4107e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
push dword [ebp + 8]
mov ecx, esi
call fcn.00410820
test al, al
pop esi
setne al
mov esp, ebp
pop ebp
ret 4

Function at 0x410820
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push edi
mov edi, dword [ebp + 8]
mov eax, ecx
xor bl, bl
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
test edi, edi
je 0x4108b9
mov eax, dword [eax + 0x10]
test eax, eax
je 0x4108b9
push esi
push eax
call fcn.00401fa0
mov esi, eax
add esp, 4
test esi, esi
je 0x4108ae
mov eax, dword [ebp - 4]
push dword [eax + 0x10]
push 0
push esi
call sub.MSVCR120.dll_memset
add esp, 0xc
lea eax, [ebp - 8]
push 0
push eax
mov eax, dword [ebp - 4]
push dword [eax + 0x10]
push esi
push dword [eax + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4108a5
cmp byte [esi + 3], bl
jne 0x4108a5
movzx eax, word [esi + 6]
mov bl, 1
mov word [edi], ax
movzx eax, word [esi + 4]
mov word [edi + 2], ax
movzx eax, word [esi + 0xa]
mov word [edi + 4], ax
movzx eax, word [esi + 8]
mov word [edi + 6], ax
push esi
call fcn.00402020
add esp, 4
pop esi
pop edi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
xor eax, eax
push ebx
push edi
mov edi, ecx
xor bl, bl
xor ecx, ecx
cmp dword [ebp + 8], eax
je 0x41098b
cmp dword [edi + 0x10], eax
je 0x41098b
and eax, 0xffff0203
and ecx, 0xff00001d
or eax, 0x203
or ecx, 0x1d
push 0
mov dword [ebp - 0x10], eax
lea eax, [ebp - 8]
push eax
push 8
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], ecx
push eax
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x410985
push esi
push dword [edi + 0x10]
call fcn.00401fa0
mov esi, eax
add esp, 4
test esi, esi
je 0x41097a
push dword [edi + 0x10]
push 0
push esi
call sub.MSVCR120.dll_memset
add esp, 0xc
mov dword [ebp - 4], 0
lea eax, [ebp - 4]
push 0
push eax
push dword [edi + 0x10]
push esi
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x410971
cmp byte [esi + 3], bl
jne 0x410971
mov ecx, dword [ebp + 8]
mov bl, 1
mov eax, dword [esi + 9]
mov dword [ecx], eax
push esi
call fcn.00402020
add esp, 4
pop esi
pop edi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x412730
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x42a038]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x412820
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
test eax, eax
je 0x412820
push 0xffffffffffffffff
push str.iptApp.dll
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.MSVCR120.dll_wcsncat_s]
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x412820
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4127b7
sub ecx, edx
sar ecx, 1
push esi
push edi
lea edi, [ecx + 1]
lea eax, [edi + edi]
push eax
call fcn.00401fa0
mov esi, eax
add esp, 4
test esi, esi
je 0x41280e
lea eax, [ebp - 0x20c]
push eax
push edi
push esi
call dword [sym.imp.MSVCR120.dll_wcscpy_s]
add esp, 0xc
test eax, eax
je 0x41280e
push esi
call fcn.00402020
add esp, 4
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d60e
mov esp, ebp
pop ebp
ret
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d60e
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.0041d60e
mov esp, ebp
pop ebp
ret

Function at 0x4132e0
Capabilities:
Access the windows event log
Create thread

Disassembly:
push esi
push 0
push 0
push 0
push 0x4132d0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x423e40
push 0
mov dword [0x42efcc], eax
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x41332f
push 0
push 0
push 0
push 0
push 0
push 0x40000000
push 0
push 4
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
ret

Function at 0x413340
Capabilities:
Access the windows event log

Disassembly:
mov ecx, dword [0x42efc8]
mov eax, dword [ecx]
call dword [eax + 4]
push dword [0x42efcc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x42eeec]
mov dword [0x42efcc], 0
test al, 1
jne 0x413389
or eax, 1
mov dword [0x42eeec], eax
call fcn.00411060
push 0x4209a0
call fcn.0041d702
mov eax, dword [0x42eeec]
add esp, 4
cmp dword [0x42ee94], 0
jne 0x4133d9
test al, 1
jne 0x4133b0
or eax, 1
mov dword [0x42eeec], eax
call fcn.00411060
push 0x4209a0
call fcn.0041d702
add esp, 4
push 0xffffffffffffffff
push dword [0x42ee90]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [0x42ee90]
mov dword [0x42ee94], 1
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
call fcn.00411950
push esi
push 0x423e40
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x41340e
push 0
push 0
push 0
push 0
push 0
push 0x40000001
push 0
push 4
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
ret