joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40bc40
Capabilities:
Receive data
Receive data on socket

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x2010]
push 0
mov ecx, 0x1000
sub ecx, eax
push ecx
lea edx, [eax + esi + 0x1010]
mov eax, dword [esi + 8]
push edx
push eax
call dword [sym.imp.WS2_32.dll_recv]
cmp dword [esi + 0x2014], 0
je 0x40bc7d
push eax
lea ecx, [esi + 0x1010]
push ecx
mov ecx, esi
call fcn.0040b9f0
test eax, eax
jne 0x40bc88
mov eax, 1
pop esi
ret
cmp eax, 0xffffffff
push edi
jne 0x40bcb6
mov edi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call edi
cmp eax, 0x2733
je 0x40bcae
call edi
push eax
push str.recv__
push esi
call fcn.0040ba00
add esp, 0xc
pop edi
mov eax, 1
pop esi
ret
add dword [esi + 0x2010], eax
mov eax, dword [esi + 0x2010]
cmp eax, 3
jge 0x40bccf
pop edi
mov eax, 3
pop esi
ret
push ebx
push ebp
xor ebx, ebx
lea ebp, [esi + 0x1010]
lea esp, [esp]
mov cl, byte [ebx + ebp]
cmp cl, 0xc1
lea eax, [ebx + ebp]
jne 0x40bcf5
movzx edi, byte [ebx + esi + 0x1011]
jmp 0x40bd0b
cmp cl, 0xc2
jne 0x40bd8b
movzx edi, byte [eax + 1]
movzx edx, byte [eax + 2]
shl edi, 8
add edi, edx
test edi, edi
jle 0x40bd38
cmp edi, dword [esi + 0x2010]
jg 0x40bd4e
push edi
push eax
mov ecx, esi
call fcn.0040ba20
sub dword [esi + 0x2010], edi
add ebx, edi
cmp dword [esi + 0x2010], 0
jg 0x40bce0
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
ret
push edi
push str.size
push esi
call fcn.0040ba00
add esp, 0xc
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
ret
test ebx, ebx
jle 0x40bd95
mov eax, dword [esi + 0x2010]
cmp eax, 1
jge 0x40bd72
push str.m_nRecvBufLen
push esi
call fcn.0040ba00
add esp, 8
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
ret
push eax
lea eax, [ebx + esi + 0x1010]
push eax
push ebp
call fcn.00430de0
add esp, 0xc
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
ret
mov dword [esi + 0x2010], 0
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
ret

Function at 0x40e330
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
cmp dword [ecx + 0x1c], 0x10
mov eax, 4
mov dword [esp], 0
mov dword [esp + 8], eax
mov dword [esp + 4], eax
jb 0x40e352
mov eax, dword [ecx + 8]
jmp 0x40e355
lea eax, [ecx + 8]
lea edx, [esp + 0xc]
push edx
lea edx, [esp + 4]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
mov eax, dword [ecx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40e3b7
mov eax, dword [esp + 0x14]
cmp dword [eax + 0x18], 0x10
jb 0x40e389
mov eax, dword [eax + 4]
jmp 0x40e38c
add eax, 4
mov edx, dword [esp + 0x18]
lea ecx, [esp + 4]
push ecx
push edx
mov edx, dword [esp + 8]
lea ecx, [esp + 0x10]
push ecx
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40e3bf
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
add esp, 0x10
ret 8
mov ecx, dword [esp]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
add esp, 0x10
ret 8
Function at 0x40e3e0
Capabilities:
Set registry value

Disassembly:
sub esp, 8
cmp dword [ecx + 0x1c], 0x10
mov dword [esp], 0
jb 0x40e3f5
mov eax, dword [ecx + 8]
jmp 0x40e3f8
lea eax, [ecx + 8]
lea edx, [esp + 4]
push edx
lea edx, [esp + 4]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
mov eax, dword [ecx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x40e425
xor al, al
add esp, 8
ret 8
mov eax, dword [esp + 0xc]
cmp dword [eax + 0x18], 0x10
jb 0x40e434
mov eax, dword [eax + 4]
jmp 0x40e437
add eax, 4
mov edx, dword [esp]
push 4
lea ecx, [esp + 0x14]
push ecx
push 4
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
add esp, 8
ret 8

Function at 0x40e460
Capabilities:
Set registry value

Disassembly:
push ecx
cmp dword [ecx + 0x1c], 0x10
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esi + 0x14]
mov dword [esp + 8], 0
jb 0x40e47d
mov eax, dword [ecx + 8]
jmp 0x40e480
lea eax, [ecx + 8]
lea edx, [esp + 0x14]
push edx
lea edx, [esp + 0xc]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
mov eax, dword [ecx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x40e4ad
pop edi
xor al, al
pop esi
pop ecx
ret 8
cmp dword [esi + 0x18], 0x10
jb 0x40e4b8
mov esi, dword [esi + 4]
jmp 0x40e4bb
add esi, 4
mov eax, dword [esp + 0x10]
cmp dword [eax + 0x18], 0x10
jb 0x40e4ca
mov eax, dword [eax + 4]
jmp 0x40e4cd
add eax, 4
mov ecx, dword [esp + 8]
push edi
push esi
push 1
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov al, 1
pop esi
pop ecx
ret 8

Function at 0x40e670
Capabilities:
Delete registry key

Disassembly:
push 0xffffffffffffffff
push 0x447f00
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x45fce8]
xor eax, esp
mov dword [esp + 0x3c], eax
push ebx
mov eax, dword [0x45fce8]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
xor ebx, ebx
mov eax, 0xf
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x2c], bl
push 0x1d
push str.SOFTWAREWebzenMuConnection
lea ecx, [esp + 0x10]
mov dword [esp + 0x58], ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], ebx
mov byte [esp + 0x14], bl
call fcn.00401380
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x5c], 1
mov dword [esp + 0x30], reloc.OLEAUT32.dll_SysReAllocString
call fcn.004012a0
cmp dword [esp + 0x20], 0x10
jb 0x40e704
mov ecx, dword [esp + 0xc]
push ecx
call fcn.00413b82
add esp, 4
cmp dword [esp + 0x40], 0x10
mov eax, dword [esp + 0x2c]
jae 0x40e713
lea eax, [esp + 0x2c]
mov edx, dword [esp + 0x24]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
cmp dword [esp + 0x40], 0x10
jb 0x40e733
mov eax, dword [esp + 0x2c]
push eax
call fcn.00413b82
add esp, 4
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.0042fc1f
add esp, 0x4c
ret
Function at 0x40f1a0
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x40f1af
xor eax, eax
pop esi
ret 0xc
mov eax, dword [0x45d540]
test eax, eax
je 0x40f1bd
call fcn.0040f140
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
cmp edx, 8
push ebx
not eax
jb 0x40f2bf
push edi
mov edi, edx
shr edi, 3
mov ecx, eax
xor ebx, ebx
mov bl, byte [esi]
and ecx, 0xff
xor ecx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [ecx*4 + 0x48d46c]
sub edx, 8
xor eax, ebx
inc esi
mov ecx, eax
xor ebx, ebx
mov bl, byte [esi]
and ecx, 0xff
xor ecx, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov ecx, dword [ecx*4 + 0x48d46c]
shr eax, 8
xor ecx, eax
inc esi
mov eax, ecx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov eax, dword [eax*4 + 0x48d46c]
shr ecx, 8
xor eax, ecx
inc esi
mov ecx, eax
and ecx, 0xff
xor ecx, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov ecx, dword [ecx*4 + 0x48d46c]
shr eax, 8
xor ecx, eax
inc esi
mov eax, ecx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov eax, dword [eax*4 + 0x48d46c]
shr ecx, 8
xor eax, ecx
inc esi
mov ecx, eax
and ecx, 0xff
xor ecx, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov ecx, dword [ecx*4 + 0x48d46c]
shr eax, 8
xor ecx, eax
inc esi
mov eax, ecx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [esi + 1]
mov eax, dword [eax*4 + 0x48d46c]
shr ecx, 8
xor eax, ecx
inc esi
mov ecx, eax
and ecx, 0xff
xor ecx, ebx
shr eax, 8
mov ecx, dword [ecx*4 + 0x48d46c]
xor eax, ecx
inc esi
dec edi
jne 0x40f1d7
pop edi
test edx, edx
je 0x40f2e1
mov ecx, eax
xor ebx, ebx
mov bl, byte [esi]
and ecx, 0xff
xor ecx, ebx
shr eax, 8
mov ecx, dword [ecx*4 + 0x48d46c]
xor eax, ecx
inc esi
dec edx
jne 0x40f2c3
pop ebx
pop esi
not eax
ret 0xc
Function at 0x41b500
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x41b543
call fcn.00415802
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x41b543
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x41b55e
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0041b0b7
test ebx, ebx
mov esi, eax
je 0x41b55c
test edi, edi
je 0x41b55c
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x41d671
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
push dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jne 0x41d6a4
push dword [ebp + 8]
call edi
push eax
call fcn.0041de54
mov esi, dword [ebp + 0xc]
movzx eax, byte [esi + 0x20]
cmp eax, dword [ebp - 4]
je 0x41d6cf
test byte [ebp - 4], 1
je 0x41d6cf
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x41d6cf
push dword [ebp + 8]
call edi
push eax
call fcn.0041de54
lea eax, [esi + 8]
mov ecx, dword [eax]
or ecx, dword [eax + 4]
je 0x41d77f
lea ecx, [ebp - 0x24]
push ecx
push eax
call fcn.0041d5d6
pop ecx
lea eax, [esi + 0x10]
pop ecx
mov ecx, dword [eax]
or ecx, dword [eax + 4]
je 0x41d705
lea ecx, [ebp - 0x14]
push ecx
push eax
call fcn.0041d5d6
pop ecx
lea eax, [ebp - 0x14]
pop ecx
mov dword [ebp - 8], eax
mov eax, dword [esi]
or eax, dword [esi + 4]
je 0x41d71e
lea eax, [ebp - 0x1c]
push eax
push esi
call fcn.0041d5d6
pop ecx
lea eax, [ebp - 0x1c]
pop ecx
mov dword [ebp - 0xc], eax
push ebx
push 0x80
push 3
push ebx
push 1
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x41d749
push dword [ebp + 8]
call edi
push eax
call fcn.0041de54
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
test eax, eax
jne 0x41d769
push dword [ebp + 8]
call edi
push eax
call fcn.0041de54
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x41d77f
push dword [ebp + 8]
call edi
push eax
call fcn.0041de54
movzx eax, byte [esi + 0x20]
cmp eax, dword [ebp - 4]
je 0x41d7a7
test byte [ebp - 4], 1
jne 0x41d7a7
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x41d7a7
push dword [ebp + 8]
call edi
push eax
call fcn.0041de54
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x41e2b0
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
test eax, eax
mov dword [esi], vtable.CInternetSession.0
jne 0x41e2d9
call fcn.00415802
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
test eax, eax
mov dword [esi + 8], eax
jne 0x41e2fc
push eax
push dword [esi + 4]
call fcn.0041e221
push esi
push eax
mov ecx, 0x48f378
call fcn.0041e009
mov eax, esi
pop esi
pop ebp
ret 0x18

Function at 0x42026f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x4202b5
call fcn.00415802
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4202b5
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x4202f8
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x4202e1
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x4202e1
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x4202f5
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x4231ef
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x42321d
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x42323b
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00423159
jmp 0x42323b
mov eax, dword [esi + 0x14]
test eax, eax
je 0x42323b
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00423159
test edi, edi
mov eax, edi
jne 0x423225
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x48f430]
test ecx, ecx
je 0x4232fe
jmp 0x4231ee
ret 8

Function at 0x42fc1f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x45fce8]
jne 0x42fc29
repz ret
jmp fcn.004393ec
Function at 0x4324ad
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x4324da
call fcn.00432dbd
mov dword [eax], esi
call fcn.00432daa
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0042fd34
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x4324b6
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x432509
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00432dd0
pop ecx
call fcn.00432daa
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x432530
test al, 1
je 0x432530
test byte [esp + 0xc], 2
je 0x432530
call fcn.00432dbd
mov dword [eax], 5
call fcn.00432daa
mov dword [eax], 0xd
jmp 0x432500
xor eax, eax
pop esi
ret
Function at 0x4427e3
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00438e34
xor ebx, ebx
cmp dword [0x490184], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x4428b8
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x442823
xor eax, eax
jmp 0x44297c
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x451f30
push edi
call esi
cmp eax, ebx
je 0x44281c
push eax
call fcn.00438dd1
mov dword [esp], 0x451f20
push edi
mov dword [0x490184], eax
call esi
push eax
call fcn.00438dd1
mov dword [esp], 0x451f0c
push edi
mov dword [0x490188], eax
call esi
push eax
call fcn.00438dd1
mov dword [0x49018c], eax
lea eax, [ebp - 8]
push eax
call fcn.004347ad
test eax, eax
pop ecx
pop ecx
je 0x442886
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0042fc38
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x4428b8
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00438dd1
cmp eax, ebx
pop ecx
mov dword [0x490194], eax
je 0x4428b8
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00438dd1
pop ecx
mov dword [0x490190], eax
mov eax, dword [0x490190]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x442931
cmp dword [0x490194], esi
je 0x442931
push eax
call fcn.00438e3d
pop ecx
call eax
cmp eax, ebx
je 0x4428fe
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x490194]
call fcn.00438e3d
pop ecx
call eax
test eax, eax
je 0x4428fe
test byte [ebp - 0x18], 1
jne 0x442931
lea eax, [ebp - 0xc]
push eax
call fcn.00434820
test eax, eax
pop ecx
je 0x442919
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0042fc38
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x442928
or dword [ebp + 0x10], 0x200000
jmp 0x442962
or dword [ebp + 0x10], 0x40000
jmp 0x442962
mov eax, dword [0x490188]
cmp eax, esi
je 0x442962
push eax
call fcn.00438e3d
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x442962
mov eax, dword [0x49018c]
cmp eax, esi
je 0x442962
push dword [ebp - 4]
push eax
call fcn.00438e3d
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x490184]
call fcn.00438e3d
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x446d18
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x45fce8]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00446cad
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00431410
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x446d67
cmp dword [ebp - 0x1c], 5
jb 0x446d7f
jmp 0x446d7b
cmp dword [ebp - 0x10], 1
jne 0x446d7f
cmp dword [ebp - 0x1c], 4
ja 0x446d7b
jne 0x446d7f
cmp dword [ebp - 0x18], 0
jbe 0x446d7f
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x453114
call fcn.00446b9e
test eax, eax
jge 0x446da0
mov byte [0x4610c4], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0042fc1f
add ebp, 0x78
leave
ret
Function at 0x427186
Capabilities:
Terminate process

Disassembly:
jmp 0x42c6a0
jmp fcn.00430be0
cmp ecx, dword [0x4cede4]
jne 0x42c6aa
repz ret
jmp 0x427578
Function at 0x4134f4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov edx, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
cmp eax, 1
jne 0x41352c
add esp, 0xfffffff4
push dword [edx + 0x4c]
call sym._getc
cmp eax, 0xffffffff
jne 0x413520
xor eax, eax
jmp 0x413538
mov byte [ebx], al
mov eax, 1
jmp 0x413538
push dword [edx + 0x4c]
push eax
push 1
push ebx
call sym._fread
mov ebx, dword [ebp - 0x18]
leave
ret

Function at 0x413540
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push ebx
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
push dword [ebx + 0x4c]
push esi
push 1
push dword [ebp + 0xc]
call sym._fwrite
mov edx, dword [ebx + 0x40]
test edx, edx
jl 0x413568
add edx, esi
mov dword [ebx + 0x40], edx
lea esp, [ebp - 0x18]
pop ebx
pop esi
leave
ret

Function at 0x413638
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov edx, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov eax, dword [edx]
shr eax, 1
xor al, 1
test al, 1
jne 0x413660
push dword [edx + 0x4c]
push ecx
push 1
push ebx
call sym._fwrite
jmp 0x41366b
add esp, 0xfffffffc
push ecx
push ebx
push edx
call sym._xsputn__9streambufPCci
mov ebx, dword [ebp - 0x18]
leave
ret

Function at 0x4161e4
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
add esp, 0xfffffffc
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [eax + 0x38]
call sym._read
leave
ret

Function at 0x41aac0
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x41aae8
mov dword [0x423164], eax
add esp, 0xfffffff8
push sym._eh_context_free
push eax
call sym.___mingwthr_key_dtor
jmp 0x41aaed
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x41ab00
mov dword [sym._eh_context_initialize], 0x41abe0
jmp 0x41ab0a
mov dword [sym._eh_context_initialize], 0x41ab94
leave
ret

Function at 0x41abe0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push ebx
mov ebx, dword [0x423164]
call sub.KERNEL32.dll_GetLastError
mov esi, eax
add esp, 0xfffffff4
push ebx
call sub.KERNEL32.dll_TlsGetValue
mov ebx, eax
push esi
call sub.KERNEL32.dll_SetLastError
add esp, 0xc
test ebx, ebx
jne 0x41ac3f
call sym._new_eh_context
mov ebx, eax
add esp, 0xfffffff8
push ebx
push dword [0x423164]
call sub.KERNEL32.dll_TlsSetValue
add esp, 8
test eax, eax
jne 0x41ac34
call sub.KERNEL32.dll_GetLastError
jmp 0x41ac36
xor eax, eax
test eax, eax
je 0x41ac3f
call sym.___terminate
mov eax, ebx
lea esp, [ebp - 0x18]
pop ebx
pop esi
leave
ret
Function at 0xef71bc
Capabilities:
Encode data using xor

Disassembly:
jmp 0xef71c6
pushal
call 0xef71cc
pop ebp
sub ebp, 0x10
sub ebp, 0xaf71bc
jmp 0xef71e2
mov eax, 0xaf71bc
add eax, ebp
add eax, 0x4c
mov ecx, 0x5d0
mov edx, 0xc963b65c
xor byte [eax], dl
inc eax
dec ecx
jne 0xef71f9
jmp 0xef720c
xlatb
xchg ecx, eax
xlatb
aad 0x60
pop esp
pop esp
pop esp
fstp qword [ebp + 0x5c5c5ca4]
pop edi
xchg ecx, eax
in al, 0x5a
pop esp
pop esp
pop esp
out 0x74, al
pop esp
pop esp
pop esp
stosd dword es:[edi], eax
mov esi, 0xddd7945f
push eax
pop esp
pop esp
pop esp
pop edi
cdq
or al, 0xd1
cmp byte [eax - 0x60], bh
aad 0x58
js 0xef726f
call 0x354beff0
pop ecx
invalid
pop esp
pop esp
popfd
mov ch, 0x5e
insd dword es:[edi], dx
pop esi
fistp word [esi - 0x26aceaa8]
test al, 0xa3
mov dword [0x509e01a3], eax
pop esp
xlatb
sar byte [eax + 0x58], 1
pop esp
pop esp
pop esp
xor al, 0xe8
mov al, 0x7d
pop esp
xor al, 0x59
invalid
Function at 0x408898
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42b7a4], 0
push ebp
mov ebp, esp
push esi
push ebx
mov edx, dword [ebp + 0xc]
je 0x4088b5
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
not eax
add ebx, edx
jmp 0x4088e3
xor ecx, ecx
mov eax, ecx
mov ebx, 8
mov esi, eax
and eax, 1
neg eax
shr esi, 1
and eax, 0xedb88320
xor eax, esi
dec ebx
jne 0x4088be
mov dword [ecx*4 + 0x42b7a0], eax
inc ecx
cmp ecx, 0x100
jne 0x4088b7
jmp 0x4088a9
cmp edx, ebx
je 0x4088fc
inc edx
mov cl, al
shr eax, 8
xor cl, byte [edx - 1]
movzx ecx, cl
xor eax, dword [ecx*4 + 0x42b7a0]
jmp 0x4088e3
pop ebx
not eax
pop esi
pop ebp
ret 0xc

Function at 0x407e15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42e180]
jne 0x407e1f
repz ret
jmp fcn.0040bc0c

Function at 0x40e505
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x40e514
pop dword [ebp - 0x2c]
mov eax, 0x40e514
sub dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], 0x47401979
add dword [ebp - 0x3c], 0x7122bd2
mov dword [ebp - 0x38], 0xa62547ae
add dword [ebp - 0x38], 0x8c0e0497
mov dword [ebp - 0x34], 0xc069423
sub dword [ebp - 0x34], 0xbfba4ff5
mov dword [ebp - 0x30], 0xda530461
sub dword [ebp - 0x30], 0xda530461
lea eax, [ebp - 0x3c]
push eax
mov eax, 0x5292cdd8
sub eax, 0x52509d64
add eax, dword [ebp - 0x2c]
call dword [eax]
mov dword [ebp - 0x3c], 0xb221f467
add dword [ebp - 0x3c], 0xc25074ef
mov dword [ebp - 0x38], 0xe062f743
add dword [ebp - 0x38], 0x61096a32
mov dword [ebp - 0x34], 0xd88dcbc2
sub dword [ebp - 0x34], 0x751e5f56
mov dword [ebp - 0x30], 0xd980dbb3
add dword [ebp - 0x30], 0x267f244d
lea ebx, [ebp - 0x3c]
push ebx
push eax
mov eax, 0x9793e30f
sub eax, 0x9751b1eb
add eax, dword [ebp - 0x2c]
call dword [eax]
push 0x40
push 0x1000
push 0x3f600
push 0
call eax
mov ecx, 0x4e9c
xor edi, edi
add edi, eax
mov esi, 0x434400
add esi, dword [ebp - 0x2c]
mov ebx, 0x88c1e99d
sub ebx, 0x598bfa87
sub dword [ebp - 0x1c], ecx
mov edx, dword [esi]
xor dword [ebp - 0xc], 0x9f621d9b
sub edx, ebx
mov dword [edi], edx
add dword [ebp - 8], 0xc9c48f4c
add edi, 0x5bafa65e
sub edi, 0x5bafa65a
add esi, 4
loop 0x40e627
add eax, 0x9d056638
sub eax, 0x9d0438f5
mov ebx, eax
add eax, 5
mov ecx, 0x8ce930de
add ecx, 0x7356cf22
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret