joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402b3e
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4022c
call fcn.0040bc50
mov eax, dword [0x4109f8]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x40220], eax
xor ebx, ebx
push ebx
lea eax, [ebp - 0x40224]
push eax
mov esi, 0x200
push esi
lea eax, [ebp - 0x4020c]
push eax
push dword [edi]
mov byte [ebp - 0x4020d], 1
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x402c45
cmp dword [ebp - 0x40224], esi
jne 0x402c45
push 4
lea eax, [ebp - 0x4010b]
push 0x40ebc8
push eax
call fcn.00409bb8
add esp, 0xc
test eax, eax
jne 0x402bc4
mov eax, dword [ebp - 0x40220]
mov byte [eax], 1
mov al, 1
jmp 0x402c47
push 5
lea eax, [ebp - 0x4010b]
push 0x40ebc0
push eax
call fcn.00409bb8
add esp, 0xc
test eax, eax
jne 0x402c45
mov eax, dword [edi + 4]
sub eax, 0x10
call fcn.00402507
add eax, 0x10
mov dword [ebp - 0x40214], eax
push 0x40ec58
lea eax, [ebp - 0x40214]
push eax
call fcn.00402d7e
lea eax, [ebp - 0x4020c]
push eax
lea eax, [ebp - 0x40214]
push eax
call fcn.00402d7e
mov esi, dword [ebp - 0x40214]
push ebx
push 0x100
push 2
push ebx
push ebx
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x40220], eax
cmp eax, 0xffffffff
jne 0x402c57
lea eax, [esi - 0x10]
call fcn.004010b5
xor al, al
mov ecx, dword [ebp - 8]
pop esi
xor ecx, ebp
pop ebx
call fcn.004087be
leave
ret 4
push 8
lea eax, [ebp - 0x40190]
push ebx
push eax
call fcn.0040beaa
add esp, 0xc
push 1
push ebx
push ebx
push dword [edi]
mov esi, eax
mov dword [ebp - 0x40218], esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
add eax, dword [ebp - 0x40218]
neg esi
and esi, 0x1ff
add esi, eax
mov dword [ebp - 0x40228], esi
cmp dword [ebp - 0x40218], ebx
jbe 0x402d12
mov ecx, dword [ebp - 0x40218]
mov eax, 0x40000
mov dword [ebp - 0x4021c], eax
cmp ecx, eax
jae 0x402cb6
mov dword [ebp - 0x4021c], ecx
push ebx
lea eax, [ebp - 0x40224]
push eax
push dword [ebp - 0x4021c]
lea eax, [ebp - 0x4000c]
push eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x402d0c
push ebx
lea eax, [ebp - 0x40224]
push eax
push dword [ebp - 0x4021c]
lea eax, [ebp - 0x4000c]
push eax
push dword [ebp - 0x40220]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402d0c
mov eax, dword [ebp - 0x4021c]
sub dword [ebp - 0x40218], eax
jne 0x402c9b
jmp 0x402d12
mov byte [ebp - 0x4020d], bl
push dword [ebp - 0x40220]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x4020d], bl
je 0x402d55
cmp byte [edi + 8], bl
je 0x402d41
lea esi, [edi + 0xc]
lea ebx, [ebp - 0x40214]
call fcn.004020f3
mov esi, dword [ebp - 0x40228]
xor ebx, ebx
mov eax, dword [edi + 0x18]
cmp eax, ebx
je 0x402d55
push dword [ebp - 0x40214]
push dword [edi + 0x1c]
call eax
pop ecx
pop ecx
cmp esi, 0xffffffff
je 0x402d65
push ebx
push ebx
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [ebp - 0x40214]
add eax, 0xfffffff0
call fcn.004010b5
mov al, byte [ebp - 0x4020d]
jmp 0x402c47
Function at 0x406953
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00405848
and dword [ebp - 4], 0
cmp dword [0x4112c0], 0
mov ebx, eax
jne 0x406a04
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x406ab5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x406ab5
push eax
call fcn.004057d6
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4112c0], eax
call esi
push eax
call fcn.004057d6
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4112c4], eax
call esi
push eax
call fcn.004057d6
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4112c8], eax
call esi
push eax
call fcn.004057d6
pop ecx
mov dword [0x4112d0], eax
test eax, eax
je 0x406a04
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004057d6
pop ecx
mov dword [0x4112cc], eax
mov eax, dword [0x4112cc]
cmp eax, ebx
je 0x406a5c
cmp dword [0x4112d0], ebx
je 0x406a5c
push eax
call fcn.00405851
push dword [0x4112d0]
mov esi, eax
call fcn.00405851
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x406a5c
test edi, edi
je 0x406a5c
call esi
test eax, eax
je 0x406a53
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x406a53
test byte [ebp - 0xc], 1
jne 0x406a5c
or dword [ebp + 0x10], 0x200000
jmp 0x406a95
mov eax, dword [0x4112c4]
cmp eax, ebx
je 0x406a95
push eax
call fcn.00405851
pop ecx
test eax, eax
je 0x406a95
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x406a95
mov eax, dword [0x4112c8]
cmp eax, ebx
je 0x406a95
push eax
call fcn.00405851
pop ecx
test eax, eax
je 0x406a95
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4112c0]
call fcn.00405851
pop ecx
test eax, eax
je 0x406ab5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x406ab7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4087be
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4109f8]
jne 0x4087c8
repz ret
jmp fcn.0040b5e5
Function at 0x4012e0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
movzx eax, byte [ebp + 0x14]
test eax, eax
je 0x4012fd
mov dword [ebp - 0x10c], str.Setup64.ini
jmp 0x401307
mov dword [ebp - 0x10c], str.Setup32.ini
mov ecx, dword [ebp - 0x10c]
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x40134b
mov edx, dword [ebp + 0x10]
push edx
lea eax, [ebp - 0x108]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00401380
add esp, 0xc
jmp 0x401378
push str.Setup.ini
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x108]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00401380
add esp, 0xc
mov esp, ebp
pop ebp
ret

Function at 0x4014a0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0x400
mov eax, 1
test eax, eax
je 0x401542
mov ecx, dword [ebp - 4]
push ecx
call fcn.00428870
add esp, 4
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x10]
mov dword [ebp - 8], edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x401504
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x14]
push edx
call fcn.00428780
add esp, 4
xor eax, eax
jmp 0x401545
mov eax, dword [ebp - 4]
sub eax, 2
cmp dword [ebp - 0xc], eax
jne 0x40153b
mov ecx, dword [ebp - 4]
shl ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 8]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
push eax
call fcn.00428780
add esp, 4
cmp dword [ebp - 4], 0x186a0
jbe 0x401536
xor eax, eax
jmp 0x401545
jmp 0x4014ad
jmp 0x401542
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x401550
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov byte [ebp - 5], 0
mov eax, dword [ebp + 0xc]
push eax
push 0
push 0x42b704
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jle 0x4015cf
mov dword [ebp - 0xc], 0
jmp 0x40158a
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 4]
jge 0x4015bd
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.004015e0
add esp, 0xc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4015bb
mov ecx, dword [ebp - 0x10]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00411d10
jmp 0x401581
mov ecx, dword [ebp + 8]
call fcn.00411c00
xor edx, edx
test eax, eax
setg dl
mov byte [ebp - 5], dl
mov al, byte [ebp - 5]
mov esp, ebp
pop ebp
ret
Function at 0x4015e0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4ac
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push str._sAdditionalPackage_d
lea edx, [ebp - 0x488]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov eax, dword [ebp + 8]
push eax
push 0x400
lea ecx, [ebp - 0x408]
push ecx
push 0x42b726
push 0x42b71c
lea edx, [ebp - 0x488]
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jbe 0x4017ce
push 0x24
call fcn.00428870
add esp, 4
mov dword [ebp - 0x4a8], eax
cmp dword [ebp - 0x4a8], 0
je 0x40166f
lea eax, [ebp - 0x408]
push eax
mov ecx, dword [ebp - 0x4a8]
call fcn.00401030
mov dword [ebp - 0x4ac], eax
jmp 0x401679
mov dword [ebp - 0x4ac], 0
mov ecx, dword [ebp - 0x4ac]
mov dword [ebp - 4], ecx
lea ecx, [ebp - 0x498]
call fcn.0041a620
mov dword [ebp - 0x498], 0x42b6cc
mov edx, dword [ebp + 8]
push edx
push 0x400
lea eax, [ebp - 0x408]
push eax
push 0x42b726
push 0
lea ecx, [ebp - 0x488]
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jbe 0x40172a
lea edx, [ebp - 0x408]
mov dword [ebp - 0x49c], edx
jmp 0x4016ea
mov eax, dword [ebp - 0x49c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x49c]
lea edx, [ecx + eax + 1]
mov dword [ebp - 0x49c], edx
mov eax, dword [ebp - 0x49c]
movsx ecx, byte [eax]
test ecx, ecx
je 0x40172a
push 0x42b71c
mov edx, dword [ebp - 0x49c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x401728
mov eax, dword [ebp - 0x49c]
push eax
call fcn.00428970
add esp, 4
push eax
lea ecx, [ebp - 0x498]
call fcn.00411d10
jmp 0x4016cd
mov dword [ebp - 0x4a0], 0
jmp 0x401745
mov ecx, dword [ebp - 0x4a0]
add ecx, 1
mov dword [ebp - 0x4a0], ecx
lea ecx, [ebp - 0x498]
call fcn.00411c00
cmp dword [ebp - 0x4a0], eax
jge 0x4017c3
mov edx, dword [ebp - 0x4a0]
push edx
lea ecx, [ebp - 0x498]
call fcn.004012c0
mov dword [ebp - 0x4a4], eax
mov eax, dword [ebp + 8]
push eax
push 0x400
lea ecx, [ebp - 0x408]
push ecx
push 0x42b726
mov edx, dword [ebp - 0x4a4]
push edx
lea eax, [ebp - 0x488]
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [ebp - 0x408]
push ecx
mov edx, dword [ebp - 0x4a4]
push edx
mov ecx, dword [ebp - 4]
call fcn.00401140
lea eax, [ebp - 0x4a4]
push eax
call fcn.00428990
add esp, 4
jmp 0x401736
lea ecx, [ebp - 0x498]
call fcn.0041a690
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x405870
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
call dword [sym.imp.KERNEL32.dll_AllocConsole]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40588f
xor eax, eax
jmp 0x4059ba
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4058a5
xor eax, eax
jmp 0x4059ba
push 0xfffffffffffffff0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_GetWindowLongA]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
and ecx, 0xfffdffff
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
and edx, 0xfffeffff
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
and eax, 0xfffbffff
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
push ecx
push 0xfffffffffffffff0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.USER32.dll_SetWindowLongA]
push 3
push 0xf060
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_GetSystemMenu]
push eax
call dword [sym.imp.USER32.dll_EnableMenuItem]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x1c], 0
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov dword [edx + 0x14], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 0xc]
mov dword [ecx], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 0x10]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 0x14]
mov dword [edx + 0xc], eax
push str.RUN_CMD_INIT
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x10], eax
push 0
push 0
mov edx, dword [ebp - 0x10]
push edx
push 0x4059c0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0xffffffffffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 0x18], 0
jne 0x4059b8
push 4
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.USER32.dll_ShowWindowAsync]
push 1
push 0
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 4]
jmp 0x4059ba
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4073e0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [ebp - 4], eax
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov esp, ebp
pop ebp
ret 4

