joyce8/EMBER2024-capa huggingface dataset:
Function at 0x994cdc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x994d03
call fcn.00937288
mov dword [eax], esi
call fcn.00937275
push 0x16
pop esi
mov dword [eax], esi
call fcn.00937eca
mov eax, esi
jmp 0x994d58
test dword [ebp + 0xc], 0xfffffff9
jne 0x994ce9
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x994d30
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0093729b
pop ecx
call fcn.00937275
mov eax, dword [eax]
jmp 0x994d58
test al, 0x10
jne 0x994d56
test al, 1
je 0x994d56
test byte [ebp + 0xc], 2
je 0x994d56
call fcn.00937288
mov dword [eax], 5
call fcn.00937275
mov dword [eax], 0xd
jmp 0x994d27
xor eax, eax
pop esi
pop ebp
ret

Function at 0x401000
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x5594ac
push eax
push dword fs:[0]
push ebp
add byte [eax + 0x64], dl
push dword [0]
mov dword fs:[0], esp
xor eax, eax
mov dword [eax], ecx
push eax
inc ebp
inc ebx
outsd dx, dword [esi]
insd dword es:[edi], dx
jo 0x401080
arpl word [edx + esi], si
adc ebx, dword [edi - 0x54]
xchg ebx, eax
neg dl
push cs
dec ecx
mov eax, 0x7fb97088
add ah, ah
aam 0xe7
mov dword [0x98c0ec09], eax
mov eax, dword [0xf6a8b15c]
jecxz 0x401003
xor dword [ecx], ecx
iretd
ljmp 0x2bdb:0xc41a7522
jne 0x40109c
invalid
mov ch, byte [edx + 0x477bf67f]
jle 0x4010d4
salc
rcr cl, 1
cwde
add al, 0x60
sub byte [ecx + 0x485b75a6], bh
adc byte [eax], cl
xor eax, 0x4156615a
clc
or edi, dword [esi + 0x54]
xchg byte [ebx + 0x456a3141], bl
adc dword [edx + 0x30], ecx
jno 0x401110
sbb ebx, edi
cmp al, 0x6e
jae 0x40107e
out dx, al
aad 0x69
sub dword [edi + 0x33], ebx
retf
push ebp
mov cs, edx
mov bl, byte [edx + 0x3812e7a7]
adc eax, 0x31bdc80d
movsd dword es:[edi], dword [esi]
fild qword [eax]
add ch, al
cmpsd dword [esi], dword es:[edi]
dec eax
ret
Function at 0x406624
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x406648
xor eax, eax
test eax, eax
je 0x40665b
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x40665b
xor ecx, ecx
jmp 0x40665e
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

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

Disassembly:
cmp dword [0x4318ec], 0
push esi
jne 0x4067be
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 0x406798
mov dword [ecx*4 + 0x4318e8], eax
inc ecx
cmp ecx, 0x100
jl 0x406793
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4067ef
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 + 0x4318e8]
xor eax, esi
inc ecx
dec edx
jne 0x4067d1
pop edi
not eax
pop esi
ret 0xc

Function at 0x4014e6
Capabilities:
Check for software breakpoints

Disassembly:
mov ecx, dword [esp + 4]
push 0xfffffffffffffffb
pop eax
mov dl, byte [eax + ecx]
cmp dl, 0x90
je 0x4014fa
cmp dl, 0xcc
jne 0x401544
inc eax
cmp eax, 0xffffffff
jle 0x4014ed
mov al, byte [ecx]
cmp al, 0x8b
je 0x40150a
cmp al, 0x89
jne 0x401544
cmp byte [ecx + 1], 0xff
jne 0x401544
mov eax, 0x40189c
mov byte [ecx - 5], 0xe9
sub eax, ecx
mov dword [ecx - 4], eax
lea eax, [ecx + 2]
mov dword [0x436a10], eax
mov eax, 0xf9eb
push 0
push 0
mov word [ecx], ax
call dword [0x42a014]
push eax
call dword [0x42a034]
mov al, 1
ret 0xc
xor al, al
jmp 0x401541
Function at 0x404a60
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebx, dword [ebp - 0x74f3137d]
inc ebp
or al, 0x53
push esi
push edi
lea ecx, [ebx + 7]
mov edi, 0xd03bf8e2
mov eax, dword [ebp + 8]
mov dword [ebp - 8], edx
jae 0x404a99
mov ecx, dword [esi + 0x20]
add eax, 0xca0c47e3
push esp
or cl, byte [edx + 0x60909fb2]

Function at 0x406fe4
Capabilities:
Set socket configuration

Disassembly:
repne scasb al, byte es:[edi]
not ecx
dec ecx
rcr dword es:[ebx - 0x7b], 1
mov word [eax], es
add byte [eax], al
push esi
call dword [sym.imp.WSOCK32.dll_inet_addr]
mov dword [edi - 8], esi
lea eax, [ecx]
clc
lea ecx, [edi]
in al, dx
lea edx, [ebp - 0x24]
mov dword [ebx - 0x14], ebx
dec edi
pop ebp
invalid
Function at 0x4059a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e2712
mov eax, dword fs:[0]
push eax
sub esp, 0x410
mov eax, dword [0x677000]
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, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x41c], esi
mov dword [ebp - 0x418], 0
mov dword [ebp - 4], 2
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
push 0x3fe
push eax
mov word [ebp - 0x410], ax
lea eax, [ebp - 0x40e]
push eax
mov dword [ebp - 0x418], 1
call fcn.005bb1c0
add esp, 0xc
mov ecx, esi
push 1
push 0x624da0
mov dword [ebp - 0x414], 0x400
call fcn.00406400
cmp dword [ebp + 0x3c], 8
lea edx, [ebp + 0x28]
cmovae edx, dword [ebp + 0x28]
cmp word [edx], 0
jne 0x405a51
xor ecx, ecx
jmp 0x405a65
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405a56
sub ecx, edi
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.004062d0
push 1
push 0x624da4
mov ecx, esi
call fcn.004062d0
cmp dword [ebp + 0x24], 8
lea ecx, [ebp - 0x414]
push ecx
lea ecx, [ebp - 0x410]
push ecx
push 0
lea eax, [ebp + 0x10]
cmovae eax, dword [ebp + 0x10]
push 0
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x405ade
cmp word [ebp - 0x410], ax
jne 0x405ab2
xor ecx, ecx
jmp 0x405acf
lea ecx, [ebp - 0x410]
lea edx, [ecx + 2]
jmp 0x405ac0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405ac0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x410]
push eax
mov ecx, esi
call fcn.004062d0
push 2
push 0x624da8
mov ecx, esi
call fcn.004062d0
cmp dword [ebp + 0x3c], 8
lea edx, [ebp + 0x28]
cmovae edx, dword [ebp + 0x28]
cmp word [edx], 0
jne 0x405b01
xor ecx, ecx
jmp 0x405b15
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405b06
sub ecx, edi
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.004062d0
push 1
push 0x624da4
mov ecx, esi
call fcn.004062d0
cmp dword [ebp + 0x24], 8
jb 0x405b3d
push dword [ebp + 0x10]
call fcn.0049500b
add esp, 4
xor eax, eax
cmp dword [ebp + 0x3c], 8
mov dword [ebp + 0x24], 7
mov dword [ebp + 0x20], 0
mov word [ebp + 0x10], ax
jb 0x405b62
push dword [ebp + 0x28]
call fcn.0049500b
add esp, 4
mov eax, esi
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.005b7f8f
mov esp, ebp
pop ebp
ret 0x38
Function at 0x409630
Capabilities:
Check mutex on windows

