joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43c304
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x870
push ebx
push esi
push edi
xor esi, esi
push 0x40
lea eax, [ebp - 0x68]
push esi
push eax
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 0x6c], 0x44
call fcn.0045b9c0
xor eax, eax
mov dword [ebp - 0x20], esi
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x10]
push eax
xor ebx, ebx
mov dword [ebp - 0x10], esi
call fcn.0043d010
add esp, 0x10
test eax, eax
je 0x43c3f0
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x10]
call fcn.0043d0be
push 0x7fe
lea eax, [ebp - 0x86a]
push esi
push eax
mov word [ebp - 0x86c], si
call fcn.0045b9c0
push str.http:__www.ijinshan.com_protocol_dubaUserLicense.shtml
push dword [ebp + 8]
lea eax, [ebp - 0x86c]
push 0x4a4818
push 0x400
push eax
call fcn.0045a393
add esp, 0x28
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
cmp ebx, esi
je 0x43c3d1
push str.CreateProcessWithTokenW
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x43c3d1
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x6c]
push ecx
push esi
push esi
push esi
lea ecx, [ebp - 0x86c]
push ecx
push esi
push esi
push dword [ebp - 8]
call eax
jmp 0x43c3ed
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x6c]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x86c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 8], esi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x43c403
push dword [ebp - 8]
call edi
mov dword [ebp - 8], esi
cmp dword [ebp - 0x20], esi
je 0x43c410
push dword [ebp - 0x20]
call edi
mov dword [ebp - 0x20], esi
cmp dword [ebp - 0x1c], esi
je 0x43c41d
push dword [ebp - 0x1c]
call edi
mov dword [ebp - 0x1c], esi
cmp ebx, esi
je 0x43c428
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43c430
Capabilities:
Check os version
Create process on windows

Disassembly:
mov eax, 0x492321
call fcn.00491844
sub esp, 0x178
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
jne 0x43c44f
xor eax, eax
jmp 0x43c606
mov eax, dword [0x4b9e00]
push esi
mov ecx, 0x4b9e00
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x18], eax
push dword [ebp + 0xc]
mov dword [ebp - 4], ebx
push dword [ebp + 8]
lea eax, [ebp - 0x18]
push 0x4a4818
call fcn.0041fde1
push 0x110
lea eax, [ebp - 0x180]
push ebx
push eax
call fcn.0045b9c0
add esp, 0x18
lea eax, [ebp - 0x184]
push eax
mov dword [ebp - 0x184], 0x114
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x43c4b5
cmp dword [ebp - 0x180], 6
jne 0x43c4b5
inc esi
cmp esi, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
lea esi, [ebp - 0x10]
jne 0x43c4c9
call fcn.00430cfd
jmp 0x43c4ce
call fcn.00430cad
cmp eax, ebx
jne 0x43c5e9
push edi
push 0x40
lea eax, [ebp - 0x6c]
push ebx
push eax
mov dword [ebp - 0x70], 0x44
call fcn.0045b9c0
push dword [ebp - 0x10]
xor eax, eax
mov dword [ebp - 0x2c], ebx
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp + 0x10]
neg eax
sbb eax, eax
and eax, 5
mov dword [ebp - 0x44], 1
mov word [ebp - 0x40], ax
call fcn.00430d68
add esp, 0x10
test al, al
jne 0x43c534
cmp dword [ebp - 0x10], ebx
je 0x43c52a
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x10], ebx
lea eax, [ebp - 0x10]
push eax
call fcn.00430ee2
pop ecx
push str.userenv.dll
mov dword [ebp - 0x68], 0x4a482c
mov dword [ebp - 0x14], 0x30
mov dword [ebp + 8], ebx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [ebp - 0x1c], eax
je 0x43c593
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CreateEnvironmentBlock
push eax
call edi
push str.DestroyEnvironmentBlock
push dword [ebp - 0x1c]
mov esi, eax
call edi
cmp esi, ebx
mov edi, eax
je 0x43c593
push ebx
push dword [ebp - 0x10]
lea eax, [ebp + 8]
push eax
call esi
test eax, eax
je 0x43c590
mov dword [ebp - 0x14], 0x430
jmp 0x43c593
mov dword [ebp + 8], ebx
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x70]
push eax
push ebx
push dword [ebp + 8]
push dword [ebp - 0x14]
push ebx
push ebx
push ebx
push dword [ebp - 0x18]
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
cmp dword [ebp - 0x2c], ebx
mov dword [ebp - 0x14], eax
je 0x43c5c3
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x28], ebx
je 0x43c5d1
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, ebx
je 0x43c5da
push dword [ebp + 8]
call edi
cmp dword [ebp - 0x1c], ebx
pop edi
je 0x43c5e9
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x10], ebx
pop esi
je 0x43c5f8
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00405ffd
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x43c613
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x492fe2
call fcn.00491844
mov eax, dword [ebp + 8]
mov eax, dword [eax]
sub esp, 0xc
push edi
xor edi, edi
cmp dword [eax - 0xc], edi
je 0x43c809
mov eax, dword [0x4b9e00]
push ebx
push esi
mov esi, 0x4b9e00
mov ecx, esi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], edi
mov eax, dword [0x4b9e00]
mov ecx, esi
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0x14], ebx
mov byte [ebp - 4], 1
cmp dword [ebx - 0xc], edi
jne 0x43c7cf
mov eax, dword [ebp + 8]
lea edi, [ebp - 0x14]
call fcn.0041feaa
mov ebx, dword [ebp - 0x14]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x43c68b
mov esi, edi
call fcn.00416d0e
mov ebx, dword [ebp - 0x14]
cmp dword [ebx - 0xc], 0
jne 0x43c7cf
lea esi, [ebp - 0x10]
call fcn.00416d0e
lea edi, [ebp - 0x18]
call fcn.0043cac7
mov edi, esi
mov byte [ebp - 4], 5
call fcn.0041feaa
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00405ffd
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
je 0x43c72d
push eax
lea esi, [ebp - 0x18]
call fcn.0043c818
pop ecx
mov byte [ebp - 4], 6
call fcn.0041feaa
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00405ffd
push dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
mov ecx, edi
call fcn.00405f86
pop ecx
pop ecx
lea edi, [ebp - 0x14]
mov byte [ebp - 4], 7
call fcn.0041feaa
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00405ffd
mov ebx, dword [ebp - 0x14]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x43c72d
mov esi, edi
call fcn.00416d0e
mov ebx, dword [ebp - 0x14]
cmp dword [ebx - 0xc], 0
jne 0x43c7cf
lea esi, [ebp - 0x10]
call fcn.00416d0e
lea edi, [ebp - 0x18]
call fcn.0043cb66
mov edi, esi
mov byte [ebp - 4], 8
call fcn.0041feaa
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00405ffd
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
je 0x43c7cb
push eax
lea esi, [ebp - 0x18]
call fcn.0043c818
pop ecx
mov byte [ebp - 4], 9
call fcn.0041feaa
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00405ffd
push dword [ebp + 8]
lea eax, [ebp - 0x18]
push eax
mov ecx, edi
call fcn.00405f86
pop ecx
pop ecx
lea edi, [ebp - 0x14]
mov byte [ebp - 4], 0xa
call fcn.0041feaa
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00405ffd
mov ebx, dword [ebp - 0x14]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x43c7cb
mov esi, edi
call fcn.00416d0e
mov ebx, dword [ebp - 0x14]
cmp dword [ebx - 0xc], 0
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
je 0x43c7eb
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x43c7eb
push ebx
call esi
mov edi, eax
test edi, edi
jne 0x43c7f4
mov eax, dword [ebp + 8]
push dword [eax]
call esi
mov edi, eax
lea eax, [ebx - 0x10]
call fcn.00405ffd
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00405ffd
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
mov dword fs:[0], ecx
leave
ret
Function at 0x43c8a5
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push esi
mov esi, dword [ebp + 8]
mov ecx, dword [esi]
xor eax, eax
cmp dword [ecx - 0xc], eax
je 0x43c908
push ebx
push edi
push 0x208
push eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.0045b9c0
add esp, 0xc
mov ebx, str._ALLUSERSPROFILE_
push ebx
xor ecx, ecx
call fcn.00413a07
or edi, 0xffffffff
cmp eax, edi
je 0x43c90b
lea eax, [ebp - 0x210]
push eax
push ebx
call fcn.0043cdd7
pop ecx
test eax, eax
pop ecx
jne 0x43ca1b
xor eax, eax
pop edi
pop ebx
pop esi
leave
ret
mov ebx, str._APPDATA_
push ebx
xor ecx, ecx
call fcn.00413a07
cmp eax, edi
jne 0x43c8ed
mov ebx, str._TEMP_
push ebx
xor ecx, ecx
call fcn.00413a07
cmp eax, edi
jne 0x43c8ed
mov ebx, str._SYSTEM_
push ebx
xor ecx, ecx
call fcn.00413a07
cmp eax, edi
je 0x43c959
push 0x104
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jbe 0x43c904
jmp 0x43ca1b
mov ebx, str._WINDOWS_
push ebx
xor ecx, ecx
call fcn.00413a07
cmp eax, edi
je 0x43c97e
push 0x104
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
jmp 0x43c950
mov ebx, str._CUR_MODULE_
push ebx
xor ecx, ecx
call fcn.00413a07
cmp eax, edi
je 0x43c9a0
lea eax, [ebp - 0x210]
push eax
call fcn.0043cd30
jmp 0x43c8fb
mov ebx, str._CUR_EXE_MODULE_
push ebx
xor ecx, ecx
call fcn.00413a07
cmp eax, edi
je 0x43c9cf
push 0x104
lea eax, [ebp - 0x210]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x43c904
jmp 0x43ca0e
mov ebx, str._CUR_DIR_
push ebx
xor ecx, ecx
call fcn.00413a07
cmp eax, edi
je 0x43c904
push 0x20a
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.0045b9c0
add esp, 0xc
push 0x105
lea eax, [ebp - 0x210]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea eax, [ebp - 0x210]
push eax
push ebx
push esi
call fcn.0042f2f4
push 0x3f
xor ecx, ecx
call fcn.00405f5c
mov ebx, eax
cmp ebx, edi
je 0x43caad
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.0045fc08
pop ecx
jmp 0x43ca9e
and word [ebp + 8], 0
xor eax, eax
lea edi, [ebp + 0xa]
stosw word es:[edi], ax
call fcn.0045fc15
and eax, 0x8000000f
jns 0x43ca64
dec eax
or eax, 0xfffffff0
inc eax
push eax
lea eax, [ebp + 8]
push 0x4a4974
push eax
call fcn.0043d3f2
movzx edi, word [ebp + 8]
add esp, 0xc
test ebx, ebx
jl 0x43cabc
mov eax, dword [esi]
mov eax, dword [eax - 0xc]
cmp ebx, eax
mov dword [ebp - 4], eax
jge 0x43cabc
call fcn.00431311
mov word [eax + ebx*2], di
mov eax, dword [ebp - 4]
mov edx, esi
call fcn.0040d228
inc ebx
mov ecx, ebx
mov eax, esi
call fcn.0043d40a
cmp ax, 0x3f
je 0x43ca47
mov eax, esi
call fcn.0043bc7e
xor eax, eax
inc eax
jmp 0x43c906
push 0x80070057
call fcn.0041fff1
int3
Function at 0x43cac7
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push esi
xor esi, esi
test byte [0x4bbb40], 1
mov dword [ebp - 4], esi
jne 0x43cb06
mov eax, dword [0x4b9e00]
or dword [0x4bbb40], 1
mov ecx, 0x4b9e00
call dword [eax + 0xc]
add eax, 0x10
push 0x49560f
mov dword [0x4bbb3c], eax
call fcn.0045a381
pop ecx
mov eax, dword [0x4bbb3c]
cmp dword [eax - 0xc], esi
jne 0x43cb4f
push 0x20a
lea eax, [ebp - 0x20e]
push esi
push eax
mov word [ebp - 0x210], si
call fcn.0045b9c0
add esp, 0xc
push 1
push 0x25
lea eax, [ebp - 0x210]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x210]
push eax
push 0x4bbb3c
call fcn.0041ffb0
mov eax, dword [0x4bbb3c]
add eax, 0xfffffff0
call fcn.0041ff58
add eax, 0x10
mov dword [edi], eax
mov eax, edi
pop esi
leave
ret

Function at 0x43cb66
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push esi
xor esi, esi
test byte [0x4bbb38], 1
mov dword [ebp - 4], esi
jne 0x43cba5
mov eax, dword [0x4b9e00]
or dword [0x4bbb38], 1
mov ecx, 0x4b9e00
call dword [eax + 0xc]
add eax, 0x10
push 0x49561c
mov dword [0x4bbb34], eax
call fcn.0045a381
pop ecx
mov eax, dword [0x4bbb34]
cmp dword [eax - 0xc], esi
jne 0x43cbee
push 0x20a
lea eax, [ebp - 0x20e]
push esi
push eax
mov word [ebp - 0x210], si
call fcn.0045b9c0
add esp, 0xc
push 1
push 0x24
lea eax, [ebp - 0x210]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x210]
push eax
push 0x4bbb34
call fcn.0041ffb0
mov eax, dword [0x4bbb34]
add eax, 0xfffffff0
call fcn.0041ff58
add eax, 0x10
mov dword [edi], eax
mov eax, edi
pop esi
leave
ret

Function at 0x43cc05
Capabilities:
Get common file path
Get program files directory

Disassembly:
mov eax, 0x4921e0
call fcn.00491844
sub esp, 0x20c
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 4], edi
mov ecx, 0x4b9e00
mov dword [ebp - 0x10], edi
call fcn.00405fe2
push 0x206
lea eax, [ebp - 0x216]
mov dword [ebp - 4], edi
push edi
push eax
mov dword [ebp - 0x10], 1
mov word [ebp - 0x218], di
call fcn.0045b9c0
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push edi
push edi
push 0x26
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jl 0x43cc87
push str.Internet_Exploreriexplore.exe
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.0041ffb0
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x43cdd7
Capabilities:
Query environment variable

