joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407b10
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x46ed28]
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.00405b33
and dword [ebp - 0x14], 0
cmp dword [0x485f98], 0
mov dword [ebp - 0x18], eax
jne 0x407bc3
push 0x4021b8
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x407c6b
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4021ac
push ebx
call edi
test eax, eax
je 0x407c6b
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x40219c
push ebx
mov dword [0x485f98], eax
call edi
push eax
call esi
push 0x402188
push ebx
mov dword [0x485f9c], eax
call edi
push eax
call esi
push 0x40216c
push ebx
mov dword [0x485fa0], eax
call edi
push eax
call esi
mov dword [0x485fa8], eax
test eax, eax
je 0x407bc3
push 0x402154
push ebx
call edi
push eax
call esi
mov dword [0x485fa4], eax
mov eax, dword [0x485fa4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x407c1c
cmp dword [0x485fa8], ecx
je 0x407c1c
push eax
call esi
push dword [0x485fa8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x407c1c
test ebx, ebx
je 0x407c1c
call edi
test eax, eax
je 0x407c13
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x407c13
test byte [ebp - 8], 1
jne 0x407c1c
or dword [ebp + 0x10], 0x200000
jmp 0x407c4f
mov eax, dword [0x485f9c]
cmp eax, dword [ebp - 0x18]
je 0x407c4f
push eax
call esi
test eax, eax
je 0x407c4f
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x407c4f
mov eax, dword [0x485fa0]
cmp eax, dword [ebp - 0x18]
je 0x407c4f
push eax
call esi
test eax, eax
je 0x407c4f
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x485f98]
call esi
test eax, eax
je 0x407c6b
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x407c6d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00407634
leave
ret
Function at 0x4582bf
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x24c
push ebx
push ebp
mov ebp, dword [esp + 0x258]
push esi
push edi
lea ecx, [esp + 0x30]
call fcn.0040c060
fld1
lea eax, [esp + 0x24]
fstp qword [esp + 0x28]
push eax
push ebp
call dword [sym.imp.ole32.dll_StringFromIID]
mov esi, eax
test esi, esi
jl 0x4584c0
mov edi, dword [esp + 0x24]
call fcn.0040fff0
mov esi, eax
push str.interface_
lea eax, [esp + 0x34]
call fcn.004021e0
mov edi, esi
lea eax, [esp + 0x30]
call fcn.0040d330
mov edi, str.TypeLib
lea eax, [esp + 0x30]
call fcn.0040d330
push esi
call fcn.004137d3
mov ecx, dword [esp + 0x28]
add esp, 4
push ecx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x4584c0
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x54]
push edx
push eax
push eax
push eax
mov eax, dword [esp + 0x30]
push eax
mov dword [esp + 0x2c], 0x1fe
call ebx
mov esi, eax
test esi, esi
jne 0x4584b5
mov eax, dword [esp + 0x14]
shr eax, 1
xor ecx, ecx
lea edi, [esp + 0x50]
mov dword [esp + 0x14], eax
mov word [esp + eax*2 + 0x50], cx
call fcn.0040fff0
lea edx, [esp + 0x40]
mov edi, eax
push edx
push edi
call dword [sym.imp.ole32.dll_CLSIDFromString]
push edi
mov esi, eax
call fcn.004137d3
add esp, 4
test esi, esi
jl 0x4584b5
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x54]
push ecx
push 0
push 0
push 0x48a9a0
push edx
mov dword [esp + 0x2c], 0x1fe
call ebx
test eax, eax
jne 0x458410
mov eax, dword [esp + 0x14]
shr eax, 1
lea edx, [esp + 0x50]
xor ecx, ecx
push edx
mov dword [esp + 0x18], eax
mov word [esp + eax*2 + 0x54], cx
call fcn.00413f97
fstp qword [esp + 0x2c]
add esp, 4
fld1
lea eax, [esp + 0x20]
push eax
push 0
sub esp, 0x10
fstp qword [esp + 8]
fld qword [esp + 0x40]
fstp qword [esp]
call fcn.00415a50
fnstcw word [esp + 0x2a]
add esp, 0x10
movzx eax, word [esp + 0x1a]
or eax, 0xc00
mov dword [esp + 0x20], eax
fldcw word [esp + 0x20]
fistp dword [esp + 0x20]
mov cx, word [esp + 0x20]
movzx edx, cx
push edx
fldcw word [esp + 0x1e]
lea edx, [esp + 0x4c]
fld qword [esp + 0x34]
fnstcw word [esp + 0x1e]
movzx eax, word [esp + 0x1e]
or eax, 0xc00
mov dword [esp + 0x24], eax
fldcw word [esp + 0x24]
fistp dword [esp + 0x24]
mov ax, word [esp + 0x24]
movzx ecx, ax
push ecx
fldcw word [esp + 0x22]
push edx
call dword [sym.imp.OLEAUT32.dll_RegisterTypeLib]
mov esi, eax
test esi, esi
jl 0x4584b5
mov edx, dword [esp + 0x264]
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
push edx
push ebp
push eax
mov eax, dword [ecx + 0x18]
call eax
mov esi, eax
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x30]
call fcn.00402620
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x24c
ret
Function at 0x4017fc
Capabilities:
Read and send data from client to server
Read file on windows
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov dword [esp + 4], 0x406175
mov dword [esp], str.flag.txt
call sym._fopen
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x401859
mov dword [esp], str.____Erro_ao_abrir_o_arquivo_da_flag.
call sym._puts
jmp 0x4018a7
mov edx, dword [ebp - 0x10]
mov eax, dword [0x408070]
mov dword [esp + 0xc], 0
mov dword [esp + 8], edx
lea edx, [ebp - 0x410]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._send_16
sub esp, 0x10
mov eax, dword [ebp - 0xc]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x400
mov dword [esp + 4], 1
lea eax, [ebp - 0x410]
mov dword [esp], eax
call sym._fread
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x401830
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sym._fclose
mov eax, dword [0x408070]
mov dword [esp], eax
call sym._closesocket_4
sub esp, 4
call sym._WSACleanup_0
leave
ret

Function at 0x4018a9
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0xc], 0x400
mov dword [esp], 0x400
call sym._malloc
mov dword [ebp - 0x10], eax
mov dword [esp + 8], 0x400
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._memset
mov eax, dword [ebp + 8]
mov dword [0x408070], eax
mov eax, dword [0x408070]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x54
mov dword [esp + 4], str.Bem_vindo_a_mais_um_desafio_da_FIAP__Por_favor__escreva_sua_mensagem_e_ganhe_a_flag._n
mov dword [esp], eax
call sym._send_16
sub esp, 0x10
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x4019ae
call sym._WSAGetLastError_0
mov dword [esp + 4], eax
mov dword [esp], str.Send_failed_with_error:__d_n
call sym._printf
mov eax, dword [0x408070]
mov dword [esp], eax
call sym._closesocket_4
sub esp, 4
mov eax, 1
jmp 0x4019b4
mov eax, dword [0x408070]
mov dword [esp + 0xc], 0
mov edx, dword [ebp - 0xc]
mov dword [esp + 8], edx
mov edx, dword [ebp - 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym._recv_16
sub esp, 0x10
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jle 0x401983
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call sym._Vulnerable
mov eax, dword [0x408070]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x18
mov dword [esp + 4], str.Obrigado_pela_mensagem__n
mov dword [esp], eax
call sym._send_16
sub esp, 0x10
mov dword [ebp - 0x14], eax
cmp dword [ebp + 8], 0
jne 0x401949
leave
ret 4
Function at 0x402070
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x408044
call sym._EnterCriticalSection_4
mov ebx, dword [0x40803c]
sub esp, 4
test ebx, ebx
je 0x4020bb
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x4020b4
test esi, esi
je 0x4020b4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402090
mov dword [esp], 0x408044
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x4022a0
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x4022f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x4023c8
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x40232e
cmp eax, 4
jne 0x402350
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x40233e
cmp edx, 4
je 0x40233e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.004022a0
Function at 0x41b500
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x48
push 1
mov esi, eax
mov ebx, ecx
call dword [0x4a5424]
mov edi, eax
xor eax, eax
add esp, 8
mov dword [ebp - 4], 0xc
mov dword [ebx + 0x39c], edi
cmp edi, eax
je 0x41b5be
mov ecx, dword [ebp + 8]
mov dword [ebx + 0x38c], esi
push esi
mov dword [ebx + 0x394], eax
mov dword [ebx + 0x398], eax
mov dword [ebx + 0x390], eax
push ecx
lea esi, [edi + 0x10]
mov dword [edi + 4], 0xffffffff
mov dword [edi], eax
call fcn.0041b320
add esp, 8
test eax, eax
je 0x41b5be
mov edx, dword [ebx + 0x388]
push edx
call sym.00000000000000000000_curl_free
mov eax, dword [ebp + 8]
push eax
call dword [0x4a5420]
add esp, 8
mov dword [ebx + 0x388], eax
test eax, eax
je 0x41b5be
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi + 4], eax
cmp eax, 0xffffffff
je 0x41b5be
lea eax, [edi + 0x10]
push eax
push 0x41b3c0
call fcn.00411850
add esp, 8
mov dword [edi], eax
test eax, eax
jne 0x41b5e0
call fcn.0046c318
mov ecx, dword [eax]
mov dword [ebp - 4], ecx
add ebx, 0x388
push ebx
call fcn.0041b450
mov edx, dword [ebp - 4]
add esp, 4
push edx
call dword [sym.imp.KERNEL32.dll_SetLastError]
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 0x475512
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4a5c78]
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.00472a46
and dword [ebp - 0x14], 0
cmp dword [0x4a8fc0], 0
mov dword [ebp - 0x18], eax
jne 0x4755c5
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x47566d
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x47566d
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4a8fc0], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4a8fc4], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4a8fc8], eax
call edi
push eax
call esi
mov dword [0x4a8fd0], eax
test eax, eax
je 0x4755c5
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4a8fcc], eax
mov eax, dword [0x4a8fcc]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x47561e
cmp dword [0x4a8fd0], ecx
je 0x47561e
push eax
call esi
push dword [0x4a8fd0]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x47561e
test ebx, ebx
je 0x47561e
call edi
test eax, eax
je 0x475615
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x475615
test byte [ebp - 8], 1
jne 0x47561e
or dword [ebp + 0x10], 0x200000
jmp 0x475651
mov eax, dword [0x4a8fc4]
cmp eax, dword [ebp - 0x18]
je 0x475651
push eax
call esi
test eax, eax
je 0x475651
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x475651
mov eax, dword [0x4a8fc8]
cmp eax, dword [ebp - 0x18]
je 0x475651
push eax
call esi
test eax, eax
je 0x475651
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4a8fc0]
call esi
test eax, eax
je 0x47566d
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x47566f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00468861
leave
ret

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
mov ecx, 0x6b6d1144
nop
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x43304e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x433024
nop
mov eax, str._b__n_
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x2d4873ce
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x433084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x509050
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xb2000]
push edi
jmp 0x50906a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x509071
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x509060
mov eax, 1
add ebx, ebx
jne 0x509083
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x509094
jne 0x5090b3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5090b3
dec eax
add ebx, ebx
jne 0x5090a0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x509078
add ebx, ebx
jne 0x5090af
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x509105
xor ecx, ecx
sub eax, 3
jb 0x5090cb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x50913a
sar eax, 1
mov ebp, eax
jmp 0x5090d6
add ebx, ebx
jne 0x5090d6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5090a4
inc ecx
add ebx, ebx
jne 0x5090e4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5090a4
add ebx, ebx
jne 0x5090f1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x5090e6
jne 0x509102
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5090e6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x509124
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x509116
jmp 0x509066
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x509124
add edi, ecx
jmp 0x509066
pop esi
mov edi, esi
mov ecx, 0x3ea9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x509142
cmp byte [edi], 0x11
jne 0x509142
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 0x509147
lea edi, [esi + 0x102000]
mov eax, dword [edi]
or eax, eax
je 0x5091bf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x138d68]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x138ee4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x509174
mov ecx, edi
jns 0x5091a3
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 + 0x138ee8]
or eax, eax
je 0x5091b9
mov dword [ebx], eax
add ebx, 4
jmp 0x509191
call dword [esi + 0x138ef8]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x5091f0
cmp al, 0xef
ja 0x5091e3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x5091c5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x5091d2
mov ebp, dword [esi + 0x138eec]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
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 0x509224
sub esp, 0xffffff80
jmp 0x42800a
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x433072
nop
nop
mov ebx, 0x40de38
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x38f540f0
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x433060
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
je 0x4330d2
nop
nop
nop
nop
mov ebx, 0x4304d8
nop
nop
nop
nop
mov ecx, ebx
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
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x149a37d5
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x1001aa00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100b2ed0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [esp + 0x30]
push ebp
push esi
push edi
mov ecx, dword [eax]
push ecx
lea ecx, [esp + 0x10]
call fcn.100a80d2
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0
xor ebp, ebp
call fcn.1001bcf0
mov ecx, dword [esp + 0x40]
mov byte [esp + 0x2c], 1
cmp ecx, 3
ja case.default.0x1001aa54
jmp dword [ecx*4 + 0x1001abbc]
mov al, byte [esi]
test al, al
je 0x1001aa82
cmp al, 0x20
je 0x1001aa6e
cmp al, 0xa1
jne 0x1001aa82
cmp byte [esi + 1], al
jne 0x1001aa82
test al, 0x80
je 0x1001aa7a
mov al, byte [esi + 1]
inc esi
test al, al
je 0x1001aa82
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x1001aa61
test ecx, ecx
je case.default.0x1001aa54
mov dl, byte [esi]
xor ecx, ecx
test dl, dl
mov eax, esi
je case.default.0x1001aa54
mov edi, dword [esp + 0x3c]
mov dl, byte [eax]
test dl, 0x80
je 0x1001aac8
cmp dl, 0xa1
jne 0x1001aabc
cmp byte [eax + 1], 0xa1
jne 0x1001aabc
test ecx, ecx
jne 0x1001aab4
mov edi, eax
mov ecx, 1
inc eax
jmp 0x1001aadc
mov dl, byte [eax + 1]
inc eax
xor ecx, ecx
test dl, dl
je 0x1001aaf6
jmp 0x1001aadc
cmp dl, 0x20
jne 0x1001aada
test ecx, ecx
jne 0x1001aad3
mov edi, eax
mov ecx, 1
jmp 0x1001aadc
xor ecx, ecx
mov dl, byte [eax + 1]
inc eax
test dl, dl
jne 0x1001aa9c
cmp ecx, 1
jne case.default.0x1001aa54
mov dl, byte [edi]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x1001aa54
mov dl, byte [eax - 1]
lea edi, [eax - 1]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x1001aa54
mov al, byte [esi]
test al, al
je 0x1001ab4e
test al, 0x80
mov byte [esp + 0x3c], al
je 0x1001ab34
mov cl, byte [esi + 1]
test cl, cl
je 0x1001ab4e
cmp al, 0xa1
jne 0x1001ab24
cmp cl, al
je 0x1001ab31
mov ax, word [esi]
lea ecx, [esp + 0x10]
push eax
call fcn.1001bf80
inc esi
jmp 0x1001ab46
cmp al, 0x20
je 0x1001ab46
mov ecx, dword [esp + 0x3c]
push ecx
lea ecx, [esp + 0x14]
call fcn.1001bfc0
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x1001ab0d
push 0
lea ecx, [esp + 0x14]
call fcn.1001bfc0
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.10027dd0
mov edx, dword [esp + 0x38]
add esp, 4
test ebp, ebp
mov dword [edx], eax
je 0x1001ab81
mov al, byte [esp + 0x3c]
mov byte [ebp], al
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 0
mov dword [esp + 0x10], 0x100c1ac0
call fcn.1001bef0
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call fcn.100a8064
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x100229d0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x100b364b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.100a7dd9
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x10022a52
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.100a58f3
mov eax, dword [eax]
push 0x100dacf8
push eax
call fcn.100979d4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.100a8064
test bl, bl
je 0x10022a52
push 0x100dacf8
lea ecx, [esp + 0xc]
call fcn.100a83f4
push 0x100dad04
lea ecx, [esp + 0xc]
call fcn.100a83f4
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x10022a8e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.100a8064
jmp 0x10022b59
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x10022b12
lea edx, [esp + 0x7c]
push 0x100dad00
push edx
call fcn.100979d4
add esp, 8
test eax, eax
je 0x10022b12
lea eax, [esp + 0x7c]
push 0x100dacfc
push eax
call fcn.100979d4
add esp, 8
test eax, eax
je 0x10022b12
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10022aa2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.100a8064
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4