joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417160
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x44c741
mov eax, dword fs:[0]
push eax
sub esp, 0x45c
mov eax, dword [0x466d98]
xor eax, esp
mov dword [esp + 0x458], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x466d98]
xor eax, esp
push eax
lea eax, [esp + 0x470]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x480]
xor ebx, ebx
push 0x3ff
lea eax, [esp + 0x71]
push ebx
push eax
mov dword [esp + 0x58], ebx
mov byte [esp + 0x78], bl
call fcn.00435580
add esp, 0xc
push 0x400
lea ecx, [esp + 0x70]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [esp + 0x6c]
add eax, 0xffffffff
mov cl, byte [eax + 1]
add eax, 1
cmp cl, bl
jne 0x4171d6
mov edx, dword [str.yw_]
mov cl, byte [0x45238c]
mov dword [eax], edx
mov byte [eax + 4], cl
call fcn.0041b080
test eax, eax
mov esi, 0xf
jne 0x41720c
call fcn.0041b080
test eax, eax
je 0x41731b
lea eax, [esp + 0x6c]
mov dword [esp + 0x68], esi
mov dword [esp + 0x64], ebx
mov byte [esp + 0x54], bl
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x417220
sub eax, edx
push eax
lea edx, [esp + 0x70]
push edx
lea ecx, [esp + 0x58]
call fcn.00405b30
push 8
push str.syswow64
lea ecx, [esp + 0x38]
mov dword [esp + 0x480], ebx
mov dword [esp + 0x50], esi
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
call fcn.00405b30
push 8
push str.system32
lea ecx, [esp + 0x1c]
mov byte [esp + 0x480], 1
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
call fcn.00405b30
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x58]
push edx
mov byte [esp + 0x484], 2
call fcn.00417ed0
mov edi, 0x10
add esp, 0xc
cmp dword [esp + 0x2c], edi
jb 0x4172b8
mov eax, dword [esp + 0x18]
push eax
call fcn.00433d63
add esp, 4
cmp dword [esp + 0x48], edi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
jb 0x4172d7
mov ecx, dword [esp + 0x34]
push ecx
call fcn.00433d63
add esp, 4
mov edi, dword [esp + 0x68]
cmp edi, 0x10
mov ecx, dword [esp + 0x54]
jae 0x4172e8
lea ecx, [esp + 0x54]
lea edx, [esp + 0x6c]
lea esp, [esp]
mov al, byte [ecx]
mov byte [edx], al
add ecx, 1
add edx, 1
cmp al, bl
jne 0x4172f0
cmp edi, 0x10
mov dword [esp + 0x478], 0xffffffff
jb 0x41731b
mov edx, dword [esp + 0x54]
push edx
call fcn.00433d63
add esp, 4
lea eax, [esp + 0x6c]
mov dword [ebp + 0x18], esi
mov dword [ebp + 0x14], ebx
mov byte [ebp + 4], bl
lea edx, [eax + 1]
jmp 0x417330
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x417330
sub eax, edx
push eax
lea eax, [esp + 0x70]
push eax
mov ecx, ebp
call fcn.00405b30
mov eax, ebp
mov ecx, dword [esp + 0x470]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x458]
xor ecx, esp
call fcn.00433d68
add esp, 0x468
ret
Function at 0x417390
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov cl, byte [edi]
test cl, cl
mov esi, 0x811c9dc5
mov edx, edi
je 0x4173c4
mov al, cl
jmp 0x4173b0
imul esi, esi, 0x1000193
movzx eax, al
add edx, 1
xor esi, eax
mov al, byte [edx]
test al, al
jne 0x4173b0
xor eax, eax
test cl, cl
mov edx, edi
je 0x4173e8
lea esp, [esp]
mov edi, eax
shl edi, 5
movzx ecx, cl
sub edi, eax
add edi, ecx
mov cl, byte [edx + 1]
add edx, 1
test cl, cl
mov eax, edi
jne 0x4173d0
xor eax, esi
and eax, 0xffff
pop edi
xor eax, esi
pop esi
ret

Function at 0x419360
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
xor eax, eax
test edx, edx
jle 0x41937b
mov ecx, dword [esp + 4]
mov edi, edi
xor byte [eax + ecx], 2
add eax, 1
cmp eax, edx
jl 0x419370
ret

Function at 0x4194f0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0x45253c
push eax
call fcn.00436394
mov esi, eax
add esp, 8
test esi, esi
je 0x419539
mov edx, dword [esp + 0xc]
mov eax, edx
push edi
lea edi, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x419513
push esi
sub eax, edi
push 1
push eax
push edx
call fcn.00436506
push esi
call fcn.00435c8b
add esp, 0x14
pop edi
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret

Function at 0x419540
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push esi
mov eax, ebx
push edi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x419550
sub eax, edx
mov edi, eax
mov eax, dword [esp + 0x10]
push 0x452540
push eax
call fcn.00436394
mov esi, eax
add esp, 8
test esi, esi
je 0x419591
push esi
push 1
push edi
push ebx
call fcn.00436506
push esi
call fcn.00435c8b
add esp, 0x14
pop edi
pop esi
mov eax, 1
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x4195e0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x44ca36
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x466d98]
xor eax, esp
mov dword [esp + 0xa0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x466d98]
xor eax, esp
push eax
lea eax, [esp + 0xb8]
mov dword fs:[0], eax
mov eax, dword [esp + 0xcc]
mov ebx, dword [esp + 0xc8]
xor edi, edi
cmp eax, edi
mov dword [esp + 0x14], edi
je 0x419726
cmp byte [eax], 0
je 0x419726
push 0x452538
push eax
call fcn.00436394
mov esi, eax
add esp, 8
mov dword [esp + 0x14], esi
cmp esi, edi
mov dword [esp + 0xc0], 2
je 0x419704
push 2
push edi
push esi
call fcn.0043624b
push esi
call fcn.00436156
push edi
push edi
push esi
mov ebp, eax
call fcn.0043624b
push ebp
call fcn.00433c97
mov edi, eax
add esp, 0x20
test edi, edi
je 0x419702
push esi
push 1
push ebp
push edi
call fcn.00435fa3
add esp, 0x10
mov dword [esp + 0xb0], 0xf
mov dword [esp + 0xac], 0
mov byte [esp + 0x9c], 0
push ebp
push edi
lea ecx, [esp + 0xa0]
mov byte [esp + 0xc8], 3
call fcn.00403d10
push edi
call fcn.00433fb6
add esp, 4
lea eax, [esp + 0x98]
push eax
mov ecx, ebx
call fcn.00403cb0
lea ecx, [esp + 0x98]
call fcn.00403ce0
push esi
call fcn.00435c8b
add esp, 4
jmp 0x4197f2
xor edi, edi
push 0x45734d
mov ecx, ebx
call fcn.00403c70
cmp esi, edi
je 0x4197f2
push esi
call fcn.00435c8b
add esp, 4
jmp 0x4197f2
push 1
push 2
lea ecx, [esp + 0x20]
call fcn.00404370
lea ecx, [esp + 0x18]
push 0x452578
push ecx
mov dword [esp + 0xc8], edi
call fcn.004073a0
add esp, 8
lea edx, [esp + 0x98]
push edx
lea ecx, [esp + 0x1c]
call fcn.004044d0
mov esi, 0x10
cmp dword [eax + 0x18], esi
mov byte [esp + 0xc0], 1
jb 0x419774
mov eax, dword [eax + 4]
jmp 0x419777
add eax, 4
push eax
push str.BaseLib::ReadFileToString
push 0x47
push str..common_stdfile.cpp
push 0xf0000000
call fcn.004075e0
mov ecx, eax
call fcn.0041f2e0
cmp dword [esp + 0xb0], esi
jb 0x4197ae
mov eax, dword [esp + 0x9c]
push eax
call fcn.00433d63
add esp, 4
lea ecx, [esp + 0x64]
mov dword [esp + 0xc0], 0xffffffff
call fcn.00404450
lea ecx, [esp + 0x64]
push ecx
mov dword [esp + 0x68], vtable.std::ios_base.0
call fcn.004339e9
add esp, 4
push edi
mov dword [ebx + 0x18], 0xf
mov dword [ebx + 0x14], edi
push 0x45734d
mov ecx, ebx
mov byte [ebx + 4], 0
call fcn.00405b30
mov eax, ebx
mov ecx, dword [esp + 0xb8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xa0]
xor ecx, esp
call fcn.00433d68
add esp, 0xb0
ret
Function at 0x41ad70
Capabilities:
Move file

Disassembly:
mov edx, dword [esp + 4]
test edx, edx
je 0x41ada1
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x41ada1
cmp dword [esp + 0xc], 0
mov eax, 0xa
jne 0x41ad91
mov eax, 0xb
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
neg eax
sbb eax, eax
neg eax
ret
xor eax, eax
ret

Function at 0x41ae00
Capabilities:
Check os version

Disassembly:
sub esp, 0xac
mov eax, dword [0x466d98]
xor eax, esp
mov dword [esp + 0xa8], eax
push ebx
mov ebx, dword [esp + 0xb4]
push esi
push edi
mov edi, dword [esp + 0xc0]
push 0x9c
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.00435580
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x1c], 0x9c
call esi
test eax, eax
jne 0x41ae7f
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x1c], 0x94
call esi
test eax, eax
jne 0x41ae7f
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0xa8]
xor ecx, esp
call fcn.00433d68
add esp, 0xac
ret
mov eax, dword [esp + 0x1c]
cmp eax, 6
mov ecx, dword [esp + 0x20]
mov dword [ebx], eax
mov dword [edi], ecx
jne 0x41af18
cmp ecx, 2
jne 0x41af18
push str.ntdll.dll
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x41ae65
push str.RtlGetNtVersionNumbers
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41aeeb
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x18]
push ecx
call eax
and dword [esp + 0xc], 0xffff
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x10]
cmp eax, 6
jne 0x41af03
mov edx, dword [esp + 0x14]
mov dword [edi], edx
jmp 0x41af18
cmp eax, 0xa
jne 0x41ae65
mov dword [ebx], 6
mov dword [edi], 4
mov ecx, dword [esp + 0xb4]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.00433d68
add esp, 0xac
ret

Function at 0x41b1a0
Capabilities:
Get disk size

Disassembly:
sub esp, 0x120
mov eax, dword [0x466d98]
xor eax, esp
mov dword [esp + 0x11c], eax
mov eax, dword [esp + 0x124]
lea edx, [esp + 0x18]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x41b1c1
lea eax, [esp]
push eax
mov byte [esp + 0x1e], cl
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x41b211
mov eax, dword [esp]
mov ecx, dword [esp + 4]
shrd eax, ecx, 0x14
shr ecx, 0x14
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.00433d68
add esp, 0x120
ret
mov ecx, dword [esp + 0x11c]
xor ecx, esp
or eax, 0xffffffff
call fcn.00433d68
add esp, 0x120
ret
Function at 0x41b2f0
Capabilities:
Delete registry value

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, ebx
push edi
je 0x41b364
mov edi, dword [esp + 0x10]
test edi, edi
je 0x41b364
cmp byte [edi], 0
je 0x41b364
cmp dword [esp + 0x18], 0
push esi
mov esi, 0xf003f
jne 0x41b322
call fcn.0041b080
test eax, eax
je 0x41b322
mov esi, 0xf013f
lea eax, [esp + 0x10]
push eax
push esi
push 0
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x41b33c
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov esi, eax
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
pop esi
pop edi
sete al
pop ebx
ret
pop edi
xor eax, eax
pop ebx
ret

Function at 0x41b870
Capabilities:
Set registry value

Disassembly:
push ecx
cmp dword [esp + 0x20], 0
push ebx
push ebp
push esi
push edi
mov ebx, 2
jne 0x41b88f
call fcn.0041b080
test eax, eax
je 0x41b88f
mov ebx, 0x102
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 0x10]
push eax
push ebx
push 0
push esi
push edi
call ebp
test eax, eax
je 0x41b8d8
mov ecx, dword [esp + 0x30]
push ecx
push esi
push edi
call fcn.0041b6c0
add esp, 0xc
test eax, eax
jne 0x41b8c8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
lea edx, [esp + 0x10]
push edx
push ebx
push 0
push esi
push edi
call ebp
test eax, eax
jne 0x41b8c0
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x18]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 0x10]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor eax, eax
test esi, esi
pop esi
pop ebp
sete al
pop ebx
pop ecx
ret
Function at 0x41c700
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x44ce06
mov eax, dword fs:[0]
push eax
sub esp, 0x20c
mov eax, dword [0x466d98]
xor eax, esp
mov dword [esp + 0x208], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x466d98]
xor eax, esp
push eax
lea eax, [esp + 0x220]
mov dword fs:[0], eax
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x230]
xor ebx, ebx
cmp ecx, ebx
je 0x41c898
cmp byte [ecx], bl
je 0x41c898
mov edi, 0xf
mov eax, ecx
mov dword [esp + 0xd8], edi
mov dword [esp + 0xd4], ebx
mov byte [esp + 0xc4], bl
lea esi, [eax + 1]
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x41c777
sub eax, esi
push eax
push ecx
lea ecx, [esp + 0xc8]
call fcn.00405b30
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0xc4]
mov dword [esp + 0x22c], ebx
call fcn.004139f0
mov ecx, eax
call fcn.00413c80
cmp byte [eax], 0x5c
je 0x41c7c4
push 0x5c
push 1
lea ecx, [esp + 0xc8]
call fcn.00406e60
push 1
push 2
lea ecx, [esp + 0x48]
call fcn.00404370
push 0x457ddc
lea ecx, [esp + 0xc4]
push ecx
lea edx, [esp + 0x48]
push edx
mov byte [esp + 0x234], 1
call fcn.00407680
add esp, 8
push eax
call fcn.004073a0
add esp, 8
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x44]
call fcn.004044d0
mov ebp, 0x10
cmp dword [eax + 0x18], ebp
jb 0x41c819
mov eax, dword [eax + 4]
jmp 0x41c81c
add eax, 4
lea ecx, [esp + 0xdc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp dword [esp + 0x30], ebp
mov esi, eax
jb 0x41c840
mov edx, dword [esp + 0x1c]
push edx
call fcn.00433d63
add esp, 4
cmp esi, 0xffffffff
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
jne 0x41c8c4
lea ecx, [esp + 0x8c]
mov byte [esp + 0x228], bl
call fcn.00404450
lea eax, [esp + 0x8c]
push eax
mov dword [esp + 0x90], vtable.std::ios_base.0
call fcn.004339e9
add esp, 4
cmp dword [esp + 0xd8], ebp
jb 0x41c898
mov ecx, dword [esp + 0xc4]
push ecx
call fcn.00433d63
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x220]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.00433d68
add esp, 0x218
ret 4
mov edi, dword [sym.imp.KERNEL32.dll_FindNextFileA]
lea ebx, [ebx]
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx]
mov edx, dword [edx]
lea eax, [esp + 0xdc]
push eax
call edx
lea eax, [esp + 0xdc]
push eax
push esi
call edi
test eax, eax
jne 0x41c8d0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x8c]
mov byte [esp + 0x228], bl
call fcn.00404450
lea ecx, [esp + 0x8c]
push ecx
mov dword [esp + 0x90], vtable.std::ios_base.0
call fcn.004339e9
add esp, 4
cmp dword [esp + 0xd8], ebp
jb 0x41c93f
mov edx, dword [esp + 0xc4]
push edx
call fcn.00433d63
add esp, 4
mov eax, 1
jmp 0x41c89a
Function at 0x41e060
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x44d0ac
mov eax, dword fs:[0]
push eax
sub esp, 0x11c
push esi
mov eax, dword [0x466d98]
xor eax, esp
push eax
lea eax, [esp + 0x124]
mov dword fs:[0], eax
mov esi, dword [esp + 0x134]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x41e176
test al, 1
je 0x41e176
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x41e176
push 1
push 2
lea ecx, [esp + 0x2c]
call fcn.00404370
mov dword [esp + 0x12c], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x28]
push str.setAttr_false___err
push eax
call fcn.004073a0
add esp, 8
mov ecx, eax
call fcn.00403e80
lea ecx, [esp + 8]
push ecx
lea ecx, [esp + 0x28]
call fcn.004044d0
mov esi, 0x10
cmp dword [eax + 0x18], esi
mov byte [esp + 0x12c], 1
jb 0x41e119
mov eax, dword [eax + 4]
jmp 0x41e11c
add eax, 4
push eax
push str.BaseLib::CxxDeleteFile
push 0x95e
push str..common_function.cpp
push 0xf0000000
call fcn.004075e0
mov ecx, eax
call fcn.0041f2e0
cmp dword [esp + 0x20], esi
jb 0x41e150
mov edx, dword [esp + 0xc]
push edx
call fcn.00433d63
add esp, 4
lea ecx, [esp + 0x70]
mov dword [esp + 0x12c], 0xffffffff
call fcn.00404450
lea eax, [esp + 0x70]
mov dword [esp + 0x70], vtable.std::ios_base.0
push eax
jmp 0x41e283
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x41e19d
mov eax, 1
mov ecx, dword [esp + 0x124]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x128
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 2
je 0x41e28b
push 1
push 2
lea ecx, [esp + 0xac]
call fcn.00404370
mov dword [esp + 0x12c], 2
call esi
push eax
lea ecx, [esp + 0xa8]
push str.deletefile_false___err
push ecx
call fcn.004073a0
add esp, 8
mov ecx, eax
call fcn.00403e80
lea edx, [esp + 8]
push edx
lea ecx, [esp + 0xa8]
call fcn.004044d0
mov esi, 0x10
cmp dword [eax + 0x18], esi
mov byte [esp + 0x12c], 3
jb 0x41e210
mov eax, dword [eax + 4]
jmp 0x41e213
add eax, 4
push eax
push str.BaseLib::CxxDeleteFile
push 0x967
push str..common_function.cpp
push 0xf0000000
call fcn.004075e0
mov ecx, eax
call fcn.0041f2e0
cmp dword [esp + 0x20], esi
jb 0x41e247
mov eax, dword [esp + 0xc]
push eax
call fcn.00433d63
add esp, 4
xor eax, eax
lea ecx, [esp + 0xf0]
mov dword [esp + 0x20], 0xf
mov dword [esp + 0x1c], eax
mov byte [esp + 0xc], al
mov dword [esp + 0x12c], 0xffffffff
call fcn.00404450
lea ecx, [esp + 0xf0]
mov dword [esp + 0xf0], vtable.std::ios_base.0
push ecx
call fcn.004339e9
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x124]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x128
ret
Function at 0x41f750
Capabilities:
Get file version info

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x10]
test ebx, ebx
push esi
mov esi, ecx
je 0x41f7fd
cmp byte [ebx], 0
je 0x41f7fd
push edi
lea eax, [esp + 0x18]
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
je 0x41f7d1
mov eax, dword [esi]
test eax, eax
je 0x41f793
push eax
call fcn.00433fb6
add esp, 4
mov dword [esi], 0
push edi
call fcn.00433c97
mov ecx, dword [esp + 0x1c]
add esp, 4
push eax
push edi
push ecx
push ebx
mov dword [esi], eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x41f7ca
mov ecx, dword [esi]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x10]
push eax
push str.VarFileInfoTranslation
push ecx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x41f7dc
mov ecx, esi
call fcn.0041f720
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 8
ret 4
mov eax, dword [esp + 0xc]
movzx edx, word [eax + 2]
movzx eax, word [eax]
shl eax, 0x10
or edx, eax
pop edi
mov dword [esi + 4], edx
pop esi
mov eax, 1
pop ebx
add esp, 8
ret 4
pop esi
xor eax, eax
pop ebx
add esp, 8
ret 4

Function at 0x41f970
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
sub esp, 0x1c
mov eax, dword [0x466d98]
xor eax, esp
mov dword [esp + 0x18], eax
push esi
push 0x4529e0
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x41f9ef
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [esp + 8]
push eax
push 0x40
push 5
push esi
mov byte [esp + 0x20], 0x33
mov byte [esp + 0x21], 0xc0
mov byte [esp + 0x22], 0xc2
mov byte [esp + 0x23], 4
mov byte [esp + 0x24], 0
call edi
push 0
push 5
lea ecx, [esp + 0x18]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov eax, dword [esp + 8]
lea edx, [esp + 0xc]
push edx
push eax
push 5
push esi
call edi
pop edi
mov ecx, dword [esp + 0x1c]
pop esi
xor ecx, esp
call fcn.00433d68
add esp, 0x1c
ret

Function at 0x4210d0
Capabilities:
Connect socket

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x4210fe
push esi
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
call fcn.00438518
mov dword [eax], esi
or eax, 0xffffffff
pop esi
ret

Function at 0x421130
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
jne 0x42115e
push esi
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
call fcn.00438518
mov dword [eax], esi
or eax, 0xffffffff
pop esi
ret
Function at 0x4211e0
Capabilities:
Set socket configuration

Disassembly:
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
push ecx
mov ecx, dword [esp + 0xc]
push edx
push eax
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x421218
push esi
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
call fcn.00438518
mov dword [eax], esi
or eax, 0xffffffff
pop esi
ret

Function at 0x421250
Capabilities:
Set socket configuration

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x42127e
push esi
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
call fcn.00438518
mov dword [eax], esi
or eax, 0xffffffff
pop esi
ret
Function at 0x425960
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
push edx
mov edx, dword [esp + 0x10]
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
ret

Function at 0x425a10
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x44dbdd
mov eax, dword fs:[0]
push eax
mov eax, 0x2048
call fcn.00435600
mov eax, dword [0x466d98]
xor eax, esp
mov dword [esp + 0x2044], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x466d98]
xor eax, esp
push eax
lea eax, [esp + 0x205c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x206c]
mov esi, dword [esp + 0x2070]
mov ebp, dword [esp + 0x2074]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x2078]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], ebx
mov edx, eax
jne 0x425a84
mov edx, 0x45734d
mov eax, edx
mov dword [esp + 0x54], 0xf
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], bl
lea edi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x425aa0
sub eax, edi
push eax
push edx
lea ecx, [esp + 0x44]
call fcn.00405b30
cmp esi, ebx
mov dword [esp + 0x2064], ebx
je 0x425b84
cmp byte [esi], bl
je 0x425b84
cmp ebp, ebx
je 0x425b84
cmp byte [ebp], bl
je 0x425b84
push 0x1fff
lea ecx, [esp + 0x5d]
push ebx
push ecx
mov byte [esp + 0x64], bl
call fcn.00435580
mov eax, dword [esp + 0x28]
mov ecx, 0x10
add esp, 0xc
cmp dword [eax + 0x18], ecx
jb 0x425b08
mov eax, dword [eax + 4]
jmp 0x425b0b
add eax, 4
cmp dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x40]
jae 0x425b19
lea ecx, [esp + 0x40]
push eax
push 0x1fff
lea edx, [esp + 0x60]
push edx
push ecx
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [esp + 0x58], bl
je 0x425b54
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x24]
call fcn.00403c70
mov ebx, 2
mov byte [esp + 0x2064], 1
mov dword [esp + 0x14], ebx
jmp 0x425b5c
mov ebx, dword [esp + 0x14]
lea eax, [esp + 0x3c]
mov esi, dword [esp + 0x18]
push eax
mov ecx, esi
call fcn.00403cb0
or ebx, 1
test bl, 2
je 0x425b79
lea ecx, [esp + 0x20]
call fcn.00403ce0
lea ecx, [esp + 0x3c]
call fcn.00403ce0
jmp 0x425bb8
mov esi, dword [esp + 0x18]
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x44]
push ecx
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
mov ecx, esi
mov byte [esi + 4], bl
call fcn.00404b70
cmp dword [esp + 0x54], 0x10
jb 0x425bb8
mov edx, dword [esp + 0x40]
push edx
call fcn.00433d63
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x205c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2044]
xor ecx, esp
call fcn.00433d68
add esp, 0x2054
ret 0x10