joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4bc750
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
je 0x4bc75f
cmp dword [ebp + 0x10], 0
jne 0x4bc763
xor eax, eax
pop ebp
ret
mov edx, dword [ebp + 8]
mov word [edx + 0x5c], 2
push 0
push dword [ebp + 0xc]
call sym.Project1.exe__TcmSocket_get_ip_data_qpc11TcmCastMode
add esp, 8
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x60], eax
mov ax, word [ebp + 0x10]
push eax
call sub.WSOCK32.DLL_htons
mov edx, dword [ebp + 8]
mov word [edx + 0x5e], ax
push str.connect___failed
push 0x10
mov ecx, dword [ebp + 8]
add ecx, 0x5c
push ecx
mov eax, dword [ebp + 8]
push dword [eax + 0x88]
call sub.WSOCK32.DLL_connect
push eax
push dword [ebp + 8]
call sym.Project1.exe__TcmSocket_ErrorCheck_qipc
add esp, 0xc
inc eax
setne al
and eax, 1
pop ebp
ret

Function at 0x4bc7c4
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
mov eax, 0x4ca720
call fcn.004aff88
cmp byte [ebp + 0xc], 0
je 0x4bc871
mov dword [ebp - 0x2c], 0x10
lea edx, [ebp - 0x2c]
push edx
mov ecx, dword [ebp + 8]
add ecx, 0x5c
push ecx
mov eax, dword [ebp + 8]
push dword [eax + 0x88]
call sub.WSOCK32.DLL_getsockname
inc eax
je 0x4bc857
mov edx, dword [ebp + 8]
mov cx, word [edx + 0x5e]
push ecx
call sub.WSOCK32.DLL_ntohs
movzx eax, ax
mov edx, dword [ebp + 8]
mov dword [edx + 0x80], eax
mov word [ebp - 0x18], 8
mov ecx, dword [ebp + 8]
push dword [ecx + 0x60]
call sub.WSOCK32.DLL_inet_ntoa
mov edx, eax
lea eax, [ebp - 4]
call fcn.004bb388
inc dword [ebp - 0xc]
lea edx, [ebp - 4]
mov eax, dword [ebp + 8]
add eax, 0x78
call fcn.004bb584
dec dword [ebp - 0xc]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004bb554
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x74], 0
jne 0x4bc871
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x90]
mov eax, dword [ebp + 8]
call sym.Project1.exe__TcmSocket_SetBufferSize_qqri
mov edx, dword [ebp + 8]
cmp word [edx + 0x3a], 0
je 0x4bc88a
mov ebx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x3c]
call dword [ebx + 0x38]
mov edx, dword [ebp - 0x28]
mov dword fs:[0], edx
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x14], 0
je 0x4bc971
mov eax, dword [ebp + 8]
cmp dword [eax + 0x88], 0xffffffff
jne 0x4bc975
xor eax, eax
pop ebp
ret
cmp dword [ebp + 0x18], 0
jg 0x4bc986
mov eax, dword [ebp + 0x14]
call fcn.00437c04
mov dword [ebp + 0x18], eax
mov edx, dword [ebp + 8]
mov word [edx + 0x5c], 2
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [eax + 0x60], ecx
mov dx, word [ebp + 0x10]
push edx
call sub.WSOCK32.DLL_htons
mov ecx, dword [ebp + 8]
mov word [ecx + 0x5e], ax
push str.send_to___failed
push 0x10
mov eax, dword [ebp + 8]
add eax, 0x5c
push eax
push 0
push dword [ebp + 0x18]
push dword [ebp + 0x14]
mov edx, dword [ebp + 8]
push dword [edx + 0x88]
call sub.WSOCK32.DLL_sendto
push eax
push dword [ebp + 8]
call sym.Project1.exe__TcmSocket_ErrorCheck_qipc
add esp, 0xc
inc eax
setne al
and eax, 1
pop ebp
ret
Function at 0x4bca10
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x10], 0
je 0x4bca25
mov eax, dword [ebp + 8]
cmp dword [eax + 0x88], 0xffffffff
jne 0x4bca29
xor eax, eax
pop ebp
ret
cmp dword [ebp + 0x14], 0
jg 0x4bca3a
mov eax, dword [ebp + 0x10]
call fcn.00437c04
mov dword [ebp + 0x14], eax
push str.send___failed
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call sub.WSOCK32.DLL_send
push eax
push dword [ebp + 8]
call sym.Project1.exe__TcmSocket_ErrorCheck_qipc
add esp, 0xc
cmp eax, dword [ebp + 0x14]
sete al
and eax, 1
pop ebp
ret

Function at 0x4bca88
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
cmp dword [ebp + 0xc], 0
jne 0x4bca9b
xor eax, eax
jmp 0x4bcb4a
cmp dword [ebp + 0x14], 0xffffffff
jne 0x4bcaad
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x88]
mov dword [ebp + 0x14], ecx
cmp dword [ebp + 0x18], 0
jne 0x4bcad9
push str.recv___failed
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 0x14]
call sub.WSOCK32.DLL_recv
push eax
push dword [ebp + 8]
call sym.Project1.exe__TcmSocket_ErrorCheck_qipc
add esp, 0xc
mov dword [ebp - 4], eax
jmp 0x4bcb3d
mov dword [ebp - 8], 0x10
push str.recvfrom___failed
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x18]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 0x14]
call sub.WSOCK32.DLL_recvfrom
push eax
push dword [ebp + 8]
call sym.Project1.exe__TcmSocket_ErrorCheck_qipc
add esp, 0xc
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
cmp byte [edx + 0x59], 5
je 0x4bcb1d
mov ecx, dword [ebp + 8]
cmp byte [ecx + 0x59], 4
jne 0x4bcb3d
push str.getpeername___failt_
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call sub.WSOCK32.DLL_getpeername
push eax
push dword [ebp + 8]
call sym.Project1.exe__TcmSocket_ErrorCheck_qipc
add esp, 0xc
cmp dword [ebp - 4], 0xffffffff
jne 0x4bcb47
xor eax, eax
jmp 0x4bcb4a
mov eax, dword [ebp - 4]
pop ecx
pop ecx
pop ebp
ret

Function at 0x4bce7c
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe6c
cmp byte [0x4c9808], 0
jne 0x4bceb3
mov word [ebp - 2], 0x202
lea eax, [ebp - 0x194]
push eax
mov dx, word [ebp - 2]
push edx
call sub.WSOCK32.DLL_WSAStartup
test eax, eax
sete cl
and ecx, 1
mov byte [0x4c9808], cl
mov al, byte [0x4c9808]
mov esp, ebp
pop ebp
ret
Function at 0x4bcf34
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffcc
mov eax, 0x4ca788
call fcn.004aff88
mov word [ebp - 0x1c], 0x14
mov edx, 0x4c99a3
lea eax, [ebp - 4]
call fcn.004bb388
inc dword [ebp - 0x10]
mov word [ebp - 0x1c], 8
call sym.Project1.exe__TcmSocket_wsa_startup_qv
test al, al
jne 0x4bcf8d
or eax, 0xffffffff
push eax
dec dword [ebp - 0x10]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004bb554
pop eax
mov edx, dword [ebp - 0x2c]
mov dword fs:[0], edx
jmp 0x4bd04c
push dword [ebp + 8]
call sym.Project1.exe__TcmSocket_isValidIP_qpc
pop ecx
test al, al
je 0x4bcfa7
push dword [ebp + 8]
call sub.WSOCK32.DLL_inet_addr
mov dword [ebp - 0x30], eax
jmp 0x4bd01b
cmp dword [ebp + 8], 0
je 0x4bcfb5
mov ecx, dword [ebp + 8]
cmp byte [ecx], 0
jne 0x4bcff3
mov word [ebp - 0x1c], 0x20
lea eax, [ebp - 8]
call fcn.00408e34
push eax
inc dword [ebp - 0x10]
call sym.Project1.exe__TcmSocket_HostName_qv
pop ecx
lea edx, [ebp - 8]
lea eax, [ebp - 4]
call fcn.004bb584
dec dword [ebp - 0x10]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004bb554
lea eax, [ebp - 4]
call fcn.0040abb0
mov dword [ebp + 8], eax
push dword [ebp + 8]
call sub.WSOCK32.DLL_gethostbyname
mov dword [ebp - 0x34], eax
mov word [ebp - 0x1c], 8
cmp dword [ebp - 0x34], 0
je 0x4bd016
mov edx, dword [ebp - 0x34]
mov ecx, dword [edx + 0xc]
mov eax, dword [ecx]
mov edx, dword [eax]
jmp 0x4bd018
xor edx, edx
mov dword [ebp - 0x30], edx
cmp byte [ebp + 0xc], 1
jne 0x4bd02d
push dword [ebp - 0x30]
call sym.Project1.exe__TcmSocket_IP_UnicastToBroadcast_qul
pop ecx
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
push eax
dec dword [ebp - 0x10]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004bb554
pop eax
mov edx, dword [ebp - 0x2c]
mov dword fs:[0], edx
mov esp, ebp
pop ebp
ret
Function at 0x4bd0c8
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb0
mov eax, 0x4ca884
call fcn.004aff88
call sym.Project1.exe__TcmSocket_wsa_startup_qv
test al, al
jne 0x4bd135
mov word [ebp - 0x20], 8
mov edx, 0x4c99a4
lea eax, [ebp - 4]
call fcn.004bb388
inc dword [ebp - 0x14]
lea edx, [ebp - 4]
mov eax, dword [ebp + 8]
call fcn.004bb584
mov eax, dword [ebp + 8]
mov word [ebp - 0x20], 0x14
push eax
dec dword [ebp - 0x14]
lea eax, [ebp - 4]
mov edx, 2
call fcn.004bb554
pop eax
mov word [ebp - 0x20], 8
inc dword [ebp - 0x14]
mov edx, dword [ebp - 0x30]
mov dword fs:[0], edx
jmp 0x4bd1e0
push 0x20
lea ecx, [ebp - 0x50]
push ecx
call sub.WSOCK32.DLL_gethostname
inc eax
jne 0x4bd194
mov word [ebp - 0x20], 0x20
mov edx, 0x4c99a5
lea eax, [ebp - 8]
call fcn.004bb388
inc dword [ebp - 0x14]
lea edx, [ebp - 8]
mov eax, dword [ebp + 8]
call fcn.004bb584
mov eax, dword [ebp + 8]
mov word [ebp - 0x20], 0x2c
push eax
dec dword [ebp - 0x14]
lea eax, [ebp - 8]
mov edx, 2
call fcn.004bb554
pop eax
mov word [ebp - 0x20], 0x20
inc dword [ebp - 0x14]
mov edx, dword [ebp - 0x30]
mov dword fs:[0], edx
jmp 0x4bd1e0
mov word [ebp - 0x20], 0x38
lea edx, [ebp - 0x50]
lea eax, [ebp - 0xc]
call fcn.004bb388
mov edx, eax
inc dword [ebp - 0x14]
mov eax, dword [ebp + 8]
call fcn.004bb584
mov eax, dword [ebp + 8]
mov word [ebp - 0x20], 0x44
push eax
dec dword [ebp - 0x14]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004bb554
pop eax
mov word [ebp - 0x20], 0x38
inc dword [ebp - 0x14]
mov edx, dword [ebp - 0x30]
mov dword fs:[0], edx
mov esp, ebp
pop ebp
ret
Function at 0x488c10
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x31000]
push edi
jmp 0x488c2a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x488c31
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x488c20
mov eax, 1
add ebx, ebx
jne 0x488c43
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x488c54
jne 0x488c73
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x488c73
dec eax
add ebx, ebx
jne 0x488c60
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x488c38
add ebx, ebx
jne 0x488c6f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x488cc5
xor ecx, ecx
sub eax, 3
jb 0x488c8b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x488cfa
sar eax, 1
mov ebp, eax
jmp 0x488c96
add ebx, ebx
jne 0x488c96
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x488c64
inc ecx
add ebx, ebx
jne 0x488ca4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x488c64
add ebx, ebx
jne 0x488cb1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x488ca6
jne 0x488cc2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x488ca6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x488ce4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x488cd6
jmp 0x488c26
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x488ce4
add edi, ecx
jmp 0x488c26
pop esi
lea edi, [esi + 0x83000]
mov ecx, 8
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x488d06
mov eax, dword [edi]
mov bl, byte [edi + 4]
xchg ah, al
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 0x488d0b
lea edi, [esi + 0x85000]
mov eax, dword [edi]
or eax, eax
je 0x488d7c
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8e2e4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8e3d8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x488d31
mov ecx, edi
jns 0x488d60
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 + 0x8e3e0]
or eax, eax
je 0x488d76
mov dword [ebx], eax
add ebx, 4
jmp 0x488d4e
call dword [esi + 0x8e3dc]
mov ebp, dword [esi + 0x8e3e4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
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 0x488db0
sub esp, 0xffffff80
jmp 0x416520
Function at 0x501876
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x5a1a08]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x5018b9
cmp word [esi], dx
jne 0x5018b9
or byte [edi + eax + 0x28], 4
jmp 0x5018be
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x5019f7
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x5019d7
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x501900
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x501936
cmp eax, edx
jae 0x501942
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x5018d8
jmp 0x5019f7
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5019d3
cmp dword [ebp - 0x14], 0
je 0x5019d3
mov eax, dword [ebx*4 + 0x5a1a08]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x5019ab
mov cx, word [ebp - 4]
pop eax
cmp cx, ax
je 0x5019f1
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x5a1a08]
push 0xa
mov byte [edi + eax + 0x2a], cl
mov eax, dword [ebx*4 + 0x5a1a08]
shr cx, 8
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x5a1a08]
pop ecx
mov byte [edi + eax + 0x2c], cl
jmp 0x5019f4
pop ebx
cmp word [ebp - 4], bx
jne 0x5019bc
cmp esi, dword [ebp + 0xc]
jne 0x5019bc
mov word [esi], bx
jmp 0x5019f4
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00500d15
add esp, 0x10
cmp word [ebp - 4], bx
je 0x5019f7
push 0xd
jmp 0x5019f0
mov ecx, dword [ebx*4 + 0x5a1a08]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x5019ee
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x5019f7
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret

Function at 0x50c016
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x5746f8
push 0x5746f0
push 0x5746f8
push 0x1e
call fcn.0050c572
mov esi, eax
add esp, 0x10
test esi, esi
je 0x50c04a
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x50c050
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4
Function at 0x50c094
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x57471c
push 0x574714
push 0x57471c
push 0x20
call fcn.0050c572
mov esi, eax
add esp, 0x10
test esi, esi
je 0x50c0cb
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x510c12
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x59d024]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x510c5d
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00510d88
test al, al
jne 0x510c57
sub edx, 2
cmp edx, edi
jne 0x510c3d
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x510c7f
lea eax, [edi + 2]
cmp edx, eax
je 0x510c7f
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00510b5e
add esp, 0x10
jmp 0x510d79
push esi
lea ecx, [ebp - 0x255]
call fcn.00510d88
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x510cc2
push dword [ebp - 0x25c]
jmp 0x510c6f
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x510cff
cmp word [ebp - 0x226], 0
je 0x510d20
cmp word [ebp - 0x226], ax
jne 0x510cff
cmp word [ebp - 0x224], 0
je 0x510d20
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00510b5e
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x510d6c
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x510cd9
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x510d54
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x510d79
push 0x510db0
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00507f00
add esp, 0x10
jmp 0x510d49
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ed092
leave
ret

Function at 0x51131d
Capabilities:
Enumerate pe sections

Disassembly:
test ch, bh
add eax, 0x788b0000
cmp al, 3
clc
movzx eax, word [edi + 0x14]
lea esi, [eax + edi + 0x18]
mov dword [ebp - 0x44], esi
call fcn.00511126
sti
bound ebp, qword [ebx]
add cl, byte [edi]
mov bh, 0x47
push es
lea eax, [eax + eax*4]
shl eax, 3
sub eax, dword [ebp + 0x10]
add eax, esi
mov dword [ebp - 0xb4], eax
mov dword [ebp - 8], eax
call fcn.00511126
dec eax
inc ecx
lodsd eax, dword [esi]
mov ax, word [edi + 6]
cmp ax, bx
jbe 0x511380
lea ecx, [esi + 0xc]
movzx edx, ax
Function at 0x51137d
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov eax, dword [ecx + 4]
mov esi, dword [ecx]
add eax, esi
cmp dword [ebp - 8], eax
jae 0x51137a
mov dword [ebp - 8], eax
add ecx, 0x28
dec edx
jne 0x51136b
mov byte [ebp - 0x58], bl
mov byte [ebp - 0x57], bl
mov byte [ebp - 0x56], 0x58
mov byte [ebp - 0x55], bl
mov byte [ebp - 0x54], 0xe0
mov byte [ebp - 0x53], 0xc2
mov byte [ebp - 0x52], 0xd3
mov byte [ebp - 0x51], 0xf4
mov byte [ebp - 0x50], 0xde
mov byte [ebp - 0x4f], 0xd4
mov byte [ebp - 0x4e], 0xd3
mov byte [ebp - 0x4d], 0xc2
mov byte [ebp - 0x4c], 0xca
mov byte [ebp - 0x4b], 0xee
mov byte [ebp - 0x4a], 0xc9
mov byte [ebp - 0x49], 0xc1
mov byte [ebp - 0x48], 0xc8
mov byte [ebp - 0x47], 0xa7
call fcn.00511126
jg 0x5113c9
invalid
scasd eax, dword es:[edi]
or al, 0x8d
inc ebp
test al, 0x50
call fcn.00511136
mov esi, dword [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call fcn.005110eb
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x511414
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
invalid
inc ebp
invalid

Function at 0x511521
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x5c], 0x22
mov byte [ebp - 0x5b], 0x35
mov byte [ebp - 0x5a], 0x41
call fcn.00511136
push eax
push esi
call dword [eax + 0x56]
push dword [ebp + 8]
call fcn.005110eb
mov dword [ebp - 0xbc], eax
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x2c], bl
push eax
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], 0xd4
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], 0x67
mov byte [ebp - 0x27], 0x44
mov byte [ebp - 0x26], 0x4a
mov byte [ebp - 0x25], 0x4f
mov byte [ebp - 0x24], 0x67
mov byte [ebp - 0x23], 0x42
mov byte [ebp - 0x22], 0x49
mov byte [ebp - 0x21], 0x59
mov byte [ebp - 0x20], 0x4a
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.00511136
push eax
push esi
push dword [ebp + 8]
call fcn.005110eb
add esp, 0x30
mov dword [ebp - 0xb8], eax
invalid
invalid

Function at 0x51161c
Capabilities:
Inspect section memory permissions

Disassembly:
push dword [ebp + 8]
call fcn.005110eb
add esp, 0x10
mov dword [ebp - 0xc0], eax
push 0x40
push 0x1000
push dword [ebp + 0xc]
or al, 0x53
Function at 0x511df5
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov esp, 0x1fffffa
cmp dword [ebp - 0x398], 0
je 0x511e1a
cmp dword [ebp - 0x398], 0
je 0x511fe4
cmp dword [ebp + 0xc], 1
je 0x511fe4
cmp dword [ebp + 0xc], 8
jne 0x511fac
and byte [ebp - 0x6b8], 0
and byte [ebp - 0x6b7], 0
mov byte [ebp - 0x6b6], 0x9b
and byte [ebp - 0x6b5], 0
mov byte [ebp - 0x6b4], 0x33
mov byte [ebp - 0x6b3], 0x16
mov byte [ebp - 0x6b2], 0xd
mov byte [ebp - 0x6b1], 0x10
mov byte [ebp - 0x6b0], 1
mov byte [ebp - 0x6af], 0x34
mov byte [ebp - 0x6ae], 0x16
mov byte [ebp - 0x6ad], 0xb
mov byte [ebp - 0x6ac], 7
mov byte [ebp - 0x6ab], 1
mov byte [ebp - 0x6aa], 0x17
mov byte [ebp - 0x6a9], 0x17
mov byte [ebp - 0x6a8], 0x29
mov byte [ebp - 0x6a7], 1
mov byte [ebp - 0x6a6], 9
mov byte [ebp - 0x6a5], 0xb
call fcn.00511126
pop ebp
loopne 0x511fdc
or byte [eax - 0x5435b], al
inc dword [eax]
push 0
call dword [ebp - 0x340]
mov dword [ebp + 8], eax
push 0x104
lea eax, [ebp - 0x334]
push eax
push 0
call dword [ebp - 0x538]
call fcn.00511126
adc dword [eax - 0x38], esp
xchg dword [eax - 0x22f5b], eax
inc dword [eax]
inc esi
int1
invalid
and byte [ebp - 0x230], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x22f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax

Function at 0x511ffa
Capabilities:
Contain obfuscated stackstrings

Disassembly:
stosb byte es:[edi], al
and byte [ebp - 0x12c], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x12b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x654], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x653]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x504], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x503]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.00511104
or byte [eax + 0x2ff845c6], ah
mov byte [ebp - 0x24], 0x34
and byte [ebp - 0x36c], 0
and byte [ebp - 0x36b], 0
mov byte [ebp - 0x36a], 0xaa
and byte [ebp - 0x369], 0
mov byte [ebp - 0x368], 0x12
mov byte [ebp - 0x367], 0x30
mov byte [ebp - 0x366], 0x21
and esi, eax
test dword [ebx + 0x6fffffc], ebx
invalid
invalid
pushfd

Function at 0x5165ce
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005165d9