joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10124dc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [esi + 0xc], ebx
cmp dword [0x1024e04], 0xffffffff
push edi
je 0x10126ed
cmp dword [0x1024e00], 0xffffffff
je 0x10126ed
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebp + 0xc]
push eax
push ebx
push dword [esi + 4]
mov dword [ebp - 4], 4
push dword [ebp + 8]
call edi
test eax, eax
jne 0x10126ed
mov eax, dword [esi + 8]
cmp dword [ebp + 0xc], eax
jne 0x10126ed
cmp eax, 4
jne 0x1012588
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp + 0xc]
push eax
push ebx
push dword [esi + 4]
push dword [ebp + 8]
call edi
test eax, eax
jne 0x10126ed
cmp dword [ebp + 0xc], 4
jne 0x10126ed
cmp dword [ebp - 4], 4
ja 0x101266b
push dword [ebp + 0x10]
push dword [ebp - 0xc]
push esi
call fcn.010123d0
mov dword [esi + 0xc], 1
jmp 0x10126d8
cmp eax, 1
jne 0x101261d
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebp + 0xc]
push eax
push ebx
push dword [esi + 4]
push dword [ebp + 8]
call edi
test eax, eax
jne 0x10126ed
cmp dword [ebp + 0xc], 1
jne 0x10126ed
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x10126ed
cmp eax, dword [esi + 0x14]
ja 0x101266b
inc eax
push eax
push ebx
push dword [0x1024f78]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x10126ed
lea ecx, [ebp - 4]
push ecx
push eax
lea eax, [ebp + 0xc]
push eax
push ebx
push dword [esi + 4]
push dword [ebp + 8]
call edi
test eax, eax
jne 0x10126dd
xor edi, edi
inc edi
cmp dword [ebp + 0xc], edi
jne 0x10126dd
push dword [ebp + 0x10]
push dword [ebp - 8]
push esi
call fcn.010123d0
mov dword [esi + 0xc], edi
jmp 0x10126c8
cmp eax, 2
jne 0x10126ed
cmp dword [esi], 0xa
jne 0x10126ed
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebp + 0xc]
push eax
push ebx
push str.DirectoryToStoreTracefiles
push dword [ebp + 8]
call edi
test eax, eax
jne 0x10126ed
cmp dword [ebp + 0xc], 2
jne 0x10126ed
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x10126ed
cmp eax, dword [esi + 0x14]
jbe 0x101267e
push dword [esi + 4]
push 0x2755
push 2
push 1
call fcn.010041b7
jmp 0x10126ed
lea eax, [eax + eax + 2]
push eax
push ebx
push dword [0x1024f78]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x10126ed
lea ecx, [ebp - 4]
push ecx
push eax
lea eax, [ebp + 0xc]
push eax
push ebx
push str.DirectoryToStoreTracefiles
push dword [ebp + 8]
call edi
test eax, eax
jne 0x10126dd
cmp dword [ebp + 0xc], 2
jne 0x10126dd
push dword [ebp + 0x10]
push dword [ebp - 8]
push esi
call fcn.010123d0
mov dword [esi + 0xc], 1
push dword [ebp - 8]
push ebx
push dword [0x1024f78]
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
inc eax
jmp 0x10126ef
push dword [ebp - 8]
push ebx
push dword [0x1024f78]
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x1012a55
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x10c
mov eax, dword [0x1042bc4]
xor eax, dword [esp + 0x10c]
push ebx
mov ebx, dword [esp + 0x114]
push ebp
push esi
push edi
push ebx
mov dword [esp + 0x11c], eax
call fcn.01012783
mov eax, dword [0x10222e0]
xor edi, edi
cmp eax, edi
mov dword [0x10222e4], eax
mov ebp, 0x10222e8
je 0x1012ab8
push ebp
push 0x10224f0
call dword [sym.imp.msvcrt.dll_wcscpy]
mov eax, dword [0x10226f8]
mov dword [0x10226fc], eax
mov eax, dword [0x1022700]
pop ecx
pop ecx
mov dword [0x1022704], eax
jmp 0x1012acb
mov word [0x10224f0], di
mov dword [0x10226fc], edi
mov dword [0x1022704], edi
push 9
call fcn.0101275d
test eax, eax
mov esi, 0x272f
je 0x1012afd
mov eax, dword [ebx + 0x24]
cmp dword [0x10222e0], eax
je 0x1012b03
push str.EnableTracing
push eax
push esi
push 4
push 1
mov dword [0x10222e0], eax
call fcn.01004288
jmp 0x1012b03
mov dword [0x10222e0], edi
cmp dword [0x10222e0], edi
je 0x1012bdb
mov eax, dword [ebx + 0x234]
cmp eax, edi
je 0x1012b38
cmp dword [0x10226f8], eax
je 0x1012b42
push str.MaxSizeOfTracefiles
push eax
push esi
push 4
push 1
mov dword [0x10226f8], eax
call fcn.01004288
jmp 0x1012b42
mov dword [0x10226f8], 0x100000
mov eax, dword [ebx + 0x238]
cmp eax, edi
je 0x1012b6b
cmp dword [0x1022700], eax
je 0x1012b75
push str.MaxNumberOfTracefilesToUse
push eax
push esi
push 4
push 1
mov dword [0x1022700], eax
call fcn.01004288
jmp 0x1012b75
mov dword [0x1022700], 0xa
add ebx, 0x28
cmp ebx, edi
je 0x1012bc8
push ebx
call dword [sym.imp.msvcrt.dll_wcslen]
test eax, eax
pop ecx
je 0x1012bc8
mov edi, 0x104
push edi
push ebp
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
call ebx
test eax, eax
push edi
je 0x1012bbe
lea eax, [esp + 0x14]
push eax
push ebp
call fcn.0101b5e5
push 0x10204e0
lea eax, [esp + 0x14]
push eax
push esi
push 4
push 1
call fcn.010041ea
jmp 0x1012bee
push ebp
push str._systemroot__system32logfiles
call ebx
jmp 0x1012bee
push 0x104
push ebp
push str._systemroot__system32logfiles
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
jmp 0x1012bee
mov word [0x10222e8], di
mov dword [0x10226f8], edi
mov dword [0x1022700], edi
mov ecx, dword [esp + 0x118]
xor ecx, dword [esp + 0x11c]
pop edi
pop esi
pop ebp
pop ebx
call fcn.0101ed84
add esp, 0x10c
ret 4
Function at 0x1017c8f
Capabilities:
Enumerate pe sections

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x1017dce
cmp byte [esi + 3], 2
jne 0x1017dce
xor eax, eax
mov ax, word [esi + 6]
push edi
mov edi, dword [sym.imp.WS2_32.dll_ntohs]
push eax
call edi
movzx ecx, word [esi]
mov word [esi + 6], ax
movzx eax, ax
lea eax, [eax*4 + 8]
cmp eax, ecx
jne 0x1017dcd
test byte [esi + 4], 0xf0
jne 0x1017dcd
xor eax, eax
mov ax, word [esi + 0xa]
push eax
call edi
mov word [esi + 0xa], ax
movzx eax, byte [esi + 8]
dec eax
dec eax
je 0x1017d69
sub eax, 3
je 0x1017d22
dec eax
jne 0x1017dcd
test byte [esi + 0xd], 0x80
jne 0x1017dcd
xor eax, eax
mov ax, word [esi + 0xe]
push eax
call edi
push dword [esi + 0x10]
mov word [esi + 0xe], ax
call dword [sym.imp.WS2_32.dll_ntohl]
mov dword [esi + 0x10], eax
jmp 0x1017dcd
test byte [esi + 0xd], 0x80
jne 0x1017dcd
xor eax, eax
mov ax, word [esi + 0xe]
push eax
call edi
push dword [esi + 0x1c]
mov edi, dword [sym.imp.WS2_32.dll_ntohl]
mov word [esi + 0xe], ax
mov eax, dword [esi + 0x14]
bswap eax
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0x10]
bswap eax
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x18]
bswap eax
mov dword [esi + 0x18], eax
call edi
push dword [esi + 0x20]
mov dword [esi + 0x1c], eax
call edi
mov dword [esi + 0x20], eax
jmp 0x1017dcd
test byte [esi + 0xd], 0x80
jne 0x1017dcd
test byte [esi + 0x25], 0x80
jne 0x1017dcd
xor eax, eax
mov ax, word [esi + 0xe]
push eax
call edi
mov word [esi + 0xe], ax
xor eax, eax
mov ax, word [esi + 0x26]
push eax
call edi
push dword [esi + 0x1c]
mov edi, dword [sym.imp.WS2_32.dll_ntohl]
mov word [esi + 0x26], ax
mov eax, dword [esi + 0x14]
bswap eax
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0x10]
bswap eax
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x18]
bswap eax
mov dword [esi + 0x18], eax
call edi
push dword [esi + 0x20]
mov dword [esi + 0x1c], eax
call edi
push dword [esi + 0x2c]
mov dword [esi + 0x20], eax
mov eax, dword [esi + 0x28]
bswap eax
mov dword [esi + 0x28], eax
call edi
mov dword [esi + 0x2c], eax
pop edi
pop esi
ret 4
Function at 0x1017dd2
Capabilities:
Enumerate pe sections

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x1017f13
cmp byte [esi + 3], 2
jne 0x1017f13
movzx edx, word [esi]
xor eax, eax
mov ax, word [esi + 6]
movzx ecx, ax
lea ecx, [ecx*4 + 8]
cmp ecx, edx
jne 0x1017f13
push edi
mov edi, dword [sym.imp.WS2_32.dll_htons]
push eax
call edi
test byte [esi + 4], 0xf0
mov word [esi + 6], ax
jne 0x1017f12
xor eax, eax
mov ax, word [esi + 0xa]
push eax
call edi
mov word [esi + 0xa], ax
movzx eax, byte [esi + 8]
dec eax
dec eax
je 0x1017eac
sub eax, 3
je 0x1017e65
dec eax
jne 0x1017f12
test byte [esi + 0xd], 0x80
jne 0x1017f12
xor eax, eax
mov ax, word [esi + 0xe]
push eax
call edi
push dword [esi + 0x10]
mov word [esi + 0xe], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [esi + 0x10], eax
jmp 0x1017f12
test byte [esi + 0xd], 0x80
jne 0x1017f12
xor eax, eax
mov ax, word [esi + 0xe]
push eax
call edi
push dword [esi + 0x1c]
mov edi, dword [sym.imp.WS2_32.dll_htonl]
mov word [esi + 0xe], ax
mov eax, dword [esi + 0x14]
bswap eax
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0x10]
bswap eax
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x18]
bswap eax
mov dword [esi + 0x18], eax
call edi
push dword [esi + 0x20]
mov dword [esi + 0x1c], eax
call edi
mov dword [esi + 0x20], eax
jmp 0x1017f12
test byte [esi + 0xd], 0x80
jne 0x1017f12
test byte [esi + 0x25], 0x80
jne 0x1017f12
xor eax, eax
mov ax, word [esi + 0xe]
push ebx
push eax
call edi
push dword [esi + 0x1c]
mov ebx, dword [sym.imp.WS2_32.dll_htonl]
mov word [esi + 0xe], ax
mov eax, dword [esi + 0x14]
bswap eax
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0x10]
bswap eax
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x18]
bswap eax
mov dword [esi + 0x18], eax
call ebx
push dword [esi + 0x20]
mov dword [esi + 0x1c], eax
call ebx
mov dword [esi + 0x20], eax
xor eax, eax
mov ax, word [esi + 0x26]
push eax
call edi
push dword [esi + 0x2c]
mov word [esi + 0x26], ax
mov eax, dword [esi + 0x28]
bswap eax
mov dword [esi + 0x28], eax
call ebx
mov dword [esi + 0x2c], eax
pop ebx
pop edi
pop esi
ret 4
Function at 0x1017f17
Capabilities:
Enumerate pe sections

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x1017fe4
cmp byte [esi + 3], 2
jne 0x1017fe4
movzx edx, word [esi]
xor eax, eax
mov ax, word [esi + 6]
movzx ecx, ax
lea ecx, [ecx*4 + 8]
cmp ecx, edx
jne 0x1017fe4
push edi
mov edi, dword [sym.imp.WS2_32.dll_htons]
push eax
call edi
test byte [esi + 4], 0xf0
mov word [esi + 6], ax
jne 0x1017fe3
xor eax, eax
mov ax, word [esi + 0xa]
push eax
call edi
mov word [esi + 0xa], ax
mov al, byte [esi + 8]
test al, al
jbe 0x1017fe3
cmp al, 2
jbe 0x1017fa2
cmp al, 5
je 0x1017fa2
cmp al, 6
jne 0x1017fe3
test byte [esi + 0xd], 0x80
jne 0x1017fe3
xor eax, eax
mov ax, word [esi + 0xe]
push eax
call edi
push dword [esi + 0x10]
mov word [esi + 0xe], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [esi + 0x10], eax
jmp 0x1017fe3
test byte [esi + 0xd], 0x80
jne 0x1017fe3
xor eax, eax
mov ax, word [esi + 0xe]
push eax
call edi
push dword [esi + 0x1c]
mov edi, dword [sym.imp.WS2_32.dll_htonl]
mov word [esi + 0xe], ax
mov eax, dword [esi + 0x14]
bswap eax
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0x10]
bswap eax
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x18]
bswap eax
mov dword [esi + 0x18], eax
call edi
push dword [esi + 0x20]
mov dword [esi + 0x1c], eax
call edi
mov dword [esi + 0x20], eax
pop edi
pop esi
ret 4

Function at 0x1017fe8
Capabilities:
Enumerate pe sections

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x10180ad
cmp byte [esi + 3], 2
jne 0x10180ad
xor eax, eax
mov ax, word [esi + 6]
push edi
mov edi, dword [sym.imp.WS2_32.dll_ntohs]
push eax
call edi
movzx ecx, word [esi]
mov word [esi + 6], ax
movzx eax, ax
lea eax, [eax*4 + 8]
cmp eax, ecx
jne 0x10180ac
test byte [esi + 4], 0xf0
jne 0x10180ac
xor eax, eax
mov ax, word [esi + 0xa]
push eax
call edi
mov word [esi + 0xa], ax
movzx eax, byte [esi + 8]
dec eax
je 0x101806b
sub eax, 4
je 0x101806b
dec eax
jne 0x10180ac
test byte [esi + 0xd], 0x80
jne 0x10180ac
xor eax, eax
mov ax, word [esi + 0xe]
push eax
call edi
push dword [esi + 0x10]
mov word [esi + 0xe], ax
call dword [sym.imp.WS2_32.dll_ntohl]
mov dword [esi + 0x10], eax
jmp 0x10180ac
test byte [esi + 0xd], 0x80
jne 0x10180ac
xor eax, eax
mov ax, word [esi + 0xe]
push eax
call edi
push dword [esi + 0x1c]
mov edi, dword [sym.imp.WS2_32.dll_ntohl]
mov word [esi + 0xe], ax
mov eax, dword [esi + 0x14]
bswap eax
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0x10]
bswap eax
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x18]
bswap eax
mov dword [esi + 0x18], eax
call edi
push dword [esi + 0x20]
mov dword [esi + 0x1c], eax
call edi
mov dword [esi + 0x20], eax
pop edi
pop esi
ret 4
Function at 0x1019175
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1042bc4]
xor eax, dword [ebp + 4]
cmp dword [ebp + 0xc], 0x10
mov dword [ebp - 4], eax
jge 0x10191b5
push dword [ebp + 8]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.msvcrt.dll_wcscpy]
lea eax, [ebp - 0x210]
push 0x5c
push eax
call dword [sym.imp.msvcrt.dll_wcsrchr]
add esp, 0x10
test eax, eax
jne 0x10191ba
push 0x7b
pop eax
jmp 0x101920d
and word [eax], 0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push edi
push 0
lea eax, [ebp - 0x210]
push eax
call esi
test eax, eax
je 0x10191d9
xor eax, eax
jmp 0x101920b
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
cmp eax, 3
jne 0x101920b
mov eax, dword [ebp + 0xc]
inc eax
push eax
lea eax, [ebp - 0x210]
push eax
call fcn.01019175
test eax, eax
jne 0x101920b
push eax
lea eax, [ebp - 0x210]
push eax
call esi
test eax, eax
jne 0x10191d5
call edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, dword [ebp + 4]
call fcn.0101ed84
leave
ret 8

Function at 0x1019277
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor esi, esi
push edi
xor eax, eax
lea edi, [ebp - 4]
mov dword [ebp - 8], esi
stosd dword es:[edi], eax
lea edi, [ebp - 0xc]
mov dword [ebp - 0x10], esi
stosd dword es:[edi], eax
mov edi, dword [ebp + 8]
mov dword [edi], esi
mov dword [ebx], esi
cmp dword [0x1022700], esi
mov dword [ebp + 8], esi
jle 0x1019309
push dword [ebp + 8]
call fcn.0101921c
lea ecx, [ebp - 0x34]
push ecx
push esi
push eax
mov dword [ebp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
je 0x101932f
cmp dword [ebp + 8], esi
mov eax, dword [ebp - 0x20]
je 0x10192e8
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CompareFileTime]
test eax, eax
jl 0x1019357
mov eax, dword [ebp - 0x20]
inc dword [ebp + 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x18]
mov dword [ebx], eax
mov eax, dword [ebp - 0x14]
mov dword [edi], eax
mov eax, dword [ebp + 8]
cmp eax, dword [0x1022700]
jl 0x10192a7
push esi
call fcn.0101921c
lea ecx, [ebp - 0x34]
push ecx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
jne 0x1019363
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x101935d
or eax, 0xffffffff
jmp 0x101936f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
jne 0x1019349
push esi
push dword [ebp + 0xc]
call fcn.01019175
neg eax
sbb eax, eax
jmp 0x101936f
cmp eax, 2
jne 0x101932a
mov eax, dword [ebp + 8]
cmp eax, esi
je 0x101936d
jmp 0x101935a
mov eax, dword [ebp + 8]
dec eax
jmp 0x101936f
mov dword [edi], esi
mov dword [ebx], esi
jmp 0x101936d
mov eax, dword [ebp - 0x18]
mov dword [ebx], eax
mov eax, dword [ebp - 0x14]
mov dword [edi], eax
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x101b90f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 8], 0
jne 0x101b920
xor eax, eax
jmp 0x101b9f7
push ebx
push esi
push edi
push 0x104
push 0x1023128
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edi, eax
test edi, edi
jne 0x101b94f
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x101b948
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
xor eax, eax
jmp 0x101b9f4
push dword [ebp + 8]
mov esi, dword [sym.imp.msvcrt.dll_wcslen]
call esi
mov ebx, 0x103
sub ebx, eax
mov dword [esp], 0x100130c
call esi
sub ebx, eax
cmp edi, ebx
pop ecx
jb 0x101b980
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x101b948
mov dword [eax], 8
jmp 0x101b948
mov ebx, 0x100130c
push ebx
call esi
push eax
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.msvcrt.dll_wcsncat]
lea eax, [edi*2 + 0x1023128]
push eax
call ebx
push dword [ebp + 8]
add edi, dword [ebp - 4]
call esi
mov esi, eax
push esi
push dword [ebp + 8]
lea eax, [edi*2 + 0x1023128]
push eax
call ebx
add esp, 0x20
lea eax, [esi + edi]
xor esi, esi
push esi
push esi
push 0x1023128
mov word [eax*2 + 0x1023128], si
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
cmp edi, esi
jne 0x101b9e9
mov ebx, dword [ebp + 0xc]
cmp ebx, esi
je 0x101b9f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx], eax
jmp 0x101b9f2
mov eax, dword [ebp + 0xc]
cmp eax, esi
je 0x101b9f2
mov dword [eax], esi
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x101d030
Capabilities:
Create thread

