joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405d9a
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42c574], 0
push esi
jne 0x405dd1
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 0x405dab
mov dword [ecx*4 + 0x42c570], eax
inc ecx
cmp ecx, 0x100
jl 0x405da6
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405e02
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 + 0x42c570]
xor eax, esi
inc ecx
dec edx
jne 0x405de4
pop edi
not eax
pop esi
ret 0xc

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
push 4
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
je 0x42e072
nop
nop
nop
nop
mov ebx, 0x407ef8
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x1e5235f6
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x42e060
nop
nop
mov eax, section..data
cmp eax, 0
nop
nop
nop
nop
nop
je 0x42e0d2
nop
nop
mov ebx, 0x42cd70
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0xf9d5b01
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x42e0c0
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x403440
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42b50b
mov eax, dword fs:[0]
push eax
sub esp, 0xd68
mov eax, dword [0x439190]
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 eax, dword [ebp + 0xc]
xor ebx, ebx
push 0x2b0
mov esi, ecx
lea ecx, [ebp - 0xd00]
push ebx
push ecx
mov dword [ebp - 0xd08], eax
mov dword [ebp - 0xd04], ebx
call fcn.00419b60
add esp, 0xc
push 0x400
lea edx, [ebp - 0xa18]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
mov word [ebp - 0xa50], ax
lea eax, [ebp - 0xa18]
mov dword [ebp - 0xa3c], 7
mov dword [ebp - 0xa40], ebx
lea edx, [eax + 2]
jmp 0x4034d0
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4034d0
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0xa18]
push ecx
lea ecx, [ebp - 0xa50]
call fcn.004015f0
lea edx, [ebp - 0xa50]
mov dword [ebp - 4], ebx
push edx
lea edi, [ebp - 0xd0c]
mov dword [ebp - 0xd0c], 0x5c
call fcn.004067b0
push eax
push ebx
lea eax, [ebp - 0xa34]
push eax
lea ecx, [ebp - 0xa50]
call fcn.004064f0
cmp dword [ebp - 0xa20], 8
mov eax, dword [ebp - 0xa34]
jae 0x40353a
lea eax, [ebp - 0xa34]
push 0x4601
push 0x2b4
lea ecx, [ebp - 0xd04]
push ecx
push ebx
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov edx, dword [esi + 0x5e58]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push eax
push 1
push 0x1003
push edx
call edi
push 0x34
lea eax, [ebp - 0xd40]
push ebx
push eax
call fcn.00419b60
mov ecx, dword [esi + 0x5e58]
add esp, 0xc
push ebx
push ebx
push 0x1004
push ecx
call edi
xor edx, edx
push 0x206
mov ebx, eax
push edx
lea eax, [ebp - 0x216]
push eax
mov word [ebp - 0x218], dx
call fcn.00419b60
mov eax, dword [ebp + 8]
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x4035b7
mov eax, dword [eax]
lea edx, [ebp - 0x218]
sub edx, eax
nop
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4035c0
mov ecx, dword [ebp - 0xd00]
lea eax, [ebp - 0xd40]
push eax
push 0
mov dword [ebp - 0xd24], ecx
mov ecx, dword [esi + 0x5e58]
push 0x104d
lea edx, [ebp - 0x218]
push ecx
mov dword [ebp - 0xd40], 3
mov dword [ebp - 0xd28], 0x104
mov dword [ebp - 0xd3c], ebx
mov dword [ebp - 0xd2c], edx
call edi
mov edx, dword [ebp - 0xd08]
mov ecx, dword [esi + 0x5e58]
lea eax, [ebp - 0xd74]
push eax
push ebx
push 0x1074
add edx, 8
push ecx
mov dword [ebp - 0xd6c], 3
mov dword [ebp - 0xd60], edx
call edi
mov esi, 8
cmp dword [ebp - 0xa20], esi
jb 0x403663
mov edx, dword [ebp - 0xa34]
push edx
call fcn.0041866f
add esp, 4
xor eax, eax
mov dword [ebp - 0xa20], 7
mov dword [ebp - 0xa24], 0
mov word [ebp - 0xa34], ax
cmp dword [ebp - 0xa3c], esi
jb 0x403697
mov ecx, dword [ebp - 0xa50]
push ecx
call fcn.0041866f
add esp, 4
mov eax, 1
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.004180c9
mov esp, ebp
pop ebp
ret 8
Function at 0x4039f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 8
push esi
jb 0x4039fc
mov eax, dword [ebx]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
jne 0x403a0e
pop esi
xor al, al
pop ebx
ret
push edi
push 0xa
push str.SFX_INFO
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
je 0x403a69
cmp eax, 0x2f0c
jne 0x403a69
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
push 0x2f0c
push eax
add ebx, 0x1c
push ebx
call fcn.00419be0
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
mov al, 1
pop ebx
ret
pop edi
pop esi
xor al, al
pop ebx
ret

Function at 0x403d40
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x5e3c
call fcn.0041a300
push esi
push 0x2f0c
lea eax, [ebp - 0x2f30]
push 0x43f128
push eax
mov esi, ecx
call fcn.00419be0
push 0x2f0c
lea ecx, [ebp - 0x2f30]
push ecx
lea edx, [ebp - 0x5e3c]
push edx
call fcn.00419be0
push 0x2f0c
lea eax, [ebp - 0x5e3c]
push eax
lea ecx, [ebp - 0x2f30]
push ecx
call fcn.00419be0
add esp, 0x24
cmp dword [esi + 0x14], 8
mov dword [ebp - 4], 0
jb 0x403daa
mov eax, dword [esi]
jmp 0x403dac
mov eax, esi
mov esi, dword [ebp - 0x2f24]
lea edx, [ebp - 4]
push edx
push esi
push eax
mov eax, dword [ebp - 0x2f30]
call fcn.0040cd40
add esp, 0xc
push 1
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
lea ecx, [ebp - 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
push str.MX_RULES_SHARED_MAPPING
push 0
lea edx, [ebp - 0x24]
push 4
mov dword [ebp - 0x10], 0xc
mov dword [ebp - 8], 1
mov dword [ebp - 0xc], edx
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
test eax, eax
je 0x403e12
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x403e6f
push edi
push str.MX_RULES_SHARED_MAPPING
push esi
push 0
push 4
lea eax, [ebp - 0x10]
push eax
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
test edi, edi
je 0x403e6e
push ebx
push edi
call fcn.0040cf30
add esp, 4
push esi
push 0
push 0
push 6
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
jne 0x403e56
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x403e6d
push esi
push 0
push ebx
call fcn.00419b60
mov ecx, dword [ebp - 4]
push esi
push ecx
push ebx
call fcn.00419be0
add esp, 0x18
pop ebx
pop edi
mov eax, dword [ebp - 4]
pop esi
test eax, eax
je 0x403e80
push eax
call fcn.0041866f
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x407a90
Capabilities:
Check mutex on windows

Disassembly:
push str.MXTERM
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
test eax, eax
je 0x407aaf
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x407aba
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x407adc
push 0x442040
push 0x442108
push 0
push 0
call dword [sym.imp.USER32.dll_FindWindowExW]
test eax, eax
je 0x407ad9
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov al, 1
ret
push str.MXTERM
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
push eax
push str.SetMutex_0x_p_
mov dword [0x44240c], eax
call fcn.00416600
add esp, 8
xor al, al
ret
Function at 0x408200
Capabilities:
Create thread

Disassembly:
mov eax, dword [0x43a770]
mov ecx, dword [0x442034]
mov edx, dword [0x442038]
push 0
push 0
push eax
push 0x405a60
mov dword [eax + 0x5e50], ecx
mov ecx, dword [0x44203c]
push 0
push 0
mov dword [eax + 0x5e54], edx
mov dword [eax + 0x5e58], ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x408248
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
ret

Function at 0x408250
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov ecx, 0x43a77c
call fcn.0040b530
mov eax, dword [0x442034]
push 0
lea ecx, [ebp - 4]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareUnnooMixin
push SysReAllocString
mov dword [ebp - 4], 0
mov dword [ebp - 8], eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4082dc
push 4
lea edx, [ebp - 8]
push edx
push 4
push eax
mov eax, dword [ebp - 4]
push str.sfxhwnd
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x4082d6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._tWinMain__:_RegSetValueEx___failed__error:__d
call fcn.004166a0
mov ecx, dword [ebp - 4]
add esp, 8
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
mov esp, ebp
pop ebp
ret
mov al, 1
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._tWinMain__:_RegCreateKeyEx___failed__error:__d
call fcn.004166a0
add esp, 8
xor al, al
mov esp, ebp
pop ebp
ret
Function at 0x409b70
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42b718
mov eax, dword fs:[0]
push eax
sub esp, 0x254
mov eax, dword [0x439190]
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
xor ebx, ebx
push 0x228
lea eax, [ebp - 0x254]
push ebx
push eax
mov dword [ebp - 0x25c], 1
mov dword [ebp - 0x258], ebx
call fcn.00419b60
add esp, 0xc
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x409bdd
lea eax, [ebx + 1]
jmp 0x409c9e
mov dword [ebp - 0x258], 0x22c
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor ecx, ecx
push 8
mov word [ebp - 0x2c], cx
push str.MX64.exe
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x260], eax
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
call fcn.004015f0
lea edx, [ebp - 0x258]
push edx
push esi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x409c7f
mov eax, dword [ebp - 0x260]
cmp dword [ebp - 0x240], eax
jne 0x409c67
lea eax, [ebp - 0x234]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x409c40
sub eax, edx
sar eax, 1
lea ecx, [ebp - 0x234]
push ecx
mov edi, eax
mov eax, dword [ebp - 0x1c]
lea ecx, [ebp - 0x2c]
call fcn.004068d0
test eax, eax
jne 0x409c7f
lea edx, [ebp - 0x258]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x409c27
mov dword [ebp - 0x25c], ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x18], 8
jb 0x409c98
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0041866f
add esp, 4
mov eax, dword [ebp - 0x25c]
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.004180c9
mov esp, ebp
pop ebp
ret
Function at 0x40ada0
Capabilities:
Create http request
Print debug messages
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x439190]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
push edi
mov dword [ebp - 0x110], eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ebx, dword [0x442034]
push 0
push 0
push 0
push 0
push str.Mixin_page
call dword [sym.imp.WININET.dll_InternetOpenA]
mov esi, eax
test esi, esi
jne 0x40ae0f
push 0x10
push 0x433ef8
push 0x434610
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004180c9
mov esp, ebp
pop ebp
ret 4
push 0
push 0x84080100
push 0
push 0
push edi
push esi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
push 4
lea ecx, [ebp - 0x114]
push ecx
push 2
push esi
mov edi, eax
mov dword [ebp - 0x114], 0xea60
call dword [sym.imp.WININET.dll_InternetSetOptionW]
test edi, edi
je 0x40ade7
push 0x103
lea edx, [ebp - 0x107]
push 0
push edx
mov byte [ebp - 0x108], 0
call fcn.00419b60
add esp, 0xc
lea eax, [ebp - 0x10c]
push eax
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push edi
mov dword [ebp - 0x10c], 0
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x40aeb1
push 0x10
push 0x433ef8
push 0x434634
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004180c9
mov esp, ebp
pop ebp
ret 4
lea edx, [ebp - 0x108]
push str.xml_version_1.0__encoding_utf_8_
push edx
call fcn.00419420
add esp, 8
test eax, eax
jne 0x40aef1
push 0x10
push 0x433ef8
push 0x434664
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004180c9
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x108]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40af00
mov ecx, dword [ebp - 0x110]
sub eax, edx
push eax
lea eax, [ebp - 0x108]
push eax
call fcn.004022e0
push edi
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call edi
push esi
call edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.004180c9
mov esp, ebp
pop ebp
ret 4
Function at 0x40cd40
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0x10], 0
push edi
mov edi, eax
jne 0x40cd54
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
push esi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40cd8d
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
jne 0x40cd95
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [ebp + 0xc]
lea ecx, [edi + ebx]
cmp eax, ecx
jae 0x40cdb0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop esi
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
push 0
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
add ebx, 2
push ebx
call fcn.00417cfb
push ebx
mov edi, eax
push 0
push edi
call fcn.00419b60
mov eax, dword [ebp + 0xc]
add esp, 0x10
push 0
lea edx, [ebp - 4]
push edx
push eax
push edi
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x40ce18
mov ecx, dword [ebp + 0xc]
cmp dword [ebp - 4], ecx
jne 0x40ce18
mov edx, dword [ebp + 0x10]
pop ebx
pop esi
mov dword [edx], edi
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret
push edi
call fcn.004197f6
add esp, 4
pop ebx
pop esi
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x40ce30
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4a8
mov eax, dword [0x439190]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x103
lea eax, [ebp - 0x10f]
push 0
push eax
mov byte [ebp - 0x110], 0
call fcn.00419b60
xor ecx, ecx
push 0x206
push ecx
lea edx, [ebp - 0x316]
push edx
mov word [ebp - 0x318], cx
call fcn.00419b60
add esp, 0x18
lea eax, [ebp - 0x4a8]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x40cecc
push eax
lea ecx, [ebp - 0x318]
push str.WSAStartup_failed:__d
push ecx
call fcn.00418a44
add esp, 0xc
push 0
push str.Error
lea edx, [ebp - 0x318]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004180c9
mov esp, ebp
pop ebp
ret
push 0x104
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
jne 0x40cebc
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x40cebc
mov edx, dword [eax + 0xc]
mov eax, dword [edx]
mov eax, dword [eax]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov edx, esi
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40cf05
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
call fcn.004180c9
mov esp, ebp
pop ebp
ret
Function at 0x40d0b0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42b640
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x439190]
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 edx, dword [ebp + 8]
xor edi, edi
xor eax, eax
mov word [ebp - 0x2c], ax
mov eax, edx
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], edi
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x40d0f5
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [ebp - 0x2c]
call fcn.004015f0
mov dword [ebp - 4], edi
mov eax, dword [ebp - 0x2c]
mov ebx, 8
cmp dword [ebp - 0x18], ebx
jae 0x40d121
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40d135
test al, 0x10
jne 0x40d20e
lea ecx, [ebp - 0x2c]
push ecx
lea edi, [ebp - 0x4c]
mov dword [ebp - 0x4c], 0x5c
call fcn.004067b0
lea edx, [ebp - 0x2c]
push edx
lea edi, [ebp - 0x4c]
mov esi, eax
mov dword [ebp - 0x4c], 0x2f
call fcn.004067b0
cmp esi, 0xffffffff
jne 0x40d17e
cmp eax, esi
jne 0x40d17e
cmp dword [ebp - 0x18], ebx
jb 0x40d177
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0041866f
add esp, 4
xor al, al
jmp 0x40d221
cmp esi, eax
jle 0x40d184
mov eax, esi
push eax
xor esi, esi
push esi
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x2c]
call fcn.004064f0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x48]
cmp dword [ebp - 0x34], ebx
jae 0x40d1a3
lea eax, [ebp - 0x48]
push eax
call fcn.0040d0b0
add esp, 4
test al, al
jne 0x40d1e6
cmp dword [ebp - 0x34], ebx
jb 0x40d1c1
mov edx, dword [ebp - 0x48]
push edx
call fcn.0041866f
add esp, 4
xor eax, eax
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], esi
mov word [ebp - 0x48], ax
cmp dword [ebp - 0x18], ebx
jb 0x40d177
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0041866f
add esp, 4
xor al, al
jmp 0x40d221
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], ebx
jae 0x40d1f1
lea eax, [ebp - 0x2c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40d1b0
cmp dword [ebp - 0x34], ebx
jb 0x40d20e
mov edx, dword [ebp - 0x48]
push edx
call fcn.0041866f
add esp, 4
cmp dword [ebp - 0x18], ebx
jb 0x40d21f
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0041866f
add esp, 4
mov al, 1
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.004180c9
mov esp, ebp
pop ebp
ret
Function at 0x40dc10
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42b90b
mov eax, dword fs:[0]
push eax
sub esp, 0x824
mov eax, dword [0x439190]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
push 0x7fe
lea ecx, [ebp - 0x80e]
xor eax, eax
push edi
push ecx
mov dword [ebp - 0x830], edi
mov word [ebp - 0x810], ax
call fcn.00419b60
add esp, 0xc
lea edx, [ebp - 0x810]
push edx
push 0x3ff
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x810]
push 0x5c
push eax
call fcn.00418ce7
add esp, 8
cmp eax, edi
je 0x40dc8f
xor ecx, ecx
mov word [eax], cx
xor edx, edx
lea eax, [ebp - 0x810]
mov word [ebp - 0x82c], dx
mov dword [ebp - 0x818], 7
mov dword [ebp - 0x81c], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x40dcb1
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x82c]
call fcn.004015f0
push 6
mov eax, str.Mixin
lea ecx, [ebp - 0x82c]
mov dword [ebp - 4], edi
call fcn.004069b0
mov eax, dword [ebp - 0x82c]
mov ebx, 8
cmp dword [ebp - 0x818], ebx
jae 0x40dd01
lea eax, [ebp - 0x82c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40dd4a
mov eax, dword [ebp - 0x82c]
cmp dword [ebp - 0x818], ebx
jae 0x40dd20
lea eax, [ebp - 0x82c]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40dd4a
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
push edi
mov word [esi], cx
push 0x433e6c
mov ecx, esi
call fcn.004015f0
jmp 0x40dd67
lea ecx, [ebp - 0x82c]
xor eax, eax
push ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov ecx, esi
mov word [esi], ax
call fcn.00406670
cmp dword [ebp - 0x818], ebx
jb 0x40dd7e
mov edx, dword [ebp - 0x82c]
push edx
call fcn.0041866f
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004180c9
mov esp, ebp
pop ebp
ret