joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408450
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push 0x5138b0
push 0x82
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x408483
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40848c
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x4084ab
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
push edi
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 8], eax
add eax, 2
push eax
mov dword [ebp - 4], eax
call fcn.00411a39
mov edi, eax
add esp, 4
test edi, edi
jne 0x4084df
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop ebx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
push dword [ebp - 4]
push 0
push edi
call fcn.004c29b0
push dword [ebp - 8]
push ebx
push edi
call fcn.004c2430
mov ecx, edi
call fcn.00407670
push edi
mov esi, eax
call fcn.00411a34
add esp, 0x1c
mov eax, esi
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x409a70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x523060]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x10], ecx
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x409a9e
mov eax, dword [esi]
jmp 0x409aa0
mov eax, esi
xor edx, edx
mov word [eax], dx
lea eax, [ebp - 0xc]
push eax
push edx
lea eax, [ebp - 8]
mov dword [ebp - 0xc], edx
push eax
push edx
push ecx
push dword [ebx + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x409ad4
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041141b
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 0xc]
xor ecx, ecx
inc eax
mov edx, 2
mul edx
push edi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00411a39
mov ecx, dword [ebp - 0xc]
mov edi, eax
lea ecx, [ecx*2 + 2]
push ecx
push 0
push edi
call fcn.004c29b0
add esp, 0x10
test edi, edi
je 0x409b71
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp - 0x10]
push dword [ebx + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
test ebx, ebx
jne 0x409b4e
cmp word [edi], ax
jne 0x409b31
xor ecx, ecx
jmp 0x409b45
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x409b36
sub ecx, edx
sar ecx, 1
push ecx
push edi
mov ecx, esi
call fcn.00401d60
push edi
call fcn.00411a34
add esp, 4
xor eax, eax
test ebx, ebx
sete al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041141b
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041141b
mov esp, ebp
pop ebp
ret 8
Function at 0x409cb0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2ac
mov eax, dword [0x523060]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x29c]
mov dword [ebp - 0x2ac], 0
push eax
mov esi, ecx
push 0
mov dword [ebp - 0x2a8], esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x2a0]
push eax
lea eax, [ebp - 0x29c]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
test ebx, ebx
je 0x409d97
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x409d97
push edi
push ebx
push 0
lea eax, [ebp - 0x29c]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
lea eax, [ebp - 0x2a4]
push eax
lea eax, [ebp - 0x2a8]
push eax
push 0x51314c
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x409d97
mov ecx, dword [ebp - 0x2a8]
movsx eax, word [ecx + 0xc]
push eax
movsx eax, word [ecx + 0xe]
push eax
movsx eax, word [ecx + 8]
push eax
movsx eax, word [ecx + 0xa]
push eax
lea eax, [ebp - 0x94]
push 0x513be4
push eax
call fcn.0040a920
add esp, 0x18
lea eax, [ebp - 0x94]
mov ecx, esi
push eax
call fcn.00401c80
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041141b
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [esi + 0x14], 7
push eax
mov dword [esi + 0x10], 0
mov ecx, esi
push 0x513030
mov word [esi], ax
call fcn.00401d60
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041141b
mov esp, ebp
pop ebp
ret

Function at 0x409e70
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e4732
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x523060]
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, ecx
mov dword [ebp - 0x224], esi
push 0x104
lea eax, [ebp - 0x218]
mov dword [ebp - 0x22c], esi
push eax
push 0
mov dword [ebp - 0x228], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x409ef0
mov eax, dword [esi]
jmp 0x409ef2
mov eax, esi
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], ecx
push eax
lea eax, [ebp - 0x218]
mov dword [ebp - 0x228], 1
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
test ebx, ebx
je 0x409f69
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x409f69
push edi
push ebx
push 0
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x224]
push eax
push str.VarFileInfoTranslation
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
push esi
push dword [ebp - 0x224]
mov ecx, edi
call fcn.00409dd0
add esp, 8
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.0041141b
mov esp, ebp
pop ebp
ret
Function at 0x409f90
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e4768
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x523060]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x6c], esi
xor eax, eax
mov dword [ebp - 0x70], 0
push eax
push 0x513030
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x54], 7
mov dword [ebp - 0x58], 0
mov word [ebp - 0x68], ax
call fcn.00401d60
mov dword [ebp - 4], 0
push 0x288
mov dword [ebp - 0x6c], 0x288
call fcn.004c7eb7
mov edi, eax
add esp, 4
test edi, edi
jne 0x40a032
lea eax, [ebp - 0x68]
mov ecx, esi
push eax
call fcn.00406e60
mov ecx, dword [ebp - 0x54]
cmp ecx, 8
jb 0x40a17b
inc ecx
push ecx
push dword [ebp - 0x68]
lea ecx, [ebp - 0x68]
call fcn.00401ec0
jmp 0x40a17b
lea eax, [ebp - 0x6c]
push eax
push edi
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
cmp eax, 0x6f
jne 0x40a085
push edi
call fcn.004c7eb2
add esp, 4
push dword [ebp - 0x6c]
call fcn.004c7eb7
mov edi, eax
add esp, 4
test edi, edi
jne 0x40a085
lea eax, [ebp - 0x68]
mov ecx, esi
push eax
call fcn.00406e60
mov eax, dword [ebp - 0x54]
cmp eax, 8
jb 0x40a17b
inc eax
lea ecx, [ebp - 0x68]
push eax
push dword [ebp - 0x68]
call fcn.00401ec0
jmp 0x40a17b
lea eax, [ebp - 0x6c]
push eax
push edi
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
test eax, eax
jne 0x40a12c
mov ecx, edi
test edi, edi
je 0x40a12c
cmp dword [ecx + 0x1a0], 6
jne 0x40a0b4
cmp dword [ecx + 0x190], 6
je 0x40a0bc
mov ecx, dword [ecx]
test ecx, ecx
jne 0x40a0a2
jmp 0x40a12c
movzx eax, byte [ecx + 0x199]
push eax
movzx eax, byte [ecx + 0x198]
push eax
movzx eax, byte [ecx + 0x197]
push eax
movzx eax, byte [ecx + 0x196]
push eax
movzx eax, byte [ecx + 0x195]
push eax
movzx eax, byte [ecx + 0x194]
push eax
lea eax, [ebp - 0x50]
push str._02X__02X__02X__02X__02X__02X
push eax
call fcn.0040a940
add esp, 0x20
cmp word [ebp - 0x50], 0
jne 0x40a108
xor ecx, ecx
jmp 0x40a11f
lea ecx, [ebp - 0x50]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a110
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x68]
call fcn.004068f0
push edi
call fcn.004c7eb2
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
add esp, 4
mov word [esi], ax
mov ecx, dword [ebp - 0x54]
cmp ecx, 8
jae 0x40a16d
mov eax, dword [ebp - 0x58]
add eax, 1
je 0x40a172
add eax, eax
push eax
lea eax, [ebp - 0x68]
push eax
push esi
call fcn.004c0c30
mov ecx, dword [ebp - 0x54]
add esp, 0xc
jmp 0x40a172
mov eax, dword [ebp - 0x68]
mov dword [esi], eax
mov eax, dword [ebp - 0x58]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], ecx
mov eax, esi
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.0041141b
mov esp, ebp
pop ebp
ret
Function at 0x40a3e0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x523060]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
test esi, esi
jne 0x40a415
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041141b
mov esp, ebp
pop ebp
ret
push ebx
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push esi
xor bl, bl
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x40a46b
push edi
mov edi, dword [sym.imp.KERNEL32.dll_Process32NextW]
nop dword [eax + eax]
lea eax, [ebp - 0x20c]
push str.ZhuanZhuan.exe
push eax
call fcn.004c4a52
add esp, 8
test eax, eax
je 0x40a468
lea eax, [ebp - 0x230]
push eax
push esi
call edi
test eax, eax
jne 0x40a440
jmp 0x40a46a
mov bl, 1
pop edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov al, bl
pop ebx
xor ecx, ebp
pop esi
call fcn.0041141b
mov esp, ebp
pop ebp
ret
Function at 0x40a490
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e47f0
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x523060]
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, ecx
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
test esi, esi
je 0x40a5ec
test edi, edi
je 0x40a5ec
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
push eax
push 0x4ea840
push 1
push 0
push 0x4ea8c0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x40a5ec
mov eax, dword [ebp - 0x2c]
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
test eax, eax
js 0x40a5ec
mov eax, dword [ebp - 0x2c]
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
test eax, eax
js 0x40a5ec
mov eax, dword [ebp - 0x2c]
push 0
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x44]
test eax, eax
js 0x40a5ec
push esi
lea ecx, [ebp - 0x28]
call fcn.00401c80
push 2
push 0xffffffffffffffff
push 0x513d64
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.0040a8a0
cmp eax, 0xffffffff
je 0x40a592
push eax
push 0
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x28]
call fcn.004066a0
mov edx, eax
mov byte [ebp - 4], 1
cmp dword [edx + 0x14], 8
jb 0x40a576
mov edx, dword [edx]
mov eax, dword [ebp - 0x2c]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0
mov esi, eax
call fcn.00401c40
test esi, esi
js 0x40a5de
mov eax, dword [ebp - 0x2c]
lea edx, [ebp - 0x30]
push edx
mov dword [ebp - 0x30], 0
push 0x4ea870
mov ecx, dword [eax]
push eax
call dword [ecx]
test eax, eax
js 0x40a5de
mov eax, dword [ebp - 0x30]
push 0
push ebx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
test eax, eax
js 0x40a5de
mov eax, dword [ebp - 0x30]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
lea ecx, [ebp - 0x28]
mov bl, 1
call fcn.00401c40
mov al, bl
jmp 0x40a5ee
lea ecx, [ebp - 0x28]
xor bl, bl
call fcn.00401c40
mov al, bl
jmp 0x40a5ee
xor al, al
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.0041141b
mov esp, ebp
pop ebp
ret
Function at 0x40a6f0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x523060]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
test esi, esi
je 0x40a7fb
mov edx, esi
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x40a713
sub edx, ecx
sar edx, 1
je 0x40a7fb
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsRootW]
test eax, eax
je 0x40a744
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041141b
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40a75a
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
jne 0x40a733
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004c29b0
add esp, 0xc
lea eax, [ebp - 0x20c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveBackslashW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea ecx, [ebp - 0x20c]
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40a7c6
test dx, dx
je 0x40a7c2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40a7c6
add eax, 4
add ecx, 4
test dx, dx
jne 0x40a7a0
xor eax, eax
jmp 0x40a7cb
sbb eax, eax
or eax, 1
test eax, eax
je 0x40a7fb
lea ecx, [ebp - 0x20c]
call fcn.0040a6f0
test al, al
je 0x40a7fb
push esi
call fcn.004c7e88
add esp, 4
neg eax
sbb eax, eax
inc eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041141b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop esi
call fcn.0041141b
mov esp, ebp
pop ebp
ret

Function at 0x40a810
Capabilities:
Hide graphical window
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov ebx, ecx
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push 0
mov edi, eax
push esi
mov dword [ebp - 8], edi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push 1
push eax
push edi
mov edi, dword [sym.imp.USER32.dll_AttachThreadInput]
mov dword [ebp - 4], eax
call edi
push 1
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
mov esi, dword [sym.imp.USER32.dll_SetWindowPos]
push 3
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push ebx
call esi
push 3
push 0
push 0
push 0
push 0
push 0xfffffffffffffffe
push ebx
call esi
push ebx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 0
push dword [ebp - 4]
test eax, eax
push dword [ebp - 8]
setne bl
call edi
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40e455
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x40e463
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
shr eax, 4
and eax, 1
pop ebp
ret
Function at 0x40e4b3
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x40e4c1
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne al
pop ebp
ret

Function at 0x40e847
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x40e85b
xor eax, eax
pop ebp
ret
push edi
mov edi, dword [eax + 0x3c]
add edi, eax
cmp dword [edi], 0x4550
je 0x40e870
xor eax, eax
jmp 0x40e94d
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 4
push 0x2000
push dword [edi + 0x50]
push dword [edi + 0x34]
call esi
mov ebx, eax
test ebx, ebx
jne 0x40e8a4
push 4
push 0x2000
push dword [edi + 0x50]
push eax
call esi
mov ebx, eax
test ebx, ebx
je 0x40e949
push 0x14
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
xor eax, eax
push 4
push 0x1000
mov dword [esi + 4], ebx
mov dword [esi + 0xc], eax
mov dword [esi + 8], eax
mov dword [esi + 0x10], eax
push dword [edi + 0x50]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [ebp + 8]
mov eax, dword [edi + 0x54]
add eax, dword [ecx + 0x3c]
push eax
push ecx
push ebx
call fcn.004c2430
mov ecx, dword [ebp + 8]
push esi
push edi
push ecx
mov eax, dword [ecx + 0x3c]
add eax, ebx
mov dword [esi], eax
mov dword [eax + 0x34], ebx
call fcn.0040e5e6
mov eax, ebx
add esp, 0x18
sub eax, dword [edi + 0x34]
je 0x40e90f
push eax
push esi
call fcn.0040e950
pop ecx
pop ecx
push esi
call fcn.0040e4d2
pop ecx
test eax, eax
je 0x40e942
push esi
call fcn.0040e688
mov eax, dword [esi]
pop ecx
mov eax, dword [eax + 0x28]
test eax, eax
je 0x40e93e
add eax, ebx
je 0x40e942
push 0
xor edi, edi
inc edi
push edi
push ebx
call eax
test eax, eax
je 0x40e942
mov dword [esi + 0x10], edi
mov eax, esi
jmp 0x40e94b
push esi
call fcn.0040e745
pop ecx
xor eax, eax
pop esi
pop ebx
pop edi
pop ebp
ret

Function at 0x40f2dc
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40f302
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40f302
xor al, al
jmp 0x40f316
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [ebp - 4]
add ecx, esi
adc edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x410544
Capabilities:
Create directory

Disassembly:
push 0x38
mov eax, 0x4e4ef7
call fcn.00411cbd
xor ebx, ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x410564
mov al, 1
jmp 0x4105ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x410575
xor al, al
jmp 0x4105ac
lea ecx, [ebp - 0x44]
call fcn.004106b5
lea ecx, [ebp - 0x1c]
call fcn.0040fc1a
push ebx
push dword [ebp + 8]
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], ebx
call fcn.004107c0
test al, al
je 0x4105a1
mov ebx, dword [ebp - 0x24]
shr ebx, 4
and bl, 1
push dword [ebp - 0x1c]
call fcn.00411a34
pop ecx
mov al, bl
call fcn.00411c86
ret

Function at 0x410606
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
pop ebp
ret

Function at 0x410d31
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, eax
mov eax, ecx
pop ebp
ret
Function at 0x415c20
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x10]
call fcn.00415c50
add esp, 4
mov dword [ebp + 0x10], eax
pop ebp
jmp fcn.004d98a4

Function at 0x41b070
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
xor edx, edx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, 0x1505
add eax, esi
mov ecx, eax
sub ecx, esi
push edi
xor edi, edi
cmp esi, eax
cmova ecx, edx
mov dword [ebp + 8], ecx
test ecx, ecx
je 0x41b0b9
mov al, byte [esi]
push eax
call fcn.004258a0
movsx ecx, al
lea esi, [esi + 1]
mov eax, ebx
inc edi
shl eax, 5
add esp, 4
add eax, ebx
xor ecx, eax
mov ebx, ecx
cmp edi, dword [ebp + 8]
jb 0x41b097
pop edi
pop esi
movzx eax, bl
pop ebx
pop ebp
ret

Function at 0x41c240
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x2b0], 2
jne 0x41c255
pop ebp
jmp fcn.0041c1f0
mov al, 1
pop ebp
ret
Function at 0x422df0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x600], 0
je 0x422e34
push esi
push 1
push edi
call fcn.00417a70
push dword [edi + 0x594]
mov eax, dword [edi + 0x600]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call eax
push 0
push edi
mov esi, eax
call fcn.00417a70
add esp, 0x24
mov eax, esi
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 0xc]
cmp eax, 2
ja 0x422e6a
push dword [edi + 0x590]
lea eax, [eax + eax*2]
push 1
add eax, 0x4ed508
push 2
push eax
call fcn.004c489f
push dword [edi + 0x590]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.004c489f
add esp, 0x20
xor eax, eax
pop edi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [0x523060]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ecx + eax*4 + 0x1b8]
push edi
mov edi, dword [ebp + 0x10]
push eax
push ecx
mov dword [ebp - 0x88], ecx
call fcn.00423760
add esp, 8
push 0
push dword [ebp + 0x14]
push edi
push esi
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
mov dword [ebx], 0
cmp esi, 0xffffffff
jne 0x4232ba
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0x2733
jne 0x42327c
pop edi
pop esi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041141b
mov esp, ebp
pop ebp
ret
push 0x80
lea eax, [ebp - 0x84]
push eax
push edi
call fcn.00444fa0
push eax
mov eax, dword [ebp - 0x88]
push str.Send_failure:__s
push dword [eax]
call fcn.00422e70
mov eax, dword [ebp - 0x88]
add esp, 0x18
mov eax, dword [eax]
mov dword [eax + 0xcac], edi
mov eax, esi
mov dword [ebx], 0x37
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041141b
mov esp, ebp
pop ebp
ret