joyce8/EMBER2024-capa huggingface dataset:
Function at 0x467080
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x488958
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push esi
mov esi, ecx
lea ecx, [esp + 0x10]
call fcn.004687bc
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 8]
push eax
mov dword [esp + 0x38], 0
call fcn.00479fba
lea ecx, [esp + 0x3c]
push 1
push ecx
lea ecx, [esp + 0x10]
mov byte [esp + 0x3c], 1
call fcn.00477410
mov eax, dword [eax]
push 0x4c72bc
push eax
call fcn.00469c04
add esp, 8
lea ecx, [esp + 0x3c]
test eax, eax
setne bl
call fcn.00479f4c
test bl, bl
je 0x467100
push 0x4c72bc
lea ecx, [esp + 0xc]
call fcn.0047a2dc
push 0x4c72b8
lea ecx, [esp + 0xc]
call fcn.0047a2dc
mov edx, dword [esp + 8]
push 0
push edx
lea ecx, [esp + 0x18]
call fcn.0046887f
test eax, eax
je 0x4671c4
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
mov bl, 2
lea ecx, [esp + 0x18]
call fcn.00468a9f
mov edi, eax
mov eax, dword [esp + 0x18]
push 0x10
lea ecx, [esp + 0x1c]
call dword [eax + 0x38]
test eax, eax
je 0x467180
lea ecx, [esp + 0x18]
call fcn.00468a66
test eax, eax
jne 0x467180
lea ecx, [esp + 0x44]
push ecx
lea ecx, [esp + 0x1c]
call fcn.00468b6e
mov eax, dword [eax]
mov ecx, esi
push eax
mov byte [esp + 0x40], bl
call fcn.00467080
mov byte [esp + 0x3c], 1
lea ecx, [esp + 0x44]
jmp 0x4671b5
lea ecx, [esp + 0x18]
call fcn.00468a66
test eax, eax
jne 0x4671ba
mov edx, dword [esp + 0x18]
push 0x10
lea ecx, [esp + 0x1c]
call dword [edx + 0x38]
test eax, eax
jne 0x4671ba
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
call fcn.00468b6e
mov eax, dword [eax]
push eax
call ebp
lea ecx, [esp + 0x14]
call fcn.00479f4c
test edi, edi
jne 0x467130
pop edi
pop ebp
lea ecx, [esp + 0x10]
call fcn.00468835
lea ecx, [esp + 8]
mov byte [esp + 0x34], 0
call fcn.00479f4c
lea ecx, [esp + 0x10]
mov dword [esp + 0x34], 0xffffffff
call fcn.004687f9
mov ecx, dword [esp + 0x2c]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret 4
Function at 0x4672c0
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x488986
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14c
mov eax, dword [0x4c7344]
push ebx
push esi
mov ebx, ecx
mov dword [esp + 8], eax
mov dword [esp + 0x15c], 0
mov dword [esp + 0xc], eax
mov esi, dword [esp + 0x164]
lea ecx, [esp + 0xc]
push esi
mov byte [esp + 0x160], 1
call fcn.0047a089
push str..
lea ecx, [esp + 0x10]
call fcn.0047a2dc
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
jne 0x467363
lea ecx, [esp + 0xc]
mov byte [esp + 0x15c], 0
call fcn.00479f4c
lea ecx, [esp + 8]
mov dword [esp + 0x15c], 0xffffffff
call fcn.00479f4c
xor eax, eax
jmp 0x4674a8
push ebp
mov ebp, dword [esp + 0x16c]
push edi
mov edi, dword [esp + 0x174]
lea edx, [esp + 0x48]
push 0x4c72dc
push edx
call fcn.00469c04
add esp, 8
test eax, eax
je 0x467459
lea eax, [esp + 0x48]
push 0x4c72d8
push eax
call fcn.00469c04
add esp, 8
test eax, eax
je 0x467459
test ebp, ebp
jne 0x4673c5
lea ecx, [esp + 0x48]
push str.desktop.ini
push ecx
call fcn.00469cb3
add esp, 8
test eax, eax
je 0x467459
push esi
lea ecx, [esp + 0x14]
call fcn.0047a089
push 0x5c
lea ecx, [esp + 0x14]
call fcn.0047a303
lea edx, [esp + 0x48]
lea ecx, [esp + 0x10]
push edx
call fcn.0047a2dc
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 1
je 0x467405
mov ecx, dword [esp + 0x10]
and al, 0xfe
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test byte [esp + 0x1c], 0x10
je 0x467427
mov edx, dword [esp + 0x10]
push edi
push ebp
push edx
mov ecx, ebx
call fcn.004672c0
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x467459
test edi, edi
je 0x46744e
lea ecx, [esp + 0x48]
push str.index.dat
push ecx
call fcn.00469cb3
add esp, 8
test eax, eax
jne 0x46744e
lea edx, [esp + 0x48]
mov ecx, ebx
push edx
push esi
call fcn.004674d0
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x467373
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x14]
mov byte [esp + 0x164], 0
call fcn.00479f4c
lea ecx, [esp + 0x10]
mov dword [esp + 0x164], 0xffffffff
call fcn.00479f4c
pop edi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x154]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x158
ret 0xc
Function at 0x4674d0
Capabilities:
Get file size
Write file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x48899b
push eax
mov eax, 0x2718
mov dword fs:[0], esp
call fcn.0046a420
mov eax, dword [0x4c7344]
push edi
mov dword [esp + 4], eax
mov ecx, 0x9c4
xor eax, eax
lea edi, [esp + 0xc]
mov dword [esp + 0x2724], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x272c]
push ecx
lea ecx, [esp + 8]
call fcn.0047a089
push 0x5c
lea ecx, [esp + 8]
call fcn.0047a303
mov edx, dword [esp + 0x2730]
lea ecx, [esp + 4]
push edx
call fcn.0047a2dc
mov eax, dword [esp + 4]
push 0
push 0x80
push 3
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x467576
lea ecx, [esp + 4]
mov dword [esp + 0x2724], eax
call fcn.00479f4c
xor eax, eax
jmp 0x4675f3
push ebx
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push 0
mov esi, eax
push 0x40
push edi
sub esi, 0x40
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test esi, esi
jbe 0x4675d1
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
cmp esi, 0x2710
push 0
jbe 0x4675c3
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
push 0x2710
push edx
push edi
call ebx
sub esi, 0x2710
jne 0x46759d
jmp 0x4675d1
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
push esi
push ecx
push edi
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0xc]
mov dword [esp + 0x272c], 0xffffffff
call fcn.00479f4c
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x271c]
pop edi
mov dword fs:[0], ecx
add esp, 0x2724
ret 8

Function at 0x47c2f0
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x47c328
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0047a3a7
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0047a37f
jmp 0x47c334
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x47d9e2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x47da24
call fcn.004834dd
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x47da24
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x47da1b
xor eax, eax
jmp 0x47da2c
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0047da32
pop edi
pop esi
pop ebx
ret 4
Function at 0x483a0d
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 0x483a3b
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x483a59
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00483973
jmp 0x483a59
mov eax, dword [esi + 0x14]
test eax, eax
je 0x483a59
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00483973
test edi, edi
mov eax, edi
jne 0x483a43
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x10c88b0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xa99000]
push edi
or ebp, 0xffffffff
jmp 0x10c88d2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x10c88d9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10c88c8
mov eax, 1
add ebx, ebx
jne 0x10c88eb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x10c88fc
jne 0x10c891b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10c891b
dec eax
add ebx, ebx
jne 0x10c8908
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x10c88e0
add ebx, ebx
jne 0x10c8917
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x10c896d
xor ecx, ecx
sub eax, 3
jb 0x10c8933
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x10c89a2
sar eax, 1
mov ebp, eax
jmp 0x10c893e
add ebx, ebx
jne 0x10c893e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10c890c
inc ecx
add ebx, ebx
jne 0x10c894c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10c890c
add ebx, ebx
jne 0x10c8959
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x10c894e
jne 0x10c896a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x10c894e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x10c898c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x10c897e
jmp 0x10c88ce
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x10c898c
add edi, ecx
jmp 0x10c88ce
pop esi
mov edi, esi
mov ecx, 0x372ed
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x10c89aa
mov eax, dword [edi]
mov bl, byte [edi + 4]
xchg ah, al
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 0x10c89af
lea edi, [esi + 0xcc4000]
mov eax, dword [edi]
or eax, eax
je 0x10c8a17
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xd170ec]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xd1722c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x10c89d5
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xd17230]
or eax, eax
je 0x10c8a11
mov dword [ebx], eax
add ebx, 4
jmp 0x10c89f2
call dword [esi + 0xd17240]
mov ebp, dword [esi + 0xd17234]
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 0x10c8a4b
sub esp, 0xffffff80
jmp 0xa83df4
Function at 0x401a86
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
xor eax, eax
push esi
xor esi, esi
inc eax
cmp dword [ebp + 8], eax
push edi
mov edi, ecx
mov dword [ebp - 0xc], esi
jne 0x401aa6
mov ebx, dword [edi + 4]
mov dword [ebp - 0x10], esi
jmp 0x401ab6
cmp dword [ebp + 8], 2
jne 0x401c30
mov ebx, dword [edi + 8]
mov dword [ebp - 0x10], eax
cmp ebx, esi
jne 0x401ac1
xor eax, eax
jmp 0x401c33
push 2
push 0xc
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_GetAclInformation]
test eax, eax
jne 0x401ae4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x18], eax
push 0x1d
jmp 0x401c32
mov eax, dword [ebp - 0x20]
cmp eax, esi
mov dword [ebp - 8], eax
mov dword [ebp - 4], esi
jbe 0x401aba
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.ADVAPI32.dll_GetAce]
test eax, eax
je 0x401c1c
mov eax, dword [ebp - 0xc]
test byte [eax + 1], 0x10
jne 0x401c08
mov eax, dword [edi + 0x28]
mov eax, dword [eax + 0xc]
test eax, eax
mov dword [ebp - 0x14], eax
je 0x401c08
mov ecx, dword [edi + 0x28]
lea eax, [ebp - 0x14]
add ecx, 8
push eax
call fcn.004011f5
mov esi, dword [eax]
xor eax, eax
cmp dword [ebp - 0x10], eax
je 0x401b42
cmp dword [esi + 0x18], eax
jmp 0x401b45
cmp dword [esi + 0x14], eax
je 0x401b5b
mov eax, dword [ebp - 0xc]
push dword [esi + 0xc]
add eax, 8
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x401b66
cmp dword [ebp - 0x14], 0
jne 0x401b25
jmp 0x401c08
mov eax, dword [esi + 0x10]
test ax, 0x200
je 0x401b89
push dword [ebp - 4]
push ebx
call dword [sym.imp.ADVAPI32.dll_DeleteAce]
test eax, eax
je 0x401c2c
dec dword [ebp - 8]
dec dword [ebp - 4]
jmp 0x401c08
test ax, 0x100
je 0x401baa
mov eax, dword [esi + 0x1c]
push dword [eax + 0xc]
mov ecx, edi
push dword [ebp - 4]
push ebx
call fcn.00401385
mov esi, eax
test esi, esi
jne 0x401bca
push 0x1f
jmp 0x401c1e
test ax, 0x400
je 0x401c08
mov eax, dword [esi + 0x1c]
push dword [eax + 0xc]
mov ecx, edi
push dword [ebp - 4]
push ebx
call fcn.0040154b
mov esi, eax
test esi, esi
je 0x401ba6
inc dword [ebp - 8]
cmp dword [ebp + 8], 1
jne 0x401bd9
mov ecx, edi
call fcn.00401776
jmp 0x401be6
cmp dword [ebp + 8], 2
jne 0x401be6
mov ecx, edi
call fcn.00401797
xor eax, eax
inc eax
cmp dword [ebp + 8], eax
mov ebx, esi
jne 0x401bf8
mov dword [edi + 4], esi
mov dword [edi + 0x30], eax
jmp 0x401c08
cmp dword [ebp + 8], 2
jne 0x401c08
mov dword [edi + 8], esi
mov dword [edi + 0x34], 1
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jb 0x401af1
jmp 0x401aba
push 0x1d
pop esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x18], eax
mov eax, esi
jmp 0x401c33
push 0x1e
jmp 0x401c1e
push 3
pop eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40319a
Capabilities:
Write file on windows

Disassembly:
push 0xc
mov eax, 0x42e07a
call fcn.00419920
mov edi, ecx
lea eax, [ebp + 8]
xor ebx, ebx
lea ecx, [edi + 0xe4]
push eax
mov dword [ebp - 4], ebx
call fcn.00402d1a
lea esi, [edi + 0xe8]
mov eax, dword [esi]
cmp eax, ebx
je 0x4031d1
push eax
call fcn.00419f3b
pop ecx
mov dword [esi], ebx
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebp + 8]
push 0x4316e0
lea eax, [ebp - 0x10]
push ebx
push eax
call fcn.00419e78
xor eax, eax
add esp, 0xc
cmp dword [ebp - 0x10], eax
setne al
cmp dword [ebp - 0x10], 0
mov dword [ebp - 0x14], eax
je 0x403203
push dword [ebp - 0x10]
call fcn.00419f3b
pop ecx
push 0x4316d8
push ebx
push esi
call fcn.00419e78
mov esi, dword [esi]
add esp, 0xc
test esi, esi
je 0x403245
test eax, eax
jne 0x403245
cmp dword [ebp - 0x14], eax
jne 0x403239
push esi
push 1
lea eax, [ebp + 8]
push 2
push eax
mov dword [ebp + 8], 0xfeff
call fcn.00419d25
add esp, 0x10
lea ecx, [ebx - 0x10]
call fcn.00401128
xor eax, eax
jmp 0x40328f
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x14]
push str.ERROR:_Opening_log_file:__
push eax
call fcn.00402c96
add esp, 8
mov ecx, esp
mov dword [ebp - 0x18], esp
push str.__failed_
push eax
push ecx
mov byte [ebp - 4], 1
call fcn.00402c32
add esp, 0xc
mov ecx, edi
call fcn.00402dc4
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.00401128
lea ecx, [ebx - 0x10]
call fcn.00401128
push 0x22
pop eax
call fcn.00419989
ret 4
Function at 0x403b06
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x28
mov eax, 0x42e240
call fcn.00419920
mov esi, ecx
xor edi, edi
mov dword [ebp - 4], edi
call fcn.0040fd01
push eax
lea ecx, [ebp - 0x10]
call fcn.00401cfd
lea ecx, [ebp - 0x34]
call fcn.004019e1
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 8]
mov ebx, 0x200
push eax
mov ecx, esi
mov byte [ebp - 4], 2
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], edi
call fcn.00403586
cmp eax, edi
je 0x403b78
mov esi, eax
lea ecx, [ebp - 0x34]
call fcn.004025fc
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401128
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00401128
mov eax, esi
jmp 0x403cec
push ecx
lea eax, [ebp + 8]
mov dword [ebp - 0x1c], esp
mov ecx, esp
push eax
call fcn.00401f54
mov ecx, esi
call dword [ebp + 0xc]
cmp eax, edi
mov dword [ebp - 0x1c], eax
jne 0x403ccb
test byte [esi + 0x68], 1
jne 0x403ccb
push ebx
lea ecx, [ebp - 0x10]
call fcn.00401f72
push edi
push edi
push edi
push edi
lea ecx, [ebp - 0x18]
push ecx
push eax
push edi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
mov dword [esi + 0x44], eax
call fcn.00401c6d
mov dword [ebp - 0x1c], 1
jmp 0x403c1b
push ecx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x20], esp
mov ecx, esp
push eax
call fcn.00401f54
lea ecx, [ebp - 0x34]
call fcn.0040336b
push ebx
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x18], ebx
call fcn.00401f72
push edi
push edi
push edi
push edi
lea ecx, [ebp - 0x18]
push ecx
push eax
push dword [ebp - 0x1c]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
mov dword [esi + 0x44], eax
call fcn.00401c6d
inc dword [ebp - 0x1c]
cmp dword [esi + 0x44], edi
je 0x403bd3
cmp dword [esi + 0x44], 0x103
je 0x403c3f
cmp dword [ebp - 0x14], edi
je 0x403c37
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x17
pop esi
jmp 0x403b53
cmp dword [ebp - 0x14], edi
mov dword [esi + 0x44], edi
je 0x403c50
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x2c], edi
jle 0x403ca9
push dword [ebp + 0xc]
lea eax, [ebp + 8]
push 0x4318ac
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00402c32
add esp, 0xc
mov ebx, eax
push edi
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 3
call fcn.004011d9
push ecx
mov ecx, esp
mov dword [ebp - 0x20], esp
push eax
push ebx
push ecx
call fcn.00402bdb
add esp, 0xc
mov ecx, esi
call fcn.00403b06
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
mov byte [ebp - 4], 2
call fcn.00401128
inc edi
cmp edi, dword [ebp - 0x2c]
jl 0x403c55
lea ecx, [ebp - 0x34]
call fcn.004025fc
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401128
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00401128
xor eax, eax
jmp 0x403cec
lea ecx, [ebp - 0x34]
call fcn.004025fc
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00401128
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00401128
mov eax, dword [ebp - 0x1c]
call fcn.00419989
ret 8
Function at 0x404b3f
Capabilities:
Get domain controller name

Disassembly:
push 4
mov eax, 0x42e409
call fcn.00419920
mov esi, ecx
xor edi, edi
lea ecx, [esi + 4]
push 0x4317a0
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], edi
call fcn.00402d8c
mov ecx, dword [esi + 0x14]
cmp ecx, edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov dword [esi + 0x10], edi
je 0x404b7b
mov eax, dword [ecx]
push 1
call dword [eax]
mov dword [esi + 0x14], edi
mov ebx, dword [ebp + 8]
cmp dword [ebx - 0xc], edi
je 0x404bd6
lea eax, [ebp - 0x10]
push eax
push 0x80000000
push edi
push edi
push ebx
push edi
call dword [sym.imp.NETAPI32.dll_DsGetDcNameW]
test eax, eax
jne 0x404bd6
mov eax, dword [ebp - 0x10]
push dword [eax + 0x1c]
lea ecx, [esi + 4]
call fcn.00402d8c
cmp dword [ebp - 0x10], edi
je 0x404bb5
push dword [ebp - 0x10]
call sub.NETAPI32.dll_NetApiBufferFree
mov eax, dword [ebp + 0xc]
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0x14]
lea ecx, [ebx - 0x10]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edi
call fcn.00401128
xor eax, eax
jmp 0x404be1
lea ecx, [ebx - 0x10]
call fcn.00401128
push 0x2b
pop eax
call fcn.00419989
ret 0x10
Function at 0x404fd5
Capabilities:
Enumerate network shares

Disassembly:
push 0x1c
mov eax, 0x42e599
call fcn.00419920
mov esi, ecx
mov edi, dword [ebp + 8]
mov eax, dword [edi - 0xc]
and dword [ebp - 4], 0
cmp eax, 1
jl 0x4051b9
mov ebx, dword [ebp + 0xc]
cmp ebx, 1
je 0x405016
cmp ebx, 2
je 0x405016
cmp ebx, 3
je 0x405016
cmp ebx, 4
je 0x405016
cmp ebx, 5
jne 0x4051b9
lea eax, [ebp + 8]
lea ecx, [esi + 0x4c]
push eax
call fcn.00402d1a
lea ecx, [esi + 0x40]
push 0x4317a0
mov dword [esi + 0x50], ebx
mov dword [ebp - 0x24], ecx
call fcn.00402d8c
mov eax, dword [edi - 0xc]
cmp eax, 2
jl 0x405136
xor esi, esi
inc esi
cmp ebx, esi
jne 0x405136
cmp eax, esi
jge 0x40505a
push 0x80070057
call fcn.00401027
movzx eax, word [edi + 2]
cmp ax, 0x3a
jne 0x405136
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push esi
push esi
call sub.MPR.dll_WNetOpenEnumW
test eax, eax
jne 0x405136
mov dword [ebp - 0x10], esi
mov esi, 0x4000
push esi
mov dword [ebp + 0xc], esi
call fcn.0040f26a
pop ecx
mov ecx, dword [ebp + 0xc]
test ecx, ecx
mov edi, eax
je 0x405113
mov byte [eax], 0
inc eax
dec ecx
jne 0x40509a
jmp 0x405113
push dword [edi + 0x10]
lea ecx, [ebp - 0x14]
call fcn.00404c55
push 2
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.0040240b
push dword [ebp - 0x14]
mov eax, dword [eax]
push eax
call fcn.00418daf
pop ecx
mov ebx, eax
pop ecx
mov ecx, dword [ebp - 0x1c]
neg ebx
sbb bl, bl
add ecx, 0xfffffff0
inc bl
call fcn.00401128
test bl, bl
je 0x4050ef
push dword [edi + 0x14]
lea ecx, [ebp + 8]
call fcn.00402d8c
mov dword [ebp - 0x10], 1
mov dword [ebp + 0xc], esi
mov ecx, esi
mov eax, edi
mov byte [eax], 0
inc eax
dec ecx
jne 0x4050fd
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.00401128
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x18]
call sub.MPR.dll_WNetEnumResourceW
test eax, eax
je 0x4050a3
push edi
call fcn.0040f26f
mov edi, dword [ebp + 8]
pop ecx
push 2
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp + 8]
call fcn.0040240b
push 0x43167c
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.00401842
mov ecx, dword [ebp - 0x20]
mov ebx, eax
neg ebx
sbb bl, bl
add ecx, 0xfffffff0
inc bl
mov byte [ebp - 4], 0
call fcn.00401128
test bl, bl
je 0x4051ad
push 2
push 0x4318ac
lea ecx, [ebp + 8]
call fcn.00401ee0
cmp eax, 0xffffffff
je 0x4051ad
add eax, 0xfffffffe
push eax
push 2
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp + 8]
call fcn.00402346
mov ecx, dword [ebp - 0x24]
push eax
mov byte [ebp - 4], 3
call fcn.00402d1a
mov ecx, dword [ebp - 0x28]
add ecx, 0xfffffff0
call fcn.00401128
lea ecx, [edi - 0x10]
call fcn.00401128
xor eax, eax
jmp 0x4051d5
push 0x4317a0
lea ecx, [esi + 0x4c]
call fcn.00402d8c
and dword [esi + 0x50], 0
lea ecx, [edi - 0x10]
call fcn.00401128
push 3
pop eax
call fcn.00419989
ret 8
Function at 0x4093cd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0xd8]
mov eax, dword [esi]
test eax, eax
je 0x4093eb
push eax
call fcn.00419f3b
and dword [esi], 0
pop ecx
mov eax, dword [edi + 0xd4]
mov ecx, dword [eax - 0xc]
test ecx, ecx
je 0x409429
push 0x432f3c
push eax
push esi
call fcn.00419e78
mov ecx, dword [esi]
add esp, 0xc
test ecx, ecx
je 0x409464
test eax, eax
jne 0x409464
push ecx
push 1
lea eax, [ebp - 4]
push 2
push eax
mov dword [ebp - 4], 0xfeff
call fcn.00419d25
add esp, 0x10
cmp dword [edi + 0x50], 1
jne 0x40944d
push 0x4085cf
push ecx
lea eax, [edi + 0x4c]
mov dword [ebp - 4], esp
mov ecx, esp
push eax
call fcn.00401f54
mov ecx, edi
call fcn.00405f3e
mov dword [ebp - 4], eax
mov eax, dword [esi]
test eax, eax
je 0x40945d
push eax
call fcn.00419f3b
and dword [esi], 0
pop ecx
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret
push 0x22
pop eax
jmp 0x409460

Function at 0x4099a6
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x43fda4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyboardLayoutList]
xor eax, eax
push edi
push eax
push eax
mov dword [ebp - 0x48], eax
call esi
mov edi, eax
shl eax, 2
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x409a23
push ebx
push edi
call esi
xor esi, esi
test edi, edi
jbe 0x409a19
mov eax, dword [ebx + esi*4]
push 0x40
lea ecx, [ebp - 0x44]
push ecx
push eax
mov dword [ebp - 0x4c], eax
call sub.IMM32.dll_ImmGetIMEFileNameW
lea eax, [ebp - 0x44]
push 0x4331b8
push eax
call fcn.00418daf
test eax, eax
pop ecx
pop ecx
je 0x409a13
inc esi
cmp esi, edi
jb 0x4099e6
jmp 0x409a19
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x48], eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00419911
leave
ret