joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410470
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
xor eax, eax
cmp byte [0x481228], al
je 0x410639
push ebx
push esi
push edi
push str.Times_New_Roman
push eax
push eax
push eax
push eax
push eax
push eax
push eax
push eax
push 0x2bc
push 0x5a
push 0x5a
push eax
push 0x1e
call dword [sym.imp.GDI32.dll_CreateFontA]
push eax
mov dword [ebp - 4], eax
push dword [0x48129c]
call dword [sym.imp.GDI32.dll_SelectObject]
mov esi, dword [sym.imp.GDI32.dll_SetTextColor]
push 0xa0a0a
push dword [0x48129c]
call esi
push dword [0x481070]
mov ecx, 0x481070
call fcn.0041f593
mov edi, dword [sym.imp.GDI32.dll_TextOutA]
push eax
push 0x6f
push 0xc
push dword [0x48129c]
call edi
mov ebx, 0xff
push ebx
push dword [0x48129c]
call esi
push dword [0x481070]
mov ecx, 0x481070
call fcn.0041f593
push eax
push 0x6e
push 0xa
push dword [0x48129c]
call edi
mov byte [ebp - 0x38], 0x61
mov byte [ebp - 0x37], 0x84
mov byte [ebp - 0x36], 0x6a
mov byte [ebp - 0x35], 0xb7
mov byte [ebp - 0x34], 0x15
mov byte [ebp - 0x33], 0x42
mov byte [ebp - 0x32], 0x6c
mov byte [ebp - 0x31], 0x9b
mov byte [ebp - 0x30], 0xbf
mov byte [ebp - 0x2f], 0x9e
mov byte [ebp - 0x2e], 0xf3
mov byte [ebp - 0x2d], 0x44
mov byte [ebp - 0x2c], 0x75
mov byte [ebp - 0x2b], 0xa2
mov byte [ebp - 0x2a], 0xbb
mov byte [ebp - 0x29], 0xf2
mov byte [ebp - 0x28], 0x1e
mov byte [ebp - 0x27], 0x43
mov byte [ebp - 0x26], 0x7c
mov byte [ebp - 0x25], 0x31
mov byte [ebp - 0x24], 0x94
mov byte [ebp - 0x23], 0xa
mov byte [ebp - 0x22], 5
mov byte [ebp - 0x21], 0x4d
mov byte [ebp - 0x20], 0x74
mov byte [ebp - 0x1f], 0x3a
mov byte [ebp - 0x1e], 0x1b
mov byte [ebp - 0x1d], 0x48
mov byte [ebp - 0x1c], 0x98
mov byte [ebp - 0x1b], 0x16
mov byte [ebp - 0x1a], 0x63
mov byte [ebp - 0x19], 0xb2
mov byte [ebp - 0x18], 0x9f
mov byte [ebp - 0x17], 0xf4
lea ecx, [ebp - 0x10]
mov byte [ebp - 0x16], 0x74
mov byte [ebp - 0x15], 0xb6
mov byte [ebp - 0x14], 4
mov byte [ebp - 0x13], 0x8f
mov byte [ebp - 0x12], 0xda
call fcn.0041e62f
lea eax, [ebp - 0x38]
push 0x27
push eax
lea ecx, [ebp - 0x10]
call fcn.0041e8b1
lea ecx, [ebp - 0x10]
call fcn.0041eb4a
lea ecx, [ebp - 0x10]
call fcn.0041eb4a
push 0xa0a0a
push dword [0x48129c]
call esi
push dword [ebp - 0x10]
lea ecx, [ebp - 0x10]
call fcn.0041f593
push eax
push 0x8d
push 0x13
push dword [0x48129c]
call edi
push ebx
push dword [0x48129c]
call esi
push dword [ebp - 0x10]
lea ecx, [ebp - 0x10]
call fcn.0041f593
push eax
push 0x8c
push 0x11
push dword [0x48129c]
call edi
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_DeleteObject]
lea ecx, [ebp - 0x10]
call fcn.0041e765
pop edi
pop esi
pop ebx
leave
ret
Function at 0x411431
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push edi
push esi
push 0x80
push 3
push esi
push 1
push 0x80000000
mov ecx, 0x481858
call fcn.0041f593
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
or eax, 0xffffffff
cmp edi, eax
je 0x4114ab
lea eax, [ebp - 8]
push esi
push eax
mov dword [ebp - 8], esi
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp - 0xc]
push esi
push eax
lea eax, [ebp - 4]
push 2
push eax
push edi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp word [ebp - 4], 0xd8ff
jne 0x4114a0
push 2
pop eax
jmp 0x4114ab
xor eax, eax
cmp word [ebp - 4], 0x4d42
sete al
pop edi
pop esi
leave
ret 4

Function at 0x4114b1
Capabilities:
Delete file
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
push ebx
push esi
mov dword [ebp - 8], ecx
mov esi, 0x481408
push edi
push 0xc
mov ecx, esi
call fcn.0041f167
xor edi, edi
mov dword [ebp - 0x14], eax
cmp eax, edi
jne 0x4114e5
mov dword [0x481298], edi
push 1
pop eax
jmp 0x411645
lea eax, [ebp - 0x12c]
push str..bmp
push eax
call fcn.00420582
mov eax, dword [0x482408]
pop ecx
pop ecx
cmp eax, edi
push 1
pop ebx
mov dword [0x482394], ebx
mov dword [0x4813a8], ebx
je 0x411517
push eax
call fcn.00427dae
pop ecx
push 4
call fcn.00427db9
cmp eax, edi
pop ecx
mov dword [0x482408], eax
jne 0x411539
mov ecx, 0x481a9c
call fcn.0041f593
push eax
call fcn.0042024b
pop ecx
push 8
mov ecx, esi
call fcn.0041f167
add eax, dword [ebp - 0x14]
mov ecx, dword [0x482408]
push 0xc
mov dword [ecx], eax
mov ecx, esi
call fcn.0041f167
push eax
push 8
mov ecx, esi
call fcn.0041f167
push eax
lea eax, [ebp - 0x12c]
push eax
mov ecx, 0x481858
call fcn.0041f593
push eax
call fcn.00401ac0
add esp, 0x10
test eax, eax
je 0x411586
push 0xffffffffffffff9d
jmp 0x4114df
push edi
push 0x80
push 3
push edi
push ebx
lea eax, [ebp - 0x12c]
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4115b0
push 0xffffffffffffff9c
jmp 0x4114df
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], edi
push ecx
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 4]
push ecx
lea ecx, [ebp - 0x28]
push ecx
mov ecx, dword [ebp - 8]
push eax
push esi
call fcn.004118d5
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x12c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp ebx, edi
jge 0x4115fa
mov eax, ebx
or ah, 1
jmp 0x411645
push dword [0x481290]
call dword [sym.imp.USER32.dll_GetDC]
push edi
mov esi, eax
push dword [ebp - 4]
push dword [ebp - 0xc]
push 4
push dword [ebp - 4]
push esi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
push esi
mov dword [0x481298], eax
push dword [0x481290]
call dword [sym.imp.USER32.dll_ReleaseDC]
push dword [ebp - 0x10]
call fcn.00427dae
mov eax, dword [0x481298]
pop ecx
neg eax
sbb eax, eax
and eax, 0x6a
add eax, 0xffffff97
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41184b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x4118cd
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp + 8]
push 0
push eax
lea eax, [ebp - 0x10]
push 0xe
push eax
push edi
call esi
cmp dword [ebp + 8], 0xe
jne 0x4118c6
cmp word [ebp - 0x10], 0x4d42
jne 0x4118c6
lea eax, [ebp + 8]
push 0
push eax
lea eax, [ebp - 0x38]
push 0x28
push eax
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 8], 0x28
jne 0x4118cd
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x34]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x30]
mov dword [eax + 4], ecx
mov al, 1
jmp 0x4118cf
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop edi
pop esi
leave
ret 8

Function at 0x4118d5
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
push 0xe
pop edi
push edi
push 0
push ebx
call fcn.004274e0
add esp, 0xc
mov esi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp + 0x10]
push 0
push eax
push edi
push ebx
push dword [ebp + 8]
call esi
cmp dword [ebp + 0x10], edi
je 0x41190c
push 0xfffffffffffffff8
jmp 0x4119f0
cmp word [ebx], 0x4d42
je 0x41191a
push 0xfffffffffffffff7
jmp 0x4119f0
mov ebx, dword [ebp + 0xc]
sub ebx, edi
push ebx
call fcn.00427db9
mov edi, dword [ebp + 0x18]
pop ecx
test eax, eax
mov dword [edi], eax
jne 0x411936
push 0xffffffffffffffe0
jmp 0x4119f0
lea ecx, [ebp + 0x10]
push 0
push ecx
push ebx
push eax
push dword [ebp + 8]
call esi
cmp dword [ebp + 0x10], ebx
je 0x41194c
push 0xffffffffffffffdf
jmp 0x41199b
mov eax, dword [ebp + 0x14]
mov ecx, dword [edi]
push 1
mov dword [eax], ecx
mov ebx, dword [edi]
mov eax, ecx
pop esi
mov dword [ebp + 8], ebx
mov dx, word [eax + 0xe]
mov cl, dl
shl esi, cl
cmp dx, 8
jbe 0x41196f
xor esi, esi
jmp 0x411978
mov eax, dword [eax + 0x20]
test eax, eax
je 0x411978
mov esi, eax
mov ecx, dword [ebp + 0x1c]
lea eax, [ebx + esi*4 + 0x28]
test esi, esi
mov dword [ecx], eax
je 0x4119ee
lea eax, [esi*4 + 8]
push eax
call fcn.00427db9
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x4119a8
push 0xffffffffffffffde
pop esi
push dword [edi]
call fcn.00427dae
pop ecx
mov eax, esi
jmp 0x4119f1
test esi, esi
mov word [ebx], 0x300
mov word [ebx + 2], si
jle 0x4119db
mov ecx, dword [ebp + 8]
lea eax, [ebx + 5]
add ecx, 0x29
mov dl, byte [ecx + 1]
mov byte [eax - 1], dl
mov dl, byte [ecx]
mov byte [eax], dl
mov dl, byte [ecx - 1]
mov byte [eax + 1], dl
and byte [eax + 2], 0
add ecx, 4
add eax, 4
dec esi
jne 0x4119be
push ebx
call dword [sym.imp.GDI32.dll_CreatePalette]
mov ecx, dword [ebp + 0x20]
push ebx
mov dword [ecx], eax
call fcn.00427dae
pop ecx
push 1
pop eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x1c
Function at 0x411a6c
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0x481450
lea ecx, [ebp - 0xc]
call fcn.0041e703
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 0xc]
dec eax
push eax
call fcn.0041e84d
cmp al, 0x5c
je 0x411a9a
push 0x5c
lea ecx, [ebp - 0xc]
call fcn.0041e862
push esi
push 0
push str.Backup_
lea ecx, [ebp - 0xc]
call fcn.0041e8b1
push 1
lea ecx, [ebp - 0xc]
call fcn.0041f593
push eax
call fcn.0040ed76
mov esi, dword [ebp + 8]
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
dec eax
test eax, eax
jle 0x411ae0
cmp byte [eax + esi], 0x5c
jne 0x411ac6
lea eax, [eax + esi + 1]
push 0
push eax
lea ecx, [ebp - 0xc]
call fcn.0041e8b1
push 0
lea ecx, [ebp - 0xc]
call fcn.0041f593
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push 9
lea ecx, [ebp - 0xc]
call fcn.0041e862
push 0
push esi
lea ecx, [ebp - 0xc]
call fcn.0041e8b1
push dword [ebp + 0x14]
lea eax, [ebp - 0xc]
push dword [ebp + 0x18]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push str._t_d_t_d_t_d_t_d
push eax
call fcn.0041ecd1
add esp, 0x18
lea ecx, [ebp - 0xc]
call fcn.0041f593
push eax
mov ecx, 0x481910
call fcn.00424c61
lea ecx, [ebp - 0xc]
call fcn.0041e765
pop esi
leave
ret 0x14
Function at 0x411b44
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
lea ecx, [ebp - 0x18]
mov dword [esi + 4], ebx
mov dword [ebp - 4], ebx
call fcn.0041e62f
push dword [ebp - 4]
mov edi, 0x481704
mov ecx, edi
call fcn.0041f23c
test al, al
je 0x411d0b
lea eax, [ebp - 0x18]
mov ecx, edi
push eax
lea eax, [ebp - 4]
push eax
call fcn.0041f199
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
lea ecx, [ebp - 0x18]
call fcn.0041f593
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebp - 0xc], eax
je 0x411cff
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push dword [ebp - 0xc]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
lea ecx, [ebp - 0x24]
mov dword [esi], eax
lea eax, [ebp - 0x18]
push eax
call fcn.0041e703
mov eax, dword [ebp - 0x24]
push 3
add eax, 0xfffffffd
lea ecx, [ebp - 0x24]
push eax
call fcn.0041ec13
push ebx
push 0x42ef38
lea ecx, [ebp - 0x24]
call fcn.0041e8b1
cmp byte [0x4823f4], bl
jne 0x411c67
mov ecx, 0x482018
call fcn.0041f593
push eax
lea ecx, [ebp - 0x30]
call fcn.0041e69f
push 0x20
lea ecx, [ebp - 0x30]
call fcn.0041e862
lea ecx, [ebp - 0x3c]
call fcn.0041e62f
lea eax, [ebp - 0x3c]
lea ecx, [ebp - 0x18]
push eax
call fcn.0041f593
push eax
call fcn.0042130d
pop ecx
lea eax, [ebp - 0x3c]
pop ecx
push eax
lea ecx, [ebp - 0x30]
call fcn.0041e92f
lea ecx, [ebp - 0x30]
call fcn.0041f593
push eax
push 0x14
push dword [esi + 8]
call fcn.0042143a
add esp, 0xc
lea ecx, [ebp - 0x3c]
call fcn.0041e765
lea ecx, [ebp - 0x30]
call fcn.0041e765
push 0x416f83
push 0x416f38
lea ecx, [ebp - 0x24]
call fcn.0041f593
push eax
lea ecx, [ebp - 0x18]
call fcn.0041f593
push eax
call dword [0x4813f4]
test eax, eax
lea ecx, [ebp - 0x24]
jle 0x411cfa
call fcn.0041f593
push 0x48191c
push eax
mov ecx, 0x481910
call fcn.00424c25
cmp dword [0x481764], ebx
je 0x411cd5
push 0xc
call fcn.00427db9
cmp eax, ebx
pop ecx
je 0x411cc6
lea ecx, [ebp - 0x24]
push ecx
mov ecx, eax
call fcn.0041e703
jmp 0x411cc8
xor eax, eax
push 0xffffffffffffffff
push eax
mov ecx, 0x48178c
call fcn.004216a5
lea ecx, [ebp - 0x18]
call fcn.0041f593
push eax
call fcn.0040e99b
mov eax, dword [ebp - 8]
pop ecx
add dword [esi + 4], eax
lea ecx, [ebp - 0x24]
call fcn.0041e765
push dword [ebp - 4]
jmp 0x411b67
call fcn.0041e765
lea ecx, [ebp - 0x18]
call fcn.0041e765
xor al, al
jmp 0x411d15
lea ecx, [ebp - 0x18]
call fcn.0041e765
mov al, 1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x411fc4
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
push esi
push edi
je 0x412032
cmp dword [ebp + 0xc], ebx
je 0x412032
cmp byte [0x42eeec], bl
mov ecx, 0x481858
jne 0x411feb
mov ecx, 0x481828
call fcn.0041f593
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, 0x80
push ebx
push edi
push 3
push ebx
push 1
push 0x80000000
push eax
call esi
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x412032
lea ecx, [ebp - 0x14]
push ebx
push ecx
mov dword [ebp - 0x14], ebx
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x41203b
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0x10
push ebx
push edi
push 2
push ebx
push 1
push 0xc0000000
push dword [ebp + 8]
call esi
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x412032
mov edi, 0x8000
push edi
call fcn.00427db9
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, ebx
pop ecx
mov dword [ebp + 0xc], eax
jne 0x412088
push dword [ebp - 4]
call esi
push dword [ebp + 8]
call esi
mov ecx, 0x481a9c
call fcn.0041f593
push eax
call fcn.0042024b
pop ecx
mov dword [ebp - 8], ebx
cmp byte [ebp + 0x14], bl
je 0x4120a6
lea eax, [ebp - 0x10]
push eax
push edi
push dword [ebp + 0xc]
lea eax, [ebp - 4]
push eax
call fcn.00412c41
add esp, 0x10
jmp 0x4120d1
mov ecx, dword [ebp - 8]
mov eax, edi
lea edx, [ecx + 0x8000]
cmp edx, dword [ebp + 0x10]
jbe 0x4120bb
mov eax, dword [ebp + 0x10]
sub eax, ecx
lea ecx, [ebp - 0x10]
push ebx
push ecx
push eax
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x412105
lea eax, [ebp - 0xc]
push ebx
push eax
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x412105
mov eax, dword [ebp - 0xc]
add dword [ebp - 8], eax
cmp byte [ebp + 0x14], bl
je 0x4120fb
push eax
call fcn.00416ea5
pop ecx
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0x10]
jae 0x41211d
jmp 0x41208b
push dword [ebp + 0xc]
call fcn.00427dae
pop ecx
push dword [ebp - 4]
call esi
push dword [ebp + 8]
call esi
jmp 0x412032
push dword [ebp + 0xc]
call fcn.00427dae
pop ecx
push dword [ebp - 4]
call esi
push dword [ebp + 8]
call esi
mov ecx, dword [ebp - 0xc]
xor eax, eax
cmp ecx, dword [ebp - 0x10]
sete al
jmp 0x412034
Function at 0x412413
Capabilities:
Check if file exists
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x4812b4], ebx
jne 0x412432
push dword [ebp + 8]
call fcn.0040e99b
pop ecx
jmp 0x4124f3
and byte [ebp - 0x10], 0
push esi
push edi
xor eax, eax
lea edi, [ebp - 0xf]
push 0xa
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x10]
mov dword [ebp - 4], ebx
push eax
push ebx
call fcn.004291fc
mov esi, dword [ebp + 0xc]
add esp, 0xc
mov ecx, esi
push dword [ebp + 8]
call fcn.0041e77c
push ebx
push str..old
mov ecx, esi
call fcn.0041e8b1
lea eax, [ebp - 0x10]
push ebx
push eax
mov ecx, esi
call fcn.0041e8b1
mov ecx, esi
call fcn.0041f593
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push eax
call ebx
cmp eax, 0xffffffff
je 0x4124e0
and byte [ebp - 0x10], 0
xor eax, eax
lea edi, [ebp - 0xf]
inc dword [ebp - 4]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x10]
push 0xa
push eax
push dword [ebp - 4]
call fcn.004291fc
add esp, 0xc
mov ecx, esi
push dword [ebp + 8]
call fcn.0041e77c
push 0
push str..old
mov ecx, esi
call fcn.0041e8b1
lea eax, [ebp - 0x10]
push 0
push eax
mov ecx, esi
call fcn.0041e8b1
mov ecx, esi
call fcn.0041f593
push eax
jmp 0x412488
mov ecx, esi
call fcn.0041f593
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileA]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x412c41
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [ebp - 4]
xor ebx, ebx
push 1
push eax
push ebx
mov dword [ebp - 4], ebx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [0x42eef4]
mov edx, dword [0x482408]
sub ecx, dword [0x482394]
mov edi, dword [ebp + 0x10]
mov dword [ebp + 8], ebx
mov dword [ebp + 0x10], edi
mov ecx, dword [edx + ecx*4]
lea edx, [eax + edi]
cmp ecx, edx
jae 0x412c89
sub ecx, eax
mov dword [ebp + 0x10], ecx
lea eax, [ebp + 8]
push ebx
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
test eax, eax
mov dword [ebx], ecx
je 0x412d12
cmp ecx, edi
jae 0x412d12
mov eax, dword [0x42eef4]
mov ecx, dword [0x4813a8]
sub eax, dword [0x482394]
dec ecx
cmp eax, ecx
jge 0x412d12
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [esi], 0xffffffff
push esi
mov ecx, 0x481a08
call fcn.004158dd
mov ecx, dword [0x42eef4]
mov edx, dword [0x482408]
sub ecx, dword [0x482394]
mov eax, dword [ebp + 8]
sub edi, eax
mov ecx, dword [edx + ecx*4]
cmp ecx, edi
jae 0x412cf8
mov edi, ecx
lea ecx, [ebp + 8]
push 0
push ecx
mov ecx, dword [ebp + 0xc]
add eax, ecx
push edi
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp + 8]
add dword [ebx], eax
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push 1
push eax
push 0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 1
mov dword [0x482378], eax
pop eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x412d33
Capabilities:
Check if file exists
Delete directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
xor eax, eax
cmp dword [0x48164c], eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
jle 0x412f5c
push ebx
push esi
push edi
mov esi, 0x4810c0
push dword [ebp - 8]
mov ecx, 0x481640
call fcn.0042168b
mov edi, eax
mov eax, dword [edi + 0x1c]
cmp eax, dword [ebp + 8]
jne 0x412f47
push dword [edi + 0x20]
call fcn.0041486a
test al, al
pop ecx
je 0x412f47
lea ebx, [edi + 4]
mov ecx, esi
push ebx
call fcn.00418851
lea eax, [edi + 0x10]
mov ecx, esi
push eax
call fcn.00418851
or dword [edi + 0x1c], 0xffffffff
push ebx
mov ecx, esi
call fcn.0041cf5a
lea eax, [edi + 0x10]
mov ecx, esi
push eax
call fcn.0041cf5a
push 0x7fffffff
push ebx
mov ecx, esi
call fcn.0041dbff
lea eax, [edi + 0x10]
push 0x7fffffff
push eax
mov ecx, esi
call fcn.0041dbff
mov eax, dword [edi]
cmp eax, 4
jne 0x412de7
inc dword [ebp - 4]
mov ecx, ebx
call fcn.0041f593
push eax
call fcn.0042723c
jmp 0x412f47
cmp eax, 5
jne 0x412dff
mov ecx, ebx
call fcn.0041f593
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x412f47
push 0x1e
lea eax, [ebp - 0x38]
push 0
push eax
call fcn.004274e0
mov eax, dword [0x481290]
add esp, 0xc
mov ecx, ebx
mov dword [ebp - 0x38], eax
push 0
mov word [ebp - 0x28], 0x650
call fcn.0041e862
mov ecx, ebx
call fcn.0041f593
mov dword [ebp - 0x30], eax
mov eax, dword [edi]
test eax, eax
je 0x412e40
cmp eax, 2
je 0x412e40
cmp eax, 3
jne 0x412e56
lea ebx, [edi + 0x10]
push 0
mov ecx, ebx
call fcn.0041e862
mov ecx, ebx
call fcn.0041f593
mov dword [ebp - 0x2c], eax
mov eax, dword [edi]
push 1
pop ecx
cmp eax, ecx
jne 0x412e68
mov dword [ebp - 0x34], 3
jmp 0x412e7e
cmp eax, 2
je 0x412e7b
xor ecx, ecx
cmp eax, 3
setne cl
dec ecx
and ecx, 2
inc ecx
inc ecx
mov dword [ebp - 0x34], ecx
lea ecx, [edi + 0x10]
call fcn.0041f593
mov ebx, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push eax
call ebx
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
test eax, eax
jne 0x412ed9
cmp dword [edi], eax
jne 0x412ed9
cmp dword [ebp - 0xc], 0xffffffff
jne 0x412ed9
inc dword [ebp - 4]
lea ecx, [edi + 0x10]
call fcn.0041f593
push eax
call ebx
cmp eax, 0xffffffff
je 0x412ed9
test al, 0x10
jne 0x412ed9
lea ecx, [edi + 0x10]
call fcn.0041f593
push 0x48191c
push eax
mov ecx, 0x481910
call fcn.00424c25
mov eax, dword [edi + 0x10]
lea ebx, [edi + 0x10]
cmp eax, 4
jbe 0x412f47
mov edi, dword [edi]
cmp edi, 2
je 0x412eef
test edi, edi
jne 0x412f47
add eax, 0xfffffffb
push 4
push eax
mov ecx, ebx
call fcn.0041f4ff
push eax
lea ecx, [ebp - 0x18]
call fcn.0041e703
lea ecx, [ebp - 0x18]
call fcn.0041f5dd
push 1
push str..TTF
lea ecx, [ebp - 0x18]
call fcn.0041ea64
test al, al
je 0x412f3f
mov ecx, ebx
call fcn.0041f593
push eax
call dword [sym.imp.GDI32.dll_AddFontResourceA]
push 0
push 0
push 0x1d
push 0xffff
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [ebp - 0x18]
call fcn.0041e765
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
cmp eax, dword [0x48164c]
jl 0x412d55
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 4]
leave
ret 4
Function at 0x412f63
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x481224]
push ebx
xor ebx, ebx
push esi
cmp eax, ebx
push edi
je 0x412f84
mov eax, dword [eax + 4]
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x412f9f
mov eax, dword [0x481064]
cmp eax, ebx
je 0x412f97
mov eax, dword [eax + 4]
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x412f9f
mov eax, dword [0x481290]
mov dword [ebp - 4], eax
push ebx
push 0x40581a
push dword [ebp - 4]
push 0x12
push dword [0x481294]
call dword [sym.imp.USER32.dll_CreateDialogParamA]
lea ecx, [ebp - 0x14]
mov dword [ebp - 8], eax
call fcn.0041e62f
push str.___Internal_WaitExternal___
call fcn.0041fe04
cmp eax, ebx
je 0x412fda
push eax
lea ecx, [ebp - 0x14]
call fcn.0041e77c
jmp 0x412fe7
push 0x4821bc
lea ecx, [ebp - 0x14]
call fcn.0041e7ea
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x412ffb
cmp byte [eax], bl
je 0x412ffb
push eax
lea ecx, [ebp - 0x14]
call fcn.0041e77c
push 1
lea ecx, [ebp - 0x14]
pop esi
push esi
push ebx
push ebx
push 0x42ec20
push str.__n_
call fcn.0041f463
lea ecx, [ebp - 0x14]
call fcn.0041f593
push eax
push 0x422
push dword [ebp - 8]
call fcn.0042143a
add esp, 0xc
mov ecx, 0x4819d8
call fcn.0041f593
push eax
push dword [ebp - 8]
call fcn.004213b9
pop ecx
pop ecx
push ebx
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_EnableWindow]
push 0x10
lea eax, [ebp - 0x24]
push ebx
push eax
call fcn.004274e0
push 0x44
lea eax, [ebp - 0x84]
pop edi
push edi
push ebx
push eax
call fcn.004274e0
add esp, 0x18
lea eax, [ebp - 0x24]
mov dword [ebp - 0x84], edi
mov dword [ebp - 0x58], esi
push eax
lea eax, [ebp - 0x84]
push eax
mov word [ebp - 0x54], si
push dword [ebp + 0xc]
push ebx
push 0x4000000
push ebx
push ebx
push ebx
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x413109
mov eax, dword [ebp - 0x24]
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
mov dword [ebp + 0x10], eax
push 0xff
push 0xffffffffffffffff
lea eax, [ebp + 0x10]
push ebx
push eax
push esi
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
cmp eax, ebx
je 0x4130f9
cmp eax, esi
jne 0x4130f9
push ebx
push ebx
push ebx
lea eax, [ebp - 0x40]
push ebx
push eax
call edi
test eax, eax
je 0x4130a9
push ebx
push ebx
lea eax, [ebp - 0x40]
push ebx
push eax
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x4130a9
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x4130c4
push dword [ebp - 0x24]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [ebp - 0x20]
call edi
push esi
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_EnableWindow]
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_DestroyWindow]
lea ecx, [ebp - 0x14]
call fcn.0041e765
pop edi
pop esi
pop ebx
leave
ret 0xc