joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42e7ae
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x43c4b0]
jne 0x42e7b8
repz ret
jmp fcn.0042f050

Function at 0x42fe96
Capabilities:
Get disk information

Disassembly:
push edi
mov ecx, esi
xor edi, edi
call fcn.0042a480
cmp dword [esi + 4], edi
jne 0x42fea9
xor eax, eax
pop edi
ret
mov ecx, esi
call fcn.0042a480
cmp dword [esi + 4], 1
jne 0x42fed3
push edi
mov ecx, esi
call fcn.0042b32d
movzx eax, ax
push eax
call fcn.0042fe7c
add esp, 4
test al, al
je 0x42fed3
xor eax, eax
inc eax
pop edi
ret
mov ecx, esi
call fcn.0042a480
cmp dword [esi + 4], 3
jne 0x42ff38
push edi
mov ecx, esi
call fcn.0042b32d
movzx eax, ax
push eax
call dword [sym.imp.MSVCR100.dll_iswalpha]
pop ecx
test eax, eax
je 0x42ff38
push 1
mov ecx, esi
call fcn.0042b32d
cmp ax, 0x3a
jne 0x42ff38
push 2
mov ecx, esi
call fcn.0042b32d
movzx eax, ax
push eax
call fcn.0042fe7c
add esp, 4
test al, al
je 0x42ff38
mov ecx, esi
call fcn.0042a480
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
xor ecx, ecx
inc ecx
cmp ecx, eax
sbb eax, eax
neg eax
pop edi
ret
mov ecx, esi
call fcn.0042a480
cmp dword [esi + 4], 2
jbe 0x43006e
push 0
mov ecx, esi
call fcn.0042b32d
movzx eax, ax
push eax
call fcn.0042fe7c
add esp, 4
test al, al
je 0x43006e
push 1
mov ecx, esi
call fcn.0042b32d
movzx eax, ax
push eax
call fcn.0042fe7c
add esp, 4
test al, al
je 0x43006e
push 2
pop edi
push edi
mov ecx, esi
call fcn.0042b32d
movzx eax, ax
push eax
call fcn.0042fe7c
add esp, 4
test al, al
jne 0x42fea5
mov ecx, esi
inc edi
call fcn.0042a480
cmp edi, dword [esi + 4]
jae 0x42ffc7
push edi
mov ecx, esi
call fcn.0042b32d
movzx eax, ax
push eax
call fcn.0042fe7c
add esp, 4
test al, al
je 0x42ffa2
mov ecx, esi
call fcn.0042a480
cmp dword [esi + 4], edi
je 0x42fea5
mov ecx, esi
inc edi
call fcn.0042a480
cmp dword [esi + 4], edi
je 0x42fea5
push edi
mov ecx, esi
call fcn.0042b32d
movzx eax, ax
push eax
call fcn.0042fe7c
add esp, 4
test al, al
jne 0x42fea5
mov ecx, esi
inc edi
call fcn.0042a480
cmp edi, dword [esi + 4]
jae 0x430029
push edi
mov ecx, esi
call fcn.0042b32d
movzx eax, ax
push eax
call fcn.0042fe7c
add esp, 4
test al, al
je 0x430004
mov ecx, esi
call fcn.0042a480
lea eax, [edi + 1]
cmp dword [esi + 4], eax
ja 0x42fea5
mov ecx, esi
call fcn.0042a480
cmp dword [esi + 4], edi
jne 0x430057
movzx eax, word [0x43c4d0]
push eax
mov ecx, esi
call fcn.0042a802
mov ecx, esi
call fcn.0042a480
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
xor ecx, ecx
inc ecx
cmp ecx, eax
sbb edi, edi
neg edi
mov eax, edi
pop edi
ret
Function at 0x4300c1
Capabilities:
Check if file exists

Disassembly:
push 0x49c
mov eax, 0x431224
call fcn.0042e82d
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ecx, esi
call fcn.0042a480
xor ebx, ebx
cmp dword [esi + 4], ebx
jne 0x4300ee
mov eax, 0xffffe89d
jmp 0x430319
push ebx
push 0xffffffffffffffff
push 0x434240
lea ecx, [ebp - 0x488]
call fcn.0042ac2a
push ebx
lea eax, [ebp - 0x488]
push eax
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.0042b3d3
cmp eax, 0xffffffff
setne bl
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x478]
call fcn.0040769d
lea ecx, [ebp - 0x480]
call fcn.0040769d
test bl, bl
je 0x430141
mov eax, 0xffffe8c2
jmp 0x430319
mov ecx, esi
call fcn.0042a480
mov ebx, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
lea ecx, [ebp - 0x46c]
push ecx
push eax
call ebx
mov dword [ebp - 0x470], eax
cmp eax, 0xffffffff
jne 0x430279
mov ecx, esi
call fcn.0042a480
lea ecx, [ebp - 0x48c]
push ecx
lea ecx, [ebp - 0x21c]
push ecx
mov esi, 0x105
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov dword [ebp - 0x470], eax
test eax, eax
jne 0x430199
inc eax
jmp 0x430319
cmp eax, esi
jbe 0x4301a7
mov eax, 0xffffe8c1
jmp 0x430319
push eax
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x488]
call fcn.0042a746
lea esi, [ebp - 0x488]
mov dword [ebp - 4], 1
call fcn.0042fe96
test eax, eax
je 0x430206
xor eax, eax
mov dword [edi], 2
mov dword [edi + 4], eax
mov dword [edi + 0x10], eax
mov dword [edi + 0x14], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
xor esi, esi
lea ecx, [ebp - 0x478]
call fcn.0040769d
lea ecx, [ebp - 0x480]
call fcn.0040769d
mov eax, esi
jmp 0x430319
mov ecx, dword [ebp - 0x470]
lea ecx, [ebp + ecx*2 - 0x21e]
movzx eax, word [ecx]
push eax
call fcn.0042fe7c
add esp, 4
test al, al
jne 0x43023f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x430238
cmp eax, 3
je 0x430238
xor esi, esi
inc esi
jmp 0x4301e9
mov esi, 0xffffe8c2
jmp 0x4301e9
xor eax, eax
mov word [ecx], ax
lea eax, [ebp - 0x46c]
push eax
lea eax, [ebp - 0x21c]
push eax
call ebx
mov dword [ebp - 0x470], eax
cmp eax, 0xffffffff
je 0x430223
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x478]
call fcn.0040769d
lea ecx, [ebp - 0x480]
call fcn.0040769d
push dword [ebp - 0x470]
call dword [sym.imp.KERNEL32.dll_FindClose]
test byte [ebp - 0x46c], 0x10
push 0
pop eax
setne al
xor ebx, ebx
inc eax
mov dword [edi], eax
cmp dword [ebp - 0x450], ebx
je 0x4302cd
push ebx
push 0xffffffffffffffff
push str.file_size_larger_than_4GB_encountered
lea ecx, [ebp - 0x4a4]
mov dword [ebp - method.RSException.virtual_0], vtable.RSException.0
call fcn.0042ac2a
push 0x435890
lea eax, [ebp - 0x4a8]
push eax
call sub.MSVCR100.dll__CxxThrowException
mov eax, dword [ebp - 0x44c]
mov dword [edi + 4], eax
lea esi, [edi + 0x10]
lea eax, [ebp - 0x458]
push esi
push eax
call fcn.00430072
pop ecx
pop ecx
cmp dword [ebp - 0x468], ebx
jne 0x430305
cmp dword [ebp - 0x464], ebx
jne 0x430305
mov eax, dword [esi]
mov dword [edi + 8], eax
mov eax, dword [esi + 4]
mov dword [edi + 0xc], eax
jmp 0x430317
add edi, 8
lea eax, [ebp - 0x468]
push edi
push eax
call fcn.00430072
pop ecx
pop ecx
xor eax, eax
call fcn.0042e8b0
ret
Function at 0x40e791
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x18], 0
and dword [eax + 0x14], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
ret 4

Function at 0x41279f
Capabilities:
Get common file path

Disassembly:
push dword [esp + 4]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
neg eax
sbb eax, eax
neg eax
ret 8

Function at 0x10001050
Capabilities:
Allocate or change rwx memory
Create process on windows
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
push 0x44
lea eax, [ebp - 0x5c]
push eax
call section..text
add esp, 8
mov dword [ebp - 0x5c], 0x44
call fcn.100011a0
test eax, eax
je 0x1000115e
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x5c]
push edx
push 0
push 0
push 0x1000044
push 1
push 0
push 0
push 0x1000420c
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x100010cc
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x5c]
push ecx
push 0
push 0
push 0x44
push 1
push 0
push 0
push str.rundll32.exe
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1000115e
mov dword [ebp - 0x328], 0x10003
lea edx, [ebp - 0x328]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
push 0x40
push 0x1000
push 0x1000
push 0
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 8], eax
push 0
push 0x1000
push section..data
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x270], ecx
lea edx, [ebp - 0x328]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
call dword [sym.imp.KERNEL32.dll_ExitThread]
Function at 0x402410
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x80
mov edi, ecx
push 0
push edi
call fcn.00404450
add esp, 0xc
mov dword [edi + 0x80], 0
sub cl, 0x2c
add al, cl
mov al, byte [esp - 0x13]
xor esi, esi
mov al, cl
mov ax, 0x4c
mov dx, word [esp - 0x5b]
xor dx, word [esp - 0xa]
mov ebx, dword [ebp + 0xc]
xor dx, ax
mov edx, ecx
mov ax, word [esp - 0x20]
add cl, 0xc
sub cl, 0x15
xor al, 0x1e
mov cx, dx
add ecx, 0x1f0
sub cl, al
xor ecx, eax
xor edx, edx
mov eax, esi
div ebx
mov eax, dword [ebp + 8]
mov dl, byte [edx + eax]
mov cl, 0x16
sub cl, byte [esp - 0x21]
sub eax, edx
mov ax, word [esp - 0x3a]
add cx, 0x4c
mov byte [esi + edi], dl
mov cx, 0x6b
mov ecx, dword [esp - 0x13]
inc esi
cmp esi, 0x80
jb 0x402450
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43100c
nop
nop
nop
pop eax
nop
nop
add eax, 0x403e6a
nop
sub eax, 0x403e10
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
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x431030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43101e
nop
nop
popal
nop
nop
nop
jmp fcn.00401219
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0xaa8008], 0x8088405
inc edx
mov dword [ebx + 0xaa8008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41cc40
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41cc71
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cc59
add dl, dl
jne 0x41cc7c
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cccd
xor eax, eax
add dl, dl
jne 0x41cc89
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cd6a
add dl, dl
jne 0x41cc98
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cca3
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41ccae
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41ccb9
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41ccc3
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cc68
mov eax, 1
add dl, dl
jne 0x41ccdb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cce6
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41ccd2
sub eax, ebx
mov ebx, 1
jne 0x41cd19
mov ecx, 1
add dl, dl
jne 0x41ccff
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cd0a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41ccf6
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cc68
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41cd30
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cd3b
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cd27
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cc68
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41cd8b
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41cc68
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41e214
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0xa916d3
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov ecx, ebx
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [ecx + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41e2c5
add edx, ebx
mov eax, edx
mov esi, dword [eax + 0x18]
mov edx, dword [eax + 0x1c]
add edx, ebx
mov dword [ebp - 0x10], edx
mov edi, dword [eax + 0x20]
add edi, ebx
mov edx, dword [eax + 0x24]
add edx, ebx
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 4]
cmp edx, 0xffff
jbe 0x41e2ae
test esi, esi
jbe 0x41e2c5
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088dc
test eax, eax
jne 0x41e2a0
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41e2c5
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41e27d
jmp 0x41e2c5
mov ecx, edx
sub ecx, dword [eax + 0x10]
cmp ecx, dword [eax + 0x14]
jae 0x41e2c5
mov eax, ecx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xa916da
ret
Function at 0x41eb1c
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ecx
mov word [ebp - 2], dx
xor eax, eax
push ebp
push 0xa920cb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
call fcn.00404cd0
xor ebx, ebx
mov eax, ebx
and eax, 0x80000001
jns 0x41eb57
dec eax
or eax, 0xfffffffe
inc eax
test eax, eax
jne 0x41eb70
lea eax, [ebp - 0x10]
mov edx, dword [0xaaa258]
mov edx, dword [edx]
mov edx, dword [edx + 0xc]
call fcn.00404d30
jmp 0x41eb83
lea eax, [ebp - 0x10]
mov edx, dword [0xaaa258]
mov edx, dword [edx]
mov edx, dword [edx + 0x10]
call fcn.00404d30
lea eax, [ebp - 0x10]
mov edx, ebx
sar edx, 1
jns 0x41eb8f
adc edx, 0
mov edx, dword [edx*4 + 0xaa90e8]
call fcn.00404f20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 0x10]
call fcn.00404f04
push eax
call fcn.00406b1c
mov esi, eax
cmp esi, 0xffffffff
je 0x41ec9d
mov eax, 0x40
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x40
push edi
push esi
call fcn.00406d6c
test eax, eax
je 0x41ec90
mov eax, edi
cmp word [eax], 0x5a4d
jne 0x41ec90
push 0
push 0
mov eax, dword [eax + 0x3c]
push eax
push esi
call fcn.00406dcc
mov eax, edi
call fcn.00403288
mov eax, 0x18
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0x18
push edi
push esi
call fcn.00406d6c
test eax, eax
je 0x41ec90
mov eax, edi
cmp dword [eax], 0x4550
jne 0x41ec90
add eax, 4
mov dx, word [eax]
cmp dx, 0x14c
jb 0x41ec90
cmp dx, 0x150
ja 0x41ec90
mov eax, edi
call fcn.00403288
mov eax, 0xe0
call fcn.00403268
mov edi, eax
push 0
lea eax, [ebp - 0xc]
push eax
push 0xe0
push edi
push esi
call fcn.00406d6c
test eax, eax
je 0x41ec90
mov eax, edi
mov dx, word [eax + 0x44]
cmp dx, word [ebp - 2]
jne 0x41ec90
mov eax, dword [eax + 0x10]
mov edx, dword [ebp - 8]
mov dword [edx], eax
mov eax, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
call fcn.00404d0c
mov eax, edi
call fcn.00403288
push esi
call fcn.00406ad4
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor edx, edx
call fcn.0040502c
jne 0x41ecb5
inc ebx
cmp ebx, 0x19
jne 0x41eb49
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0xa920d2
lea eax, [ebp - 0x10]
call fcn.00404cd0
ret
Function at 0x4045f1
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x401260
push 0x405752
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x878
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
or dword [ebp - 0x26c], 0xffffffff
and dword [ebp - 0x268], 0
push 0x40219c
mov ebx, 0x405984
push ebx
push 0x402194
mov edi, 0x104
push edi
lea eax, [ebp - 0x260]
push eax
mov esi, dword [sym.imp.MSVCRT.dll__snprintf]
call esi
add esp, 0x14
and byte [ebp - 0x15d], 0
or dword [ebp - 0x264], 0xffffffff
and dword [ebp - 4], 0
lea eax, [ebp - 0x15c]
push eax
lea eax, [ebp - 0x260]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x26c], eax
cmp eax, 0xffffffff
jne 0x4046cc
push edi
lea eax, [ebp - 0x578]
push eax
push 0x69
push dword [0x405a98]
call dword [sym.imp.USER32.dll_LoadStringA]
push ebx
lea eax, [ebp - 0x578]
push eax
push 0x208
lea eax, [ebp - 0x474]
push eax
call esi
add esp, 0x10
push 0x40
push 0x4020f4
lea eax, [ebp - 0x474]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x4047c1
and dword [ebp - 0x1c], 0
push 0x402190
lea eax, [ebp - 0x130]
push eax
call sub.MSVCRT.dll_strcmp
pop ecx
pop ecx
test eax, eax
je 0x40471b
push 0x40218c
lea eax, [ebp - 0x130]
push eax
call sub.MSVCRT.dll_strcmp
pop ecx
pop ecx
test eax, eax
je 0x40471b
test byte [ebp - 0x15c], 0x10
jne 0x40471b
inc dword [ebp - 0x264]
mov eax, dword [ebp - 0x264]
cmp eax, dword [0x405aac]
je 0x404734
lea eax, [ebp - 0x15c]
push eax
push dword [ebp - 0x26c]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x4046d0
jmp 0x4047a5
lea eax, [ebp - 0x130]
push eax
push ebx
push 0x402194
push edi
lea eax, [ebp - 0x680]
push eax
call esi
and byte [ebp - 0x57d], 0
lea eax, [ebp - 0x680]
push eax
lea eax, [ebp - 0x57c]
push eax
call fcn.00404c7f
add esp, 0x1c
test eax, eax
je 0x404798
push 1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 0x57c]
call fcn.00404d15
lea eax, [ebp - 0x57c]
push eax
call fcn.00404de5
add esp, 0x14
mov dword [ebp - 0x268], 1
inc dword [0x405aac]
and dword [0x405aa8], 0
xor eax, eax
cmp dword [0x405aa8], eax
sete al
mov dword [0x405aa8], eax
push dword [ebp - 0x26c]
call dword [sym.imp.KERNEL32.dll_FindClose]
or dword [ebp - 4], 0xffffffff
jmp 0x4047fe
cmp dword [ebp - 0x268], 0
jne 0x404862
push edi
lea eax, [ebp - 0x260]
push eax
push 0x67
push dword [0x405a98]
call dword [sym.imp.USER32.dll_LoadStringA]
push ebx
lea eax, [ebp - 0x260]
push eax
push 0x208
lea eax, [ebp - 0x888]
push eax
call esi
add esp, 0x10
push 5
push dword [ebp + 0x10]
lea eax, [ebp - 0x888]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
push eax
lea eax, [ebp - 0x888]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_DrawTextA]
push dword [ebp + 8]
call fcn.0040253f
pop ecx
mov eax, dword [0x405aa8]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x404c7f
Capabilities:
Read file on windows

Disassembly:
push dword [esp + 8]
call sub.MSVCRT.dll_strlen
test eax, eax
pop ecx
jne 0x404c8e
ret
mov eax, dword [esp + 4]
push ebp
push esi
push 0x4021a8
push dword [esp + 0x14]
xor ebp, ebp
mov dword [eax], ebp
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
pop ecx
cmp esi, ebp
pop ecx
je 0x404d10
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_fseek]
push edi
push 2
push ebp
push esi
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_ftell]
push ebp
push ebp
push esi
mov edi, eax
call ebx
push edi
call dword [sym.imp.MSVCRT.dll_malloc]
mov ebx, eax
push edi
push ebp
push ebx
call sub.MSVCRT.dll_memset
push esi
push edi
push 1
push ebx
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x3c
cmp eax, edi
jne 0x404cfe
push edi
push ebx
push dword [esp + 0x1c]
call fcn.00404bb1
add esp, 0xc
mov ebp, eax
push ebx
call dword [sym.imp.MSVCRT.dll_free]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
pop ecx
pop edi
pop ebx
mov eax, ebp
pop esi
pop ebp
ret

Function at 0x404fa3
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x160
push dword [ebp + 0xc]
lea eax, [ebp - 0x160]
push 0x160
push eax
push 0
push dword [ebp + 8]
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
mov eax, dword [ebp - 0x15c]
leave
ret 8

Function at 0x40555a
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x160
lea eax, [esp]
push esi
push 0x4001
push 0x160
push eax
push 0
mov esi, ecx
push 0x4021ac
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
test eax, eax
je 0x405594
push eax
push 0
push 0x1109
push dword [esi + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
pop esi
add esp, 0x160
ret
Function at 0x10001430
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 4]
push 4
lea eax, [esp + 0xc]
push eax
mov eax, dword [ecx]
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 8

Function at 0x10001450
Capabilities:
Set registry value

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0xc]
mov edx, dword [esi]
inc eax
push eax
mov eax, dword [esp + 0x18]
push edi
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
ret 0xc

Function at 0x10001480
Capabilities:
Set registry value

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
mov ebp, ecx
xor edi, edi
push esi
call ebx
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x10001492
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [ebp]
push edi
push eax
push 7
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x100020b0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x11c
mov eax, dword [0x10015180]
mov edx, dword [esp + 0x120]
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0x10]
push ecx
push 0x2001f
push 0
mov dword [esp + 0x12c], eax
mov eax, dword [edi]
push edx
push eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ecx, dword [esp + 8]
mov esi, eax
test esi, esi
jne 0x1000211a
test ecx, ecx
je 0x1000210c
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov ecx, dword [esp + 0x10]
mov esi, eax
mov dword [esp + 8], ecx
je 0x10002128
test ecx, ecx
je 0x100021cb
push ecx
jmp 0x100021c5
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x34]
push eax
push 0
push ecx
mov dword [esp + 0x2c], 0x100
call esi
test eax, eax
jne 0x10002192
lea ecx, [esp + 0x20]
push ecx
lea ecx, [esp + 0xc]
call fcn.100020b0
mov edi, eax
test edi, edi
jne 0x100021e4
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0xc]
push eax
push eax
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x34]
push ecx
push edi
push edx
mov dword [esp + 0x2c], 0x100
call esi
test eax, eax
je 0x10002154
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 8]
test eax, eax
je 0x100021a9
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 8], 0
mov eax, dword [esp + 0x128]
mov ecx, dword [edi]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
mov eax, dword [esp + 8]
test eax, eax
je 0x100021cb
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
mov ecx, dword [esp + 0x118]
call fcn.100076be
add esp, 0x11c
ret 4
mov eax, dword [esp + 8]
test eax, eax
je 0x100021f3
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x120]
mov eax, edi
pop edi
pop esi
call fcn.100076be
add esp, 0x11c
ret 4