joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41c470
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push 0xffffffffffffffff
push esi
mov esi, esp
xor dword [esp - 0x43], esi
xor dword [esp - 0x45], esi
and dword [esi + 4], eax
pop esi
push 0
ja 0x41c3b9
add ebx, 0
push ecx
call 0x41c3ce
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
add esp, 8
xor dword [esp], ebx
sub esp, 0x6b
mov dword [esp + 0x67], edx
add esp, 0x67
push ecx
push 0
xor dword [esp - 0x56], edx
xor edi, 0
add dword [esp], edi
push esi
mov ebx, 0x6d3c5040
sub ebx, dword [0x6d3e487f]
mov dword [ebp - 8], ebx
xchg esi, eax
push 0x6d3e486f
call fcn.00417e98
xchg esi, eax
add esi, ebx
mov edx, dword [ebp + 8]
sub edx, ebx
call fcn.004173a6
mov edi, eax
mov eax, dword [esi + 8]
xor dword [esp - 0x69], edx
xor ebx, 0
xor eax, edi
cmp edx, eax
jb 0x41c52c
mov eax, dword [esi + 0xc]
xor eax, edi
cmp edx, eax
ja 0x41c52c
mov ecx, dword [esi + 0x10]
sub dword [esp - 0x34], ebx
xor ecx, edi
mov edx, dword [esi + 0x14]
xor edx, edi
shl edx, 2
add edx, 0x18
mov eax, dword [esi]
xor eax, edi
cmp eax, 1
je 0x41c4e3
mov eax, 1
lock xchg dword [0x6d3e487b], eax
push 0x3dd1fc71
call 0x41c470
push esi
add esp, 8
cmp eax, 0
jne 0x41c459
push edx
mov eax, edi
xor byte [esi + edx], al
inc edx
dec ecx
jne 0x41c47f
pop edx
mov eax, dword [esi + 0x14]
xor eax, edi
js 0x41c494
cmp ecx, edx
cmp eax, 0
je 0x41c4b9
mov dword [ebp - 4], eax
lea ecx, [esi + 0x18]
mov eax, dword [esi + ecx]
xor eax, edi
add eax, edx
add dword [esi + eax], ebx
add ecx, 4
dec dword [ebp - 4]
jne 0x41c4a3
mov eax, 1
mov dword [esp - 0x1a], eax
push 0x8ae1b7eb
call fcn.0041c4d2
dec eax
loope 0x41c4d5
invalid
xor eax, edi
mov dword [esi], eax
mov dword [0x6d3e487b], 0
add edx, esi
mov dword [ebp + 4], edx
xchg dword [esp], esi
push ecx
lea ecx, [edi - 0x72d1f741]
mov ecx, esp
mov dword [ecx - 0x15], ebx
pop ecx
push esi
xor esi, esi
mov esi, esp
and dword [esi - 0x1d], ecx
pop esi
mov dword [esp], esi
jb 0x41c509
xor edx, 0
add esp, 4
pop edi
pop ecx
pop edx
pop ebx
pop eax
leave
jmp 0x41c51e
jmp 0x41c529
ret 4
mov eax, dword [esi + 4]
xor eax, edi
add esi, eax
jmp 0x41c417

Function at 0x423591
Capabilities:
Access peb ldr_data

Disassembly:
add esp, 8
and dword [esp], ebx
push ecx
push edx
push edi
push esi
or edi, 0xffffffff
not edi
add edi, dword [ebp + 8]
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + 0xc]
push ecx
xor edx, edx
mov ecx, dword [ecx]
cmp ecx, dword [esp]
je 0x423867
push ebp
push 0xffffffffffffffff
sub esp, 0x32
mov dword [esp + 0x2e], 0x6d3d14f3
add esp, 0x2e
sub esp, 4
mov dword [esp], 0x6d3c84b9
push 0xffffffffffffffff
call fcn.0041a791
xchg edx, eax
and eax, 0
add eax, 0x75d46dc4
push ecx
and ecx, 0xcfb6d7ec
mov ecx, esp
mov dword [ecx - 0x54], esi
pop ecx
ja 0x4235fb
and eax, eax
xchg edx, eax
mov edx, dword [ecx + edx - 0x75d46dac]
call fcn.00423613
mov byte [0xee69f033], al
invalid
mov eax, ecx
pop esi
mov edi, dword [esp]
add esp, 4
pop edx
xor ecx, ecx
add ecx, 0xffffffff
and ecx, dword [esp]
xor ecx, 0
add esp, 4
pop ebx
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
jno 0x42385b
xor eax, 0
ret 4
xor ecx, ecx
jmp 0x42382f
Function at 0x433061
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x433083
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x433083
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x433083
ret
cmp word [ebx + 4], 0x14c
jne 0x433083
test word [ebx + 0x16], 2
je 0x433083
test word [ebx + 0x16], 0x100
je 0x433083
cmp word [ebx + 0x18], 0x10b
jne 0x433083
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x433083
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x43310f
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x4330a3
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.00419fee
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x433083
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8

Function at 0x43310f
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push ecx
lea esp, [esp - 0x10]
mov dword [esp + 0xc], edx
lea esp, [esp + 0xc]
sub esp, 4
mov dword [esp], 0x8b92e34e
mov dword [esp], edi
push esi
mov eax, dword [ebp + 8]
and ax, 0xf001
dec eax
cmp word [eax], 0x5a4d
jne 0x433083
mov ebx, dword [eax + 0x3c]
cmp ebx, 0xf08
ja 0x433083
add ebx, eax
cmp dword [ebx], 0x4550
jne 0x433083
ret
cmp word [ebx + 4], 0x14c
jne 0x433083
test word [ebx + 0x16], 2
je 0x433083
test word [ebx + 0x16], 0x100
je 0x433083
cmp word [ebx + 0x18], 0x10b
jne 0x433083
mov edx, dword [ebx + 0x78]
cmp edx, 0
je 0x433083
lea edx, [eax + edx]
mov edx, dword [edx + 0xc]
push 0xe1641d81
call 0x43310f
adc al, 0xbd
mov dl, 3
cmp byte [ecx + 0x75ac5ffe], 0xa
jnp 0x4330a3
int1
salc
push edi
inc esp
add esp, 8
lea edx, [edx + eax]
mov ebx, eax
push edx
call fcn.00419fee
xchg ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x433083
sub esp, 0x3e
mov esi, dword [esp + 0x3e]
add esp, 0x42
pop edi
mov edx, dword [esp]
add esp, 4
pop ecx
pop ebx
leave
ret 8
Function at 0x4331c6
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x43321f
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x4331c6
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x4331d5
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x838e78
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x433226
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.0041a09c
cmp eax, dword [ebp + 0xc]
pop eax
je 0x4332c5
add edi, 4
add eax, 2
dec ecx
jne 0x43320b
call 0x433272
loope 0x433268
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x4332c2
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x4332d3
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x433286
cmp eax, ecx
ja 0x433286
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x433310
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x433306
lea edi, [ebp - 0x100]
push pe_nt_image_headers32
push edi
push esi
call fcn.0041a57b
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x4331d5
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0
push ecx
xor ecx, ecx
jne 0x43321f
mov ecx, esp
xor dword [ecx - 0x55], edi
pop ecx
call 0x4331c6
dec esp
adc eax, 0x91b81b2a
div bh
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
call 0x4331d5
cld
test edx, ebx
or ebp, eax
add dword [esi - 0x7cc26b19], esp
les ecx, [eax]
or dword [esp], ebp
mov ebp, esp
sub esp, 0x100
push ebx
push edx
push ecx
push edi
push esi
mov ebx, dword [ebp + 8]
mov edx, ebx
add ebx, dword [ebx + 0x3c]
mov ebx, dword [ebx + 0x78]
lea ebx, [ebx + edx]
mov eax, dword [ebx + 0x24]
add eax, edx
xor edi, edi
jne 0x838e78
or edi, dword [ebx + 0x20]
add edi, edx
mov ecx, dword [ebx + 0x18]
mov esi, dword [edi]
add esi, edx
push 0
push ecx
mov ecx, esp
push 0x55d34c8a
call 0x433226
sti
sbb byte [ecx + 0x56], dh
xlatb
les ebp, [ebp + 0x8c483e2]
xchg dword [ecx + 4], eax
xor eax, edx
shl eax, 3
xor ecx, 0
shl eax, 0x1d
add eax, dword [ecx + 4]
pop ecx
push esi
call fcn.0041a09c
cmp eax, dword [ebp + 0xc]
pop eax
je 0x4332c5
add edi, 4
add eax, 2
dec ecx
jne 0x43320b
call 0x433272
loope 0x433268
invalid
sbb esi, ebx
mov edi, 0xdbead58c
js 0x4332c2
mov dh, 0xe8
or byte [eax], al
add byte [eax], al
mov bh, 0x24
lea eax, [edx + 0x53]
nop
mov dword [esi + 0x2308c483], ecx
sal byte [ecx], 0xc0
fsub st(7)
int 0xf
mov bh, 0
movzx eax, word [eax]
jmp 0x4332d3
shl eax, 2
add eax, dword [ebx + 0x1c]
add eax, edx
mov eax, dword [eax]
add eax, edx
mov ebx, edx
add ebx, dword [edx + 0x3c]
mov ecx, dword [ebx + 0x7c]
mov ebx, dword [ebx + 0x78]
add ebx, edx
add ecx, ebx
cmp eax, ebx
jb 0x433286
cmp eax, ecx
ja 0x433286
mov esi, eax
lea edi, [ebp - 0x100]
mov al, byte [esi]
mov byte [edi], al
inc edi
inc esi
js 0x433310
or ecx, ecx
xor dword [esp - 0x6b], eax
cmp al, 0x2e
jne 0x433306
lea edi, [ebp - 0x100]
push pe_nt_image_headers32
push edi
push esi
call fcn.0041a57b
lea esp, [esp - 0x60]
mov dword [esp + 0x5c], edi
lea esp, [esp + 0x5c]
Function at 0x24804a90
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x24804a9f
pop dword [ebp - 0x24]
mov eax, 0x422f933f
sub eax, 0x1daf48a0
sub dword [ebp - 0x24], eax
push 0x40
push 0x1000
push 0x3a9a8
push 0
mov eax, 0xaaec1543
add eax, 0x79952ddd
add eax, dword [ebp - 0x24]
call dword [eax]
mov ecx, 0x31eee6e
add ecx, 0xfce168c9
mov edi, eax
mov edx, 0x76fe6264
sub edx, 0x527ba464
add edx, dword [ebp - 0x24]
mov esi, 0x388bead4
add esi, 0x48dceacd
xor dword [ebp - 0x18], 0x9fc48b7d
mov ebx, dword [edx]
sub dword [ebp - 0x1c], esi
sub ebx, esi
sub dword [ebp - 0xc], 0xdc1b50c6
mov dword [edi], ebx
sub dword [ebp - 8], 0x8233df5d
add edi, 4
add edx, 0x90279450
sub edx, 0x9027944c
loop 0x24804afe
add eax, 0x14faf
xor ebx, ebx
add ebx, eax
add eax, 0xd5a8ef37
sub eax, 0xd5a8ef32
mov ecx, 0x4f0ffc67
sub ecx, 0x2a90fc67
add ecx, dword [ebp - 0x24]
call ebx
leave
ret

