joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40f040
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43845b
mov eax, dword fs:[0]
push eax
mov eax, 0x1018
call fcn.0042cfa0
push ebx
push edi
mov eax, dword [0x454288]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push str.Creating_DHCP_iprange...
call fcn.0040adf0
push ecx
call fcn.0040f330
test al, al
jne 0x40f0a5
call fcn.00426c8a
push dword [eax]
push str.INTERNAL_ERROR___d_._Please__contact_WTware_tech_support.
push 0x82
push str...ip.cpp
push str.ERROR
call fcn.0040ae90
add esp, 0x14
call fcn.0040ca30
push str.Reading_ignored_MACs...
call fcn.0040adf0
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], eax
lea edi, [ebp - 0x101c]
mov ecx, 0x400
mov dword [ebp - 0x14], 0x400
xor eax, eax
add esp, 4
rep stosd dword es:[edi], eax
push eax
lea ecx, [ebp - 0x1020]
mov dword [ebp - 4], eax
call fcn.004017d0
push 0
push 0
push 0x40ef00
call fcn.00429f98
add esp, 0xc
cmp eax, 0xffffffff
jne 0x40f110
push str.ERROR:__beginthread____failed.
call fcn.0040adf0
add esp, 4
xor bl, bl
jmp 0x40f112
mov bl, 1
lea ecx, [ebp - 0x101c]
call fcn.0040fde0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40f130
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x454288]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x10c], eax
cmp eax, 0xffffffff
je 0x40f24e
push 0x100
lea ebx, [ebp - 0x108]
mov eax, ebx
push 0
push eax
call fcn.00430ad0
mov edi, dword [0x455ddc]
xor ecx, ecx
mov edx, dword [0x455dd8]
mov eax, edi
sub eax, edx
mov dword [ebp - 0x110], ecx
sar eax, 3
add esp, 0xc
xor esi, esi
test eax, eax
je 0x40f241
jmp 0x40f1b0
cmp esi, 0x40
jae 0x40f216
mov eax, edi
sub eax, edx
sar eax, 3
cmp esi, eax
jae 0x40f1c5
lea eax, [edx + esi*8]
jmp 0x40f1fc
call fcn.00426c8a
push dword [eax]
push str.INTERNAL_ERROR___d_._Please__contact_WTware_tech_support.
push 0x7c
push str.e:workcommon_filterSockets.h
push str.ERROR
call fcn.0040ae90
mov ecx, dword [ebp - 0x110]
add esp, 0x14
mov edi, dword [0x455ddc]
mov eax, 0x4553e8
mov edx, dword [0x455dd8]
mov eax, dword [eax]
inc ecx
mov dword [ebx], eax
inc esi
mov eax, edi
mov dword [ebp - 0x110], ecx
sub eax, edx
add ebx, 4
sar eax, 3
cmp esi, eax
jb 0x40f1b0
mov esi, dword [ebp - 0x10c]
test ecx, ecx
je 0x40f247
push 0
lea eax, [ebp - 0x110]
push eax
lea eax, [ecx*4]
push eax
lea eax, [ebp - 0x108]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x40f247
mov esi, dword [ebp - 0x10c]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00426c47
mov esp, ebp
pop ebp
ret
Function at 0x40f7a0
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x454288]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
mov esi, dword [0x455ddc]
push edi
mov edi, dword [ebp + 8]
add esi, 0xfffffff8
test di, di
je 0x40f93f
movzx ebx, di
lea ecx, [ebp - 0x28]
push ebx
push esi
call fcn.00401350
push eax
push str.Bind_at__s:_d.
call fcn.0040adf0
add esp, 0xc
cmp dword [esi + 4], 0xffffffff
je 0x40f80c
call fcn.00426c8a
push dword [eax]
push str.INTERNAL_ERROR___d_._Please__contact_WTware_tech_support.
push 0x18d
push str.e:workwtdhcpwtdhcp.._.._common_filterSockets.h
push str.ERROR
call fcn.0040ae90
add esp, 0x14
push 0x11
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
jne 0x40f839
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Create_socket_failed:__d.
call fcn.0040adf0
add esp, 8
jmp 0x40f962
xorps xmm0, xmm0
mov eax, 2
movdqu xmmword [ebp - 0x18], xmm0
mov word [ebp - 0x18], ax
mov eax, dword [esi]
push edi
mov dword [ebp - 0x14], eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x16], ax
lea eax, [ebp - 0x18]
push 0x10
push eax
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x40f8e1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.bind____failed:__d.
call fcn.0040adf0
add esp, 8
lea ecx, [ebp - 0x28]
push esi
call fcn.00401350
push eax
push str.ERROR__Error_occured_while_binding_socket_for_interface_IP_s.
call fcn.0040adf0
push ebx
push str.ERROR__Port__d_already_used_by_another_application.
call fcn.0040adf0
push str.ERROR__Only_one_application_can_use_TCP_or_UDP_port.
call fcn.0040adf0
add esp, 0x14
push str.ERROR__To_determine_application_that_uses_port__run_Command_Prompt
call fcn.0040adf0
add esp, 4
push str.ERROR__as_Administrator_and_execute_following_command:
call fcn.0040adf0
add esp, 4
push str.netstat__abnp_udp
call fcn.0040adf0
add esp, 4
mov ecx, esi
call fcn.0040e990
jmp 0x40f962
push 4
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 1
push eax
push 0x20
push 0xffff
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x40f92a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.00401350
push eax
push str.setsockopt____for_interface_IP_s_failed:__d.
call fcn.0040adf0
add esp, 0xc
mov ecx, esi
call fcn.0040e990
jmp 0x40f962
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00426c47
mov esp, ebp
pop ebp
ret 4
call fcn.00426c8a
push dword [eax]
push str.INTERNAL_ERROR___d_._Please__contact_WTware_tech_support.
push 0x188
push str.e:workwtdhcpwtdhcp.._.._common_filterSockets.h
push str.ERROR
call fcn.0040ae90
add esp, 0x14
mov ecx, dword [ebp - 8]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00426c47
mov esp, ebp
pop ebp
ret 4
Function at 0x41e370
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], 8
lea edi, [ecx + 1]
sub ecx, edx
lea eax, [edx + 3]
mov dword [ebp - 8], ecx
lea ecx, [ecx]
movzx ecx, byte [edi - 1]
lea eax, [eax + 4]
movzx esi, byte [eax - 7]
lea edi, [edi + 4]
movzx edx, byte [eax - 5]
xor esi, ecx
movzx ecx, byte [edi - 3]
xor edx, ecx
mov ecx, dword [ebp - 8]
or esi, edx
movzx edx, byte [ecx + eax - 4]
movzx ecx, byte [eax - 4]
xor edx, ecx
movzx ecx, byte [edi - 4]
or esi, edx
movzx edx, byte [eax - 6]
xor edx, ecx
or esi, edx
or ebx, esi
dec dword [ebp - 4]
jne 0x41e390
lea eax, [ebx - 1]
shr eax, 8
pop edi
and eax, 1
pop esi
dec eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x423f20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
mov byte [ebp - 2], 0
mov byte [ebp - 1], 1
mov eax, 0x20
movzx edx, byte [eax + esi - 1]
dec eax
mov ecx, edx
movzx ebx, byte [eax + 0x451210]
sub ecx, ebx
xor ebx, edx
sar ecx, 8
dec ebx
and cl, byte [ebp - 1]
or byte [ebp - 2], cl
sar ebx, 8
and byte [ebp - 1], bl
test eax, eax
jne 0x423f35
cmp byte [ebp - 2], al
pop esi
sete al
neg eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x423f70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
add ecx, 2
mov dword [ebp - 4], 0
push esi
mov dword [ebp - 8], ecx
mov eax, 0x451092
push edi
jmp 0x423f90
xor bl, bl
mov esi, ecx
mov edi, 8
lea esp, [esp]
movzx ecx, byte [eax - 1]
lea esi, [esi + 4]
xor cl, byte [esi - 5]
mov dl, byte [eax - 2]
xor dl, byte [esi - 6]
or dl, cl
movzx ecx, byte [eax + 1]
xor cl, byte [esi - 3]
or dl, cl
movzx ecx, byte [eax]
xor cl, byte [esi - 4]
add eax, 4
or dl, cl
or bl, dl
dec edi
jne 0x423fa0
test bl, bl
je 0x423fec
mov ecx, dword [ebp - 4]
add ecx, 0x20
mov dword [ebp - 4], ecx
cmp ecx, 0x180
mov ecx, dword [ebp - 8]
jb 0x423f90
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x424300
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x454288]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push 0x10
push edi
push 0
push esi
push edx
push ecx
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, esi
je 0x424351
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.ERROR:_sendto____failed:__d
call fcn.0040adf0
add esp, 8
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00426c47
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 4]
lea ecx, [ebp - 0x98]
mov dword [ebp - 0x9c], eax
lea eax, [ebp - 0x9c]
push eax
call fcn.00401350
push eax
lea eax, [ebp - 0x88]
push 0x80
push eax
call fcn.0042a327
movzx eax, word [edi + 2]
add esp, 0xc
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
push eax
lea eax, [ebp - 0x88]
push eax
push esi
push eax
push str.__s__Sent__d_bytes_to__s:_d.
call fcn.0040ae40
mov ecx, dword [ebp - 4]
add esp, 0x14
xor ecx, ebp
pop edi
pop esi
call fcn.00426c47
mov esp, ebp
pop ebp
ret
Function at 0x4339ef
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x454288]
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
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0042be9a
mov dword [ebp - 0x14], eax
cmp dword [0x456d28], esi
jne 0x433ae2
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x433a6f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x433bc2
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x433bc2
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x433bc2
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x456d28], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x456d2c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x456d30], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x456d38], eax
test eax, eax
je 0x433adf
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x456d34], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x433b07
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x433afa
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x433b1c
push 4
pop eax
jmp 0x433bc4
cmp dword [ebp - 0x14], esi
je 0x433b1c
push dword [0x456d28]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x433b01
mov eax, dword [0x456d34]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x433b7a
cmp dword [0x456d38], edi
je 0x433b7a
push eax
call ebx
push dword [0x456d38]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x433b7a
test eax, eax
je 0x433b7a
call ecx
test eax, eax
je 0x433b6f
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 0x433b6f
test byte [ebp - 8], 1
jne 0x433b7a
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x433baa
mov eax, dword [0x456d2c]
cmp eax, edi
je 0x433ba7
push eax
call ebx
test eax, eax
je 0x433ba7
call eax
mov esi, eax
test esi, esi
je 0x433ba7
mov eax, dword [0x456d30]
cmp eax, edi
je 0x433ba7
push eax
call ebx
test eax, eax
je 0x433ba7
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x456d28]
call ebx
test eax, eax
je 0x433bc2
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x433bc4
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00426c47
mov esp, ebp
pop ebp
ret
Function at 0x48ee74
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4a9b30]
jne 0x48ee7e
repz ret
jmp fcn.00493927

Function at 0x491ab1
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4a9b30]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0048c052
and dword [ebp - 0x14], 0
cmp dword [0x4acb0c], 0
mov dword [ebp - 0x18], eax
jne 0x491b64
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x491c0c
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x491c0c
mov esi, dword [fcn.00488080]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4acb0c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4acb10], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4acb14], eax
call edi
push eax
call esi
mov dword [0x4acb1c], eax
test eax, eax
je 0x491b64
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4acb18], eax
mov eax, dword [0x4acb18]
mov ecx, dword [ebp - 0x18]
mov esi, dword [fcn.00488084]
cmp eax, ecx
je 0x491bbd
cmp dword [0x4acb1c], ecx
je 0x491bbd
push eax
call esi
push dword [0x4acb1c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x491bbd
test ebx, ebx
je 0x491bbd
call edi
test eax, eax
je 0x491bb4
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x491bb4
test byte [ebp - 8], 1
jne 0x491bbd
or dword [ebp + 0x10], 0x200000
jmp 0x491bf0
mov eax, dword [0x4acb10]
cmp eax, dword [ebp - 0x18]
je 0x491bf0
push eax
call esi
test eax, eax
je 0x491bf0
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x491bf0
mov eax, dword [0x4acb14]
cmp eax, dword [ebp - 0x18]
je 0x491bf0
push eax
call esi
test eax, eax
je 0x491bf0
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4acb0c]
call esi
test eax, eax
je 0x491c0c
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x491c0e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048ee74
leave
ret

Function at 0x103a2520
Capabilities:
Encode data using xor

Disassembly:
jmp 0x103a252a
pushal
call 0x103a2530
pop ebp
sub ebp, 0x10
sub ebp, 0x3a2520
mov al, byte [esp + 0x28]
cmp al, 1
je 0x103a2554
popal
xor eax, eax
inc eax
ret 0xc
jmp 0x103a255d
mov eax, 0x3a2520
add eax, ebp
add eax, 0x63
mov ecx, 0x604
mov edx, 0x8700ab4f
xor byte [eax], dl
inc eax
dec ecx
jne 0x103a2574
jmp 0x103a2587
les eax, [edx + 0x4f73c6c4]
dec edi
dec edi
into
invalid
Function at 0x69b0f0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1c8000]
push edi
or ebp, 0xffffffff
jmp 0x69b112
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x69b119
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x69b108
mov eax, 1
add ebx, ebx
jne 0x69b12b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x69b13c
jne 0x69b15b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x69b15b
dec eax
add ebx, ebx
jne 0x69b148
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x69b120
add ebx, ebx
jne 0x69b157
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x69b1ad
xor ecx, ecx
sub eax, 3
jb 0x69b173
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x69b1e2
sar eax, 1
mov ebp, eax
jmp 0x69b17e
add ebx, ebx
jne 0x69b17e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x69b14c
inc ecx
add ebx, ebx
jne 0x69b18c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x69b14c
add ebx, ebx
jne 0x69b199
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x69b18e
jne 0x69b1aa
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x69b18e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x69b1cc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x69b1be
jmp 0x69b10e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x69b1cc
add edi, ecx
jmp 0x69b10e
pop esi
mov edi, esi
mov ecx, 0x5fab
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x69b1ea
cmp byte [edi], 0x26
jne 0x69b1ea
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x69b1ef
lea edi, [esi + 0x298000]
mov eax, dword [edi]
or eax, eax
je 0x69b267
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2b6aa8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2b6c24]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x69b21c
mov ecx, edi
jns 0x69b24b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2b6c2c]
or eax, eax
je 0x69b261
mov dword [ebx], eax
add ebx, 4
jmp 0x69b239
call dword [esi + 0x2b6c28]
mov ebp, dword [esi + 0x2b6c30]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x23f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x69b29b
sub esp, 0xffffff80
jmp 0x4c43b1
Function at 0x405a03
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x405a12
pop dword [ebp - 0x34]
mov eax, 0x405a12
sub dword [ebp - 0x34], eax
mov dword [ebp - 0x44], 0xe52f6bce
add dword [ebp - 0x44], 0x6922d97d
mov dword [ebp - 0x40], 0xb240c180
sub dword [ebp - 0x40], 0x800d753b
mov dword [ebp - 0x3c], 0x2e91facb
add dword [ebp - 0x3c], 0x1dba4963
mov dword [ebp - 0x38], 0x1fb31038
add dword [ebp - 0x38], 0xe04cefc8
lea eax, [ebp - 0x44]
push eax
mov eax, 0x80f4eb4b
sub eax, 0x80b46a47
add eax, dword [ebp - 0x34]
call dword [eax]
mov dword [ebp - 0x44], 0xe960d74a
add dword [ebp - 0x44], 0x8b11920c
mov dword [ebp - 0x40], 0x1931d07f
sub dword [ebp - 0x40], 0xd7c56f0a
mov dword [ebp - 0x3c], 0x8fce845c
add dword [ebp - 0x3c], 0xd3a0e810
mov dword [ebp - 0x38], 0x9a18a1d7
sub dword [ebp - 0x38], 0x9a18a1d7
lea ebx, [ebp - 0x44]
push ebx
push eax
mov eax, 0x4ff642d4
add eax, 0xb04a3e2c
add eax, dword [ebp - 0x34]
call dword [eax]
push 0x40
push 0x1000
push 0x34978
push 0
call eax
mov ecx, 0xa214878
sub ecx, 0xa210a06
mov esi, eax
mov edi, 0xd29168a3
sub edi, 0xd24a84a3
add edi, dword [ebp - 0x34]
mov ebx, 0xc4b51cbe
sub ebx, 0x1ced83df
xor dword [ebp - 0x14], 0xecd0a185
mov edx, dword [edi]
add dword [ebp - 0x28], ecx
add edx, ebx
xor dword [ebp - 0x30], edx
mov dword [esi], edx
mov dword [ebp - 0x10], 0xf86b82de
add esi, 4
add edi, 0x2d961b41
add edi, 0xd269e4c3
loop 0x405b2f
add eax, 0x81df2448
add eax, 0x7e21c853
mov ebx, eax
add eax, 0x1d8e7660
add eax, 0xe27189a5
mov ecx, 0x400000
add ecx, dword [ebp - 0x34]
call ebx
leave
ret

Function at 0x405cce
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x425f30
push esi
call fcn.00406212
push esi
call fcn.00405c71
mov edi, eax
test edi, edi
jne 0x405cef
xor eax, eax
jmp 0x405d47
push edi
call fcn.004064a6
test byte [0x42a258], 0x80
je 0x405d0c
mov ax, word [edi]
test ax, ax
je 0x405ceb
cmp ax, 0x5c
je 0x405ceb
sub edi, esi
sar edi, 1
jmp 0x405d26
call fcn.00406555
test eax, eax
je 0x405d20
test byte [eax], 0x10
je 0x405ceb
push esi
call fcn.00405c12
push esi
call sub.kernel32.dll_lstrlenW
cmp eax, edi
push esi
jg 0x405d12
call fcn.00405bc6
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405dc2
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405de1
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
mov eax, esi
pop esi
ret 4

Function at 0x405de7
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.kernel32.dll_CreateFileW]
ret 0xc
Function at 0x40b8a0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call sym.___acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov dword [esp], 2
call sym.___acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x40b900
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x4ce3a0]
test esi, esi
jle 0x40ba00
mov eax, dword [0x4ce3a4]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp edx, ebx
ja 0x40b930
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x40b9af
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x40b920
mov dword [esp], ebx
call sym.___mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x40ba27
mov eax, dword [0x4ce3a4]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call sym.__GetPEImageBase
mov edx, dword [0x4ce3a4]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x40ba07
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x40b9a8
sub eax, 4
and eax, 0xfffffffb
jne 0x40b9b6
add dword [0x4ce3a0], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
add ebx, dword [0x4ce3a4]
mov dword [ebx + 4], eax
mov dword [ebx + 8], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x40
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x40b9a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call sym.___report_error
xor esi, esi
jmp 0x40b93a
mov eax, dword [0x4ce3a4]
mov eax, dword [eax + ebx + 0xc]
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 sym.___report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call sym.___report_error
lea esi, [esi]
nop