Disassembly:
push 0x14
push 0x4ac678
call fcn.004916d4
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp + 8], eax
je 0x43ce85
cmp dword [ebp + 0xc], eax
je 0x43ce85
push eax
push eax
push dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
call edi
mov esi, eax
cmp esi, 1
jb 0x43ce85
mov ebx, 0x103
cmp esi, ebx
ja 0x43ce85
and dword [ebp - 4], 0
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0045832c
pop ecx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x43ce81
lea ecx, [esi + esi]
push ecx
push 0
push eax
call fcn.0045b9c0
add esp, 0xc
push esi
push dword [ebp - 0x24]
push dword [ebp + 8]
call edi
test eax, eax
je 0x43ce81
cmp eax, ebx
ja 0x43ce81
push eax
push dword [ebp - 0x24]
push ebx
push dword [ebp + 0xc]
call fcn.0045bc42
add esp, 0x10
mov dword [ebp - 0x20], 1
jmp 0x43ce81
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x1c], 0
je 0x43ce94
push dword [ebp - 0x1c]
call fcn.0045b76b
pop ecx
mov eax, dword [ebp - 0x20]
call fcn.0049170f
ret

Function at 0x43d010
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
push esi
push edi
push 0x4a3224
lea eax, [ebp - 4]
push eax
xor esi, esi
xor edi, edi
call fcn.0041fa93
push 0x228
lea eax, [ebp - 0x22c]
push esi
push eax
mov dword [ebp - 0x230], esi
call fcn.0045b9c0
add esp, 0xc
push esi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x43d0ad
lea eax, [ebp - 0x230]
push eax
push esi
mov dword [ebp - 0x230], 0x22c
call sub.KERNEL32.dll_Process32FirstW
jmp 0x43d092
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 4]
call fcn.0045b92e
test eax, eax
pop ecx
pop ecx
je 0x43d098
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x43d070
jmp 0x43d0a6
mov eax, dword [ebp - 0x228]
mov ecx, dword [ebp + 8]
xor edi, edi
mov dword [ecx], eax
inc edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
add eax, 0xfffffff0
call fcn.00405ffd
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x43d7e6
Capabilities:
Check if file exists
Delete file

Disassembly:
mov eax, 0x494dff
call fcn.00491844
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
sub esp, 0x9c
push ebx
xor ebx, ebx
cmp ecx, ebx
push esi
je 0x43d955
mov ecx, dword [edi]
cmp dword [ecx - 0xc], ebx
je 0x43d955
push eax
lea esi, [ebp - 0xa4]
call fcn.00422067
mov dword [ebp - 4], ebx
push dword [eax]
lea eax, [ebp + 8]
push eax
call fcn.0041e037
lea eax, [ebp - 0xa0]
mov byte [ebp - 4], 2
cmp dword [ebp - 0xa4], eax
je 0x43d84d
push dword [ebp - 0xa4]
call fcn.0045bbb4
pop ecx
mov ecx, 0x4b9e00
lea esi, [ebp - 0x14]
mov dword [ebp - 0x20], 0x4a4a7c
call fcn.00405fe2
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 4], 3
push dword [edi]
mov eax, esi
push eax
call fcn.0041ffb0
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x43d882
mov dword [ebp - 0x18], eax
push dword [ebp + 8]
lea ebx, [ebp - 0x20]
call fcn.0043d71b
push dword [edi]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
call esi
test eax, eax
je 0x43d8a3
push dword [edi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp + 0x14], 0
lea ebx, [ebp - 0x20]
jne 0x43d8b3
push 0x12c
jmp 0x43d8b6
push dword [ebp + 0x14]
push dword [ebp + 8]
call fcn.0043d425
mov ebx, eax
test ebx, ebx
pop ecx
pop ecx
je 0x43d909
push dword [edi]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x43d8d7
mov dword [eax], ebx
cmp dword [ebp - 0x10], 0
je 0x43d8ea
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x10], 0
mov esi, 0xfa
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00405ffd
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.00405ffd
mov eax, esi
jmp 0x43d958
push dword [edi]
call esi
test eax, eax
jne 0x43d928
cmp dword [ebp - 0x10], eax
je 0x43d923
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x10], 0
push 0x35
pop esi
jmp 0x43d8ef
cmp dword [ebp - 0x10], 0
je 0x43d93b
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00405ffd
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
call fcn.00405ffd
xor eax, eax
jmp 0x43d958
push 0x33
pop eax
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x43e5b3
Capabilities:
Check if file exists

Disassembly:
mov eax, dword [esi + 0xc]
cmp dword [eax - 0xc], 0
jne 0x43e5c2
mov eax, 0x13a
ret
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x43e5d3
mov eax, 0x13b
ret
push dword [esi + 0x20]
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
push eax
push ecx
call fcn.0043c430
add esp, 0xc
test eax, eax
je 0x43e5ed
xor eax, eax
ret
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
push eax
push ecx
mov ecx, dword [esi + 0x20]
call fcn.0043c194
test eax, eax
pop ecx
pop ecx
jne 0x43e5ea
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
push 0
push eax
push ecx
mov ecx, dword [esi + 0x20]
call fcn.0043bb9e
add esp, 0xc
neg eax
sbb eax, eax
and eax, 0xfffffec7
add eax, 0x139
ret

Function at 0x43e9d6
Capabilities:
Send icmp echo request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
and dword [ebp - 8], 0
push esi
push edi
call fcn.0043eaa2
test al, al
jne 0x43e9f3
or eax, 0xffffffff
jmp 0x43ea9e
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
lea ecx, [ebp - 8]
push ecx
push eax
call fcn.0043eb73
test al, al
pop ecx
pop ecx
je 0x43e9eb
and dword [ebp - 4], 0
mov esi, str.Data_Buffer
lea edi, [ebp - 0x18]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call sub.iphlpapi.dll_IcmpCreateFile
mov edi, eax
cmp edi, 0xffffffff
jne 0x43ea28
xor eax, eax
jmp 0x43ea9e
push dword [ebp - 8]
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [ebp - 0xc], eax
jne 0x43ea41
push edi
call sub.iphlpapi.dll_IcmpCloseHandle
jmp 0x43ea24
push 0x28
call fcn.0045ad7c
mov esi, eax
test esi, esi
pop ecx
je 0x43ea39
mov dword [ebp - 8], 2
push 0x3e8
push 0x28
push esi
push 0
push 0xc
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0xc]
push edi
call sub.iphlpapi.dll_IcmpSendEcho
test eax, eax
je 0x43ea7c
cmp dword [esi + 4], 0
jne 0x43ea7c
inc dword [ebp - 4]
dec dword [ebp - 8]
jne 0x43ea56
push esi
call fcn.0045bbb4
pop ecx
push edi
call sub.iphlpapi.dll_IcmpCloseHandle
call fcn.0043eb25
test al, al
je 0x43e9eb
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret

Function at 0x43eaa2
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1a4
push esi
lea eax, [esp + 0x18]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
cmp eax, 0xffffffff
jne 0x43eb07
push 0x4b9c00
call fcn.0043ed41
pop ecx
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push ecx
push str.WSAGetLastError____
push ecx
push str.An_error_occured_in_WSAStartup_operation:
push esi
call fcn.0043ebfb
add esp, 0xc
push eax
call fcn.0043ebfb
add esp, 0xc
push eax
call fcn.0042631c
mov esi, eax
call fcn.0043ebe8
xor al, al
jmp 0x43eb20
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
movzx eax, word [esp + 0x16]
push eax
call fcn.0045fc08
pop ecx
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x43eb73
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push esi
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x43ebbc
push 0x4b9c00
call fcn.0043ed41
pop ecx
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push ecx
push str.An_error_occured_in_gethostbyname_operation:_WSAGetLastError____
push esi
call fcn.0043ebfb
add esp, 0xc
push eax
call fcn.0042631c
mov esi, eax
call fcn.0043ebe8
xor al, al
jmp 0x43ebe3
mov eax, dword [eax + 0xc]
push 4
push dword [eax]
lea eax, [esp + 0xc]
push 4
push eax
call fcn.0045bb39
add esp, 0x10
push dword [esp + 4]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret