joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40669d
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x427dcc], 0
push esi
jne 0x4066d4
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4066ae
mov dword [ecx*4 + 0x427dc8], eax
inc ecx
cmp ecx, 0x100
jl 0x4066a9
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406705
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x427dc8]
xor eax, esi
inc ecx
dec edx
jne 0x4066e7
pop edi
not eax
pop esi
ret 0xc

Function at 0x4ca23a
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0x4c9fca
mov ebx, 0x992148a
call fcn.004ca26f
push ebx
pop eax
and eax, eax
sub ebx, eax
xor dword [edi], ecx
and ebx, eax
add ebx, ebx
or eax, ebx
inc edi
sub eax, eax
sub eax, ebx
add eax, ebx
cmp edi, edx
jne fcn.004ca23a
inc eax
mov eax, 0xc6bfffa5
mov ebx, ebx
ret

Function at 0x418180
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x12000]
push edi
or ebp, 0xffffffff
jmp 0x4181a2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4181a9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x418198
mov eax, 1
add ebx, ebx
jne 0x4181bb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4181b0
jne 0x4181cc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4181b0
xor ecx, ecx
sub eax, 3
jb 0x4181e0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x418252
mov ebp, eax
add ebx, ebx
jne 0x4181eb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4181f8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41821c
inc ecx
add ebx, ebx
jne 0x418208
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4181fd
jne 0x418219
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4181fd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41823c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41822d
jmp 0x41819e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41823c
add edi, ecx
jmp 0x41819e
pop esi
mov edi, esi
mov ecx, 0x3b2
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x41825a
cmp byte [edi], 0
jne 0x41825a
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 eax, ebx
loop 0x41825f
lea edi, [esi + 0x16000]
mov eax, dword [edi]
or eax, eax
je 0x4182ce
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x180b0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x18114]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x41828c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x18118]
or eax, eax
je 0x4182c8
mov dword [ebx], eax
add ebx, 4
jmp 0x4182a9
call dword [esi + 0x1811c]
popal
jmp 0x40a630
Function at 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53

Function at 0x409e8c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x409e9b
pop dword [ebp - 0x40]
mov eax, 0xd52402d1
sub eax, 0xd4e36436
sub dword [ebp - 0x40], eax
mov dword [ebp - 0x50], 0x57d7b696
sub dword [ebp - 0x50], 0x985714b
mov dword [ebp - 0x4c], 0xe5b81afd
sub dword [ebp - 0x4c], 0xb384ceb8
mov dword [ebp - 0x48], 0xbc514a1d
sub dword [ebp - 0x48], 0x700505ef
mov dword [ebp - 0x44], 0x5e7fc980
sub dword [ebp - 0x44], 0x5e7fc980
lea eax, [ebp - 0x50]
push eax
mov eax, 0x8f9847ae
add eax, 0x70a888a6
add eax, dword [ebp - 0x40]
call dword [eax]
mov dword [ebp - 0x50], 0x14b2ef48
add dword [ebp - 0x50], 0x5fbf7a0e
mov dword [ebp - 0x4c], 0xe94d6f37
sub dword [ebp - 0x4c], 0xa7e10dc2
mov dword [ebp - 0x48], 0x9f99697c
sub dword [ebp - 0x48], 0x3c29fd10
mov dword [ebp - 0x44], 0x22eb4fef
add dword [ebp - 0x44], 0xdd14b011
lea ebx, [ebp - 0x50]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x40]
call dword [eax]
push 0x40
push 0x1000
push 0x3c7ee
push 0
call eax
mov ecx, 0x5370
xor edi, edi
add edi, eax
mov ebx, 0xcc275ea0
add ebx, 0x341a5160
add ebx, dword [ebp - 0x40]
mov edx, 0x48e431b3
xor dword [ebp - 0x18], ebx
mov esi, dword [ebx]
sub dword [ebp - 0xc], 0x1cb176f
sub esi, edx
xor dword [ebp - 0x30], edi
mov dword [edi], esi
xor dword [ebp - 4], 0x2bf46986
add edi, 4
add ebx, 4
loop 0x409fae
add eax, 0x6b5d6de4
add eax, 0x94a3d2af
mov ebx, eax
add eax, 0xcd79e870
add eax, 0x32861795
mov ecx, 0x400000
add ecx, dword [ebp - 0x40]
call ebx
leave
ret
Function at 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53

Function at 0x406037
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x406046
pop dword [ebp - 0x2c]
mov eax, 0x406046
sub dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], 0xb260f57a
sub dword [ebp - 0x3c], 0x640eb02f
mov dword [ebp - 0x38], 0xd1e2225
sub dword [ebp - 0x38], 0xdaead5e0
mov dword [ebp - 0x34], 0xd578822b
sub dword [ebp - 0x34], 0x892c3dfd
mov dword [ebp - 0x30], 0x6602f39
sub dword [ebp - 0x30], 0x6602f39
lea eax, [ebp - 0x3c]
push eax
mov eax, 0x196e0dfe
sub eax, 0x192d3daa
add eax, dword [ebp - 0x2c]
call dword [eax]
mov dword [ebp - 0x3c], 0xe6991e93
add dword [ebp - 0x3c], 0x8dd94ac3
mov dword [ebp - 0x38], 0x5ae64725
add dword [ebp - 0x38], 0xe6861a50
mov dword [ebp - 0x34], 0xcf4b3d7a
sub dword [ebp - 0x34], 0x6bdbd10e
mov dword [ebp - 0x30], 0x1e5f213d
add dword [ebp - 0x30], 0xe1a0dec3
lea ebx, [ebp - 0x3c]
push ebx
push eax
mov eax, 0x3c03d380
add eax, 0xc43cfccc
add eax, dword [ebp - 0x2c]
call dword [eax]
push 0x40
push 0x1000
push 0x361f7
push 0
call eax
mov ecx, 0x2b955da4
sub ecx, 0x2b952376
mov esi, eax
mov edi, 0x3bc3a523
sub edi, 0x3b81f523
add edi, dword [ebp - 0x2c]
mov ebx, 0x68ae10f2
add ebx, 0x1c555f3e
add dword [ebp - 0x20], eax
mov edx, dword [edi]
xor dword [ebp - 0x24], eax
add edx, ebx
mov dword [ebp - 8], 0x97d3fb89
mov dword [esi], edx
add dword [ebp - 4], edi
add esi, 0x4625340b
add esi, 0xb9dacbf9
add edi, 0xb91727cc
sub edi, 0xb91727c8
loop 0x406163
add eax, 0x835c759f
add eax, 0x7ca465ec
xor ebx, ebx
add ebx, eax
add eax, 0x8a3564da
add eax, 0x75ca9b2b
mov ecx, 0x400000
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x433006
Capabilities:
Encode data using xor

Disassembly:
call 0x43300c
nop
nop
pop eax
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x433030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43301e
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x425bc0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push edi
push esi
cmp dword [0x502b44], 0
jne 0x425bfb
push 0x425d10
call fcn.0043a460
add esp, 4
mov dword [0x502b44], eax
push 0x425d70
call fcn.0043a460
add esp, 4
mov dword [0x502b48], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x502b40], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x502b40], eax
push 0
push dword [0x502b44]
call fcn.0043ac20
add esp, 8
test eax, eax
je 0x425ca9
mov esi, eax
mov edi, dword [esp + 0x14]
jmp 0x425c5f
push 0
push dword [0x502b44]
call fcn.0043b230
add esp, 8
push esi
call fcn.00439350
add esp, 4
push 0
push dword [0x502b44]
call fcn.0043ac20
add esp, 8
mov esi, eax
test eax, eax
je 0x425ca9
push 0
push dword [esi + 4]
push dword [0x502b48]
call fcn.0043b1f0
add esp, 0xc
test eax, eax
je 0x425c30
mov ecx, dword [0x502b40]
mov eax, dword [esi + 8]
mov edx, dword [esi + 0xc]
add edx, 0xfffffff6
sub ecx, edx
mov ebx, eax
sub ebx, edx
cmp ecx, ebx
jbe 0x425cad
push 0
push dword [0x502b44]
call fcn.0043b230
add esp, 8
push dword [esi + 8]
push dword [esi + 4]
call dword [esi]
jmp 0x425c3d
xor eax, eax
jmp 0x425cb1
mov dword [edi], eax
mov al, 1
pop esi
pop edi
pop ebx
ret

Function at 0x428d50
Capabilities:
Enumerate files on windows
Get common file path

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x270
mov edi, dword [esp + 0x284]
mov eax, dword [0x500034]
xor eax, esp
mov dword [esp + 0x26c], eax
lea esi, [esp + 0x25]
push 0x107
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
call fcn.004b19c0
add esp, 4
mov word [esp + eax + 0x25], 0x2a5c
mov byte [esp + eax + 0x27], 0
lea ebx, [esp + 0x12c]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x428dca
mov esi, eax
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileA]
push 0x140
push ebx
call edi
add esp, 8
push ebx
push esi
call ebp
test eax, eax
jne 0x428db0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [esp], eax
mov eax, esp
push 4
push eax
call edi
add esp, 8
lea esi, [esp + 5]
push 0x20
push esi
call fcn.00428c40
add esp, 8
test al, al
je 0x428e03
push 0x20
push esi
call edi
add esp, 8
push 0x20
push esi
call fcn.00465e70
add esp, 8
push edi
call fcn.004345e0
add esp, 4
mov ecx, dword [esp + 0x26c]
xor ecx, esp
call fcn.0049e340
add esp, 0x270
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x428e30
Capabilities:
Get memory capacity

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x54
mov eax, dword [0x500034]
xor eax, esp
mov dword [esp + 0x50], eax
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [esp + 0x2c], eax
lea esi, [esp + 0x2c]
push 4
push esi
push 9
call fcn.004289e0
add esp, 0xc
call dword [sym.imp.USER32.dll_GetCapture]
mov dword [esp + 0x2c], eax
push 4
push esi
push 0xa
call fcn.004289e0
add esp, 0xc
call dword [sym.imp.USER32.dll_GetClipboardOwner]
mov dword [esp + 0x2c], eax
push 4
push esi
push 0xb
call fcn.004289e0
add esp, 0xc
push 0x1cbf
call dword [sym.imp.USER32.dll_GetQueueStatus]
mov dword [esp + 0x28], eax
lea eax, [esp + 0x28]
push 4
push eax
push 0xc
call fcn.004289e0
add esp, 0xc
lea esi, [esp + 0x20]
push esi
call dword [sym.imp.USER32.dll_GetCursorPos]
push 8
push esi
push 0xd
call fcn.004289e0
add esp, 0xc
mov esi, esp
push esi
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
push 0x20
push esi
push 6
call fcn.004289e0
add esp, 0xc
lea ebp, [esp + 0x48]
lea ebx, [esp + 0x40]
lea edi, [esp + 0x38]
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
lea esi, [esp + 0x30]
push ebp
push ebx
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadTimes]
push 0x20
push esi
push 0xe
call fcn.004289e0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push ebp
push ebx
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessTimes]
push 0x20
push esi
push 0xf
call fcn.004289e0
add esp, 0xc
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.0049e340
add esp, 0x54
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x42e5a0
Capabilities:
Get session user name

Disassembly:
push esi
mov esi, dword [esp + 8]
push 0x3a
push esi
call fcn.00437830
add esp, 8
cmp byte [eax], 0
je 0x42e5c0
push eax
call fcn.0043ea00
add esp, 4
pop esi
ret
push 0x3b
push esi
call fcn.00437630
add esp, 8
test al, al
je 0x42e5d5
pop esi
jmp fcn.00467050
xor eax, eax
pop esi
ret
Function at 0x462230
Capabilities:
Read file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, dword [esp + 0x18]
push 0x4e7cda
push dword [eax]
call fcn.004afc5b
add esp, 8
test eax, eax
je 0x4622a6
mov esi, eax
mov ebp, dword [esp + 0x14]
mov dword [ebp + 4], 0
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x4622bd
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
add eax, dword [ebp]
push esi
push ecx
push 1
push eax
call fcn.004afdf3
add esp, 0x10
mov edi, eax
push esi
call fcn.004af6a5
add esp, 4
test eax, eax
jne 0x4622ad
mov eax, dword [ebp + 4]
test edi, edi
je 0x4622b4
add eax, edi
mov dword [ebp + 4], eax
mov ecx, dword [ebp + 8]
cmp ecx, eax
ja 0x462270
jmp 0x4622b7
mov ebx, 2
jmp 0x4622f7
mov ebx, 2
jmp 0x4622ee
mov ecx, dword [ebp + 8]
xor ebx, ebx
cmp eax, ecx
jne 0x4622d1
push esi
call fcn.004afa3a
add esp, 4
xor ebx, ebx
cmp eax, 0xffffffff
setne bl
mov eax, dword [ebp + 4]
mov ecx, dword [ebp]
lea edx, [ebp + 0xc]
mov dword [ebp + 0xc], ecx
mov dword [ebp + 0x14], eax
mov dword [ebp + 0x10], 0
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], edx
push esi
call fcn.004af550
add esp, 4
mov eax, ebx
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4660c0
Capabilities:
Create thread

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 8
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x1c]
mov eax, dword [0x500034]
xor eax, esp
mov dword [esp + 4], eax
push 0
push 0x102c
push 1
call fcn.004392c0
add esp, 0xc
mov esi, eax
mov dword [eax], 0
lea edi, [eax + 4]
mov dword [eax + 4], ebp
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x10], eax
mov dword [esi + 0x1028], ebx
mov byte [esi + 0x16], 0
mov word [esi + 0x14], 0
mov eax, dword [esp + 0x24]
mov dword [esi + 0x18], eax
mov eax, dword [esp + 0x28]
mov dword [esi + 0x1c], eax
cmp dword [0x500060], 0xffffffff
jne 0x466173
mov dword [0x5033d8], 0x5033d8
mov dword [0x5033dc], 0x5033d8
push 0x5033e0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x500060], eax
push 0
push 0x466860
push eax
call fcn.00425d90
add esp, 0xc
mov eax, esp
push eax
push 0
push edi
push 0x4661b0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x466193
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esi + 0x17], 1
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.0049e340
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4663a0
Capabilities:
Create thread

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 8
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x1c]
mov eax, dword [0x500034]
xor eax, esp
mov dword [esp + 4], eax
push 0
push 0x102c
push 1
call fcn.004392c0
add esp, 0xc
mov esi, eax
mov dword [eax], 1
lea edi, [eax + 4]
mov dword [eax + 4], ebp
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], ebx
lea eax, [esi + 0x30]
push eax
call fcn.0043ea40
add esp, 4
mov dword [esi + 0x44], 0
mov eax, dword [esp + 0x20]
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], esi
mov eax, dword [esp + 0x28]
mov dword [esi + 0x1c], eax
cmp dword [0x500060], 0xffffffff
jne 0x466463
mov dword [0x5033d8], 0x5033d8
mov dword [0x5033dc], 0x5033d8
push 0x5033e0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [0x500060], eax
push 0
push 0x466860
push eax
call fcn.00425d90
add esp, 0xc
mov eax, esp
push eax
push 0
push edi
push 0x4664a0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x466483
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.0049e340
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x467050
Capabilities:
Get session user name

Disassembly:
push edi
push esi
sub esp, 8
mov eax, dword [0x500034]
xor eax, esp
mov dword [esp + 4], eax
cmp byte [0x5033fc], 0
je 0x467078
mov ecx, dword [0x5033f8]
test ecx, ecx
jne 0x4670bb
jmp 0x467108
push str.secur32.dll
call fcn.0043baa0
add esp, 4
mov esi, eax
push str.sspicli.dll
call fcn.0043baa0
add esp, 4
test esi, esi
je 0x4670a8
push str.GetUserNameExA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, eax
jmp 0x4670aa
xor ecx, ecx
mov dword [0x5033f8], ecx
mov byte [0x5033fc], 1
test ecx, ecx
je 0x467108
mov dword [esp], 0
mov edi, esp
push edi
push 0
push 8
call ecx
push 0
push 1
push dword [esp + 8]
call fcn.004392c0
add esp, 0xc
mov esi, eax
push edi
push eax
push 8
call dword [0x5033f8]
test al, al
je 0x4670ff
push 0x40
push esi
call fcn.004a1200
add esp, 8
test eax, eax
je 0x467155
mov byte [eax], 0
jmp 0x467155
push esi
call fcn.00439350
add esp, 4
mov dword [esp], 0
mov edi, esp
push edi
push 0
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
je 0x467123
mov eax, dword [esp]
jmp 0x46712f
mov dword [esp], 0x100
mov eax, 0x100
push 0
push 1
push eax
call fcn.004392c0
add esp, 0xc
mov esi, eax
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x467155
push esi
call fcn.00439350
add esp, 4
xor esi, esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.0049e340
mov eax, esi
add esp, 8
pop esi
pop edi
ret

Function at 0x467510
Capabilities:
Get common file path

Disassembly:
push esi
cmp dword [0x503400], 0
jne 0x467570
push dword [0x503404]
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, dword [0x503404]
jb 0x467570
mov esi, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
push 0
push 1
push eax
push 1
push 0x503404
push dword [0x503400]
call fcn.00439360
add esp, 0x18
mov dword [0x503400], eax
push dword [0x503404]
push eax
call esi
cmp eax, dword [0x503404]
jae 0x467540
mov eax, dword [0x503400]
pop esi
ret

Function at 0x4691b0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push edi
push esi
push eax
mov ebx, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
mov eax, dword [edi]
cmp eax, dword [esi]
je 0x4691dd
push 0xa6
push str._home_simon_mem_.build_workdirs_bob_fffbk9my_putty_crypto_mpint.c
push str.x0__nw__x1__nw
call fcn.004adb03
add esp, 0xc
and ebx, 1
neg ebx
mov dword [esp], ebx
cmp dword [edi], 0
je 0x469214
xor eax, eax
nop
nop
nop
nop
mov ecx, dword [edi + 4]
mov edx, dword [esi + 4]
mov edx, dword [edx + eax*4]
xor edx, dword [ecx + eax*4]
mov ecx, dword [esp]
and ecx, edx
mov edx, dword [edi + 4]
xor dword [edx + eax*4], ecx
mov edx, dword [esi + 4]
xor dword [edx + eax*4], ecx
add eax, 1
cmp eax, dword [edi]
jb 0x4691f0
add esp, 4
pop esi
pop edi
pop ebx
ret
Function at 0x46a150
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
mov edx, 0x27
jmp 0x46a160
push ebp
push ebx
push edi
push esi
sub esp, 0x20
mov ebx, edx
mov dword [esp], ecx
mov edi, dword [ecx]
lea esi, [edi*8]
lea eax, [edi*8 + 1]
push 0
push 1
mov dword [esp + 0x10], eax
push eax
call fcn.004392c0
add esp, 0xc
mov ebp, eax
mov byte [eax + edi*8], 0
mov dword [esp + 4], esi
test esi, esi
mov dword [esp + 0xc], eax
je 0x46a1e6
movzx esi, bl
xor eax, eax
mov ebx, dword [esp + 4]
xor edx, edx
mov ebp, dword [esp + 0xc]
nop
nop
mov ecx, edx
shr ecx, 3
mov edi, dword [esp]
mov edi, dword [edi + 4]
mov edi, dword [edi + ecx*4]
mov ecx, eax
and cl, 0x1c
shr edi, cl
and edi, 0xf
lea ecx, [edi + 6]
shr ecx, 4
neg ecx
and ecx, esi
add ecx, edi
add cl, 0x30
mov byte [ebp + ebx - 1], cl
add edx, 1
add eax, 4
add ebx, 0xffffffff
jne 0x46a1b0
mov ecx, dword [esp + 4]
lea edi, [ecx - 1]
lea esi, [ecx - 2]
mov ecx, 3
mov eax, ebp
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp byte [eax + esi], 0x30
cmovne edi, esi
add esi, 0xffffffff
add ecx, 0xffffffff
jne 0x46a200
add esi, 0xfffffffd
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp byte [eax + esi + 3], 0x30
lea ecx, [esi + 3]
cmove ecx, edi
lea edx, [esi + 2]
cmp byte [eax + esi + 2], 0x30
cmove edx, ecx
lea edi, [esi + 1]
cmp byte [eax + esi + 1], 0x30
cmove edi, edx
cmp byte [eax + esi], 0x30
cmovne edi, esi
add esi, 0xfffffffc
cmp esi, 0xfffffffc
jne 0x46a220
mov ecx, eax
add ecx, 1
mov dword [esp + 0x10], ecx
xor ecx, ecx
mov esi, dword [esp + 8]
mov dword [esp + 0x14], edi
jmp 0x46a27f
add ecx, 1
mov edx, esi
shr edx, cl
test edx, edx
je 0x46a340
mov ebx, 1
shl ebx, cl
mov edx, esi
sub edx, ebx
jbe 0x46a270
mov dword [esp], edx
mov edx, edi
mov dword [esp + 0x1c], ecx
shr edx, cl
and dl, 1
neg dl
xor ebp, ebp
cmp dword [esp + 4], ebx
je 0x46a30c
mov esi, dword [esp]
and esi, 0xfffffffe
neg esi
xor ebp, ebp
mov edi, dword [esp + 0x10]
mov ecx, edx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx eax, byte [edi - 1]
movzx edx, byte [edi + ebx - 1]
mov ah, dl
xor ah, al
and ah, cl
xor al, ah
mov byte [edi - 1], al
xor ah, dl
mov byte [edi + ebx - 1], ah
movzx eax, byte [edi]
movzx edx, byte [edi + ebx]
mov ah, dl
xor ah, al
and ah, cl
xor al, ah
mov byte [edi], al
xor ah, dl
mov byte [edi + ebx], ah
add edi, 2
add ebp, 0xfffffffe
cmp esi, ebp
jne 0x46a2c0
sub ebx, ebp
neg ebp
mov esi, dword [esp + 8]
mov eax, dword [esp + 0xc]
mov edi, dword [esp + 0x14]
mov edx, ecx
test byte [esp], 1
mov ecx, dword [esp + 0x1c]
je 0x46a270
mov dword [esp + 0x18], edx
mov dl, byte [eax + ebp]
mov dh, byte [eax + ebx]
mov byte [esp], dh
mov dh, byte [esp]
xor dh, dl
and dh, byte [esp + 0x18]
xor dl, dh
mov byte [eax + ebp], dl
xor dh, byte [esp]
mov byte [eax + ebx], dh
jmp 0x46a270
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret