joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41bae0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x45f8c8
push eax
mov dword fs:[0], esp
sub esp, 0x28
push esi
push edi
mov edi, dword [esp + 0x44]
mov esi, ecx
test edi, edi
jne 0x41bb19
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x34
ret 0x24
push 0x400
lea ecx, [esp + 0xc]
call fcn.0045b0d6
mov eax, dword [esp + 0x40]
push 0
push edi
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x44], 0
call fcn.0045b122
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x58]
push edx
mov edx, dword [esp + 0x58]
push eax
mov eax, dword [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x58]
push edx
push eax
lea edx, [esp + 0x20]
push ecx
push edx
mov ecx, esi
call fcn.0041bba0
lea ecx, [esp + 8]
mov esi, eax
mov dword [esp + 0x38], 0xffffffff
call fcn.0045b15f
mov ecx, dword [esp + 0x30]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x34
ret 0x24
Function at 0x41d230
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
mov cl, byte [eax + 8]
and ecx, 0xff
mov esi, ecx
cmp si, 0x60
jb 0x41d29e
cmp si, 0x69
ja 0x41d29e
add esi, 0xffd0
cmp si, 0x11
je 0x41d26e
push 0x11
call edi
test ax, ax
jge 0x41d26e
or esi, 0x2000
cmp si, 0x10
je 0x41d283
push 0x10
call edi
test ax, ax
jge 0x41d283
or esi, 0x4000
cmp si, 0x12
je 0x41d298
push 0x12
call edi
test ax, ax
jge 0x41d298
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x41d2ab
mov esi, 0xbd
jmp 0x41d25f
cmp si, 0x6e
jne 0x41d2b8
mov esi, 0xbe
jmp 0x41d25f
cmp si, 0x6f
jne 0x41d259
mov esi, 0xbf
jmp 0x41d25f
Function at 0x420510
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x420570
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x420570
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x420570
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x420570
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x4205b0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x42c630
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x48c878]
xor edx, edx
cmp eax, edx
jne 0x42c656
xor eax, eax
mov byte [eax + 0x48c778], al
inc eax
cmp eax, 0x100
jl 0x42c63e
mov dword [0x48c878], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x48c778
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x42c6e7
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 0x42c6ba
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 0x42c688
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x42c760
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 0x42c7b3
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 0x42c79a
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 0x42d9d0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x460868
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.0045aaa1
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0042d370
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.0045a9cf
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.00455623
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.00455623
push 1
push 0
push 0
mov ecx, esi
call fcn.004555cb
push 1
push 0
push 1
mov ecx, esi
call fcn.004555cb
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0045ab13
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x42db50
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x460888
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.0045aaa1
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0042d370
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.0045a9cf
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 0x42dc14
cmp dword [esp + 0x40], 1
jne 0x42dc12
cmp ecx, eax
jge 0x42dc14
mov eax, ecx
cmp eax, 0xc8
jge 0x42dc20
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0042d9d0
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.0045ab13
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x42e3a0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4608f3
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.00453a55
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.0045ad49
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0045c5c0
test eax, eax
je 0x42e4bc
mov ecx, dword [esp + 0x3c]
call fcn.0045ad76
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 0x42e480
push edi
mov ecx, esi
call fcn.0045762e
mov ecx, esi
call fcn.0042e620
cmp dword [esp + 0x38], 1
jne 0x42e4b5
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.00457769
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 0x4343d0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x460ef8
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x434409
inc eax
mov dword [esi + 0x10], eax
jmp 0x43451c
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x43441d
mov eax, 0xffffffc7
jmp 0x43451e
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x43442e
cmp dword [esi + 8], eax
jne 0x43441d
cmp dword [esi + 8], eax
jne 0x434447
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x434447
mov eax, 0xffffffc7
jmp 0x43451e
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x43445b
push eax
mov ecx, ebx
call fcn.00433c00
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.00401090
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x43448c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.004010e0
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.00433370
test eax, eax
mov dword [esp + 0x38], eax
je 0x4344bf
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x464ad8
call fcn.004012c0
mov eax, dword [esp + 0x38]
jmp 0x43451e
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.00434230
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x434503
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.00434250
mov esi, eax
test esi, esi
jne 0x434533
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.00434230
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x4344d5
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x464ad8
call fcn.004012c0
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x464ad8
call fcn.004012c0
mov eax, esi
jmp 0x43451e
Function at 0x437930
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x437963
push esi
call fcn.0043a8e0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43795c
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 0x4379e9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4379d2
mov eax, dword [esi + 8]
test eax, eax
je 0x437987
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 0x4379ce
cmp eax, 2
je 0x4379d2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43797a
cmp eax, 3
je 0x4379ad
cmp eax, 1
jne 0x43797a
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 0x43797a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43797a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00437a10
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4379f8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00437a10
add esp, 4
pop esi
ret

Function at 0x454831
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x454869
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.0045741e
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004573f6
jmp 0x454875
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x455f2b
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 0x455f6d
call fcn.0045d34c
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 0x455f6d
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x455f64
xor eax, eax
jmp 0x455f75
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00455f7b
pop edi
pop esi
pop ebx
ret 4

Function at 0x45da0a
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 0x45da38
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x45da56
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0045d970
jmp 0x45da56
mov eax, dword [esi + 0x14]
test eax, eax
je 0x45da56
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0045d970
test edi, edi
mov eax, edi
jne 0x45da40
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x10001020
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
sub esp, 0x10
mov eax, dword [0x1001b2c0]
xor eax, esp
mov dword [esp + 0xc], eax
push esi
mov esi, dword [0x100df288]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea ecx, [esp + 8]
push ecx
add esi, 0x15e070
push 0x40
mov eax, section..text
sub eax, esi
push 5
sub eax, 5
push esi
mov dword [esp + 0x18], 0
mov byte [esp + 0x1c], 0xe9
mov dword [esp + 0x1d], eax
call edi
mov edx, dword [esp + 0xc]
mov al, byte [esp + 0x10]
mov dword [esi], edx
lea ecx, [esp + 8]
push ecx
mov byte [esi + 4], al
mov edx, dword [esp + 0xc]
push edx
push 5
push esi
call edi
mov ecx, dword [esp + 0x14]
pop edi
pop esi
xor ecx, esp
call fcn.10008039
add esp, 0x10
ret

Function at 0x100010c0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
sub esp, 0x10
mov eax, dword [0x1001b2c0]
xor eax, esp
mov dword [esp + 0xc], eax
push esi
mov esi, dword [0x100df288]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea ecx, [esp + 8]
push ecx
add esi, 0x15da0a
push 0x40
mov eax, 0x100010a0
sub eax, esi
push 6
sub eax, 5
push esi
mov dword [esp + 0x18], 0
mov byte [esp + 0x1c], 0xe9
mov byte [esp + 0x21], 0x90
mov dword [esp + 0x1d], eax
call edi
mov edx, dword [esp + 0xc]
mov ax, word [esp + 0x10]
mov dword [esi], edx
lea ecx, [esp + 8]
push ecx
mov word [esi + 4], ax
mov edx, dword [esp + 0xc]
push edx
push 6
push esi
call edi
mov ecx, dword [esp + 0x14]
pop edi
pop esi
xor ecx, esp
call fcn.10008039
add esp, 0x10
ret
Function at 0x10002570
Capabilities:
Create thread
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100154c3
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x1001b2c0]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
xor esi, esi
sub eax, esi
je 0x10002740
sub eax, 1
jne 0x10002751
push esi
call fcn.10008782
add esp, 4
sub eax, 0x4f228ef5
sbb edx, esi
mov dword [esp + 0x18], edx
js 0x100025d9
jg 0x10002729
cmp eax, 0x9e3400
jae 0x10002729
mov ebx, dword [ebp + 8]
cmp ebx, esi
je 0x10002619
push 0x10018e30
push 0x3f3
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
cmp edi, esi
je 0x10002619
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10002729
push eax
call fcn.10006c90
xor esi, esi
mov ecx, str.IDS_WOW_NAME
call fcn.10002880
call fcn.10004ca0
cmp byte [eax + 0x3ff], 1
jne 0x10002729
mov dword [esp + 0x1c], vtable.CFileVersion.0
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
push 0x104
push str.wow.exe
push 0x100df468
mov dword [esp + 0x5c], esi
call fcn.10008bd0
add esp, 0xc
lea ecx, [esp + 0x1c]
mov dword [esp + 0x20], 0x100df468
call fcn.10004da0
test eax, eax
je 0x10002720
push esi
push str..DatazhCNlocale_zhCN.MPQ
call fcn.1000875f
add esp, 8
test eax, eax
jne 0x100026aa
mov byte [0x100df294], 1
call fcn.10006c20
push 0x50
call fcn.100080eb
add esp, 4
mov dword [esp + 0x14], eax
mov byte [esp + 0x50], 1
cmp eax, esi
je 0x100026cc
push eax
call fcn.10004fd0
mov byte [esp + 0x50], 0
mov edi, dword [0x100df56c]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, edi
call fcn.10005200
push esi
mov dword [0x100df28c], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
add eax, 0x1000
mov dword [0x100df288], eax
call fcn.100027a0
push esi
push esi
push ebx
push 0x10002770
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
lea ecx, [esp + 0x1c]
mov dword [0x100df290], eax
call fcn.10004d70
jmp 0x10002751
lea ecx, [esp + 0x1c]
call fcn.10004d70
xor eax, eax
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [0x100df248]
cmp eax, esi
je 0x10002751
push esi
push eax
call dword [sym.imp.USER32.dll_EndDialog]
mov eax, 1
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x100027a0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
sub esp, 0x10
mov eax, dword [0x1001b2c0]
xor eax, esp
mov dword [esp + 0xc], eax
push ebx
push esi
mov esi, dword [0x100df288]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [esp + 0xc]
push eax
push 0x40
mov bl, 0x90
push 5
add esi, 0x54e6
push esi
mov dword [esp + 0x1c], 0
mov byte [esp + 0x20], bl
mov byte [esp + 0x21], bl
mov byte [esp + 0x22], bl
mov byte [esp + 0x23], bl
call edi
mov ecx, dword [esp + 0x10]
mov dword [esi], ecx
lea edx, [esp + 0xc]
push edx
mov byte [esi + 4], bl
mov eax, dword [esp + 0x10]
push eax
push 5
push esi
call edi
movzx ecx, byte [0x100df294]
mov esi, dword [0x100df288]
add esi, 0x304d39
neg ecx
lea edx, [esp + 0xc]
push edx
sbb ecx, ecx
push 0x40
and ecx, 0x234
push 6
add ecx, 0x3578
push esi
mov dword [esp + 0x1c], 0
mov byte [esp + 0x20], 0x81
mov byte [esp + 0x21], 0xff
mov dword [esp + 0x22], ecx
call edi
mov eax, dword [esp + 0x10]
mov cx, word [esp + 0x14]
mov dword [esi], eax
lea edx, [esp + 0xc]
push edx
mov word [esi + 4], cx
mov eax, dword [esp + 0x10]
push eax
push 6
push esi
call edi
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10008039
add esp, 0x10
ret
Function at 0x10004a40
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x604
mov eax, dword [0x1001b2c0]
xor eax, esp
mov dword [esp + 0x600], eax
push esi
push edi
mov edi, dword [esp + 0x610]
push 0x200
mov esi, ecx
mov ecx, dword [esi + 8]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextA]
push edi
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x210]
push str._s_s
push eax
call fcn.10008048
mov edx, dword [esi + 8]
add esp, 0x10
lea ecx, [esp + 0x208]
push ecx
push edx
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov ecx, dword [esp + 0x608]
pop edi
pop esi
xor ecx, esp
call fcn.10008039
add esp, 0x604
ret 4

Function at 0x10004ad0
Capabilities:
Enumerate threads

Disassembly:
sub esp, 0x128
mov eax, dword [0x1001b2c0]
xor eax, esp
mov dword [esp + 0x124], eax
push ebx
mov ebx, dword [sym.imp.USER32.dll_EnumThreadWindows]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push esi
push edi
call ebp
mov edi, eax
push edi
push 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x10004b9f
lea eax, [esp + 0x14]
push eax
push esi
mov dword [esp + 0x1c], 0x1c
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x10004b37
cmp dword [esp + 0x20], edi
je 0x10004b48
lea ecx, [esp + 0x14]
push ecx
push esi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x10004b22
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10004af4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x10004b9f
lea edx, [esp + 0x10]
push edx
push 0x10004ac0
push eax
mov dword [esp + 0x1c], 0
call ebx
mov eax, dword [esp + 0x10]
mov esi, eax
test eax, eax
je 0x10004b9f
push 0x104
lea ecx, [esp + 0x34]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetClassNameA]
test eax, eax
je 0x10004b9f
push str.GxWindowClass
lea edx, [esp + 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x10004bac
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10004af4
mov ecx, dword [esp + 0x134]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10008039
add esp, 0x128
ret

Function at 0x10004c10
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x24
lea eax, [esp + 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x10004c97
lea ecx, [esp + 8]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x10004c50
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0x24
ret
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push 0
push 0
push 0x10
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x14]
push 0
push eax
mov dword [esp + 0x28], 1
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x10004c97
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add esp, 0x24
ret