Function at 0x407c50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
lea eax, [ebp - 0xc]
push eax
push 1
push 0x42b744
mov ecx, dword [ebp + 8]
call dword [sym.imp.DENKIPM.dll_Ordinal_1478]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x407c7a
xor eax, eax
jmp 0x407ce8
mov dword [ebp - 8], 0x100
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x110]
push edx
lea eax, [ebp - 4]
push eax
push 0
push str.CadSpec
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x10], 0
je 0x407cb8
xor eax, eax
jmp 0x407ce8
cmp dword [ebp - 4], 1
je 0x407cc2
xor eax, eax
jmp 0x407ce8
push 0x10
push 0x42f6a0
lea eax, [ebp - 0x110]
push eax
call fcn.00407cf0
add esp, 0xc
movzx ecx, al
test ecx, ecx
jne 0x407ce3
xor eax, eax
jmp 0x407ce8
mov eax, 0x42f6a0
mov esp, ebp
pop ebp
ret
Function at 0x409150
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
call fcn.004092d0
movzx eax, al
test eax, eax
je 0x409169
xor al, al
jmp 0x4092cc
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
movsx edx, byte [ecx]
cmp edx, 0x22
jne 0x4091bc
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov dl, byte [ecx]
mov byte [ebp - 0x1d], dl
movsx eax, byte [ebp - 0x1d]
test eax, eax
je 0x4091a3
movsx ecx, byte [ebp - 0x1d]
cmp ecx, 0x22
jne 0x40917d
movsx edx, byte [ebp - 0x1d]
test edx, edx
je 0x4091b4
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 8], ecx
jmp 0x4091e8
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.USER32.dll_CharNextA]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov cl, byte [eax]
mov byte [ebp - 0x1d], cl
movsx edx, byte [ebp - 0x1d]
test edx, edx
je 0x4091e2
movsx eax, byte [ebp - 0x1d]
cmp eax, 0x20
jne 0x4091bc
mov ecx, dword [ebp - 4]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
mov al, byte [edx]
mov byte [ebp - 0x1d], al
movsx ecx, byte [ebp - 0x1d]
test ecx, ecx
je 0x409210
movsx edx, byte [ebp - 0x1d]
cmp edx, 0x20
jne 0x409210
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov dword [ebp - 8], eax
jmp 0x4091e8
push 0x42f590
call dword [sym.imp.DENKIPM.dll_Ordinal_1251]
add esp, 4
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x24]
call dword [sym.imp.DENKIPM.dll_Ordinal_1168]
movzx ecx, al
test ecx, ecx
jne 0x409238
xor al, al
jmp 0x4092cc
lea ecx, [ebp - 0x1c]
call dword [sym.imp.DENKIPM.dll_Ordinal_1124]
lea edx, [ebp - 0x1c]
push edx
mov ecx, dword [ebp - 0x24]
call dword [sym.imp.DENKIPM.dll_Ordinal_1170]
movzx eax, al
test eax, eax
jne 0x409267
mov byte [ebp - 0x25], 0
lea ecx, [ebp - 0x1c]
call dword [sym.imp.DENKIPM.dll_Ordinal_1127]
mov al, byte [ebp - 0x25]
jmp 0x4092cc
push 0
push 5
push 0
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp - 8]
push edx
push str.DENKIADM.exe
lea ecx, [ebp - 0x1c]
call dword [sym.imp.DENKIPM.dll_Ordinal_1261]
movzx eax, al
test eax, eax
jne 0x40929c
mov byte [ebp - 0x26], 0
lea ecx, [ebp - 0x1c]
call dword [sym.imp.DENKIPM.dll_Ordinal_1127]
mov al, byte [ebp - 0x26]
jmp 0x4092cc
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xffffffffffffffff
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x27], 1
lea ecx, [ebp - 0x1c]
call dword [sym.imp.DENKIPM.dll_Ordinal_1127]
mov al, byte [ebp - 0x27]
mov esp, ebp
pop ebp
ret
Function at 0x4093e0
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
movsx ecx, byte [eax]
cmp ecx, 0x22
jne 0x40942e
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
movsx ecx, byte [eax]
test ecx, ecx
je 0x409418
mov edx, dword [ebp - 8]
movsx eax, byte [edx]
cmp eax, 0x22
jne 0x4093fa
mov ecx, dword [ebp - 8]
movsx edx, byte [ecx]
cmp edx, 0x22
jne 0x40942c
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
jmp 0x409444
mov ecx, dword [ebp - 8]
movsx edx, byte [ecx]
cmp edx, 0x20
jle 0x409444
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
jmp 0x40942e
mov ecx, dword [ebp - 8]
movsx edx, byte [ecx]
test edx, edx
je 0x409464
mov eax, dword [ebp - 8]
movsx ecx, byte [eax]
cmp ecx, 0x20
jg 0x409464
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
jmp 0x409444
mov dword [ebp - 0x24], 0
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov ecx, dword [ebp - 0x24]
and ecx, 1
je 0x409486
movzx edx, word [ebp - 0x20]
mov dword [ebp - 0x54], edx
jmp 0x40948d
mov dword [ebp - 0x54], 0xa
mov eax, dword [ebp - 0x54]
push eax
mov ecx, dword [ebp - 8]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4094c0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x4094f2
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x4094f0
mov eax, 1
jmp 0x40952f
jmp 0x409501
mov edx, dword [ebp - 8]
and edx, 0x10
je 0x409501
mov eax, 1
jmp 0x40952f
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00409620
mov edx, dword [ebp - 0xc]
push edx
call fcn.00409540
movzx eax, al
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 4], eax
lea ecx, [ebp - 0xc]
push ecx
call fcn.00409680
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4
Function at 0x409540
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
jmp 0x409562
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.USER32.dll_CharNextA]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
mov al, byte [edx]
mov byte [ebp - 9], al
movsx ecx, byte [ebp - 9]
test ecx, ecx
je 0x409583
movsx edx, byte [ebp - 9]
cmp edx, 0x5c
jne 0x409581
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
jmp 0x409555
cmp dword [ebp - 0x10], 0
jne 0x409590
xor al, al
jmp 0x409611
mov ecx, dword [ebp - 0x10]
mov byte [ecx], 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x4095b5
mov eax, dword [ebp - 4]
and eax, 0x10
je 0x4095b5
xor al, al
jmp 0x409611
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x4095df
mov edx, dword [ebp - 0x10]
mov byte [edx], 0x5c
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
neg eax
sbb eax, eax
neg eax
jmp 0x409611
mov ecx, dword [ebp + 8]
push ecx
call fcn.00409540
movzx edx, al
test edx, edx
jne 0x4095f9
mov eax, dword [ebp - 0x10]
mov byte [eax], 0x5c
xor al, al
jmp 0x409611
mov ecx, dword [ebp - 0x10]
mov byte [ecx], 0x5c
push 0
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
neg eax
sbb eax, eax
neg eax
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x409955
xor al, al
jmp 0x40997a
mov ecx, dword [ebp - 8]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x40996e
xor al, al
jmp 0x40997a
mov eax, dword [ebp - 4]
and eax, 0x10
neg eax
sbb eax, eax
neg eax
mov esp, ebp
pop ebp
ret
Function at 0x409980
Capabilities:
Copy file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x14]
cmp dword [eax], 0
je 0x40999a
mov ecx, dword [ebp - 0x14]
cmp dword [ecx + 4], 0
jne 0x4099a1
xor al, al
jmp 0x409a64
mov edx, dword [ebp - 0x14]
mov eax, dword [edx]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push ecx
call dword [ebp + 8]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 7
jne 0x4099ef
mov al, 1
jmp 0x409a64
cmp dword [ebp - 0x10], 2
jne 0x4099f9
xor al, al
jmp 0x409a64
push 0
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 4]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x409a16
xor al, al
jmp 0x409a64
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 4]
jne 0x409a41
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp - 0xc]
je 0x409a41
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x409a3f
xor al, al
jmp 0x409a64
jmp 0x409a62
mov edx, dword [ebp - 8]
cmp edx, dword [ebp - 0xc]
je 0x409a62
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x409a62
xor al, al
jmp 0x409a64
mov al, 1
mov esp, ebp
pop ebp
ret 8