joyce8/EMBER2024-capa huggingface dataset:
Function at 0x478ae0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x4fdaa3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.0046b880
mov eax, dword [esp + 0x28]
mov cl, byte [esp + 0x2c]
xor ebx, ebx
mov dword [esi], 0x508704
mov dword [esi + 0xa0], eax
mov ebp, 1
push str.HTMLBox_framedata
mov dword [esi + 0x88c], ebx
push 8
mov dword [esp + 0x24], ebx
mov dword [esi + 0x890], ebx
mov byte [esi + 0x878], cl
mov dword [esi + 0x54], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x48], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x880], ebx
mov dword [esi + 0x888], ebp
mov dword [esi + 0x87c], ebx
mov dword [esi + 0x884], ebp
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebp
mov dword [esi + 0x24], ebp
mov dword [esi + 0x1c], ebp
mov dword [esi + 0x20], ebp
call fcn.004b9f50
mov ecx, dword [esi + 0x18]
mov edi, eax
shl ecx, 3
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [esi + 0x40], edi
push str.HTMLBox_frame0
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esi + 0x24]
imul eax, dword [esi + 0x20]
lea ecx, [eax + eax + 4]
push ecx
call fcn.004b9f50
mov edx, dword [esi + 0x40]
mov dword [edx + 4], eax
mov ecx, dword [esi + 0x24]
imul ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x40]
xor eax, eax
shl ecx, 1
mov edi, dword [edx + 4]
mov edx, ecx
add edi, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esi + 0x40]
mov dx, word [esi + 0x20]
lea edi, [esi + 0xa4]
mov ecx, dword [eax + 4]
mov word [ecx], dx
mov eax, dword [esi + 0x40]
mov dx, word [esi + 0x24]
mov ecx, dword [eax + 4]
xor eax, eax
mov word [ecx + 2], dx
mov ecx, 0x1f4
rep stosd dword es:[edi], eax
push 0xb4
mov dword [esi + 0x874], 0xffffffff
mov dword [esi + 0x894], 0xdac
mov dword [esi + 0x898], 0xdad
mov dword [esi + 0x89c], 0xdae
mov dword [esi + 0x8a0], 0xdaf
mov dword [esi + 0x8a4], 0xdb0
mov dword [esi + 0x8a8], 0xdb1
mov dword [esi + 0x8ac], 0xdb2
mov dword [esi + 0x8b0], 0xdb3
mov dword [esi + 0x8b4], 0xdb4
call fcn.004ed8ee
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebx
mov byte [esp + 0x1c], 1
je 0x478c89
push esi
mov ecx, eax
call fcn.0044ec60
jmp 0x478c8b
xor eax, eax
mov dword [esi + 0x8b8], eax
mov eax, dword [esp + 0x24]
push ebp
push eax
mov ecx, esi
mov byte [esp + 0x24], bl
call fcn.0046af30
mov ecx, dword [esp + 0x14]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0xc
Function at 0x47d110
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x18
push ebp
mov ebp, ecx
push esi
push edi
mov eax, dword [ebp + 0x25c]
test eax, eax
je 0x47d14b
mov edx, dword [eax + 4]
lea ecx, [esp + 0xc]
push 0x14
and edx, 0xbfffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_GetKeyNameTextA]
mov edx, dword [ebp + 0x270]
lea edi, [esp + 0xc]
add edx, 0xfc
jmp 0x47d15c
mov edx, dword [ebp + 0x270]
mov edi, 0x636af0
add edx, 0xfc
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 0x270]
mov edx, dword [ecx]
call dword [edx + 0x17c]
mov eax, dword [ebp + 0x25c]
test eax, eax
je 0x47d1a7
mov ecx, dword [eax + 8]
test ecx, ecx
je 0x47d1a7
mov eax, dword [ebp + 0x264]
mov byte [eax + 0xbc], 1
jmp 0x47d1b4
mov ecx, dword [ebp + 0x264]
mov byte [ecx + 0xbc], 0
mov ecx, dword [ebp + 0x264]
call fcn.0043cab0
mov eax, dword [ebp + 0x25c]
test eax, eax
je 0x47d1df
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x47d1df
mov edx, dword [ebp + 0x268]
mov byte [edx + 0xbc], 1
jmp 0x47d1ec
mov eax, dword [ebp + 0x268]
mov byte [eax + 0xbc], 0
mov ecx, dword [ebp + 0x268]
call fcn.0043cab0
mov eax, dword [ebp + 0x25c]
test eax, eax
je 0x47d217
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x47d217
mov ecx, dword [ebp + 0x26c]
mov byte [ecx + 0xbc], 1
jmp 0x47d224
mov edx, dword [ebp + 0x26c]
mov byte [edx + 0xbc], 0
mov ecx, dword [ebp + 0x26c]
call fcn.0043cab0
mov eax, dword [ebp + 0x260]
mov esi, dword [eax + 0x4c]
test esi, esi
je 0x47d25f
mov edx, dword [esi]
mov edi, dword [esi + 0x44]
mov ecx, esi
call dword [edx + 0x120]
test eax, eax
je 0x47d259
test esi, esi
je 0x47d259
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax]
test edi, edi
mov esi, edi
jne 0x47d23c
mov eax, dword [ebp + 0x25c]
test eax, eax
je 0x47d2ad
mov ecx, dword [eax + 0x14]
xor edi, edi
test ecx, ecx
jle 0x47d2a1
xor esi, esi
mov ecx, dword [esi + eax + 0x20]
mov edx, dword [esi + eax + 0x1c]
mov eax, dword [esi + eax + 0x18]
push 0xe
push 4
push ecx
mov ecx, dword [ebp + 0x260]
push edx
push eax
call fcn.0043ecd0
mov eax, dword [ebp + 0x25c]
inc edi
add esi, 0x14
cmp edi, dword [eax + 0x14]
jl 0x47d274
mov ecx, dword [ebp + 0x25c]
cmp dword [ecx + 0x14], 0xa
jge 0x47d2c2
mov ecx, dword [ebp + 0x260]
push 0xe
push 4
push 0
push 0
push 0
call fcn.0043ecd0
pop edi
pop esi
pop ebp
add esp, 0x18
ret
Function at 0x47ff70
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4fe093
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
lea ebx, [esi + 8]
mov ecx, ebx
call fcn.004de330
lea edi, [esi + 0x18]
mov dword [esp + 0x18], 0
mov ecx, edi
call fcn.004de330
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
push ecx
mov ecx, ebx
mov dword [esp + 0x1c], 1
mov dword [esi], 0x508f40
mov dword [esi + 4], eax
call fcn.004de6b0
mov edx, dword [esp + 0x28]
mov ecx, edi
push edx
call fcn.004de6b0
mov eax, dword [esp + 0x34]
mov ecx, edi
mov dword [esi + 0x28], eax
call fcn.004dea20
push eax
call fcn.004ccfc0
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
add esp, 4
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], ecx
mov ecx, dword [esp + 0x10]
mov dword [esi + 0x34], edx
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x18
Function at 0x4807a0
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x4fe134
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
lea ebx, [esi + 8]
mov ecx, ebx
call fcn.004de330
lea edi, [esi + 0x18]
mov dword [esp + 0x18], 0
mov ecx, edi
call fcn.004de330
mov dword [esi], 0x508ef8
lea ecx, [esi + 0x2c]
mov dword [esp + 0x18], 1
call fcn.004de330
push fcn.004de3d0
push fcn.004de330
lea eax, [esi + 0x3c]
push 0xc
push 0x10
push eax
mov byte [esp + 0x2c], 2
call fcn.004ee90e
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
push ecx
mov ecx, ebx
mov byte [esp + 0x1c], 3
mov dword [esi], 0x508f70
mov dword [esi + 4], eax
call fcn.004de6b0
mov edx, dword [esp + 0x28]
mov ecx, edi
push edx
call fcn.004de6b0
mov eax, dword [esp + 0x30]
mov ecx, edi
mov dword [esi + 0x28], eax
call fcn.004dea20
push eax
call fcn.004cd4a0
add esp, 4
lea ecx, [esi + 0x2c]
push eax
call fcn.004de730
mov ecx, dword [esp + 0x2c]
mov dword [esi + 0xfc], 0
call fcn.004dea20
mov edi, eax
mov ax, word [edi]
test ax, ax
je 0x480886
cmp ax, 0x5b
je 0x480886
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x480874
cmp word [edi], 0
je 0x48088f
add edi, 2
mov ax, word [edi]
test ax, ax
je 0x4808f2
cmp ax, 0x5d
je 0x4808f2
test ax, ax
je 0x4808cc
cmp ax, 0x5d
je 0x4808cc
cmp ax, 0x7c
je 0x4808cc
mov ecx, dword [esi + 0xfc]
push eax
shl ecx, 4
add edi, 2
lea ecx, [ecx + esi + 0x3c]
call fcn.004de890
mov ax, word [edi]
test ax, ax
jne 0x4808a2
mov edx, dword [esi + 0xfc]
inc edx
mov dword [esi + 0xfc], edx
mov ax, word [edi]
test ax, ax
je 0x4808ea
cmp ax, 0x5d
je 0x4808ea
add edi, 2
mov ax, word [edi]
test ax, ax
jne 0x480897
mov eax, dword [esi + 0xfc]
xor edi, edi
test eax, eax
jle 0x48091c
lea ebx, [esi + 0x3c]
push ebx
lea ecx, [esi + 0x2c]
call fcn.004de920
test eax, eax
jne 0x48091c
mov eax, dword [esi + 0xfc]
inc edi
add ebx, 0x10
cmp edi, eax
jl 0x480901
cmp edi, dword [esi + 0xfc]
jne 0x480930
lea eax, [esi + 0x3c]
lea ecx, [esi + 0x2c]
push eax
call fcn.004de6b0
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret 0x14
Function at 0x4829e0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x4fe358
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.0046b880
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov dword [esi + 0xa0], eax
mov eax, dword [esp + 0x2c]
xor edi, edi
lea ebx, [esi + 0x24]
mov dword [esi], 0x5092a0
mov dword [esi + 0xa4], ecx
mov dword [esi + 0xa8], eax
mov dword [esi + 0xb0], edi
mov eax, dword [eax*4 + 0x51f730]
lea ebp, [esi + 0x20]
push ebx
push ebp
push eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x30], eax
mov dword [esi + 8], str.pointer_gump
call fcn.004a9760
push str.framedata_for_pointgump
push 8
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], 1
call fcn.004b9f50
mov ecx, dword [esi + 0x18]
mov edi, eax
shl ecx, 3
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [esi + 0x40], edi
push str.point_frame0
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp]
imul eax, dword [ebx]
lea ecx, [eax + eax + 4]
push ecx
call fcn.004b9f50
mov edx, dword [esi + 0x40]
mov dword [edx + 4], eax
mov eax, dword [esi + 0x40]
mov dx, word [ebp]
mov ecx, dword [eax + 4]
mov word [ecx], dx
mov eax, dword [esi + 0x40]
mov dx, word [ebx]
mov ecx, dword [eax + 4]
xor eax, eax
mov word [ecx + 2], dx
mov ecx, dword [ebp]
imul ecx, dword [ebx]
mov edx, dword [esi + 0x40]
shl ecx, 1
mov edi, dword [edx + 4]
mov edx, ecx
add edi, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebx]
mov edx, dword [esi + 0x40]
mov ecx, dword [ebp]
push eax
mov eax, dword [edx + 4]
push ecx
add eax, 4
push eax
push 0
mov ecx, dword [esp + 0x50]
push 0
push ecx
push fcn.004d4cf0
call fcn.004a97c0
mov ecx, dword [esp + 0x4c]
add esp, 0x38
mov eax, esi
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0xc
Function at 0x489c50
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x4fe768
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.0046b880
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x24]
mov dword [esi + 0xa4], ecx
mov ecx, dword [esp + 0x28]
mov dword [esi + 0xb4], edx
mov edx, dword [esp + 0x2c]
mov dword [esi + 0xb0], ecx
mov ecx, dword [esp + 0x30]
xor eax, eax
push str.framedata_for_pointgump
push 8
mov dword [esp + 0x24], eax
mov dword [esi], 0x509d90
mov dword [esi + 8], str.Simple_button
mov dword [esi + 0xac], edx
mov dword [esi + 0xa0], ecx
mov byte [esi + 0xa9], al
mov byte [esi + 0xa8], al
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], 1
call fcn.004b9f50
mov ecx, dword [esi + 0x18]
mov edi, eax
shl ecx, 3
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [esi + 0x40], edi
lea ebp, [esi + 0x24]
rep stosd dword es:[edi], eax
mov ecx, edx
lea ebx, [esi + 0x20]
and ecx, 3
push ebp
rep stosb byte es:[edi], al
mov eax, dword [esi + 0xb4]
push ebx
push eax
call fcn.004a9760
mov ecx, dword [ebx]
push str.frame0
imul ecx, dword [ebp]
lea edx, [ecx + ecx + 4]
push edx
call fcn.004b9f50
mov ecx, dword [esi + 0x40]
add esp, 0x1c
mov dword [ecx + 4], eax
mov edx, dword [esi + 0x40]
mov cx, word [ebx]
mov eax, dword [edx + 4]
mov word [eax], cx
mov edx, dword [esi + 0x40]
mov cx, word [ebp]
mov eax, dword [edx + 4]
mov word [eax + 2], cx
mov al, byte [esi + 0xa8]
test al, al
je 0x489d59
mov edx, dword [esi + 0xac]
mov dword [esp + 0x34], edx
jmp 0x489d79
mov al, byte [esi + 0xa9]
test al, al
je 0x489d6f
mov eax, dword [esi + 0xb0]
mov dword [esp + 0x34], eax
jmp 0x489d79
mov ecx, dword [esi + 0xb4]
mov dword [esp + 0x34], ecx
mov ecx, dword [ebx]
mov edx, dword [esi + 0x40]
imul ecx, dword [ebp]
mov edi, dword [edx + 4]
xor eax, eax
shl ecx, 1
mov edx, ecx
add edi, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp]
mov edx, dword [esi + 0x40]
mov ecx, dword [ebx]
push eax
mov eax, dword [edx + 4]
push ecx
mov ecx, dword [esp + 0x3c]
add eax, 4
push eax
push 7
push 0xa
push ecx
push fcn.004d52c0
call fcn.004a97c0
mov ecx, dword [esp + 0x30]
add esp, 0x1c
mov eax, esi
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x14
Function at 0x48f470
Capabilities:
Get geographical location

Disassembly:
push 0xffffffffffffffff
push 0x4fe9a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
mov dword [esi], 0x50a6f4
xor edi, edi
mov dword [0x80c314], edi
mov dword [0x80c34c], edi
mov eax, dword [esi + 0x40]
mov dword [esp + 0x14], edi
mov eax, dword [eax + 4]
cmp eax, edi
je 0x48f4c4
push str.CityChoice_frame0_pBMP
push eax
call fcn.004b9f90
mov ecx, dword [esi + 0x40]
add esp, 8
mov dword [ecx + 4], edi
mov eax, dword [esi + 0x40]
cmp eax, edi
je 0x48f4dc
push str.CityChoice_framedata
push eax
call fcn.004b9f90
add esp, 8
mov dword [esi + 0x40], edi
mov ecx, dword [esi + 0x104]
cmp ecx, edi
je 0x48f4ec
mov edx, dword [ecx]
push 1
call dword [edx]
mov ecx, dword [esi + 0xfc]
cmp ecx, edi
je 0x48f4fc
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [esi + 0xf8]
cmp ecx, edi
je 0x48f50c
mov edx, dword [ecx]
push 1
call dword [edx]
mov ecx, dword [esi + 0x100]
cmp ecx, edi
je 0x48f51c
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, esi
mov dword [esp + 0x14], 0xffffffff
call fcn.0046b940
mov ecx, dword [esp + 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x498600
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x4fee58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x10], esi
call fcn.0046b880
mov ebp, dword [esp + 0x38]
xor eax, eax
mov dword [esi], 0x50b4c4
mov dword [esi + 0xb0], ebp
mov ecx, dword [ebp + 0x80]
mov dword [esp + 0x30], eax
mov dword [esi + 0x14], eax
mov eax, 1
push str.framedata_for_pointgump
push 8
mov dword [esi + 0xac], ecx
mov dword [esi + 8], str.target_gump
mov dword [esi + 0x18], eax
mov dword [esi + 0xa4], eax
mov dword [esi + 0xa8], eax
call fcn.004b9f50
mov ecx, dword [esi + 0x18]
mov edi, eax
shl ecx, 3
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [esi + 0x40], edi
lea ebx, [esi + 0x20]
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea edi, [esi + 0x24]
push edi
push ebx
push 0x1068
call fcn.004a9760
mov eax, dword [edi]
push str.frame0
imul eax, dword [ebx]
lea ecx, [eax + eax + 4]
push ecx
call fcn.004b9f50
mov edx, dword [esi + 0x40]
add esp, 0x1c
mov dword [edx + 4], eax
mov eax, dword [esi + 0x40]
mov dx, word [ebx]
mov ecx, dword [eax + 4]
mov word [ecx], dx
mov eax, dword [esi + 0x40]
mov dx, word [edi]
mov ecx, dword [eax + 4]
mov word [ecx + 2], dx
mov ecx, esi
call fcn.00498840
lea eax, [esp + 0x38]
mov dword [esi + 0xa0], 0
push eax
push ecx
push esp
mov ecx, 0x8d3cd8
mov dword [esp + 0x44], esi
call fcn.0040b1b0
lea ecx, [esp + 0x1c]
push ecx
mov ecx, 0x8d3cd8
call fcn.00498f40
mov edx, dword [ebp + 0x80]
lea eax, [esp + 0x18]
push edx
push 4
push eax
call fcn.004262a0
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [0xcf38a8]
call fcn.0042ee70
mov ecx, dword [esp + 0x28]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret 4
Function at 0x49a670
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4fefc8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.0046b880
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov dword [esi], 0x50b948
mov dword [esi + 0x30], eax
xor ebp, ebp
mov dword [esi + 0x34], ecx
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
mov dword [esi + 8], str.InputControl_gump
mov dword [esi + 0x64], ebp
mov dword [esi + 0x58], ebp
mov dword [esi + 0x264], ebp
mov word [esi + 0xe8], bp
mov word [esi + 0xec], bp
mov word [esi + 0xea], bp
mov dword [esi + 0x68], ebp
mov dword [esi + 0x54], ebp
mov dword [esi + 0x50], ebp
and edx, 0xffff
and eax, 0xffff
push str.framedata_for_CUnicodeInputControlGump
mov dword [esi + 0x4c], ebp
push 8
mov dword [esp + 0x20], ebp
mov dword [esi + 0x48], ebp
mov dword [esi + 0x44], ebp
mov dword [esi + 0x20], edx
mov dword [esi + 0x24], eax
mov dword [esi + 0xd0], 1
mov dword [esi + 0x14], ebp
mov dword [esi + 0x18], 1
call fcn.004b9f50
mov ecx, dword [esi + 0x18]
mov edi, eax
shl ecx, 3
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [esi + 0x40], edi
push str.inpctrl_frame0
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esi + 0x24]
imul eax, dword [esi + 0x20]
lea ecx, [eax + eax + 4]
push ecx
call fcn.004b9f50
mov edx, dword [esi + 0x40]
add esp, 0x10
mov dword [edx + 4], eax
mov ecx, dword [esi + 0x24]
imul ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x40]
xor eax, eax
shl ecx, 1
mov edi, dword [edx + 4]
mov edx, ecx
add edi, 4
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esi + 0x40]
mov dx, word [esi + 0x20]
mov ecx, dword [eax + 4]
mov word [ecx], dx
mov eax, dword [esi + 0x40]
mov dx, word [esi + 0x24]
mov ecx, dword [eax + 4]
mov al, byte [esp + 0x34]
mov word [ecx + 2], dx
mov edx, dword [esp + 0x44]
mov edi, dword [esp + 0x4c]
mov ecx, dword [esp + 0x38]
mov dword [esi + 0xb8], edx
xor edx, edx
cmp edi, ebp
mov dword [esi + 0x268], ecx
mov ecx, dword [esp + 0x48]
setne dl
cmp al, 1
mov byte [esi + 0xf0], al
mov dword [esi + 0xc4], ecx
mov dword [esi + 0xcc], edx
mov dword [esi + 0xc0], ebp
mov dword [esi + 0xbc], ebp
mov dword [esi + 0xc8], ebp
mov dword [esi + 0xe4], ebp
mov dword [esi + 0xe0], ebp
mov dword [esi + 0xdc], ebp
mov dword [esi + 0xd8], ebp
mov dword [esi + 0xd4], ebp
mov byte [esi + 0xee], 3
mov byte [esi + 0xef], 2
mov word [esi + 0xf8], bp
mov dword [esi + 0xf4], ebp
jne 0x49a82c
mov dword [esi + 0x26c], 1
jmp 0x49a832
mov dword [esi + 0x26c], ebp
mov cx, word [esp + 0x40]
mov ax, word [esp + 0x3c]
mov word [esi + 0x276], cx
mov ecx, esi
mov dword [esi + 0x270], ebp
mov word [esi + 0x274], ax
mov dword [esi + 0x278], ebp
call fcn.0049a910
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x30
Function at 0x49c590
Capabilities:
Create thread

Disassembly:
push esi
mov esi, dword [esp + 8]
push 1
lea eax, [esi + 0x384]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
lea ecx, [esp + 8]
push ecx
push 0
push esi
push 0x49c270
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
xor edx, edx
mov dword [esi + 0x388], eax
test eax, eax
sete dl
mov eax, edx
pop esi
ret

Function at 0x49c936
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4ff008
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
call fcn.00402d30
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x14], 0
test edi, edi
mov dword [esi], 0x50bac4
jne 0x49c966
push str.CBigMobComponent::CBigMobComponent:_myOwner__NULL_n
call fcn.004de150
add esp, 4
mov cx, word [esp + 0x20]
mov ax, word [esp + 0x1c]
mov edx, dword [esp + 0x28]
mov word [esi + 0x26], cx
mov ecx, dword [esp + 0x24]
mov word [esi + 0x24], ax
mov dword [esi + 0x44], ecx
mov dword [esi + 0x48], edx
mov dword [esi + 0x4c], edi
mov eax, dword [edi + 0xb8]
test eax, eax
mov dword [esi + 0x50], eax
je 0x49c999
mov dword [eax + 0x54], esi
mov eax, dword [esi + 0x4c]
mov dword [esi + 0x54], 0
pop edi
mov dword [eax + 0xb8], esi
mov eax, dword [esi + 0x4c]
mov dword [esi + 0xc], ecx
mov ecx, dword [eax + 8]
mov dword [esi + 0x14], edx
mov dword [esi + 8], ecx
mov edx, dword [eax + 0x10]
mov dword [esi + 0x10], edx
mov ecx, dword [eax + 0x2c]
movsx edx, word [esi + 0x24]
mov dword [esi + 0x2c], ecx
movsx ecx, word [esi + 0x26]
add edx, ecx
mov ecx, dword [esp + 8]
mov dword [esi + 0x30], edx
mov edx, dword [eax + 0x34]
mov dword [esi + 0x34], edx
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 0x14
Function at 0x49f3c0
Capabilities:
Create tcp socket
Create udp socket
Receive data
Receive data on socket
Resolve dns
Send data
Send data on socket

Disassembly:
sub esp, 0x140
push ebx
push ebp
push esi
push edi
push 0x5192f8
push str.servers.txt
xor ebp, ebp
call fcn.004c1810
add esp, 4
push eax
call fcn.004ee0e7
mov esi, eax
add esp, 8
test esi, esi
jne 0x49f535
push 0x522088
push str.servers.tmp
call fcn.004c1810
add esp, 4
push eax
call fcn.004ee0e7
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x49f430
push str.Unable_to_create_servers.tmp_
push 3
push 0x21
call fcn.004d6120
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x140
ret
push str.gq.origin.ea.com
call sub.WSOCK32.dll_gethostbyname
test eax, eax
jne 0x49f45c
push str.Unable_to_resolve_host_gq.origin.ea.com
push 3
push 0x21
call fcn.004d6120
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x140
ret
push 0
push 1
push 2
call sub.WSOCK32.dll_socket
push 0x50
mov esi, eax
call sub.WSOCK32.dll_htons
push 0xcf14e0
push str.GET__john_login.pl_acctname_s_r_n_r_n
lea eax, [esp + 0x18]
push 0xff
push eax
call fcn.004ee435
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 0
push ecx
lea ecx, [esp + 0x18]
push ecx
push esi
call sub.WSOCK32.dll_send
push 0
lea edx, [esp + 0x14]
push pe_nt_image_headers32
push edx
push esi
call sub.WSOCK32.dll_recv
test eax, eax
jle 0x49f4e5
push ebx
push 1
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.004eeb83
add esp, 0x10
lea ecx, [esp + 0x10]
push 0
push pe_nt_image_headers32
push ecx
push esi
call sub.WSOCK32.dll_recv
test eax, eax
jg 0x49f4be
je 0x49f4ed
push esi
call sub.WSOCK32.dll_closesocket
push ebx
call fcn.004edeb7
add esp, 4
push 0x5192f8
push str.servers.tmp
call fcn.004c1810
add esp, 4
push eax
call fcn.004ee0e7
mov esi, eax
add esp, 8
test esi, esi
jne 0x49f535
push str.Unable_to_open_servers.tmp_
push 3
push 0x21
call fcn.004d6120
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x140
ret
push 0
call fcn.004c2410
mov dl, byte [0xcf168c]
lea eax, [esp + 0x114]
push edx
push 0xcf14c0
push 0xcf14e0
push eax
call fcn.00427fa0
push esi
lea ecx, [esp + 0x28]
push 0xff
push ecx
call fcn.004edf34
add esp, 0x20
test eax, eax
je 0x49f5c3
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
js 0x49f590
cmp byte [esp + ecx + 0x10], 0x20
jg 0x49f590
mov byte [esp + ecx + 0x10], 0
dec ecx
jns 0x49f581
mov al, byte [esp + 0x10]
test al, al
je 0x49f5ac
cmp al, 0x23
je 0x49f5ac
lea edx, [esp + 0x10]
push 0xffffffffffffffff
push edx
call fcn.004c3400
add esp, 8
inc ebp
push esi
lea eax, [esp + 0x14]
push 0xff
push eax
call fcn.004edf34
add esp, 0xc
test eax, eax
jne 0x49f571
push esi
call fcn.004edeb7
mov ecx, dword [0x80beec]
add esp, 4
test ecx, ecx
je 0x49f5dc
mov edx, dword [ecx]
push 1
call dword [edx]
pop edi
mov eax, ebp
pop esi
pop ebp
mov dword [0x80beec], 0
pop ebx
add esp, 0x140
ret