joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ce140
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x52a6a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.00522fec
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.004cdaa0
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00522f1a
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.0051f7e3
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.0051f7e3
push 1
push 0
push 0
mov ecx, esi
call fcn.0051f78b
push 1
push 0
push 1
mov ecx, esi
call fcn.0051f78b
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0052305e
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x4ce2c0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x52a6c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.00522fec
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.004cdaa0
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.00522f1a
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x4ce384
cmp dword [esp + 0x40], 1
jne 0x4ce382
cmp ecx, eax
jge 0x4ce384
mov eax, ecx
cmp eax, 0xc8
jge 0x4ce390
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.004ce140
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0052305e
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x4ceb80
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x52a773
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.0051dbfe
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], method.CBrush.virtual_0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.00523294
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.005247b0
test eax, eax
je 0x4cec9c
mov ecx, dword [esp + 0x3c]
call fcn.005232c1
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x4cec60
push edi
mov ecx, esi
call fcn.0052092a
mov ecx, esi
call fcn.004cee40
cmp dword [esp + 0x38], 1
jne 0x4cec95
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.00520a65
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x4d0e80
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x4d0eb3
push esi
call fcn.004df240
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x4d0eac
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x4d0f39
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4d0f22
mov eax, dword [esi + 8]
test eax, eax
je 0x4d0ed7
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x4d0f1e
cmp eax, 2
je 0x4d0f22
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4d0eca
cmp eax, 3
je 0x4d0efd
cmp eax, 1
jne 0x4d0eca
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x4d0eca
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4d0eca
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.004d0f60
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4d0f48
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.004d0f60
add esp, 4
pop esi
ret

Function at 0x4d17e0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x4d1801
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x4d1801
mov eax, dword [eax + 0x44]
test eax, eax
je 0x4d1801
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4ec0e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
xor edx, edx
mov eax, dword [esi + 0x3c]
xor edi, edi
mov eax, dword [eax + esi + 0x78]
add eax, esi
mov ecx, dword [eax + 0x20]
mov ebx, dword [eax + 0x24]
mov ebp, dword [eax + 0x1c]
mov eax, dword [eax + 0x18]
add ecx, esi
add ebx, esi
add ebp, esi
mov dword [esp + 0x10], eax
test eax, eax
jbe 0x4ec15c
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
push edx
mov eax, dword [ecx]
add eax, esi
push eax
call fcn.0050d550
add esp, 8
test eax, eax
je 0x4ec14a
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
inc edi
add ecx, 4
cmp edi, eax
mov dword [esp + 0x18], ecx
jb 0x4ec114
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
xor eax, eax
mov ax, word [ebx + edi*2]
pop edi
mov eax, dword [ebp + eax*4]
add eax, esi
pop esi
pop ebp
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
mov eax, edx
pop ebx
pop ecx
ret
Function at 0x4ec1a0
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
push ebp
push esi
mov esi, dword [esp + 0x10]
xor ecx, ecx
push edi
mov edi, dword [esp + 0x18]
mov eax, dword [esi + 0x3c]
add eax, esi
mov cx, word [eax + 0x14]
mov bp, word [eax + 6]
lea edx, [ecx + eax + 0x18]
mov ecx, dword [eax + 0x54]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
test bp, bp
rep movsb byte es:[edi], byte [esi]
jbe 0x4ec230
push ebx
lea ebx, [edx + 0xc]
lea eax, [edx + 0x14]
add edx, 0x10
and ebp, 0xffff
mov dword [esp + 0x10], ebp
mov edi, dword [ebx]
test edi, edi
je 0x4ec211
mov ecx, dword [edx]
test ecx, ecx
je 0x4ec211
mov esi, dword [eax]
mov ebp, dword [esp + 0x18]
add esi, ebp
mov ebp, dword [esp + 0x1c]
add edi, ebp
mov ebp, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
add edx, 0x28
add eax, 0x28
add ebx, 0x28
dec ecx
mov dword [esp + 0x10], ecx
jne 0x4ec1e9
pop ebx
pop edi
pop esi
mov eax, 1
pop ebp
pop ecx
ret
pop edi
pop esi
mov eax, 1
pop ebp
pop ecx
ret
Function at 0x4ee630
Capabilities:
Write file on windows

Disassembly:
push ecx
mov eax, dword [ecx]
test eax, eax
jne 0x4ee63b
pop ecx
ret 8
mov edx, dword [esp + 0xc]
lea ecx, [esp]
push 0
push ecx
mov ecx, dword [esp + 0x10]
push edx
push ecx
push eax
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ecx
ret 8

Function at 0x4ee930
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0x18]
push esi
push edi
xor edi, edi
cmp ebx, edi
mov word [ebp], di
je 0x4eea8c
mov esi, dword [esp + 0x1c]
cmp esi, edi
je 0x4eea8c
push 0xf0000000
push 1
push edi
lea eax, [esp + 0x28]
push edi
push eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x24], edi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x4eea63
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x20]
push ecx
push edi
push edi
push 0x8003
push edx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x4eea63
mov eax, dword [esp + 0x20]
push edi
push esi
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x4eea63
mov edx, dword [esp + 0x20]
mov esi, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
lea ecx, [esp + 0x18]
push edi
push ecx
push edi
push 2
push edx
mov dword [esp + 0x2c], 4
call esi
test eax, eax
je 0x4eea63
mov eax, dword [esp + 0x18]
push eax
call fcn.0050c3f7
mov ebx, eax
add esp, 4
cmp ebx, edi
je 0x4eea63
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x18]
push edi
push ecx
push ebx
push 2
push edx
call esi
cmp eax, edi
mov dword [esp + 0x10], eax
je 0x4eea5a
mov eax, dword [esp + 0x18]
cmp eax, 0x10
jb 0x4eea2a
mov eax, ebx
mov ecx, ebp
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov eax, dword [eax + 0xc]
mov dword [ecx + 0xc], eax
jmp 0x4eea56
mov ecx, eax
mov esi, ebx
mov edx, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x10
lea edi, [ebp + eax*2]
sub ecx, eax
xor eax, eax
shr ecx, 1
rep stosd dword es:[edi], eax
adc ecx, ecx
rep stosw word es:[edi], ax
xor edi, edi
mov word [ebp + 0x20], di
push ebx
call fcn.0050c30e
add esp, 4
mov eax, dword [esp + 0x20]
cmp eax, edi
je 0x4eea72
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [esp + 0x1c]
cmp eax, edi
je 0x4eea82
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret
Function at 0x4f02d0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0xc
test eax, eax
je 0x4f02f7
cmp word [eax], 0x5a4d
jne 0x4f02f7
mov ecx, dword [eax + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4f02f7
test word [eax + 4], 0x14c
jne 0x4f02ff
xor eax, eax
add esp, 0xc
ret 8
mov edx, dword [eax + 0x54]
mov cx, word [eax + 6]
push ebx
mov dword [esp + 4], edx
push ebp
xor edx, edx
mov dx, word [eax + 0x14]
push esi
mov esi, dword [eax + 0x50]
push edi
mov edi, dword [esp + 0x24]
mov word [esp + 0x14], cx
lea ecx, [edx + eax + 0x18]
mov eax, dword [edi]
mov dword [esp + 0x18], ecx
test eax, eax
jne 0x4f0348
cmp esi, dword [0x5b3544]
jne 0x4f0338
xor esi, esi
push 0
push esi
mov ecx, edi
call fcn.004eca60
mov edx, dword [edi]
mov dword [edx], esi
jmp 0x4f0386
mov ebx, dword [eax]
mov eax, dword [eax + 0xc]
cmp eax, esi
jae 0x4f0362
lea eax, [eax + esi + 0x1000]
push 0
push eax
mov ecx, edi
call fcn.004eca60
mov ecx, dword [edi]
cmp esi, ebx
mov dword [ecx], esi
mov eax, dword [edi]
mov edx, dword [eax + 8]
mov eax, dword [eax]
mov byte [edx + eax], 0
ja 0x4f0386
jae 0x4f0386
mov ecx, dword [edi]
inc esi
cmp esi, ebx
mov edx, dword [ecx + 8]
mov byte [edx + esi - 1], 0
jb 0x4f0377
mov edi, dword [edi]
test edi, edi
je 0x4f0391
mov ebp, dword [edi + 8]
jmp 0x4f0393
xor ebp, ebp
mov ecx, dword [esp + 0x10]
mov esi, dword [esp + 0x20]
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov dword [esp + 0x24], ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x14]
test cx, cx
jbe 0x4f0414
mov ebx, dword [esp + 0x18]
lea eax, [ebx + 0xc]
lea edx, [ebx + 0x14]
add ebx, 0x10
and ecx, 0xffff
mov dword [esp + 0x10], ecx
mov edi, dword [eax]
test edi, edi
je 0x4f0400
mov ecx, dword [ebx]
test ecx, ecx
je 0x4f0400
mov esi, dword [edx]
add edi, ebp
add esi, dword [esp + 0x20]
mov ebp, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
mov ebp, dword [esp + 0x24]
and ecx, 3
add ebx, 0x28
add edx, 0x28
add eax, 0x28
rep movsb byte es:[edi], byte [esi]
jmp 0x4f0409
add ebx, 0x28
add edx, 0x28
add eax, 0x28
mov ecx, dword [esp + 0x10]
dec ecx
mov dword [esp + 0x10], ecx
jne 0x4f03cf
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 8
Function at 0x4f6200
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x63da34]
xor edx, edx
cmp eax, edx
jne 0x4f6226
xor eax, eax
mov byte [eax + 0x63d934], al
inc eax
cmp eax, 0x100
jl 0x4f620e
mov dword [0x63da34], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x63d934
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4f62b7
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x4f628a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x4f6258
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4f62c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x4f6313
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x4f62fa
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4fccc0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x52ae2e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.004fd5e0
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x605f9c
call fcn.0051c364
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x4fcd53
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0051c364
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x4fcd4c
push 0
mov ecx, eax
call fcn.004f3e30
mov dword [esi + 0xc], eax
jmp 0x4fcd55
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x4fcd55
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x51e9f4
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x51ea2c
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0051ca7e
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0051ca56
jmp 0x51ea38
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x5200e7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x520129
call fcn.00525b9b
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x520129
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x520120
xor eax, eax
jmp 0x520131
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00520137
pop edi
pop esi
pop ebx
ret 4

Function at 0x5260cb
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x5260f9
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x526117
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00526031
jmp 0x526117
mov eax, dword [esi + 0x14]
test eax, eax
je 0x526117
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00526031
test edi, edi
mov eax, edi
jne 0x526101
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x6d6621ec
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x6d671098]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x100
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.ws2_32.dll_gethostname]
cmp eax, 0xffffffff
jne 0x6d66222d
lea eax, [ebp - 0x104]
push str.localhost
push eax
call sub.msvcr100.dll_strcpy
pop ecx
pop ecx
lea eax, [ebp - 0x104]
push eax
push esi
call sub.java.dll__JNU_NewStringPlatform_8
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.6d66b1da
leave
ret 8
Function at 0x6d662cb0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x448
mov eax, dword [0x6d671098]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
push esi
xor ebx, ebx
push edi
mov dword [ebp - 0x448], ebx
call dword [eax + 0x2ac]
lea ecx, [ebp - 0x14]
cmp eax, 4
mov eax, dword [edi]
push ecx
jne 0x6d662d46
push 4
push ebx
push esi
push edi
call dword [eax + 0x320]
movsx esi, byte [ebp - 0x14]
movzx eax, byte [ebp - 0x13]
shl esi, 8
or esi, eax
movzx eax, byte [ebp - 0x12]
shl esi, 8
or esi, eax
movzx eax, byte [ebp - 0x11]
shl esi, 8
push 0x10
or esi, eax
lea eax, [ebp - 0x428]
push ebx
push eax
call sub.msvcr100.dll_memset
add esp, 0xc
push esi
call dword [sym.imp.ws2_32.dll_htonl]
push 2
mov dword [ebp - 0x424], eax
pop eax
mov word [ebp - 0x428], ax
lea eax, [ebp - 0x428]
push 0x10
jmp 0x6d662d87
push 0x10
push ebx
push esi
push edi
call dword [eax + 0x320]
push 0x1c
lea eax, [ebp - 0x444]
push ebx
push eax
call sub.msvcr100.dll_memset
push 0x10
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x43c]
push eax
call sub.msvcr100.dll_memcpy
add esp, 0x18
push 0x17
pop eax
mov word [ebp - 0x444], ax
lea eax, [ebp - 0x444]
push 0x1c
pop ecx
push 4
push ebx
push ebx
push 0x401
lea edx, [ebp - 0x418]
push edx
push ecx
push eax
call dword [sym.imp.ws2_32.dll_getnameinfo]
test eax, eax
jne 0x6d662dbe
mov eax, dword [edi]
lea ecx, [ebp - 0x418]
push ecx
push edi
call dword [eax + 0x29c]
mov dword [ebp - 0x448], eax
cmp eax, ebx
jne 0x6d662dca
push ebx
push str.java_net_UnknownHostException
push edi
call sub.java.dll__JNU_ThrowByName_12
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x448]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.6d66b1da
leave
ret 0xc
Function at 0x6d6630a0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
lea ebp, [esp - 0x794]
sub esp, 0x814
mov eax, dword [0x6d671098]
xor eax, ebp
mov dword [ebp + 0x790], eax
mov eax, dword [ebp + 0x7a4]
mov ecx, dword [ebp + 0x7a8]
push esi
mov esi, dword [ebp + 0x79c]
push edi
mov edi, dword [ebp + 0x7b0]
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x80], ecx
test eax, eax
jne 0x6d6630f7
push str.socket_closed
push str.java_net_SocketException
push esi
call sub.java.dll__JNU_ThrowByName_12
or eax, 0xffffffff
jmp 0x6d66328b
push dword [0x6d671130]
mov ecx, dword [esi]
push eax
push esi
call dword [ecx + 0x190]
mov dword [ebp - 0x78], eax
cmp eax, 0xffffffff
jne 0x6d66311e
push str.Socket_closed
push esi
call fcn.6d663a15
pop ecx
pop ecx
jmp 0x6d6630ef
push ebx
mov ebx, 0x800
cmp edi, ebx
jg 0x6d66312d
lea ebx, [ebp - 0x70]
jmp 0x6d663153
mov eax, 0x10000
cmp edi, eax
jle 0x6d663138
mov edi, eax
push edi
call dword [sym.imp.msvcr100.dll_malloc]
pop ecx
mov dword [ebp - 0x74], eax
test eax, eax
jne 0x6d663150
lea eax, [ebp - 0x70]
mov edi, ebx
mov ebx, eax
jmp 0x6d663153
mov ebx, dword [ebp - 0x74]
cmp dword [ebp + 0x7b4], 0
je 0x6d6631fc
cmp dword [ebp + 0x7b4], 0x1388
jle 0x6d663179
cmp byte [section..data], 0
jne 0x6d6631fc
push dword [ebp + 0x7b4]
push dword [ebp - 0x78]
call sym.net.dll__NET_Timeout_8
test eax, eax
jg 0x6d6631c1
jne 0x6d663199
push str.Read_timed_out
push str.java_net_SocketTimeoutException
jmp 0x6d6631b9
cmp eax, 0xffffffff
jne 0x6d6631aa
push str.socket_closed
push str.java_net_SocketException
jmp 0x6d6631b9
cmp eax, 0xfffffffe
jne 0x6d6631e5
push str.Operation_interrupted
push str.java_io_InterruptedIOException
push esi
call sub.java.dll__JNU_ThrowByName_12
jmp 0x6d6631e5
push dword [0x6d671130]
mov eax, dword [esi]
push dword [ebp - 0x7c]
push esi
call dword [eax + 0x190]
cmp eax, 0xffffffff
jne 0x6d6631fc
push str.Socket_Closed
push esi
call fcn.6d663a15
pop ecx
pop ecx
lea eax, [ebp - 0x70]
cmp ebx, eax
je 0x6d6631f4
push ebx
call dword [sym.imp.msvcr100.dll_free]
pop ecx
or eax, 0xffffffff
jmp 0x6d66328a
push 0
push edi
push ebx
push dword [ebp - 0x78]
call dword [sym.imp.ws2_32.dll_recv]
mov edi, eax
test edi, edi
jle 0x6d663225
mov eax, dword [esi]
push ebx
push edi
push dword [ebp + 0x7ac]
push dword [ebp - 0x80]
push esi
call dword [eax + 0x340]
jmp 0x6d663279
jns 0x6d663279
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
sub eax, 0x2714
je 0x6d663269
sub eax, 0x32
je 0x6d66325d
sub eax, 4
je 0x6d66325d
dec eax
dec eax
je 0x6d663251
push str.recv_failed
push esi
call fcn.6d663a00
pop ecx
pop ecx
jmp 0x6d663279
push str.Read_timed_out
push str.java_net_SocketTimeoutException
jmp 0x6d663273
push 0x6d66c611
push str.sun_net_ConnectionResetException
jmp 0x6d663273
push str.socket_closed
push str.java_net_SocketException
push esi
call sub.java.dll__JNU_ThrowByName_12
lea eax, [ebp - 0x70]
cmp ebx, eax
je 0x6d663288
push ebx
call dword [sym.imp.msvcr100.dll_free]
pop ecx
mov eax, edi
pop ebx
mov ecx, dword [ebp + 0x790]
pop edi
xor ecx, ebp
pop esi
call fcn.6d66b1da
add ebp, 0x794
leave
ret 0x1c