joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40a910
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x18]
call fcn.00408070
mov ecx, dword [ebp - 0x18]
call fcn.0040a470
push 2
push 0
mov eax, dword [ebp + 8]
push eax
call fcn.00459d04
add esp, 0xc
mov ecx, dword [ebp + 8]
push ecx
call fcn.00459c0c
add esp, 4
mov dword [ebp - 0xc], eax
push 0
push 0
mov edx, dword [ebp + 8]
push edx
call fcn.00459d04
add esp, 0xc
cmp dword [ebp - 0xc], 0
jne 0x40a969
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x30]
jmp 0x40aa6b
mov ecx, dword [ebp - 0xc]
add ecx, 1
push ecx
call fcn.00457ed0
add esp, 4
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
mov dword [edx + 0x40], eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
push edx
push 1
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x40]
push ecx
call fcn.00459a52
add esp, 0x10
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
cmp edx, dword [ebp - 0xc]
je 0x40a9c1
push 0
push 0
push 5
mov ecx, dword [ebp - 0x18]
call fcn.0040ada0
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x30]
jmp 0x40aa6b
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x40]
mov eax, dword [ebp - 0xc]
mov byte [edx + eax], 0
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx + 0x40]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
movsx edx, byte [ecx]
and edx, 0x80
jne 0x40aa09
mov eax, dword [ebp - 0x14]
movzx ecx, byte [eax]
push ecx
call fcn.004592df
add esp, 4
test eax, eax
je 0x40aa09
mov edx, dword [ebp - 0x14]
add edx, 1
mov dword [ebp - 0x14], edx
jmp 0x40a9dd
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0x18]
add edx, 0x2c
mov ecx, dword [ebp - 4]
call fcn.00407060
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40aa30
mov ecx, dword [ebp - 4]
movsx edx, byte [ecx]
test edx, edx
jne 0x40aa46
push 0
push 0
push 0xf
mov ecx, dword [ebp - 0x18]
call fcn.0040ada0
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x30]
jmp 0x40aa6b
push 0
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 4]
sub edx, dword [ecx + 0x40]
mov eax, dword [ebp - 0x18]
add edx, dword [eax + 0x40]
push edx
mov ecx, dword [ebp - 0x18]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x18]
mov eax, dword [edx + 0x3c]
call eax
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx + 0x30]
mov esp, ebp
pop ebp
ret 4
Function at 0x40e130
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40e163
jmp 0x40e218
mov edx, dword [ebp - 8]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x40e191
jmp 0x40e218
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x40e1a8
jmp 0x40e218
mov edx, dword [ebp - 0x14]
push edx
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40e1c1
jmp 0x40e218
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40e1d8
jmp 0x40e20e
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x10]
push eax
call fcn.00458be0
add esp, 0xc
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea edx, [ebp - 0xc]
push edx
push 1
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jl 0x40e20e
jmp 0x40e218
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 8

Function at 0x40fd30
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov dword [ebp - 0x8c], ecx
mov eax, dword [ebp + 8]
add eax, 0x240
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ecx + 0x10]
sub eax, dword [edx + 0xc]
cdq
mov ecx, 0x1c
idiv ecx
neg eax
sbb eax, eax
add eax, 1
movzx edx, al
test edx, edx
jne 0x40fd9b
push 0
push 0
mov eax, dword [ebp + 8]
push eax
push 0x40fe30
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40fd9b
lea ecx, [ebp - 4]
push ecx
mov ecx, dword [ebp - 0x8c]
call fcn.00453b50
mov esp, ebp
pop ebp
ret 4
Function at 0x410320
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 0x30], ecx
mov byte [ebp - 1], 0
mov eax, dword [ebp + 0x10]
xor ecx, ecx
cmp dword [eax + 0x14], 0
sete cl
movzx edx, cl
xor eax, eax
cmp dword [ebp + 0x14], 0
sete al
cmp edx, eax
jne 0x410441
lea ecx, [ebp - 0xc]
push ecx
push 0
lea edx, [ebp - 8]
push edx
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x410441
mov edx, dword [ebp - 0x30]
xor eax, eax
cmp dword [edx + 0x78], 0
sete al
movzx ecx, al
test ecx, ecx
je 0x41038b
mov byte [ebp - 1], 1
jmp 0x410441
cmp dword [ebp - 0xc], 0
jbe 0x410441
mov edx, dword [ebp - 0xc]
add edx, 2
push edx
call fcn.00457ed0
add esp, 4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x410441
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41042f
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0xc]
mov byte [eax], 0
mov ecx, dword [ebp - 0x10]
add ecx, dword [ebp - 0xc]
mov byte [ecx + 1], 0
mov edx, dword [ebp - 0x30]
add edx, 0x64
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x18], 8
jb 0x410407
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x34], edx
jmp 0x410410
mov eax, dword [ebp - 0x1c]
add eax, 4
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov ecx, dword [ebp - 0x30]
call fcn.00410450
mov byte [ebp - 1], al
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.00458b3a
add esp, 4
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4107b0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x485c44]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x12c], ecx
mov dword [ebp - 0x120], 0
push 0x110
push 0
lea eax, [ebp - 0x11c]
push eax
call fcn.0045a140
add esp, 0xc
mov dword [ebp - 0x120], 0x114
lea ecx, [ebp - 0x120]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4108d6
mov edx, dword [ebp - 0x12c]
add edx, 0x10
mov dword [ebp - 0x124], edx
mov eax, dword [ebp - 0x124]
cmp dword [eax + 0x18], 8
jb 0x410834
mov ecx, dword [ebp - 0x124]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x130], edx
jmp 0x410843
mov eax, dword [ebp - 0x124]
add eax, 4
mov dword [ebp - 0x130], eax
push 0x477100
mov ecx, dword [ebp - 0x130]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x410869
xor eax, eax
cmp dword [ebp - 0x11c], 5
sete al
jmp 0x4108d8
mov edx, dword [ebp - 0x12c]
add edx, 0x10
mov dword [ebp - 0x128], edx
mov eax, dword [ebp - 0x128]
cmp dword [eax + 0x18], 8
jb 0x410895
mov ecx, dword [ebp - 0x128]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x134], edx
jmp 0x4108a4
mov eax, dword [ebp - 0x128]
add eax, 4
mov dword [ebp - 0x134], eax
push 0x4770f8
mov ecx, dword [ebp - 0x134]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4108d2
xor edx, edx
cmp dword [ebp - 0x11c], 5
sete dl
movzx eax, dl
neg eax
sbb eax, eax
add eax, 1
jmp 0x4108d8
mov al, 1
jmp 0x4108d8
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00458357
mov esp, ebp
pop ebp
ret
Function at 0x4108f0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp - 0x18]
xor ecx, ecx
cmp dword [eax + 0x5c], 0
sete cl
movzx edx, cl
test edx, edx
jne 0x410a39
mov eax, dword [ebp - 0x18]
add eax, 0x2c
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp dword [ecx + 0x18], 8
jb 0x41092d
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
mov dword [ebp - 0x1c], eax
jmp 0x410936
mov ecx, dword [ebp - 4]
add ecx, 4
mov dword [ebp - 0x1c], ecx
push 0x477118
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4109c8
mov eax, dword [ebp - 0x18]
add eax, 0x48
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0x18], 8
jb 0x410966
mov edx, dword [ebp - 8]
mov eax, dword [edx + 4]
mov dword [ebp - 0x20], eax
jmp 0x41096f
mov ecx, dword [ebp - 8]
add ecx, 4
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4109ba
mov eax, dword [ebp - 0x18]
add eax, 0x48
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
cmp dword [ecx + 0x18], 8
jb 0x41099a
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 4]
mov dword [ebp - 0x24], eax
jmp 0x4109a3
mov ecx, dword [ebp - 0xc]
add ecx, 4
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x4109ba
mov dword [ebp - 0x28], 1
jmp 0x4109c1
mov dword [ebp - 0x28], 0
mov al, byte [ebp - 0x28]
jmp 0x410a3b
mov eax, dword [ebp - 0x18]
add eax, 0x2c
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 0x18], 8
jb 0x4109e5
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 4]
mov dword [ebp - 0x2c], eax
jmp 0x4109ee
mov ecx, dword [ebp - 0x10]
add ecx, 4
mov dword [ebp - 0x2c], ecx
push str.folder
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x410a39
mov eax, dword [ebp - 0x18]
add eax, 0x48
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
cmp dword [ecx + 0x18], 8
jb 0x410a1e
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 4]
mov dword [ebp - 0x30], eax
jmp 0x410a27
mov ecx, dword [ebp - 0x14]
add ecx, 4
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
neg eax
sbb eax, eax
neg eax
jmp 0x410a3b
xor al, al
mov esp, ebp
pop ebp
ret
Function at 0x410ec0
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], ecx
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x24]
mov edx, dword [eax + 0x10]
sub edx, dword [ecx + 0xc]
jne 0x410edf
jmp 0x410fc7
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x24]
mov edx, dword [eax + 0x10]
sub edx, dword [ecx + 0xc]
neg edx
sbb edx, edx
add edx, 1
movzx eax, dl
test eax, eax
jne 0x410fc7
push 0
push 0x80
push 3
push 0
push 1
push 0xc0000000
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x410fc7
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
call fcn.00457ed0
add esp, 4
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 0
je 0x410fbd
push 0
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x410fab
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x10]
jne 0x410fab
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
call fcn.004110d0
push 0
push 0
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x1c]
push edx
call fcn.00458b3a
add esp, 4
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret
Function at 0x4110d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x34], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov edx, dword [eax + 0x10]
sub edx, dword [ecx + 0xc]
neg edx
sbb edx, edx
add edx, 1
movzx eax, dl
test eax, eax
jne 0x41121e
lea ecx, [ebp - 8]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00412600
mov dword [ebp - 0xc], 0
jmp 0x411120
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
lea ecx, [ebp - 8]
call fcn.00412660
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x38]
jge 0x41121e
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x10]
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x14], 0
cmp dword [ebp + 8], 0
je 0x411158
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
cmp ecx, dword [ebp - 0x28]
ja 0x411158
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x28]
cmp eax, dword [edx + 0x10]
jbe 0x41115d
call fcn.004584c3
xor ecx, ecx
jne 0x41115d
mov edx, dword [ebp + 8]
mov eax, dword [edx]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x10], ecx
xor edx, edx
cmp dword [ebp - 8], 0
setne dl
movzx eax, dl
test eax, eax
je 0x411191
mov ecx, dword [ebp - 8]
xor edx, edx
cmp ecx, dword [ebp - 0x14]
sete dl
movzx eax, dl
test eax, eax
jne 0x411196
call fcn.004584c3
xor ecx, ecx
jne 0x411196
mov edx, dword [ebp - 4]
xor eax, eax
cmp edx, dword [ebp - 0x10]
sete al
movzx ecx, al
test ecx, ecx
je 0x4111fb
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x1c], 0
cmp dword [ebp + 8], 0
je 0x4111d8
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
cmp edx, dword [ebp - 0x2c]
ja 0x4111d8
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x2c]
cmp ecx, dword [eax + 0x10]
jbe 0x4111dd
call fcn.004584c3
xor edx, edx
jne 0x4111dd
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 8], eax
mov dword [ebp - 4], ecx
lea ecx, [ebp - 8]
call fcn.004344d0
movzx edx, byte [eax]
mov eax, dword [ebp - 0x34]
add eax, dword [ebp - 0xc]
movzx ecx, byte [eax]
xor ecx, edx
mov edx, dword [ebp - 0x34]
add edx, dword [ebp - 0xc]
mov byte [edx], cl
jmp 0x41110f
mov esp, ebp
pop ebp
ret 4

Function at 0x4113c0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x485c44]
xor eax, ebp
mov dword [ebp - 4], eax
movzx eax, byte [0x4854fe]
test eax, eax
je 0x411423
push 0x114
push 0
lea ecx, [ebp - 0x120]
push ecx
call fcn.0045a140
add esp, 0xc
mov dword [ebp - 0x120], 0x114
lea edx, [ebp - 0x120]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x11c], 6
sbb eax, eax
add eax, 1
mov byte [0x486fc0], al
mov byte [0x4854fe], 0
mov al, byte [0x486fc0]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00458357
mov esp, ebp
pop ebp
ret
Function at 0x411b20
Capabilities:
Parse credit card information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 0
jmp 0x411b3b
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x14]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jae 0x411c40
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
cmp edx, dword [ecx + 0x14]
jbe 0x411b60
call fcn.004584c3
xor eax, eax
jne 0x411b60
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 0x18], 8
jb 0x411b78
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 4]
mov dword [ebp - 0x14], eax
jmp 0x411b81
mov ecx, dword [ebp - 0x10]
add ecx, 4
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
mov cx, word [eax + edx*2]
mov word [ebp - 8], cx
movzx edx, word [ebp - 8]
cmp edx, 0x5c
je 0x411bfb
movzx eax, word [ebp - 8]
cmp eax, 0x2f
je 0x411bfb
movzx ecx, word [ebp - 8]
cmp ecx, 0x3a
je 0x411bfb
movzx edx, word [ebp - 8]
cmp edx, 0x2a
je 0x411bfb
movzx eax, word [ebp - 8]
cmp eax, 0x3f
je 0x411bfb
movzx ecx, word [ebp - 8]
cmp ecx, 0x22
je 0x411bfb
movzx edx, word [ebp - 8]
cmp edx, 0x27
je 0x411bfb
movzx eax, word [ebp - 8]
cmp eax, 0x3c
je 0x411bfb
movzx ecx, word [ebp - 8]
cmp ecx, 0x3e
je 0x411bfb
movzx edx, word [ebp - 8]
cmp edx, 0x7c
je 0x411bfb
movzx eax, word [ebp - 8]
cmp eax, 0x25
je 0x411bfb
movzx ecx, word [ebp - 8]
cmp ecx, 0x3d
jne 0x411c3b
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
cmp eax, dword [edx + 0x14]
jbe 0x411c0b
call fcn.004584c3
xor ecx, ecx
jne 0x411c0b
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0x18], 8
jb 0x411c23
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x18], ecx
jmp 0x411c2c
mov edx, dword [ebp - 0x10]
add edx, 4
mov dword [ebp - 0x18], edx
mov eax, 0x5f
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x18]
mov word [edx + ecx*2], ax
jmp 0x411b32
mov esp, ebp
pop ebp
ret
Function at 0x411d50
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x640
mov eax, dword [0x485c44]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x63c], ecx
mov eax, dword [ebp - 0x63c]
mov dword [eax + 0x10], 0
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 8], 0x30b
mov ecx, dword [ebp - 8]
push ecx
lea edx, [ebp - 0x628]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x411da0
jmp 0x411f4d
xor eax, eax
mov ecx, dword [ebp - 8]
mov word [ebp + ecx*2 - 0x628], ax
push 0
push 0
push 3
push 0
push 1
push 0x80000000
lea edx, [ebp - 0x628]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x411f4d
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x62c], eax
mov ecx, dword [ebp - 0x63c]
mov edx, dword [ecx + 4]
cmp edx, dword [ebp - 0x62c]
jle 0x411e08
mov eax, dword [ebp - 0x63c]
mov ecx, dword [ebp - 0x62c]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 0x63c]
mov eax, dword [edx + 8]
cmp eax, dword [ebp - 0x62c]
jle 0x411e28
mov ecx, dword [ebp - 0x63c]
mov edx, dword [ebp - 0x62c]
mov dword [ecx + 8], edx
mov eax, dword [ebp - 0x63c]
movzx ecx, byte [eax]
neg ecx
sbb ecx, ecx
and ecx, 0xfffffffe
add ecx, 2
push ecx
push 0
mov edx, dword [ebp - 0x63c]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x411f4d
mov edx, dword [ebp - 0x63c]
movzx eax, byte [edx + 0xc]
test eax, eax
je 0x411e7d
mov ecx, dword [ebp - 0x63c]
mov edx, dword [ecx + 4]
add edx, 1
mov dword [ebp - 0x640], edx
jmp 0x411e8c
mov eax, dword [ebp - 0x63c]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x640], ecx
mov edx, dword [ebp - 0x640]
push edx
call fcn.00457ed0
add esp, 4
mov dword [ebp - 0x634], eax
mov eax, dword [ebp - 0x63c]
mov ecx, dword [ebp - 0x634]
mov dword [eax + 0x10], ecx
mov edx, dword [ebp - 0x63c]
cmp dword [edx + 0x10], 0
je 0x411f4d
push 0
lea eax, [ebp - 0x630]
push eax
mov ecx, dword [ebp - 0x63c]
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ebp - 0x63c]
mov ecx, dword [eax + 0x10]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x411efc
mov eax, dword [ebp - 0x63c]
mov ecx, dword [ebp - 0x630]
cmp ecx, dword [eax + 4]
je 0x411f22
mov edx, dword [ebp - 0x63c]
movzx eax, byte [edx + 0xc]
test eax, eax
je 0x411f20
mov ecx, dword [ebp - 0x63c]
mov edx, dword [ecx + 0x10]
mov eax, dword [ebp - 0x63c]
mov ecx, dword [eax + 4]
mov byte [edx + ecx], 0
jmp 0x411f4d
mov edx, dword [ebp - 0x63c]
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x638], eax
mov ecx, dword [ebp - 0x638]
push ecx
call fcn.00458b3a
add esp, 4
mov edx, dword [ebp - 0x63c]
mov dword [edx + 0x10], 0
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00458357
mov esp, ebp
pop ebp
ret
Function at 0x411f60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp + 8]
mov byte [eax + 8], 0
mov ecx, dword [ebp + 8]
mov byte [ecx], 0
lea edx, [ebp - 4]
push edx
push 0x101
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41201e
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x10]
push edx
push 0
push str.MaxConnectionsPer1_0Server
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x411fd6
cmp dword [ebp - 0x10], 4
jne 0x411fd6
mov ecx, dword [ebp + 8]
mov byte [ecx], 1
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 8]
mov dword [edx + 4], eax
mov dword [ebp - 0xc], 4
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0x10]
push eax
push 0
push str.MaxConnectionsPerServer
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x412014
cmp dword [ebp - 0x10], 4
jne 0x412014
mov edx, dword [ebp + 8]
mov byte [edx + 8], 1
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
mov dword [eax + 0xc], ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret 4

Function at 0x412030
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
lea eax, [ebp - 4]
push eax
push 0x102
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4120d1
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx]
test edx, edx
je 0x412080
push 4
mov eax, dword [ebp + 8]
add eax, 4
push eax
push 4
push 0
push str.MaxConnectionsPer1_0Server
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x41208f
push str.MaxConnectionsPer1_0Server
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + 8]
test ecx, ecx
je 0x4120b8
push 4
mov edx, dword [ebp + 8]
add edx, 0xc
push edx
push 4
push 0
push str.MaxConnectionsPerServer
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x4120c7
push str.MaxConnectionsPerServer
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret 4
Function at 0x4120e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
lea eax, [ebp - 4]
push eax
push 0x102
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x41214a
mov ecx, dword [ebp + 8]
mov dword [ebp - 8], ecx
push 4
lea edx, [ebp - 8]
push edx
push 4
push 0
push str.MaxConnectionsPer1_0Server
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
lea ecx, [ebp - 8]
push ecx
push 4
push 0
push str.MaxConnectionsPerServer
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret 4