joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42ec10
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push edi
mov dword [ebp - 0x104], 0
mov dword [ebp - 0x10c], 0
mov ax, word [0x449aa4]
mov word [ebp - 0x100], ax
mov ecx, 0x3f
xor eax, eax
lea edi, [ebp - 0xfe]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp - 0x108], 0
cmp dword [0x448b1c], 0
je 0x42ed9d
mov ecx, dword [0x448b4c]
and ecx, 0x200
test ecx, ecx
jne 0x42ec78
jmp 0x42edb2
call fcn.0041dcdf
test eax, eax
jne 0x42ec86
jmp 0x42edb2
push 0x447e8c
push 0x448f84
push 0x81
push 0
push 4
call fcn.0041b8d1
add esp, 0x14
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
push str.W95SCM_s
lea ecx, [ebp - 0x100]
push ecx
mov edx, dword [0x449ba0]
call dword [edx + 0x4cc]
add esp, 0xc
lea eax, [ebp - 0x100]
push eax
push 8
push 0
push 4
mov ecx, dword [0x449ba8]
push ecx
push 0xffffffffffffffff
mov edx, dword [0x449ba0]
call dword [edx + 0x9c]
mov dword [ebp - 0x108], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0xb7
jne 0x42ed07
jmp 0x42edb2
cmp dword [ebp - 0x108], 0
je 0x42ed9b
push 0
push 0
push 0
push 2
mov eax, dword [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [0x449a9c], eax
cmp dword [0x449a9c], 0
jne 0x42ed39
jmp 0x42edb2
push 0
push 0
push 0
push 2
call fcn.0042f186
add esp, 0x10
push 0
push 0
push 0x42ee08
call dword [sym.imp.MSVCRT.dll__beginthread]
add esp, 0xc
cmp eax, 0xffffffff
jne 0x42ed62
jmp 0x42edb2
call fcn.0041e21f
test eax, eax
jne 0x42ed6d
jmp 0x42edb2
call fcn.0041f0a4
test eax, eax
jne 0x42ed78
jmp 0x42edb2
push 0xffffffffffffffff
mov ecx, dword [0x44b940]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0xf
call fcn.0040fd71
add esp, 4
mov dword [ebp - 0x104], 1
jmp 0x42edb2
mov edx, dword [ebp + 8]
push edx
mov eax, dword [0x449ba0]
call dword [eax + 0x47c]
mov dword [ebp - 0x104], eax
call fcn.0042f3b3
cmp dword [0x449a9c], 0
je 0x42ede7
push 0
push 0
push 0
push 1
call fcn.0042f186
add esp, 0x10
mov ecx, dword [0x449a9c]
push ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov dword [0x449a9c], 0
cmp dword [ebp - 0x108], 0
je 0x42edfd
mov edx, dword [ebp - 0x108]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x104]
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x430922
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x435470
push 0x430760
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
push 1
call dword [sym.imp.MSVCRT.dll___set_app_type]
pop ecx
or dword [0x44b98c], 0xffffffff
or dword [0x44b990], 0xffffffff
call dword [sym.imp.MSVCRT.dll___p__fmode]
mov ecx, dword [0x449aec]
mov dword [eax], ecx
call dword [sym.imp.MSVCRT.dll___p__commode]
mov ecx, dword [0x449ae8]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCRT.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x44b994], eax
call fcn.00430a71
cmp dword [0x4481f0], 0
jne 0x4309a5
push 0x430a6e
call dword [sym.imp.MSVCRT.dll___setusermatherr]
pop ecx
call fcn.00430a56
push 0x43700c
push 0x437008
call sub.MSVCRT.dll__initterm
mov eax, dword [0x449ae4]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x449ae0]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.MSVCRT.dll___wgetmainargs]
push 0x437004
push section..data
call sub.MSVCRT.dll__initterm
call dword [sym.imp.MSVCRT.dll___p___winitenv]
mov ecx, dword [ebp - 0x20]
mov dword [eax], ecx
push dword [ebp - 0x20]
push dword [ebp - 0x2c]
push dword [ebp - 0x1c]
call fcn.0041ccf0
add esp, 0x30
mov dword [ebp - 0x24], eax
push eax
call dword [sym.imp.MSVCRT.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x30], ecx
push eax
push ecx
call sub.MSVCRT.dll__XcptFilter
pop ecx
pop ecx
ret
Function at 0x40118c
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov edi, eax
lea eax, [edi + 0x1c]
push eax
call fcn.00401000
mov esi, eax
and dword [esi + 0x10], 0
pop ecx
inc edi
push edi
lea eax, [esi + 0x18]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov edi, dword [ebp + 0xc]
test edi, edi
mov dword [esi + 0xc], eax
jne 0x4011cb
lea edi, [esi + 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
call fcn.00401000
pop ecx
push edi
push eax
mov dword [esi + 0x14], eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x6b
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.USER32.dll_LoadCursorA]
push edi
push edi
push 0x31
push ebx
mov dword [esi + 8], eax
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [ebp - 0x3c]
push ecx
push 0x3c
push eax
call dword [sym.imp.GDI32.dll_GetObjectA]
lea eax, [ebp - 0x3c]
push eax
mov byte [ebp - 0x27], 1
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
push 0xfffffffffffffff0
push ebx
mov dword [esi + 4], eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov edi, dword [sym.imp.USER32.dll_SetWindowLongA]
or eax, 0x100
push eax
push 0xfffffffffffffff0
push ebx
call edi
push esi
push 0xffffffffffffffeb
push ebx
call edi
push 0x401028
push 0xfffffffffffffffc
push ebx
call edi
pop edi
mov dword [esi], eax
pop esi
pop ebx
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push esi
push edi
lea eax, [ebp - 4]
push eax
push 0xf003f
xor esi, esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, esi
jne 0x4012d6
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x40129f
lea eax, [ebp - 0x208]
push eax
push dword [ebp - 4]
call fcn.0040125b
test al, al
pop ecx
pop ecx
je 0x4012d2
push esi
push esi
push esi
push esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x208]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 8], 0x200
call edi
test eax, eax
je 0x40128a
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
neg eax
sbb eax, eax
inc eax
jmp 0x4012e0
xor al, al
jmp 0x4012e0
xor ecx, ecx
cmp eax, 2
sete cl
mov al, cl
pop edi
pop esi
leave
ret
Function at 0x401310
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push edi
push dword [ebp + 0xc]
lea eax, [ebp - 0x48]
push str.SoftwareSizerMenu_03d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
xor edi, edi
push edi
push 0xf003f
push edi
push edi
push edi
lea eax, [ebp - 0x48]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4013de
push esi
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
push esi
push 1
push edi
push str.Description
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [esi + 0x20]
push str.Width
push dword [ebp - 4]
call fcn.004012f6
push dword [esi + 0x24]
push str.Height
push dword [ebp - 4]
call fcn.004012f6
movzx eax, byte [esi + 0x28]
push eax
push str.NoResize
push dword [ebp - 4]
call fcn.004012f6
push dword [esi + 0x2c]
push str.Relocate
push dword [ebp - 4]
call fcn.004012f6
push dword [esi + 0x30]
push 0x40319c
push dword [ebp - 4]
call fcn.004012f6
push dword [esi + 0x34]
push str.Left
push dword [ebp - 4]
call fcn.004012f6
add esp, 0x48
mov al, 1
pop esi
jmp 0x4013e0
xor al, al
pop edi
leave
ret

Function at 0x401580
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push esi
push edi
call fcn.00401551
call dword [sym.imp.USER32.dll_CreatePopupMenu]
mov dword [0x404094], eax
lea eax, [ebp - 4]
xor edi, edi
push eax
mov dword [ebp - 4], edi
call sub.sizer.dll_GetResizeInfo
cmp dword [ebp - 4], edi
mov esi, dword [sym.imp.USER32.dll_AppendMenuA]
pop ecx
mov dword [0x404098], eax
jle 0x401697
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str.Resize__
lea eax, [ebp - 0x108]
push eax
call ebx
push 0x40
lea eax, [ebp - 0x100]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextA]
cmp eax, edi
jne 0x4015f6
push str._No_Title_
lea eax, [ebp - 0x100]
jmp 0x401606
cmp eax, 0x28
jle 0x401609
push 0x403260
lea eax, [ebp - 0xe0]
push eax
call ebx
push str.__to:
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x108]
push eax
push edi
push 2
push dword [0x404094]
call esi
cmp dword [ebp - 4], 0
jle 0x401684
and dword [ebp - 8], 0
push 0x403254
lea eax, [ebp - 0x108]
push eax
call ebx
mov eax, dword [0x404098]
mov ecx, dword [ebp - 8]
push 0xfa
add ecx, eax
push ecx
lea eax, [ebp - 0x106]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [ebp - 0x108]
push eax
lea eax, [edi + 0x3e8]
push eax
push 0
push dword [0x404094]
call esi
add dword [ebp - 8], 0x38
inc edi
cmp edi, dword [ebp - 4]
jl 0x401637
push 0
push 0
push 0x800
push dword [0x404094]
call esi
xor edi, edi
push str.Configure_Sizer...
mov ebx, 0x3e6
push ebx
push edi
push dword [0x404094]
call esi
push edi
push ebx
push dword [0x404094]
call dword [sym.imp.USER32.dll_SetMenuDefaultItem]
push str.About_Sizer...
push 0x3e5
push edi
push dword [0x404094]
call esi
push str.Exit
push 0x3e7
push edi
push dword [0x404094]
call esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401774
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 0xc]
push eax
push str.SoftwareSizer
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4017bf
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0
push str.ShowTrayIcon
push dword [ebp - 0xc]
mov dword [ebp - 4], 1
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [ebp - 4]
leave
ret
xor eax, eax
inc eax
leave
ret

Function at 0x4017c4
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
xor esi, esi
push esi
lea eax, [ebp - 8]
push eax
push esi
push 0xf003f
push esi
push esi
push esi
push str.SoftwareSizer
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x40180b
mov eax, dword [ebp + 8]
push 4
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 4
push esi
push str.ShowTrayIcon
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop esi
leave
ret

Function at 0x4026c8
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
mov ebx, str.Sizer
push ebx
mov edi, str.SIZERV300
push edi
call dword [sym.imp.USER32.dll_FindWindowA]
xor esi, esi
cmp eax, esi
je 0x4026fe
push esi
push esi
push 0x408
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret
call fcn.004016e4
call fcn.004013e3
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x66
push eax
mov dword [0x404088], eax
mov dword [ebp - 0x44], 8
mov dword [ebp - 0x40], 0x402474
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], eax
call dword [sym.imp.USER32.dll_LoadIconA]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x44]
push eax
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], edi
call dword [sym.imp.USER32.dll_RegisterClassA]
push esi
push dword [0x404088]
mov eax, 0xc8
push esi
push esi
push 0xa
push 0xa
push eax
push eax
push 0x84000000
push ebx
push edi
push esi
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x404020], eax
call fcn.00401774
test eax, eax
je 0x402782
call fcn.004014ba
push dword [0x404020]
call sub.sizer.dll_AddHook
mov edi, dword [sym.imp.USER32.dll_GetMessageA]
pop ecx
jmp 0x4027aa
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
push esi
push esi
lea eax, [ebp - 0x1c]
push esi
push eax
call edi
test eax, eax
jne 0x402796
call fcn.00401533
call fcn.00401551
call sub.sizer.dll_RemoveHook
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4e02d0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x87000]
push edi
jmp 0x4e02ea
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4e02f1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4e02e0
mov eax, 1
add ebx, ebx
jne 0x4e0303
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4e0314
jne 0x4e0333
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4e0333
dec eax
add ebx, ebx
jne 0x4e0320
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4e02f8
add ebx, ebx
jne 0x4e032f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4e0385
xor ecx, ecx
sub eax, 3
jb 0x4e034b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4e03ba
sar eax, 1
mov ebp, eax
jmp 0x4e0356
add ebx, ebx
jne 0x4e0356
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4e0324
inc ecx
add ebx, ebx
jne 0x4e0364
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4e0324
add ebx, ebx
jne 0x4e0371
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4e0366
jne 0x4e0382
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4e0366
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4e03a4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4e0396
jmp 0x4e02e6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4e03a4
add edi, ecx
jmp 0x4e02e6
pop esi
mov edi, esi
mov ecx, 0x3ea9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4e03c2
cmp byte [edi], 0x11
jne 0x4e03c2
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4e03c7
lea edi, [esi + 0xd9000]
mov eax, dword [edi]
or eax, eax
je 0x4e043f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xe6698]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xe683c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4e03f4
mov ecx, edi
jns 0x4e0423
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 + 0xe6844]
or eax, eax
je 0x4e0439
mov dword [ebx], eax
add ebx, 4
jmp 0x4e0411
call dword [esi + 0xe6840]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x4e0470
cmp al, 0xef
ja 0x4e0463
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x4e0445
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x4e0452
mov ebp, dword [esi + 0xe6848]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
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 0x4e04a4
sub esp, 0xffffff80
jmp 0x42800a
Function at 0x462580
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
cmp edx, 1
jle 0x46259e
push esi
lea ecx, [esp + 0x18]
dec edx
mov esi, dword [ecx]
add ecx, 0xc
xor eax, esi
dec edx
jne 0x462593
pop esi
ret
Function at 0x401000
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
mov eax, dword [0x4dd063]
shl eax, 2
mov dword [0x4dd067], eax
push edi
push ecx
xor eax, eax
mov edi, 0x5ec020
mov ecx, 0x62ed38
cmp ecx, edi
jbe 0x401024
sub ecx, edi
cld
rep stosb byte es:[edi], al
pop ecx
pop edi
push 0
call fcn.004cea37
pop ecx
push 0x4dd02c
push 0
call sub.KERNEL32.dll_GetModuleHandleA
mov dword [0x4dd06b], eax
push 0
jmp fcn.004da0e4

Function at 0x4017b8
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
mov ebx, dword [ebp + 8]
mov eax, dword [0x4dd0d4]
dec eax
je 0x40187c
mov dword [0x4dd0d4], 1
push 0
call sub.KERNEL32.dll_GetProcessHeap
push eax
call sub.KERNEL32.dll_HeapCompact
call fcn.004d8f88
push 0
call sub.USER32.dll_MessageBeep
lea edx, [ebp - 0x20]
push edx
call sub.KERNEL32.dll_GlobalMemoryStatus
test ebx, ebx
jne 0x401804
mov ebx, dword [ebp - 0x18]
jmp 0x401809
mov eax, dword [ebp - 0x14]
add ebx, eax
push 4
push 0x1000
push ebx
push 0
call sub.KERNEL32.dll_VirtualAlloc
mov esi, eax
test esi, esi
je 0x401874
xor ecx, ecx
xor eax, eax
mov edx, esi
cmp ebx, eax
jbe 0x401840
mov byte [edx], 0
add ecx, 0x800
add edx, 0x1000
add eax, 0x1000
cmp ebx, eax
ja 0x401828
mov eax, 0x800
lea edx, [esi + 0x800]
cmp ebx, eax
jbe 0x401867
mov byte [edx], 0
add ecx, 0x800
add edx, 0x1000
add eax, 0x1000
cmp ebx, eax
ja 0x40184f
push 0x8000
push 0
push esi
call sub.KERNEL32.dll_VirtualFree
xor ecx, ecx
mov dword [0x4dd0d4], ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403f30
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
or ebx, 0xffffffff
mov esi, dword [ebp + 8]
push 0x15
push esi
call fcn.00403da4
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x403f5e
push 0x11
push esi
call fcn.00403da4
add esp, 8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x403f7c
push 0
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_GetFileSize
mov ebx, eax
lea eax, [ebp - 4]
push eax
call fcn.00403e78
pop ecx
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x4040f0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
test esi, esi
jne 0x404109
push ebx
call fcn.00404018
pop ecx
jmp 0x40415d
push ebx
call fcn.00404018
pop ecx
test eax, eax
jne 0x404118
xor eax, eax
jmp 0x40415d
push ebx
call fcn.00403f84
pop ecx
mov edi, eax
push 2
push esi
push ebx
call fcn.00403fe8
add esp, 0xc
push ebx
call sub.KERNEL32.dll_SetEndOfFile
test eax, eax
jne 0x404142
push ebx
call fcn.00404018
pop ecx
xor eax, eax
jmp 0x40415d
push edi
push ebx
call fcn.00403fa4
add esp, 8
mov dword [0x4dd074], 0x613
push ebx
call fcn.00404018
pop ecx
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x40419c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
lea esi, [ebp + 0x10]
cmp dword [ebp + 0x10], 0
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
jne 0x4041b6
mov eax, dword [ebp + 0x10]
jmp 0x4041fd
mov edx, dword [ebp + 0x10]
push edx
push 0
push ebx
call fcn.004cde6c
add esp, 0xc
push 0
push esi
mov ecx, dword [ebp + 0x10]
push ecx
push ebx
push edi
call sub.KERNEL32.dll_ReadFile
mov ebx, eax
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x4041e7
test ebx, ebx
je 0x4041e7
push edi
call fcn.00404018
pop ecx
test ebx, ebx
jne 0x4041f0
xor edx, edx
mov dword [ebp + 0x10], edx
mov dword [0x4dd074], 0x615
mov eax, dword [ebp + 0x10]
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4042b4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, dword [ebp + 8]
lea esi, [ebp + 0x10]
cmp dword [ebp + 0x10], 0
jne 0x4042ca
mov eax, dword [ebp + 0x10]
jmp 0x404319
push ebx
call fcn.00404058
pop ecx
test eax, eax
je 0x4042f1
mov edx, dword [ebp + 0x10]
push edx
push ebx
call fcn.004040f0
add esp, 8
mov ecx, dword [ebp + 0x10]
neg ecx
push ecx
push ebx
call fcn.004040a4
add esp, 8
push 0
push esi
mov eax, dword [ebp + 0x10]
push eax
mov edx, dword [ebp + 0xc]
push edx
push ebx
call sub.KERNEL32.dll_WriteFile
test eax, eax
jne 0x40430a
xor eax, eax
jmp 0x404319
mov dword [0x4dd074], 0x617
mov eax, 1
pop esi
pop ebx
pop ebp
ret

Function at 0x4046a0
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
lea eax, [ebp - 0x18]
push eax
call sub.KERNEL32.dll_GetSystemTime
lea edx, [ebp - 8]
push edx
lea ecx, [ebp - 0x18]
push ecx
call sub.KERNEL32.dll_SystemTimeToFileTime
lea eax, [ebp - 8]
push eax
push 0
push 0
mov edx, dword [ebp + 8]
push edx
call sub.KERNEL32.dll_SetFileTime
mov esp, ebp
pop ebp
ret
Function at 0x404e38
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
push 0x5cb49e
call fcn.004036e4
pop ecx
mov esi, eax
push 0x5cb4b2
call fcn.004036e4
pop ecx
mov edi, eax
push 0x5cb4c5
call fcn.004036e4
pop ecx
mov dword [ebp - 4], eax
push 1
push 0x5cb4d7
call fcn.004038c8
add esp, 8
push 1
push 0x5cb4eb
call fcn.004038c8
add esp, 8
push 1
push 0x5cb4fe
call fcn.004038c8
add esp, 8
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.dll_GetFileAttributesA
cmp eax, 0xffffffff
jne 0x404eab
mov ebx, 0xffffff87
jmp 0x404ebe
push eax
mov eax, dword [ebp + 0xc]
push eax
call sub.KERNEL32.dll_SetFileAttributesA
test eax, eax
jne 0x404ebe
mov ebx, 0xffffff7d
push esi
push 0x5cb510
call fcn.004038c8
add esp, 8
push edi
push 0x5cb524
call fcn.004038c8
add esp, 8
mov eax, dword [ebp - 4]
push eax
push 0x5cb537
call fcn.004038c8
add esp, 8
test ebx, ebx
je 0x404ef3
xor eax, eax
jmp 0x404ef5
mov al, 1
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push 0x5cb549
call fcn.004036e4
pop ecx
mov edi, eax
push 0x5cb55d
call fcn.004036e4
pop ecx
mov dword [ebp - 4], eax
push 0x5cb570
call fcn.004036e4
pop ecx
mov dword [ebp - 8], eax
push 1
push 0x5cb582
call fcn.004038c8
add esp, 8
push 1
push 0x5cb596
call fcn.004038c8
add esp, 8
push 1
push 0x5cb5a9
call fcn.004038c8
add esp, 8
push esi
call sub.KERNEL32.dll_GetFileAttributesA
cmp eax, 0xffffffff
jne 0x404f73
mov ebx, 0xffffff87
jmp 0x404fdc
test al, 0x80
je 0x404f7c
and eax, 0xffffff7f
test bh, 1
je 0x404f84
or eax, 1
test bh, 2
je 0x404f8c
and eax, 0xfffffffe
test bh, 0x10
je 0x404f94
or eax, 4
test bh, 0x20
je 0x404f9c
and eax, 0xfffffffb
test ebx, 0x10000
je 0x404fa7
or eax, 0x20
test ebx, 0x20000
je 0x404fb2
and eax, 0xffffffdf
test ebx, 0x100000
je 0x404fbd
or eax, 2
test ebx, 0x200000
je 0x404fc8
and eax, 0xfffffffd
push eax
push esi
call sub.KERNEL32.dll_SetFileAttributesA
test eax, eax
jne 0x404fda
mov ebx, 0xffffff73
jmp 0x404fdc
xor ebx, ebx
push edi
push 0x5cb5bb
call fcn.004038c8
add esp, 8
mov eax, dword [ebp - 4]
push eax
push 0x5cb5cf
call fcn.004038c8
add esp, 8
mov edx, dword [ebp - 8]
push edx
push 0x5cb5e2
call fcn.004038c8
add esp, 8
test ebx, ebx
je 0x405014
xor eax, eax
jmp 0x405016
mov al, 1
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret