joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49c290
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [0x7e8f64]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x49c47a
sub esp, 0x48
mov eax, dword [0x7c1774]
mov ecx, dword [esp + 0x50]
movzx edx, word [ecx + 2]
movzx ebx, word [ecx + 8]
movzx ebp, word [ecx + 0xa]
movzx esi, word [ecx + 0xc]
mov edi, dword [esp + 0x4c]
mov dword [esp], edi
mov dword [esp + 4], edx
mov dword [esp + 8], 1
mov dword [esp + 0xc], ebx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], eax
call sym.time.Date
lea edi, [esp + 0x34]
lea esi, [esp + 0x20]
call fcn.0047000e
lea edi, [esp]
lea esi, [esp + 0x34]
call fcn.0047000e
call sym.time.Time.abs
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
add eax, 0x15180
mov dword [esp], eax
adc ecx, 0
mov dword [esp + 4], ecx
mov dword [esp + 8], 0x93a80
mov dword [esp + 0xc], 0
call sym.runtime.uint64mod
mov eax, dword [esp + 0x50]
movzx ecx, word [eax + 4]
mov edx, dword [esp + 0x10]
mov ebx, eax
mov eax, 0xc22e4507
mov ebp, edx
imul edx
mov eax, ebp
sar ebp, 0x1f
add eax, edx
sar eax, 0x10
sub eax, ebp
sub ecx, eax
test ecx, ecx
jge 0x49c367
add ecx, 7
movzx edx, word [ebx + 6]
lea ebp, [edx - 1]
cmp ebp, 4
jge 0x49c381
lea ebx, [edx + edx*2]
lea edx, [edx + ebx*2]
lea ecx, [ecx + edx - 6]
mov edx, ecx
jmp 0x49c3f8
movzx eax, word [ebx + 2]
cmp eax, 2
jne 0x49c3ce
mov edx, dword [esp + 0x4c]
test edx, 3
jne 0x49c3ca
mov ebx, edx
sar edx, 0x1f
mov ebp, eax
mov eax, 0x51eb851f
mov esi, edx
imul ebx
mov edi, edx
sar edx, 5
sub edx, esi
imul edx, edx, 0x64
cmp ebx, edx
jne 0x49c3c3
sar edi, 7
sub edi, esi
imul edx, edi, 0x190
cmp ebx, edx
jne 0x49c3d0
mov ebx, 0x1d
jmp 0x49c3ee
mov ebp, eax
jmp 0x49c3d0
mov ebp, eax
cmp ebp, 0xd
jae 0x49c46d
lea eax, [ebp - 1]
lea edx, [0x5fc6a0]
mov ebx, dword [edx + ebp*4]
cmp eax, 0xd
jae 0x49c463
sub ebx, dword [edx + ebp*4 - 4]
lea edx, [ecx + 0x1d]
cmp ebx, edx
jge 0x49c3f8
lea edx, [ecx + 0x16]
mov ecx, dword [esp + 0x38]
test ecx, 0x80000000
je 0x49c42a
mov ebx, dword [esp + 0x34]
shl ecx, 1
mov ebp, ebx
shl ebx, 1
shr ebp, 0x1f
or ebp, ecx
mov ecx, ebp
shl ebp, 1
shr ecx, 0x1f
shr ebx, 0x1f
or ebp, ebx
add ebp, 0xd7b17f80
adc ecx, 0xd
jmp 0x49c432
mov ebp, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
lea eax, [edx - 1]
mov edx, eax
sar edx, 0x1f
mov ebx, 0x15180
mov esi, edx
mul ebx
imul ebx, esi, 0x15180
add edx, ebx
add eax, ebp
adc edx, ecx
add eax, 0x886e0900
mov dword [esp + 0x54], eax
adc edx, 0xfffffff1
mov dword [esp + 0x58], edx
add esp, 0x48
ret
mov ecx, 0xd
call sym.runtime.panicIndex
mov eax, ebp
mov ecx, 0xd
call sym.runtime.panicIndex
nop
call sym.runtime.morestack_noctxt
jmp sym.time.pseudoUnix
Function at 0x4b1a90
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [0x7e8f64]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4b1b31
sub esp, 0x10
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [esp + 0x18]
cmp dword [edx], ecx
jne 0x4b1b27
movzx ecx, byte [eax + 4]
cmp byte [edx + 4], cl
jne 0x4b1b27
movzx ecx, byte [eax + 5]
cmp byte [edx + 5], cl
jne 0x4b1b27
movzx ecx, byte [eax + 6]
cmp byte [edx + 6], cl
jne 0x4b1b27
movzx ecx, byte [eax + 7]
cmp byte [edx + 7], cl
jne 0x4b1b27
movzx ecx, byte [eax + 8]
cmp byte [edx + 8], cl
jne 0x4b1b27
movzx ecx, byte [eax + 9]
cmp byte [edx + 9], cl
jne 0x4b1b27
movzx ecx, byte [eax + 0xa]
cmp byte [edx + 0xa], cl
jne 0x4b1b27
movzx ecx, byte [eax + 0xb]
cmp byte [edx + 0xb], cl
jne 0x4b1b27
movzx ecx, byte [eax + 0xc]
cmp byte [edx + 0xc], cl
jne 0x4b1b27
add eax, 0x10
mov dword [esp], eax
lea eax, [edx + 0x10]
mov dword [esp + 4], eax
mov dword [esp + 8], 0x4c
call sym.runtime.memequal
movzx eax, byte [esp + 0xc]
jmp 0x4b1b29
xor eax, eax
mov byte [esp + 0x1c], al
add esp, 0x10
ret
call sym.runtime.morestack_noctxt
jmp sym.type:.eq.fmt.fmt
Function at 0x4b4880
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword [0x7e8f64]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4b4a2a
sub esp, 0x54
lea edi, [esp + 0x60]
xor eax, eax
call fcn.0046fb2b
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x5c]
xor ebx, ebx
jmp 0x4b48af
inc ebx
cmp edx, ebx
jle 0x4b49ce
movzx ebp, byte [ecx + ebx]
xchg ebp, eax
cmp al, 0x25
xchg ebp, eax
je 0x4b4972
xchg ebp, eax
cmp al, 0x2e
xchg ebp, eax
je 0x4b4923
xchg ebp, eax
cmp al, 0x3a
xchg ebp, eax
jne 0x4b48ae
lea edi, [esp + 0x28]
call fcn.0046fb2b
mov ecx, dword [esp + 0x58]
mov dword [esp], ecx
mov dword [esp + 4], edx
call sym.net_netip.parseIPv6
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x24], ecx
mov edx, dword [esp + 0x20]
lea edi, [esp + 0x28]
lea esi, [esp + 8]
call fcn.0047000e
lea edi, [esp + 0x60]
lea esi, [esp + 0x28]
call fcn.0047000e
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], edx
add esp, 0x54
ret
lea edi, [esp + 0x28]
call fcn.0046fb2b
mov ecx, dword [esp + 0x58]
mov dword [esp], ecx
mov dword [esp + 4], edx
call sym.net_netip.parseIPv4
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x24], ecx
mov edx, dword [esp + 0x20]
lea edi, [esp + 0x28]
lea esi, [esp + 8]
call fcn.0047000e
lea edi, [esp + 0x60]
lea esi, [esp + 0x28]
call fcn.0047000e
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], edx
add esp, 0x54
ret
lea edi, [esp + 0x3c]
call fcn.0046fb2a
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], edx
lea ecx, [0x52697f]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], 0x14
lea edi, [esp + 0x60]
call fcn.0046fb2b
lea ecx, [0x513680]
mov dword [esp], ecx
lea ecx, [esp + 0x3c]
mov dword [esp + 4], ecx
call sym.runtime.convT
mov ecx, dword [esp + 8]
lea edx, [0x554940]
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], ecx
add esp, 0x54
ret
lea edi, [esp + 0x3c]
call fcn.0046fb2a
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x40], edx
lea ecx, [0x525a81]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], 0x12
lea edi, [esp + 0x60]
call fcn.0046fb2b
lea ecx, [0x513680]
mov dword [esp], ecx
lea ecx, [esp + 0x3c]
mov dword [esp + 4], ecx
call sym.runtime.convT
mov ecx, dword [esp + 8]
lea edx, [0x554940]
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], ecx
add esp, 0x54
ret
call sym.runtime.morestack_noctxt
jmp sym.net_netip.ParseAddr
Function at 0x4bea60
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword [0x7e8f64]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4bec1c
sub esp, 0x5c
lea edi, [esp + 0x7c]
xor eax, eax
call fcn.0046fb27
mov ecx, dword [esp + 0x60]
test ecx, ecx
je 0x4bea98
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x68]
mov eax, dword [esp + 0x60]
jmp 0x4beac1
lea eax, [0x504460]
mov dword [esp], eax
mov dword [esp + 4], 0
mov dword [esp + 8], 0x200
call sym.runtime.makeslice
mov eax, dword [esp + 0xc]
xor ecx, ecx
mov edx, 0x200
mov dword [esp + 0x30], ecx
lea edi, [esp + 0x34]
mov ebx, eax
xor eax, eax
call fcn.0046fb27
mov dword [esp + 0x34], ebx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x50], ecx
movzx ecx, word [esp + 0x70]
shl ecx, 0xb
movzx edx, word [esp + 0x78]
movzx ebx, byte [esp + 0x75]
or edx, ecx
test bl, bl
je 0x4beb04
or edx, 0x80
movzx eax, byte [esp + 0x74]
test al, al
je 0x4beb13
or edx, 0x100
movzx eax, byte [esp + 0x73]
test al, al
je 0x4beb22
or edx, 0x200
movzx eax, byte [esp + 0x72]
test al, al
je 0x4beb31
or edx, 0x400
movzx eax, byte [esp + 0x6e]
test al, al
je 0x4beb40
or edx, 0xffff8000
movzx eax, byte [esp + 0x76]
test al, al
je 0x4beb4c
or edx, 0x20
movzx eax, byte [esp + 0x77]
test al, al
je 0x4beb58
or edx, 0x10
movzx eax, word [esp + 0x6c]
mov word [esp + 0x42], ax
mov word [esp + 0x44], dx
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
lea edx, [ecx + 0xc]
mov ebx, dword [esp + 0x34]
cmp eax, edx
jae 0x4bebc8
mov dword [esp + 0x30], ecx
mov dword [esp], ebx
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov dword [esp + 0xc], 0xc
lea eax, [0x504460]
mov dword [esp + 0x10], eax
call sym.runtime.growslice
mov ebx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], edx
mov dword [esp + 0x58], ebx
add ecx, ebx
mov dword [esp], ecx
lea ecx, [esp + 0x20]
mov dword [esp + 4], ecx
mov dword [esp + 8], 0xc
call sym.runtime.memmove
mov eax, dword [esp + 0x58]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x3c], eax
mov byte [esp + 0x40], 1
lea edi, [esp + 0x7c]
lea esi, [esp + 0x34]
call fcn.0046ffe6
add esp, 0x5c
ret
call sym.runtime.morestack_noctxt
jmp sym.vendor_golang.org_x_net_dns_dnsmessage.NewBuilder
Function at 0x4d4730
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword [0x7e8f64]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4d48a1
sub esp, 0x48
mov eax, dword [esp + 0x78]
cmp eax, 4
jne 0x4d47c7
mov ecx, dword [esp + 0x74]
cmp dword [ecx], 0x6c616964
je 0x4d4766
mov edx, dword [esp + 0x64]
mov ebx, dword [esp + 0x68]
jmp 0x4d47d3
mov eax, dword [esp + 0x64]
mov ecx, dword [eax + 0x18]
mov edx, dword [esp + 0x68]
mov dword [esp], edx
call ecx
movzx eax, byte [esp + 4]
test al, al
jne 0x4d4791
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x64]
mov ebx, dword [esp + 0x68]
jmp 0x4d47d3
mov eax, dword [esp + 0x64]
mov eax, dword [eax + 0x20]
mov ecx, dword [esp + 0x68]
mov dword [esp], ecx
mov ecx, dword [esp + 0x54]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x58]
mov dword [esp + 8], edx
call eax
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, eax
mov ebx, ecx
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x74]
jmp 0x4d47d3
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x64]
mov ebx, dword [esp + 0x68]
mov dword [esp + 0x40], edx
mov dword [esp + 0x44], ebx
mov ebp, dword [esp + 0x54]
mov dword [esp], ebp
mov esi, dword [esp + 0x58]
mov dword [esp + 4], esi
mov edi, dword [esp + 0x5c]
mov dword [esp + 8], edi
mov edi, dword [esp + 0x60]
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
call sym.net.favoriteAddrFamily
mov eax, dword [esp + 0x20]
movzx ecx, byte [esp + 0x24]
mov edx, dword [esp + 0x4c]
mov dword [esp], edx
mov edx, dword [esp + 0x50]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x54]
mov dword [esp + 8], edx
mov edx, dword [esp + 0x58]
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x18], eax
mov byte [esp + 0x1c], cl
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x30], eax
call sym.net.socket
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], ecx
mov dword [esp + 0x88], edx
add esp, 0x48
ret
call sym.runtime.morestack_noctxt
jmp sym.net.internetSocket
Function at 0x4f32a0
Capabilities:
Reference absolute stream path on windows

Disassembly:
mov ecx, dword [0x7e8f64]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4f33a3
sub esp, 0x30
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x24], 0x27
lea eax, [0x52c953]
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], 0x26
lea eax, [0x52c65b]
mov dword [esp + 0x28], eax
xor eax, eax
jmp 0x4f3306
mov ecx, dword [esp + 0x1c]
lea eax, [ecx + 1]
cmp eax, 2
jge 0x4f333f
mov dword [esp + 0x1c], eax
lea ecx, [esp + eax*8 + 0x20]
mov edx, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [esp], edx
mov dword [esp + 4], ecx
call sym.os.Stat
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4f32ff
call sym.main.fakeLegitBehavior
mov dword [esp], 0
call sym.os.Exit
jmp 0x4f32ff
lea eax, [0x525aed]
mov dword [esp], eax
mov dword [esp + 4], 0x13
call sym.io_ioutil.ReadDir
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4f3375
cmp dword [esp + 0xc], 0x1e
jge 0x4f3375
call sym.main.fakeLegitBehavior
mov dword [esp], 0
call sym.os.Exit
call sym.os.tempDir
call sym.io_ioutil.ReadDir
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x4f339f
cmp dword [esp + 0xc], 0x50
jge 0x4f339f
call sym.main.fakeLegitBehavior
mov dword [esp], 0
call sym.os.Exit
add esp, 0x30
ret
call sym.runtime.morestack_noctxt
jmp sym.main.evadeFileSystemAnalysis
Function at 0x529a00
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xd3000]
push edi
jmp 0x529a1a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x529a21
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x529a10
mov eax, 1
add ebx, ebx
jne 0x529a33
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x529a44
jne 0x529a63
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x529a63
dec eax
add ebx, ebx
jne 0x529a50
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x529a28
add ebx, ebx
jne 0x529a5f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x529ab5
xor ecx, ecx
sub eax, 3
jb 0x529a7b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x529aea
sar eax, 1
mov ebp, eax
jmp 0x529a86
add ebx, ebx
jne 0x529a86
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x529a54
inc ecx
add ebx, ebx
jne 0x529a94
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x529a54
add ebx, ebx
jne 0x529aa1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x529a96
jne 0x529ab2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x529a96
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x529ad4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x529ac6
jmp 0x529a16
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x529ad4
add edi, ecx
jmp 0x529a16
pop esi
mov edi, esi
mov ecx, 0x3ee5
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x529af2
cmp byte [edi], 0x11
jne 0x529af2
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 0x529af7
lea edi, [esi + 0x122000]
mov eax, dword [edi]
or eax, eax
je 0x529b6f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x17a03c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x17a1b8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x529b24
mov ecx, edi
jns 0x529b53
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 + 0x17a1bc]
or eax, eax
je 0x529b69
mov dword [ebx], eax
add ebx, 4
jmp 0x529b41
call dword [esi + 0x17a1cc]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x529ba0
cmp al, 0xef
ja 0x529b93
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x529b75
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x529b82
mov ebp, dword [esi + 0x17a1c0]
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 0x529bd4
sub esp, 0xffffff80
jmp 0x427f4a
Function at 0x403950
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x437008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x400
lea eax, [ebp - 0x408]
mov edi, ecx
push 0
push eax
call fcn.00409220
add esp, 0xc
cmp dword [0x438fa0], 0
jle 0x403a8b
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x40c]
push edi
push esi
push eax
movzx eax, word [ebp - 0x40e]
push eax
movzx eax, word [ebp - 0x410]
push eax
movzx eax, word [ebp - 0x418]
push eax
movzx eax, word [ebp - 0x416]
push eax
movzx eax, word [ebp - 0x412]
push eax
lea eax, [ebp - 0x408]
push str._02u__02u__04u__02u:_02u:_02u__5d_:_s_r_n
push eax
call fcn.00401180
add esp, 0x28
push 0x4390ac
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [0x437a54]
cmp edx, 0xffffffff
jne 0x403a37
push 0
push 0x20
push 4
push 0
push 1
push 0x40000000
push 0x438fa8
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x437a54], eax
cmp eax, 0xffffffff
je 0x403a80
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [0x437a54]
cmp edx, 0xffffffff
je 0x403a80
lea ecx, [ebp - 0x408]
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x403a40
push 0
lea eax, [ebp - 0x41c]
sub ecx, esi
push eax
push ecx
lea eax, [ebp - 0x408]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp byte [0x438d83], 0
je 0x403a80
push dword [0x437a54]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x437a54], 0xffffffff
push 0x4390ac
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004058fc
mov esp, ebp
pop ebp
ret
Function at 0x405160
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, edx
push esi
mov esi, ecx
push edi
mov cl, byte [ebx]
mov al, cl
shr al, 7
mov byte [esi], al
mov al, cl
shr al, 6
and al, 1
mov byte [esi + 1], al
mov al, cl
shr al, 5
and al, 1
mov byte [esi + 2], al
mov al, cl
and cl, 0xf
shr al, 4
mov byte [esi + 4], cl
and al, 1
movzx ecx, cl
mov byte [esi + 3], al
lea eax, [ecx - 1]
cmp eax, 9
ja case.0x4051b0.3
movzx eax, byte [eax + 0x4052fc]
jmp dword [eax*4 + 0x4052f4]
lea eax, [esi + 0x18]
mov dword [eax], ecx
movzx ecx, byte [ebx + 1]
mov edi, ecx
mov dword [ebp - 0x10], eax
and edi, 0x7f
mov dword [ebp - 0x18], ecx
cmp edi, 0x7f
jne 0x4051e9
movzx edi, byte [ebx + 9]
mov edx, 8
mov dword [ebp - 8], 0xa
mov dword [ebp - 0xc], 0xa
jmp 0x405205
mov edx, 2
cmp edi, 0x7e
jne 0x40521e
movzx edi, byte [ebx + 3]
mov dword [ebp - 8], 4
mov dword [ebp - 0xc], 4
movzx eax, byte [edx + ebx]
lea ecx, [edx - 1]
shl ecx, 3
dec edx
shl eax, cl
or edi, eax
cmp edx, 2
jge 0x405205
mov edx, dword [ebp - 8]
jmp 0x405227
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
sub eax, edx
sub eax, 4
cmp edi, eax
je 0x40524a
push 0x79
push str.D:AkhilWebSocketFPEventServerwebsocket.c
push str.payloadLength__len____byte_count__MASK_LEN_
call fcn.00410aa6
mov edx, dword [ebp - 8]
add esp, 0xc
lea eax, [edx + 4]
add eax, edi
cmp eax, dword [ebp + 8]
je 0x405264
mov eax, dword [ebp - 0x10]
mov dword [eax], 0xf2
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 0x18], 0x80
jb 0x4052c8
mov ecx, dword [edx + ebx]
mov eax, edi
mov dword [ebp - 0x18], ecx
xorps xmm0, xmm0
lea ecx, [ebx + 4]
movlpd qword [ebp - 0x14], xmm0
add ecx, edx
cdq
mov dword [esi + 8], ecx
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
test edx, edx
jb 0x4052ea
ja 0x405296
test eax, eax
je 0x4052ea
mov edi, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
nop dword [eax]
mov ecx, dword [esi + 8]
mov eax, edx
and eax, 3
mov al, byte [ebp + eax - 0x18]
xor byte [ecx + edx], al
add edx, 1
adc edi, 0
cmp edi, dword [esi + 0x14]
jb 0x4052a0
ja 0x4052ea
cmp edx, dword [esi + 0x10]
jb 0x4052a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xc]
add eax, 4
add eax, ebx
mov dword [esi + 8], eax
mov eax, edi
cdq
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x18], 0xf1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x419bcf
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00419b51

Function at 0x41e242
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041e0b8
Function at 0x10001460
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xc
push 0x1002b308
call fcn.10021330
and dword [ebp - 0x1c], 0
and dword [ebp - 4], 0
mov eax, dword fs:[0x30]
mov eax, dword [eax + 2]
and eax, 0xff
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x1c]
jmp 0x100014a1
call fcn.10021376
ret

Function at 0x100014a7
Capabilities:
Check for debugger via api
Contain obfuscated stackstrings
Encode data using xor
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x1002f014]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
mov dword [ebp - 0xc], ebx
call fcn.10001460
test eax, eax
jne 0x10001577
lea eax, [ebp - 8]
mov dword [ebp - 8], ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_CheckRemoteDebuggerPresent]
cmp dword [ebp - 8], ebx
jne 0x10001577
movaps xmm0, xmmword [0x1002a0b0]
mov ecx, ebx
movups xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x24], 0x3709080e
mov dword [ebp - 0x20], 0x2040815
mov word [ebp - 0x1c], 0x1414
mov byte [ebp - 0x1a], bl
mov al, byte [ebp - 0x34]
xor byte [ebp + ecx - 0x33], al
inc ecx
cmp ecx, 0x19
jb 0x1000150b
mov byte [ebp - 0x1a], bl
mov cl, 0x23
mov dword [ebp - 0x18], 0x47574d23
mov eax, ebx
mov dword [ebp - 0x14], 0x470d4f4f
mov word [ebp - 0x10], 0x4f4f
mov byte [ebp - 0xe], bl
xor byte [ebp + eax - 0x17], cl
inc eax
cmp eax, 9
jae 0x10001545
mov cl, byte [ebp - 0x18]
jmp 0x10001536
lea eax, [ebp - 0x33]
mov byte [ebp - 0xe], bl
push eax
lea eax, [ebp - 0x17]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1000157f
push ebx
push 4
lea ecx, [ebp - 0xc]
push ecx
push 7
push 0xffffffffffffffff
call eax
test eax, eax
je 0x1000157f
cmp dword [ebp - 0xc], ebx
je 0x1000157f
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.100204d5
mov esp, ebp
pop ebp
ret

Function at 0x1000158e
Capabilities:
Contain obfuscated stackstrings
Encode data using xor
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
movaps xmm0, xmmword [0x10029eb0]
xor edx, edx
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 0x140e2204
mov ecx, edx
mov dword [ebp - 0x18], 0x1304150f
mov byte [ebp - 0x14], dl
mov al, byte [ebp - 0x2c]
xor byte [ebp + ecx - 0x2b], al
inc ecx
cmp ecx, 0x17
jb 0x100015b4
mov byte [ebp - 0x14], dl
mov cl, 0x3e
mov dword [ebp - 0x10], 0x4c5b553e
mov eax, edx
mov dword [ebp - 0xc], 0xd525b50
mov dword [ebp - 8], 0x525a100c
mov word [ebp - 4], 0x52
xor byte [ebp + eax - 0xf], cl
inc eax
cmp eax, 0xc
jae 0x100015f2
mov cl, byte [ebp - 0x10]
jmp 0x100015e3
lea eax, [ebp - 0x2b]
mov byte [ebp - 3], dl
push eax
lea eax, [ebp - 0xf]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, eax
call fcn.1000936d
cmp al, 0xe9
jne 0x1000161d
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov esp, ebp
pop ebp
ret