Disassembly:
push ecx
lea eax, [esp]
push eax
push 0
push 0
push fcn.0100de8f
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [0x1023788], eax
jne 0x101d05b
add esp, 4
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
pop ecx
ret

Function at 0x101d2b7
Capabilities:
Create thread

Disassembly:
push ecx
lea eax, [esp]
push eax
xor eax, eax
push eax
push eax
push 0x101d21e
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x101d2db
add esp, 4
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
pop ecx
ret
Function at 0x1049ba6
Capabilities:
Encode data using xor

Disassembly:
ret
lea ecx, [ebx + 7]
push 0xffffffffffffffff
push dword [ecx + 0x35]
cmp al, 0xe2
lea esi, [ecx - 7]
xchg ah, ah
cmc
pop edx
add ecx, dword [edx + ebx + 0x78]
add esi, dword [ecx + 0x19]
nop
pop edx
inc edi
lodsd eax, dword [esi]
sub al, 0
inc edx
nop
cmp dword [ecx + 0x11], edx
mov edi, edi
nop
cld
lea edi, [eax + ebx + 5]
je 0x1049b7a
nop
test ah, ah
cld
jmp 0x1049de4
xor eax, eax
mov ecx, ecx
imul eax, eax, 0xf
push eax
movzx eax, byte [edi - 5]
neg eax
sub edi, 0xfffffff1
nop
xor edi, 0
add dword [esp], eax
test ebx, ecx
lea edi, [edi - 0xe]
cmp byte [edi - 5], 0xa
pop eax
nop
ja 0x1049de8
or edi, edi
or al, 0
cld
mov eax, 0x88a9af6
add ah, bl
sub ah, bl
xor dword [esp - 4], eax
and bl, bl
mov eax, dword [esp + 4]
xor dword [esp - 4], eax
cld
mov ah, ah
nop
mov ebp, ebp
jne 0x1049bc1
sub ecx, 0xffffffed
add esp, 8
not eax
xchg al, al
push dword [ecx + 2]
adc eax, 0xffffffb4
sbb eax, 0xffffffc1
pop edi
add edx, edx
cmp eax, ecx
add edi, ebx
not al
add edx, ebx
mov esi, dword [ecx + 0xa]
mov ax, word [edx + esi]
cwde
inc ecx
push dword [edi + eax*4]
add dword [esp], ebx
pop esi
mov eax, dword [esp - 8]
jmp eax
Function at 0x403100
Capabilities:
Get disk information

Disassembly:
sub esp, 0x83c
mov eax, dword [esp + 0x840]
mov ecx, dword [eax]
mov edx, dword [0x430f5c]
push ebx
push ebp
push esi
mov esi, dword [eax + 4]
mov eax, dword [0x430f58]
mov dword [esp + 0x40], eax
push edi
lea eax, [esp + 0x10]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0x3c], 0x9e3779b9
mov dword [esp + 0x34], edx
call fcn.004030d0
mov eax, dword [0x430f60]
mov edx, dword [0x430f64]
add dword [esp + 0x10], 0x23f
mov edi, dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov ebp, dword [sym.imp.KERNEL32.dll_CreateHardLinkW]
mov dword [esp + 0x40], eax
mov dword [esp + 0x38], edx
mov dword [esp + 0x2c], 0x20
jmp 0x403180
mov dword [esp + 0x20], 2
add dword [esp + 0x20], 3
mov eax, dword [0x815d94]
shl ecx, 4
add ecx, dword [esp + 0x40]
mov dword [esp + 0x14], ecx
cmp eax, 0xfa9
jne 0x4031b0
mov dword [0x815d90], 0xedeb2e40
jmp 0x4031c1
cmp eax, 0x3eb
jne 0x4031c1
mov dword [0x812c98], 0
mov eax, dword [esp + 0x28]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x10]
add dword [esp + 0x24], eax
mov eax, dword [esp + 0x28]
shr eax, 5
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x38]
lea eax, [esp + 0x18]
mov dword [0x815d8c], 0xf4ea3dee
call fcn.004030e0
mov eax, dword [esp + 0x24]
xor dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
xor dword [esp + 0x18], eax
cmp dword [0x815d94], 0x213
jne 0x40324a
push 0
push 0
call edi
lea ecx, [esp + 0x4c]
push ecx
push 0
call ebx
push 0
push 0x402c40
push 0x402ca4
call ebp
lea edx, [esp + 0x48]
push edx
push 0x402cb8
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeA]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ChangeTimerQueueTimer]
sub esi, dword [esp + 0x18]
lea ecx, [esp + 0x14]
mov eax, esi
mov dword [esp + 0x30], esi
call fcn.004030c0
mov eax, dword [esp + 0x44]
add dword [esp + 0x14], eax
mov dword [esp + 0x1c], 0
mov eax, dword [esp + 0x10]
add dword [esp + 0x1c], eax
mov eax, dword [esp + 0x30]
nop
add dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x24], eax
mov ecx, esi
shr ecx, 5
add ecx, dword [esp + 0x34]
mov dword [esp + 0x18], ecx
mov eax, dword [esp + 0x24]
xor dword [esp + 0x14], eax
cmp dword [0x815d94], 0x121
jne 0x4032b6
push 0
push 0
lea edx, [esp + 0x54]
push edx
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesA]
mov ecx, dword [esp + 0x14]
xor ecx, dword [esp + 0x18]
lea eax, [esp + 0x28]
mov dword [esp + 0x14], ecx
call fcn.004030f0
mov eax, dword [esp + 0x3c]
sub dword [esp + 0x10], eax
sub dword [esp + 0x2c], 1
mov ecx, dword [esp + 0x28]
jne 0x403180
mov eax, dword [esp + 0x850]
pop edi
mov dword [eax + 4], esi
pop esi
pop ebp
mov dword [eax], ecx
pop ebx
add esp, 0x83c
ret 4
Function at 0x409f30
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x430bc0]
jne 0x409f3a
repz ret
jmp fcn.0040dfab

Function at 0x40d804
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.00409290
and dword [ebp - 4], 0
cmp dword [0x432d30], 0
mov ebx, eax
jne 0x40d8b5
push 0x401b28
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40d966
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401b1c
push edi
call esi
test eax, eax
je 0x40d966
push eax
call fcn.0040921e
mov dword [esp], 0x401b0c
push edi
mov dword [0x432d30], eax
call esi
push eax
call fcn.0040921e
mov dword [esp], 0x401af8
push edi
mov dword [0x432d34], eax
call esi
push eax
call fcn.0040921e
mov dword [esp], 0x401adc
push edi
mov dword [0x432d38], eax
call esi
push eax
call fcn.0040921e
pop ecx
mov dword [0x432d40], eax
test eax, eax
je 0x40d8b5
push 0x401ac4
push edi
call esi
push eax
call fcn.0040921e
pop ecx
mov dword [0x432d3c], eax
mov eax, dword [0x432d3c]
cmp eax, ebx
je 0x40d90d
cmp dword [0x432d40], ebx
je 0x40d90d
push eax
call fcn.00409299
push dword [0x432d40]
mov esi, eax
call fcn.00409299
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40d90d
test edi, edi
je 0x40d90d
call esi
test eax, eax
je 0x40d904
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40d904
test byte [ebp - 0xc], 1
jne 0x40d90d
or dword [ebp + 0x10], 0x200000
jmp 0x40d946
mov eax, dword [0x432d34]
cmp eax, ebx
je 0x40d946
push eax
call fcn.00409299
pop ecx
test eax, eax
je 0x40d946
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40d946
mov eax, dword [0x432d38]
cmp eax, ebx
je 0x40d946
push eax
call fcn.00409299
pop ecx
test eax, eax
je 0x40d946
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x432d30]
call fcn.00409299
pop ecx
test eax, eax
je 0x40d966
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40d968
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret