joyce8/EMBER2024-capa huggingface dataset:
Function at 0x424a76
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x30]
sub eax, dword [esi + 0x24]
mov ecx, dword [esi + 0x34]
sub ecx, eax
push ecx
push dword [esi + 0x30]
push dword [ebp + 8]
call fcn.00424b0c
cmp eax, 1
jne 0x424b07
push eax
lea eax, [esi + 0x34]
push eax
push 0x4004667f
push dword [esi + 0xc]
call sub.WSOCK32.dll_ioctlsocket
pop eax
cmp dword [esi + 0x34], 0
je 0x424af6
push 0x42
push dword [esi + 0x34]
push dword [esi + 0x20]
call sub.KERNEL32.dll_GlobalReAlloc
mov dword [esi + 0x20], eax
push eax
call sub.KERNEL32.dll_GlobalLock
mov dword [esi + 0x24], eax
push 0
push dword [esi + 0x34]
push dword [esi + 0x24]
push dword [esi + 0xc]
call sub.WSOCK32.dll_recv
cmp eax, 0xffffffff
jne 0x424ae7
mov eax, 0
jmp 0x424af6
mov dword [esi + 0x34], eax
push eax
push dword [esi + 0x24]
push dword [ebp + 8]
call fcn.00424b0c
cmp eax, 1
jne 0x424b07
cmp byte [esi + 0x43], 1
jne 0x424b07
push esi
call fcn.004242bb
pop esi
leave
ret 4