Function at 0x24804da0
Capabilities:
Allocate thread local storage
Set thread local storage value

Disassembly:
push esi
call fcn.24805660
call dword [sym.imp.kernel32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x2480e480], eax
je 0x24804df8
push 0x74
push 1
call fcn.24807430
mov esi, eax
add esp, 8
test esi, esi
je 0x24804df8
mov eax, dword [0x2480e480]
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
test eax, eax
je 0x24804df8
push esi
call fcn.24804e30
add esp, 4
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
mov dword [esi], eax
mov dword [esi + 4], 0xffffffff
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret

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

Disassembly:
push esi
push edi
call dword [sym.imp.kernel32.dll_GetLastError]
mov edi, eax
mov eax, dword [0x2480e480]
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x24804ebe
push 0x74
push 1
call fcn.24807430
mov esi, eax
add esp, 8
test esi, esi
je 0x24804eb4
mov ecx, dword [0x2480e480]
push esi
push ecx
call dword [sym.imp.kernel32.dll_TlsSetValue]
test eax, eax
je 0x24804eb4
push esi
call fcn.24804e30
add esp, 4
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
push edi
mov dword [esi], eax
mov dword [esi + 4], 0xffffffff
call dword [sym.imp.kernel32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
ret
push 0x10
call fcn.248041a0
add esp, 4
push edi
call dword [sym.imp.kernel32.dll_SetLastError]
mov eax, esi
pop edi
pop esi
ret
Function at 0x40c8e0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xa000]
push edi
or ebp, 0xffffffff
jmp 0x40c902
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x40c909
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x40c8f8
mov eax, 1
add ebx, ebx
jne 0x40c91b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x40c910
jne 0x40c92c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40c910
xor ecx, ecx
sub eax, 3
jb 0x40c940
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x40c9b2
mov ebp, eax
add ebx, ebx
jne 0x40c94b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x40c958
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40c97c
inc ecx
add ebx, ebx
jne 0x40c968
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x40c95d
jne 0x40c979
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x40c95d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40c99c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40c98d
jmp 0x40c8fe
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40c99c
add edi, ecx
jmp 0x40c8fe
pop esi
mov edi, esi
mov ecx, 0x145
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40c9ba
cmp byte [edi], 1
jne 0x40c9ba
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x40c9bf
lea edi, [esi + 0xa000]
mov eax, dword [edi]
or eax, eax
je 0x40ca2e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xca10]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xca60]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40c9ec
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xca64]
or eax, eax
je 0x40ca28
mov dword [ebx], eax
add ebx, 4
jmp 0x40ca09
call dword [esi + 0xca74]
mov ebp, dword [esi + 0xca68]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40ca62
sub esp, 0xffffff80
jmp 0x4032cc
Function at 0x4155ef
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0xc], 0
je 0x415634
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
mov eax, dword [ecx + 0xc]
sub eax, dword [edx + 0x14]
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0xc], 0
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x10], 0
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x20], 0
je 0x4156f0
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0xc]
call dword [edx + 0x18]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jle 0x4156f0
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x20]
mov edx, dword [ecx + 0x10]
push edx
call dword [sym.imp.MSVCRT.dll__get_osfhandle]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.DLL_FlushFileBuffers]
push 0
mov eax, dword [ebp - 4]
push eax
push 0
push 2
push 0
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x20]
mov eax, dword [edx + 0x10]
push eax
call dword [sym.imp.MSVCRT.dll__get_osfhandle]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileMappingA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4156f0
mov ecx, dword [ebp - 4]
push ecx
push 0
push 0
push 4
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
mov ecx, dword [ebp - 0xc]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp - 0xc]
cmp dword [edx + 0xc], 0
je 0x4156e6
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp - 0xc]
add ecx, dword [edx + 0x14]
mov eax, dword [ebp - 0xc]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
sub edx, dword [ecx + 0x14]
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x10], edx
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov esp, ebp
pop ebp
ret
Function at 0x44a720
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x5f0
or ecx, 0xffffffff
xor eax, eax
push ebx
mov ebx, dword [esp + 0x5fc]
push esi
push edi
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea esi, [ecx + ebx - 1]
cmp esi, ebx
jbe 0x44a776
cmp byte [esi], 0x2f
je 0x44a750
dec esi
cmp esi, ebx
ja 0x44a744
jmp 0x44a774
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
mov eax, esi
add ecx, 0xfffffffe
sub eax, ebx
cmp eax, ecx
jne 0x44a773
push str.last_character_in_lib_cannot_be__
call fcn.0047c670
add esp, 4
inc esi
cmp esi, ebx
jne 0x44a785
push str.no___character_found_in_lib
call fcn.0047c670
add esp, 4
lea ecx, [esp + 0x3f4]
push 0x104
push ecx
push str.TCL_LIBRARY
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
test eax, eax
jne 0x44a7c2
lea edx, [esp + 0xe8]
push 0x104
push edx
push 0x52b1a8
mov byte [esp + 0xf4], al
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableA]
jmp 0x44a7da
lea eax, [esp + 0xe8]
lea ecx, [esp + 0x3f4]
push eax
push ecx
call fcn.0044a9c0
add esp, 8
mov al, byte [esp + 0xe8]
test al, al
je 0x44a8bb
lea edx, [esp + 0xe8]
push 0xffffffffffffffff
push edx
call fcn.00450ff0
mov edi, dword [esp + 0x608]
push eax
push edi
push 0
call fcn.0044b1e0
lea eax, [esp + 0xfc]
push eax
call fcn.004aba70
lea ecx, [esp + 0x24]
lea edx, [esp + 0x28]
push ecx
lea eax, [esp + 0x104]
push edx
push eax
call fcn.0046a390
mov eax, dword [esp + 0x34]
add esp, 0x24
test eax, eax
jle 0x44a891
mov ecx, dword [esp + 0xc]
mov edx, dword [ecx + eax*4 - 4]
push edx
push esi
call dword [sym.imp.KERNEL32.DLL_lstrcmpiA]
test eax, eax
je 0x44a891
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
mov dword [eax + ecx*4 - 4], esi
call fcn.0046e130
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
push ecx
push edx
call fcn.0046a9f0
mov ecx, dword [esp + 0x28]
push ecx
push eax
call fcn.00450ff0
lea edx, [esp + 0x2c]
mov esi, eax
push edx
call fcn.0046e340
add esp, 0x1c
jmp 0x44a8a5
lea eax, [esp + 0xe8]
push 0xffffffffffffffff
push eax
call fcn.00450ff0
add esp, 8
mov esi, eax
push esi
push edi
push 0
call fcn.0044b1e0
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00450140
add esp, 0x10
pop edi
pop esi
pop ebx
add esp, 0x5f0
ret
Function at 0x44aac0
Capabilities:
Get session user name
Get system information on windows

