joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10018e7d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10018cee

Function at 0x100192bb
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100283f0
push 0x100283e8
push str.FlsAlloc
push 0x1e
call fcn.10019185
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100192ef
push dword [ebp + 8]
mov ecx, esi
call dword [0x1002416c]
call esi
jmp 0x100192f5
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x10019339
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10028400
push 0x100283f8
push str.FlsGetValue
push 0x20
call fcn.10019185
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10019370
push dword [ebp + 8]
mov ecx, esi
call dword [0x1002416c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x1001cc55
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x1001ccf2
push ebx
push esi
call fcn.1001cc1e
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.1001b9b5
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x1001cc9f
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001ccf1
push edi
push eax
call fcn.10019df2
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x1001ccbf
call fcn.100174fb
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1001ccf0
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.1001b9b5
add esp, 0x20
test eax, eax
jne 0x1001ccde
push edi
call fcn.100174fb
jmp 0x1001cce6
push ebx
call fcn.100174fb
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x10021741
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.100216bd
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x100218b9
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x100218b9
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x10021868
jg 0x1002179a
test eax, eax
je 0x1002185e
push 1
push 0x1000
call fcn.1001749e
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x100217c0
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x10021855
push 0x8000
push ebx
call fcn.100215ee
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x100217ec
jg 0x100217e7
cmp ecx, 0x1000
jb 0x100217ec
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.1001729e
add esp, 0x10
cmp eax, 0xffffffff
je 0x10021831
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x100217e7
jl 0x10021818
test ecx, ecx
jne 0x100217d9
push dword [ebp - 0xc]
push ebx
call fcn.100215ee
push esi
call fcn.100174fb
add esp, 0xc
xor edi, edi
jmp 0x100218ca
cmp byte [edi + 0x24], 0
je 0x10021848
cmp dword [edi + 0x20], 5
jne 0x10021848
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x10021853
mov edi, dword [edi + 0x18]
jmp 0x10021855
xor edi, edi
push esi
call fcn.100174fb
pop ecx
jmp 0x100218ca
test ecx, ecx
jg 0x1002182a
jl 0x10021868
test eax, eax
jae 0x1002182a
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1001777c
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1002188b
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x1002182a
jmp 0x100218c2
push ebx
call fcn.1001f66a
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1002182a
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x100218ca
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x100218c7
mov edi, dword [edi + 0x18]
jmp 0x100218ca
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.1001777c
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10022c60
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10022c8d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10022c8d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x4065c3
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x4065e7
xor eax, eax
test eax, eax
je 0x4065f9
cmp byte [ebp + eax - 0x121], 0x5c
je 0x4065f9
xor ecx, ecx
jmp 0x4065fc
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x40a014]
lea eax, [ebp + eax - 0x120]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
leave
ret 4

Function at 0x4066e8
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4232e4], 0
push esi
jne 0x40671f
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 0x4066f9
mov dword [ecx*4 + 0x4232e0], eax
inc ecx
cmp ecx, 0x100
jl 0x4066f4
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406750
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 + 0x4232e0]
xor eax, esi
inc ecx
dec edx
jne 0x406732
pop edi
not eax
pop esi
ret 0xc

Function at 0x401000
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ebp, esp
add esp, 0xfffffffc
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x40338c], eax
mov eax, dword [ebp + 4]
mov dword [0x403210], eax
xor eax, eax
mov ecx, 0x16
push eax
dec ecx
jne 0x401020
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
push 0x7f00
push esi
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [ebp - 0x5c]
push ecx
mov eax, 0x30
mov dword [ecx], eax
mov eax, dword [0x403210]
mov dword [ebp - 0x48], eax
mov eax, 0x4016c9
mov dword [ebp - 0x54], eax
mov ecx, str.Hello
mov dword [ebp - 0x34], ecx
call dword [sym.imp.USER32.dll_RegisterClassExA]
xor ecx, ecx
push ecx
push dword [0x403210]
push ecx
push ecx
push 0x12e
push 0x7a
push 0x34c
push 0x2aa
push 0x40000
lea eax, str.lukifas
push eax
mov eax, str.Hello
push eax
push ecx
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x4033d8], eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x4033d8]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
xor ebx, ebx
lea edi, [ebp - 0x50]
jmp 0x4010bc
push edi
call dword [sym.imp.USER32.dll_DispatchMessageA]
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.USER32.dll_GetMessageA]
test al, al
jne 0x4010b5
mov esp, ebp
ret
Function at 0x42e003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
call 0x42e00c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x403ac5
sub eax, 0x403a6b
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
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
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x42e030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x42e01e
nop
nop
popal
nop
nop
nop
nop
nop
jmp loc.00401219

Function at 0x417f50
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x14000]
push edi
jmp 0x417f6a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x417f71
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x417f60
mov eax, 1
add ebx, ebx
jne 0x417f83
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x417f78
jne 0x417f94
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x417f78
xor ecx, ecx
sub eax, 3
jb 0x417fa8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x41801a
mov ebp, eax
add ebx, ebx
jne 0x417fb3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x417fc0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x417fe4
inc ecx
add ebx, ebx
jne 0x417fd0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x417fc5
jne 0x417fe1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x417fc5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x418004
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x417ff5
jmp 0x417f66
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x418004
add edi, ecx
jmp 0x417f66
pop esi
mov edi, esi
mov ecx, 0x5f3c
mov al, 0xe8
repne scasb al, byte es:[edi]
jne 0x41803f
cmp byte [edi], 3
jne 0x418024
mov eax, dword [edi]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
add eax, esi
stosd dword es:[edi], eax
jmp 0x418022
lea edi, [esi + 0x15000]
mov eax, dword [edi]
or eax, eax
je 0x418090
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x18000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x18078]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x418045
mov ecx, edi
jns 0x418074
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x1807c]
or eax, eax
je 0x41808a
mov dword [ebx], eax
add ebx, 4
jmp 0x418062
call dword [esi + 0x1808c]
mov ebp, dword [esi + 0x18080]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
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 0x4180c4
sub esp, 0xffffff80
jmp section.UPX0
Function at 0x401390
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
mov dword [esp + 4], eax
lea ecx, [esp + 4]
mov dword [esp + 8], eax
lea edx, [esp + 0x14]
mov dword [esp + 0xc], eax
push ecx
push edx
push eax
push eax
push eax
push eax
push eax
mov dword [esp + 0x2c], eax
push eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x34], 0x44
push eax
push 0
mov dword [esp + 0x68], 1
mov word [esp + 0x6c], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov eax, dword [esp + 4]
test eax, eax
je 0x401439
mov edi, dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [esp + 0x60], 0x103
mov ecx, dword [esp + 8]
push 0x1f4
push ecx
call esi
mov eax, dword [esp + 8]
lea edx, [esp + 0x60]
push edx
push eax
call edi
cmp dword [esp + 0x60], 0x103
je 0x401402
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov al, 1
pop edi
add esp, 0x54
ret 4
mov al, 1
pop edi
add esp, 0x54
ret 4

Function at 0x401450
Capabilities:
Delete directory
Delete file
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x411e56
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x248
mov eax, dword [0x41755c]
push esi
push edi
mov esi, ecx
mov dword [esp + 8], eax
mov dword [esp + 0x258], 0
mov dword [esp + 0xc], eax
lea eax, [esp + 0x10]
push 0xff
push eax
mov byte [esp + 0x260], 1
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0xc]
call fcn.0040c74c
mov edx, dword [esp + 8]
lea ecx, [esp + 8]
mov eax, dword [edx - 8]
add eax, 0xfffffffd
push eax
push 3
call fcn.0040b2d1
push 0x417220
lea ecx, [esp + 0xc]
call fcn.0040c884
lea eax, [esp + 0x110]
push eax
push 0x417214
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x401529
test byte [esp + 0x110], 0x10
je 0x40151e
mov ecx, dword [esp + 8]
push 0x417210
mov eax, dword [ecx - 8]
lea ecx, [esp + 0xc]
push eax
call fcn.0040c8ab
push eax
mov ecx, esi
call fcn.00401860
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x401529
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [esp + 8]
push 0x41720c
push ecx
call fcn.00402d7d
add esp, 8
lea ecx, [esp + 8]
mov esi, eax
call fcn.0040c5de
push 0x4171e0
lea ecx, [esp + 0xc]
call fcn.0040c74c
mov edx, dword [esp + 8]
lea ecx, [esp + 8]
mov eax, dword [edx - 8]
push eax
call fcn.0040c8ab
mov edx, eax
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push esi
push ecx
push 1
push edx
call fcn.00402c13
push esi
call fcn.00402b96
add esp, 0x14
lea ecx, [esp + 0xc]
mov byte [esp + 0x258], 0
call fcn.0040c653
lea ecx, [esp + 8]
mov dword [esp + 0x258], 0xffffffff
call fcn.0040c653
mov ecx, dword [esp + 0x250]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x254
ret
Function at 0x4015d0
Capabilities:
Check os version

Disassembly:
push 0xffffffffffffffff
push 0x411e8c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa4
mov eax, dword [0x41755c]
push esi
push edi
mov edi, ecx
mov dword [esp + 0xc], eax
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0xb8], 0
mov dword [esp + 0x1c], 0x94
call esi
lea edx, [esp + 0x18]
push edx
call esi
test eax, eax
je 0x401823
lea eax, [esp + 0x2c]
push ebx
push eax
lea ecx, [esp + 0x10]
call fcn.0040c67d
mov eax, dword [esp + 0x2c]
mov ebx, 1
sub eax, 0
mov byte [esp + 0xb8], bl
je 0x4017f9
dec eax
je 0x4017af
dec eax
je 0x401663
push 0x41ada8
jmp 0x401808
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0xc0]
cmp eax, 3
jne 0x4016ac
lea ecx, [esp + 0xc]
lea edx, [esp + 0x14]
push ecx
push 0x417288
push edx
call fcn.0040c7b1
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0xbc], 2
call fcn.0040c6fc
lea ecx, [esp + 0x14]
mov byte [esp + 0xb8], bl
call fcn.0040c653
mov byte [esi], 0xd
cmp dword [esp + 0x20], 4
jne 0x4016ec
lea eax, [esp + 0xc]
lea ecx, [esp + 0x18]
push eax
push 0x417270
push ecx
call fcn.0040c7b1
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0xbc], 3
call fcn.0040c6fc
lea ecx, [esp + 0x18]
mov byte [esp + 0xb8], bl
call fcn.0040c653
mov byte [esi], 0xd
cmp dword [esp + 0x20], 5
jne 0x401811
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x401730
cmp dword [esp + 0x28], 0x8ae
jae 0x401811
mov edx, dword [esp + 0xc]
push 0x417260
push edx
mov byte [esi], 0xf
call fcn.00402d90
add esp, 8
test eax, eax
jne 0x401730
mov dword [edi + 0x540], 4
cmp dword [esp + 0x24], ebx
jne 0x4017a3
cmp dword [esp + 0x28], 0x8ae
jbe 0x401811
mov eax, dword [esp + 0xc]
push 0x41ada8
push eax
mov byte [esi], 0x10
call fcn.00402d90
add esp, 8
test eax, eax
jne 0x401765
mov dword [edi + 0x540], eax
jmp 0x4017a3
mov ecx, dword [esp + 0xc]
push 0x417250
push ecx
call fcn.00402d90
add esp, 8
test eax, eax
jne 0x401783
mov dword [edi + 0x540], ebx
jmp 0x4017a3
mov edx, dword [esp + 0xc]
push 0x417240
push edx
call fcn.00402d90
add esp, 8
test eax, eax
jne 0x4017a3
mov dword [edi + 0x540], 2
cmp dword [esp + 0x24], 2
jne 0x401811
mov byte [esi], 0x11
jmp 0x401811
mov eax, dword [esp + 0x20]
cmp eax, 4
ja 0x4017ce
jne 0x4017c2
mov eax, dword [esp + 0x24]
test eax, eax
ja 0x4017ce
mov eax, dword [esp + 0xc0]
mov byte [eax], 0xa
jmp 0x401811
mov eax, dword [esp + 0xc0]
mov ecx, dword [esp + 0x28]
cmp cx, 0x8ae
mov byte [eax], 0xb
jbe 0x4017e6
mov byte [eax], 0xe
jne 0x4017ed
mov byte [eax], 0xc
jmp 0x401811
cmp cx, 0x7ce
jne 0x401811
mov byte [eax], 0xb
jmp 0x401811
mov ecx, dword [esp + 0xc0]
push 0x417228
mov byte [ecx], 9
lea ecx, [esp + 0x14]
call fcn.0040c74c
lea ecx, [esp + 0xc]
mov byte [esp + 0xb8], 0
call fcn.0040c653
pop ebx
lea ecx, [esp + 0xc]
mov dword [esp + 0xb4], 0xffffffff
call fcn.0040c653
mov ecx, dword [esp + 0xac]
pop edi
xor eax, eax
pop esi
mov dword fs:[0], ecx
add esp, 0xb0
ret 4
Function at 0x401860
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get common file path
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x411eab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34c
mov eax, dword [0x41755c]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x15c]
mov dword [esp + 0x364], 0
push ecx
push 0x100
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
jne 0x4018be
mov dword [esp + 0x364], 0xffffffff
jmp 0x401a1b
lea edx, [esp + 0x15c]
lea ecx, [esp + 0x10]
push edx
call fcn.0040c74c
push 0x4172ac
lea ecx, [esp + 0x14]
call fcn.0040c884
mov edi, dword [esp + 0x36c]
lea ecx, [esp + 0x10]
push edi
call fcn.0040c884
mov esi, 0x4172a8
mov eax, edi
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x401920
test cl, cl
je 0x401919
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x401920
add eax, 2
add esi, 2
test cl, cl
jne 0x4018f5
xor eax, eax
or ebp, 0xffffffff
jmp 0x401929
sbb eax, eax
mov ebp, 0xffffffff
sbb eax, ebp
test eax, eax
je 0x401a14
mov esi, 0x4172a4
mov eax, edi
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x401960
test cl, cl
je 0x40195c
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x401960
add eax, 2
add esi, 2
test cl, cl
jne 0x401938
xor eax, eax
jmp 0x401964
sbb eax, eax
sbb eax, ebp
test eax, eax
je 0x401a14
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x401a14
mov edi, dword [esp + 0x370]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x25c]
push eax
push ecx
push 0x100
push edi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
je 0x401a14
lea edx, [esp + 0x1c]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, ebp
je 0x4019eb
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileA]
test byte [esp + 0x1c], 0x10
je 0x4019d5
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x48]
push edi
push eax
call fcn.00401860
jmp 0x4019dc
lea ecx, [esp + 0x48]
push ecx
call ebx
lea edx, [esp + 0x1c]
push edx
push esi
call ebp
test eax, eax
jne 0x4019bd
or ebp, 0xffffffff
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea eax, [esp + 0x48]
push eax
call esi
lea ecx, [esp + 0x15c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov edx, dword [esp + 0x10]
push edx
call esi
mov dword [esp + 0x364], ebp
lea ecx, [esp + 0x10]
call fcn.0040c653
mov ecx, dword [esp + 0x35c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x358
ret 8
Function at 0x401da0
Capabilities:
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x411eeb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10c
push ebx
push ebp
push esi
lea eax, [esp + 0x14]
push edi
push eax
xor ebp, ebp
push 0x4173e8
mov ebx, ecx
push 0x80000002
mov dword [esp + 0x20], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x401f3e
push ebp
push ebp
mov edx, dword [esp + 0x20]
push ebp
push ebp
push ebp
push ebp
lea ecx, [esp + 0x2c]
push ebp
push ecx
push ebp
push ebp
push ebp
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
cmp dword [esp + 0x14], ebp
jbe 0x401f08
mov eax, dword [0x41755c]
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push 0xff
push ecx
xor edi, edi
push ebp
push edx
mov dword [esp + 0x134], edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x401f0c
lea ecx, [esp + 0x10]
call fcn.0040c5de
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x10]
push eax
call fcn.0040c74c
lea esi, [ebx + 0x240]
push esi
lea ecx, [esp + 0x14]
call fcn.0040b329
cmp eax, 0xffffffff
jne 0x401e94
inc edi
add esi, 0xff
cmp edi, 3
jb 0x401e55
lea ecx, [esp + 0x10]
mov dword [esp + 0x124], eax
call fcn.0040c653
mov eax, dword [esp + 0x14]
inc ebp
cmp ebp, eax
jb 0x401e08
mov al, 1
jmp 0x401f51
mov edi, 0x4173dc
or ecx, 0xffffffff
xor eax, eax
add ebx, 0xc1
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, dword [esp + 0x10]
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [eax - 8]
lea ecx, [esp + 0x10]
push eax
call fcn.0040c8ab
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x124], 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
call fcn.0040c653
mov al, 1
jmp 0x401f51
mov eax, dword [ebx]
push edi
push edi
push 0x4173c8
mov ecx, ebx
call dword [eax + 0x8c]
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x10]
mov dword [esp + 0x124], 0xffffffff
call fcn.0040c653
jmp 0x401f4f
mov edx, dword [ebx]
push ebp
push ebp
push 0x4173b0
mov ecx, ebx
call dword [edx + 0x8c]
xor al, al
mov ecx, dword [esp + 0x11c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x118
ret