joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44fa04
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x44fa1b
add esp, 0xfffffff0
call fcn.004035cc
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004195dc
mov eax, dword [0x469880]
cmp word [eax + 2], 0
jne 0x44fa43
mov eax, dword [0x469880]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045105c
mov eax, dword [0x469934]
cmp word [eax + 2], 0
jne 0x44fa5d
mov eax, dword [0x469934]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00451254
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x411864]
call fcn.00403278
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x411864]
call fcn.00403278
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x41bb18]
call fcn.004231ec
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x44fbe4
mov eax, dword [0x4697a4]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.004235bc
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x451804
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x4697a4]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040c2bc
test eax, eax
je 0x44fb52
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.004085e8
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c2e4
test eax, eax
je 0x44fb66
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404268
mov eax, dword [0x46968c]
cmp byte [eax], 0
jne 0x44fb9a
mov eax, ebx
call fcn.0044fd0c
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.004519e0
mov eax, ebx
call fcn.004523a4
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x44fbda
call fcn.00403624
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44ff8c
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x46abb0]
cmp dword [eax + 0x30], 0
je 0x450036
cmp dword [ebx + 0x94], 0
jne 0x450030
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x44ff1c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x450030
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x44fff6
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x450030
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00413bcc
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x450005
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x450b98
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x450bcd
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004040e8
jmp 0x450bda
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0040404c
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x451bbc
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x451bfd
mov eax, esi
call fcn.00438488
test al, al
je 0x451bfd
mov eax, dword [ebx + 0x84]
call fcn.00438184
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x451bfd
push 0
mov eax, dword [ebx + 0x84]
call fcn.00438184
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x455334
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x455362
mov eax, ebx
call fcn.00455de8
cmp dword [ebx + 0x40], 0
je 0x45535b
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x4553d3
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x4553c5
cmp dword [ebx + 8], 0
je 0x455384
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x455396
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4553c5
cmp dword [ebx + 8], 0
je 0x455377
cmp eax, 3
je 0x4553a9
dec eax
jne 0x455377
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x455377
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x455377
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x4553f1
cmp dword [ebx + 0x14], 0xcc
je 0x4553f1
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.004553fc
pop ebx
ret
Function at 0x465bbc
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004044a8
mov eax, dword [ebp - 8]
call fcn.004044a8
xor eax, eax
push ebp
push 0x465d24
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00403ff8
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 4]
call fcn.004044b8
mov edi, eax
push edi
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x465cfc
mov eax, ebx
call fcn.004026bc
mov dword [ebp - 0x24], eax
xor eax, eax
push ebp
push 0x465cf5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x24]
push eax
push ebx
mov eax, dword [ebp - 0x18]
push eax
push edi
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x465cdf
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x465d34
mov eax, dword [ebp - 0x24]
push eax
call sub.version.dll_VerQueryValueA
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 0x1c]
movsx eax, word [eax + 2]
mov edx, 4
call fcn.00408000
mov eax, dword [ebp - 0x28]
push eax
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 0x1c]
movsx eax, word [eax]
mov edx, 4
call fcn.00408000
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 0xc]
pop ecx
call fcn.00404304
push 0x465d58
push dword [ebp - 0xc]
push 0x465d70
push dword [ebp - 8]
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00404378
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x10]
call fcn.004044b8
push eax
mov eax, dword [ebp - 0x24]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x465cdf
mov eax, esi
mov edx, dword [ebp - 0x20]
call fcn.004041f0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x465cfc
mov eax, dword [ebp - 0x24]
call fcn.004026dc
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x465d2b
lea eax, [ebp - 0x2c]
mov edx, 2
call fcn.0040401c
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.0040401c
ret

