joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5ebf1f
Capabilities:
Write file on windows

Disassembly:
push 0x2c
mov eax, 0x6b84e6
call fcn.0064d018
mov esi, ecx
mov dword [ebp - 0x30], esi
xor ebx, ebx
cmp dword [esi + 0x38], ebx
je 0x5ec027
cmp byte [esi + 0x3d], bl
je 0x5ec027
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x5ebf57
xor al, al
jmp 0x5ec029
push ebx
push 8
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], bl
call fcn.00419897
lea eax, [esi + 0x40]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x34], eax
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x18]
cmp ecx, 0x10
lea eax, [ebp - 0x38]
mov ecx, dword [ebp - 0x30]
lea edi, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x1c]
lea esi, [ebp - 0x2c]
cmovae edi, edx
cmovae esi, edx
mov ecx, dword [ecx + 0x38]
add eax, edi
push eax
push esi
push dword [ebp - 0x34]
mov edx, dword [ecx]
call dword [edx + 0x20]
sub eax, ebx
je 0x5ebfb4
sub eax, 1
jne 0x5ec00c
mov esi, dword [ebp - 0x30]
jmp 0x5ebfba
mov esi, dword [ebp - 0x30]
mov byte [esi + 0x3d], bl
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 0x2c]
cmp ecx, 0x10
mov edi, dword [ebp - 0x38]
cmovae eax, edx
sub edi, eax
je 0x5ebff2
push dword [esi + 0x4c]
cmp ecx, 0x10
lea eax, [ebp - 0x2c]
push edi
cmovae eax, edx
push 1
push eax
call fcn.00680217
add esp, 0x10
cmp edi, eax
jne 0x5ec017
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x2c]
cmp byte [esi + 0x3d], 0
je 0x5ec015
test edi, edi
jne 0x5ebf7e
push ebx
push 8
lea ecx, [ebp - 0x2c]
call fcn.00419780
jmp 0x5ebf78
dec eax
sub eax, 1
jne 0x5ec01b
inc eax
jmp 0x5ec019
mov bl, 1
mov al, bl
mov bl, al
lea ecx, [ebp - 0x2c]
call fcn.00413890
mov al, bl
jmp 0x5ec029
mov al, 1
call fcn.0064cfc2
ret
Function at 0x6228a2
Capabilities:
Write file on windows

Disassembly:
push 0x2c
mov eax, 0x6b84e6
call fcn.0064d018
mov esi, ecx
mov dword [ebp - 0x30], esi
xor ebx, ebx
cmp dword [esi + 0x38], ebx
je 0x6229ae
cmp byte [esi + 0x3e], bl
je 0x6229ae
mov eax, dword [esi]
mov edi, 0xffff
push edi
call dword [eax + 0xc]
cmp di, ax
jne 0x6228de
xor al, al
jmp 0x6229b0
push ebx
push 8
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], bl
call fcn.00419897
lea eax, [esi + 0x40]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x34], eax
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x18]
cmp ecx, 0x10
lea eax, [ebp - 0x38]
mov ecx, dword [ebp - 0x30]
lea edi, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x1c]
lea esi, [ebp - 0x2c]
cmovae edi, edx
cmovae esi, edx
mov ecx, dword [ecx + 0x38]
add eax, edi
push eax
push esi
push dword [ebp - 0x34]
mov edx, dword [ecx]
call dword [edx + 0x20]
sub eax, ebx
je 0x62293b
sub eax, 1
jne 0x622993
mov esi, dword [ebp - 0x30]
jmp 0x622941
mov esi, dword [ebp - 0x30]
mov byte [esi + 0x3e], bl
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 0x2c]
cmp ecx, 0x10
mov edi, dword [ebp - 0x38]
cmovae eax, edx
sub edi, eax
je 0x622979
push dword [esi + 0x4c]
cmp ecx, 0x10
lea eax, [ebp - 0x2c]
push edi
cmovae eax, edx
push 1
push eax
call fcn.00680217
add esp, 0x10
cmp edi, eax
jne 0x62299e
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x2c]
cmp byte [esi + 0x3e], 0
je 0x62299c
test edi, edi
jne 0x622905
push ebx
push 8
lea ecx, [ebp - 0x2c]
call fcn.00419780
jmp 0x6228ff
dec eax
sub eax, 1
jne 0x6229a2
inc eax
jmp 0x6229a0
mov bl, 1
mov al, bl
mov bl, al
lea ecx, [ebp - 0x2c]
call fcn.00413890
mov al, bl
jmp 0x6229b0
mov al, 1
call fcn.0064cfc2
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x408f6c
nop
mov ecx, 0x399671b8
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43004e
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42e3d0
mov ecx, 0x55b1237d
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x6de815c0
Capabilities:
Create udp socket
Send data
Send data on socket
Set socket configuration

Disassembly:
push esi
mov esi, eax
push ebx
sub esp, 0x54
mov dword [esp + 8], 0
mov dword [esp + 4], 2
mov dword [esp], 2
call sub.WSOCK32.DLL_socket
sub esp, 0xc
cmp eax, 0xffffffff
je 0x6de816fd
mov ebx, eax
mov eax, 2
mov word [esp + 0x30], ax
mov eax, dword [0x6de94054]
mov dword [esp], eax
call sub.WSOCK32.DLL_inet_addr
sub esp, 4
mov dword [esp + 0x34], eax
movzx eax, word [0x6de94074]
mov dword [esp], eax
call sub.WSOCK32.DLL_htons
sub esp, 4
mov word [esp + 0x32], ax
mov eax, dword [0x6de94070]
mov dword [esp + 0x10], 4
mov dword [esp + 0x48], eax
mov eax, dword [0x6de94064]
mov dword [esp + 8], 0x20
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x2c]
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0xffff
mov dword [esp], ebx
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x2c], 1
call sub.WSOCK32.DLL_setsockopt
sub esp, 0x14
mov dword [esp + 8], 1
mov eax, dword [esi + 0x24]
mov dword [esp], ebx
mov dword [esp + 4], eax
call sub.WS2_32.dll_WSAEventSelect
sub esp, 0xc
cmp eax, 0xffffffff
je 0x6de816f2
lea eax, [esp + 0x30]
mov dword [esi], ebx
mov dword [esp + 0x10], eax
lea eax, [esp + 0x40]
mov dword [esp + 0x14], 0x10
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x10
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.WSOCK32.DLL_sendto
sub esp, 0x18
cmp eax, 0xffffffff
je 0x6de8b250
add esi, 0x28
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, 1
sub esp, 4
add esp, 0x54
pop ebx
pop esi
ret
mov dword [esp], ebx
call sub.WSOCK32.DLL_closesocket
sub esp, 4
add esp, 0x54
xor eax, eax
pop ebx
pop esi
ret
call sub.msvcrt.dll_abort
call sub.msvcrt.dll_abort
call sub.msvcrt.dll_abort
call sub.msvcrt.dll_abort
call sub.msvcrt.dll_abort
call sub.msvcrt.dll_abort
call sub.msvcrt.dll_abort
call sub.msvcrt.dll_abort
call sub.msvcrt.dll_abort
call sub.msvcrt.dll_abort
nop
nop
call sub.msvcrt.dll_abort
nop
nop
nop
Function at 0x6de84cd0
Capabilities:
Get mac address on windows

Disassembly:
push ebx
mov eax, 0x2858
call fcn.6de8af80
sub esp, eax
lea ebx, [esp + 0x50]
lea eax, [esp + 0x30]
mov dword [esp + 0x30], 0x2800
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.IPHLPAPI.DLL_GetAdaptersInfo
mov edx, ebx
sub esp, 8
test eax, eax
jne 0x6de84e11
lea esi, [esi]
lea esi, [esi]
mov eax, dword [edx + 0x190]
test eax, eax
jne 0x6de84da5
mov edx, dword [edx]
test edx, edx
jne 0x6de84d10
mov dword [esp + 0x34], 0xb0adadba
lea ecx, [esp + 0x34]
mov eax, 0xffffffba
mov dword [esp + 0x38], 0xb1dfc5ad
mov edx, ecx
mov dword [esp + 0x3c], 0xbeb2df90
mov dword [esp + 0x40], 0x9b9edfbc
mov dword [esp + 0x44], 0x8c9a8d9b
mov dword [esp + 0x48], 0x9099df8c
mov dword [esp + 0x4c], 0x9b918a
lea esi, [esi]
nop
not eax
add edx, 1
mov byte [edx - 1], al
movzx eax, byte [edx]
test al, al
jne 0x6de84d70
mov eax, dword [esp + 0x2864]
mov dword [esp + 8], ecx
mov dword [esp + 4], eax
mov eax, dword [esp + 0x2860]
mov dword [esp], eax
call fcn.6de814d0
add esp, 0x2858
pop ebx
ret
movzx eax, byte [edx + 0x199]
mov dword [esp + 0x20], eax
movzx eax, byte [edx + 0x198]
mov dword [esp + 0x1c], eax
movzx eax, byte [edx + 0x197]
mov dword [esp + 0x18], eax
movzx eax, byte [edx + 0x196]
mov dword [esp + 0x14], eax
movzx eax, byte [edx + 0x195]
mov dword [esp + 0x10], eax
movzx eax, byte [edx + 0x194]
mov dword [esp + 8], 0x6de8e080
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x2864]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x2860]
mov dword [esp], eax
call fcn.6de814d0
add esp, 0x2858
pop ebx
ret
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x2864]
mov dword [esp + 8], str.ERROR:__d
mov dword [esp + 4], eax
mov eax, dword [esp + 0x2860]
mov dword [esp], eax
call fcn.6de814d0
add esp, 0x2858
pop ebx
ret
Function at 0x6de885f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x3c
mov eax, dword [esp + 0x50]
mov edi, dword [esp + 0x58]
mov esi, dword [esp + 0x5c]
mov ebx, dword [esp + 0x60]
test eax, eax
je 0x6de88643
lea edx, [esp + 0x2c]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x54]
mov dword [esp + 0x10], edi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
sub esp, 0x18
test eax, eax
je 0x6de88663
xor ebp, ebp
test ebx, ebx
je 0x6de88659
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], edi
call sub.msvcrt.dll_memcpy
add esp, 0x3c
mov eax, ebp
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebp, 1
cmp dword [esp + 0x2c], esi
jne 0x6de88643
jmp 0x6de88659

Function at 0x6de88790
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x3c
mov eax, dword [esp + 0x40]
test eax, eax
je 0x6de887db
lea edx, [esp + 0x2c]
mov dword [esp + 0x2c], 4
mov dword [esp + 0x14], edx
lea edx, [esp + 0x28]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x44]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
sub esp, 0x18
test eax, eax
je 0x6de887e3
mov eax, dword [esp + 0x48]
add esp, 0x3c
ret
cmp dword [esp + 0x2c], 4
mov eax, dword [esp + 0x28]
jne 0x6de887db
jmp 0x6de887df

Function at 0x6de887f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
push edi
push esi
mov esi, str.0.0.0.0
push ebx
sub esp, 0x3c
mov eax, dword [esp + 0x50]
test eax, eax
je 0x6de888b5
mov dword [esp], 0x2000
lea ebp, [esp + 0x2c]
call sub.msvcrt.dll_malloc
mov dword [esp + 0x14], ebp
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [esp + 0x10], eax
mov esi, eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x2c], 0x2000
mov dword [esp + 4], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp], eax
call edi
sub esp, 0x18
cmp eax, 0xea
jne 0x6de888ab
mov ebx, 0x2000
add ebx, 0x1000
mov dword [esp], esi
mov dword [esp + 4], ebx
call sub.msvcrt.dll_realloc
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x10], eax
mov esi, eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x14], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp], eax
call edi
sub esp, 0x18
cmp eax, 0xea
je 0x6de88860
test eax, eax
mov eax, str.0.0.0.0
cmovne esi, eax
add esp, 0x3c
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x6de888c0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x2c
xor eax, eax
mov edx, dword [esp + 0x30]
test edx, edx
je 0x6de88906
lea eax, [esp + 0x38]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
sub esp, 0x18
test eax, eax
sete al
add esp, 0x2c
ret
Function at 0x6de88b10
Capabilities:
Get common file path

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x21c
mov esi, dword [esp + 0x230]
mov ebp, dword [esi*4 + 0x6de8e150]
test esi, esi
je 0x6de88b31
cmp esi, 5
jne 0x6de88b60
mov dword [esp], ebp
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
sub esp, 4
mov dword [esi*4 + 0x6de944a0], eax
test eax, eax
je 0x6de88bda
add esp, 0x21c
pop ebx
pop esi
pop edi
pop ebp
ret
lea edi, [esp + 0x10]
mov dword [esp + 4], 0x200
mov dword [esp], edi
mov ebx, edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
sub esp, 8
mov edx, dword [ebx]
add ebx, 4
lea eax, [edx - 0x1010101]
not edx
and eax, edx
and eax, 0x80808080
je 0x6de88b7a
mov edx, eax
mov dword [esp], ebp
shr edx, 0x10
test eax, 0x8080
cmove eax, edx
lea edx, [ebx + 2]
cmove ebx, edx
mov ecx, eax
add cl, al
sbb ebx, 3
call sub.msvcrt.dll_strlen
sub ebx, edi
lea eax, [ebx + eax + 2]
cmp eax, 0x200
ja 0x6de88bda
lea eax, [edi + ebx + 1]
mov byte [edi + ebx], 0x5c
mov dword [esp + 4], ebp
mov ebp, edi
mov dword [esp], eax
call sub.msvcrt.dll_strcpy
jmp 0x6de88b31
call sub.msvcrt.dll_abort
nop
Function at 0x6de897d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x64
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x80]
mov esi, dword [esp + 0x78]
mov edx, dword [eax + 4]
mov eax, dword [eax]
mov dword [esp], eax
mov eax, dword [esp]
mov dword [esp + 4], edx
xor edx, edx
and eax, 0x3f
mov dword [esp + 8], eax
mov eax, ecx
add eax, dword [esp]
adc edx, dword [esp + 4]
mov dword [esi], eax
mov dword [esi + 4], edx
test ecx, ecx
je 0x6de899a2
mov eax, dword [esp + 0x7c]
mov edx, esi
add ecx, eax
mov dword [esp], eax
mov dword [esp + 0xc], ecx
jmp 0x6de8983a
mov dword [esp + 8], eax
add dword [esp], 1
mov eax, dword [esp]
cmp dword [esp + 0xc], eax
je 0x6de899a2
mov ecx, dword [esp]
mov edi, dword [esp + 8]
movzx ecx, byte [ecx]
lea eax, [edi + 1]
mov byte [edx + edi + 0x18], cl
mov ecx, eax
and ecx, 0x3f
mov dword [esp + 8], ecx
jne 0x6de89825
mov eax, dword [edx + 0x20]
mov ecx, dword [edx + 0x18]
mov ebx, dword [edx + 0x24]
mov esi, dword [edx + 0x28]
mov edi, dword [edx + 0x2c]
mov ebp, dword [edx + 0x30]
mov dword [esp + 0x28], eax
mov eax, dword [edx + 0x34]
mov dword [esp + 0x20], ecx
mov ecx, dword [edx + 0x1c]
mov dword [esp + 0x2c], ebx
xor ebx, ebx
mov dword [esp + 0x3c], eax
mov eax, dword [edx + 0x38]
mov dword [esp + 0x30], esi
mov dword [esp + 0x40], eax
mov eax, dword [edx + 0x3c]
mov dword [esp + 0x34], edi
mov dword [esp + 0x44], eax
mov eax, dword [edx + 0x40]
mov dword [esp + 0x38], ebp
mov dword [esp + 0x48], eax
mov eax, dword [edx + 0x44]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x4c], eax
mov eax, dword [edx + 0x48]
mov dword [esp + 0x50], eax
mov eax, dword [edx + 0x4c]
mov dword [esp + 0x54], eax
mov eax, dword [edx + 0x50]
mov dword [esp + 0x58], eax
mov eax, dword [edx + 0x54]
mov dword [esp + 0x5c], eax
mov ecx, dword [edx + 8]
mov esi, dword [edx + 0xc]
mov edi, dword [edx + 0x10]
mov dword [esp + 0x78], edx
mov ebp, dword [edx + 0x14]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], ebp
jmp 0x6de8992c
mov eax, ebp
lea edx, [ebx*8]
not eax
sub edx, ebx
or eax, esi
and edx, 0xf
xor eax, edi
add eax, dword [ebx*4 + 0x6de8e220]
add eax, dword [esp + edx*4 + 0x20]
add eax, ecx
mov ecx, dword [ebx*4 + 0x6de8e320]
add ebx, 1
rol eax, cl
mov ecx, ebp
add eax, esi
cmp ebx, 0x40
je 0x6de89971
mov ebp, edi
mov edi, esi
mov esi, eax
mov eax, ebx
shr eax, 4
cmp eax, 1
je 0x6de89960
test eax, eax
je 0x6de89950
cmp eax, 2
jne 0x6de898f0
mov eax, edi
lea edx, [ebx + ebx*2 + 5]
xor eax, ebp
and edx, 0xf
xor eax, esi
jmp 0x6de89904
mov eax, edi
mov edx, ebx
xor eax, ebp
and eax, esi
xor eax, ebp
jmp 0x6de89904
mov eax, edi
lea edx, [ebx + ebx*4 + 1]
xor eax, esi
and edx, 0xf
and eax, ebp
xor eax, edi
jmp 0x6de89904
mov edx, dword [esp + 0x78]
add eax, dword [esp + 0x14]
add ebp, dword [esp + 0x10]
add esi, dword [esp + 0x18]
add edi, dword [esp + 0x1c]
mov dword [edx + 0xc], eax
add dword [esp], 1
mov eax, dword [esp]
mov dword [edx + 8], ebp
mov dword [edx + 0x10], esi
mov dword [edx + 0x14], edi
cmp dword [esp + 0xc], eax
jne 0x6de8983a
add esp, 0x64
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x6de8a5c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x6de94838]
test esi, esi
jle 0x6de8a6d0
mov edi, dword [0x6de9483c]
xor ebx, ebx
lea edx, [edi + 0xc]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x6de8a5f4
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x6de8a675
add ebx, 1
add edx, 0x14
cmp ebx, esi
jne 0x6de8a5e0
mov dword [esp], eax
mov ebx, eax
call fcn.6de8ad10
test eax, eax
mov edi, eax
je 0x6de8a6f7
mov eax, dword [0x6de9483c]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call fcn.6de8ae10
add eax, dword [edi + 0xc]
mov edx, dword [0x6de9483c]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp], eax
mov dword [esp + 4], edx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x6de8a6d7
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x6de8a66e
sub eax, 4
and eax, 0xfffffffb
jne 0x6de8a680
add dword [0x6de94838], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
add ebx, dword [0x6de9483c]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
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 0x6de8a66e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.6de8b294
lea esi, [esi]
xor esi, esi
jmp 0x6de8a5fe
mov eax, dword [0x6de9483c]
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 fcn.6de8b294
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call fcn.6de8b294
mov esi, esi
lea edi, [edi]

Function at 0x6de8a990
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x6de94848
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x6de94840]
sub esp, 4
test ebx, ebx
je 0x6de8a9e5
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x6de8a9de
test esi, esi
je 0x6de8a9de
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x6de8a9c0
mov dword [esp], 0x6de94848
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x6de8b294
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call fcn.6de8b230
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 sub.msvcrt.dll_fwrite
mov dword [esp], 2
call fcn.6de8b230
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop
nop
jmp fcn.6de813e0
Function at 0x84751c
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov esi, 0x8472a2
or edi, ecx
inc edi
dec edi
call fcn.00847545
or ecx, ecx
add edi, edi
xor dword [eax], esi
sub edi, 1
inc eax
inc ecx
and ecx, ecx
mov ecx, ecx
cmp eax, edx
jne fcn.0084751c
or edi, edi
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
nop
je 0x430072
mov ebx, 0x408ecc
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x39be4c7c
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
loop 0x430060
nop
nop
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4300d2
nop
nop
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x62f30306
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x40bb90
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x444183
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x455100]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [ebp - 4], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
mov dword [edi + 0x3c], 0
lea ecx, [edi + 0x40]
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 0x14]
mov edx, dword [ebp + 0x20]
mov dword [edi + 0x4c], 0
mov dword [edi + 0x50], eax
mov eax, dword [ebp + 8]
mov dword [edi + 0x54], eax
mov eax, dword [ebp + 0x1c]
mov dword [edi + 0x5c], eax
mov eax, dword [ebp + 0x18]
mov dword [edi + 0x58], esi
mov dword [edi + 0x60], edx
mov byte [edi + 0x64], 0
mov dword [edi + 0x68], eax
test byte [esi + 8], 8
mov byte [ebp - 4], 2
je 0x40bc8a
test dl, 0x10
jne 0x40bc8a
mov al, 1
jmp 0x40bc8c
xor al, al
mov byte [edi + 0x6c], al
mov eax, dword [ebp + 0x10]
mov dword [edi + 0x70], eax
mov ebx, dword [ecx + 4]
mov edx, ebx
mov esi, dword [esi + 0x18]
sar edx, 3
cmp esi, edx
jae 0x40bcb0
lea eax, [esi*8]
mov dword [ecx + 4], eax
jmp 0x40bce3
jbe 0x40bce3
mov eax, dword [ecx + 8]
sar eax, 3
cmp esi, eax
jbe 0x40bcc8
lea eax, [ebp + 0x17]
push eax
push esi
call fcn.004031d0
jmp 0x40bce3
sub esi, edx
je 0x40bce0
shl esi, 3
push esi
push 0
push ebx
call fcn.004217a0
add esp, 0xc
lea ecx, [edi + 0x40]
add ebx, esi
mov dword [ecx + 4], ebx
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c