joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a884
Capabilities:
Contain obfuscated stackstrings
Get number of processors

Disassembly:
push edx
push ebx
add esp, 4
jmp 0x40a6a4
and edx, 0x273f
or edx, 0x10577
sub edx, 0x14a42
pop edx
push edx
xor edx, 0x5cca
or edx, 0x64e1
add edx, 0x282e
pop edx
lea edx, [ebp - 0x1734]
mov dword [ebp - 0xcc0], edx
mov eax, dword [ebp - 0x514]
mov ecx, dword [eax + 0x30]
mov dword [ebp - 0xcbc], ecx
xor edx, edx
mov word [ebp - 0x218], dx
xor eax, eax
mov word [ebp - 0x38], ax
push edi
push esi
add esp, 4
add edi, 0xf504
pop edi
push ebx
and ebx, 0x151d8
xor ebx, 0x419d
pop ebx
push ebx
push edx
add esp, 4
sub ebx, 0x8226
or ebx, 0x4438
xor ebx, 0x2367
pop ebx
mov ecx, dword [ebp - 0xcbc]
mov dx, word [ecx]
mov word [ebp - 0x103e], dx
mov eax, dword [ebp - 0xcbc]
add eax, 2
mov dword [ebp - 0xcbc], eax
mov cx, word [ebp - 0x103e]
mov word [ebp - 0x218], cx
mov edx, dword [ebp - 0xcc0]
mov ax, word [edx]
mov word [ebp - 0x1040], ax
mov ecx, dword [ebp - 0xcc0]
add ecx, 2
mov dword [ebp - 0xcc0], ecx
mov dx, word [ebp - 0x1040]
xchg ebp, eax
shr bh, 0xff
jmp dword [esi - 0x77]
push ebp
enter 0x5053, 0xffffffffffffff83
les eax, [ecx + eax*4]
ret
int 0xfb
add byte [eax], al
or ebx, 0x9845
pop ebx
push edi
push ecx
add esp, 4
add edi, 0xd2eb
pop edi
push edx
or edx, 0x11dd0
add edx, 0x141c5
and edx, 0x133ca
pop edx
movzx eax, word [ebp - 0x38]
test eax, eax
jne 0x40a7cd
movzx ecx, word [ebp - 0x218]
movzx edx, word [ebp - 0x38]
sub ecx, edx
mov dword [ebp - 0x1614], ecx
jmp 0x40a827
movzx eax, word [ebp - 0x218]
movzx ecx, word [ebp - 0x38]
cmp eax, ecx
je 0x40a6f5
movzx edx, word [ebp - 0x218]
xor edx, 0x20
movzx eax, word [ebp - 0x38]
cmp edx, eax
je 0x40a6f5
movzx ecx, word [ebp - 0x218]
movzx edx, word [ebp - 0x38]
cmp ecx, edx
jge 0x40a811
mov dword [ebp - 0x1610], 0xffffffff
jmp 0x40a81b
mov dword [ebp - 0x1610], 1
mov eax, dword [ebp - 0x1610]
mov dword [ebp - 0x1614], eax
cmp dword [ebp - 0x1614], 0
jne 0x40a870
push eax
or eax, 0x1304b
or eax, 0xdb88
pop eax
push eax
or eax, 0x1d4a
pop eax
push edx
add edx, 0x13331
xor edx, 0x66a3
sub edx, 0x12243
pop edx
push eax
xor eax, 0x7d67
pop eax
mov ecx, dword [ebp - 0x514]
mov dword [ebp - 0x314], ecx
jmp 0x40a8d8
push eax
push eax
add esp, 4
call fcn.0040a884
add byte [ebx], bh
cmp al, 0x4f
inc ecx
cmp eax, 0x4b4d4c4f
add esp, 4
jmp 0x40a88d
and eax, 0x89e4
pop eax
push edi
sub edi, 0x70e8
add edi, 0x109c4
pop edi
mov edx, dword [ebp - 0x514]
mov eax, dword [edx]
mov dword [ebp - 0x514], eax
mov ecx, dword [ebp - 0x514]
cmp ecx, dword [ebp - 0xcc4]
je 0x40a8ce
mov edx, dword [ebp - 0x514]
cmp dword [edx + 0x30], 0
jne 0x40a699
mov dword [ebp - 0x314], 0
Function at 0x40ad72
Capabilities:
Resolve function by parsing pe exports

Disassembly:
dec dword [ebx - 0x199773]
dec dword [ecx - 0x161773]
call dword [ebx - 0x15]
add eax, 0x3c374e50
dec esp
call 0x40aa7c
add byte [ecx], bh
inc ebp
inc edx
dec edx
inc eax
xor al, 0x36
dec edx
xor eax, dword [ebx + 0x5eb04c4]
inc ecx
cmp eax, dword [ebx + 0x33]
dec edi
call 0x40aa93
add byte [esi], bh
cmp byte [esi + 0x4f], cl
cmp al, 0x40
cmp al, byte [ebx - 0x7ca4fb3c]
mov ebp, 0xffffe9e8
add byte [ebp + 0xf], dh
mov dword [ebp - 0x774], 0
jmp 0x40ad56
push ebx
push edi
add esp, 4
xor ebx, 0xe5b6
pop ebx
push eax
call 0x40ad72
add byte [edx + 0x33], al
cmp ecx, dword [eax + 0x38]
cmp ecx, dword [esi + 0x4f]
cmp dword [ebx - 0x177efb3c], eax
or dword [ebx], 0x50525800
add esp, 4
add edx, 0x13bc6
pop edx
cmp dword [ebp - 0x774], 0
jne 0x40add2
push eax
push ecx
add esp, 4
sub eax, 0x131a4
call 0x40adaa
add byte [edx], bh
aas
push eax
cmp bh, byte [eax]
aas
dec esi
add esp, 4
les eax, [eax + ebx*2]
push edi
call 0x40adbf
add byte [edx + eax*2 + 0x32], cl
xor dh, byte [edi]
cmp edi, dword [ebx]
dec eax
inc ebp
inc esp
add esp, 4
pop edi
mov dword [ebp - 0xab0], 0
jmp 0x40b8fa
push ebx
push ecx
add esp, 4
and ebx, 0xcc82
sub ebx, 0x61fb
popal
add byte [eax], al
sub ebx, 0x6f43
xor ebx, 0xaf87
pop ebx
push edi
and edi, 0x123bc
sub edi, 0x17c13
xor edi, 0xf998
pop edi
mov ecx, dword [ebp - 0x774]
mov edx, dword [ecx + 0x18]
mov dword [ebp - 0x3a4], edx
mov dword [ebp - 0x784], 0
mov eax, dword [ebp - 0x3a4]
mov dword [ebp - 0x1664], eax
cmp dword [ebp - 0x1664], 0
jne 0x40ae43
mov ecx, dword [ebp - 0x784]
mov dword [ebp - 0x3f4], ecx
jmp 0x40b134
mov edx, dword [ebp - 0x1664]
mov eax, dword [ebp - 0x3a4]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x1668], eax
jne 0x40ae6b
mov ecx, dword [ebp - 0x784]
mov dword [ebp - 0x3f4], ecx
jmp 0x40b134
mov edx, 8
imul eax, edx, 0
mov ecx, dword [ebp - 0x1668]
mov edx, dword [ecx + eax + 0x78]
mov dword [ebp - 0x166c], edx
cmp dword [ebp - 0x166c], 0
jne 0x40ae9d
mov eax, dword [ebp - 0x784]
mov dword [ebp - 0x3f4], eax
jmp 0x40b134
mov ecx, dword [ebp - 0x3a4]
add ecx, dword [ebp - 0x166c]
mov dword [ebp - 0x778], ecx
jne 0x40aec2
mov edx, dword [ebp - 0x784]
mov dword [ebp - 0x3f4], edx
jmp 0x40b134
mov eax, dword [ebp - 0x778]
mov ecx, dword [ebp - 0x3a4]
add ecx, dword [eax + 0x20]
mov dword [ebp - 0x199c], ecx
mov edx, dword [ebp - 0x778]
mov eax, dword [ebp - 0x3a4]
add eax, dword [edx + 0x24]
mov dword [ebp - 0x19a0], eax
mov ecx, dword [ebp - 0x778]
mov edx, dword [ebp - 0x3a4]
add edx, dword [ecx + 0x1c]
mov dword [ebp - 0x19a4], edx
mov dword [ebp - 0x77c], 0
Function at 0x40b58a
Capabilities:
Resolve function by parsing pe exports