Function at 0x424b0c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x2c], 0
je 0x424b62
cmp dword [esi + 0x8d], 3
jne 0x424b4e
cmp dword [esi + 0x95], 0
jne 0x424b4e
push 4
push 0x1000
push dword [esi + 0x2c]
push 0
call sub.KERNEL32.dll_VirtualAlloc
mov dword [esi + 0x95], eax
push dword [esi + 0x2c]
pop dword [esi + 0x99]
mov eax, dword [ebp + 0x10]
add eax, dword [esi + 0x38]
cmp eax, dword [esi + 0x2c]
jbe 0x424b62
mov eax, dword [esi + 0x2c]
sub eax, dword [esi + 0x38]
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 0x10]
add eax, dword [esi + 0x38]
cmp eax, dword [esi + 0x2c]
jne 0x424b74
mov dword [esi + 0x75], 1
cmp dword [esi + 0x8d], 2
jne 0x424b97
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [esi + 0x6d]
call sub.KERNEL32.dll_WriteFile
push eax
jmp 0x424c4a
cmp dword [esi + 0x8d], 3
jne 0x424c4a
mov eax, dword [esi + 0x9d]
add eax, dword [ebp + 0x10]
cmp eax, dword [esi + 0x99]
ja 0x424bbe
cmp dword [esi + 0x95], 0
jne 0x424c18
shl eax, 1
mov dword [ebp - 8], eax
push 4
push 0x1000
push dword [ebp - 8]
push 0
call sub.KERNEL32.dll_VirtualAlloc
mov dword [ebp - 4], eax
cmp dword [esi + 0x95], 0
je 0x424c06
push dword [esi + 0x9d]
push dword [ebp - 4]
push dword [esi + 0x95]
call fcn.0042b270
push 0x8000
push 0
push dword [esi + 0x95]
call sub.KERNEL32.dll_VirtualFree
push dword [ebp - 4]
pop dword [esi + 0x95]
push dword [ebp - 8]
pop dword [esi + 0x99]
cmp dword [esi + 0x95], 0
je 0x424c4a
mov eax, dword [esi + 0x95]
add eax, dword [esi + 0x9d]
push dword [ebp + 0x10]
push eax
push dword [ebp + 0xc]
call fcn.0042b270
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
add dword [esi + 0x9d], eax
mov eax, 1
cmp eax, 1
jne 0x424c66
mov eax, dword [ebp - 0xc]
add dword [esi + 0x38], eax
add dword [esi + 0x4c], eax
cmp dword [esi + 0x71], 0
je 0x424c66
push dword [ebp + 8]
call fcn.0042387a
pop eax
pop esi
leave
ret 0xc
Function at 0x425b79
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x4475f0
cmp edx, dword [eax]
je 0x425b9b
add eax, 8
inc ecx
cmp eax, 0x447680
jl 0x425b8c
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x4475f0]
jne 0x425cc9
mov eax, dword [0x44d6a4]
cmp eax, 1
je 0x425ca3
test eax, eax
jne 0x425bcc
cmp dword [0x447540], 1
je 0x425ca3
cmp edx, 0xfc
je 0x425cc9
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x425c03
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00426160
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00426310
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x425c46
lea eax, [ebp - 0x1a4]
push eax
call fcn.00426310
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x437080
push edi
call fcn.004279b0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00426160
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00426170
lea eax, [ebp - 0xa0]
push 0x437060
push eax
call fcn.00426170
push dword [esi + 0x4475f4]
lea eax, [ebp - 0xa0]
push eax
call fcn.00426170
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00427924
add esp, 0x2c
pop edi
jmp 0x425cc9
lea eax, [ebp + 8]
lea esi, [esi + 0x4475f4]
push 0
push eax
push dword [esi]
call fcn.00426310
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x429020
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffec4
push ebx
cmp dword [0x43b06c], 0xffffffff
jne 0x42903a
xor eax, eax
jmp 0x4291b9
push dword [0x43b06c]
call sub.USER32.dll_IsWindow
or eax, eax
jne 0x429181
push 0
push str.DebugCenter
call sub.USER32.dll_FindWindowA
or eax, eax
jne 0x42911d
lea ebx, [ebp - 0x130]
lea eax, [ebp - 0x134]
push eax
push 0xf003f
push 0
push 0x43714e
push connect
call sub.ADVAPI32.dll_RegOpenKeyExA
mov dword [ebp - 0x13c], 0x104
lea eax, [ebp - 0x13c]
push eax
push ebx
lea eax, [ebp - 0x138]
push eax
push 0
push str.Path
push dword [ebp - 0x134]
call sub.ADVAPI32.dll_RegQueryValueExA
or eax, eax
jne 0x4290f9
push ebx
call fcn.0042a680
or eax, eax
je 0x4290d3
push 1
push ebx
call sub.KERNEL32.dll_WinExec
push 0
push str.DebugCenter
call sub.USER32.dll_FindWindowA
jmp 0x42911d
push 0x10
push str.Debug_Error
push str.Debug_Center_not_found_
push 0
call sub.USER32.dll_MessageBoxA
mov dword [0x43b06c], 0xffffffff
xor eax, eax
jmp 0x4291b9
push 0x10
push str.Debug_Error
push str.Registration_error__r_nStart_DebugCenter_manually...
push 0
call sub.USER32.dll_MessageBoxA
mov dword [0x43b06c], 0xffffffff
xor eax, eax
jmp 0x4291b9
or eax, eax
je 0x429160
mov dword [0x43b06c], eax
mov dword [ebp - 0x2c], 0x2c
lea eax, [ebp - 0x2c]
push eax
push dword [0x43b06c]
call sub.USER32.dll_GetWindowPlacement
cmp dword [ebp - 0x24], 2
jne 0x429159
push 0
push 0x3e7
push 0x111
push dword [0x43b06c]
call sub.USER32.dll_SendMessageA
mov eax, 1
jmp 0x4291b9
push 0x10
push str.Debug_Error
push str.Debug_Center_can_not_be_opened_
push 0
call sub.USER32.dll_MessageBoxA
mov dword [0x43b06c], 0xffffffff
xor eax, eax
jmp 0x4291b9
mov dword [ebp - 0x2c], 0x2c
lea eax, [ebp - 0x2c]
push eax
push dword [0x43b06c]
call sub.USER32.dll_GetWindowPlacement
cmp dword [ebp - 0x24], 2
jne 0x4291b4
push 0
push 0x3e7
push 0x111
push dword [0x43b06c]
call sub.USER32.dll_SendMessageA
mov eax, 1
pop ebx
leave
ret
Function at 0x42929b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
cmp dword [ebp + 8], 0
jne 0x4292b5
mov dword [ebp + 8], str.String_NULL_Pointer
mov dword [ebp + 0xc], 0xff
mov eax, dword [0x43b04c]
cmp eax, 2
jne 0x429314
call fcn.004291f8
call fcn.004291f8
or eax, eax
je 0x4292ea
push dword [ebp + 8]
call fcn.0042a4a0
lea edx, [ebp - 4]
push 0
push edx
push eax
push dword [ebp + 8]
push dword [0x43b06c]
call sub.KERNEL32.dll_WriteFile
test dword [ebp + 0x10], 0x80
je 0x429453
push 0
lea eax, [ebp - 4]
push eax
push 2
push 0x437120
push dword [0x43b06c]
call sub.KERNEL32.dll_WriteFile
jmp 0x429453
cmp eax, 1
jne 0x4293af
call fcn.004291bc
or eax, eax
je 0x429453
mov eax, dword [ebp + 0xc]
test eax, 0xf0
je 0x42933d
mov dword [ebp - 8], 4
jmp 0x429344
mov dword [ebp - 8], 0
test eax, 0xf000
je 0x42934f
or dword [ebp - 8], 2
test eax, 0xf00000
je 0x42935a
or dword [ebp - 8], 1
or dword [ebp - 8], 8
push dword [ebp - 8]
push dword [0x43b06c]
call sub.KERNEL32.dll_SetConsoleTextAttribute
push dword [ebp + 8]
call fcn.0042a4a0
lea ecx, [ebp - 4]
push 0
push ecx
push eax
push dword [ebp + 8]
push dword [0x43b06c]
call sub.KERNEL32.dll_WriteConsoleA
test dword [ebp + 0x10], 0x80
je 0x4293aa
push 0
lea eax, [ebp - 4]
push eax
push 2
push 0x437120
push dword [0x43b06c]
call sub.KERNEL32.dll_WriteConsoleA
jmp 0x429453
call fcn.00429020
or eax, eax
je 0x429453
mov dword [ebp - 0x18], 0x58adf9ac
push dword [ebp + 8]
call fcn.0042a4a0
add eax, 0xe
push eax
push dword [ebp + 0x14]
call fcn.0042a4a0
add eax, 6
push eax
add eax, dword [esp + 4]
mov dword [ebp - 0x14], eax
push eax
push 0x40
call sub.KERNEL32.dll_GlobalAlloc
mov dword [ebp - 0x10], eax
mov byte [eax], 0
push dword [esp]
pop dword [eax + 1]
push dword [ebp + 0x14]
lea eax, [eax + 5]
push eax
call fcn.0042a630
mov ecx, dword [ebp - 0x10]
add ecx, dword [esp]
mov byte [ecx], 2
push dword [esp + 4]
pop dword [ecx + 1]
push dword [ebp + 0x10]
pop dword [ecx + 9]
push dword [ebp + 0xc]
pop dword [ecx + 5]
push dword [ebp + 8]
lea eax, [ecx + 0xd]
push eax
call fcn.0042a630
add esp, 8
lea eax, [ebp - 0xc]
push eax
push 0x1388
push 1
lea eax, [ebp - 0x18]
push eax
push 0xffffffffffffffff
push 0x4a
push dword [0x43b06c]
call sub.USER32.dll_SendMessageTimeoutA
push dword [ebp - 0x10]
call sub.KERNEL32.dll_GlobalFree
leave
ret 0x10
Function at 0x42a040
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdbc
push ebx
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x242]
push eax
call fcn.0042a650
push str..
push eax
call fcn.0042aa60
lea eax, [ebp - 0x13e]
push eax
lea eax, [ebp - 0x242]
push eax
call sub.KERNEL32.dll_FindFirstFileA
cmp eax, 0xffffffff
je 0x42a08a
push eax
call sub.KERNEL32.dll_FindClose
mov eax, 1
jmp 0x42a0de
mov ebx, dword [ebp + 8]
push 0x5c
push ebx
call fcn.0042aa80
or eax, eax
je 0x42a0de
inc eax
mov esi, eax
push 0x5c
push esi
call fcn.0042aa80
mov esi, eax
or eax, eax
je 0x42a0bc
sub eax, ebx
push eax
push ebx
lea eax, [ebp - 0x242]
push eax
call fcn.0042aab0
jmp 0x42a0c9
push ebx
lea eax, [ebp - 0x242]
push eax
call fcn.0042a630
push 0
lea eax, [ebp - 0x242]
push eax
call sub.KERNEL32.dll_CreateDirectoryA
or esi, esi
je 0x42a0de
inc esi
jmp 0x42a09c
pop esi
pop ebx
leave
ret 4
Function at 0x4309ce
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x44d9fc], 0
push esi
push edi
jne 0x430a36
push 0x449b10
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x430a36
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
mov edi, eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x430a36
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x430a2f
push edi
push eax
push dword [ebp + 0xc]
call fcn.004309aa
add esp, 0xc
cmp eax, dword [0x438738]
jne 0x430a3b
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [0x438738]
pop edi
pop esi
pop ebp
ret

Function at 0x430a3f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
cmp dword [0x44d9fc], 0
mov eax, dword [ebp + 8]
push esi
mov esi, dword [0x438738]
jne 0x430b7c
test eax, eax
je 0x430a6c
cmp byte [eax], 0
jne 0x430b7c
push ebx
mov ebx, 0x105
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x108]
push ebx
push eax
push dword [0x44d9f4]
call edi
test eax, eax
je 0x430ab0
lea eax, [ebp - 0x108]
push eax
call fcn.00430807
and byte [eax], 0
push dword [ebp + 0xc]
lea eax, [ebp - 0x108]
push eax
call fcn.00430b8a
add esp, 0xc
mov esi, eax
cmp esi, dword [0x438738]
jne 0x430b76
lea eax, [ebp - 0x108]
push ebx
push eax
push 0
call edi
test eax, eax
je 0x430aef
lea eax, [ebp - 0x108]
push eax
call fcn.00430807
and byte [eax], 0
push dword [ebp + 0xc]
lea eax, [ebp - 0x108]
push eax
call fcn.00430b8a
add esp, 0xc
mov esi, eax
cmp esi, dword [0x438738]
jne 0x430b76
mov edi, dword [ebp + 0xc]
push edi
push 0x449b1c
call fcn.00430b8a
mov esi, eax
pop ecx
cmp esi, dword [0x438738]
pop ecx
jne 0x430b76
lea eax, [ebp - 0x108]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x430b34
lea eax, [ebp - 0x108]
push edi
push eax
call fcn.00430b8a
pop ecx
mov esi, eax
pop ecx
cmp esi, dword [0x438738]
jne 0x430b76
lea eax, [ebp - 0x108]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x430b5f
lea eax, [ebp - 0x108]
push edi
push eax
call fcn.00430b8a
pop ecx
mov esi, eax
pop ecx
cmp esi, dword [0x438738]
jne 0x430b76
push edi
push str.PATH
call fcn.00430d33
pop ecx
mov esi, eax
pop ecx
pop edi
mov eax, esi
pop ebx
jmp 0x430b87
push dword [ebp + 0xc]
push eax
call fcn.00430b8a
pop ecx
pop ecx
pop esi
leave
ret
Function at 0x431a97
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 4
lea eax, [ebp + 8]
push esi
push eax
call fcn.004306c6
mov eax, dword [ebp + 8]
push 4
lea edi, [eax + esi]
lea eax, [edi + 0x3c]
push eax
lea eax, [ebp - 4]
push eax
call fcn.004306c6
mov eax, dword [ebp - 4]
push 4
add eax, edi
push eax
lea eax, [ebp - 8]
push eax
call fcn.004306c6
add esp, 0x24
cmp dword [ebp - 8], 0x4550
je 0x431af0
push str.PELD:_peGetProcAddress:_invalid_instance_handle_or_corrupt_memory_image
call fcn.00431337
jmp 0x431bb2
mov eax, dword [ebp - 4]
push 8
lea eax, [eax + edi + 0x78]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.004306c6
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
mov ebx, 0x10000
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0xc], eax
mov dword [ebp + 8], ecx
jb 0x431b22
push str.PELD:_peGetProcAddress:_export_section___64K
jmp 0x431ae6
push eax
call fcn.00430564
mov esi, eax
pop ecx
test esi, esi
jne 0x431b36
push str.PELD:_peGetProcAddress:_picosMalloc_error
jmp 0x431ae6
mov eax, dword [ebp + 8]
push dword [ebp - 0xc]
add eax, edi
push eax
push esi
call fcn.004306c6
mov ecx, dword [ebp + 0xc]
add esp, 0xc
cmp ecx, ebx
jae 0x431b55
sub cx, word [esi + 0x10]
jmp 0x431ba3
mov eax, esi
xor ebx, ebx
sub eax, dword [ebp + 8]
add dword [esi + 0x20], eax
cmp dword [esi + 0x18], ebx
jbe 0x431b8c
xor eax, eax
jmp 0x431b6b
mov ecx, dword [ebp + 0xc]
mov edx, dword [esi + 0x20]
mov eax, dword [edx + eax*4]
sub eax, dword [ebp + 8]
add eax, esi
push eax
push ecx
call fcn.004303e6
pop ecx
test eax, eax
pop ecx
je 0x431b8c
inc ebx
movzx eax, bx
cmp eax, dword [esi + 0x18]
jb 0x431b68
movzx eax, bx
cmp eax, dword [esi + 0x18]
jae 0x431bab
mov ecx, esi
sub ecx, dword [ebp + 8]
add dword [esi + 0x24], ecx
mov ecx, dword [esi + 0x24]
mov cx, word [ecx + eax*2]
movzx eax, cx
cmp eax, dword [esi + 0x14]
jb 0x431bb6
push esi
call fcn.004305aa
pop ecx
xor eax, eax
jmp 0x431bce
mov ecx, esi
push esi
sub ecx, dword [ebp + 8]
add dword [esi + 0x1c], ecx
mov ecx, dword [esi + 0x1c]
mov ebx, dword [ecx + eax*4]
call fcn.004305aa
pop ecx
lea eax, [ebx + edi]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4320c0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x30
lea eax, [esp]
push ebx
push ebp
push esi
push edi
push eax
push 0xb0b
call fcn.00432090
mov edi, dword [esp + 0x50]
mov esi, dword [esp + 0x4c]
add esp, 8
lea ebx, [esp + 0x10]
mov ebp, 0xb
mov eax, dword [ebx]
mov edx, dword [esi]
mov ecx, eax
push esi
shl ecx, 0x10
xor ecx, edx
mov edx, dword [edi]
xor ecx, edx
mov dword [esi], ecx
mov edx, dword [edi + 4]
mov ecx, dword [esi + 4]
xor ecx, edx
mov edx, dword [esi + 8]
mov dword [esi + 4], ecx
mov ecx, dword [edi + 8]
xor eax, edx
xor eax, ecx
mov dword [esi + 8], eax
call fcn.00432060
add esp, 4
add ebx, 4
dec ebp
jne 0x4320ea
mov eax, dword [esp + 0x3c]
mov ebx, dword [esi]
mov edx, dword [edi]
mov ecx, eax
mov ebp, dword [esi + 4]
push esi
shl ecx, 0x10
xor ecx, ebx
mov ebx, dword [esi + 8]
xor ecx, edx
xor eax, ebx
mov dword [esi], ecx
mov edx, dword [edi + 4]
xor ebp, edx
mov dword [esi + 4], ebp
mov edx, dword [edi + 8]
xor eax, edx
mov dword [esi + 8], eax
call fcn.00431f50
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret

Function at 0x432160
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x3c
mov eax, dword [esp + 0x44]
push ebx
push esi
push edi
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0xc], ecx
lea ecx, [esp + 0xc]
mov dword [esp + 0x10], edx
push ecx
mov dword [esp + 0x18], eax
call fcn.00431f50
lea edx, [esp + 0x10]
push edx
call fcn.00431ea0
lea eax, [esp + 0x20]
push eax
push 0xb1b1
call fcn.00432090
mov esi, dword [esp + 0x5c]
push esi
call fcn.00431ea0
add esp, 0x14
lea edi, [esp + 0x18]
mov ebx, 0xb
mov eax, dword [edi]
mov edx, dword [esi]
mov ecx, eax
push esi
shl ecx, 0x10
xor ecx, edx
mov edx, dword [esp + 0x10]
xor ecx, edx
mov edx, dword [esp + 0x14]
mov dword [esi], ecx
mov ecx, dword [esi + 4]
xor ecx, edx
mov edx, dword [esp + 0x18]
mov dword [esi + 4], ecx
mov ecx, dword [esi + 8]
xor ecx, eax
xor ecx, edx
mov dword [esi + 8], ecx
call fcn.00432060
add esp, 4
add edi, 4
dec ebx
jne 0x4321b7
mov eax, dword [esp + 0x44]
mov ebx, dword [esi]
mov edi, dword [esp + 0xc]
mov edx, eax
mov ecx, dword [esp + 0x10]
push esi
shl edx, 0x10
xor edx, ebx
mov ebx, dword [esp + 0x18]
xor edx, edi
mov dword [esi], edx
mov edx, dword [esi + 4]
xor edx, ecx
mov dword [esi + 4], edx
mov edx, dword [esi + 8]
xor edx, eax
xor edx, ebx
mov dword [esi + 8], edx
call fcn.00431f50
push esi
call fcn.00431ea0
add esp, 8
pop edi
pop esi
pop ebx
add esp, 0x3c
ret
Function at 0x4326d0
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x7c]
mov ecx, dword [eax + 0x330]
test ecx, ecx
push edi
jbe 0x4326fa
mov eax, dword [esi + 8]
test eax, eax
je 0x43270d
push str.Deinitialize
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
jmp 0x43270d
mov eax, dword [esi + 0x80]
test eax, eax
je 0x43270d
push eax
call fcn.004327c0
add esp, 4
mov ecx, dword [esi + 0x7c]
push ecx
call fcn.004327f0
mov eax, dword [esi + 0x70]
add esp, 4
test eax, eax
je 0x432729
push eax
call fcn.004327c0
add esp, 4
mov eax, dword [esi + 0x44]
test eax, eax
je 0x432739
push eax
call fcn.004327c0
add esp, 4
mov eax, dword [esi + 0x74]
test eax, eax
je 0x432749
push eax
call fcn.004327c0
add esp, 4
mov eax, dword [esi + 0x64]
test eax, eax
je 0x432759
push eax
call fcn.004327c0
add esp, 4
mov eax, dword [esi + 0x6c]
test eax, eax
je 0x432769
push eax
call fcn.004327c0
add esp, 4
mov eax, dword [esi + 0x68]
test eax, eax
je 0x432779
push eax
call fcn.004327c0
add esp, 4
mov eax, dword [esi + 0x4c]
test eax, eax
je 0x43278c
mov edx, dword [esi + 0x48]
push 1
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0xc]
test eax, eax
mov edi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
je 0x43279c
push eax
call edi
mov eax, dword [esi + 4]
test eax, eax
je 0x4327a6
push eax
call edi
push esi
call fcn.004327c0
add esp, 4
pop edi
mov eax, 1
pop esi
ret

Function at 0x432878
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffffc
push str.Debug_Window_for_MASM32
push 0
call sub.USER32.dll_FindWindowA
or eax, eax
jne 0x4328a6
push 1
push str.masm32_bindbgwin.exe
call sub.KERNEL32.dll_WinExec
push str.Debug_Window_for_MASM32
push 0
call sub.USER32.dll_FindWindowA
or eax, eax
je 0x43291d
mov dword [ebp - 4], eax
push 0
push 0x44ad22
push 0
push dword [ebp - 4]
call sub.USER32.dll_FindWindowExA
mov dword [ebp - 4], eax
push 0
push 0
push 0xe
push dword [ebp - 4]
call sub.USER32.dll_SendMessageA
push eax
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0xb1
push dword [ebp - 4]
call sub.USER32.dll_SendMessageA
pop eax
or eax, eax
je 0x4328fa
push 0x44ad1f
push 0
push 0xc2
push dword [ebp - 4]
call sub.USER32.dll_SendMessageA
push dword [ebp + 8]
push 0
push 0xc2
push dword [ebp - 4]
call sub.USER32.dll_SendMessageA
push 0
push 0
push 0xb7
push dword [ebp - 4]
call sub.USER32.dll_SendMessageA
leave
ret 4
Function at 0x435e90
Capabilities:
Check os version
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff6c
push ebx
push edi
push 0xffffffffffffffec
push dword [ebp + 8]
call sub.USER32.dll_GetWindowLongA
test eax, 0x80000
je 0x435f3b
mov dword [ebp - 0x94], 0x94
lea eax, [ebp - 0x94]
push eax
call sub.KERNEL32.dll_GetVersionExA
cmp dword [ebp - 0x90], 5
jb 0x435f3b
push str.User32.dll
call sub.KERNEL32.dll_GetModuleHandleA
push str.SetLayeredWindowAttributes
push eax
call sub.KERNEL32.dll_GetProcAddress
mov edi, eax
push 2
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call edi
push 8
push dword [ebp + 8]
call sub.USER32.dll_ShowWindow
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp + 0xc]
jbe 0x435f3b
mov eax, dword [ebp + 0x14]
or eax, eax
je 0x435f3b
mov eax, dword [ebp + 0x18]
or eax, eax
je 0x435f3b
mov ebx, dword [ebp + 0xc]
push 2
push ebx
push 0
push dword [ebp + 8]
call edi
push dword [ebp + 0x18]
call sub.KERNEL32.dll_Sleep
add ebx, dword [ebp + 0x14]
cmp ebx, dword [ebp + 0x10]
jb 0x435f15
push 2
push dword [ebp + 0x10]
push 0
push dword [ebp + 8]
call edi
pop edi
pop ebx
leave
ret 0x14