Function at 0x4664b4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef0
push ebx
xor ebx, ebx
mov dword [ebp - 0x110], ebx
mov ebx, ecx
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.004044a8
xor eax, eax
push ebp
push 0x46656b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
lea eax, [ebp - 0x109]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
mov eax, ebx
lea edx, [ebp - 0x109]
mov ecx, 0x105
call fcn.00404268
lea eax, [ebp - 0x110]
push eax
mov eax, dword [ebx]
call fcn.004042b8
mov edx, eax
mov eax, dword [ebx]
mov ecx, 1
call fcn.00404518
mov eax, dword [ebp - 0x110]
mov edx, 0x466580
call fcn.00404404
je 0x466540
mov edx, dword [ebx]
mov eax, ebx
mov ecx, 0x466580
call fcn.00404304
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.004042c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x466572
lea eax, [ebp - 0x110]
call fcn.00403ff8
lea eax, [ebp - 4]
call fcn.00403ff8
ret
Function at 0x402ca5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
pushal
call 0x402cb4
pop dword [ebp - 4]
mov eax, 0xd0f5c2fe
add eax, 0x2f4a69b6
sub dword [ebp - 4], eax
mov dword [ebp - 0x14], 0x8c22eda
sub dword [ebp - 0x14], 0xba6fe98f
mov dword [ebp - 0x10], 0x5ed0ccfa
sub dword [ebp - 0x10], 0x2c9d80b5
mov dword [ebp - 0xc], 0xc216be16
sub dword [ebp - 0xc], 0x75ca79e8
mov dword [ebp - 8], 0x81847d1f
add dword [ebp - 8], 0x7e7b82e1
lea eax, [ebp - 0x14]
push eax
mov eax, 0xdee3e5c8
add eax, 0x215c8b7c
add eax, dword [ebp - 4]
call dword [eax]
mov dword [ebp - 0x14], 0xfc702676
sub dword [ebp - 0x14], 0x87fdbd20
mov dword [ebp - 0x10], 0xb263c5f0
add dword [ebp - 0x10], 0x8f089b85
mov dword [ebp - 0xc], 0xfc2cb6ac
sub dword [ebp - 0xc], 0x98bd4a40
mov dword [ebp - 8], 0x667bc20a
sub dword [ebp - 8], 0x667bc20a
lea ebx, [ebp - 0x14]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 4]
call dword [eax]
push 0x40
push 0x1000
push 0x375bb
push 0
call eax
mov ecx, 0xef513152
sub ecx, 0xef50e7c7
xor edx, edx
add edx, eax
mov esi, 0x1aa99e8f
sub esi, 0x1a663e8f
add esi, dword [ebp - 4]
mov ebx, 0x1f1e070a
mov edi, dword [esi]
xor edi, ebx
mov dword [edx], edi
add edx, 0x566de26f
add edx, 0xa9921d95
add esi, 0x4e3c917
sub esi, 0x4e3c913
loop 0x402dcd
add eax, 0x9064d2d8
sub eax, 0x9063b9d9
xor ebx, ebx
add ebx, eax
add eax, 0x6270f81f
add eax, 0x9d8f07e6
mov ecx, 0x400000
add ecx, dword [ebp - 4]
call ebx
leave
ret
Function at 0x402f4b
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
cmp eax, edi
jl 0x402f78
mov ecx, dword [0x423fb8]
push edi
add eax, ecx
push edi
push eax
mov dword [0x417104], eax
push dword [0x409018]
call dword [sym.imp.kernel32.dll_SetFilePointer]
push 4
pop esi
push esi
call fcn.00403076
cmp eax, edi
jl 0x40306f
lea eax, [ebp - 4]
mov ebx, dword [sym.imp.kernel32.dll_ReadFile]
push edi
push eax
lea eax, [ebp + 8]
push esi
push eax
push dword [0x409018]
call ebx
test eax, eax
je 0x40306c
cmp dword [ebp - 4], esi
jne 0x40306c
push dword [ebp + 8]
add dword [0x417104], esi
call fcn.00403076
cmp eax, edi
mov dword [ebp - 8], eax
jl 0x40306f
cmp dword [ebp + 0x10], edi
jne 0x40303b
cmp dword [ebp + 8], edi
jle 0x403067
mov esi, 0x413100
mov edi, 0x4000
cmp dword [ebp + 8], edi
jge 0x402feb
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push 0
push eax
push edi
push esi
push dword [0x409018]
call ebx
test eax, eax
je 0x40306c
cmp edi, dword [ebp - 4]
jne 0x40306c
lea eax, [ebp + 0x14]
push 0
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x403037
cmp dword [ebp + 0x14], edi
jne 0x403037
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
sub dword [ebp + 8], eax
add dword [0x417104], eax
cmp dword [ebp + 8], 0
jg 0x402fde
jmp 0x403067
push 0xfffffffffffffffe
jmp 0x40306e
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x403046
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push edi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x409018]
call ebx
test eax, eax
je 0x40306c
mov eax, dword [ebp - 4]
add dword [0x417104], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x40306f
push 0xfffffffffffffffd
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x403076
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [0x417104]
sub esi, dword [0x40b070]
push edi
add esi, dword [esp + 0x18]
call dword [sym.imp.kernel32.dll_GetTickCount]
xor ebx, ebx
add eax, 0x1f4
cmp esi, ebx
mov dword [0x423f6c], eax
jle 0x4031e0
push dword [0x41f114]
call fcn.00403224
push ebx
push ebx
push dword [0x40b070]
push dword [0x409018]
call dword [sym.imp.kernel32.dll_SetFilePointer]
mov dword [0x41f110], esi
mov dword [0x417100], ebx
mov ebp, 0x40b100
mov eax, dword [0x417108]
mov edi, 0x4000
sub eax, dword [0x41f114]
cmp eax, edi
jg 0x4030eb
mov edi, eax
mov esi, 0x413100
push edi
push esi
call fcn.00402ca5
test eax, eax
je 0x4031d2
add dword [0x41f114], edi
mov dword [0x40b090], esi
mov dword [0x40b094], edi
cmp dword [0x423f70], ebx
je 0x403142
cmp dword [0x424000], ebx
jne 0x403142
mov eax, dword [0x41f110]
push ebx
sub eax, dword [0x417104]
sub eax, dword [esp + 0x1c]
add eax, dword [0x40b070]
mov dword [0x417100], eax
call fcn.00402ca5
pop ecx
mov ecx, 0x40b078
mov dword [0x40b098], ebp
mov dword [0x40b09c], 0x8000
call fcn.00402ca5
test eax, eax
jl 0x4031db
mov esi, dword [0x40b098]
sub esi, ebp
je 0x40319c
lea eax, [esp + 0x10]
push ebx
push eax
push esi
push ebp
push dword [0x409018]
call dword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x4031d7
cmp esi, dword [esp + 0x10]
jne 0x4031d7
add dword [0x40b070], esi
cmp dword [0x40b094], ebx
jne 0x403111
jmp 0x4031a8
cmp dword [0x40b094], ebx
jne 0x4031db
cmp edi, ebx
je 0x4031db
mov eax, dword [0x417104]
mov ecx, eax
sub ecx, dword [0x40b070]
add ecx, dword [esp + 0x18]
test ecx, ecx
jg 0x4030d5
push ebx
push ebx
push eax
push dword [0x409018]
call dword [sym.imp.kernel32.dll_SetFilePointer]
jmp 0x4031e0
or eax, 0xffffffff
jmp 0x4031ea
push 0xfffffffffffffffe
jmp 0x4031dd
push 0xfffffffffffffffd
pop eax
jmp 0x4031ea
push 1
call fcn.00402ca5
pop ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
Function at 0x4058f5
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x421968
push esi
call fcn.00405d21
push esi
call fcn.004058a8
mov edi, eax
test edi, edi
jne 0x405916
xor eax, eax
jmp 0x405968
push edi
call fcn.00405f83
test byte [0x423f78], 0x80
je 0x40592f
mov al, byte [edi]
test al, al
je 0x405912
cmp al, 0x5c
je 0x405912
sub edi, esi
jmp 0x405947
call fcn.0040601c
test eax, eax
je 0x405941
test byte [eax], 0x10
je 0x405912
push esi
call fcn.0040585b
push esi
call sub.kernel32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x405933
call fcn.00405814
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x4059d9
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4059f5
and al, 0xfe
push eax
push dword [esp + 8]
call dword [sym.imp.kernel32.dll_SetFileAttributesA]
ret 4

Function at 0x4059f8
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.kernel32.dll_CreateFileA]
ret 0xc

Function at 0x405a27
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
dec edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.kernel32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.kernel32.dll_GetTempFileNameA]
test eax, eax
jne 0x405a6b
test edi, edi
jne 0x405a32
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405a65
Function at 0x405a6f
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 2
call fcn.004060b1
test eax, eax
mov esi, dword [esp + 0x18]
je 0x405a93
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x405bcc
mov ebx, dword [sym.imp.kernel32.dll_GetShortPathNameA]
mov dword [0x4226f0], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x4226f0
je 0x405ad7
push 1
push 0
push esi
call fcn.004059f8
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405bd2
cmp eax, edi
jg 0x405bd2
mov esi, 0x422168
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405bd2
cmp eax, edi
jg 0x405bd2
push esi
push ebp
push str._s_s_r_n
push 0x421d68
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x423f70]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00402ca5
push 4
push 0xc0000000
push esi
call fcn.004059f8
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x405bcc
push 0
push ebp
call dword [sym.imp.kernel32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.kernel32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x405bc5
lea eax, [esp + 0x18]
push 0
push eax
push edi
push esi
push ebp
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x405bc5
cmp edi, dword [esp + 0x18]
jne 0x405bc5
push str._Rename__r_n
push esi
call fcn.0040596d
test eax, eax
jne 0x405bd9
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call fcn.00405d21
add edi, 0xa
mov eax, edi
push ebx
add eax, esi
push 0x421d68
push eax
call fcn.004059b9
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.kernel32.dll_SetFilePointer]
lea eax, [esp + 0x18]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [sym.imp.kernel32.dll_WriteFile]
push esi
call dword [sym.imp.kernel32.dll_GlobalFree]
push ebp
call dword [sym.imp.kernel32.dll_CloseHandle]
inc dword [0x423ff0]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x409404
push eax
call fcn.0040596d
test eax, eax
je 0x405b90
inc eax
lea ecx, [esi + edi]
cmp eax, ecx
mov ebp, eax
jae 0x405c00
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x405bf5
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x405b92
Function at 0x401410
Capabilities:
Delete file

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x401427
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x401429
xor eax, eax
test eax, eax
je 0x40143a
push eax
call fcn.00402590
add esp, 4
or eax, 0xffffffff
ret
xor eax, eax
ret

Function at 0x401570
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x401593
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00402590
add esp, 4
or eax, 0xffffffff
ret
test al, 1
je 0x4015b6
test byte [esp + 8], 2
je 0x4015b6
mov dword [0x40eea8], 0xd
mov dword [0x40eeac], 5
or eax, 0xffffffff
ret
xor eax, eax
ret

Function at 0x401920
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x40eef0]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x40193f
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test eax, eax
mov dword [0x40eeec], 1
mov byte [0x40eee8], bl
jne 0x401999
mov ecx, dword [0x410508]
test ecx, ecx
je 0x401987
mov esi, dword [0x410504]
sub esi, 4
cmp esi, ecx
jb 0x401987
mov eax, dword [esi]
test eax, eax
je 0x401980
call eax
mov ecx, dword [0x410508]
sub esi, 4
cmp esi, ecx
jae 0x401972
push 0x40c01c
push 0x40c014
add al, ch
cmp al, byte [eax]
add byte [eax], al
add esp, 8
push 0x40c024
push 0x40c020
call fcn.004019d0
add esp, 8
test ebx, ebx
jne 0x4019c0
push ebp
mov dword [0x40eef0], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret

Function at 0x4021d0
Capabilities:
Create directory

Disassembly:
mov eax, dword [esp + 4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x4021e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4021eb
xor eax, eax
test eax, eax
je 0x4021fc
push eax
call fcn.00402590
add esp, 4
or eax, 0xffffffff
ret
xor eax, eax
ret

Function at 0x402560
Capabilities:
Terminate process

Disassembly:
cmp dword [0x40ef08], 2
je 0x40256e
call fcn.00406aa0
mov eax, dword [esp + 4]
push eax
call fcn.00406ae0
add esp, 4
push 0xff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x403420
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [0x40f4e0]
sub esp, 0x41c
cmp eax, ecx
push ebx
push ebp
push esi
push edi
jae 0x4035cd
mov ecx, eax
mov esi, eax
sar ecx, 5
and esi, 0x1f
mov edx, dword [ecx*4 + 0x40f3e0]
lea edi, [ecx*4 + 0x40f3e0]
shl esi, 3
mov dword [esp + 0x24], edi
mov dword [esp + 0x14], esi
mov cl, byte [esi + edx + 4]
test cl, 1
je 0x4035cd
mov ebx, dword [esp + 0x438]
xor ebp, ebp
cmp ebx, ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x20], ebp
jne 0x40348e
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
test cl, 0x20
je 0x40349f
push 2
push ebp
push eax
call fcn.004046d0
add esp, 0xc
mov eax, dword [edi]
add eax, esi
test byte [eax + 4], 0x80
je 0x4035fe
mov ebp, dword [esp + 0x434]
mov dword [esp + 0x18], 0
test ebx, ebx
mov edi, ebp
jbe 0x403549
lea eax, [esp + 0x28]
mov ecx, edi
sub ecx, ebp
cmp ecx, ebx
jae 0x4034fa
mov cl, byte [edi]
inc edi
cmp cl, 0xa
jne 0x4034e7
mov esi, dword [esp + 0x20]
mov byte [eax], 0xd
inc esi
inc eax
mov dword [esp + 0x20], esi
mov byte [eax], cl
inc eax
mov edx, eax
lea ecx, [esp + 0x28]
sub edx, ecx
cmp edx, 0x400
jl 0x4034ca
mov esi, eax
lea edx, [esp + 0x28]
lea eax, [esp + 0x1c]
sub esi, edx
mov edx, dword [esp + 0x24]
push 0
push eax
lea ecx, [esp + 0x30]
mov eax, dword [edx]
push esi
push ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + eax]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4035ef
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
add edx, eax
cmp eax, esi
mov dword [esp + 0x10], edx
jl 0x403545
mov eax, edi
sub eax, ebp
cmp eax, ebx
jb 0x4034c6
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4035be
mov eax, dword [esp + 0x18]
test eax, eax
je 0x403592
cmp eax, 5
jne 0x40357b
mov dword [0x40eeac], eax
mov dword [0x40eea8], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
push eax
call fcn.00402590
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
test byte [esi + edx + 4], 0x40
je 0x4035b2
cmp byte [ebp], 0x1a
jne 0x4035b2
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x40eea8], 0x1c
jmp 0x4035d7
sub eax, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x41c
ret
mov dword [0x40eea8], 9
pop edi
pop esi
pop ebp
mov dword [0x40eeac], 0
or eax, 0xffffffff
pop ebx
add esp, 0x41c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x403545
mov edx, dword [eax]
lea ecx, [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x438]
push ecx
push ebx
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40362f
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
jmp 0x403549
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
jmp 0x403549