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

Disassembly:
push esi
mov esi, eax
mov dword [edx], 0xffffffff
mov cl, byte [esi]
test cl, cl
je 0x401035
push edi
mov eax, dword [edx]
mov edi, eax
movzx ecx, cl
and edi, 0xff
xor edi, ecx
shr eax, 8
xor eax, dword [edi*4 + 0x448150]
add esi, 1
mov dword [edx], eax
mov cl, byte [esi]
test cl, cl
jne 0x401010
pop edi
mov eax, dword [edx]
not eax
mov dword [edx], eax
xor eax, eax
pop esi
ret

Function at 0x401170
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43b288
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push esi
push edi
mov eax, dword [0x447034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [esi + 0xc], 0xffffffff
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov eax, dword [ebp + 0xc]
push 0
push 0x80
push 3
push 0
push 1
push connect
mov dword [ebp - 4], 0
push eax
mov dword [esi], 0x43ef20
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [esi + 0x10], eax
jne 0x401203
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x38]
push ecx
mov edi, 0x43eeec
call fcn.00401040
push 0x4423e8
lea edx, [ebp - 0x38]
push edx
call fcn.0042b0d1
push 0
push 0
push 0
push 2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
test eax, eax
mov dword [esi + 0x14], eax
jne 0x401248
mov eax, dword [esi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x38]
push ecx
mov edi, 0x43eefc
call fcn.00401040
push 0x4423e8
lea edx, [ebp - 0x38]
push edx
call fcn.0042b0d1
push 0
push 0
push 0
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
jne 0x401292
mov eax, dword [esi + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
mov ecx, dword [esi + 0x10]
push ecx
call edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [ebp - 0x38]
push edx
mov edi, 0x43ef10
call fcn.00401040
push 0x4423e8
lea eax, [ebp - 0x38]
push eax
call fcn.0042b0d1
mov ecx, dword [esi + 0x10]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 0xc], eax
mov dword [esi + 8], edi
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

Function at 0x4019c0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
mov esi, eax
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 8]
push 0
sub ecx, eax
push ecx
add edx, eax
mov eax, dword [ebp + 8]
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x4019f3
add dword [esi + 4], eax
pop esi
mov esp, ebp
pop ebp
ret 4
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x2733
je 0x401a21
call esi
push eax
lea ecx, [ebp - 0x2c]
push ecx
mov edi, 0x43ef2c
call fcn.00401040
push 0x4423e8
lea edx, [ebp - 0x2c]
push edx
call fcn.0042b0d1
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x401a70
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43b898
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push edi
mov eax, dword [0x447034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x401ad0
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x401ad0
push 0xffffffffffffffff
lea eax, [ebp - 0x44]
push eax
mov edi, 0x43ef48
call fcn.00401040
push 0x4423e8
lea ecx, [ebp - 0x44]
push ecx
call fcn.0042b0d1
mov edx, dword [ebp + 0xc]
mov edi, dword [edx]
xor eax, eax
lea ecx, [esi + 0x10]
push ecx
mov ecx, dword [ebp + 0x14]
push eax
push edx
mov byte [ebp - 0x10], bl
mov edx, dword [ebp - 0x10]
lea ebx, [ebp + 8]
mov eax, ebx
push eax
mov eax, dword [ebp + 0x14]
push edi
push ebx
push edx
push eax
push ecx
lea edx, [ebp - 0x14]
push edx
call fcn.004028d0
mov eax, dword [ebp + 0x14]
add esp, 0x28
lea ecx, [ebp - 0x18]
push ecx
push 0
push esi
push 0x401a30
push 0
push 0
mov dword [esi + 4], eax
mov dword [ebp - 0x18], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi + 8], eax
jne 0x401b4d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [ebp - 0x44]
push edx
mov edi, 0x43ef5c
call fcn.00401040
push 0x4423e8
lea eax, [ebp - 0x44]
push eax
call fcn.0042b0d1
lea edi, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call fcn.00402530
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.004282af
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x403080
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
mov eax, dword [ebp + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x403098
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4030cc
mov ecx, dword [ebp + 8]
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x4030c8
cmp esi, eax
jae 0x4030cc
sub edi, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4030b8
cmp esi, eax
jb 0x4030d2
pop esi
xor eax, eax
pop edi
pop ebp
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret
Function at 0x4034b0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x447034]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x7fe
lea eax, [ebp - 0x802]
push 0
push eax
mov word [ebp - 0x804], 0
call fcn.0042a8d0
mov eax, dword [esi + 0x20]
add esp, 0xc
cmp dword [eax + 0x18], 8
jb 0x4034f0
mov eax, dword [eax + 4]
jmp 0x4034f3
add eax, 4
push eax
lea ecx, [ebp - 0x804]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea edx, [ebp - 0x804]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x403556
sub eax, 1
js 0x40352f
mov ecx, 0x5c
lea esp, [esp]
cmp word [ebp + eax*2 - 0x804], cx
je 0x40352f
sub eax, 1
jns 0x403520
mov edx, dword [esi + 4]
push 5
mov word [ebp + eax*2 - 0x804], 0
lea eax, [ebp - 0x804]
push eax
push 0
mov ecx, eax
push ecx
push 0x43ef94
push edx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.004282a0
mov esp, ebp
pop ebp
ret

Function at 0x4037d0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp edi, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
je 0x4038c0
mov edx, dword [ebp + 0xc]
cmp edx, ebx
je 0x4038c0
mov ecx, dword [ebp + 0x10]
cmp ecx, ebx
je 0x4038c0
mov eax, dword [ebp + 0x14]
cmp eax, ebx
je 0x4038c0
mov dword [edi], ebx
mov dword [edx], ebx
mov dword [ecx], ebx
mov ecx, dword [ebp + 8]
push esi
mov dword [eax], ebx
lea eax, [ebp - 4]
push eax
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, ebx
je 0x4038c7
push esi
call fcn.00429035
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4038b7
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
push ebx
push esi
push edx
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4038a3
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0xc]
push edx
push 0x43f298
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4038a3
cmp dword [ebp - 8], 0
jbe 0x40388d
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 8]
mov dword [edi], ecx
mov edx, dword [eax + 0xc]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], edx
mov edx, dword [eax + 0x10]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], edx
mov edx, dword [eax + 0x14]
mov eax, dword [ebp + 0x14]
mov dword [eax], edx
push ebx
mov esi, 1
call fcn.0042903a
add esp, 4
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x10]
push ebx
call fcn.0042903a
add esp, 4
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x10]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x404020
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4cc
mov eax, dword [0x447034]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor ebx, ebx
push 0x206
lea eax, [ebp - 0x20e]
push ebx
push eax
mov word [ebp - 0x210], bx
call fcn.0042a8d0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.004038d0
mov esi, eax
add esp, 4
cmp esi, 0xffffffff
je 0x404105
push str.psapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
je 0x404105
push 0x43f468
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, ebx
je 0x404105
push esi
push ebx
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, ebx
je 0x404105
push 0x104
lea ecx, [ebp - 0x210]
push ecx
push ebx
push esi
call edi
test eax, eax
je 0x4040fe
push 0x2b0
lea edx, [ebp - 0x4c4]
push ebx
push edx
mov dword [ebp - 0x4c8], ebx
call fcn.0042a8d0
add esp, 0xc
push 0x100
push 0x2b4
lea eax, [ebp - 0x4c8]
push eax
push ebx
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x4040fe
mov ebx, dword [ebp - 0x4c8]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.004282a0
mov esp, ebp
pop ebp
ret
Function at 0x406620
Capabilities:
Hide graphical window
Print debug messages

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x418], 1
push esi
push edi
mov dword [ebx + 0x154], 0x1000
jne 0x40667e
push str.Force_Upload...
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [ebx + 4]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push eax
call esi
mov edi, eax
call fcn.00405b00
test edi, edi
je 0x406676
mov ecx, dword [ebx + 4]
push 5
push ecx
call esi
mov eax, dword [ebx + 4]
push 0
push eax
call dword [sym.imp.USER32.dll_EndDialog]
xor eax, eax
pop edi
pop esi
pop ebx
ret
mov edx, dword [ebx + 4]
push 0
push edx
call esi
mov eax, dword [ebx + 4]
push 0
push eax
call dword [sym.imp.USER32.dll_EndDialog]
pop edi
pop esi
xor eax, eax
pop ebx
ret

Function at 0x406700
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x254
mov eax, dword [0x447034]
xor eax, esp
mov dword [esp + 0x250], eax
mov ecx, dword [esi + 4]
push edi
lea eax, [esp + 8]
push eax
push ecx
call dword [sym.imp.USER32.dll_BeginPaint]
mov edi, eax
push 0xff0000
push edi
call dword [sym.imp.GDI32.dll_SetTextColor]
mov edx, dword [esi + 0x24]
push edx
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push 1
push edi
call dword [sym.imp.GDI32.dll_SetBkMode]
push 0x206
lea eax, [esp + 0x4e]
push 0
push eax
mov word [esp + 0x54], 0
call fcn.0042a8d0
mov edx, dword [esi + 4]
add esp, 0xc
push 0x104
lea ecx, [esp + 0x4c]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [esp + 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
lea ecx, [esp + 0x4c]
push ecx
push 0
push 0
push edi
call dword [sym.imp.GDI32.dll_TextOutW]
mov eax, dword [esi + 4]
lea edx, [esp + 8]
push edx
push eax
call dword [sym.imp.USER32.dll_EndPaint]
mov ecx, dword [esp + 0x254]
pop edi
xor ecx, esp
xor eax, eax
call fcn.004282a0
mov esp, ebp
pop ebp
ret
Function at 0x406830
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x250
mov eax, dword [0x447034]
xor eax, esp
mov dword [esp + 0x24c], eax
push ebx
push esi
push 0x3c
lea eax, [esp + 0x10]
push 0
push eax
mov dword [esp + 0x14], 0
call fcn.0042a8d0
mov ecx, dword [edi + 4]
add esp, 0xc
push 0
push 0
push 0x31
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [edi + 4]
lea edx, [esp + 8]
push edx
push eax
call dword [sym.imp.USER32.dll_BeginPaint]
mov esi, eax
test esi, esi
je 0x406906
mov ecx, dword [edi + 0x24]
push ecx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov ebx, eax
test ebx, ebx
je 0x4068f7
push 1
push esi
call dword [sym.imp.GDI32.dll_SetBkMode]
push 0x206
lea edx, [esp + 0x4e]
push 0
push edx
mov word [esp + 0x54], 0
call fcn.0042a8d0
mov ecx, dword [edi + 4]
add esp, 0xc
push 0x104
lea eax, [esp + 0x4c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea edx, [esp + 0x48]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
push 0
push esi
call dword [sym.imp.GDI32.dll_TextOutW]
push ebx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
mov edx, dword [edi + 4]
lea ecx, [esp + 8]
push ecx
push edx
call dword [sym.imp.USER32.dll_EndPaint]
mov ecx, dword [esp + 0x254]
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.004282a0
mov esp, ebp
pop ebp
ret

Function at 0x406cd0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [esi + 4]
sub esp, 0x10
push ebx
push edi
lea eax, [ebp - 0x10]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [esi + 4]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x401
push edx
call edi
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push 5
push eax
call ebx
mov eax, dword [esi + 4]
push 0x403
push eax
call edi
push 5
push eax
call ebx
mov eax, dword [esi + 0x110]
mov ecx, 1
cmp eax, ecx
jne 0x406d62
cmp dword [esi + 0x138], ecx
jne 0x406d3f
mov eax, dword [esi + 0x10c]
sub eax, dword [esi + 0x104]
mov ecx, dword [ebp - 0xc]
add eax, ecx
mov dword [ebp - 4], eax
jmp 0x406db6
cmp eax, ecx
jne 0x406d62
cmp dword [esi + 0x138], 0
jne 0x406d62
mov eax, dword [esi + 0x124]
sub eax, dword [esi + 0x104]
mov ecx, dword [ebp - 0xc]
add eax, ecx
mov dword [ebp - 4], eax
jmp 0x406db6
test eax, eax
jne 0x406db0
cmp dword [esi + 0x138], ecx
jne 0x406da4
mov ecx, dword [esi + 4]
push 0x401
push ecx
call edi
push 0
push eax
call ebx
mov edx, dword [esi + 4]
push 0x403
push edx
call edi
push 0
push eax
call ebx
mov eax, dword [esi + 0xfc]
sub eax, dword [esi + 0xf4]
mov ecx, dword [ebp - 0xc]
add eax, ecx
mov dword [ebp - 4], eax
jmp 0x406db6
test eax, eax
jne 0x406db0
cmp dword [esi + 0x138], eax
je 0x406d8e
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
push 1
sub eax, ecx
push eax
mov eax, dword [ebp - 0x10]
sub edx, eax
push edx
push ecx
push eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_MoveWindow]
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406de0
Capabilities:
Create process on windows

Disassembly:
push 5
push 0
push 0
lea eax, [esi + 0x17c]
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ecx, dword [esi + 4]
push 1
push ecx
call dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push 0
push 0xf5
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
xor eax, eax
ret

Function at 0x408950
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [ebx]
push edi
push eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
mov eax, dword [esi]
mov edx, dword [eax - 8]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
sub edx, edi
or ecx, edx
jge 0x40897c
mov ecx, edi
mov eax, esi
call fcn.004030e0
mov eax, dword [esi]
push edi
push eax
mov eax, dword [ebx]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x408997
mov ecx, dword [esi]
call fcn.004031f0
test eax, eax
jl 0x4089b1
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x4089b1
mov dword [ecx - 0xc], eax
mov ecx, dword [esi]
mov word [ecx + eax*2], 0
mov eax, edi
pop edi
ret
push 0x80070057
call fcn.004032b0
int3

Function at 0x408c50
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x19c
mov eax, dword [0x447034]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
lea eax, [ebp - 0x198]
xor edi, edi
push eax
push 2
mov dword [esi + 0x100c], edi
mov dword [esi + 0x1010], edi
mov dword [esi + 0x1014], edi
mov dword [esi + 0x1018], edi
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ecx, dword [ebp - 4]
mov dword [esi + 0x1020], edi
xor ecx, ebp
mov dword [esi], 0xffffffff
mov eax, esi
pop edi
call fcn.004282a0
mov esp, ebp
pop ebp
ret
Function at 0x4091a0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push edi
mov edi, eax
movsx eax, byte [esi]
push eax
call fcn.00429093
add esp, 4
test eax, eax
push esi
je 0x4091f3
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x4091e7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea ecx, [ebp - 0x2c]
push ecx
mov edi, 0x43fe6c
call fcn.00401040
push 0x4423e8
lea edx, [ebp - 0x2c]
push edx
call fcn.0042b0d1
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
mov dword [edi + 4], edx
jmp 0x4091fc
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [edi + 4], eax
push 0x1f90
mov word [edi], 2
call dword [sym.imp.WS2_32.dll_htons]
mov word [edi + 2], ax
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x40ccc0
Capabilities:
Check if file exists
Copy file
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x447034]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [esi + 0x18], 8
mov eax, dword [ebp + 8]
push edi
mov dword [ebp - 0x420], eax
lea edi, [esi + 4]
jb 0x40ccea
mov eax, dword [edi]
jmp 0x40ccec
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40cd06
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004282a0
mov esp, ebp
pop ebp
ret
push ebx
xor ebx, ebx
push 0x208
lea ecx, [ebp - 0x41a]
push ebx
push ecx
mov word [ebp - 0x41c], bx
call fcn.0042a8d0
push 0x208
lea edx, [ebp - 0x20e]
push ebx
push edx
mov word [ebp - 0x210], bx
call fcn.0042a8d0
add esp, 0x18
cmp dword [esi + 0x18], 8
jb 0x40cd48
mov eax, dword [edi]
jmp 0x40cd4a
mov eax, edi
push eax
lea eax, [ebp - 0x210]
push 0x105
push eax
call fcn.0042881e
mov ebx, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
add esp, 0xc
lea ecx, [ebp - 0x210]
push ecx
call ebx
lea edx, [ebp - 0x210]
push edx
call ebx
push str.dumpbackup
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x40cdac
push eax
lea edx, [ebp - 0x210]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40ce15
lea eax, [ebp - 0x41c]
push eax
push 0
push 0
lea ecx, [ebp - 0x210]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
cmp dword [esi + 0x18], 8
jb 0x40cdcc
mov edi, dword [edi]
push 0
lea edx, [ebp - 0x41c]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x40ce15
lea ecx, [ebp - 0x41c]
call fcn.004031f0
mov edx, dword [ebp - 0x420]
lea ecx, [ebp - 0x41c]
push ecx
push edx
mov ebx, eax
call fcn.004027d0
pop ebx
mov eax, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004282a0
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop ebx
xor ecx, ebp
xor eax, eax
pop edi
call fcn.004282a0
mov esp, ebp
pop ebp
ret
Function at 0x40fcf0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43a6d6
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x447034]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov esi, ecx
mov ebx, edx
mov dword [ebp - 0x41c], eax
call dword [0x448090]
xor eax, eax
mov dword [ebp - 0x424], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x430], eax
mov dword [ebp - 0x418], eax
push 2
push eax
push esi
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
mov dword [ebp - 0x420], edi
jne 0x40fd7a
call fcn.0040f8f0
mov esi, eax
jmp 0x40fe8a
mov edx, dword [ebp - 0x41c]
push edx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x40fd99
call fcn.0040f8f0
jmp 0x40fe81
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 0x428], eax
jne 0x40fdb5
call fcn.0040f8f0
jmp 0x40fe81
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
lea eax, [ebx + 1]
cmp eax, ebx
mov dword [ebp - 0x41c], ebx
jae 0x40fdfa
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x40fde5
lea eax, [ebp - 0x418]
call fcn.0040fed0
lea esi, [ebp - 0x424]
call fcn.0040f8d0
mov eax, 0x8007000e
jmp 0x40fea5
lea esi, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.0040fee0
mov dword [ebp - 4], 1
jmp 0x40fe2b
mov esi, dword [ebp - 0x418]
test esi, esi
jne 0x40fe3c
mov esi, 0x8007000e
jmp 0x40fe83
call dword [0x448090]
mov ecx, dword [ebp - 0x428]
push ebx
push esi
push ebx
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x40fe60
call fcn.0040f8f0
jmp 0x40fe81
mov edx, dword [ebp - 0x418]
mov word [edx + eax*2], 0
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp - 0x418]
push eax
lea ecx, [ebp - 0x430]
call fcn.0040ff20
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp - 0x414]
cmp dword [ebp - 0x418], ecx
je 0x40fea3
lea eax, [ebp - 0x418]
call fcn.0040fed0
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 - 0x14]
xor ecx, ebp
call fcn.004282a0
mov esp, ebp
pop ebp
ret 0xc