Disassembly:
inc edx
pop ebx
mov ecx, dword [ebp - 0x314]
mov edx, dword [ecx + 0x18]
mov dword [ebp - 0x338], edx
push esi
sub esi, 0x1bf9
and esi, 0x17019
add esi, 0xabcd
or esi, 0x845a
pop esi
push esi
push ecx
add esp, 4
sub esi, 0x11f80
sub esi, 0x45be
and esi, 0xf192
pop esi
mov dword [ebp - 0x794], 0
mov eax, dword [ebp - 0x338]
mov dword [ebp - 0x1680], eax
cmp dword [ebp - 0x1680], 0
jne 0x40b5fd
mov ecx, dword [ebp - 0x794]
mov dword [ebp - 0x520], ecx
jmp 0x40b8ee
mov edx, dword [ebp - 0x1680]
mov eax, dword [ebp - 0x338]
add eax, dword [edx + 0x3c]
mov dword [ebp - 0x1684], eax
jne 0x40b625
mov ecx, dword [ebp - 0x794]
mov dword [ebp - 0x520], ecx
jmp 0x40b8ee
mov edx, 8
imul eax, edx, 0
mov ecx, dword [ebp - 0x1684]
mov edx, dword [ecx + eax + 0x78]
mov dword [ebp - 0x1688], edx
cmp dword [ebp - 0x1688], 0
jne 0x40b657
mov eax, dword [ebp - 0x794]
mov dword [ebp - 0x520], eax
jmp 0x40b8ee
mov ecx, dword [ebp - 0x338]
add ecx, dword [ebp - 0x1688]
mov dword [ebp - 0x788], ecx
jne 0x40b67c
mov edx, dword [ebp - 0x794]
mov dword [ebp - 0x520], edx
jmp 0x40b8ee
mov eax, dword [ebp - 0x788]
mov ecx, dword [ebp - 0x338]
invalid
dec eax

Function at 0x42b064
Capabilities:
Get common file path
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4bc
push ebx
push esi
mov esi, ecx
cmp byte [esi + 0x54], 0
push edi
je 0x42b08b
push 0x42987f
push 0x10
push 0x10
push 3
call fcn.0042af77
mov dword [esi + 0x48], eax
push 0x42ae4a
push 9
push 9
push 2
mov ecx, esi
call fcn.0042af77
mov dword [esi + 0x4c], eax
lea eax, [ebp - 0x208]
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
test eax, eax
jne 0x42b0bd
mov word [ebp - 0x208], ax
mov edi, dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
push 0x4011
mov ebx, 0x2b4
push ebx
lea eax, [ebp - 0x4bc]
push eax
push 0x10
lea eax, [ebp - 0x208]
push eax
call edi
mov dword [esi + 0x44], eax
mov eax, dword [ebp - 0x4b8]
push 0x4013
mov dword [esi + 0x58], eax
push ebx
lea eax, [ebp - 0x4bc]
push eax
push 0x10
lea eax, [ebp - 0x208]
push eax
call edi
mov eax, dword [ebp - 0x4b8]
pop edi
mov dword [esi + 0x5c], eax
pop esi
pop ebx
leave
ret
Function at 0x42b2e5
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp dword [esi + 0x3c], ebx
je 0x42b3bb
mov eax, dword [esi + 4]
mov dword [ebp + 8], eax
test eax, eax
je 0x42b30b
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi + 0x38]
mov dword [esi + 0x3c], ebx
mov eax, dword [eax + ebx*4]
mov dword [esi + 4], eax
test eax, eax
jne 0x42b37b
push edi
push 0x18
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov edi, eax
pop ecx
test edi, edi
je 0x42b345
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
and dword [edi + 8], 0
mov dword [edi + 0xc], esi
mov dword [edi], 0x503350
mov dword [edi + 0x10], esi
mov dword [edi + 0x14], eax
jmp 0x42b347
xor edi, edi
mov eax, dword [esi + 0x30]
mov eax, dword [eax + 4]
mov ecx, dword [esi + 0x34]
push edi
push fcn.0046763b
push eax
mov eax, ebx
shl eax, 4
mov edx, dword [ecx + eax]
mov ecx, dword [0x548870]
call fcn.00468bb6
cmp byte [esi + 0x40], 0
mov dword [esi + 4], eax
pop edi
je 0x42b37b
mov ecx, eax
call fcn.00467f00
mov ecx, dword [esi + 0x30]
mov eax, dword [ecx]
push ebx
push esi
or edx, 0xffffffff
call dword [eax + 0x18]
mov eax, dword [esi + 0x24]
mov edx, dword [esi + 0x2c]
mov ecx, dword [esi + 0x20]
push 0x250
sub edx, eax
push edx
mov edx, dword [esi + 0x28]
sub edx, ecx
push edx
push eax
push ecx
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x42b3bb
mov edx, dword [ebp + 8]
call fcn.00429bbc
pop esi
pop ebx
pop ebp
ret 8
Function at 0x42e870
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
cmp byte [0x547944], 0
je 0x42e886
mov al, 1
leave
ret
lea eax, [ebp - 0x190]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x42e8bc
mov eax, dword [ebp - 0x190]
cmp al, 2
jne 0x42e8b6
shr eax, 8
cmp al, 2
jne 0x42e8b6
mov byte [0x547944], 1
jmp 0x42e882
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor al, al
leave
ret

Function at 0x42e8c0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push esi
push edi
push 0x44
pop esi
push esi
xor edi, edi
lea eax, [ebp - 0x5c]
push edi
push eax
mov dword [ebp - 4], edx
mov dword [ebp - 8], ecx
call sub.MSVCRT.dll_memset
mov ebx, dword [ebp + 0xc]
add esp, 0xc
mov dword [ebp - 0x5c], esi
cmp ebx, edi
je 0x42e926
mov esi, dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push 2
push 1
push edi
lea eax, [ebp + 0xc]
push eax
call esi
push eax
push ebx
call esi
push eax
call dword [sym.imp.KERNEL32.DLL_DuplicateHandle]
test eax, eax
je 0x42e90f
mov eax, dword [ebp + 0xc]
or dword [ebp - 0x30], 0x100
or dword [ebp - 0x30], 1
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 0x20], ebx
mov word [ebp - 0x2c], ax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x5c]
push eax
push dword [ebp + 8]
xor eax, eax
push edi
cmp ebx, edi
setne al
push edi
push eax
push edi
push edi
push dword [ebp - 4]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [ebp + 0xc], eax
cmp eax, edi
je 0x42e96e
mov eax, dword [ebp + 0x10]
cmp eax, edi
je 0x42e964
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
jmp 0x42e969
push dword [ebp - 0x18]
call esi
push dword [ebp - 0x14]
call esi
cmp ebx, edi
je 0x42e977
push dword [ebp - 0x1c]
call esi
xor eax, eax
cmp dword [ebp + 0xc], edi
pop edi
pop esi
setne al
pop ebx
leave
ret 0xc
Function at 0x42ef1b
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x448
mov byte [ebp - 8], dl
mov dword [ebp - 0xc], ecx
mov byte [ebp - 1], 0
test dl, dl
je 0x42ef41
push 0x4f6c3c
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateMutexA]
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x240]
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
mov eax, dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.DLL_Sleep]
mov ebx, 0x1f4
push ebx
mov dword [ebp - 0x14], 3
mov dword [ebp - 0x10], eax
call edi
mov esi, dword [sym.imp.KERNEL32.DLL_CopyFileW]
jmp 0x42f086
mov ecx, dword [ebp - 0xc]
call fcn.004a49fb
test al, al
je 0x42efa0
push 0
push dword [ebp - 0xc]
lea eax, [ebp - 0x240]
push eax
call esi
test eax, eax
jne 0x42f09c
mov edx, dword [ebp - 0xc]
lea ecx, [ebp - 0x240]
call fcn.004a3787
test al, al
jne 0x42f09c
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 8]
jne 0x42f018
cmp byte [ebp - 8], 0
je 0x42f018
call fcn.0045ecc1
test al, al
je 0x42f018
call fcn.004b4983
test al, al
jne 0x42f018
push dword [ebp + 8]
lea eax, [ebp - 0x18]
push dword [ebp - 0xc]
push str._AUTOUPDATE___s___NORUN__d
push eax
call fcn.0048ee25
add esp, 0x10
push 0
push 1
push 1
lea ecx, [ebp - 0x18]
call fcn.0048e806
mov edx, eax
lea ecx, [ebp - 0x240]
call fcn.00460930
test al, al
jne 0x42f0e9
lea ecx, [ebp - 0x18]
call fcn.0048e50a
dec dword [ebp - 0x10]
jne 0x42f083
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push 0
push 0x537818
mov dword [ebp - 0x10], eax
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x42f066
call fcn.004b4983
test al, al
jne 0x42f073
push dword [0x5521d8]
lea eax, [ebp - 0x38]
push eax
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x34], 0x35
call fcn.004693e3
pop ecx
pop ecx
cmp eax, 2
je 0x42f0da
jmp 0x42f07c
call fcn.004b4983
test al, al
je 0x42f12b
cmp dword [ebp - 0x14], 0
je 0x42f0da
dec dword [ebp - 0x14]
mov dword [ebp - 0x10], 0xa
push ebx
call edi
push 0
push dword [ebp - 0xc]
lea eax, [ebp - 0x240]
push eax
call esi
test eax, eax
je 0x42ef7e
cmp byte [ebp - 8], 0
je 0x42f0d6
mov ecx, dword [ebp - 0xc]
call fcn.0042eefa
test al, al
jne 0x42f0da
call fcn.004b4983
test al, al
jne 0x42f0d6
push dword [0x5521c4]
lea eax, [ebp - 0x38]
push eax
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x34], 0x10
call fcn.004693e3
pop ecx
pop ecx
mov byte [ebp - 1], 1
call fcn.0042ee95
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret 4
mov ecx, dword [ebp - 0xc]
call fcn.0042eefa
test al, al
jne 0x42f11d
call fcn.004b4983
test al, al
jne 0x42f11d
push dword [0x5521c4]
lea eax, [ebp - 0x38]
push eax
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x34], 0x10
call fcn.004693e3
pop ecx
pop ecx
mov byte [ebp - 1], 1
lea ecx, [ebp - 0x18]
call fcn.0048e50a
jmp 0x42f0da
mov ecx, dword [ebp - 0x10]
push 0x104
lea edx, [ebp - 0x448]
call fcn.004a46fa
lea eax, [ebp - 0x448]
push eax
push dword [0x5521c0]
lea eax, [ebp + 8]
push eax
mov dword [ebp - 0x38], 1
mov dword [ebp - 0x34], 0x30
call fcn.0048ee25
add esp, 0xc
mov ecx, eax
call fcn.0048e806
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.004693e3
pop ecx
pop ecx
lea ecx, [ebp + 8]
jmp 0x42f124
Function at 0x432699
Capabilities:
Get disk information via ioctl

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor edi, edi
push edi
push edi
push 3
push edi
push 3
push edi
mov esi, edx
or dword [esi], 0xffffffff
push ecx
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4326c3
xor eax, eax
jmp 0x4326f7
push edi
lea eax, [ebp - 4]
push eax
push 0xc
lea eax, [ebp - 0x10]
push eax
push edi
push edi
push 0x2d1080
push ebx
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.DLL_DeviceIoControl]
test eax, eax
je 0x4326e8
mov eax, dword [ebp - 0xc]
mov dword [esi], eax
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
cmp dword [esi], 0xffffffff
setne al
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4357cd
Capabilities:
Encode data using xor

Disassembly:
test ecx, ecx
jne 0x4357d5
xor al, al
jmp 0x4357f0
xor eax, eax
push esi
mov esi, dword [esp + 8]
mov edx, eax
xor edx, 3
mov dl, byte [edx + ecx]
mov byte [eax + esi], dl
inc eax
cmp eax, 0x14
jne 0x4357d8
mov al, 1
pop esi
ret 4

Function at 0x4357f3
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
mov edx, dword [esp + 8]
mov ecx, eax
xor ecx, 3
mov cl, byte [ecx + edx]
mov edx, dword [esp + 4]
mov byte [eax + edx], cl
inc eax
cmp eax, 0x14
jne 0x4357f5
ret 8
Function at 0x43c40b
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push edi
mov edi, ecx
call fcn.0043a6a2
mov esi, str.kernel32
mov edx, str.TryEnterCriticalSection
mov ecx, esi
call fcn.004a3dac
mov edx, str.SetFileValidData
mov ecx, esi
mov dword [0x547ed0], eax
call fcn.004a3dac
xor esi, esi
mov dword [0x547dd8], eax
cmp eax, esi
je 0x43c459
push 2
pop edx
mov ecx, str.SeManageVolumePrivilege
call fcn.004a4455
mov byte [0x547d70], al
push esi
push esi
push esi
push esi
mov dword [0x547ddc], esi
mov dword [0x547de0], 0x547ddc
mov dword [0x547d74], esi
mov dword [0x547d78], 0x547d74
mov dword [0x547ecc], esi
call dword [sym.imp.KERNEL32.DLL_CreateEventA]
mov edx, 0x4f88a0
mov ecx, 0x547de4
mov dword [0x547d7c], eax
call fcn.0043ebfe
mov edx, 0x4f889c
mov ecx, 0x549328
call fcn.0043ebfe
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.DLL_GlobalMemoryStatus]
cmp dword [ebp - 0x18], 0x8000000
jae 0x43c4c6
mov eax, 0x800000
jmp 0x43c4d7
mov eax, dword [ebp - 0x18]
shr eax, 4
mov ecx, 0x2000000
cmp eax, ecx
jb 0x43c4d7
mov eax, ecx
push esi
push eax
push esi
push dword [ebp - 0x18]
mov dword [0x547d80], eax
push str.total_physical_memory__Ld_max_disk_cache__Ld
call fcn.0041ff2c
add esp, 0x14
push 0x547ee4
push edi
push 0x43c3e2
mov ecx, edi
call fcn.0048efa8
pop edi
pop esi
leave
ret

Function at 0x43c994
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x18]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x1c]
and dword [edi], 0
push dword [ebp + 8]
mov byte [eax], 0
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebx, eax
test ebx, ebx
je 0x43ca0d
cmp word [ebx + 8], 2
jne 0x43c9ea
cmp word [ebx + 0xa], 4
jne 0x43c9ea
mov esi, dword [ebx + 0xc]
jmp 0x43c9e4
push dword [eax]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0043c92d
mov dword [edi], eax
test eax, eax
je 0x43ca08
lea edi, [eax + 0x1c]
add esi, 4
mov eax, dword [esi]
test eax, eax
jne 0x43c9c8
mov esi, dword [ebp + 0x18]
push 0x400
push dword [ebx]
push esi
call sub.MSVCRT.dll_strncpy
add esp, 0xc
mov byte [esi + 0x400], 0
xor eax, eax
jmp 0x43ca33
push 8
pop eax
jmp 0x43ca33
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
mov eax, 0x2af9
sub ecx, eax
je 0x43ca33
dec ecx
je 0x43ca2e
dec ecx
je 0x43ca27
dec ecx
jmp 0x43ca33
mov eax, 0x2afb
jmp 0x43ca33
mov eax, 0x2afa
pop edi
pop esi
pop ebx
pop ebp
ret 0x18
Function at 0x43d011
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
cmp dword [0x5481cc], 0
mov dword [ebp - 0x18], str.getaddrinfo
mov dword [ebp - 0x14], 0x43cbcf
mov dword [ebp - 0x10], str.getnameinfo
mov dword [ebp - 0xc], 0x43ce59
mov dword [ebp - 8], str.freeaddrinfo
mov dword [ebp - 4], fcn.0043cb96
jne 0x43d16d
push 0x104
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemDirectoryA]
test eax, eax
je 0x43d163
xor eax, eax
mov cl, byte [ebp + eax - 0x22c]
mov byte [ebp + eax - 0x124], cl
inc eax
test cl, cl
jne 0x43d06d
push edi
lea edi, [ebp - 0x124]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x43d088
push ebx
mov ebx, dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
push esi
mov esi, str.ws2_32
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x124]
push eax
movsd dword es:[edi], dword [esi]
call ebx
mov esi, eax
test esi, esi
je 0x43d0cb
push str.getaddrinfo
push esi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
jne 0x43d0c7
push esi
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
xor esi, esi
test esi, esi
jne 0x43d122
xor eax, eax
mov cl, byte [ebp + eax - 0x22c]
mov byte [ebp + eax - 0x124], cl
inc eax
test cl, cl
jne 0x43d0cd
lea edi, [ebp - 0x124]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x43d0e7
mov esi, str.wship6
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x124]
push eax
movsd dword es:[edi], dword [esi]
call ebx
mov esi, eax
test esi, esi
je 0x43d160
push str.getaddrinfo
push esi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
jne 0x43d11e
push esi
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
xor esi, esi
test esi, esi
je 0x43d160
xor edi, edi
push dword [ebp + edi*8 - 0x18]
push esi
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [ebp + edi*8 - 0x14], eax
test eax, eax
je 0x43d13f
inc edi
cmp edi, 3
jl 0x43d124
jmp 0x43d148
push esi
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
xor esi, esi
test esi, esi
je 0x43d160
xor eax, eax
mov ecx, dword [ebp + eax - 0x14]
mov dword [eax + 0x532898], ecx
add eax, 8
cmp eax, 0x18
jl 0x43d14e
pop esi
pop ebx
pop edi
mov dword [0x5481cc], 1
movzx eax, word [ebp + 8]
mov eax, dword [eax*8 + 0x532898]
leave
ret 4

Function at 0x43ec4c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
push esi
mov esi, dword [ebp + 0x20]
push edi
test esi, esi
jne 0x43ec62
lea esi, [ebp - 4]
push esi
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov edi, eax
mov eax, dword [esi]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov esi, 0x5481f8
mov ecx, esi
mov dword [ebp - 8], eax
call fcn.0043ea05
push 0
lea eax, [ebp - 0xc]
push eax
mov ecx, 0x548218
call fcn.0043eb40
mov ecx, esi
call fcn.0043ea83
mov eax, edi
pop edi
pop esi
leave
ret 0x1c
Function at 0x441853
Capabilities:
Delete directory
Delete file

Disassembly:
push ecx
push ecx
push ebp
xor eax, eax
mov ebp, ecx
mov dword [esp + 8], eax
cmp dword [ebp + 8], eax
je 0x441966
push ebx
push esi
mov dword [esp + 0xc], eax
push edi
mov esi, dword [ebp]
add esi, dword [esp + 0x10]
mov ecx, dword [ebp + 0x1c]
mov edx, dword [esi + 0x1c]
push 0
call fcn.004a3089
mov edi, eax
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x441887
sub eax, ecx
sar eax, 1
mov ecx, eax
mov eax, dword [esi + 0x1c]
lea edx, [eax + 2]
mov si, word [eax]
inc eax
inc eax
test si, si
jne 0x44189d
sub eax, edx
sar eax, 1
sub ecx, eax
lea esi, [edi + ecx*2 - 2]
jmp 0x441932
xor ecx, ecx
push edi
mov word [eax], cx
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
test eax, eax
jne 0x441932
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x91
jne 0x441932
push 0
mov edx, str.thumbs.db
mov ecx, edi
call fcn.004a3089
mov ecx, eax
call fcn.0048c0e5
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
test eax, eax
push 0
mov edx, str..DS_Store
mov ecx, edi
setne bl
call fcn.004a3089
mov ecx, eax
call fcn.0048c0e5
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
test eax, eax
setne al
test bl, bl
jne 0x44191a
test al, al
je 0x441944
push edi
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
test eax, eax
jne 0x441932
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x91
je 0x441944
push 0x5c
push edi
call sub.MSVCRT.dll_wcsrchr
pop ecx
pop ecx
cmp eax, esi
jae 0x4418b3
mov dl, 1
mov ecx, edi
call fcn.0046b197
inc dword [esp + 0x14]
mov eax, dword [esp + 0x14]
add dword [esp + 0x10], 0x70
cmp eax, dword [ebp + 8]
jne 0x44186e
pop edi
pop esi
pop ebx
pop ebp
pop ecx
pop ecx
ret

Function at 0x441ad3
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
push ebx
mov edi, ecx
call fcn.00441541
mov esi, dword [ebp + 8]
mov eax, dword [edi]
imul esi, esi, 0x70
add eax, esi
push eax
mov ecx, edi
call fcn.00440ccc
lea ecx, [ebp - 4]
mov dword [ebp - 4], eax
call fcn.0048e806
mov ecx, eax
call fcn.00472219
test al, al
je 0x441b2c
push dword [ebp + 0xc]
lea ecx, [ebp - 4]
call fcn.0048e806
push eax
call dword [sym.imp.KERNEL32.DLL_MoveFileW]
test eax, eax
jne 0x441b2c
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ebx, eax
jmp 0x441b41
mov ecx, dword [ebp + 0xc]
call fcn.00422199
push eax
mov eax, dword [edi]
add eax, esi
push eax
mov ecx, edi
call fcn.00441722
lea ecx, [ebp - 4]
call fcn.0048e50a
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 8