joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4745f1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
test esi, esi
jne 0x47460a
call fcn.0045ab94
mov esi, dword [eax + 0xc]
push 0x5bd544
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
mov ebx, eax
test ebx, ebx
je 0x474660
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov edi, eax
test edi, edi
je 0x47465f
push edi
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov dword [ebp - 4], eax
test eax, eax
jne 0x474640
xor esi, esi
jmp 0x474656
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov ecx, dword [ebp - 8]
push eax
push dword [ebp - 4]
call fcn.00474668
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.DLL_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4f952d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov dword [ebp - 4], ebx
test byte [esi + 4], 1
je 0x4f9547
mov edi, dword [esi + 0xc]
jmp 0x4f9587
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4f9560
call fcn.0044ec72
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov edi, eax
test edi, edi
jne 0x4f9575
call fcn.0044ec72
push edi
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov edi, eax
test edi, edi
jne 0x4f9587
call fcn.0044ec72
call fcn.0045ab94
cmp dword [eax + 0x3c], 0
je 0x4f959c
push edi
mov ecx, ebx
call fcn.004f8bc1
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004f9779
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x4f95c5
push ecx
call dword [sym.imp.KERNEL32.DLL_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x4f95d1
mov edi, ebx
mov dword [eax + 0x88], ebx
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x548ab4
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.00579781
call fcn.0045abe8
cmp dword [eax + 0x14], 0
jne 0x548acf
mov ecx, esi
pop esi
jmp fcn.00547dff
pop esi
ret

Function at 0x5612d8
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call fcn.00401e30
call fcn.0045abe8
cmp dword [eax + 0x14], 0
jne 0x5612f3
mov ecx, esi
pop esi
jmp fcn.00560b56
pop esi
ret

Function at 0x59c56c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0059c3eb

Function at 0x59fd0e
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0059f9ce
Function at 0x8e11b8
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x8e11be
pop ebp
sub ebp, 6
sub ebp, 0x4e11b8
jmp 0x8e121c
jmp 0x8e1225
mov eax, 0x4e11b8
add eax, ebp
add eax, 0x93
mov ecx, 0x63d
mov edx, 0xcafa971a
xor byte [eax], dl
inc eax
dec ecx
jne 0x8e123c
jmp 0x8e124f
jo 0x8e12ab
jb 0x8e126d
or bl, byte [edx]
sbb dh, byte [edx + 0x1a]
salc
sbb bl, byte ss:[ebx - 0x68a6a716]
rcr byte [ebx - 0x68a6a716], cl
shr byte [ecx], cl
fimul dword [edx - 0x1b]
invalid
dec ebx
pop esi
sbb cl, byte [edx - 0x6f]
xlatb
xchg ecx, eax
xchg ebx, eax
sbb bl, byte es:[edx]
sbb bl, byte [ebx + 0x1a1ae2db]
sbb bl, byte [ecx]
xlatb
mov byte [0x1a1a1a1c], al
mov al, byte [0x1a1a1a32]
in eax, dx
clc
sbb edx, edx
xchg ecx, eax
wait
push ss
sbb bl, byte [edx]
sbb bl, byte [ecx]
fisttp word [edx + 0x72]
sub dword [0x99721a13], ebp
rcr byte [esi + 0x1a], 0x1b
jb 0x8e12c1
sbb bl, byte [edx]
sbb dh, dl
pop ds
sbb bl, byte [edx]
sbb dh, bl
xor bl, byte [edx]
sbb bl, byte [edx]
dec edi
xchg ecx, eax
not byte [ecx + 0x1a1a129f]
sbb dl, byte [ecx + 0x1a1a168f]
sbb dl, byte [ecx + 0x1a1a0a97]
sbb bl, bl
sbb byte [ebx], ch
sbb bl, byte [edx]
xchg ecx, eax
xchg edi, eax
or bl, byte [edx]
sbb bl, byte [edx]
fcomi st(3)
sbb byte [ebx], ch
sbb byte [ecx + 0x15531ed8], bl
lahf
out dx, al
in eax, 0xe5
in eax, 0x47
fcom dword [esi]
sbb dl, byte [ecx + 0x1a1e3e96]
sbb bl, byte [edx]
jb 0x8e130e
sub eax, 0x99721a13
rcr byte [esi + 0x1a], 0x1b
dec ebx
pop ds
sbb bl, byte [edx]
sbb dh, bl
push ecx
sbb byte [edx], bl
sbb cl, byte [edi - 0x6f]
mul ch
outsd dx, dword [esi]
push ss
in eax, 0x6f
adc dh, dl
sbb bl, byte fs:[edx]
sbb dl, byte [ecx + 0x1a1a12a7]
sbb bl, byte [ebx + 0x644497eb]
add bl, byte [ebx + 0x644497eb]
add ch, byte [ecx]
rcr dword [ebx + 0x31f5f9e8], cl
or ebx, dword [ebx + 0x31f5f9e8]
or ebp, dword [ecx]
enter 0xfffffffffffff299, 0x1f
push edx
adc eax, 0x1a1a549e
sbb dl, byte [0x1a1a5292]
sbb bh, byte [ecx + edx*4 + 6]
and ebx, dword [edx - 0x61ea0d1f]
add byte [edx], bl
sbb bl, byte [edx]
lcall 0x1a0b, 0x9e15f3e1
sbb bl, byte [edx]
jl 0x8e12ee
loope 0x8e133a
aas
adc eax, 0x1a1a0f9e
sbb bl, byte [ebx - 0xd]
salc
in eax, 0xe5
in eax, 0x33
push esi
and ebx, dword [ebx]
cdq
fistp dword [edi]
cdq
push ds
repe cmpsd dword [esi], dword es:[edi]
in eax, 0xe5
in eax, 0x33
dec esi
and ebx, dword [eax]
cdq
fistp dword [ecx + ebx*4]
invalid
Function at 0x401b15
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401b6b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401b6b
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x401b5d
cmp esi, ecx
jae 0x401b6b
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x401b4b
cmp esi, ecx
jae 0x401b6b
cmp word [esi], 0
je 0x401b6b
mov eax, esi
jmp 0x401b6d
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x403715
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x441008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, edx
mov ebx, ecx
push edi
mov ecx, esi
call fcn.0040163e
push 0x208
xor edi, edi
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.004173b0
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push edi
push edi
push ebx
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edi, eax
test edi, edi
jns 0x4037af
movzx ecx, bl
cmp ecx, 0x26
jne 0x403773
mov edx, str.ProgramFiles
jmp 0x40377d
cmp ecx, 0x1c
jne 0x40379e
mov edx, str.LocalAppData
lea ecx, [ebp - 0x210]
call fcn.00403a20
push eax
mov ecx, esi
call fcn.004015e6
mov ecx, dword [ebp - 0x210]
lea ecx, [ecx - 0x10]
call fcn.004015ce
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
je 0x4037ab
xor eax, eax
inc eax
jmp 0x4037cd
mov eax, edi
jmp 0x4037cd
lea eax, [ebp - 0x20c]
push eax
call fcn.0042af1c
pop ecx
push eax
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.004016da
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041682f
leave
ret
Function at 0x405a8e
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
lea eax, [ebp - 4]
mov ebx, ecx
push eax
call fcn.0040661e
mov edi, dword [ebp - 4]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov dword [ebp - 0x14], edi
cmp dword [edi - 0xc], 0
je 0x405b26
push edi
push 1
push str.EnableLogging
push str.LoggingSettings
call esi
push edi
push 1
test eax, eax
push str.ShowTime
setne al
push str.LoggingSettings
mov byte [ebx + 0x74], al
call esi
push edi
push 0
test eax, eax
push str.LogToFile
setne al
push str.LoggingSettings
mov byte [ebx + 0x76], al
call esi
push edi
push 0
test eax, eax
push str.LogToOutputDebug
setne al
push str.LoggingSettings
mov byte [ebx + 0x77], al
call esi
push edi
push 1
test eax, eax
push str.AppendToFile
setne al
push str.LoggingSettings
mov byte [ebx + 0x78], al
call esi
test eax, eax
setne al
jmp 0x405b36
mov byte [ebx + 0x74], 1
mov al, 1
mov word [ebx + 0x76], 1
mov byte [ebx + 0x78], 0
mov byte [ebx + 0x79], al
cmp byte [ebx + 0x75], 0
je 0x405b43
mov byte [ebx + 0x76], 1
xor eax, eax
mov byte [ebx], 1
mov dword [ebx + 4], 7
mov edi, esi
mov dword [ebp - 4], eax
mov ecx, dword [eax + 0x4418d0]
mov dword [ebp - 0xc], ecx
test ecx, ecx
je 0x405baf
mov ecx, dword [eax + 0x4418d4]
mov dword [ebp - 0x10], ecx
cmp ecx, 9
ja 0x405baf
lea eax, [ebp - 8]
mov ecx, ebx
push eax
call fcn.0040661e
mov esi, dword [ebp - 8]
cmp dword [esi - 0xc], 0
je 0x405b92
push esi
push 1
push dword [ebp - 0xc]
push str.LoggingLevel
call edi
jmp 0x405b95
xor eax, eax
inc eax
mov edx, dword [ebp - 0x10]
test eax, eax
setne cl
mov byte [ebx + edx*8], cl
lea ecx, [esi - 0x10]
mov dword [ebx + edx*8 + 4], eax
call fcn.004015ce
mov eax, dword [ebp - 4]
add eax, 8
mov dword [ebp - 4], eax
cmp eax, 0x48
jb 0x405b54
call fcn.004055dc
mov ecx, dword [ebp - 0x14]
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x84], edx
lea ecx, [ecx - 0x10]
call fcn.004015ce
pop edi
pop esi
pop ebx
leave
ret

Function at 0x406b7c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
mov esi, ecx
push ebx
push 0x80
push 5
push ebx
push 3
push 0x40000000
push dword [esi + 0x14]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp dword [esi + 0x18], 0xffffffff
mov edi, eax
jne 0x406bac
xor al, al
jmp 0x406bd0
cmp byte [esi + 0xb], bl
je 0x406bc7
push ebx
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
push 2
push 0x439658
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406c54
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x441008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x18
mov dword [ebp - 0x74], ecx
lea edi, [ebp - 0x68]
pop ecx
mov esi, str.SYSTEMCurrentControlSetControlSession_Manager
lea eax, [ebp - 0x70]
rep movsd dword es:[edi], dword [esi]
push eax
push 0x20019
xor ebx, ebx
lea eax, [ebp - 0x68]
push ebx
push eax
push 0x80000002
movsw word es:[edi], word [esi]
mov dword [ebp - 0x70], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x406d7c
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x6c]
push 7
pop esi
push eax
push ebx
lea eax, [ebp - 0x78]
mov dword [ebp - 0x6c], ebx
push eax
push ebx
push 0x43a9c4
push dword [ebp - 0x70]
mov dword [ebp - 0x78], esi
call edi
test eax, eax
jne 0x406d7c
cmp dword [ebp - 0x78], esi
jne 0x406d7c
push dword [ebp - 0x6c]
call fcn.0042954d
push dword [ebp - 0x6c]
mov esi, eax
push ebx
push esi
call fcn.004173b0
add esp, 0x10
lea eax, [ebp - 0x6c]
push eax
push esi
push ebx
push ebx
push 0x43a9c4
push dword [ebp - 0x70]
call edi
test eax, eax
jne 0x406d6d
mov edi, dword [ebp - 0x6c]
shr edi, 1
mov dword [ebp - 0x7c], edi
lea eax, [edi - 2]
cmp eax, 0xffffd
ja 0x406d6d
cmp word [esi + edi*2 - 4], bx
jne 0x406d6d
cmp word [esi + edi*2 - 2], bx
jne 0x406d6d
mov eax, dword [ebp - 0x74]
lea ecx, [ebp - 0x74]
add eax, 0x14
mov edx, str.___
push eax
call fcn.00406f80
test edi, edi
mov edi, dword [ebp - 0x74]
pop ecx
je 0x406d5c
lea eax, [esi + ebx*2]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x406d5f
lea eax, [esi + ebx*2]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
add ebx, eax
cmp ebx, dword [ebp - 0x7c]
jb 0x406d3b
or ebx, 0xffffffff
cmp ebx, 0xffffffff
lea ecx, [edi - 0x10]
setne bl
call fcn.004015ce
test esi, esi
je 0x406d78
push esi
call fcn.00416e4b
pop ecx
mov al, bl
jmp 0x406d7e
xor al, al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041682f
leave
ret

Function at 0x406f12
Capabilities:
Print debug messages

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x10], 0
jne 0x406f1f
xor al, al
pop esi
ret
push 0x1f4
push dword [esi + 0x10]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x406f58
cmp eax, 0x80
je 0x406f58
push dword [esi + 0xc]
push dword [esi + 0x1c]
push str.LOG_SYSTEM:___s_:_Could_not_acquire_logging_mutex__s_n
call fcn.0040883a
add esp, 0xc
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov byte [esi + 9], 0
jmp 0x406f1b
mov al, 1
pop esi
ret
Function at 0x407178
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x441008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x118
xor edi, edi
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x11c]
push edi
push eax
call fcn.004173b0
add esp, 0xc
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je case.0x407292.2
mov ebx, dword [ebp - 0x11c]
cmp ebx, 6
je 0x407223
cmp ebx, 0xa
je 0x407223
cmp ebx, 5
jne case.0x407292.2
cmp dword [ebp - 0x118], 2
jne 0x40720c
cmp byte [ebp - 6], 1
jne 0x4071ee
call fcn.0040712c
cmp eax, 9
je case.0x407292.1
test dword [ebp - 8], 0x8000
je case.0x407292.7
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041682f
leave
ret
cmp dword [ebp - 0x118], 1
jne case.0x407292.2
test dword [ebp - 8], 0x200
jne case.0x407292.2
xor eax, eax
inc eax
jmp 0x4071fd
mov eax, dword [ebp - 0x118]
mov ecx, str.kernel32.dll
mov dword [ebp - 0x124], edi
mov dword [ebp - 0x128], eax
call fcn.00403c83
mov esi, eax
test esi, esi
je case.0x407292.2
push str.GetProductInfo
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x407269
lea ecx, [ebp - 0x124]
push ecx
push edi
push edi
push dword [ebp - 0x128]
push ebx
call eax
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test edi, edi
je case.0x407292.2
mov eax, dword [ebp - 0x124]
cmp eax, 0x1b
ja 0x4072a1
je case.0x407292.4
dec eax
cmp eax, 0x18
ja case.0x407292.2
movzx eax, byte [eax + 0x407304]
jmp dword [eax*4 + 0x4072f4]
push 2
pop eax
jmp 0x4071fd
cmp eax, 0x54
ja 0x4072c1
je case.0x407292.4
sub eax, 0x30
je case.0x407292.1
sub eax, 0x16
je case.0x407292.4
dec eax
sub eax, 1
je case.0x407292.4
jmp case.0x407292.2
cmp eax, 0x79
jb case.0x407292.2
cmp eax, 0x7a
jbe 0x4072ef
cmp eax, 0x7c
jbe case.0x407292.2
cmp eax, 0x7e
jbe case.0x407292.4
add eax, 0xffffff7f
cmp eax, 1
ja case.0x407292.2
push 3
jmp 0x40729b
push 4
jmp 0x40729b

Function at 0x4074bc
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea esi, [ecx + 4]
push esi
call dword [sym.imp.KERNEL32.dll_TryEnterCriticalSection]
test eax, eax
jne 0x4074fd
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 4], eax
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [sym.imp.KERNEL32.dll_TryEnterCriticalSection]
test eax, eax
jne 0x4074fd
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 4]
cmp eax, dword [ebp + 8]
jb 0x4074d8
xor al, al
jmp 0x4074ff
mov al, 1
pop esi
leave
ret 4
Function at 0x40839c
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x441008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
mov word [ebp - 8], 0x500
lea eax, [ebp - 0x14]
mov dword [ebp - 0xc], ebx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
mov dword [ebp - 0x14], ebx
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x408402
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 0x14]
neg eax
sbb eax, eax
and dword [ebp - 0x10], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0x10]
test eax, eax
mov ecx, dword [ebp - 4]
setne al
xor ecx, ebp
pop ebx
call fcn.0041682f
leave
ret

Function at 0x40914b
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebx
push edi
mov edi, ecx
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0
mov ebx, eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4091ba
push esi
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea ebx, [ebx*2 + 2]
push ebx
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x409196
push ebx
push edi
push eax
call fcn.00418800
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
jne 0x4091b1
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop esi
pop edi
pop ebx
jmp dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop ebx
ret

Function at 0x40bbf5
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
push 9
mov esi, ecx
lea edi, [ebp - 0x44]
pop ecx
xor eax, eax
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, dword [ebp - 0x40]
lea ebx, [edi - 1]
not ebx
and ebx, dword [ebp + 8]
je 0x40bc46
lea eax, [ebp - 4]
mov dword [ebp - 4], ebx
push eax
lea ecx, [esi + 0xc]
call fcn.0040c637
cmp eax, dword [esi + 0xc]
je 0x40bc3a
cmp ebx, dword [eax + 0x10]
jae 0x40bc3d
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 0xc]
jne 0x40bc4f
sub ebx, edi
jne 0x40bc21
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
push 7
lea esi, [eax + 0x14]
pop ecx
lea edi, [ebp - 0x20]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x14]
add ecx, ebx
cmp ecx, dword [ebp + 8]
jbe 0x40bc46
mov eax, ebx
jmp 0x40bc48
Function at 0x40f24d
Capabilities:
Create pipe

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 0x84], edi
jne 0x40f2e9
push edi
xor ebx, ebx
mov dword [esi + 0x84], 2
inc ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 0x44], eax
test eax, eax
je 0x40f2e9
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x9c], eax
test eax, eax
je 0x40f2e9
push 4
push 0xffffffffffffffff
push esi
push 0x40fa03
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
test eax, eax
je 0x40f2e9
lea eax, [esi + 0x20]
cmp dword [eax + 0x14], 8
jb 0x40f2b4
mov eax, dword [eax]
push dword [esi + 0x38]
push edi
push 0x40
push 0x40
push ebx
push 6
push 0x40080003
push eax
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov dword [esi + 0x3c], eax
cmp eax, 0xffffffff
je 0x40f2e9
push dword [esi + 0x9c]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x40f2ef
mov dword [esi + 0x84], ebx
xor al, al
pop edi
pop esi
pop ebx
ret
mov al, bl
jmp 0x40f2eb

Function at 0x40f3fb
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
push 0x2c
push ebx
mov dword [ebp - 8], ebx
lea esi, [edi + 0xa0]
push esi
call fcn.004173b0
add esp, 0xc
lea eax, [edi + 0x8c]
push eax
lea eax, [ebp - 8]
push eax
push 0x2c
push esi
push dword [edi + 0x3c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
setne cl
mov byte [ebp - 1], cl
test eax, eax
jne 0x40f44a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov cl, byte [ebp - 1]
mov ebx, eax
test cl, cl
jne 0x40f461
cmp ebx, 0x3e5
je 0x40f461
push 0xa
mov ecx, edi
call fcn.0040f68c
jmp 0x40f46b
mov dword [edi + 0x84], 5
pop edi
pop esi
pop ebx
leave
ret

Function at 0x412ecc
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x441008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push 0x200
xor ebx, ebx
lea eax, [ebp - 0x204]
push ebx
push eax
call fcn.004173b0
add esp, 0xc
mov dword [ebp - 0x20c], pe_nt_image_headers32
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x204]
push eax
push 3
call dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
je 0x412f30
push ecx
lea ecx, [ebp - 0x204]
call fcn.00404e05
pop ecx
test al, al
je 0x412f30
mov al, 1
jmp 0x412f75
push esi
lea eax, [ebp - 0x208]
mov dword [ebp - 0x208], ebx
push eax
push 0x64
push ebx
call dword [sym.imp.NETAPI32.dll_NetWkstaGetInfo]
mov esi, dword [ebp - 0x208]
test eax, eax
jne 0x412f6b
cmp dword [esi + 8], ebx
je 0x412f6b
push str.google
push dword [esi + 8]
call fcn.0042416c
pop ecx
pop ecx
test eax, eax
jne 0x412f6b
mov bl, 1
push esi
call dword [sym.imp.NETAPI32.dll_NetApiBufferFree]
mov al, bl
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0041682f
leave
ret
Function at 0x4155e6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push 8
pop esi
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
push dword [ebp + 8]
lea eax, [ebp - 8]
push eax
push 0
push edx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41561f
cmp dword [ebp - 8], 3
jne 0x41561f
test eax, eax
jne 0x41561f
cmp dword [ebp - 4], esi
jne 0x41561f
mov al, 1
jmp 0x41562f
push esi
push 0
push dword [ebp + 8]
call fcn.004173b0
add esp, 0xc
xor al, al
pop esi
leave
ret

Function at 0x415632
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push 0x20
pop esi
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
push dword [ebp + 8]
lea eax, [ebp - 8]
push eax
push 0
push edx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41566b
cmp dword [ebp - 8], 3
jne 0x41566b
test eax, eax
jne 0x41566b
cmp dword [ebp - 4], esi
jne 0x41566b
mov al, 1
jmp 0x41567b
push esi
push 0
push dword [ebp + 8]
call fcn.004173b0
add esp, 0xc
xor al, al
pop esi
leave
ret
Function at 0x402040
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
lea ebx, [esp + 0x24]
mov dword [esp], str.Mingw_w64_runtime_failure:_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sym._vfprintf
call sym._abort
jmp dbg.mark_section_writable

Function at 0x4020a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x405050]
test esi, esi
jle 0x40218d
mov edi, dword [0x405054]
xor ebx, ebx
lea edx, [edi + 4]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x4020d4
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x402186
add ebx, 1
add edx, 0xc
cmp ebx, esi
jne 0x4020c0
mov dword [esp], eax
mov ebx, eax
call dbg.__mingw_GetSectionForAddress
test eax, eax
mov edi, eax
je 0x4021ca
lea ebx, [esi + esi*2]
mov esi, dword [0x405054]
shl ebx, 2
add esi, ebx
mov dword [esi + 8], eax
mov dword [esi], 0
call dbg._GetPEImageBase
add eax, dword [edi + 0xc]
mov dword [esi + 4], eax
lea eax, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], eax
mov eax, dword [0x405054]
mov eax, dword [eax + ebx + 4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x4021aa
mov eax, dword [esp + 0x28]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x40217f
sub eax, 0x40
and eax, 0xffffffbf
je 0x40217f
mov eax, dword [esp + 0x20]
add ebx, dword [0x405054]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
je 0x402194
add dword [0x405050], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
xor esi, esi
jmp 0x4020de
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
mov eax, dword [0x405054]
mov eax, dword [eax + ebx + 4]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, [esi]