joyce8/EMBER2024-capa huggingface dataset:
Function at 0x450150
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x450183
push esi
call fcn.0045e510
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x45017c
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 0x450209
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4501f2
mov eax, dword [esi + 8]
test eax, eax
je 0x4501a7
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 0x4501ee
cmp eax, 2
je 0x4501f2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x45019a
cmp eax, 3
je 0x4501cd
cmp eax, 1
jne 0x45019a
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 0x45019a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x45019a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00450230
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x450218
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00450230
add esp, 4
pop esi
ret

Function at 0x450ab0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x450ad1
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x450ad1
mov eax, dword [eax + 0x44]
test eax, eax
je 0x450ad1
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x46bdb0
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 0x46be53
test eax, eax
jbe 0x46be53
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x46be53
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 0x46bdfe
xor esi, esi
jmp 0x46be04
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x46be2f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.004104c0
add esi, eax
push esi
mov ebx, esi
call fcn.004104c0
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x46be10
pop ebp
test edi, edi
pop edi
jne 0x46be53
test ebx, ebx
je 0x46be53
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.00472870
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x46bf75
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 0x46c08d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x46c08d
mov eax, dword [esi + 0x3c]
push eax
call fcn.0048383e
mov esi, eax
test esi, esi
je 0x46c08d
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 0x46c08d
mov ecx, esi
call fcn.0046bf00
cmp edi, eax
jge 0x46c08d
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 0x46c013
mov dword [esp + 0x34], 1
jmp 0x46c06e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x46c08d
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.0046b450
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 0x4841e2
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x48421a
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.00482287
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0048225f
jmp 0x484226
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4858d7
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 0x485919
call fcn.0048b38c
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x485919
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x485910
xor eax, eax
jmp 0x485921
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00485927
pop edi
pop esi
pop ebx
ret 4
Function at 0x48b8bc
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 0x48b8ea
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x48b908
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0048b822
jmp 0x48b908
mov eax, dword [esi + 0x14]
test eax, eax
je 0x48b908
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0048b822
test edi, edi
mov eax, edi
jne 0x48b8f2
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x334690
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 8]
push eax
call fcn.00331000
add esp, 4
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
mov dword [0x369134], ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00331010
add esp, 4
mov dword [0x369138], eax
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x10]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 4], ecx
mov edx, 8
imul edx, edx, 5
mov eax, dword [ebp - 4]
lea ecx, [eax + edx + 0x78]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x34]
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 0x2c]
push ecx
push 0x40
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x50]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x34]
push edx
call dword [0x36918c]
mov dword [ebp - 0x30], eax
push 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x50]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.00334660
add esp, 0xc
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x54]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.00334620
add esp, 0xc
mov ecx, dword [ebp - 4]
movzx edx, word [ecx + 0x14]
mov eax, dword [ebp - 4]
lea ecx, [eax + edx + 0x18]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], 0
jmp 0x334762
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp - 4]
movzx ecx, word [eax + 6]
cmp dword [ebp - 8], ecx
jae 0x3347b4
mov edx, dword [ebp - 8]
imul edx, edx, 0x28
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + edx + 0xc]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 8]
imul edx, edx, 0x28
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
add ecx, dword [eax + edx + 0x14]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 8]
imul edx, edx, 0x28
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + edx + 0x10]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00334620
add esp, 0xc
jmp 0x334759
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
call fcn.003325b0
add esp, 8
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0x28]
mov dword [ebp - 0x20], ecx
call dword [ebp - 0x20]
mov esp, ebp
pop ebp
ret
Function at 0x340c10
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x368218]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0x14], 0
push ebx
jg 0x340c45
jl 0x340c33
mov ebx, dword [ebp + 0x10]
test ebx, ebx
jne 0x340c48
mov eax, dword [ebp + 8]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.003414d3
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp + 0x10]
mov edx, 1
mov dword [ebp - 0x84], 0xedb88320
mov ecx, edx
lea esp, [esp]
mov dword [ebp + ecx*4 - 0x84], edx
inc ecx
add edx, edx
cmp ecx, 0x20
jl 0x340c60
push esi
push edi
xor edi, edi
jmp 0x340c80
mov ecx, dword [ebp + edi - 0x84]
xor esi, esi
lea edx, [ebp - 0x84]
test ecx, ecx
je 0x340ca1
test cl, 1
je 0x340c9a
xor esi, dword [edx]
add edx, 4
shr ecx, 1
jne 0x340c93
mov dword [ebp + edi - 0x104], esi
add edi, 4
cmp edi, 0x80
jl 0x340c80
xor edi, edi
jmp 0x340cc0
mov ecx, dword [ebp + edi - 0x104]
xor esi, esi
lea edx, [ebp - 0x104]
test ecx, ecx
je 0x340ce1
test cl, 1
je 0x340cda
xor esi, dword [edx]
add edx, 4
shr ecx, 1
jne 0x340cd3
mov dword [ebp + edi - 0x84], esi
add edi, 4
cmp edi, 0x80
jl 0x340cc0
jmp 0x340d03
mov ebx, dword [ebp + 0x10]
xor edi, edi
jmp 0x340d10
mov ecx, dword [ebp + edi - 0x84]
xor esi, esi
lea edx, [ebp - 0x84]
test ecx, ecx
je 0x340d31
test cl, 1
je 0x340d2a
xor esi, dword [edx]
add edx, 4
shr ecx, 1
jne 0x340d23
mov dword [ebp + edi - 0x104], esi
add edi, 4
cmp edi, 0x80
jl 0x340d10
mov ecx, ebx
and ecx, 1
xor edx, edx
or ecx, edx
je 0x340d70
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x104]
test eax, eax
je 0x340d6d
jmp 0x340d60
test al, 1
je 0x340d66
xor edx, dword [ecx]
add ecx, 4
shr eax, 1
jne 0x340d60
mov dword [ebp + 8], edx
mov eax, dword [ebp + 0x14]
shrd ebx, eax, 1
sar eax, 1
mov dword [ebp - 0x108], eax
mov eax, ebx
mov ebx, dword [ebp - 0x108]
mov ecx, eax
or ecx, ebx
mov dword [ebp + 0x10], eax
je 0x340e19
xor edi, edi
jmp 0x340da0
mov ecx, dword [ebp + edi - 0x104]
xor esi, esi
lea edx, [ebp - 0x104]
test ecx, ecx
je 0x340dc1
test cl, 1
je 0x340dba
xor esi, dword [edx]
add edx, 4
shr ecx, 1
jne 0x340db3
mov dword [ebp + edi - 0x84], esi
add edi, 4
cmp edi, 0x80
jl 0x340da0
mov ecx, eax
and ecx, 1
xor edx, edx
or ecx, edx
je 0x340e03
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x84]
test eax, eax
je 0x340dfd
jmp 0x340df0
test al, 1
je 0x340df6
xor edx, dword [ecx]
add ecx, 4
shr eax, 1
jne 0x340df0
mov eax, dword [ebp + 0x10]
mov dword [ebp + 8], edx
shrd eax, ebx, 1
mov ecx, eax
sar ebx, 1
mov dword [ebp + 0x10], ecx
or ecx, ebx
mov dword [ebp + 0x14], ebx
jne 0x340d00
mov ecx, dword [ebp - 4]
mov eax, dword [ebp + 8]
xor eax, dword [ebp + 0xc]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.003414d3
mov esp, ebp
pop ebp
ret
Function at 0x348353
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x368218]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.00346fbf
mov dword [ebp - 0x14], eax
cmp dword [0x36a064], edi
jne 0x348444
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x3483d1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x348524
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x348524
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x348524
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x36a064], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x36a068], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x36a06c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x36a074], eax
test eax, eax
je 0x348441
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x36a070], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x348469
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x34845c
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x34847e
push 4
pop eax
jmp 0x348526
cmp dword [ebp - 0x14], edi
je 0x34847e
push dword [0x36a064]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x348463
mov eax, dword [0x36a070]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x3484dc
cmp dword [0x36a074], esi
je 0x3484dc
push eax
call ebx
push dword [0x36a074]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x3484dc
test eax, eax
je 0x3484dc
call ecx
test eax, eax
je 0x3484d1
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x3484d1
test byte [ebp - 8], 1
jne 0x3484dc
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x34850c
mov eax, dword [0x36a068]
cmp eax, esi
je 0x348509
push eax
call ebx
test eax, eax
je 0x348509
call eax
mov edi, eax
test edi, edi
je 0x348509
mov eax, dword [0x36a06c]
cmp eax, esi
je 0x348509
push eax
call ebx
test eax, eax
je 0x348509
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x36a064]
call ebx
test eax, eax
je 0x348524
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x348526
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.003414d3
leave
ret
Function at 0x357597
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00343858
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x3575cf
xor eax, eax
jmp 0x3575fb
cmp esi, dword [ebp - 4]
je 0x3575f8
cmp dword [ebp + 0xc], 0
je 0x3575f8
push dword [edi + 0x9c]
call fcn.003571a5
push dword [edi + 0x9c]
mov esi, eax
call fcn.0034827c
pop ecx
pop ecx
cmp esi, eax
je 0x3575cb
xor eax, eax
inc eax
pop edi
pop esi
leave
ret

Function at 0x443e50
Capabilities:
Accept command line arguments
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push str.pip_master_std_lib_6581D87B52F1
push 1
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
lea eax, [ebp - 4]
push eax
push edi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
test esi, esi
je 0x443eb0
test eax, eax
je 0x443e95
mov edx, dword [0x4b8db4]
lea ecx, [ebp - 8]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x443eb0
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov esi, 0x68
jmp 0x443eb3
mov esi, dword [ebp - 8]
mov ecx, 0x41
xor eax, eax
mov edi, 0x4b8b14
rep stosd dword es:[edi], eax
jmp 0x536595

Function at 0x4eff7c
Capabilities:
Encode data using xor

Disassembly:
xchg eax, eax
xchg bh, bl
push edx
xlatb
cmp ebp, dword [ebp - 0x7fc5a00b]
iretd
pop ebp
dec esp
xchg edi, ecx
insd dword es:[edi], dx
arpl di, bp
dec ebp
jbe 0x4effeb
jl 0x4eff5a
jo 0x4effa1
mov esp, 0xd5fa6eb0
sub cl, byte [ebx]
mov cl, 0xe5
in eax, 0x27
push cs
add dword [edi - 0x68372109], edx
xor bh, byte [edx]
sar dword [edx - 0x7d], 0xec
in al, dx
invalid
add cl, byte [edi + 0x728c1565]
add cl, byte [edi + 0x728c1565]
pop ebx
or al, 0x73
cli
aad 0x51
sub eax, 0x81dc3b5e
cmp dword [esi + ebx*8 + 0x7b], esi
xor eax, 0x2e4c43e5
ja 0x4effaf
inc esi
pop es
std
fisub dword [edi]
mov dl, 0xfb
xlatb
rcl byte [esi + ebx*4 - 0xb], cl
and ebp, ecx
or al, 0xc8
ljmp 0x35ba
cmp ebp, ebx
pop ebx
add eax, 0x3815169e
insd dword es:[edi], dx
jno 0x4effae
xchg ecx, eax
sub al, 0x84
add dword [ebx + edi*4 + 0x3a424580], edi
test byte [esi - 0x32], bl
ljmp 0x7ca
Function at 0x40adc0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.00404730
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
mov eax, dword [0x4170bc]
cmp ebx, eax
jae 0x40adfb
mov eax, ebx
and eax, 0x1f
mov edx, ebx
sar edx, 5
mov edx, dword [edx*4 + 0x4170c0]
test byte [edx + eax*8 + 4], 1
jne 0x40ae0d
mov dword [0x415c84], 9
or eax, 0xffffffff
jmp 0x40af32
push 1
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x40ae37
push 2
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x40ae3f
or eax, 0xffffffff
jmp 0x40af32
mov eax, dword [ebp + 0xc]
mov esi, eax
sub esi, dword [ebp - 8]
test esi, esi
jle 0x40aee4
lea edx, [ebp - 0x1010]
mov ecx, 0x1000
xor eax, eax
push edi
mov edi, edx
rep stosb byte es:[edi], al
pop edi
mov eax, edx
push 0x8000
push ebx
call fcn.0040b330
add esp, 8
mov dword [ebp - 0x10], eax
mov eax, esi
cmp eax, 0x1000
jb 0x40ae8a
mov dword [ebp - 0x1014], 0x1000
jmp 0x40ae92
mov eax, esi
mov dword [ebp - 0x1014], eax
mov eax, dword [ebp - 0x1014]
push eax
lea eax, [ebp - 0x1010]
push eax
push ebx
call fcn.004086d0
add esp, 0xc
mov edi, eax
cmp eax, 0xffffffff
jne 0x40aecb
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 5
jne 0x40aec5
mov dword [0x415c84], 0xd
or dword [ebp - 4], 0xffffffff
jmp 0x40aed5
mov eax, esi
sub eax, edi
mov esi, eax
test eax, eax
jg 0x40ae75
mov eax, dword [ebp - 0x10]
push eax
push ebx
call fcn.0040b330
add esp, 8
jmp 0x40af20
test esi, esi
jge 0x40af20
push 0
mov eax, dword [ebp + 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
push ebx
call fcn.00408b00
pop ecx
push eax
call dword [sym.imp.KERNEL32.DLL_SetEndOfFile]
test eax, eax
setne al
and eax, 1
dec eax
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x40af20
mov dword [0x415c84], 0xd
push 0
mov eax, dword [ebp - 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x431000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40915c
nop
mov ecx, 0x53791369
nop
nop
nop
test eax, eax
nop
nop
je 0x43104e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x431024
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42f3f8
mov ecx, 0x82a7242
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x431084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43106c
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x100015e7
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push ebx
xor eax, eax
mov ebx, dword fs:[0x18]
mov ecx, dword fs:[0x30]
test ecx, ecx
jns 0x1000161f
mov ecx, 0x530000
cmp dword [ebx + 0x58], ecx
jne 0x1000160d
mov al, 1
jmp 0x1000167e
cmp dword [ebx + 0x54], ecx
jne 0x10001616
mov al, 2
jmp 0x1000167e
cmp dword [ebx + 0x7c], ecx
jne 0x1000167e
mov al, 3
jmp 0x1000167e
mov ebx, dword [ecx + 0xa8]
mov ecx, dword [ecx + 0xa4]
cmp ecx, 4
ja 0x10001634
mov al, 4
jmp 0x1000167e
cmp ecx, 5
jne 0x10001654
cmp ebx, 0
jne 0x10001642
mov al, 5
jmp 0x1000167e
cmp ebx, 1
jne 0x1000164b
mov al, 6
jmp 0x1000167e
cmp ebx, 2
jne 0x10001654
mov al, 7
jmp 0x1000167e
cmp ecx, 6
jne 0x1000167c
cmp ebx, 0
jne 0x10001662
mov al, 8
jmp 0x1000167e
cmp ebx, 1
jne 0x10001669
mov al, 9
cmp ebx, 2
jne 0x10001670
mov al, 0xa
cmp ebx, 3
jne 0x10001677
mov al, 0xb
cmp ebx, 4
jne 0x1000167e
mov al, 0xc
pop ebx
leave
ret

Function at 0x10003840
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 4], 0
push 0x80000301
push 0
push 0x100
push 1
mov ebx, 0x184
call fcn.1001d120
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x10003885
push ebx
call fcn.1001be8a
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push dword [ebp - 4]
push 0xff
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x100038b0
push 6
call fcn.1001be90
add esp, 4
push getsockname
push 0
mov eax, dword [ebp - 4]
test eax, eax
jne 0x100038c3
mov eax, 0x100752a6
push eax
push 1
mov ebx, 0x170
call fcn.1001d160
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x100038e1
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x100038f2
push ebx
call fcn.1001be8a
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret