joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40aefd
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [0x4206e8]
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
mov dword [ebp - 0xc], 4
mov dword [ebp - 4], 0x19
mov edx, dword [ebp + 0xc]
and edx, 0xffff
and edx, 0x2000
test edx, edx
jne 0x40af49
mov eax, dword [ebp + 0xc]
and eax, 0xffff
cmp eax, 0xffffffff
jne 0x40afdf
cmp dword [0x42077c], 0
je 0x40afce
push 0x420780
mov ecx, dword [0x4206e8]
push ecx
call dword [sym.imp.USER32.dll_SetWindowTextA]
push 1
lea edx, [ebp - 0x10]
push edx
mov eax, dword [0x4206e8]
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, dword [0x4206e8]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov dword [ebp - 0x9c], 0
jmp 0x40af9e
mov edx, dword [ebp - 0x9c]
add edx, 1
mov dword [ebp - 0x9c], edx
mov eax, dword [ebp - 0x9c]
cmp eax, dword [0x4206fc]
jge 0x40afc4
push 5
mov ecx, dword [ebp - 0x9c]
mov edx, dword [ecx*4 + 0x420700]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x40af8f
mov dword [0x42077c], 0
push 1
call fcn.0040bfc5
add esp, 4
xor eax, eax
jmp 0x40b167
cmp dword [0x42077c], 0
jne 0x40b033
mov dword [ebp - 0x9c], 0
jmp 0x40b003
mov eax, dword [ebp - 0x9c]
add eax, 1
mov dword [ebp - 0x9c], eax
mov ecx, dword [ebp - 0x9c]
cmp ecx, dword [0x4206fc]
jge 0x40b029
push 0
mov edx, dword [ebp - 0x9c]
mov eax, dword [edx*4 + 0x420700]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x40aff4
mov dword [0x42077c], 1
mov ecx, dword [ebp + 0xc]
and ecx, 0xffff
and ecx, 0x800
test ecx, ecx
je 0x40b052
mov byte [ebp - 0x98], 0
jmp 0x40b0f9
mov edx, dword [ebp + 0xc]
and edx, 0xffff
and edx, 0x10
test edx, edx
je 0x40b0da
mov eax, dword [0x4206e8]
push eax
call dword [sym.imp.USER32.dll_GetParent]
push eax
call dword [sym.imp.USER32.dll_GetMenu]
mov dword [ebp - 0xa0], eax
push 0
mov ecx, dword [ebp + 0x10]
and ecx, 0xffff
push ecx
mov edx, dword [ebp - 0xa0]
push edx
call dword [sym.imp.USER32.dll_GetSubMenu]
push eax
call dword [sym.imp.USER32.dll_GetMenuItemID]
mov word [ebp - 0x14], ax
mov eax, dword [ebp - 0x14]
and eax, 0xffff
cdq
mov ecx, 0x3e8
idiv ecx
imul eax, eax, 0x3e8
mov word [ebp - 0x14], ax
push 0x80
lea edx, [ebp - 0x98]
push edx
mov eax, dword [ebp - 0x14]
and eax, 0xffff
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_LoadStringA]
jmp 0x40b0f9
push 0x80
lea edx, [ebp - 0x98]
push edx
mov eax, dword [ebp + 0x10]
and eax, 0xffff
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_LoadStringA]
push 0xa
lea edx, [ebp - 0x98]
push edx
call fcn.00414bb0
add esp, 8
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jbe 0x40b119
mov eax, dword [ebp - 0x18]
mov byte [eax], 0
lea ecx, [ebp - 0x98]
push ecx
mov edx, dword [0x4206e8]
push edx
call dword [sym.imp.USER32.dll_SetWindowTextA]
push 1
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [0x4206e8]
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov edx, dword [0x4206e8]
push edx
call dword [sym.imp.USER32.dll_UpdateWindow]
xor eax, eax
cmp dword [0x42077c], 0
sete al
push eax
call fcn.0040bfc5
add esp, 4
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x40b370
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x10], 0xffffffff
mov dword [0x4207a8], 1
call sub.WINDCS32.dll_Ordinal_52
push eax
push 0
push 0xffffffffffffffff
call sub.WINDCS32.dll_Ordinal_69
push eax
push str._sTEXTE._1.1iMENUAPPL.INI
push 0x4207ac
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov dword [ebp - 0x14], 0
jmp 0x40b3bc
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x16
jge 0x40b401
mov ecx, dword [ebp - 0x14]
add ecx, 1
push ecx
mov edx, dword [ebp + 8]
push edx
push 0x41e350
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0x4207ac
push 0xffffffffffffffff
push 0x41e35c
lea ecx, [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov edx, dword [ebp - 0x14]
mov dword [edx*4 + 0x4207fc], eax
jmp 0x40b3b3
mov eax, dword [ebp - 0x14]
mov dword [0x420854], eax
mov esp, ebp
pop ebp
ret
Function at 0x40b40d
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push 0x41e360
mov eax, dword [ebp + 0x10]
push eax
call fcn.0041a100
add esp, 8
test eax, eax
jne 0x40b440
cmp dword [0x4207a8], 0
jne 0x40b43e
push 0x41e364
call fcn.0040b370
add esp, 4
jmp 0x40b456
cmp dword [0x4207a8], 0
jne 0x40b456
push 0x41e368
call fcn.0040b370
add esp, 4
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_GetMenu]
push eax
call dword [sym.imp.USER32.dll_GetSubMenu]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x60], 0
jmp 0x40b485
mov edx, dword [ebp - 0x58]
add edx, 1
mov dword [ebp - 0x58], edx
mov eax, dword [ebp - 0x58]
cmp eax, dword [0x420854]
jge 0x40b596
mov ecx, dword [ebp - 0x58]
cmp dword [ecx*4 + 0x4207fc], 0xffffffff
jne 0x40b4a3
jmp 0x40b47c
mov edx, dword [ebp - 0x58]
add edx, 1
push edx
mov eax, dword [ebp + 0x10]
push eax
push 0x41e36c
lea ecx, [ebp - 0xc]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0x4207ac
push 0x1e
lea edx, [ebp - 0x30]
push edx
push 0x420858
push 0x41e378
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x4207ac
push 0x1e
lea ecx, [ebp - 0x50]
push ecx
lea edx, [ebp - 0xc]
push edx
push 0x41e380
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x4207ac
push 0xffffffffffffffff
push 0x41e388
lea ecx, [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 0x5c], eax
mov edx, dword [ebp - 0x5c]
push edx
call sub.WINDCS32.dll_Ordinal_53
push eax
call sub.PROD32.DLL_Ordinal_1
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0041a100
add esp, 8
test eax, eax
je 0x40b542
cmp dword [ebp - 0x54], 0
jne 0x40b566
lea edx, [ebp - 0x50]
push edx
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax*4 + 0x4207fc]
push ecx
push 0x401
mov edx, dword [ebp - 0x60]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.USER32.dll_InsertMenuA]
jmp 0x40b588
lea ecx, [ebp - 0x50]
push ecx
mov edx, dword [ebp - 0x58]
mov eax, dword [edx*4 + 0x4207fc]
push eax
push 0x400
mov ecx, dword [ebp - 0x60]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.USER32.dll_InsertMenuA]
mov eax, dword [ebp - 0x60]
add eax, 1
mov dword [ebp - 0x60], eax
jmp 0x40b47c
mov esp, ebp
pop ebp
ret
Function at 0x40b59a
Capabilities:
Create process on windows
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
push edi
mov al, byte [0x42085c]
mov byte [ebp - 0x90], al
mov ecx, 0x20
xor eax, eax
lea edi, [ebp - 0x8f]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x98], 1
mov dword [ebp - 0x94], 0
jmp 0x40b5e3
mov ecx, dword [ebp - 0x94]
add ecx, 1
mov dword [ebp - 0x94], ecx
mov edx, dword [ebp - 0x94]
cmp edx, dword [0x420854]
jge 0x40b67c
mov eax, dword [ebp + 0xc]
and eax, 0xffff
mov ecx, dword [ebp - 0x94]
xor edx, edx
mov dx, word [ecx*4 + 0x4207fc]
cmp eax, edx
jne 0x40b677
mov eax, dword [ebp - 0x94]
add eax, 1
push eax
mov ecx, dword [ebp + 0x10]
push ecx
push 0x41e390
lea edx, [ebp - 0xc]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0x4207ac
push 0x81
lea eax, [ebp - 0x90]
push eax
push 0x420860
push 0x41e39c
lea ecx, [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 1
lea edx, [ebp - 0x90]
push edx
call dword [sym.imp.KERNEL32.dll_WinExec]
push 0
push 0
push 0x10
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x40b67c
jmp 0x40b5d4
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x40bea4
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0
mov eax, dword [0x420888]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [0x42088c], 0
mov eax, 1
pop ebp
ret
Function at 0x41071b
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [0x41e460]
mov eax, dword [edx]
push eax
call dword [sym.imp.USER32.dll_ScreenToClient]
mov ecx, dword [0x41e460]
mov edx, dword [ecx + 0x36]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x4107a2
mov eax, dword [ebp + 8]
push eax
push 0
push 0
mov ecx, dword [0x41e460]
mov edx, dword [ecx + 0x4a]
push edx
mov eax, dword [0x41e460]
mov ecx, dword [eax + 0x4e]
push ecx
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.00412348
add esp, 0x1c
mov ecx, dword [0x41e460]
mov edx, dword [ecx + 0x36]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
push 0
push 0
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.GDI32.dll_MoveToEx]
push 0
mov eax, dword [ebp - 8]
sub eax, 1
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_LineTo]
mov edx, dword [ebp - 4]
sub edx, 1
push edx
mov eax, dword [ebp - 8]
sub eax, 1
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_LineTo]
mov edx, dword [ebp - 4]
sub edx, 1
push edx
push 0
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.GDI32.dll_LineTo]
push 0
push 0
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_LineTo]
mov edx, dword [0x41e460]
mov eax, dword [edx + 0x12]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0x14], eax
push 0x64
push 0x420a3c
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov eax, dword [0x41e460]
mov ecx, dword [eax + 0x3a]
mov dword [ebp - 0x24], ecx
cmp dword [ebp - 0x24], 0
je 0x410870
cmp dword [ebp - 0x24], 1
je 0x41084d
jmp 0x41088e
push 0x420a3c
call fcn.00414050
add esp, 4
push eax
push 0x420a3c
push 2
push 1
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.GDI32.dll_TextOutA]
jmp 0x41088e
push 0x420a3c
mov eax, dword [0x41e460]
mov ecx, dword [eax + 0x4a]
push ecx
push 0
push 0xffffffffffffffff
mov edx, dword [ebp + 0xc]
push edx
call fcn.0040e66b
add esp, 0x14
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_SelectObject]
mov esp, ebp
pop ebp
ret
Function at 0x411fdc
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x41e460]
mov ecx, dword [eax + 0x46]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.USER32.dll_GetParent]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 4], 0
jne 0x412005
jmp 0x41214b
mov eax, dword [0x41e460]
mov ecx, dword [eax + 0x2a]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x18], 0
jmp 0x412022
mov edx, dword [ebp - 0x20]
add edx, 1
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp + 8]
jg 0x412045
mov ecx, dword [ebp - 0x20]
imul ecx, ecx, 0x26
mov edx, dword [0x41e460]
mov eax, dword [edx + 0x32]
mov edx, dword [ebp - 0x18]
add edx, dword [eax + ecx + 0x14]
mov dword [ebp - 0x18], edx
jmp 0x412019
mov eax, dword [0x41e460]
xor ecx, ecx
mov cx, word [eax + 8]
and ecx, 2
test ecx, ecx
je 0x412066
mov edx, dword [0x41e460]
mov eax, dword [ebp - 0x18]
add eax, dword [edx + 0x1e]
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp - 0xc]
jle 0x4120eb
mov ecx, dword [0x41e460]
mov edx, dword [ebp + 8]
cmp edx, dword [ecx + 0x4a]
jne 0x4120a2
push 0
push 0x3e80004
push 0x114
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
jmp 0x4120eb
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
mov edx, dword [0x41e460]
mov eax, dword [edx + 0x2a]
add eax, dword [ebp + 8]
mov ecx, dword [0x41e460]
sub eax, dword [ecx + 0x4a]
and eax, 0xffff
shl eax, 0x10
or al, 4
push eax
push 0x114
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
push 5
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [ebp + 8], 0
jne 0x412104
push 0
push 4
push 0x114
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [0x41e460]
mov eax, dword [ebp + 8]
cmp eax, dword [edx + 0x2a]
jge 0x41214b
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
mov edx, dword [ebp + 8]
and edx, 0xffff
shl edx, 0x10
or edx, 4
push edx
push 0x114
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push 5
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov esp, ebp
pop ebp
ret
Function at 0x41214f
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x41e460]
mov ecx, dword [eax + 0x46]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.USER32.dll_GetParent]
mov dword [ebp - 8], eax
cmp dword [ebp - 4], 0
jne 0x412178
jmp 0x41221d
mov eax, dword [0x41e460]
mov ecx, dword [eax + 0x2e]
mov edx, dword [0x41e460]
mov eax, dword [edx + 0x26]
lea ecx, [ecx + eax - 1]
cmp dword [ebp + 8], ecx
jle 0x4121d6
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
mov eax, dword [0x41e460]
mov ecx, dword [ebp + 8]
sub ecx, dword [eax + 0x26]
add ecx, 1
and ecx, 0xffff
shl ecx, 0x10
or ecx, 4
push ecx
push 0x115
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
push 5
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [0x41e460]
mov edx, dword [ebp + 8]
cmp edx, dword [ecx + 0x2e]
jge 0x41221d
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
mov ecx, dword [ebp + 8]
and ecx, 0xffff
shl ecx, 0x10
or ecx, 4
push ecx
push 0x115
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
push 5
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov esp, ebp
pop ebp
ret
Function at 0x4130a0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0041333f
test eax, eax
jne 0x4130c1
xor eax, eax
jmp 0x4131d4
mov edx, dword [ebp + 0x10]
push edx
push 0x41e4e4
push 0x421600
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov eax, dword [ebp + 0xc]
push eax
push 0x41e4e8
push 0x4214e0
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov dword [ebp - 0x124], 0x4214e0
push 0x41e4ec
push 0x4214e0
call fcn.00413b8e
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x413131
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x124], ecx
push 0x41e4f0
push 0
call fcn.00413b8e
add esp, 8
mov dword [ebp - 4], eax
jmp 0x41310e
mov edx, dword [ebp - 0x124]
push edx
push 0x421600
call fcn.00413950
add esp, 8
push 0
lea eax, [ebp - 0x98]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call sub.LZ32.dll_LZOpenFileA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x413164
xor eax, eax
jmp 0x4131d4
push 0x1000
lea edx, [ebp - 0x120]
push edx
push 0x421600
call sub.LZ32.dll_LZOpenFileA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
jne 0x413190
mov eax, dword [ebp - 0x10]
push eax
call sub.LZ32.dll_LZClose
xor eax, eax
jmp 0x4131d4
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call sub.LZ32.dll_LZCopy
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x10]
push eax
call sub.LZ32.dll_LZClose
mov ecx, dword [ebp - 0xc]
push ecx
call sub.LZ32.dll_LZClose
cmp dword [ebp - 8], 0
jg 0x4131c5
push 0x421600
call fcn.0041a1b6
add esp, 4
cmp dword [ebp - 8], 0
jge 0x4131cf
xor eax, eax
jmp 0x4131d4
mov eax, 1
mov esp, ebp
pop ebp
ret 0xc

Function at 0x41351c
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov dword [ebp - 0x118], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0
lea edx, [ebp - 0x104]
push edx
call dword [sym.imp.KERNEL32.dll__lopen]
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x124], 0xffffffff
je 0x413593
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x120]
push ecx
lea edx, [ebp - 0x10c]
push edx
mov eax, dword [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
mov dword [ebp - 0x118], eax
mov ecx, dword [ebp - 0x124]
push ecx
call dword [sym.imp.KERNEL32.dll__lclose]
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp dword [ebp - 0x118], 1
jne 0x413600
push 2
lea ecx, [ebp - 0x104]
push ecx
call dword [sym.imp.KERNEL32.dll__lopen]
mov dword [ebp - 0x124], eax
cmp dword [ebp - 0x124], 0xffffffff
je 0x413600
lea edx, [ebp - 0x114]
push edx
lea eax, [ebp - 0x120]
push eax
lea ecx, [ebp - 0x10c]
push ecx
mov edx, dword [ebp - 0x124]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov dword [ebp - 0x118], eax
mov eax, dword [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll__lclose]
mov eax, dword [ebp - 0x118]
mov esp, ebp
pop ebp
ret
Function at 0x413712
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24c
mov dword [ebp - 4], 1
push 0x41e538
call fcn.00414050
add esp, 4
mov ecx, 0x104
sub ecx, eax
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 0x41e53c
lea ecx, [ebp - 0x24c]
push ecx
call fcn.00413950
add esp, 8
lea edx, [ebp - 0x148]
push edx
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x413783
mov eax, 1
jmp 0x41388d
push 0x41e540
lea ecx, [ebp - 0x11c]
push ecx
call fcn.004142f0
add esp, 8
test eax, eax
je 0x4137b3
push 0x41e544
lea edx, [ebp - 0x11c]
push edx
call fcn.004142f0
add esp, 8
test eax, eax
jne 0x4137b8
jmp 0x413852
lea eax, [ebp - 0x11c]
push eax
call fcn.00414050
add esp, 4
mov ecx, 0x104
sub ecx, eax
sub ecx, 1
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x24c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 0x41e548
lea ecx, [ebp - 0x24c]
push ecx
call fcn.00413950
add esp, 8
lea edx, [ebp - 0x11c]
push edx
lea eax, [ebp - 0x24c]
push eax
call fcn.00413950
add esp, 8
mov ecx, dword [ebp - 0x148]
and ecx, 0x10
test ecx, ecx
je 0x41383a
lea edx, [ebp - 0x24c]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00413712
add esp, 8
test eax, eax
jne 0x413838
mov dword [ebp - 4], 0
jmp 0x413852
lea ecx, [ebp - 0x24c]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x413852
mov dword [ebp - 4], 0
lea edx, [ebp - 0x148]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x413783
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x41388a
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x416f51
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x41e838
cmp edx, dword [eax]
je 0x416f73
add eax, 8
inc ecx
cmp eax, 0x41e8c8
jl 0x416f64
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x41e838]
jne 0x4170a1
mov eax, dword [0x420f6c]
cmp eax, 1
je 0x41707b
test eax, eax
jne 0x416fa4
cmp dword [0x41e774], 1
je 0x41707b
cmp edx, 0xfc
je 0x4170a1
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x416fdb
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00413940
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00414050
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x41701e
lea eax, [ebp - 0x1a4]
push eax
call fcn.00414050
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x41b764
push edi
call fcn.00413a90
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00413940
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00413950
lea eax, [ebp - 0xa0]
push 0x41b744
push eax
call fcn.00413950
push dword [esi + 0x41e83c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00413950
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0041964b
add esp, 0x2c
pop edi
jmp 0x4170a1
lea eax, [ebp + 8]
lea esi, [esi + 0x41e83c]
push 0
push eax
push dword [esi]
call fcn.00414050
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x40b33d
Capabilities:
Get common file path
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2bc
push ebx
push esi
lea eax, [ebp - 4]
push edi
xor ebx, ebx
push eax
mov edi, 0x4dd200
push ebx
push ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov esi, 0x2b4
lea eax, [ebp - 0x2bc]
push esi
push ebx
push eax
call fcn.00476d80
lea eax, [ebp - 8]
add esp, 0xc
neg eax
sbb eax, eax
lea ecx, [ebp - 4]
and eax, ecx
xor ecx, ecx
cmp dword [ebp + 8], ebx
mov eax, dword [eax]
sete cl
or cx, 0x4008
push ecx
lea ecx, [ebp - 0x2bc]
push esi
push ecx
push ebx
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
lea ecx, [ebp - 8]
mov esi, eax
neg ecx
sbb ecx, ecx
lea eax, [ebp - 4]
and ecx, eax
mov dword [ebp - 8], edi
call fcn.0040b6cb
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4