joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404330
Capabilities:
Create thread
Resume thread
Terminate thread

Disassembly:
call fcn.00403350
test eax, eax
je 0x404344
call fcn.004033e0
or eax, 0xffffffff
ret 0x10
cmp byte [0x4254a8], 0
je 0x40433e
mov eax, dword [esp + 0xc]
push esi
push edi
push 0
push 4
push eax
push 0x403d30
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [esp + 0xc]
mov esi, eax
push 0xffffffffffffffff
push esi
mov dword [0x425488], ecx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x124f80
push esi
call edi
cmp eax, 0x102
jne 0x4043b7
push 0x124f80
push esi
mov byte [0x425490], 1
call edi
cmp eax, 0x102
jne 0x4043b7
push 1
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
call fcn.00403800
pop edi
xor eax, eax
pop esi
ret 0x10

Function at 0x404450
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x1000c
call fcn.00413d30
mov eax, dword [0x423044]
xor eax, esp
mov dword [esp + 0x10008], eax
push ebx
push ebp
mov ebp, dword [esp + 0x10018]
push edi
xor ebx, ebx
push 0xffff
lea eax, [esp + 0x19]
push ebx
mov dword [esp + 0x14], ebx
push eax
mov edi, ecx
mov byte [esp + 0x20], bl
call fcn.0040d460
add esp, 0xc
cmp dword [edi + 0x18], 0x10
mov dword [esp + 0x10], 0x10000
mov dword [esp + 0xc], ebx
jb 0x4044a8
mov edi, dword [edi + 4]
jmp 0x4044ab
add edi, 4
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [ebp]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x14]
push eax
push ebx
push edi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
mov byte [esi + 4], bl
je 0x4044df
push ebx
push 0x420158
jmp 0x4044f7
lea eax, [esp + 0x14]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x4044e6
sub eax, edx
push eax
lea edx, [esp + 0x18]
push edx
mov ecx, esi
call fcn.004022b0
mov ecx, dword [esp + 0x10014]
pop edi
pop ebp
pop ebx
xor ecx, esp
mov eax, esi
call fcn.0040af86
add esp, 0x1000c
ret 4
Function at 0x404600
Capabilities:
Access peb ldr_data
Get kernel32 base address
Initialize winsock library

Disassembly:
push 0xffffffffffffffff
push 0x41ca4a
mov eax, dword fs:[0]
push eax
sub esp, 0x198
mov eax, dword [0x423044]
xor eax, esp
mov dword [esp + 0x194], eax
push ebx
mov eax, dword [0x423044]
xor eax, esp
push eax
lea eax, [esp + 0x1a0]
mov dword fs:[0], eax
mov dword [esi], vtable.UpLiveImpl.0
mov dword [esi + 4], 1
mov eax, dword [0x424614]
mov edx, dword [eax + 0xc]
mov ecx, 0x424614
mov dword [esp + 8], esi
call edx
add eax, 0x10
mov dword [esi + 0x10], eax
xor ebx, ebx
mov dword [esp + 0x1a8], ebx
mov eax, dword [0x424614]
mov edx, dword [eax + 0xc]
mov ecx, 0x424614
call edx
add eax, 0x10
mov dword [esi + 0x14], eax
mov byte [esp + 0x1a8], 1
mov eax, dword [0x424614]
mov edx, dword [eax + 0xc]
mov ecx, 0x424614
call edx
add eax, 0x10
mov dword [esi + 0x18], eax
mov byte [esp + 0x1a8], 2
mov eax, dword [0x424614]
mov edx, dword [eax + 0xc]
mov ecx, 0x424614
call edx
add eax, 0x10
mov dword [esi + 0x1c], eax
mov byte [esp + 0x1a8], 3
mov eax, dword [0x424614]
mov edx, dword [eax + 0xc]
mov ecx, 0x424614
call edx
add eax, 0x10
mov dword [esi + 0x20], eax
mov byte [esp + 0x1a8], 4
mov eax, dword [0x424614]
mov edx, dword [eax + 0xc]
mov ecx, 0x424614
call edx
add eax, 0x10
mov dword [esi + 0x24], eax
mov byte [esp + 0x1a8], 5
mov eax, dword [0x424614]
mov edx, dword [eax + 0xc]
mov ecx, 0x424614
call edx
add eax, 0x10
mov dword [esi + 0x28], eax
mov byte [esp + 0x1a8], 6
mov eax, dword [0x424614]
mov edx, dword [eax + 0xc]
mov ecx, 0x424614
call edx
add eax, 0x10
mov dword [esi + 0x2c], eax
mov byte [esp + 0x1a8], 7
mov eax, dword [0x424614]
mov edx, dword [eax + 0xc]
mov ecx, 0x424614
call edx
add eax, 0x10
mov dword [esi + 0x30], eax
mov byte [esp + 0x1a8], 8
call fcn.00409f20
mov dword [esi + 0x38], eax
mov byte [eax + 0x21], 1
mov eax, dword [esi + 0x38]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x38]
mov dword [eax], eax
mov eax, dword [esi + 0x38]
mov dword [eax + 8], eax
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x4c], ebx
lea eax, [esp + 0xc]
push eax
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x5c], ebx
push 0x202
mov byte [esi + 0x60], bl
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov eax, esi
mov ecx, dword [esp + 0x1a0]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.0040af86
add esp, 0x1a4
ret
Function at 0x406980
Capabilities:
Check if file exists
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x41c700
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebp
push esi
push edi
mov eax, dword [0x423044]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
lea eax, [esp + 0x10]
push eax
call fcn.00408510
mov dword [esp + 0x20], 0
mov edx, dword [0x424614]
mov eax, dword [edx + 0xc]
mov ecx, 0x424614
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x20], 1
mov eax, dword [esp + 0x10]
mov esi, dword [eax - 0xc]
xor edi, edi
test esi, esi
jle 0x406abd
mov ebp, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
jmp 0x4069f0
test edi, edi
jl 0x406b1d
cmp edi, esi
jg 0x406b1d
cmp byte [edi + eax], 0x5c
jne 0x406aaf
cmp edi, esi
jge 0x406b1d
cmp dword [eax - 4], 1
jle 0x406a2a
mov ecx, dword [eax - 0xc]
push ecx
lea edx, [esp + 0x14]
push edx
call fcn.00409560
mov eax, dword [esp + 0x10]
test esi, esi
mov byte [edi + eax], 0
jl 0x406b1d
mov eax, dword [esp + 0x10]
cmp esi, dword [eax - 8]
jg 0x406b1d
mov dword [eax - 0xc], esi
mov eax, dword [esp + 0x10]
mov byte [esi + eax], 0
mov ecx, dword [esp + 0x10]
push ecx
call ebp
test eax, eax
jne 0x406a65
mov edx, dword [esp + 0x10]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov eax, dword [esp + 0x10]
mov esi, dword [eax - 0xc]
cmp edi, esi
jge 0x406b1d
cmp dword [eax - 4], 1
jle 0x406a8b
mov eax, esi
push eax
lea ecx, [esp + 0x14]
push ecx
call fcn.00409560
mov eax, dword [esp + 0x10]
test esi, esi
mov byte [edi + eax], 0x5c
jl 0x406b1d
mov eax, dword [esp + 0x10]
cmp esi, dword [eax - 8]
jg 0x406b1d
mov dword [eax - 0xc], esi
mov edx, dword [esp + 0x10]
mov byte [esi + edx], 0
mov eax, dword [esp + 0x10]
mov esi, dword [eax - 0xc]
add edi, 1
cmp edi, esi
jl 0x4069f0
mov byte [esp + 0x20], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406ae2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x20], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x406b0a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x14
ret
push 0x80070057
call fcn.004045b0
int3
Function at 0x406e20
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x51c
mov eax, dword [0x423044]
xor eax, esp
mov dword [esp + 0x518], eax
mov eax, dword [esp + 0x520]
push ebp
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push connect
push eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x2c], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x406fbb
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea edx, [esp + 0x14]
push edx
push 0x40
lea eax, [esp + 0x24]
push eax
push esi
call edi
test eax, eax
je 0x406fb4
cmp dword [esp + 0x10], 0x40
jne 0x406fb4
cmp word [esp + 0x18], 0x5a4d
jne 0x406fb4
mov ecx, dword [esp + 0x54]
mov ebp, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push ecx
push esi
call ebp
push 0
lea edx, [esp + 0x14]
push edx
push 0xc4
lea eax, [esp + 0x64]
push eax
push esi
call edi
test eax, eax
je 0x406fb4
cmp dword [esp + 0x10], 0xc4
jne 0x406fb4
cmp word [esp + 0x58], 0x454c
jne 0x406fb4
push 0x3ff
lea ecx, [esp + 0x125]
push 0
push ecx
mov byte [esp + 0x12c], 0
call fcn.0040d460
mov edx, dword [esp + 0x11c]
add esp, 0xc
push 0
push 0
push edx
push esi
call ebp
push 0
lea eax, [esp + 0x14]
push eax
push 0x400
lea ecx, [esp + 0x12c]
push ecx
push esi
call edi
test eax, eax
je 0x406fb4
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x114]
jne 0x406fb4
xor esi, esi
test eax, eax
jbe 0x406fbb
lea ebx, [ebx]
lea edx, [esp + esi + 0x120]
push str.FILEVERSION
push edx
call fcn.0040d087
add esp, 8
test eax, eax
je 0x406f74
add esi, 1
cmp esi, dword [esp + 0x10]
jb 0x406f50
jmp 0x406fbb
cmp byte [esp + esi + 0x12b], 0
lea ecx, [esp + esi + 0x12b]
jne 0x406f8d
add ecx, 1
cmp byte [ecx], 0
je 0x406f85
mov eax, dword [esp + 0x14]
push eax
call fcn.00407020
add esp, 4
mov al, 1
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x518]
xor ecx, esp
call fcn.0040af86
add esp, 0x51c
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x524]
pop edi
pop esi
pop ebp
xor ecx, esp
xor al, al
call fcn.0040af86
add esp, 0x51c
ret

Function at 0x406fe0
Capabilities:
Get file size

Disassembly:
push esi
push edi
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push connect
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x407013
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
ret
Function at 0x4075b0
Capabilities:
Access peb ldr_data
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x41c690
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x423044]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [0x424614]
mov edx, dword [eax + 0xc]
xor ebx, ebx
mov ecx, 0x424614
mov dword [esp + 0x24], ebx
call edx
lea ebp, [eax + 0x10]
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x30], ebx
mov eax, dword [0x424614]
mov edx, dword [eax + 0xc]
mov ecx, 0x424614
call edx
lea esi, [eax + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0x38]
mov byte [esp + 0x30], 1
mov eax, dword [eax + 0x28]
push eax
push ebx
push str.Count
push str.MainFileList
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
cmp eax, ebx
mov dword [esp + 0x20], eax
jbe 0x407722
jmp 0x407640
push ebx
push str.File
push str._s_d
lea edi, [esp + 0x28]
call fcn.00409fe0
mov ecx, dword [esp + 0x44]
mov edi, dword [ecx + 0x28]
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0x104
add esp, 0xc
or eax, ecx
jge 0x407684
mov ecx, 0x104
lea eax, [esp + 0x18]
call fcn.004095e0
mov esi, dword [esp + 0x18]
mov ebp, dword [esp + 0x1c]
push edi
push 0x104
push esi
push 0x420158
push ebp
push str.MainFileList
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test esi, esi
jne 0x4076a8
xor ecx, ecx
jmp 0x4076c1
mov ecx, esi
lea edi, [ecx + 1]
lea ecx, [ecx]
mov dl, byte [ecx]
add ecx, 1
test dl, dl
jne 0x4076b0
sub ecx, edi
js 0x407781
cmp ecx, dword [esi - 8]
jg 0x407781
cmp eax, 0x104
mov dword [esi - 0xc], ecx
mov byte [ecx + esi], 0
jae 0x407722
mov edi, dword [esp + 0x3c]
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
je 0x407722
push eax
push esi
call fcn.0040c9f9
add esp, 8
test eax, eax
je 0x407701
add ebx, 1
cmp ebx, dword [esp + 0x20]
jb 0x407640
jmp 0x407722
mov dword [esp + 0x14], ebx
lea eax, [esp + 0x18]
mov ebx, edi
call fcn.004085e0
mov edx, dword [esp + 0x20]
cmp dword [esp + 0x14], edx
jae 0x407722
mov dword [esp + 0x24], 1
lea eax, [esi - 0x10]
mov byte [esp + 0x30], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407743
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov dword [esp + 0x30], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407767
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 8
push 0x80070057
call fcn.004045b0
int3
Function at 0x407790
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, dword [esp + 8]
xor eax, eax
test ebp, ebp
je 0x40785a
test ebx, ebx
je 0x40785a
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 0x20
add esi, 0x104
push esi
push 0x4205a4
push str.Size
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov edi, 0x4205a4
mov ecx, 2
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x407856
mov esi, dword [esp + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push ebp
push 0x20
lea ecx, [esi + 0x138]
push ecx
push 0x4205a4
push str.Version
push ebx
call edi
push ebp
push 0x14
lea edx, [esi + 0x124]
push edx
push 0x4205a4
push 0x420438
push ebx
call edi
push ebp
push 0x104
lea eax, [esi + 0x158]
push eax
push 0x420158
push str.Path
push ebx
call edi
mov eax, ebx
lea edi, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x407830
sub eax, edi
push eax
push ebx
push 0x104
push esi
call fcn.0040ac5e
add esp, 0x10
pop edi
pop esi
mov eax, 1
pop ebp
ret 8
pop edi
xor eax, eax
pop esi
pop ebp
ret 8
Function at 0x407fc0
Capabilities:
Copy file
Get common file path

Disassembly:
sub esp, 0x108
mov eax, dword [0x423044]
xor eax, esp
mov dword [esp + 0x104], eax
push 0x104
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str.drivers_
lea ecx, [esp + 4]
push 4
push ecx
call fcn.0040adff
push 0x5c
push esi
call fcn.0040bc20
add esp, 0x14
test eax, eax
je 0x408028
add eax, 1
push eax
lea edx, [esp + 4]
push 0x104
push edx
call fcn.0040adff
add esp, 0xc
push 0
lea eax, [esp + 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0040af86
add esp, 0x108
ret
Function at 0x408040
Capabilities:
Access peb ldr_data
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x41c660
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x423044]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov eax, dword [0x424614]
mov edx, dword [eax + 0xc]
mov ecx, 0x424614
call edx
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
mov ebp, dword [esp + 0x30]
add ebp, 0x40
mov dword [esp + 0x28], 0
mov edi, dword [ebp + 4]
cmp edi, dword [ebp + 8]
jbe 0x408099
call fcn.0040ccd6
mov ebx, edi
jmp 0x4080a0
mov edi, dword [ebp + 8]
cmp dword [ebp + 4], edi
jbe 0x4080ad
call fcn.0040ccd6
cmp ebp, ebp
je 0x4080b6
call fcn.0040ccd6
cmp ebx, edi
je 0x4081cd
cmp ebx, dword [ebp + 8]
jb 0x4080c8
call fcn.0040ccd6
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x18]
push ebx
add ecx, 0x1c
push eax
call fcn.00408720
add esp, 8
mov byte [esp + 0x28], 1
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
lea edi, [esi - 0x10]
cmp eax, edi
je 0x408134
cmp dword [edi + 0xc], 0
lea esi, [edi + 0xc]
jl 0x408123
mov edx, dword [eax]
cmp edx, dword [edi]
jne 0x408123
call fcn.00409630
mov ebp, eax
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
test eax, eax
jg 0x40811a
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
lea esi, [ebp + 0x10]
mov dword [esp + 0x14], esi
jmp 0x408134
mov edi, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x18]
call fcn.004094d0
mov esi, dword [esp + 0x14]
mov byte [esp + 0x28], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x408159
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x4081b1
mov eax, 3
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x14]
call fcn.00408640
mov eax, dword [eax]
push 0x4206e0
push eax
call fcn.0040d087
mov edi, eax
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
add esp, 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4081a8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test edi, edi
jne 0x4081b1
call fcn.00407fc0
mov ebp, dword [esp + 0x30]
add ebp, 0x40
cmp ebx, dword [ebp + 8]
jb 0x4081c2
call fcn.0040ccd6
add ebx, 0x25c
jmp 0x4080a0
lea eax, [esi - 0x10]
mov dword [esp + 0x28], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4081f1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 4
Function at 0x40a2a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40a2b7
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40a2e8
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x40a2e4
cmp esi, eax
jae 0x40a2e8
sub edi, 1
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x40a2d4
cmp esi, eax
jb 0x40a2ee
pop esi
pop edi
xor eax, eax
pop ebp
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret

Function at 0x40a7de
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x423044]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0040a71d
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.0040d460
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 0x40a82d
cmp dword [ebp - 0x1c], 5
jb 0x40a845
jmp 0x40a841
cmp dword [ebp - 0x10], 1
jne 0x40a845
cmp dword [ebp - 0x1c], 4
ja 0x40a841
jne 0x40a845
cmp dword [ebp - 0x18], 0
jbe 0x40a845
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x41e2ec
call fcn.0040a5b3
test eax, eax
jge 0x40a866
mov byte [0x4254ac], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040af86
add ebp, 0x78
leave
ret

Function at 0x40af86
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x423044]
jne 0x40af90
repz ret
jmp fcn.0040dc64
Function at 0x40b962
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x40b99f
cmp dword [ebp + 0x14], edi
je 0x40b99f
cmp ecx, edi
jne 0x40b9a6
call fcn.0040dc20
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0040ccb2
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x40b9ba
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x40b9db
cmp ebx, 0xffffffff
je 0x40b9ca
push ebx
push edi
push ecx
call fcn.0040d460
add esp, 0xc
cmp esi, edi
je 0x40b987
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x40b987
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x40b9f7
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x40b9fe
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x40baef
test word [esi + 0xc], 0x10c
je 0x40ba52
mov eax, dword [esi + 4]
test eax, eax
je 0x40ba52
jl 0x40bb50
cmp ebx, eax
mov edi, ebx
jb 0x40ba23
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x40baf7
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0040b073
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x40bae7
cmp ebx, dword [ebp - 0xc]
jb 0x40babf
cmp dword [ebp - 0xc], 0
je 0x40ba7c
mov ecx, closesocket
xor edx, edx
cmp ebx, ecx
jbe 0x40ba71
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x40ba78
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x40ba87
mov eax, closesocket
cmp ebx, eax
ja 0x40ba87
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x40bb23
push eax
push dword [ebp - 8]
push esi
call fcn.0040fb2e
pop ecx
push eax
call fcn.00410f57
add esp, 0xc
test eax, eax
je 0x40bb62
cmp eax, 0xffffffff
je 0x40bb50
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x40bae7
push esi
call fcn.00410876
cmp eax, 0xffffffff
pop ecx
je 0x40bb54
cmp dword [ebp - 4], 0
je 0x40bb23
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x40ba06
mov eax, dword [ebp + 0x14]
jmp 0x40b9a1
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x40bb0e
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.0040d460
add esp, 0xc
call fcn.0040dc20
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x40b997
cmp dword [ebp + 0xc], 0xffffffff
je 0x40bb39
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.0040d460
add esp, 0xc
call fcn.0040dc20
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x40b997
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x40b9a1
or dword [esi + 0xc], 0x10
jmp 0x40bb54