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

Disassembly:
push 0xffffffffffffffff
push 0x4631c8
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.0045c7d7
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.00435e30
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.0045c705
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.00458ffa
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.00458ffa
push 1
push 0
push 0
mov ecx, esi
call fcn.00458fa2
push 1
push 0
push 1
mov ecx, esi
call fcn.00458fa2
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0045c849
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x436610
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4631e8
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.0045c7d7
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.00435e30
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.0045c705
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 0x4366d4
cmp dword [esp + 0x40], 1
jne 0x4366d2
cmp ecx, eax
jge 0x4366d4
mov eax, ecx
cmp eax, 0xc8
jge 0x4366e0
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.00436490
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.0045c849
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x436e60
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x463253
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.00457431
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.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.0045ca7f
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0045df9b
test eax, eax
je 0x436f7c
mov ecx, dword [esp + 0x3c]
call fcn.0045caac
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 0x436f40
push edi
mov ecx, esi
call fcn.0045a110
mov ecx, esi
call fcn.004370e0
cmp dword [esp + 0x38], 1
jne 0x436f75
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.0045a24b
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 0x4399b0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x4399e3
push esi
call fcn.0043cab0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x4399dc
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 0x439a69
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x439a52
mov eax, dword [esi + 8]
test eax, eax
je 0x439a07
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 0x439a4e
cmp eax, 2
je 0x439a52
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4399fa
cmp eax, 3
je 0x439a2d
cmp eax, 1
jne 0x4399fa
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 0x4399fa
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4399fa
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00439a90
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x439a78
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00439a90
add esp, 4
pop esi
ret

Function at 0x45820d
Capabilities:
Get graphical window text

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

Function at 0x4598fe
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 0x459940
call fcn.0045f27b
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x459940
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x459937
xor eax, eax
jmp 0x459948
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0045994e
pop edi
pop esi
pop ebx
ret 4

Function at 0x45f7ab
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 0x45f7d9
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x45f7f7
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0045f711
jmp 0x45f7f7
mov eax, dword [esi + 0x14]
test eax, eax
je 0x45f7f7
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0045f711
test edi, edi
mov eax, edi
jne 0x45f7e1
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4014dc
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x4014ee
mov eax, dword [0x4db08b]
shl eax, 2
mov dword [0x4db08f], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.004bbca4
pop edx
call fcn.004bbc08
call fcn.004bbce4
push 0
call fcn.004bd0f0
pop ecx
push 0x4db034
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x4db093], eax
push 0
jmp fcn.004c2608

Function at 0x401760
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
call sub.KERNEL32.DLL_GetTickCount
mov dword [ebp - 4], eax
jmp 0x401781
push 0x32
call sub.KERNEL32.DLL_Sleep
mov eax, dword [0x4e8964]
mov eax, dword [eax]
call fcn.00491320
call sub.KERNEL32.DLL_GetTickCount
sub eax, dword [ebp - 4]
cmp eax, dword [ebp + 8]
jb 0x40176e
pop ecx
pop ebp
ret

Function at 0x4063a4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
xor eax, eax
mov dword [ebp - 4], eax
push str.DSound.dll
call sub.KERNEL32.DLL_LoadLibraryA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4063ca
mov eax, dword [ebp - 4]
jmp 0x40645f
push str.DirectSoundCreate
push dword [ebp - 8]
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4063e5
mov eax, dword [ebp - 4]
jmp 0x40645f
mov dword [ebp - 0x10], 0x40
lea edx, [ebp - 0x14]
push edx
push dword [ebp - 0x10]
push 1
push dword [ebp - 0xc]
call sub.KERNEL32.DLL_VirtualProtect
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x406413
push dword [ebp - 8]
call sub.KERNEL32.DLL_FreeLibrary
mov eax, dword [ebp - 4]
jmp 0x40645f
mov edx, dword [0x4dbe20]
mov dword [ebp - 0x18], edx
push 3
lea ecx, [ebp - 0x18]
push ecx
push dword [ebp - 0xc]
call fcn.004bc0e8
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push 1
push dword [ebp - 0xc]
call sub.KERNEL32.DLL_VirtualProtect
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x406454
push dword [ebp - 8]
call sub.KERNEL32.DLL_FreeLibrary
mov eax, dword [ebp - 4]
jmp 0x40645f
push dword [ebp - 8]
call sub.KERNEL32.DLL_FreeLibrary
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x406464
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
xor eax, eax
mov dword [ebp - 4], eax
push str.winmm.dll
call sub.KERNEL32.DLL_LoadLibraryA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40648a
mov eax, dword [ebp - 4]
jmp 0x40651f
push str.waveOutWrite
push dword [ebp - 8]
call sub.KERNEL32.DLL_GetProcAddress
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4064a5
mov eax, dword [ebp - 4]
jmp 0x40651f
mov dword [ebp - 0x10], 0x40
lea edx, [ebp - 0x14]
push edx
push dword [ebp - 0x10]
push 1
push dword [ebp - 0xc]
call sub.KERNEL32.DLL_VirtualProtect
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4064d3
push dword [ebp - 8]
call sub.KERNEL32.DLL_FreeLibrary
mov eax, dword [ebp - 4]
jmp 0x40651f
mov edx, dword [0x4dbe28]
mov dword [ebp - 0x18], edx
push 3
lea ecx, [ebp - 0x18]
push ecx
push dword [ebp - 0xc]
call fcn.004bc0e8
add esp, 0xc
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push 1
push dword [ebp - 0xc]
call sub.KERNEL32.DLL_VirtualProtect
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x406514
push dword [ebp - 8]
call sub.KERNEL32.DLL_FreeLibrary
mov eax, dword [ebp - 4]
jmp 0x40651f
push dword [ebp - 8]
call sub.KERNEL32.DLL_FreeLibrary
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x409f38
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
call fcn.00457a2c
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov byte [eax + 0xc], 1
mov eax, dword [ebp - 4]
cmp byte [eax + 0x14], 0
jne 0x409f73
mov eax, dword [ebp - 4]
cmp byte [eax + 0xd], 0
je 0x409f7b
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.KERNEL32.DLL_ResumeThread
cmp eax, 1
jne 0x409f7b
mov eax, dword [ebp - 4]
call sym.WeiXun.exe__Authread_TauEventThread_WaitFor_qqrv
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x409f90
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.KERNEL32.DLL_CloseHandle
mov dl, byte [ebp - 5]
and dl, 0xfc
mov eax, dword [ebp - 4]
call fcn.00457650
call fcn.00409d6c
cmp byte [ebp - 5], 0
jle 0x409fb1
mov eax, dword [ebp - 4]
call fcn.00457a14
pop ecx
pop ecx
pop ebp
ret

Function at 0x40a0e4
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov byte [eax + 0xd], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.KERNEL32.DLL_SuspendThread
pop ecx
pop ebp
ret

Function at 0x40a104
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.KERNEL32.DLL_ResumeThread
cmp eax, 1
jne 0x40a123
mov eax, dword [ebp - 4]
mov byte [eax + 0xd], 0
pop ecx
pop ebp
ret
Function at 0x40a24c
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
cmp byte [eax + 0x14], 0
je 0x40a26c
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.KERNEL32.DLL_TerminateThread
mov eax, dword [ebp - 4]
call sym.WeiXun.exe__Authread_TauEventThread_CreateThread_qqrv
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
call fcn.00457660
mov eax, dword [ebp - 8]
pop ecx
pop ecx
pop ebp
ret

Function at 0x40cc14
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb4
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00458850
xor eax, eax
push ebp
push 0x40cda0
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 4]
mov eax, 0x40cdb8
call fcn.004589a4
test eax, eax
jne 0x40cc5a
lea eax, [ebp - 4]
mov ecx, dword [ebp - 4]
mov edx, 0x40cdc4
call fcn.004586b4
lea eax, [ebp - 0x4c]
mov edx, 0x3c
call sym.WeiXun.exe__Auutils_InitMSRecord_qqrpvi
mov dword [ebp - 0x44], 0x21
mov dword [ebp - 0x38], 0x101
mov dword [ebp - 0x2c], 0x81
mov dword [ebp - 0x24], 0x81
mov dword [ebp - 0x1c], 0x801
mov dword [ebp - 0x14], 0x801
mov eax, 0x21
call fcn.00456570
mov dword [ebp - 0x48], eax
mov eax, 0x101
call fcn.00456570
mov dword [ebp - 0x3c], eax
mov eax, 0x81
call fcn.00456570
mov dword [ebp - 0x30], eax
mov eax, 0x81
call fcn.00456570
mov dword [ebp - 0x28], eax
mov eax, 0x801
call fcn.00456570
mov dword [ebp - 0x20], eax
mov eax, 0x801
call fcn.00456570
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x4c]
push eax
push SysReAllocString
mov eax, dword [ebp - 4]
call fcn.00458668
push eax
mov eax, dword [ebp - 4]
call fcn.00458860
push eax
call sub.WININET.DLL_InternetCrackUrlA
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 0xd], al
cmp byte [ebp - 0xd], 0
je 0x40cd5a
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x48]
call fcn.004585a0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x3c]
call fcn.004585a0
mov eax, dword [ebp + 0x18]
mov edx, dword [ebp - 0x20]
call fcn.004585a0
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp - 0x30]
call fcn.004585a0
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp - 0x28]
call fcn.004585a0
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x18]
call fcn.004585a0
mov eax, dword [ebp + 8]
mov dx, word [ebp - 0x34]
mov word [eax], dx
mov eax, dword [ebp - 0x18]
call fcn.00456590
mov eax, dword [ebp - 0x20]
call fcn.00456590
mov eax, dword [ebp - 0x28]
call fcn.00456590
mov eax, dword [ebp - 0x30]
call fcn.00456590
mov eax, dword [ebp - 0x3c]
call fcn.00456590
mov eax, dword [ebp - 0x48]
call fcn.00456590
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cda7
lea eax, [ebp - 4]
call fcn.004583b0
ret
Function at 0x40d4e8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
mov dword [ebp - 0x10c], ecx
mov dword [ebp - 0x108], edx
mov dword [ebp - 0x104], eax
push esi
push edi
mov esi, ecx
mov eax, esi
test eax, eax
je 0x40d511
mov eax, dword [esi - 4]
push eax
push esi
mov esi, edx
mov ecx, esi
test ecx, ecx
je 0x40d51e
mov ecx, dword [esi - 4]
add al, cl
inc eax
lea edi, [ebp - 0x100]
mov edx, eax
stosb byte es:[edi], al
mov al, cl
stosb byte es:[edi], al
rep movsb byte es:[edi], byte [esi]
pop esi
pop ecx
rep movsb byte es:[edi], byte [esi]
mov ecx, edx
std
dec edi
mov esi, edi
xor dl, 0xeb
lodsb al, byte [esi]
xor al, dl
stosb byte es:[edi], al
loop 0x40d53c
cld
pop edi
pop esi
xor ecx, ecx
mov cl, byte [ebp - 0x100]
inc ecx
lea edx, [ebp - 0x100]
mov eax, dword [ebp - 0x104]
mov ebx, dword [eax]
call dword [ebx + 0xc]
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40d564
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe74
push ebx
mov dword [ebp - 0x18c], ecx
mov dword [ebp - 0x188], edx
mov dword [ebp - 0x184], eax
lea edx, [ebp - 0x80]
mov ecx, 1
mov eax, dword [ebp - 0x184]
mov ebx, dword [eax]
call dword [ebx + 8]
xor ecx, ecx
mov cl, byte [ebp - 0x80]
lea edx, [ebp - 0x7f]
mov eax, dword [ebp - 0x184]
mov ebx, dword [eax]
call dword [ebx + 8]
push esi
push edi
xor eax, eax
lea esi, [ebp - 0x80]
lodsb al, byte [esi]
push esi
push eax
mov ecx, eax
mov edx, eax
mov edi, esi
xor dl, 0xeb
lodsb al, byte [esi]
xor al, dl
stosb byte es:[edi], al
loop 0x40d5b9
pop eax
pop esi
lea edi, [ebp - 0x100]
mov cl, byte [esi]
inc ecx
sub eax, ecx
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x180]
stosb byte es:[edi], al
mov ecx, eax
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
mov eax, dword [ebp - 0x188]
lea edx, [ebp - 0x100]
call fcn.0045860c
mov eax, dword [ebp - 0x18c]
lea edx, [ebp - 0x180]
call fcn.0045860c
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40da50
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
test dl, dl
je 0x40da62
add esp, 0xfffffff0
call fcn.004579c4
mov dword [ebp - 0xc], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
cmp byte [ebp + 8], 0
je 0x40daa8
mov eax, dword [ebp - 0xc]
call fcn.00458860
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
and eax, 2
cmp eax, 2
je 0x40da98
mov eax, dword [ebp - 0x10]
and eax, 1
cmp eax, 1
jne 0x40daa8
push 0x20
mov eax, dword [ebp - 0xc]
call fcn.00458860
push eax
call sub.KERNEL32.DLL_SetFileAttributesA
push 0
push 0x80
xor eax, eax
mov al, byte [ebp + 0xc]
mov eax, dword [eax*4 + 0x4dd060]
push eax
push 0
push 3
push 0xc0000000
mov eax, dword [ebp - 0xc]
call fcn.00458860
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ecx, eax
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.0043beb0
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jge 0x40db0f
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0xb
lea eax, [ebp - 0x18]
push eax
push 0
mov ecx, dword [0x4e86f4]
mov dl, 1
mov eax, dword [0x4368dc]
call fcn.00449ec8
call fcn.00457e2c
cmp byte [ebp + 8], 0
je 0x40db27
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00458860
push eax
call sub.KERNEL32.DLL_SetFileAttributesA
mov eax, dword [ebp - 4]
cmp byte [ebp - 5], 0
je 0x40db3f
call fcn.00457a1c
pop dword fs:[0]
add esp, 0xc
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8

