joyce8/EMBER2024-capa huggingface dataset:
Function at 0xa146b0
Capabilities:
Check os version

Disassembly:
sub esp, 0x130
mov eax, dword [0xaf97a0]
xor eax, esp
mov dword [esp + 0x12c], eax
mov eax, dword [0xafcfbc]
push ebp
xor ebp, ebp
push esi
mov esi, 0x20
cmp eax, ebp
jne 0xa14980
push ebx
push edi
push str.IsWow64Process
push str.kernel32
mov dword [0xafcfbc], ebp
mov dword [esp + 0x20], ebp
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov edi, eax
cmp edi, ebp
je 0xa14713
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
cmp dword [esp + 0x18], ebp
je 0xa1471e
mov esi, 0x40
push str.ntdll.dll
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 0x20], ebp
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
cmp edi, ebp
je 0xa14979
push str.RtlGetNtVersionNumbers
push edi
call ebx
cmp eax, ebp
je 0xa14972
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x14]
push edx
lea ecx, [esp + 0x1c]
push ecx
call eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x14]
cmp eax, 4
jne 0xa14795
mov eax, dword [esp + 0x10]
cmp eax, ebp
je 0xa14786
cmp eax, 0xa
je 0xa14786
cmp eax, 0x5a
jne 0xa14979
mov dword [0xafcfbc], 1
jmp 0xa14979
cmp eax, 5
jne 0xa1481f
mov eax, dword [esp + 0x10]
cmp eax, ebp
jne 0xa147b5
mov dword [0xafcfbc], 2
jmp 0xa14979
cmp eax, 1
jne 0xa147e8
cmp si, 0x20
jne 0xa147cf
mov dword [0xafcfbc], 4
jmp 0xa14979
cmp si, 0x40
jne 0xa14979
mov dword [0xafcfbc], 8
jmp 0xa14979
cmp eax, 2
jne 0xa14979
cmp si, 0x20
jne 0xa14806
mov dword [0xafcfbc], 0x10
jmp 0xa14979
cmp si, 0x40
jne 0xa14979
mov dword [0xafcfbc], 0x20
jmp 0xa14979
cmp eax, 6
jne 0xa1494c
mov eax, dword [esp + 0x10]
cmp eax, ebp
jne 0xa148c0
push 0x11c
lea edx, [esp + 0x24]
push ebp
push edx
call fcn.00a827a0
add esp, 0xc
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x24], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp byte [esp + 0x13a], 3
jne 0xa14892
cmp si, 0x20
jne 0xa14879
mov dword [0xafcfbc], 0x100
jmp 0xa14979
cmp si, 0x40
jne 0xa14979
mov dword [0xafcfbc], 0x200
jmp 0xa14979
cmp si, 0x20
jne 0xa148a7
mov dword [0xafcfbc], 0x40
jmp 0xa14979
cmp si, 0x40
jne 0xa14979
mov dword [0xafcfbc], 0x80
jmp 0xa14979
cmp eax, 1
jne 0xa148f3
cmp si, 0x20
jne 0xa148da
mov dword [0xafcfbc], 0x400
jmp 0xa14979
cmp si, 0x40
jne 0xa14979
mov dword [0xafcfbc], 0x800
jmp 0xa14979
cmp eax, 2
jne 0xa1491c
cmp si, 0x20
jne 0xa1490a
mov dword [0xafcfbc], 0x1000
jmp 0xa14979
cmp si, 0x40
jne 0xa14979
mov dword [0xafcfbc], 0x2000
jmp 0xa14979
cmp eax, 3
jne 0xa14945
cmp si, 0x20
jne 0xa14933
mov dword [0xafcfbc], 0x4000
jmp 0xa14979
cmp si, 0x40
jne 0xa14979
mov dword [0xafcfbc], 0x8000
jmp 0xa14979
cmp eax, 4
jb 0xa14979
jmp 0xa1494e
jbe 0xa14979
cmp si, 0x20
jne 0xa14960
mov dword [0xafcfbc], 0x10000
jmp 0xa14979
cmp si, 0x40
jne 0xa14979
mov dword [0xafcfbc], 0x20000
jmp 0xa14979
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [0xafcfbc]
pop edi
pop ebx
mov ecx, dword [esp + 0x134]
pop esi
pop ebp
xor ecx, esp
call fcn.00a7a967
add esp, 0x130
ret
Function at 0xa149a0
Capabilities:
Get session user name

Disassembly:
sub esp, 0x210
mov eax, dword [0xaf97a0]
xor eax, esp
mov dword [esp + 0x20c], eax
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0xe]
push ecx
mov word [esp + 0x10], ax
call fcn.00a827a0
add esp, 0xc
lea edx, [esp]
push edx
lea eax, [esp + 8]
push eax
mov dword [esp + 8], 0x104
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea ecx, [esp + 4]
push str.SYSTEM
push ecx
call fcn.00a7b179
mov ecx, dword [esp + 0x214]
add esp, 8
neg eax
sbb eax, eax
xor ecx, esp
inc eax
call fcn.00a7a967
add esp, 0x210
ret

Function at 0xa14aa0
Capabilities:
Create thread

Disassembly:
push ecx
push ebx
lea eax, [esi + 0x14]
push edi
push eax
xor ebx, ebx
mov dword [esp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [esi + 0xc], 0x3e8
mov dword [esi + 0x10], ebx
cmp dword [esi + 8], ebx
jne 0xa14ad1
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 8], eax
cmp eax, ebx
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0xa14b2e
mov eax, dword [esi + 4]
cmp eax, ebx
je 0xa14af9
push 1
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0xa14af9
mov eax, dword [esi + 4]
push eax
call edi
mov dword [esi + 4], ebx
cmp dword [esi + 4], ebx
jne 0xa14b17
push ebx
push ebx
push esi
push 0xa14b60
push ebx
push ebx
call fcn.00a7c995
add esp, 0x18
mov dword [esi + 4], eax
cmp eax, ebx
je 0xa14b2e
mov ecx, dword [esp + 8]
push ecx
mov byte [esi + 0x2c], 1
mov bl, 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov al, bl
pop ebx
pop ecx
ret
mov eax, dword [esi + 8]
cmp eax, ebx
je 0xa14b3b
push eax
call edi
mov dword [esi + 8], ebx
mov eax, dword [esi + 4]
cmp eax, ebx
je 0xa14b48
push eax
call edi
mov dword [esi + 4], ebx
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov al, bl
pop ebx
pop ecx
ret
Function at 0xa166f0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
mov esi, eax
mov eax, dword [esi]
mov ecx, dword [esi + 8]
push eax
push 1
push ecx
push edi
call fcn.00a7b6c7
mov ecx, dword [esi + 8]
add esp, 0x10
cmp eax, 1
mov eax, ecx
sete bl
cdq
idiv dword [esi + 0x18]
mov byte [esp + 0x12], bl
mov dword [esi + 0x1c], eax
test bl, bl
je 0xa16869
add dword [esi + 0x14], ecx
cmp dword [esi + 0x54], 8
push 0xffffffffffffffff
push eax
push 0x18
push ecx
mov ecx, esp
jb 0xa16743
mov eax, dword [esi + 0x40]
jmp 0xa16746
lea eax, [esi + 0x40]
mov dword [ecx], eax
push ecx
mov eax, esp
mov dword [eax], str.read
lea eax, [esi + 0x20]
push eax
mov dword [esp + 0x2c], eax
call fcn.00a14d40
mov ecx, dword [esi + 0x18]
mov ebx, dword [esi + 0x1c]
add esp, 0x18
xor ebp, ebp
xor eax, eax
cmp ecx, 1
sete byte [esp + 0x13]
test ebx, ebx
je 0xa16804
xor edx, edx
dec ebx
cmp byte [esp + 0x13], dl
je 0xa16788
cmp byte [edi], dl
jmp 0xa1678c
cmp word [edi], 0
sete dl
test edx, edx
je 0xa167b6
test eax, eax
je 0xa167af
cmp edi, eax
je 0xa167af
imul ecx, ebp
mov edx, edi
sub edx, eax
push edx
push eax
sub eax, ecx
push eax
call fcn.00a7ce70
add esp, 0xc
mov ecx, dword [esi + 0x18]
lea eax, [ecx + edi]
inc ebp
add edi, ecx
test ebx, ebx
jne 0xa1677b
test eax, eax
je 0xa167d9
cmp edi, eax
je 0xa167d9
mov ecx, dword [esi + 0x18]
imul ecx, ebp
sub edi, eax
push edi
push eax
sub eax, ecx
push eax
call fcn.00a7ce70
add esp, 0xc
test ebp, ebp
je 0xa16804
mov edx, dword [esp + 0x14]
push 0xffffffffffffffff
push ebp
push 1
push ecx
mov eax, esp
push ecx
mov dword [eax], 0
mov eax, esp
push edx
mov dword [eax], str.nulls_removed
call fcn.00a14d40
add esp, 0x18
sub dword [esi + 0x1c], ebp
cmp dword [esi + 0x18], 1
jle 0xa1685b
test byte [esi + 4], 0x80
je 0xa1685b
mov esi, dword [esi + 0x1c]
test esi, esi
je 0xa16836
jmp 0xa16820
mov ecx, dword [esp + 0x1c]
movzx eax, word [ecx + esi*2 - 2]
dec esi
rol ax, 8
mov word [ecx + esi*2], ax
test esi, esi
jne 0xa16820
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push ecx
mov eax, esp
mov dword [eax], 0
push ecx
mov eax, esp
mov dword [eax], str.endian_swap
mov eax, dword [esp + 0x28]
push eax
call fcn.00a14d40
add esp, 0x18
mov al, byte [esp + 0x12]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
push esi
call fcn.00a164d0
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 8
ret 4
Function at 0xa16d80
Capabilities:
Write file on windows

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov esi, eax
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
imul ecx, eax
push edi
mov dword [esi + 8], ecx
test ebp, ebp
jne 0xa16d9c
mov ebp, edx
mov ecx, dword [esi + 4]
xor edi, edi
test cl, cl
jns 0xa16e16
test edx, edx
jne 0xa16dd5
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00a76ab6
mov edi, eax
mov eax, dword [esi + 0x1c]
add eax, eax
push eax
push ebp
push edi
call fcn.00a81c00
add esp, 0x10
mov edx, edi
mov ebp, edi
mov eax, dword [esi + 0x1c]
test eax, eax
je 0xa16df2
lea esp, [esp]
movzx ecx, word [edx + eax*2 - 2]
dec eax
rol cx, 8
mov word [edx + eax*2], cx
test eax, eax
jne 0xa16de0
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push ecx
mov eax, esp
push ecx
mov dword [eax], 0
mov eax, esp
lea ecx, [esi + 0x20]
push ecx
mov dword [eax], str.endian_swap
call fcn.00a14d40
add esp, 0x18
mov edx, dword [esi]
mov eax, dword [esi + 8]
push edx
push 1
push eax
push ebp
call fcn.00a7c564
add esp, 0x10
cmp eax, 1
sete bl
test edi, edi
je 0xa16e3b
push edi
call fcn.00a7b356
add esp, 4
test bl, bl
je 0xa16e7e
mov edx, dword [esi + 0x1c]
mov ecx, dword [esi + 8]
add dword [esi + 0x14], ecx
cmp dword [esi + 0x54], 8
push 0xffffffffffffffff
push edx
push 0x18
push ecx
mov ecx, esp
jb 0xa16e5b
mov eax, dword [esi + 0x40]
jmp 0xa16e5e
lea eax, [esi + 0x40]
push ecx
mov dword [ecx], eax
mov eax, esp
add esi, 0x20
push esi
mov dword [eax], str.write
call fcn.00a14d40
add esp, 0x18
mov al, bl
pop edi
pop esi
pop ebp
pop ebx
ret 4
push esi
call fcn.00a164d0
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
ret 4
Function at 0xa181b0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0xacfea9
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov eax, dword [0xaf97a0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
xor edi, edi
mov dword [esp + 0x18], edi
lea ebp, [esi + 4]
xor eax, eax
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], edi
mov dword [esp + 0x1c], esi
mov word [ebp], ax
mov dword [esp + 0x28], edi
mov eax, dword [esp + 0x30]
mov dword [esp + 0x18], 1
mov ebx, eax
lea edx, [eax + 2]
jmp 0xa18210
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0xa18210
sub eax, edx
mov edi, dword [esi + 0x14]
sar eax, 1
mov ecx, eax
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea eax, [ecx + eax + 7]
cmp edi, eax
ja 0xa18263
cmp dword [esi + 0x18], eax
je 0xa18263
push 1
push eax
mov ecx, esi
call fcn.00a11bc0
test al, al
je 0xa18263
cmp dword [esi + 0x18], 8
mov dword [esi + 0x14], edi
jb 0xa1825c
mov ebp, dword [ebp]
xor ecx, ecx
mov word [ebp + edi*2], cx
movzx eax, word [ebx]
test ax, ax
je 0xa18377
mov edi, dword [esp + 0x34]
and edi, 0x100
mov dword [esp + 0x14], edi
test edi, edi
je 0xa1829a
lea edx, [eax - 0x22]
cmp dx, 0x1c
ja 0xa1835f
movzx ecx, ax
movsx ebp, byte [ecx + 0xaea982]
jmp 0xa182b1
lea edx, [eax - 0x26]
cmp dx, 0x18
ja 0xa1835f
movzx ecx, ax
movsx ebp, byte [ecx + 0xaea99e]
test ebp, ebp
je 0xa1835f
test byte [esp + 0x34], 8
je 0xa18337
cmp ax, 0x26
jne 0xa18337
movzx eax, word [ebx + 2]
lea edi, [ebx + 2]
lea edx, [eax - 0x23]
cmp dx, 0x57
ja 0xa182e4
movzx ecx, ax
movsx ecx, byte [ecx + 0xaea9bd]
test ecx, ecx
jne 0xa182ea
cmp ax, 0x7f
jbe 0xa18337
movzx eax, word [edi + 2]
add edi, 2
cmp ax, 0x3b
je 0xa18321
lea edx, [eax - 0x2d]
cmp dx, 0x4d
ja 0xa1830e
movzx ecx, ax
movsx ecx, byte [ecx + 0xaeaa13]
test ecx, ecx
jne 0xa18314
cmp ax, 0x7f
jbe 0xa18337
movzx eax, word [edi + 2]
add edi, 2
cmp ax, 0x3b
jne 0xa182f7
mov eax, edi
sub eax, ebx
sar eax, 1
inc eax
push eax
push ebx
call fcn.00a1b430
mov ebx, edi
mov edi, dword [esp + 0x14]
jmp 0xa18367
mov edx, dword [ebp*4 + 0xafaf34]
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0xa18343
sub eax, edi
sar eax, 1
push eax
push edx
call fcn.00a1b430
mov edi, dword [esp + 0x14]
jmp 0xa18367
push 1
push ebx
call fcn.00a1b430
movzx eax, word [ebx + 2]
add ebx, 2
test ax, ax
jne 0xa1827d
mov eax, esi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0xa1e5d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0xad0868
mov eax, dword fs:[0]
push eax
sub esp, 0x64
push ebx
push ebp
push esi
push edi
mov eax, dword [0xaf97a0]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov edi, ecx
mov ebp, dword [esp + 0x8c]
mov eax, dword [ebp + 8]
sub eax, dword [ebp + 4]
mov esi, dword [edi + 0x14]
sub eax, 2
mov ebx, 1
cmp esi, eax
ja 0xa1e63a
cmp dword [edi + 0x18], eax
je 0xa1e63a
push ebx
push eax
call fcn.00a11590
test al, al
je 0xa1e63a
cmp dword [edi + 0x18], 0x10
mov dword [edi + 0x14], esi
jb 0xa1e633
mov eax, dword [edi + 4]
jmp 0xa1e636
lea eax, [edi + 4]
mov byte [eax + esi], 0
mov esi, dword [ebp + 4]
mov ecx, dword [ebp + 8]
sub ecx, ebx
add esi, ebx
mov dword [esp + 0x18], ecx
cmp esi, ecx
je 0xa1e81b
jmp 0xa1e656
mov ecx, dword [esp + 0x18]
mov al, byte [esi]
add esi, ebx
mov byte [esp + 0x20], al
cmp al, 0x22
je 0xa1e81b
cmp al, 0x5c
jne 0xa1e757
cmp esi, ecx
je 0xa1e773
mov al, byte [esi]
movsx eax, al
add esi, ebx
add eax, 0xffffffde
mov dword [esp + 0x8c], esi
cmp eax, 0x53
ja case.0xa1e697.35
movzx eax, byte [eax + 0xa1e85c]
jmp dword [eax*4 + 0xa1e834]
push 0x22
jmp 0xa1e75c
push 0x2f
jmp 0xa1e75c
push 0x5c
jmp 0xa1e75c
push 8
jmp 0xa1e75c
push 0xc
jmp 0xa1e75c
push 0xa
jmp 0xa1e75c
push 0xd
jmp 0xa1e75c
push 9
jmp 0xa1e75c
mov eax, dword [esp + 0x88]
lea edx, [esp + 0x1c]
push edx
push ecx
push eax
lea ecx, [esp + 0x98]
mov edx, ebp
call fcn.00a1e8b0
test al, al
je 0xa1e7bf
mov ecx, dword [esp + 0x1c]
lea esi, [esp + 0x5c]
call fcn.00a1c9e0
push 0xffffffffffffffff
push 0
push eax
mov ecx, edi
mov dword [esp + 0x8c], ebx
call fcn.00a110b0
mov dword [esp + 0x80], 0xffffffff
cmp dword [esp + 0x74], 0x10
jb 0xa1e739
mov ecx, dword [esp + 0x60]
push ecx
call fcn.00a7ac28
add esp, 4
mov esi, dword [esp + 0x8c]
mov dword [esp + 0x74], 0xf
mov dword [esp + 0x70], 0
mov byte [esp + 0x60], 0
jmp 0xa1e764
mov edx, dword [esp + 0x20]
push edx
push ebx
mov ecx, edi
call fcn.00a12d00
cmp esi, dword [esp + 0x18]
jne 0xa1e652
jmp 0xa1e81b
push 0x1f
xor edi, edi
push str.Empty_escape_sequence_in_string
lea ecx, [esp + 0x2c]
mov dword [esp + 0x44], 0xf
mov dword [esp + 0x40], edi
mov byte [esp + 0x30], 0
call fcn.00a111b0
mov edx, dword [esp + 0x88]
push esi
push ebp
lea ecx, [esp + 0x2c]
mov dword [esp + 0x88], edi
call fcn.00a1eb60
cmp dword [esp + 0x3c], 0x10
mov bl, al
jb 0xa1e81b
mov eax, dword [esp + 0x28]
push eax
jmp 0xa1e813
xor al, al
jmp 0xa1e81d
push 0x1d
push str.Bad_escape_sequence_in_string
lea ecx, [esp + 0x48]
mov dword [esp + 0x60], 0xf
mov dword [esp + 0x5c], 0
mov byte [esp + 0x4c], 0
call fcn.00a111b0
mov edx, dword [esp + 0x88]
push esi
push ebp
lea ecx, [esp + 0x48]
mov dword [esp + 0x88], 2
call fcn.00a1eb60
cmp dword [esp + 0x58], 0x10
mov bl, al
jb 0xa1e81b
mov ecx, dword [esp + 0x44]
push ecx
call fcn.00a7ac28
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x70
ret 8
Function at 0xa21d00
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0xacf24b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0xaf97a0]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, dword [esp + 0x24]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00a7705a
push 4
mov dword [esp + 0x20], 0
call fcn.00a7acb0
mov edi, eax
add esp, 4
test edi, edi
je 0xa21d7e
call fcn.00a76ecb
mov dword [edi], eax
call fcn.00a76da0
push 0
lea ecx, [esp + 0x14]
mov ebx, eax
call fcn.00a7701b
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0xa21d73
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0x10]
call fcn.00a77043
jmp 0xa21d80
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4
Function at 0xa2c340
Capabilities:
Create http request
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
sub esp, 0x408
mov eax, dword [0xaf97a0]
xor eax, esp
mov dword [esp + 0x404], eax
push ebp
push esi
push edi
push 0x3ff
lea eax, [esp + 0x15]
push 0
push eax
mov esi, ecx
mov edi, edx
mov byte [esp + 0x1c], 0
call fcn.00a827a0
add esp, 0xc
push 0
push 0
push 0
push 0
push str.mbwkestanddll
mov dword [esp + 0x20], 1
call dword [sym.imp.WININET.dll_InternetOpenW]
mov ebp, eax
test ebp, ebp
je 0xa2c428
cmp dword [esi + 0x18], 8
jb 0xa2c3a4
mov esi, dword [esi + 4]
jmp 0xa2c3a7
add esi, 4
push 0
push 0x4000000
push 0
push 0
push esi
push ebp
call dword [sym.imp.WININET.dll_InternetOpenUrlW]
mov esi, eax
test esi, esi
je 0xa2c421
push 0xae5ea8
push edi
call fcn.00a7c13f
mov edi, eax
add esp, 8
test edi, edi
je 0xa2c41a
cmp dword [esp + 0xc], 0
jbe 0xa2c411
push ebx
mov ebx, dword [sym.imp.WININET.dll_InternetReadFile]
lea ecx, [esp + 0x10]
push ecx
push 0x3ff
lea edx, [esp + 0x1c]
push edx
push esi
call ebx
mov eax, dword [esp + 0x10]
push edi
push eax
lea ecx, [esp + 0x1c]
push 1
push ecx
call fcn.00a7c564
add esp, 0x10
cmp dword [esp + 0x10], 0
ja 0xa2c3e2
pop ebx
push edi
call fcn.00a7b75b
add esp, 4
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebp
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov ecx, dword [esp + 0x410]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.00a7a967
add esp, 0x408
ret
Function at 0xa2cb80
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push edi
push str.ole32.dll
call esi
push str.dsound.dll
mov ebx, eax
call esi
push str.Winmm.dll
mov ebp, eax
call esi
mov edi, eax
test ebx, ebx
je 0xa2cc59
test ebp, ebp
je 0xa2cc59
test edi, edi
je 0xa2cc59
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CoCreateInstance
push ebx
call esi
push str.CoGetClassObject
push ebx
mov dword [0xafc804], eax
call esi
push str.DirectSoundCreate8
push ebp
mov dword [0xafc808], eax
call esi
push str.DirectSoundCreate
push ebp
mov dword [0xafc81c], eax
call esi
push str.waveOutOpen
push edi
mov dword [0xafc810], eax
call esi
push str.midiStreamOpen
push edi
mov dword [0xafc80c], eax
call esi
push str.waveOutWrite
push edi
mov dword [0xafc814], eax
call esi
push str.PlaySoundW
push edi
mov dword [0xafc818], eax
call esi
push str.mmioOpenW
push edi
mov dword [0xafc820], eax
call esi
push str.mixerOpen
push edi
mov dword [0xafc824], eax
call esi
push str.sndPlaySoundW
push edi
mov dword [0xafc828], eax
call esi
pop edi
pop esi
pop ebp
mov dword [0xafc82c], eax
mov al, 1
pop ebx
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret

Function at 0xa2cde0
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
sub esp, 0x10
push ebx
push esi
push 0x48
xor ebx, ebx
push ebx
push edi
call fcn.00a827a0
mov eax, dword [esp + 0x28]
push 0xae5ea4
push eax
call fcn.00a7c13f
mov esi, eax
add esp, 0x14
cmp esi, ebx
jne 0xa2ce10
pop esi
xor al, al
pop ebx
add esp, 0x10
ret
push esi
push 4
lea ecx, [esp + 0x1c]
push 1
push ecx
call fcn.00a7b6c7
push esi
push 4
lea edx, [esp + 0x28]
push 1
push edx
call fcn.00a7b6c7
add esp, 0x20
cmp dword [esp + 0x10], ebx
mov dword [edi + 0x44], ebx
mov byte [esp + 0xb], bl
mov dword [esp + 0xc], ebx
jle 0xa2cf06
push ebp
lea ebp, [edi + 4]
lea ebx, [edi + 8]
lea ecx, [ecx]
push esi
push 4
push 1
push edi
call fcn.00a7b6c7
push esi
push 4
push 1
push ebp
call fcn.00a7b6c7
push esi
push 0x3c
push 1
push ebx
call fcn.00a7b6c7
add esp, 0x30
mov eax, ebx
mov ecx, 0x3c
jmp 0xa2ce80
xor byte [eax], 0x55
inc eax
sub ecx, 1
jne 0xa2ce80
mov eax, dword [esp + 0x24]
push ebx
push eax
call fcn.00a90100
add esp, 8
test eax, eax
je 0xa2cebe
mov eax, dword [esp + 0x10]
inc eax
cmp eax, dword [esp + 0x14]
mov dword [esp + 0x10], eax
jl 0xa2ce50
pop ebp
push esi
call fcn.00a7b75b
mov al, byte [esp + 0xf]
add esp, 4
pop esi
pop ebx
add esp, 0x10
ret
mov ecx, dword [ebp]
inc ecx
push ecx
mov byte [esp + 0x13], 1
call fcn.00a7d987
mov edx, dword [edi]
push 0
push edx
push esi
mov dword [edi + 0x44], eax
call fcn.00a7c1e0
mov eax, dword [ebp]
mov ecx, dword [edi + 0x44]
push esi
push eax
push 1
push ecx
call fcn.00a7b6c7
xor eax, eax
add esp, 0x20
cmp dword [ebp], eax
jbe 0xa2cf05
mov edx, dword [edi + 0x44]
xor byte [edx + eax], 0x55
lea ecx, [edx + eax]
inc eax
cmp eax, dword [ebp]
jb 0xa2cef5
pop ebp
push esi
call fcn.00a7b75b
mov al, byte [esp + 0xf]
add esp, 4
pop esi
pop ebx
add esp, 0x10
ret
Function at 0xa2cfc0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ecx
cmp dword [ebx + 8], 0
push ebp
push esi
push edi
jne 0xa2d03f
mov eax, dword [esp + 0x14]
mov esi, ecx
mov edx, ebx
call fcn.00a2d5d0
test eax, eax
je 0xa2d03f
mov eax, ebx
call fcn.00a2d660
mov ebp, eax
test ebp, ebp
je 0xa2d03f
push 0x40
push 0x3000
push ebp
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edi, eax
test edi, edi
je 0xa2d03f
mov eax, dword [esp + 0x14]
push eax
push edi
mov esi, ebx
call fcn.00a2d6e0
mov eax, dword [ebx + 0x10]
cmp dword [eax + 0xa0], 0
jbe 0xa2d026
cmp dword [eax + 0xa4], 0
jbe 0xa2d026
push ebx
call fcn.00a2d1c0
push ebx
mov ecx, edi
call fcn.00a2d240
test eax, eax
jne 0xa2d048
push 0x8000
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
pop edi
pop esi
pop ebp
pop ecx
ret 4
lea ecx, [esp + 0x14]
push ecx
push 0x40
push ebp
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov edx, dword [ebx + 0x10]
mov dword [edx + 0x34], edi
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax + 0x28]
push 0
push 1
lea eax, [ecx + edi]
push edi
mov dword [ebx + 4], eax
call eax
test eax, eax
jne 0xa2d09a
mov edx, dword [ebx + 4]
push eax
push eax
push edi
call edx
push 0x8000
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov dword [ebx + 4], 0
xor eax, eax
pop edi
pop esi
pop ebp
pop ecx
ret 4
mov dword [ebx + 8], edi
pop edi
pop esi
mov dword [ebx], 1
mov eax, 1
pop ebp
pop ecx
ret 4

Function at 0xa2d5d0
Capabilities:
Parse pe header

Disassembly:
cmp esi, 0x40
jae 0xa2d5d8
xor eax, eax
ret
mov ecx, 0x5a4d
mov dword [edx + 0xc], eax
cmp word [eax], cx
jne 0xa2d5d5
mov ecx, dword [eax + 0x3c]
push edi
lea edi, [ecx + 0xf8]
cmp esi, edi
jb 0xa2d656
add eax, ecx
mov dword [edx + 0x10], eax
cmp dword [eax], 0x4550
jne 0xa2d656
movzx ecx, word [eax + 0x16]
test ecx, 0x2000
je 0xa2d656
test cl, 2
je 0xa2d656
mov ecx, pe_nt_image_headers32
cmp word [eax + 0x14], cx
jne 0xa2d656
mov edi, dword [edx + 0x10]
push ebx
lea ecx, [eax + 0xf8]
xor ebx, ebx
mov dword [edx + 0x14], ecx
xor eax, eax
cmp bx, word [edi + 6]
pop ebx
jae 0xa2d64f
add ecx, 0x10
mov edi, dword [ecx + 4]
add edi, dword [ecx]
cmp edi, esi
ja 0xa2d656
mov edi, dword [edx + 0x10]
movzx edi, word [edi + 6]
inc eax
add ecx, 0x28
cmp eax, edi
jl 0xa2d637
mov eax, 1
pop edi
ret
xor eax, eax
pop edi
ret