Disassembly:
sub esp, 0x2c4
push esi
push 1
push 0x52b100
mov dword [esp + 0xc], 0x101
call fcn.0046efa0
mov esi, dword [esp + 0x2d4]
add esp, 4
push eax
push 0
push str.tclDefaultLibrary
push esi
call fcn.00446540
add esp, 0x14
lea eax, [esp + 0x130]
mov dword [esp + 0x130], 0x94
push eax
call dword [sym.imp.KERNEL32.DLL_GetVersionExA]
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.DLL_GetSystemInfo]
push 1
push str.windows
push str.platform
push str.tcl_platform
push esi
call fcn.004464d0
mov eax, dword [esp + 0x154]
add esp, 0x14
cmp eax, 4
jae 0x44ab5d
mov edx, dword [eax*4 + 0x52b0c0]
push 1
push edx
push 0x52b270
push str.tcl_platform
push esi
call fcn.004464d0
add esp, 0x14
mov eax, dword [esp + 0x138]
mov ecx, dword [esp + 0x134]
push eax
push ecx
lea edx, [esp + 0x108]
push str._d._d
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x110]
push 1
push eax
push str.osVersion
push str.tcl_platform
push esi
call fcn.004464d0
mov eax, dword [esp + 0x2c]
add esp, 0x24
cmp ax, 0xb
jae 0x44abc9
and eax, 0xffff
push 1
mov ecx, dword [eax*4 + 0x52b0d0]
push ecx
push str.machine
push str.tcl_platform
push esi
call fcn.004464d0
add esp, 0x14
lea edx, [esp + 0x2c]
push edx
call fcn.0046e130
push 1
push str.HOME
push 0x52b248
push esi
call fcn.00446230
add esp, 0x14
test eax, eax
jne 0x44ac67
push 1
push str.HOMEDRIVE
push 0x52b248
push esi
call fcn.00446230
add esp, 0x10
test eax, eax
je 0x44ac15
push 0xffffffffffffffff
push eax
lea eax, [esp + 0x34]
push eax
call fcn.0046e150
add esp, 0xc
push 1
push str.HOMEPATH
push 0x52b248
push esi
call fcn.00446230
add esp, 0x10
test eax, eax
je 0x44ac3e
push 0xffffffffffffffff
lea ecx, [esp + 0x30]
push eax
push ecx
call fcn.0046e150
add esp, 0xc
mov eax, dword [esp + 0x30]
push 1
test eax, eax
jle 0x44ac4f
mov edx, dword [esp + 0x30]
push edx
jmp 0x44ac54
push 0x52b22c
push str.HOME
push 0x52b248
push esi
call fcn.004464d0
add esp, 0x14
lea eax, [esp + 0x2c]
push eax
call fcn.0046e130
lea ecx, [esp + 0x30]
push ecx
push str.USERNAME
call fcn.004a5660
add esp, 0xc
test eax, eax
jne 0x44acb8
lea edx, [esp + 4]
lea eax, [esp + 0x1c4]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
je 0x44acb8
mov edx, dword [esp + 4]
lea ecx, [esp + 0x2c]
push ecx
lea eax, [esp + 0x1c8]
push edx
push eax
call fcn.004abf80
add esp, 0xc
mov ecx, dword [esp + 0x2c]
push 1
push ecx
push str.user
push str.tcl_platform
push esi
call fcn.004464d0
lea edx, [esp + 0x40]
push edx
call fcn.0046e340
add esp, 0x18
pop esi
add esp, 0x2c4
ret
Function at 0x466b20
Capabilities:
Terminate process

Disassembly:
push esi
push 0x5426a8
call fcn.0047c8a0
mov esi, dword [0x5426bc]
push 0x5426a8
call fcn.0047c8f0
add esp, 8
test esi, esi
je 0x466b58
mov eax, dword [esp + 8]
push eax
call esi
push str.AppExitProc_returned_unexpectedly
call fcn.0047c670
add esp, 8
pop esi
ret
call fcn.00466be0
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.MSVCRT.dll_exit]
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x49ac90
Capabilities:
Create thread

Disassembly:
sub esp, 0x2c
push ebx
push ebp
push esi
push edi
push 0x64
call fcn.0044ffd0
add esp, 4
mov esi, eax
call fcn.0049a0b0
mov eax, dword [esp + 0x44]
mov edi, dword [esp + 0x40]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
mov dword [esi + 0x18], eax
mov eax, dword [esp + 0x50]
xor ebx, ebx
mov dword [esi + 0x14], edi
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x20], edx
mov dword [esi + 0x24], eax
mov dword [esi + 0x50], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
call sub.KERNEL32.DLL_GetCurrentThreadId
mov ebp, dword [sym.imp.KERNEL32.DLL_CreateThread]
cmp edi, ebx
mov edi, dword [sym.imp.KERNEL32.DLL_CreateEventA]
mov dword [esi + 0x28], eax
je 0x49ad45
push ebx
push 1
push 1
push ebx
call edi
push ebx
push ebx
push ebx
push ebx
mov dword [esi + 0x38], eax
call edi
push ebx
push ebx
push 1
push ebx
mov dword [esi + 0x44], eax
call edi
lea ecx, [esp + 0x10]
mov dword [esi + 0x48], eax
push ecx
push ebx
push esi
push 0x49ba10
push pe_nt_image_headers32
push ebx
call ebp
push 2
push eax
mov dword [esi + 0x30], eax
call dword [sym.imp.KERNEL32.DLL_SetThreadPriority]
mov eax, dword [esi + 8]
or al, 2
mov dword [esi + 8], eax
jmp 0x49ad48
mov dword [esi + 0x30], ebx
cmp dword [esp + 0x44], ebx
je 0x49ad97
push ebx
push 1
push 1
push ebx
call edi
push ebx
push ebx
push ebx
push ebx
mov dword [esi + 0x34], eax
call edi
push ebx
push ebx
push 1
push ebx
mov dword [esi + 0x3c], eax
call edi
lea edx, [esp + 0x10]
mov dword [esi + 0x40], eax
push edx
push ebx
push esi
push 0x49bb30
push pe_nt_image_headers32
push ebx
call ebp
mov dword [esi + 0x2c], eax
mov eax, dword [esi + 0x30]
push 2
push eax
call dword [sym.imp.KERNEL32.DLL_SetThreadPriority]
mov eax, dword [esi + 8]
or al, 4
mov dword [esi + 8], eax
push esi
lea ecx, [esp + 0x18]
push str.file_lx
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
mov edx, dword [esi + 8]
lea eax, [esp + 0x20]
push edx
push esi
push eax
push 0x534600
call fcn.00456080
push str.auto
push str._translation
push eax
push ebx
mov dword [esi + 4], eax
call fcn.00459f90
mov ecx, dword [esi + 4]
push 0x5347a0
push str._eofchar
push ecx
push ebx
call fcn.00459f90
mov eax, dword [esi + 4]
add esp, 0x3c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret