joyce8/EMBER2024-capa huggingface dataset:
Function at 0x458d30
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
mov dword [esp + 0x14], ebx
mov al, byte [esi + 0x42]
cmp al, 1
je 0x458d81
cmp al, 3
jb 0x458d58
call fcn.004543d0
test eax, eax
jne 0x458d66
cmp byte [esi + 0x42], 0
jne 0x458d6d
mov dword [ebx], 1
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x458d81
mov byte [esi + 0x42], 1
mov dword [esi + 0x3c], 0
js 0x458d64
movsx eax, byte [esi + 0x44]
mov edi, dword [esi + eax*4 + 0x78]
cmp byte [edi + 4], 0
jne 0x458dc9
movzx ecx, word [esi + eax*2 + 0x50]
mov eax, dword [edi + 0x40]
mov ax, word [eax + ecx*2]
mov ch, al
mov cl, ah
movzx eax, word [edi + 0x14]
movzx edx, cx
mov ecx, esi
and edx, eax
mov eax, dword [edi + 0x38]
mov edx, dword [edx + eax]
bswap edx
call fcn.004582f0
test eax, eax
jne 0x458d66
mov ecx, esi
call fcn.004585e0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp word [esi + eax*2 + 0x50], 0
jne 0x458e82
mov cl, byte [esi + 0x44]
test cl, cl
je 0x458ebd
and byte [esi + 0x40], 0xf9
xor eax, eax
mov word [esi + 0x22], ax
movsx eax, cl
dec cl
mov eax, dword [esi + eax*4 + 0x78]
mov byte [esi + 0x44], cl
mov ecx, dword [eax + 0x48]
test byte [ecx + 0x18], 0x20
mov ebx, dword [ecx + 0x10]
mov dword [esp + 0x10], ebx
je 0x458e4d
dec dword [ebx + 0x80]
mov eax, dword [ebx + 0x90]
mov dword [ecx + 0xc], eax
mov eax, dword [esp + 0x10]
mov edi, dword [ebx + 0x40]
mov dword [ebx + 0x90], ecx
push dword [ecx + 4]
mov eax, dword [eax + 0xa0]
mov ecx, dword [ecx + 0x14]
mov ebx, dword [edi]
dec ecx
cdq
push edx
push eax
push 0
push ecx
call fcn.004c88c0
push edx
push eax
mov eax, dword [ebx + 0x48]
push edi
call eax
mov ebx, dword [esp + 0x20]
add esp, 0x10
jmp 0x458e52
call fcn.00449e00
cmp dword [ebx + 0x80], 0
jne 0x458e6e
mov eax, dword [ebx + 0xd4]
cmp dword [eax + 0xc], 0
jne 0x458e6e
mov ecx, ebx
call fcn.0044cb20
movsx eax, byte [esi + 0x44]
cmp word [esi + eax*2 + 0x50], 0
je 0x458dd5
mov ebx, dword [esp + 0x14]
movsx eax, byte [esi + 0x44]
mov ecx, 0xffff
add word [esi + eax*2 + 0x50], cx
movsx eax, byte [esi + 0x44]
mov eax, dword [esi + eax*4 + 0x78]
cmp byte [eax + 2], 0
je 0x458d64
cmp byte [eax + 4], 0
jne 0x458d64
push ebx
push esi
call fcn.00458ee0
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x14]
pop edi
mov byte [esi + 0x42], 0
pop esi
mov dword [eax], 1
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x465910
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x517748]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov ebx, edx
mov dword [ebp - 0x3c], eax
mov esi, ecx
mov ecx, ebx
push edi
call fcn.00457dd0
mov edi, dword [ebx + 0x18]
xor eax, eax
mov word [ebp - 0x2c], ax
mov dword [ebp - 0x1c], eax
movsx eax, byte [ebx + 0x44]
mov dword [ebp - 0x14], esi
mov esi, dword [ebx + 0x1c]
mov eax, dword [ebx + eax*4 + 0x78]
mov ecx, dword [eax + 0x3c]
movzx eax, word [ebx + 0x20]
sub ecx, edi
cmp eax, ecx
cmovb ecx, eax
cmp esi, ecx
ja 0x465971
mov eax, 0x1010
mov dword [ebp - 0x24], edi
mov word [ebp - 0x2c], ax
mov dword [ebp - 0x28], esi
jmp 0x465992
lea eax, [ebp - 0x34]
xor edx, edx
push eax
push 1
push esi
mov ecx, ebx
call fcn.00460390
add esp, 0xc
test eax, eax
jne 0x465a5d
mov edi, dword [ebp - 0x24]
mov esi, dword [ebp - 0x28]
mov al, byte [edi]
cmp al, 0x80
jae 0x46599d
movzx ebx, al
jmp 0x4659aa
lea edx, [ebp - 0x38]
mov ecx, edi
call fcn.004457a0
mov ebx, dword [ebp - 0x38]
cmp ebx, 3
jb 0x465a23
cmp ebx, esi
jg 0x465a23
lea ecx, [edi - 1]
add ecx, ebx
mov al, byte [ecx]
cmp al, 0x80
jae 0x4659c3
movzx edx, al
jmp 0x4659ce
lea edx, [ebp - 0x38]
call fcn.004457a0
mov edx, dword [ebp - 0x38]
lea eax, [edx - 1]
cmp eax, 8
ja 0x465a23
cmp edx, 7
je 0x465a23
movzx ecx, byte [edx + 0x504aa0]
lea eax, [ecx + ebx]
cmp esi, eax
jb 0x465a23
sub esi, ecx
lea eax, [ebp - 0x64]
push eax
lea ecx, [edi + esi]
call fcn.00464690
mov ecx, dword [ebp - 0x3c]
add esp, 4
mov eax, dword [ebp - 0x64]
mov dword [ecx], eax
mov eax, dword [ebp - 0x60]
mov dword [ecx + 4], eax
lea ecx, [ebp - 0x34]
call fcn.0045fa70
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004c0564
mov esp, ebp
pop ebp
ret
test dword [ebp - 0x2c], 0x2460
jne 0x465a32
cmp dword [ebp - 0x1c], 0
je 0x465a3a
lea ecx, [ebp - 0x34]
call fcn.0045f9d0
push 0x50b368
push 0x127ff
push str.database_corruption
push str._s_at_line__d_of___.10s_
push 0xb
call fcn.00443bc0
add esp, 0x14
mov eax, 0xb
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c0564
mov esp, ebp
pop ebp
ret
Function at 0x481e10
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
xor eax, eax
mov dword [ebp - 0x14], edx
push edi
xor edi, edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
cmp dword [ecx + 0x14], eax
jle 0x481ea9
push ebx
push esi
nop
mov ecx, edi
cmp edi, 2
jge 0x481e3f
xor ecx, 1
mov dword [ebp - 0xc], ecx
jmp 0x481e42
mov dword [ebp - 0xc], edi
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x481eb2
mov edx, ecx
mov eax, ebx
mov ecx, dword [ebp - 8]
add edx, edx
mov bl, byte [ebx]
mov ecx, dword [ecx + 0x10]
mov edx, dword [ecx + edx*8]
movzx ecx, bl
movzx esi, byte [ecx + 0x5039c0]
movzx ecx, byte [edx]
movzx ecx, byte [ecx + 0x5039c0]
sub esi, ecx
jne 0x481e9b
sub edx, eax
mov dword [ebp - 0x10], edx
test bl, bl
je 0x481eae
movzx ecx, byte [edx + eax + 1]
inc eax
movzx edx, byte [ecx + 0x5039c0]
mov bl, byte [eax]
movzx ecx, bl
movzx esi, byte [ecx + 0x5039c0]
sub esi, edx
mov edx, dword [ebp - 0x10]
je 0x481e77
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
inc edi
cmp edi, dword [ecx + 0x14]
jl 0x481e30
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
test esi, esi
jne 0x481e9b
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x14]
add ecx, ecx
push eax
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
mov ecx, dword [eax + ecx*8 + 0xc]
add ecx, 8
call fcn.00445f30
add esp, 4
test eax, eax
je 0x481ee3
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
test eax, eax
jne 0x481ea7
jmp 0x481e9e
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x481e9e

Function at 0x482060
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push edi
mov dword [ebp - 0xc], edx
xor eax, eax
mov edx, dword [ecx + 0x14]
xor edi, edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], edx
test edx, edx
jle 0x48211b
mov edx, dword [ecx + 0x10]
push ebx
mov dword [ebp - 0x14], edx
push esi
mov eax, edi
cmp edi, 2
jge 0x482091
xor eax, 1
shl eax, 4
mov ecx, dword [eax + edx + 0xc]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x4820f6
mov ebx, dword [eax + edx]
mov esi, ecx
mov al, byte [ecx]
movzx ecx, byte [ebx]
movzx edx, byte [ecx + 0x5039c0]
movzx ecx, al
movzx ecx, byte [ecx + 0x5039c0]
sub ecx, edx
jne 0x4820e4
sub ebx, esi
test al, al
je 0x4820f2
movzx ecx, byte [ebx + esi + 1]
inc esi
movzx edx, byte [ecx + 0x5039c0]
mov al, byte [esi]
movzx ecx, al
movzx ecx, byte [ecx + 0x5039c0]
sub ecx, edx
je 0x4820c3
mov eax, dword [ebp - 4]
inc edi
cmp edi, dword [ebp - 0x10]
jge 0x482119
mov edx, dword [ebp - 0x14]
jmp 0x482087
test ecx, ecx
jne 0x4820e4
mov ecx, dword [ebp - 8]
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0xc]
add ecx, 0x18
push eax
call fcn.00445f30
add esp, 4
test eax, eax
je 0x482120
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
test eax, eax
je 0x4820e7
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x4820e7
Function at 0x484fe0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x517748]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
add edx, edx
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x20], edi
mov eax, dword [edi]
mov eax, dword [eax + 0x10]
mov ebx, dword [eax + edx*8]
mov eax, 1
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], eax
lea esp, [esp]
push eax
push str.sqlite_stat_d
lea eax, [ebp - 0x1c]
push eax
push 0x18
call fcn.00443ab0
mov eax, dword [edi]
add esp, 0x10
xor edi, edi
mov dword [ebp - 0x24], 0
cmp dword [eax + 0x14], edi
jle 0x485140
mov edx, dword [ebp - 0x20]
jmp 0x485050
mov ecx, edi
cmp edi, 2
jge 0x48505f
xor ecx, 1
mov dword [ebp - 0x30], ecx
jmp 0x485062
mov dword [ebp - 0x30], edi
test ebx, ebx
je 0x485105
mov esi, dword [ebp - 0x20]
mov edx, ecx
add edx, edx
mov eax, ebx
mov bl, byte [ebx]
mov ecx, dword [esi]
mov ecx, dword [ecx + 0x10]
mov edx, dword [ecx + edx*8]
movzx ecx, bl
movzx esi, byte [ecx + 0x5039c0]
movzx ecx, byte [edx]
movzx ecx, byte [ecx + 0x5039c0]
sub esi, ecx
jne 0x4850c4
sub edx, dword [ebp - 0x28]
mov dword [ebp - 0x3c], edx
jmp 0x4850a0
test bl, bl
je 0x4850fb
movzx ecx, byte [edx + eax + 1]
inc eax
movzx edx, byte [ecx + 0x5039c0]
mov bl, byte [eax]
movzx ecx, bl
movzx esi, byte [ecx + 0x5039c0]
sub esi, edx
mov edx, dword [ebp - 0x3c]
je 0x4850a0
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
inc edi
mov ebx, dword [ebp - 0x28]
mov ecx, dword [edx]
cmp edi, dword [ecx + 0x14]
jl 0x485050
test eax, eax
je 0x48513c
push dword [ebp - 0x38]
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
push dword [ebp - 0x34]
push eax
push ebx
push str.DELETE_FROM__Q._s_WHERE__s_Q
push edi
call fcn.00481d00
add esp, 0x18
jmp 0x485143
test esi, esi
jne 0x4850c4
mov ebx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x40]
push eax
mov eax, dword [edx]
add ecx, ecx
lea edx, [ebp - 0x1c]
mov eax, dword [eax + 0x10]
mov ecx, dword [eax + ecx*8 + 0xc]
add ecx, 8
call fcn.00445f30
add esp, 4
test eax, eax
je 0x485135
mov eax, dword [eax + 8]
mov dword [ebp - 0x24], eax
test eax, eax
jne 0x4850dd
jmp 0x4850c7
xor eax, eax
mov dword [ebp - 0x24], eax
jmp 0x4850c7
mov edi, edx
jmp 0x485143
mov edi, dword [ebp - 0x20]
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp eax, 4
jle 0x485020
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c0564
mov esp, ebp
pop ebp
ret
Function at 0x4bf442
Capabilities:
Write file on windows

Disassembly:
push 0x20
mov eax, 0x4f6705
call fcn.004c5c44
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x40], ebx
je 0x4bf53a
cmp byte [esi + 0x46], bl
je 0x4bf53a
mov eax, dword [esi]
mov edi, 0xffff
push edi
call dword [eax + 0xc]
movzx eax, ax
cmp di, ax
jne 0x4bf47e
xor al, al
jmp 0x4bf53c
push ebx
push 8
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x28], bl
call fcn.0040ca00
mov dword [ebp - 4], ebx
mov edi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
mov ebx, edi
cmp eax, 0x10
jae 0x4bf4ab
lea ebx, [ebp - 0x28]
mov edi, ebx
mov ecx, dword [esi + 0x40]
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x18]
add eax, ebx
mov edx, dword [ecx]
push eax
push edi
lea eax, [esi + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x4bf4d2
dec eax
je 0x4bf4d6
dec eax
dec eax
je 0x4bf528
xor bl, bl
jmp 0x4bf52a
mov byte [esi + 0x46], 0
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x28]
mov ecx, edi
cmp eax, 0x10
jae 0x4bf4e6
lea ecx, [ebp - 0x28]
mov ebx, dword [ebp - 0x2c]
sub ebx, ecx
je 0x4bf50e
cmp eax, 0x10
jae 0x4bf4f5
lea edi, [ebp - 0x28]
push dword [esi + 0x50]
push ebx
push 1
push edi
call fcn.004c2a75
add esp, 0x10
cmp ebx, eax
jne 0x4bf4ce
mov eax, dword [ebp - 0x14]
mov edi, dword [ebp - 0x28]
cmp byte [esi + 0x46], 0
je 0x4bf528
test ebx, ebx
jne 0x4bf49f
push ebx
push 8
lea ecx, [ebp - 0x28]
call fcn.0040c950
jmp 0x4bf499
mov bl, 1
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00401920
mov al, bl
jmp 0x4bf53c
mov al, 1
call fcn.004c5c02
ret
Function at 0x4bf9e9
Capabilities:
Write file on windows

Disassembly:
push 0x30
mov eax, 0x4f6757
call fcn.004c5c44
mov edi, ecx
mov ebx, dword [ebp + 8]
mov esi, 0xffff
cmp si, bx
jne 0x4bfa0b
xor eax, eax
jmp 0x4bfb93
mov eax, dword [edi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x4bfa37
mov edx, dword [edi + 0x30]
mov eax, dword [edx]
lea eax, [ecx + eax*2]
cmp ecx, eax
jae 0x4bfa37
dec dword [edx]
mov ax, bx
mov edx, dword [edi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 2]
mov dword [edx], ecx
mov word [esi], bx
jmp 0x4bfb93
cmp dword [edi + 0x50], 0
je 0x4bfb90
mov ecx, edi
call fcn.004bf627
xor ecx, ecx
cmp dword [edi + 0x40], ecx
jne 0x4bfa6a
push dword [edi + 0x50]
push ebx
call fcn.004bf0e1
pop ecx
pop ecx
test al, al
je 0x4bfb90
movzx esi, bx
jmp 0x4bfb90
push ecx
movzx eax, bx
mov dword [ebp - 0x18], ecx
mov byte [ebp - 0x28], cl
lea ecx, [ebp - 0x28]
push 8
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x14], 0xf
call fcn.0040ca00
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x30], eax
cmp ecx, 0x10
jae 0x4bfa9d
lea eax, [ebp - 0x28]
mov dword [ebp - 0x2c], eax
cmp ecx, 0x10
jae 0x4bfaab
lea eax, [ebp - 0x28]
mov dword [ebp - 0x30], eax
mov ecx, dword [edi + 0x40]
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x2c]
mov edx, dword [ecx]
push eax
push dword [ebp - 0x30]
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x32]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [edi + 0x48]
push eax
call dword [edx + 0x1c]
mov ebx, dword [ebp + 8]
test eax, eax
js 0x4bfb84
cmp eax, 1
jg 0x4bfb68
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x30], eax
cmp ecx, 0x10
jb 0x4bfaf8
mov dword [ebp - 0x2c], eax
jmp 0x4bfafe
lea edx, [ebp - 0x28]
mov dword [ebp - 0x2c], edx
mov edx, dword [ebp - 0x38]
sub edx, dword [ebp - 0x2c]
mov dword [ebp - 0x2c], edx
je 0x4bfb30
cmp ecx, 0x10
jae 0x4bfb11
lea eax, [ebp - 0x28]
push dword [edi + 0x50]
push edx
push 1
push eax
call fcn.004c2a75
mov edx, dword [ebp - 0x2c]
add esp, 0x10
cmp edx, eax
jne 0x4bfb60
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x30], eax
lea ebx, [ebp - 0x34]
mov byte [edi + 0x46], 1
cmp dword [ebp - 0x3c], ebx
mov ebx, dword [ebp + 8]
jne 0x4bfb5d
test edx, edx
jne 0x4bfa95
cmp dword [ebp - 0x18], 0x20
jae 0x4bfb63
push edx
push 8
lea ecx, [ebp - 0x28]
call fcn.0040c950
jmp 0x4bfa8c
movzx esi, bx
movzx esi, si
movzx esi, si
jmp 0x4bfb81
cmp eax, 3
jne 0x4bfb84
push dword [edi + 0x50]
push dword [ebp - 0x34]
call fcn.004bf0e1
pop ecx
pop ecx
test al, al
je 0x4bfb81
movzx esi, bx
movzx esi, si
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00401920
mov ax, si
call fcn.004c5c02
ret 4
Function at 0x4d6763
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x517748]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.004c8408
mov dword [ebp - 0x14], eax
cmp dword [0x66a458], esi
jne 0x4d6856
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x4d67e3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4d6936
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x4d6936
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4d6936
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x66a458], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x66a45c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x66a460], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x66a468], eax
test eax, eax
je 0x4d6853
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x66a464], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4d687b
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4d686e
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x4d6890
push 4
pop eax
jmp 0x4d6938
cmp dword [ebp - 0x14], esi
je 0x4d6890
push dword [0x66a458]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4d6875
mov eax, dword [0x66a464]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x4d68ee
cmp dword [0x66a468], edi
je 0x4d68ee
push eax
call ebx
push dword [0x66a468]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4d68ee
test eax, eax
je 0x4d68ee
call ecx
test eax, eax
je 0x4d68e3
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4d68e3
test byte [ebp - 8], 1
jne 0x4d68ee
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4d691e
mov eax, dword [0x66a45c]
cmp eax, edi
je 0x4d691b
push eax
call ebx
test eax, eax
je 0x4d691b
call eax
mov esi, eax
test esi, esi
je 0x4d691b
mov eax, dword [0x66a460]
cmp eax, edi
je 0x4d691b
push eax
call ebx
test eax, eax
je 0x4d691b
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x66a458]
call ebx
test eax, eax
je 0x4d6936
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x4d6938
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004c0564
mov esp, ebp
pop ebp
ret
Function at 0x4dff40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
call fcn.004f1ac0
xor ebx, ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
xor edi, edi
call fcn.004f1ac0
push 1
mov esi, eax
mov dword [ebp - 0xc], edx
call fcn.004c86f0
push 0
call fcn.004c86f0
add esp, 8
call fcn.004f1ac0
sub eax, esi
lea ebx, [ebx + 1]
shl eax, 0x1c
mov ecx, edi
and eax, 0xf0000000
add edi, 4
shr eax, cl
xor byte [ebp + ebx - 9], al
cmp edi, 0x20
jl 0x4dff58
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4ea0a0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
xorps xmm0, xmm0
push edi
mov edi, ecx
movdqu xmmword [edi + 0xc], xmm0
movzx eax, word [ebx]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [edi + 0xe], ax
push dword [ebx + 0x10]
movzx eax, word [ebx + 8]
push dword [ebx + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi + 0x24], eax
cmp eax, 0xffffffff
jne 0x4ea0e4
pop edi
mov eax, 2
pop ebx
pop ebp
ret 0xc
push esi
mov ecx, edi
call fcn.004ea6b0
movzx eax, byte [ebx + 0x14]
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push 0x8004667e
push dword [edi + 0x24]
call dword [sym.imp.WS2_32.dll_ioctlsocket]
mov eax, dword [ebx + 0x18]
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push 0x20
push 0xffff
push dword [edi + 0x24]
call esi
mov eax, dword [ebx + 0x1c]
push 4
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push 2
push 0
push dword [edi + 0x24]
call esi
mov eax, 2
lea esi, [edi + 0xc]
mov word [esi], ax
mov eax, dword [ebx + 4]
test eax, eax
je 0x4ea15b
cmp byte [eax], 0
je 0x4ea15b
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [edi + 0x10], eax
jmp 0x4ea162
mov dword [edi + 0x10], 0
push 0x10
push esi
push dword [edi + 0x24]
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jg 0x4ea188
push dword [edi + 0x24]
call dword [sym.imp.WS2_32.dll_closesocket]
pop esi
pop edi
mov eax, 2
pop ebx
pop ebp
ret 0xc
push esi
push dword [edi + 0x24]
call fcn.004ea3d0
add esp, 8
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
Function at 0x4ea480
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push edi
mov edi, ecx
lea ebx, [edi + 0x58]
mov ecx, ebx
call fcn.004f2160
cmp byte [edi + 0x5c], 0
jne 0x4ea55f
push esi
nop
mov ecx, dword [edi + 0x50]
push 0x161
push str.....SourceRakNetSocket2.cpp
mov eax, dword [ecx]
call dword [eax + 0xc]
mov esi, eax
test esi, esi
je 0x4ea554
lea eax, [ebp - 4]
mov dword [esi + 0x5f8], edi
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0x10
push eax
push 0
push 0x5d4
push esi
push dword [edi + 0x24]
xorps xmm0, xmm0
movdqu xmmword [ebp - 0x18], xmm0
mov dword [ebp - 0x18], 2
call dword [sym.imp.WS2_32.dll_recvfrom]
mov dword [esi + 0x5d4], eax
test eax, eax
jle 0x4ea523
call fcn.004f1ac0
push dword [ebp - 0x16]
lea ecx, [esi + 0x5d8]
mov dword [esi + 0x5f0], eax
mov dword [esi + 0x5f4], edx
call fcn.004dd2b0
mov eax, dword [ebp - 0x14]
mov dword [esi + 0x5dc], eax
cmp dword [esi + 0x5d4], 0
jle 0x4ea537
mov ecx, dword [edi + 0x50]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4ea554
push 0
call fcn.004c86f0
mov ecx, dword [edi + 0x50]
add esp, 4
mov eax, dword [ecx]
push 0x16f
push str.....SourceRakNetSocket2.cpp
push esi
call dword [eax + 8]
cmp byte [edi + 0x5c], 0
je 0x4ea4a0
pop esi
mov ecx, ebx
call fcn.004f2150
pop edi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4ea5b0
Capabilities:
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
lea ebx, [esi + 8]
cmp dword [esi + 0x1c], 0
mov dword [ebp + 0xc], 0xffffffff
jle 0x4ea614
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp + 0xc]
mov ecx, ebx
push eax
push 4
call fcn.0040ab50
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getsockopt]
cmp eax, 0xffffffff
je 0x4ea614
mov eax, dword [esi + 0x1c]
mov ecx, ebx
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push 4
push eax
push 4
call fcn.0040ab50
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp word [ebx], 2
jne 0x4ea62f
push 0x10
push ebx
push 0
push dword [esi + 4]
push dword [esi]
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_sendto]
mov edi, eax
test edi, edi
jns 0x4ea64a
mov ecx, dword [esi]
push dword [esi + 4]
movsx ecx, byte [ecx]
push ecx
push edi
push 0x4fe0e4
call fcn.004c21a5
add esp, 0x10
cmp dword [ebp + 0xc], 0xffffffff
je 0x4ea669
push 4
lea eax, [ebp + 0xc]
mov ecx, ebx
push eax
push 4
call fcn.0040ab50
push eax
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
test edi, edi
je 0x4ea5c1
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4ea680
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
lea eax, [ebp + 8]
push 4
push eax
push 0xe
lea ecx, [esi + 0xc]
call fcn.0040ab50
push eax
push dword [esi + 0x24]
call dword [sym.imp.WS2_32.dll_setsockopt]
pop esi
pop ebp
ret 4