Function at 0x40eab8
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
xor eax, eax
push ebp
push 0x40ebde
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
xor eax, eax
call fcn.0040e95c
pop ecx
test al, al
je 0x40ebb9
mov eax, dword [ebp + 8]
push eax
call fcn.0040e77c
pop ecx
test al, al
jne 0x40ebb9
push 0
push 0
push 0
push 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 0x140]
push eax
call sub.WININET.DLL_HttpSendRequestA
test eax, eax
je 0x40ebb9
mov eax, dword [ebp + 8]
push eax
mov eax, 0x13
call fcn.0040e7c0
pop ecx
test al, al
je 0x40ebb9
lea eax, [ebp - 8]
mov edx, dword [ebp + 8]
add edx, 0xffffeffc
mov ecx, 0x1000
call fcn.00458618
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00446794
mov edx, dword [ebp + 8]
mov edx, dword [edx - 4]
mov dword [edx + 0x188], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
cmp dword [eax + 0x188], 0xc8
je 0x40eb83
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
cmp dword [eax + 0x188], 0xce
jne 0x40ebb9
mov eax, dword [ebp + 8]
push eax
mov eax, 5
call fcn.0040e7c0
pop ecx
test al, al
je 0x40ebb9
lea eax, [ebp - 0xc]
mov edx, dword [ebp + 8]
add edx, 0xffffeffc
mov ecx, 0x1000
call fcn.00458618
mov eax, dword [ebp - 0xc]
xor edx, edx
call fcn.00446794
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
call fcn.0040e77c
pop ecx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ebe5
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004583d4
ret
Function at 0x413600
Capabilities:
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x413770
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0x100
push 2
push 0
push 3
push 0x40000000
mov eax, dword [0x4e8bf4]
call fcn.00458860
push eax
call sub.KERNEL32.DLL_CreateFileA
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x4136c8
mov dl, 1
mov eax, dword [0x4376a0]
call fcn.00457630
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4136b8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
mov ecx, 0x41377c
mov edx, 0x41377c
mov eax, dword [0x4e8ba4]
call sym.WeiXun.exe__Auutils_LoadResourceToStream_qqruipct2p15Classes_TStream
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
call fcn.0043ba8c
push eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.KERNEL32.DLL_WriteFile
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4136bf
mov eax, dword [ebp - 0x10]
call fcn.00457660
ret
lea eax, [ebp - 0x18]
call sym.WeiXun.exe__Auutils_GetTempDir_qqrv
lea eax, [ebp - 0x18]
mov edx, 0x41378c
call fcn.00458670
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24c]
call sym.WeiXun.exe__Auutils_TauStringList_WriteValuesToFile_qqrx17System_AnsiString
push 1
push dword [0x4e8bf4]
push 0x4137a8
mov eax, dword [sym.WeiXun.exe__Auutils_EXEName]
push dword [eax]
push 0x4137b4
push dword [ebp - 8]
lea eax, [ebp - 0x1c]
mov edx, 5
call fcn.00458728
mov eax, dword [ebp - 0x1c]
call fcn.00458860
push eax
call sub.KERNEL32.DLL_WinExec
mov eax, dword [ebp - 4]
mov byte [eax + 0x264], 1
mov eax, dword [ebp - 4]
cmp word [eax + 0x1fa], 0
je 0x413750
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x1fc]
call dword [ebx + 0x1f8]
jmp 0x413755
call sym.WeiXun.exe__Auutils_ShutdownApplication_qqrv
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x413777
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.004583d4
ret