Disassembly:
push esi
push edi
mov edi, ecx
mov dword [edi], vtable.CCDCMACRO.0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
call fcn.0040af60
push 0
push 0
push 0
mov dword [edi + 4], eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
push 0xffffffffffffffff
push eax
mov dword [edi + 0xc], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [edi + 4]
lea ecx, [edi + 4]
push dword [eax + 4]
call fcn.0040ab60
mov eax, dword [edi + 4]
mov dword [eax + 4], eax
mov eax, dword [edi + 4]
mov dword [eax], eax
mov eax, dword [edi + 4]
mov dword [eax + 8], eax
mov dword [edi + 8], 0
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, edi
pop edi
pop esi
ret
Function at 0x40b810
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40b825
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40b864
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x40b860
lea ebx, [ebx]
cmp esi, edx
jae 0x40b864
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x40b850
cmp esi, edx
jb 0x40b869
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret
Function at 0x412970
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
jne 0x41298d
pop edi
pop esi
pop ebx
mov dword [ebp + 8], str.CDownload::ClearDownloadList_param_error
pop ebp
jmp fcn.00418730
mov eax, dword [ebx]
test eax, eax
je 0x412a33
xor edi, edi
test eax, eax
je 0x412a33
mov eax, dword [ebx + 4]
mov esi, dword [eax + edi*4]
test esi, esi
je 0x412a33
mov eax, dword [esi + 0x10]
mov dword [ebp + 8], eax
test eax, eax
je 0x4129cf
push dword [eax + 4]
call fcn.005b98a4
add esp, 4
push dword [ebp + 8]
call fcn.005b98a4
add esp, 4
mov eax, dword [esi + 8]
mov dword [ebp + 8], eax
test eax, eax
je 0x4129ef
push dword [eax + 4]
call fcn.005b98a4
add esp, 4
push dword [ebp + 8]
call fcn.005b98a4
add esp, 4
mov eax, dword [esi + 0xc]
mov dword [ebp + 8], eax
test eax, eax
je 0x412a0f
push dword [eax + 4]
call fcn.005b98a4
add esp, 4
push dword [ebp + 8]
call fcn.005b98a4
add esp, 4
mov esi, dword [esi + 4]
test esi, esi
je 0x412a2a
push dword [esi + 4]
call fcn.005b98a4
add esp, 4
push esi
call fcn.005b98a4
add esp, 4
inc edi
cmp edi, dword [ebx]
jb 0x4129a1
mov esi, dword [ebx + 0x1c]
test esi, esi
je 0x412a4e
push dword [esi + 4]
call fcn.005b98a4
add esp, 4
push esi
call fcn.005b98a4
add esp, 4
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x412a78
mov eax, dword [eax + 0xc]
test eax, eax
je 0x412a65
push eax
call fcn.005b98a4
add esp, 4
mov eax, dword [ebx + 0x14]
mov eax, dword [eax + 8]
test eax, eax
je 0x412a78
push eax
call fcn.005b98a4
add esp, 4
push ebx
call fcn.005b98a4
add esp, 4
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x414810
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e3c42
mov eax, dword fs:[0]
push eax
mov eax, 0x2014
call fcn.005bd5b0
mov eax, dword [0x677000]
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 dword [ebp - 0x2014], ecx
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x201c], 0
xor ecx, ecx
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], 0
mov dword [ebp - 0x2018], eax
mov dword [ebp - 0x2020], eax
mov word [eax], cx
xor eax, eax
mov dword [ebp - 4], ecx
push 0x1ffe
push eax
mov word [ebp - 0x2010], ax
lea eax, [ebp - 0x200e]
push eax
mov dword [ebp - 0x201c], 1
call fcn.005bb1c0
mov eax, dword [ebp - 0x2014]
add esp, 0xc
push 0xffffffffffffffff
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [ebx + 0x14], 8
jb 0x4148c0
mov ebx, dword [ebx]
cmp dword [edi + 0x14], 8
jb 0x4148c8
mov edi, dword [edi]
cmp dword [esi + 0x14], 8
jb 0x4148d0
mov esi, dword [esi]
push ebx
push 0x1000
lea eax, [ebp - 0x2010]
push eax
push 0x624ff8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp word [ebp - 0x2010], 0
jne 0x4148f8
xor ecx, ecx
jmp 0x414910
lea ecx, [ebp - 0x2010]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x414901
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x2018]
lea eax, [ebp - 0x2010]
push eax
call fcn.00406400
mov eax, dword [ebp - 0x2014]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, dword [ebp - 0x2018]
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.005b7f8f
mov esp, ebp
pop ebp
ret 0x10
Function at 0x418150
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [0x74e2d4]
push 0
push 0
push 0x800c
push dword [esi]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
test eax, eax
je 0x4181aa
push 0
push 4
push 0
push 0
push esi
push 0x4181b0
mov dword [esi + 4], eax
call fcn.0049f725
mov dword [esi + 0xc], eax
mov dword [eax + 0x28], 0
mov eax, dword [esi + 0xc]
push dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x418400
Capabilities:
Delete file
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa7c
mov eax, dword [0x677000]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x24c
lea eax, [ebp - 0xa74]
push 0
push eax
mov esi, edx
mov dword [ebp - 0xa78], 0
call fcn.005bb1c0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.005bb1c0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x418], ax
lea eax, [ebp - 0x416]
push eax
call fcn.005bb1c0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x620], ax
lea eax, [ebp - 0x61e]
push eax
call fcn.005bb1c0
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x828], ax
lea eax, [ebp - 0x826]
push eax
call fcn.005bb1c0
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
add esp, 0x3c
lea eax, [ebp - 0x210]
push esi
push 0x104
push eax
push 0
push 0
push 0
call edi
lea eax, [ebp - 0x210]
push esi
push 0x104
push eax
push 0x62a500
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
cmp word [ebp - 0x210], 0
jne 0x4184fc
mov dword [0x74e810], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b7f8f
mov esp, ebp
pop ebp
ret
push esi
push 0x104
lea eax, [ebp - 0x210]
push eax
push 0x624ff8
push str.FORMAT
push 0x62a500
call edi
mov cx, word [ebp - 0x210]
test cx, cx
jne 0x418532
mov dword [0x74e810], 0
jmp 0x41854f
xor eax, eax
mov edx, 1
cmp cx, 0x31
cmove eax, edx
mov dword [0x74e810], 1
mov dword [0x74e814], eax
push esi
push 0x104
lea eax, [ebp - 0x210]
push eax
push 0x624ff8
push str.NOT_DELETE
push 0x62a500
call edi
mov ax, word [ebp - 0x210]
test ax, ax
je 0x418583
cmp ax, 0x31
je 0x418630
lea eax, [ebp - 0x418]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x418]
push eax
push str._sMS4.LOG
push 0xffffffffffffffff
lea eax, [ebp - 0x620]
push 0x104
push eax
call fcn.005b8769
add esp, 0x14
lea eax, [ebp - 0xa78]
push eax
lea eax, [ebp - 0x620]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x418630
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov edi, edi
test byte [ebp - 0xa78], 0x10
jne 0x41861b
lea eax, [ebp - 0xa4c]
push eax
lea eax, [ebp - 0x418]
push eax
push str._s_s
push 0xffffffffffffffff
lea eax, [ebp - 0x828]
push 0x104
push eax
call fcn.005b8769
add esp, 0x18
lea eax, [ebp - 0x828]
push eax
call ebx
lea eax, [ebp - 0xa78]
push eax
push esi
call edi
test eax, eax
jne 0x4185e0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0xffffffffffffffff
call fcn.00418660
push eax
push 0x104
push 0x750818
call fcn.005b9367
add esp, 0x10
call fcn.004189f0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005b7f8f
mov esp, ebp
pop ebp
ret
Function at 0x418660
Capabilities:
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x677000]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.005bb1c0
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x41871b
push 0x750f00
push 0
push 0x62a548
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x41871b
push 0xffffffffffffffff
push 0x750f00
push 0x104
push 0x750cf8
call fcn.005b9367
push 0x2e
push 0x750cf8
call fcn.005b99cf
add esp, 0x18
test eax, eax
je 0x41871b
push 0xffffffffffffffff
push str..LOG
xor ecx, ecx
push 0x104
push 0x750cf8
mov word [eax], cx
call fcn.005b9a75
add esp, 0x10
push 0x750cf8
push 0x750f00
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 0x750cf8
call fcn.005b7f8f
mov esp, ebp
pop ebp
ret

Function at 0x418730
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
mov eax, dword [0x677000]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
xor eax, eax
push edi
mov edi, dword [ebp + 8]
push 0x7fe
push eax
mov word [ebp - 0x81c], ax
mov dword [ebp - 0x812], eax
mov word [ebp - 0x80e], ax
mov word [ebp - 0x80c], ax
lea eax, [ebp - 0x80a]
xorps xmm0, xmm0
push eax
movq qword [ebp - 0x81a], xmm0
call fcn.005bb1c0
add esp, 0xc
cmp dword [0x74e810], 0
mov dword [ebp - 0x820], 0
je 0x418894
lea eax, [ebp - 0x81c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
cmp dword [0x74e814], 1
jne 0x41887c
push 0x750a20
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
push 0x750818
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x41885f
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
movzx eax, word [ebp - 0x810]
push edi
push eax
movzx eax, word [ebp - 0x812]
push eax
movzx eax, word [ebp - 0x814]
push eax
movzx eax, word [ebp - 0x816]
push eax
movzx eax, word [ebp - 0x81a]
push eax
movzx eax, word [ebp - 0x81c]
push eax
push str.__d__02d__02d__02d:_02d:_02d__s_r_n
push 0xffffffffffffffff
lea eax, [ebp - 0x80c]
push 0x400
push eax
call fcn.005b8769
add esp, 0x2c
lea ecx, [ebp - 0x820]
push 0
push ecx
add eax, eax
push eax
lea eax, [ebp - 0x80c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x750a20
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.005b7f8f
mov esp, ebp
pop ebp
ret 4
push 0x40000
push str.ERROR_LOG
push edi
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
pop esi
call fcn.005b7f8f
mov esp, ebp
pop ebp
ret 4
Function at 0x4189f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e3de8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x677000]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x62a5b8
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], 0
call fcn.0040ba80
mov dword [ebp - 4], 0
cmp dword [0x74e814], 1
mov dword [ebp - 0x14], 0
jne 0x418abd
push 0x750a20
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
push 0x750818
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x418ab2
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [ebp - 0x18]
cmp dword [ecx - 4], 1
mov edi, dword [ecx - 0xc]
jle 0x418a99
push edi
lea ecx, [ebp - 0x18]
call fcn.004078e0
mov ecx, dword [ebp - 0x18]
push 0
lea eax, [ebp - 0x14]
push eax
lea eax, [edi + edi]
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x750a20
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
or ecx, 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x418ae1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005b7f8f
mov esp, ebp
pop ebp
ret
Function at 0x418e20
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e3820
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x677000]
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, dword [0x74e2fc]
push 3
xor eax, eax
push 0x6295b4
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
call fcn.00406400
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 4], 0
mov ecx, dword [0x74e2f4]
lea eax, [ebp - 0x28]
push eax
add ecx, 0x1c
call fcn.00409910
mov byte [ebp - 4], 2
cmp dword [ebp - 0x2c], 8
jb 0x418ea6
push dword [ebp - 0x40]
call fcn.0049500b
add esp, 4
push 0x5c
xor eax, eax
push ecx
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x2c], 7
mov dword [ebp - 0x30], 0
mov word [ebp - 0x40], ax
call fcn.00414110
push 0xb
push str.cnwidsd.dll
lea ecx, [ebp - 0x28]
call fcn.004062d0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [edi + 0x70], eax
test eax, eax
jne 0x418ef4
push str.CNetworkSNMP::InitializeSNMPSearch__LoadLibrary___Failed
jmp 0x418f6f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CNWNSCH_CreateInstance
push eax
call esi
push str.CNWNSCH_DestroyInstance
push dword [edi + 0x70]
mov dword [edi], eax
call esi
push str.CNWNSCH_OptSetting
push dword [edi + 0x70]
mov dword [edi + 4], eax
call esi
push str.CNWNSCH_Search
push dword [edi + 0x70]
mov dword [edi + 8], eax
call esi
push str.CNWNSCH_SearchByIpv6
push dword [edi + 0x70]
mov dword [edi + 0xc], eax
call esi
push str.CNWNSCH_EnumSearchInfo
push dword [edi + 0x70]
mov dword [edi + 0x10], eax
call esi
cmp dword [edi], 0
mov dword [edi + 0x14], eax
je 0x418f6a
cmp dword [edi + 4], 0
je 0x418f6a
cmp dword [edi + 8], 0
je 0x418f6a
cmp dword [edi + 0xc], 0
je 0x418f6a
cmp dword [edi + 0x10], 0
je 0x418f6a
test eax, eax
je 0x418f6a
mov bl, 1
jmp 0x418f76
push str.CNetworkSNMP::InitializeSNMPSearch__GetProcAddress___Failed
call fcn.00418730
xor bl, bl
cmp dword [ebp - 0x14], 8
jb 0x418f87
push dword [ebp - 0x28]
call fcn.0049500b
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.005b7f8f
mov esp, ebp
pop ebp
ret