joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000d390
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10021fc8
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x1002b4b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x48]
mov eax, dword [eax - 0xc]
test eax, eax
je 0x1000d432
mov edx, dword [0x1002c690]
mov eax, dword [edx + 0xc]
mov ecx, 0x1002c690
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
mov ecx, dword [esi + 0x4c]
mov edx, dword [esi + 0x48]
push ecx
push edx
push str._s:_d
lea edi, [ebp - 0x10]
call fcn.1000a960
mov ebx, dword [ebp - 0x10]
mov eax, dword [esi + 0x38]
add esp, 0xc
push 0
push 0
push ebx
push 3
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov edi, eax
lea eax, [ebx - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x1000d446
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x1000d446
mov eax, dword [esi + 0x38]
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov edi, eax
mov ecx, dword [esi + 0x50]
cmp dword [ecx - 0xc], 0
mov ebx, dword [sym.imp.WININET.dll_InternetSetOptionA]
je 0x1000d461
mov eax, ecx
mov edx, dword [eax - 0xc]
push edx
push eax
push 0x2b
push edi
call ebx
mov eax, dword [esi + 0x54]
cmp dword [eax - 0xc], 0
je 0x1000d476
mov esi, eax
mov ecx, dword [esi - 0xc]
push ecx
push esi
push 0x2c
push edi
call ebx
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000e1b0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x15c
mov eax, dword [0x1002b4b0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
mov esi, ecx
mov byte [ebp - 0x108], 0
call fcn.10015750
push str.drill.exe
add esi, 0x84
push esi
push str._s_s
lea ecx, [ebp - 0x108]
push 0x104
push ecx
call fcn.10010147
push 0x40
lea edx, [ebp - 0x158]
push 0
push edx
mov dword [ebp - 0x15c], 0
call fcn.10015750
add esp, 0x2c
xor eax, eax
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x10c], eax
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x15c]
push ecx
push esi
push 0
push 0x4000000
push 0
push 0
push 0
lea edx, [ebp - 0x108]
push edx
push 0
mov dword [ebp - 0x118], 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop esi
test eax, eax
jne 0x1000e27f
push eax
push 0x10026205
push str.Fail_to_launch_main
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000f688
mov esp, ebp
pop ebp
ret

Function at 0x1000f688
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1002b4b0]
jne 0x1000f692
repz ret
jmp fcn.10012f1d
Function at 0x1001d574
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1002b4b0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.1001444f
and dword [ebp - 0x14], 0
cmp dword [0x1002d7fc], 0
mov dword [ebp - 0x18], eax
jne 0x1001d627
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x1001d6cf
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x1001d6cf
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x10025a08
push ebx
mov dword [0x1002d7fc], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x1002d800], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x1002d804], eax
call edi
push eax
call esi
mov dword [0x1002d80c], eax
test eax, eax
je 0x1001d627
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x1002d808], eax
mov eax, dword [0x1002d808]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x1001d680
cmp dword [0x1002d80c], ecx
je 0x1001d680
push eax
call esi
push dword [0x1002d80c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x1001d680
test ebx, ebx
je 0x1001d680
call edi
test eax, eax
je 0x1001d677
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x1001d677
test byte [ebp - 8], 1
jne 0x1001d680
or dword [ebp + 0x10], 0x200000
jmp 0x1001d6b3
mov eax, dword [0x1002d800]
cmp eax, dword [ebp - 0x18]
je 0x1001d6b3
push eax
call esi
test eax, eax
je 0x1001d6b3
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1001d6b3
mov eax, dword [0x1002d804]
cmp eax, dword [ebp - 0x18]
je 0x1001d6b3
push eax
call esi
test eax, eax
je 0x1001d6b3
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x1002d7fc]
call esi
test eax, eax
je 0x1001d6cf
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x1001d6d1
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000f688
leave
ret
Function at 0x100211b8
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x1002d85c], 0
push esi
push edi
jne 0x1002112e
call fcn.1002109a
test eax, eax
je 0x10021173
mov eax, dword [0x1002d85c]
cmp eax, 1
jne 0x1002114f
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x10021173
jmp 0x100211b5
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x100211b5
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x10021177
xor eax, eax
jmp 0x100211b5
mov eax, dword [esi]
push dword [0x1002d85c]
call edi
mov edi, eax
test edi, edi
je 0x10021199
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x100211b5
lea edi, [esi + 0xff0]
push esi
push dword [0x1002d85c]
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x1002119f
mov eax, esi
pop edi
pop esi
ret
jmp 0x1002111a
Function at 0x6750e8
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x8e9700
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], ebx
mov eax, dword [ebp + 0xc]
push dword [ebp + 8]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x14], eax
call fcn.006132e4
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x14]
mov dword [ecx], 0xb36660
mov eax, dword [0x9c9920]
push edx
mov dword [ecx + 4], eax
call dword [0xb36674]
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x30]
xor edx, edx
mov dword [eax + 0xd0], 0x10
or ecx, 0x40000000
mov word [eax + 0xc8], dx
mov dword [eax + 0xe0], 0x43fa0000
mov dword [eax + 0xcc], edx
mov word [eax + 0xd4], dx
mov word [eax + 0xd6], dx
mov dword [eax + 0x98], 3
mov dword [eax + 0xd8], edx
mov dword [eax + 0xdc], edx
mov dword [eax + 0x30], ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x841330
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x98b0e8
push 0x85b6a4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov dword [ebp - 0x18], esp
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], ebx
mov eax, dword [0xadc8fc]
mov dword [ebp - 0x28], 1
test eax, eax
je 0x841412
mov dword [ebp - 4], 0
jmp 0x841382
push 0
call dword [sym.imp.user32.dll_GetKeyboardLayout]
push edi
call fcn.00841440
pop ecx
test eax, eax
je 0x841409
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x28]
test eax, eax
jne 0x8413e3
mov eax, dword [0xacbed8]
mov ecx, dword [0xadc958]
add esp, 0xfffffff4
mov edx, 0xfffffffc
call fcn.00841448
add esp, 0xc
xor eax, eax
mov dword [0xadc958], eax
mov dword [0xadc8f8], eax
mov dword [0xadc900], eax
mov dword [0xadc8fc], eax
mov dword [0xadc91c], eax
mov dword [0xadc920], eax
call fcn.00841454
mov esp, dword [ebp - 0x18]
mov edi, dword [ebp - 0x24]
mov esi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x28], 0
jmp 0x84139c
mov eax, dword [0xacbed8]
push edi
call fcn.00841438
pop ecx
test eax, eax
jne 0x841370
mov dword [ebp - 0x28], 0
jmp 0x84139c
Function at 0x843564
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
push edi
push esi
push ebx
sub esp, 8
movsx ebx, word [esp + 0x18]
mov edx, dword [ebx*4 + 0xaebdc0]
test edx, edx
je 0x8435f4
lea edx, [ebx + ebx]
add edx, edx
add edx, edx
add edx, edx
add edx, edx
add edx, edx
lea esi, [edx + edx + 0xaeb5c0]
push esi
call dword [sym.imp.wsock32.dll_inet_addr]
mov dword [esp + 4], eax
cmp eax, 0xffffffff
jne 0x8435a7
push esi
call dword [sym.imp.wsock32.dll_gethostbyname]
jmp 0x8435b6
lea edx, [esp + 4]
push 2
push 4
push edx
call dword [sym.imp.wsock32.dll_gethostbyaddr]
test eax, eax
je 0x843607
mov edx, dword [eax + 0xc]
mov edi, dword [edx]
test edi, edi
je 0x843600
mov esi, dword [esp + 0x1c]
movzx edx, byte [edi]
mov byte [esi + 4], dl
movzx ecx, byte [edi + 1]
mov byte [esi + 5], cl
movzx edx, byte [edi + 2]
mov byte [esi + 6], dl
movzx edx, byte [edi + 3]
mov byte [esi + 7], dl
xor esi, esi
mov eax, ebx
call fcn.00843615
mov eax, esi
add esp, 8
pop ebx
pop esi
pop edi
ret
mov eax, 0xfffffffe
add esp, 8
pop ebx
pop esi
pop edi
ret
mov esi, 0xffffffb9
jmp 0x8435e4
mov esi, 0xffffffb9
jmp 0x8435e4
Function at 0x401050
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43868e
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x44666c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x80], edi
mov dword [0x449334], edi
xor ebx, ebx
mov dword [ebp - 4], ebx
lea esi, [edi + 0x38]
lea eax, [esi + 4]
mov byte [edi], bl
mov dword [edi + 4], 0x43c7b4
mov dword [edi + 8], str.Bianya.exe
mov dword [edi + 0xc], str.BYSever.exe
mov dword [edi + 0x10], 0x43c7d4
mov dword [edi + 0x14], str.PlayerUpdate.exe
mov dword [edi + 0x30], 0xa
mov byte [edi + 0x34], 1
mov dword [esi], eax
mov byte [eax], bl
push 0x43c7f1
or eax, 0xffffffff
call fcn.004139f0
lea esi, [edi + 0x90]
lea eax, [esi + 4]
mov dword [edi + 0x7c], ebx
mov dword [edi + 0x80], 0x1010000
mov byte [edi + 0x84], 1
mov dword [edi + 0x88], ebx
mov dword [edi + 0x8c], ebx
mov dword [esi], eax
mov byte [eax], bl
push str.huvs__.uts.icl522__km.wj3_32513__77_keord
or eax, 0xffffffff
call fcn.004139f0
lea ebx, [edi + 0xd4]
xor eax, eax
mov dword [ebp - 0x5c], ebx
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
lea eax, [ebp - 0x60]
push eax
mov byte [ebp - 4], 3
call dword [sym.imp.SensApi.dll_IsNetworkAlive]
test eax, eax
je 0x401134
push ebx
call fcn.00405710
mov byte [ebp - 4], 4
xor ebx, ebx
push 0x58
mov dword [edi + 0xec], ebx
call fcn.0041d530
add esp, 4
cmp eax, ebx
je 0x401233
mov dword [edi + 0xe8], eax
mov dword [eax], eax
mov eax, dword [edi + 0xe8]
mov dword [eax + 4], eax
mov eax, dword [edi + 0xe8]
mov dword [eax + 8], eax
mov ecx, dword [edi + 0xe8]
mov byte [ecx + 0x54], 1
mov edx, dword [edi + 0xe8]
mov byte [edx + 0x55], 1
mov byte [ebp - 4], 5
mov edx, dword [esi]
xor eax, eax
mov ecx, edx
cmp byte [edx], al
je 0x4011a0
mov edi, edi
xor byte [ecx], al
inc eax
inc ecx
cmp eax, 5
jne 0x40119b
xor eax, eax
cmp byte [ecx], 0
jne 0x401190
push edx
or eax, 0xffffffff
call fcn.004139f0
push 0xa0
call fcn.0041d530
add esp, 4
mov dword [ebp - 0x60], eax
mov byte [ebp - 4], 6
cmp eax, ebx
je 0x4011c9
push eax
call fcn.00415a10
jmp 0x4011cb
xor eax, eax
lea ecx, [ebp - 0x58]
mov dword [edi + 0x7c], eax
call fcn.00401320
mov eax, dword [eax]
push eax
or eax, 0xffffffff
lea esi, [edi + 0x38]
call fcn.004139f0
mov eax, dword [ebp - 0x58]
lea ecx, [ebp - 0x54]
cmp eax, ecx
je 0x4011f7
push eax
call fcn.0041dba1
add esp, 4
push ebx
lea edx, [ebp - 0x70]
push edx
lea eax, [edi + 0x18]
push eax
mov dword [ebp - 0x70], 1
mov dword [ebp - 0x6c], ebx
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x64], ebx
call dword [sym.imp.gdiplus.dll_GdiplusStartup]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0041d129
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x5c]
push ecx
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x5c], ebx
call fcn.0041d22d
push 0x442080
lea edx, [ebp - 0x7c]
push edx
mov dword [ebp - 0x7c], vtable.std::bad_alloc.0
call fcn.0041f372
int3
Function at 0x401320
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x44666c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x103
lea eax, [ebp - 0x107]
push 0
push eax
mov esi, ecx
mov byte [ebp - 0x108], 0
call fcn.004256b0
add esp, 0xc
lea ecx, [ebp - 0x10c]
push ecx
push 0x26
push 0
mov dword [ebp - 0x10c], 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x401393
mov eax, dword [ebp - 0x10c]
lea edx, [ebp - 0x108]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
mov ecx, dword [ebp - 0x10c]
push ecx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
lea eax, [esi + 4]
lea edx, [ebp - 0x108]
mov dword [esi], eax
mov byte [eax], 0
push edx
or eax, 0xffffffff
call fcn.004139f0
push 0x43c824
mov eax, esi
call fcn.004138f0
push str.bianya2
mov eax, esi
call fcn.004138f0
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0041d129
mov esp, ebp
pop ebp
ret
Function at 0x4018f0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1b8
mov eax, dword [0x44666c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebx + 4]
push edi
mov dword [ebx], eax
mov byte [eax], 0
push 0x43c7f1
or eax, 0xffffffff
mov esi, ebx
call fcn.004139f0
lea eax, [ebp - 0x1ac]
mov dword [ebp - 0x1b0], eax
push str.Software_
or eax, 0xffffffff
lea esi, [ebp - 0x1b0]
mov byte [ebp - 0x1ac], 0
call fcn.004139f0
push str.bianya2
mov eax, esi
call fcn.004138f0
mov eax, dword [ebp - 0x1b0]
lea ecx, [ebp - 0x1b4]
push ecx
push 0x20019
push 0
push eax
push 0x80000002
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4019e4
push 0x103
push eax
lea edx, [ebp - 0x10f]
push edx
mov byte [ebp - 0x110], al
call fcn.004256b0
mov edx, dword [ebp - 0x1b4]
add esp, 0xc
lea eax, [ebp - 0x1b8]
push eax
lea ecx, [ebp - 0x110]
push ecx
push 0
push 0
push 0x43c86c
push edx
mov dword [ebp - 0x1b8], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4019d7
lea eax, [ebp - 0x110]
push eax
push 0x43c870
mov edi, ebx
call fcn.00413ea0
add esp, 8
mov ecx, dword [ebp - 0x1b4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebx]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4019f0
sub eax, edx
test eax, eax
jg 0x401b08
lea edx, [ebp - 0x1b8]
push edx
lea eax, [ebp - 0x1b4]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
lea ecx, [ebp - 0x1b4]
push ecx
push 0x20006
push 0
push esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401b08
lea edx, [ebp - 0x120]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [ebp - 0x116]
movzx edx, word [ebp - 0x118]
push ecx
movzx ecx, word [ebp - 0x11e]
lea eax, [ebp - 0x164]
push edx
movzx edx, word [ebp - 0x120]
mov dword [ebp - 0x168], eax
movzx eax, word [ebp - 0x11a]
push eax
push ecx
push edx
push str.__d_02d_02d_02d_02d
lea edi, [ebp - 0x168]
mov byte [ebp - 0x164], 0
call fcn.00413ea0
mov edx, dword [ebp - 0x168]
mov eax, edx
add esp, 0x18
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401ab0
sub eax, esi
push eax
mov eax, dword [ebp - 0x1b4]
push edx
push 1
push 0
push 0x43c86c
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 0x1b4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x168]
push edx
or eax, 0xffffffff
mov esi, ebx
call fcn.004139f0
mov eax, dword [ebp - 0x168]
lea ecx, [ebp - 0x164]
cmp eax, ecx
je 0x401b08
push eax
call fcn.0041dba1
add esp, 4
mov edx, 0x43c7f1
mov ecx, 0x43c888
mov edi, ebx
call fcn.00413bb0
mov eax, dword [ebp - 0x1b0]
lea edx, [ebp - 0x1ac]
cmp eax, edx
je 0x401b32
push eax
call fcn.0041dba1
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov eax, ebx
pop esi
call fcn.0041d129
mov esp, ebp
pop ebp
ret
Function at 0x401fd0
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x449334]
cmp byte [eax], 0
push 0x24
push 0x43cd08
je 0x402012
push 0x43c6f0
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x402023
cmp byte [ebp + 8], 0
je 0x40202b
mov eax, dword [0x449334]
mov dword [eax + 0x81], 0x1010001
mov ecx, esi
pop ebp
jmp fcn.00402030
push 0x43c79c
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 6
jne 0x40202b
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
pop ebp
ret
Function at 0x402bd0
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2114
call fcn.00430ac0
mov eax, dword [0x44666c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x110c]
push ecx
push 0x1000
lea edx, [ebp - 0x1108]
push edx
mov dword [ebp - 0x1110], eax
call dword [sym.imp.PSAPI.DLL_EnumProcesses]
test eax, eax
jne 0x402c1d
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d129
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0x110c]
push ebx
push esi
push edi
shr eax, 2
xor edi, edi
test eax, eax
jle 0x402ca4
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ecx, dword [ebp + edi*4 - 0x1108]
push ecx
push 0
push 0x410
call ebx
lea edx, [ebp - 0x1114]
push edx
mov esi, eax
push 0x1000
lea eax, [ebp - 0x2114]
push eax
push esi
call dword [sym.imp.PSAPI.DLL_EnumProcessModules]
mov edx, dword [ebp - 0x2114]
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push edx
push esi
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExA]
mov eax, dword [ebp - 0x1110]
push eax
lea ecx, [ebp - 0x108]
push ecx
call fcn.0041d320
add esp, 8
test eax, eax
jne 0x402cb9
mov edx, dword [ebp - 0x110c]
inc edi
shr edx, 2
cmp edi, edx
jl 0x402c35
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d129
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + edi*4 - 0x1108]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041d129
mov esp, ebp
pop ebp
ret 4

Function at 0x402ce0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x44666c]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x402d26
lea ecx, [ebp - 0x20]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x402d36
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d129
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
push 0
push 0
push 0x10
lea edx, [ebp - 0x14]
push edx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
push 0
push eax
mov dword [ebp - 0x14], 1
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x402d84
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d129
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
call fcn.0041d129
mov esp, ebp
pop ebp
ret
Function at 0x4034a0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x44666c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x449334]
cmp byte [eax], 0
push esi
push edi
je 0x403524
sub esp, 0x44
mov esi, esp
lea eax, [esi + 4]
mov dword [ebp - 0x4c], esp
mov dword [esi], eax
mov byte [eax], 0
push str.http:__tongji.bianya.cc_popup.ashx_type0
or eax, 0xffffffff
call fcn.004139f0
lea edi, [ebp - 0x48]
call fcn.00403540
mov esi, dword [ebp - 0x48]
mov eax, esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4034f0
sub eax, edx
test eax, eax
jle 0x403514
push 3
push 0
push 0
push esi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, dword [ebp - 0x48]
lea ecx, [ebp - 0x44]
cmp esi, ecx
je 0x403524
push esi
call fcn.0041dba1
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0041d129
mov esp, ebp
pop ebp
ret
Function at 0x403540
Capabilities:
Check http status code
Create http request
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x19054
call fcn.00430ac0
mov eax, dword [0x44666c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0
push 0
push 0
push 1
push 0
call dword [sym.imp.WININET.dll_InternetOpenA]
mov esi, eax
test esi, esi
jne 0x4035ab
lea eax, [edi + 4]
mov dword [edi], eax
mov byte [eax], 0
push 0x43c7f1
or eax, 0xffffffff
mov esi, edi
call fcn.004139f0
mov eax, dword [ebp + 8]
lea ecx, [ebp + 0xc]
cmp eax, ecx
je 0x4035fa
push eax
call fcn.0041dba1
add esp, 4
mov eax, edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d129
mov esp, ebp
pop ebp
ret 0x44
mov edx, dword [ebp + 8]
push ebx
push 0
push 0x102
push 0
push 0
push edx
push esi
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov ebx, eax
test ebx, ebx
jne 0x40360d
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
lea eax, [edi + 4]
mov dword [edi], eax
mov byte [eax], 0
push 0x43c7f1
or eax, 0xffffffff
mov esi, edi
call fcn.004139f0
mov eax, dword [ebp + 8]
lea ecx, [ebp + 0xc]
cmp eax, ecx
je 0x4035f9
push eax
call fcn.0041dba1
add esp, 4
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, edi
pop esi
call fcn.0041d129
mov esp, ebp
pop ebp
ret 0x44
push 0
lea edx, [ebp - 0x19054]
push edx
lea eax, [ebp - 0x19050]
push eax
push 0x20000013
push ebx
mov dword [ebp - 0x19054], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
cmp dword [ebp - 0x19050], 0x190
jae 0x4035cf
push 0x19000
lea edx, [ebp - 0x19004]
push 0
push edx
mov dword [ebp - 0x1904c], 0
call fcn.004256b0
add esp, 0xc
lea eax, [ebp - 0x1904c]
push eax
push 0x19000
lea ecx, [ebp - 0x19004]
push ecx
push ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x4035cf
mov eax, dword [ebp - 0x1904c]
test eax, eax
je 0x4035cf
push ebx
mov ebx, dword [sym.imp.WININET.dll_InternetCloseHandle]
mov byte [ebp + eax - 0x19004], 0
call ebx
push esi
call ebx
lea eax, [ebp - 0x19004]
lea edx, [ebp - 0x19044]
push eax
or eax, 0xffffffff
lea esi, [ebp - 0x19048]
mov dword [ebp - 0x19048], edx
mov byte [ebp - 0x19044], 0
call fcn.004139f0
push 0x19000
lea ecx, [ebp - 0x19004]
push 0
push ecx
call fcn.004256b0
add esp, 0xc
mov edx, esi
push edx
mov eax, edi
call fcn.004138a0
mov eax, dword [ebp - 0x19048]
lea ecx, [ebp - 0x19044]
cmp eax, ecx
je 0x403704
push eax
call fcn.0041dba1
add esp, 4
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
cmp eax, edx
jmp 0x4035ee