Function at 0x435f50
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff6c
push ebx
push edi
push 0xffffffffffffffec
push dword [ebp + 8]
call sub.USER32.dll_GetWindowLongA
test eax, 0x80000
je 0x435fe1
mov dword [ebp - 0x94], 0x94
lea eax, [ebp - 0x94]
push eax
call sub.KERNEL32.dll_GetVersionExA
cmp dword [ebp - 0x90], 5
jb 0x435fe1
push str.User32.dll
call sub.KERNEL32.dll_GetModuleHandleA
push str.SetLayeredWindowAttributes
push eax
call sub.KERNEL32.dll_GetProcAddress
mov edi, eax
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp + 0xc]
jae 0x435fe1
mov eax, dword [ebp + 0x14]
or eax, eax
je 0x435fe1
mov eax, dword [ebp + 0x18]
or eax, eax
je 0x435fe1
mov ebx, dword [ebp + 0xc]
push 2
push ebx
push 0
push dword [ebp + 8]
call edi
push dword [ebp + 0x18]
call sub.KERNEL32.dll_Sleep
sub ebx, dword [ebp + 0x14]
cmp ebx, dword [ebp + 0x10]
jg 0x435fbb
push 2
push dword [ebp + 0x10]
push 0
push dword [ebp + 8]
call edi
pop edi
pop ebx
leave
ret 0x14
Function at 0x1002aadf
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x1002aaee
pop dword [ebp - 0x18]
mov eax, 0x24c3e7e1
sub eax, 0x14c13cf3
sub dword [ebp - 0x18], eax
mov dword [ebp - 0x28], 0xd427b1c1
sub dword [ebp - 0x28], 0x85d56c76
mov dword [ebp - 0x24], 0x96590251
add dword [ebp - 0x24], 0x9bda49f4
mov dword [ebp - 0x20], 0x248ef08e
sub dword [ebp - 0x20], 0xd842ac60
mov dword [ebp - 0x1c], 0x1d79e5e3
sub dword [ebp - 0x1c], 0x1d79e5e3
lea eax, [ebp - 0x28]
push eax
mov eax, 0x24985ff3
sub eax, 0x14959fbb
add eax, dword [ebp - 0x18]
call dword [eax]
mov dword [ebp - 0x28], 0x4371cedc
sub dword [ebp - 0x28], 0xceff6586
mov dword [ebp - 0x24], 0x544046fa
sub dword [ebp - 0x24], 0x12d3e585
mov dword [ebp - 0x20], 0x2e0f4aba
add dword [ebp - 0x20], 0x356021b2
mov dword [ebp - 0x1c], 0xaee65012
sub dword [ebp - 0x1c], 0xaee65012
lea ebx, [ebp - 0x28]
push ebx
push eax
mov eax, 0xb61f8587
add eax, 0x59e33aa1
add eax, dword [ebp - 0x18]
call dword [eax]
push 0x40
push 0x1000
push 0x36dc4
push 0
call eax
mov ecx, 0x1c8cace8
add ecx, 0xe3739caa
xor edx, edx
add edx, eax
mov edi, 0xef72a417
sub edi, 0xdf6f0e17
add edi, dword [ebp - 0x18]
mov esi, 0x4744c97d
sub esi, 0x58a1c682
xor dword [ebp - 0x10], eax
mov ebx, dword [edi]
xor dword [ebp - 8], 0x3cb6e2e7
sub ebx, esi
sub dword [ebp - 4], edi
mov dword [edx], ebx
mov dword [ebp - 0x14], 0x99389ffc
add edx, 0xc0b3ce52
sub edx, 0xc0b3ce4e
add edi, 0x7e06bbbf
sub edi, 0x7e06bbbb
loop 0x1002ac12
add eax, 0x55fa8ff7
sub eax, 0x55f976dc
mov ebx, eax
add eax, 5
mov ecx, 0x10000000
add ecx, dword [ebp - 0x18]
call ebx
leave
ret