joyce8/EMBER2024-capa huggingface dataset:
Function at 0x950250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x964808
push 0x954288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 5
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x950329
lea edx, [ebp - 0x28]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x950329
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
mov edx, dword [ebp - 0x2c]
push edx
call fcn.009531d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0x950329
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x28]
push edx
call edi
test eax, eax
je 0x950329
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x24], al
jmp 0x95032c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.00950351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x950d20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x950d58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0x950d60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x950d94
mov eax, dword [esp + 0x14]
test eax, eax
je 0x950d94
push eax
push esi
call fcn.0095320b
add esp, 8
pop esi
ret 0x10

Function at 0x950da0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x950e22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0x950e15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0x969320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00952dff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0x950dda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0x950e30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x950ec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0x950eb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0x969320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00952dff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0x950eab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0x950e6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0x951000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x951131
push esi
call fcn.00954145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.00943080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x951131
push 0
push ebp
call fcn.009433a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00943260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0x95108b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.009432f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x951121
push 0x969918
push edi
call fcn.009523f0
push eax
push ebx
push esi
call fcn.00950f60
push 0x9698f8
push edi
call fcn.009523f0
push eax
push ebx
push esi
call fcn.00950f60
push 0x9698d8
push edi
call fcn.009523f0
push eax
push ebx
push esi
call fcn.00950f60
push 0x9698c0
push edi
call fcn.009523f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00950f60
push 0x9698a0
push edi
call fcn.009523f0
push eax
push ebx
push esi
call fcn.00950f60
push 0x969888
push edi
call fcn.009523f0
push eax
push ebx
push esi
call fcn.00950f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x9521b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00952140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00952140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00952140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00952140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x952bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x952c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x96487c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x952c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x952c52
xor eax, eax
pop esi
leave
ret 4

Function at 0x438c97
Capabilities:
Encode data using xor

Disassembly:
push 0x438a14
pop esi
add eax, 0x5a99176c
sub ecx, 0xef12d903
call fcn.00438ccf
and ecx, eax
xor dword [edx], esi
add ecx, eax
inc edx
and eax, ecx
dec eax
add ecx, 0x3ef7a5cc
cmp edx, edi
jne fcn.00438c97
and ecx, eax
inc eax
ret

Function at 0x10001000
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x128
push ebx
push ebp
push esi
push edi
push 0
push 0xf
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebp, eax
test ebp, ebp
je 0x1000106c
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x128
push eax
push ebp
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x10001065
mov esi, dword [esp + 0x13c]
mov ebx, dword [sym.imp.SHLWAPI.dll_StrCmpNIA]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x38]
push ecx
push esi
call ebx
test eax, eax
je 0x10001079
lea edx, [esp + 0x10]
push edx
push ebp
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x1000103d
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x128
ret
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x128
ret

Function at 0x10001390
Capabilities:
Create thread

Disassembly:
cmp dword [esp + 8], 1
jne 0x100013b3
push 0
push 0
push 0
push 0x10001090
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
ret 0xc
Function at 0x4017e0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
clc
jae 0x4017eb
call 0x63d02e
add byte [eax], al
mov eax, 0x23
cmp eax, 0x100
jl 0x4017f9
call 0x3dcb7cd5
xor byte [eax], al
add byte [eax], al
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x49e400], eax
mov edx, 0xda4c2ca8
call fcn.00401160
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
call edx
stc
jb 0x401829
jmp 0xff408243
push 0
call dword [sym.imp.USER32.dll_WindowFromDC]
push 8
call fcn.0040232a
push 4
mov esi, eax
call fcn.0040232a
lea edi, [esi + 4]
push edi
push 0
push eax
push 0x401ad0
push 0
push 0
mov dword [eax], 0x4016f0
call fcn.004053bf
add esp, 0x20
mov dword [esi], eax
test eax, eax
je 0x401891
cmp dword [edi], 0
je 0x40189e
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [edi], eax
je 0x4018a5
push 0
push dword [esi + 4]
push dword [esi]
call fcn.0040216e
add esp, 0xc
test eax, eax
jne 0x4018ac
pop edi
mov dword [esi], eax
mov dword [esi + 4], eax
pop esi
mov esp, ebp
pop ebp
ret
push 6
mov dword [edi], 0
call fcn.00401f10
push 1
call fcn.00401f10
push 5
call fcn.00401f10
push 2
call fcn.00401f10
int3

Function at 0x402c97
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x402cd6
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x402cd6
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x402cd6
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x402cd6
cmp dword [ecx + 0x74], 0xe
jbe 0x402cd6
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x407864
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41226c
push 0x412264
push str.FlsAlloc
push 0x1e
call fcn.004076e5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x407898
push dword [ebp + 8]
mov ecx, esi
call dword [0x410138]
call esi
jmp 0x40789e
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4078e2
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41227c
push 0x412274
push str.FlsGetValue
push 0x20
call fcn.004076e5
mov esi, eax
add esp, 0x10
test esi, esi
je 0x407919
push dword [ebp + 8]
mov ecx, esi
call dword [0x410138]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x4063e0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x4781ab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x18]
push edi
lea ecx, [esi + 4]
mov dword [esi], 0x4046b4
call fcn.00407041
push 4
mov dword [esp + 0x18], 0
call fcn.00407ee6
mov edi, eax
add esp, 4
test edi, edi
je 0x406454
push ebx
call fcn.00406f19
mov dword [edi], eax
call fcn.00406cd8
push 0
lea ecx, [esp + 0x10]
mov ebx, eax
call fcn.00407002
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x406448
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0xc]
call fcn.0040702a
pop ebx
jmp 0x406456
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x408951
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x47b520]
jne 0x40895b
repz ret
jmp fcn.0040d0ac
Function at 0x411cf2
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x47b520]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040b051
and dword [ebp - 0x14], 0
cmp dword [0x480a94], 0
mov dword [ebp - 0x18], eax
jne 0x411da5
push 0x403924
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x411e4d
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403918
push ebx
call edi
test eax, eax
je 0x411e4d
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403908
push ebx
mov dword [0x480a94], eax
call edi
push eax
call esi
push 0x4038f4
push ebx
mov dword [0x480a98], eax
call edi
push eax
call esi
push 0x4038d8
push ebx
mov dword [0x480a9c], eax
call edi
push eax
call esi
mov dword [0x480aa4], eax
test eax, eax
je 0x411da5
push 0x4038c0
push ebx
call edi
push eax
call esi
mov dword [0x480aa0], eax
mov eax, dword [0x480aa0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x411dfe
cmp dword [0x480aa4], ecx
je 0x411dfe
push eax
call esi
push dword [0x480aa4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x411dfe
test ebx, ebx
je 0x411dfe
call edi
test eax, eax
je 0x411df5
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x411df5
test byte [ebp - 8], 1
jne 0x411dfe
or dword [ebp + 0x10], 0x200000
jmp 0x411e31
mov eax, dword [0x480a98]
cmp eax, dword [ebp - 0x18]
je 0x411e31
push eax
call esi
test eax, eax
je 0x411e31
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x411e31
mov eax, dword [0x480a9c]
cmp eax, dword [ebp - 0x18]
je 0x411e31
push eax
call esi
test eax, eax
je 0x411e31
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x480a94]
call esi
test eax, eax
je 0x411e4d
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x411e4f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408951
leave
ret
Function at 0x476cb0
Capabilities:
Delete directory
Get common file path
Manipulate console buffer

Disassembly:
sub esp, 0xc0c
cmp dword [0x805820], 0x37
jne 0x476d50
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetCommState]
push 0
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemPowerStatus]
push 0
lea eax, [esp + 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea ecx, [esp + 8]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
lea edx, [esp + 4]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeA]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
lea eax, [esp + 0x10]
push eax
push 0
push 0x404164
push 0
call dword [sym.imp.KERNEL32.dll_FoldStringA]
push 0
push 0
push 0
push 0x4041a0
push 0x404238
push 0x4042b8
call dword [sym.imp.KERNEL32.dll_ReplaceFileW]
mov ecx, dword [0x805824]
mov dword [esp], ecx
mov eax, 0x5d1
add dword [esp], eax
mov edx, dword [esp]
mov al, byte [edx + esi]
mov ecx, dword [0x485884]
mov byte [ecx + esi], al
add esp, 0xc0c
ret
Function at 0x476fc0
Capabilities:
Accept command line arguments
Enumerate files on windows
Manipulate console buffer
Move file

Disassembly:
mov eax, dword [0x805820]
sub esp, 0x434
push ebx
push ebp
push esi
shr eax, 3
xor ebx, ebx
push edi
mov edi, dword [0x485884]
cmp eax, ebx
jbe 0x4771a8
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], eax
jmp 0x476ff6
mov edi, dword [esp + 0x1c]
xor ebx, ebx
cmp dword [0x805820], 0x1c
jne 0x47700d
lea eax, [esp + 0x38]
push eax
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
mov ecx, dword [edi + 4]
mov edx, dword [0x47c700]
mov eax, dword [0x47c704]
mov esi, dword [edi]
mov ebp, dword [0x47c708]
mov dword [esp + 0x14], ecx
mov ecx, dword [str.XB_tV]
mov edi, 0xc6ef3720
mov dword [esp + 0x30], edx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x20], 0x20
jmp 0x47704a
xor ebx, ebx
mov eax, esi
mov edx, esi
shl eax, 4
shr edx, 5
add edx, dword [esp + 0x28]
add eax, ebp
lea ecx, [edi + esi]
xor eax, ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], eax
mov dword [0x8047a4], ebx
mov eax, dword [esp + 0x18]
add dword [0x8047a4], eax
mov edx, dword [0x8047a4]
mov dword [esp + 0x34], edx
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x34]
add dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
xor eax, dword [esp + 0x18]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
sub dword [esp + 0x14], eax
mov ecx, dword [esp + 0x14]
shl ecx, 4
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x30]
add dword [esp + 0x10], eax
cmp dword [0x805820], 0x1be
mov eax, dword [esp + 0x14]
lea ebx, [edi + eax]
jne 0x4770e4
lea edx, [esp + 0x3c]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
mov eax, dword [esp + 0x14]
shr eax, 5
add eax, dword [esp + 0x2c]
cmp dword [0x805820], 0x979
mov dword [0x8047a8], 0xff6b3619
mov dword [0x8047ac], 0xffffffff
mov dword [esp + 0x18], eax
jne 0x477128
push 0
lea eax, [esp + 0x44]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GlobalGetAtomNameA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
xor dword [esp + 0x10], ebx
mov eax, dword [esp + 0x18]
xor dword [esp + 0x10], eax
mov eax, dword [0x805820]
sub esi, dword [esp + 0x10]
cmp eax, 0x93
je 0x47714a
add edi, 0x61c88647
dec dword [esp + 0x20]
jne 0x477048
cmp eax, 0x8d4
jne 0x477161
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
mov dword [edi], esi
mov dword [edi + 4], ecx
cmp dword [0x805820], 0x17
jne 0x477197
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MoveFileWithProgressA]
lea edx, [esp + 0x40]
push edx
push 0x4040f0
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
add edi, 8
dec dword [esp + 0x24]
mov dword [esp + 0x1c], edi
jne 0x476ff0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x434
ret
Function at 0x4ca246
Capabilities:
Encode data using xor

Disassembly:
push 0x4c9fca
mov edx, dword [esp]
add esp, 4
add esi, eax
call fcn.004ca299
and eax, esi
add esi, 0x7fdb1150
add eax, 0xbe6ab860
xor dword [ebx], edx
add esi, esi
sub eax, 0x12ef0266
inc ebx
dec esi
sub eax, 1
sub esp, 4
mov dword [esp], 0x3dcd383a
pop eax
cmp ebx, ecx
jne fcn.004ca246
add esi, 0xba4bcf20
sub esi, eax
dec eax
ret
Function at 0x401b72
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
and word [ebp - reloc.crtdll.dll_vsprintf], 0
push edi
push 0x63
xor eax, eax
pop ecx
lea edi, [ebp - 0x18e]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [ebp - 0x190]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
pop edi
je 0x401bc5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.sock_envir_init_error__error_num:
push str._s_d_n
call fcn.00401598
add esp, 0xc
jmp 0x401bf0
cmp byte [ebp - 0x190], 2
jne 0x401bdf
xor eax, eax
mov al, byte [ebp - 0x18f]
cmp al, 2
jne 0x401bdf
push 1
pop eax
leave
ret
push 0x404174
call fcn.00401598
pop ecx
call dword [sym.imp.WS2_32.dll_WSACleanup]
or eax, 0xffffffff
leave
ret

Function at 0x401c9c
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
push edi
push 0x40
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x10b]
mov byte [ebp - 0x10c], bl
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x10c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x401d5c
push ebx
push 0x80
push 3
push ebx
push 1
lea eax, [ebp - 0x10c]
push bind
push eax
call dword [0x4047f0]
mov esi, eax
cmp esi, 0xffffffff
mov dword [ebp - 4], esi
je 0x401d5c
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebx
add eax, 0xffffff44
push ebx
push eax
push esi
call dword [0x4047e8]
cmp eax, 0xffffffff
jne 0x401d29
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x401d79
mov esi, 0xbc
mov edi, 0x404828
push esi
push ebx
push edi
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 8]
push ebx
push eax
push esi
push edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 8], esi
je 0x401d61
or eax, 0xffffffff
jmp 0x401d79
push 1
push edi
push 0xac
push 0x404838
call fcn.00401815
add esp, 0x10
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret