joyce8/EMBER2024-capa huggingface dataset:
Function at 0x458dc0
Capabilities:
Get socket status

Disassembly:
sub esp, 0x10c
mov eax, dword [ecx]
lea ecx, [esp]
push ecx
push 0
lea edx, [esp + 0x10]
push 0
push edx
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 1
call sub.WS2_32.dll_select
cmp eax, 0xffffffff
jne 0x458e09
xor eax, eax
add esp, 0x10c
ret 4
mov edx, dword [esp + 0x110]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
mov eax, 1
add esp, 0x10c
ret 4

Function at 0x459280
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x48dd60
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.00458e30
lea eax, [esp + 4]
lea ecx, [esi + 4]
push eax
mov dword [esp + 0x18], 0
call fcn.00458eb0
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x14]
call fcn.00458eb0
lea ecx, [esi + 0xc]
call fcn.0047efa4
lea ecx, [esi + 0x10]
call fcn.0047efa4
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1c]
call fcn.0045a440
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x30]
call fcn.0045a440
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x44]
call fcn.0045a440
lea ecx, [esp + 8]
mov dword [esp + 0x14], 1
call fcn.0047f019
lea ecx, [esp + 4]
mov dword [esp + 0x14], 0xffffffff
call fcn.0047f019
mov ecx, dword [esp + 0xc]
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x4752f0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x48ef10
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov al, byte [esp + 0x3c]
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov byte [esp + 0x10], al
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], ebx
mov ecx, dword [esp + 0x44]
push ebx
mov dword [esp + 0x40], ebx
mov byte [esp + 0x28], al
mov edx, dword [ecx]
lea ecx, [esp + 0x28]
mov dword [esp + 0x24], edx
call fcn.0046a3d3
mov eax, dword [0x4bd740]
lea ecx, [esp + 0x10]
push eax
push ebx
push ecx
lea ecx, [esp + 0x30]
call fcn.0046a305
lea edx, [esp + 0x20]
lea eax, [esp + 8]
push edx
push eax
mov ecx, esi
mov byte [esp + 0x44], 1
call fcn.00475df0
mov esi, dword [eax]
mov ecx, dword [eax + 4]
mov eax, dword [esp + 0x28]
cmp eax, ebx
mov dword [esp + 0xc], ecx
je 0x475397
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x47538e
cmp al, 0xff
je 0x47538e
dec al
mov byte [ecx], al
jmp 0x475397
push ecx
call fcn.0047ed83
add esp, 4
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], ebx
cmp eax, ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
je 0x4753c8
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x4753bf
cmp al, 0xff
je 0x4753bf
dec al
mov byte [ecx], al
jmp 0x4753c8
push ecx
call fcn.0047ed83
add esp, 4
mov ecx, dword [esp + 0x34]
lea eax, [esi + 0x10]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x38
ret 4
Function at 0x4813bd
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4813f5
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.0047f474
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0047f44c
jmp 0x481401
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x482aab
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 0x482aed
call fcn.00488823
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x482aed
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x482ae4
xor eax, eax
jmp 0x482af5
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00482afb
pop edi
pop esi
pop ebx
ret 4

Function at 0x488d53
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 0x488d81
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x488d9f
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00488cb9
jmp 0x488d9f
mov eax, dword [esi + 0x14]
test eax, eax
je 0x488d9f
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00488cb9
test edi, edi
mov eax, edi
jne 0x488d89
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x433004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
mov ecx, 0x383295b
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43304e
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x433024
nop
nop
nop
nop
nop
mov eax, section..text_1
nop
mov ebx, 0x4304d8
mov ecx, 0x7a993e41
nop
nop
test eax, eax
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x43306c
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x4011fe
Capabilities:
Set registry value

Disassembly:
jmp 0x4082ac
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov ebx, ecx
xor edi, edi
push esi
call dword [0x443c2c]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x4082b7
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [0x443b50]
pop edi
pop esi
pop ebx
ret 8
Function at 0x401361
Capabilities:
Get file version info

Disassembly:
jmp 0x404450
mov eax, 0x42eae3
call fcn.00425470
sub esp, 0x21c
mov eax, dword [0x441ddc]
push esi
push edi
lea ecx, [ebp - 0x224]
mov dword [ebp - 0x10], eax
call fcn.0040160e
and word [ebp - 0x218], 0
mov esi, dword [ebp + 8]
and dword [ebp - 4], 0
xor eax, eax
test esi, esi
mov ecx, 0x81
lea edi, [ebp - 0x216]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
jne 0x4044b2
push 0x103
lea eax, [ebp - 0x218]
push eax
push esi
call dword [0x443c50]
lea esi, [ebp - 0x218]
lea eax, [ebp - 0x228]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
mov dword [ebp - 0x21c], eax
je 0x40452b
push eax
call fcn.004250aa
pop ecx
mov edi, eax
push edi
push dword [ebp - 0x21c]
push dword [ebp - 0x228]
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x404524
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x220]
push eax
push 0x435640
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x404524
push 0x34
push dword [ebp - 0x220]
push dword [ebp + 0xc]
call fcn.0042549c
push edi
call fcn.004252f2
xor esi, esi
add esp, 0x10
inc esi
jmp 0x40452d
push edi
call fcn.004252f2
pop ecx
xor esi, esi
mov ecx, dword [ebp - 0x224]
add ecx, 0xfffffff0
call fcn.0040103c
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
mov eax, esi
pop esi
call fcn.0042527f
leave
ret 8
Function at 0x401474
Capabilities:
Accept command line arguments
Check if file exists

Disassembly:
jmp 0x40af59
mov eax, 0x42eec3
call fcn.00425470
sub esp, 0x64
mov eax, dword [0x441ddc]
push ebx
xor ebx, ebx
cmp byte [ebp + 0xc], bl
push edi
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x6c], 1
lea edi, [ecx + 0x30]
jne 0x40af84
lea edi, [ecx + 0x24]
add ecx, 0x3c
call fcn.00401960
lea eax, [ebp - 0x68]
push eax
push dword [ebp + 8]
mov dword [ebp - 0x68], ebx
call dword [0x4440b8]
cmp dword [ebp - 0x68], ebx
mov dword [ebp - 0x70], eax
mov dword [ebp + 8], ebx
jle 0x40b0eb
push esi
mov eax, dword [ebp - 0x70]
mov ecx, dword [ebp + 8]
push dword [eax + ecx*4]
lea ecx, [ebp - 0x2c]
call dword [0x443e44]
push ebx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], ebx
call dword [0x443e78]
cmp word [eax], 0x2d
je 0x40afdb
cmp dword [ebp - 0x68], 1
jne 0x40b0ce
lea ecx, [ebp - 0x48]
call dword [0x443e74]
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 1
call dword [0x443e74]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call dword [0x443e3c]
push eax
call dword [0x444104]
test eax, eax
je 0x40b026
push 0x435590
lea ecx, [ebp - 0x48]
call dword [0x443e5c]
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x64]
call dword [0x443e70]
jmp 0x40b082
push ebx
push 0x3a
lea ecx, [ebp - 0x2c]
call dword [0x443e6c]
mov esi, eax
mov eax, dword [0x443e68]
mov eax, dword [eax]
cmp esi, eax
jne 0x40b047
push eax
push 1
lea ecx, [ebp - 0x48]
jmp 0x40b078
cmp esi, 1
jbe 0x40b082
lea eax, [esi - 1]
push eax
push 1
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x48]
call dword [0x443e64]
lea ecx, [ebp - 0x2c]
inc esi
call dword [0x443e60]
cmp esi, eax
jae 0x40b082
mov eax, dword [0x443e68]
push dword [eax]
lea ecx, [ebp - 0x64]
push esi
lea eax, [ebp - 0x2c]
push eax
call dword [0x443e64]
mov eax, dword [edi + 4]
mov esi, dword [eax]
cmp esi, eax
je 0x40b0b5
cmp byte [ebp + 0xc], bl
push dword [ebp + 0x10]
mov ecx, dword [esi + 8]
mov eax, dword [ecx]
lea edx, [ebp - 0x64]
push edx
lea edx, [ebp - 0x48]
push edx
je 0x40b0a5
call dword [eax + 4]
jmp 0x40b0a7
call dword [eax]
test eax, eax
jne 0x40b0ae
mov dword [ebp - 0x6c], ebx
mov esi, dword [esi]
cmp esi, dword [edi + 4]
jne 0x40b08b
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 1
call dword [0x443e38]
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], bl
call dword [0x443e38]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call dword [0x443e38]
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
cmp eax, dword [ebp - 0x68]
jl 0x40afac
pop esi
push dword [ebp - 0x70]
call dword [0x443cac]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x6c]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.0042527f
leave
ret 0xc
Function at 0x40164a
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
jmp 0x407d8b
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x441ddc]
push ebx
push esi
push 0x2001f
push dword [ebp + 0x19c]
mov ebx, ecx
push dword [ebx]
xor esi, esi
lea ecx, [ebp - 0x74]
mov dword [ebp + 0x190], eax
mov dword [ebp - 0x74], esi
call fcn.00401bc2
cmp eax, esi
jne 0x407e13
push edi
mov edi, dword [0x443b54]
jmp 0x407ddc
lea eax, [ebp - 0x70]
push eax
call fcn.0040164a
cmp eax, esi
jne 0x407e12
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x70]
push eax
push esi
push dword [ebp - 0x74]
mov dword [ebp - 0x78], 0x100
call edi
test eax, eax
lea ecx, [ebp - 0x74]
je 0x407dcf
call fcn.004018f7
push dword [ebp + 0x19c]
push dword [ebx]
call dword [0x443b60]
pop edi
lea ecx, [ebp - 0x74]
mov esi, eax
call fcn.004018f7
mov ecx, dword [ebp + 0x190]
mov eax, esi
pop esi
pop ebx
call fcn.0042527f
add ebp, 0x194
leave
ret 4
Function at 0x40199c
Capabilities:
Get common file path

Disassembly:
jmp 0x4053b6
push ebp
lea ebp, [esp - 0x194]
sub esp, 0x214
mov eax, dword [0x441ddc]
push esi
mov edx, ecx
push edi
xor esi, esi
mov dword [ebp + 0x190], eax
mov dword [ebp - 0x80], esi
xor eax, eax
mov word [ebp - 0x7c], si
mov ecx, 0x82
lea edi, [ebp - 0x7a]
rep stosd dword es:[edi], eax
mov ecx, edx
call fcn.00401cf8
test eax, eax
je 0x405437
push str.shell32.dll
call dword [0x443c5c]
push str.SHGetKnownFolderPath
push eax
call dword [0x443c14]
lea ecx, [ebp - 0x80]
push ecx
push esi
push esi
push 0x43590c
call eax
push 0x104
push dword [ebp - 0x80]
lea eax, [ebp - 0x7c]
push eax
call dword [0x443f4c]
add esp, 0xc
push dword [ebp - 0x80]
call dword [0x444434]
jmp 0x405455
lea eax, [ebp - 0x7c]
push eax
push esi
push esi
push 0x23
push esi
call dword [0x4440bc]
test eax, eax
jl 0x405455
lea eax, [ebp - 0x7c]
push eax
call dword [0x443f58]
pop ecx
mov ecx, dword [ebp + 0x19c]
lea eax, [ebp - 0x7c]
push eax
call fcn.004014ce
mov ecx, dword [ebp + 0x190]
mov eax, dword [ebp + 0x19c]
pop edi
pop esi
call fcn.0042527f
add ebp, 0x194
leave
ret 4

Function at 0x40c050
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42f183
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [esp + 0x34]
push esi
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 8], 0
call dword [0x443e48]
mov ecx, dword [esp + 0x3c]
push ecx
mov ecx, eax
mov dword [esp + 0x30], 1
call dword [0x443e10]
mov esi, dword [esp + 0x34]
push eax
mov ecx, esi
call dword [0x443e48]
lea ecx, [esp + 8]
mov dword [esp + 4], 1
mov byte [esp + 0x2c], 0
call dword [0x443e38]
mov ecx, dword [esp + 0x24]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret

Function at 0x40c1d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42f213
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov eax, dword [esp + 0x34]
push esi
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 8], 0
call dword [0x443e48]
mov ecx, dword [esp + 0x3c]
push ecx
mov ecx, eax
mov dword [esp + 0x30], 1
call dword [0x443e40]
mov esi, dword [esp + 0x34]
push eax
mov ecx, esi
call dword [0x443e48]
lea ecx, [esp + 8]
mov dword [esp + 4], 1
mov byte [esp + 0x2c], 0
call dword [0x443e38]
mov ecx, dword [esp + 0x24]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x40ef40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42f658
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
mov eax, dword [0x441ddc]
xor eax, esp
push ebx
push esi
mov esi, dword [esp + 0x44]
mov ecx, dword [esi + 4]
mov edx, dword [esi + 8]
mov dword [esp + 0x30], eax
mov eax, dword [esi]
push edi
mov edi, dword [esp + 0x4c]
mov dword [esp + 0x10], ecx
lea ebx, [esi + 0xc]
push ebx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], edx
call dword [0x443e48]
mov eax, dword [edi]
mov dword [esi], eax
mov ecx, dword [edi + 4]
mov dword [esi + 4], ecx
mov edx, dword [edi + 8]
mov dword [esi + 8], edx
lea esi, [edi + 0xc]
push esi
mov ecx, ebx
mov dword [esp + 0x44], 0
call dword [0x443e70]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov dword [edi], eax
lea eax, [esp + 0x18]
mov dword [edi + 4], ecx
push eax
mov ecx, esi
mov dword [edi + 8], edx
call dword [0x443e70]
lea ecx, [esp + 0x18]
mov dword [esp + 0x40], 0xffffffff
call dword [0x443e38]
mov ecx, dword [esp + 0x38]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x2c]
pop ebx
xor ecx, esp
call fcn.0042527f
add esp, 0x38
ret

Function at 0x40f2b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x42f678
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [0x441ddc]
xor eax, esp
push ebx
push esi
mov dword [esp + 8], eax
push edi
mov ecx, dword [esp + 0x24]
mov ebx, dword [esp + 0x28]
mov edi, dword [esp + 0x20]
lea eax, [ecx - 1]
cdq
sub eax, edx
mov esi, eax
sar esi, 1
cmp ebx, ecx
mov dword [esp + 0x18], 0
jge 0x40f343
push ebp
jmp 0x40f300
mov ebp, dword [esp + 0x30]
lea eax, [esi + esi*4]
mov edx, dword [edi + eax*8]
cmp edx, ebp
lea eax, [edi + eax*8]
jb 0x40f342
lea ecx, [ecx + ecx*4]
lea ecx, [edi + ecx*8]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
add eax, 0xc
mov dword [ecx + 8], edx
push eax
add ecx, 0xc
call dword [0x443e70]
lea eax, [esi - 1]
cdq
sub eax, edx
mov ecx, esi
sar eax, 1
cmp ebx, ecx
mov esi, eax
jl 0x40f300
pop ebp
mov edx, dword [esp + 0x30]
lea eax, [ecx + ecx*4]
mov ecx, dword [esp + 0x2c]
lea eax, [edi + eax*8]
mov dword [eax], ecx
mov ecx, dword [esp + 0x34]
mov dword [eax + 4], edx
lea edx, [esp + 0x38]
mov dword [eax + 8], ecx
push edx
lea ecx, [eax + 0xc]
call dword [0x443e70]
lea ecx, [esp + 0x38]
mov dword [esp + 0x18], 0xffffffff
call dword [0x443e38]
mov ecx, dword [esp + 0x10]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 4]
pop ebx
xor ecx, esp
call fcn.0042527f
add esp, 0x10
ret
Function at 0x40fa20
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x42f6f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov eax, dword [0x441ddc]
xor eax, esp
push ebx
push ebp
push esi
mov dword [esp + 0x14], eax
push edi
mov edi, dword [esp + 0x30]
mov ebp, dword [esp + 0x34]
mov ebx, dword [esp + 0x2c]
lea esi, [edi + edi + 2]
cmp esi, ebp
mov dword [esp + 0x24], 0
mov dword [esp + 0x10], edi
jge 0x40fab5
jmp 0x40fa70
lea eax, [esi + esi*4]
mov ecx, dword [ebx + eax*8]
mov edx, dword [ebx + eax*8 - 0x28]
cmp ecx, edx
lea eax, [ebx + eax*8]
jb 0x40fa82
dec esi
lea edx, [esi + esi*4]
lea eax, [ebx + edx*8]
mov edx, dword [eax]
lea ecx, [edi + edi*4]
lea ecx, [ebx + ecx*8]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
add eax, 0xc
mov dword [ecx + 8], edx
push eax
add ecx, 0xc
call dword [0x443e70]
mov edi, esi
lea esi, [esi + esi + 2]
cmp esi, ebp
jl 0x40fa70
jne 0x40fae7
lea eax, [ebp + ebp*4]
mov edx, dword [ebx + eax*8 - 0x28]
lea eax, [ebx + eax*8 - 0x28]
lea ecx, [edi + edi*4]
lea ecx, [ebx + ecx*8]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
add eax, 0xc
mov dword [ecx + 8], edx
push eax
add ecx, 0xc
call dword [0x443e70]
lea edi, [ebp - 1]
mov ecx, dword [esp + 0x38]
sub esp, 0x28
mov eax, esp
mov dword [eax], ecx
mov edx, dword [esp + 0x64]
mov dword [eax + 4], edx
mov ecx, dword [esp + 0x68]
lea edx, [esp + 0x6c]
mov dword [esp + 0x3c], esp
mov dword [eax + 8], ecx
push edx
lea ecx, [eax + 0xc]
call dword [0x443e48]
mov eax, dword [esp + 0x38]
push eax
push edi
push ebx
call fcn.0040f2b0
add esp, 0x34
lea ecx, [esp + 0x44]
mov dword [esp + 0x24], 0xffffffff
call dword [0x443e38]
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x10]
pop ebp
pop ebx
xor ecx, esp
call fcn.0042527f
add esp, 0x18
ret
Function at 0x414bf0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x42fbb9
push eax
mov dword fs:[0], esp
sub esp, 0x64
push esi
push edi
mov edi, dword [esp + 0x7c]
test edi, edi
mov esi, ecx
je 0x414cee
push edi
lea ecx, [esp + 0x14]
call dword [0x443e44]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x80]
push ecx
mov ecx, esi
mov dword [esp + 0x7c], 0
call fcn.004144c0
lea ecx, [esp + 0x10]
mov dword [esp + 0x74], 0xffffffff
call dword [0x443e38]
mov eax, dword [esi + 4]
cmp dword [esp + 0x7c], eax
jne 0x414cee
mov edx, dword [esp + 0x80]
push edx
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x9c], esp
push edi
call dword [0x443e44]
lea eax, [esp + 0x6c]
push eax
call fcn.00414280
add esp, 0x24
mov edi, eax
push edi
lea ecx, [esp + 0x30]
mov dword [esp + 0x78], 1
call dword [0x443e48]
mov ecx, dword [edi + 0x1c]
mov dword [esp + 0x48], ecx
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0xc]
push eax
mov ecx, esi
mov byte [esp + 0x7c], 2
call fcn.004147c0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x74], 1
call dword [0x443e38]
lea ecx, [esp + 0x4c]
mov dword [esp + 0x74], 0xffffffff
call dword [0x443e38]
xor eax, eax
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0x70
ret 8
mov ecx, dword [esp + 0x6c]
pop edi
or eax, 0xffffffff
mov dword fs:[0], ecx
pop esi
add esp, 0x70
ret 8

Function at 0x415ea0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x42fc80
push eax
mov dword fs:[0], esp
sub esp, 0x64
push esi
push edi
mov edi, dword [esp + 0x7c]
test edi, edi
mov esi, ecx
je 0x415f8e
push edi
lea ecx, [esp + 0x14]
call dword [0x443e44]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x80]
push ecx
mov ecx, esi
call fcn.00415760
lea ecx, [esp + 0x10]
call dword [0x443e38]
mov eax, dword [esi + 4]
cmp dword [esp + 0x7c], eax
jne 0x415f8e
mov edx, dword [esp + 0x80]
push edx
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x9c], esp
push edi
call dword [0x443e44]
lea eax, [esp + 0x6c]
push eax
call fcn.00414280
add esp, 0x24
mov edi, eax
push edi
lea ecx, [esp + 0x30]
mov dword [esp + 0x78], 0
call dword [0x443e48]
mov ecx, dword [edi + 0x1c]
mov dword [esp + 0x48], ecx
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0xc]
push eax
mov ecx, esi
mov byte [esp + 0x7c], 1
call fcn.00415a50
lea ecx, [esp + 0x2c]
mov byte [esp + 0x74], 0
call dword [0x443e38]
lea ecx, [esp + 0x4c]
mov dword [esp + 0x74], 0xffffffff
call dword [0x443e38]
xor eax, eax
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0x70
ret 8
mov ecx, dword [esp + 0x6c]
pop edi
or eax, 0xffffffff
mov dword fs:[0], ecx
pop esi
add esp, 0x70
ret 8
Function at 0x419730
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x42ffd3
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.00413c30
xor edi, edi
mov dword [esi], vtable.Xunlei::FileSystem::CacheFile.0
mov dword [esp + 0x14], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x30], edi
mov eax, dword [esp + 0x1c]
push eax
lea ecx, [esi + 8]
mov byte [esp + 0x18], 1
mov dword [esi + 0x24], edi
mov dword [esi + 0x58], edi
mov dword [esi + 0x5c], edi
call dword [0x443e5c]
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x50], edi
mov dword [esi + 0x54], edi
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x419ac0
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, ecx
mov ecx, dword [ebx + 0x30]
mov eax, dword [ecx]
push edi
call dword [eax + 0x28]
mov ecx, dword [ebx + 0x30]
mov edx, dword [ecx]
mov edi, eax
call dword [edx + 0x18]
cmp eax, 0x68
jae 0x419aed
lea edi, [ebx + 0x34]
mov ecx, 0x1a
mov eax, 0x20202020
rep stosd dword es:[edi], eax
pop edi
pop ebx
ret
push ebp
push esi
push 0x68
call fcn.004250aa
mov ebp, eax
add esp, 4
xor ecx, ecx
sub edi, ebp
nop
mov al, cl
inc al
imul al
add al, cl
add al, 2
mov dl, 0xea
imul dl
lea esi, [ecx + ebp]
xor al, byte [edi + esi]
inc ecx
cmp ecx, 0x68
mov byte [esi], al
jb 0x419b00
lea edi, [ebx + 0x34]
mov ecx, 0x1a
mov esi, ebp
push ebp
rep movsd dword es:[edi], dword [esi]
call fcn.004252f2
add esp, 4
pop esi
pop ebp
pop edi
pop ebx
ret

Function at 0x419df0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x430048
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.00413c30
mov edi, dword [esp + 0x1c]
mov ecx, edi
mov dword [esp + 0x14], 0
mov dword [esi], vtable.Xunlei::FileSystem::XARFile.0
mov dword [esi + 0x30], edi
call fcn.00413c60
mov ecx, edi
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
call fcn.00413ca0
push eax
lea ecx, [esi + 8]
call dword [0x443e5c]
mov ecx, esi
call fcn.00419ac0
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4