joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x1674
call fcn.004016e0
mov eax, dword [esp + 0x1678]
push esi
lea ecx, [esp + 0x58]
push edi
push ecx
mov dword [0x4084f0], eax
call fcn.00401210
add esp, 4
test eax, eax
je 0x401138
lea edx, [esp + 0x67c]
push 0x40604c
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x168]
lea ecx, [esp + 0x67c]
push eax
push ecx
call esi
lea edx, [esp + 0x67c]
push 0x406048
push edx
call esi
lea eax, [esp + 0x370]
lea ecx, [esp + 0x67c]
push eax
push ecx
call esi
lea edx, [esp + 0x67c]
push 0x406048
push edx
call esi
lea eax, [esp + 0x64]
lea ecx, [esp + 0x67c]
push eax
push ecx
call esi
lea edx, [esp + 0x67c]
push 0x40604c
push edx
call esi
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x4010de
lea eax, [esp + 0x67c]
push 0x406044
push eax
call esi
lea ecx, [esp + 0x474]
lea edx, [esp + 0x67c]
push ecx
push edx
call esi
lea eax, [esp + 0x67c]
push 0x40604c
push eax
call esi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x18]
lea edx, [esp + 0x18]
rep stosd dword es:[edi], eax
lea ecx, [esp + 8]
mov dword [esp + 0x18], 0x44
push ecx
push edx
push eax
push eax
push eax
push eax
push eax
push eax
lea eax, [esp + 0x69c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x401138
mov ecx, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push 0xffffffffffffffff
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 8]
push eax
call esi
lea ecx, [esp + 0x5c]
push ecx
call fcn.00401160
add esp, 4
xor eax, eax
pop edi
pop esi
add esp, 0x1674
ret 0x10

Function at 0x4011d0
Capabilities:
Delete file

Disassembly:
sub esp, 0x88
lea eax, [esp]
push esi
mov esi, dword [esp + 0x90]
push 0x4000
push eax
push esi
call dword [sym.imp.KERNEL32.dll_OpenFile]
cmp eax, 0xffffffff
je 0x4011fb
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop esi
add esp, 0x88
ret
Function at 0x401210
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x2c]
push 0x104
mov dword [edi + 4], 0
mov eax, dword [0x4084f0]
lea esi, [edi + 8]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0
push 0x10000000
push 3
push 0
push 1
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
test esi, esi
jne 0x40125e
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
push 2
push 0
push 0xffffffffffffffe8
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea ecx, [esp + 0x2c]
push 0
push ecx
lea edx, [esp + 0x18]
push 0x18
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x401295
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
cmp dword [esp + 0x10], 0x314159
jne 0x4012ad
cmp dword [esp + 0x14], 0x18
jne 0x4012ad
mov eax, 1
jmp 0x4012af
xor eax, eax
test eax, eax
jne 0x4012c4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
lea ebp, [edi + 0x10c]
push 0x40605c
push ebp
call fcn.00401490
add esp, 8
test eax, eax
je 0x40132b
lea eax, [edi + 0x210]
push 0x406058
push eax
call fcn.00401490
add esp, 8
test eax, eax
je 0x40132b
lea ecx, [edi + 0x314]
push 0x406054
push ecx
call fcn.00401490
add esp, 8
test eax, eax
je 0x40132b
lea edx, [edi + 0x418]
push 0x406050
push edx
call fcn.00401490
add esp, 8
test eax, eax
je 0x40132b
mov eax, 1
jmp 0x40132d
xor eax, eax
test eax, eax
jne 0x401342
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
lea ebx, [edi + 0x210]
mov dword [esp + 0x2c], eax
push ebx
push ecx
push eax
push esi
call fcn.004015f0
add esp, 0x10
test eax, eax
jne 0x401375
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
add eax, edx
lea edx, [edi + 0x314]
mov dword [esp + 0x2c], eax
push edx
push ecx
push eax
push esi
call fcn.004015f0
add esp, 0x10
test eax, eax
jne 0x4013ae
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
mov ecx, dword [esp + 0x24]
xor eax, eax
test ecx, ecx
setne al
test eax, eax
mov dword [edi], eax
je 0x4013f4
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x20]
add eax, edx
lea edx, [edi + 0x418]
push edx
push ecx
push eax
push esi
mov dword [esp + 0x3c], eax
call fcn.004015f0
add esp, 0x10
test eax, eax
jne 0x4013f4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
push ebx
push ebp
call fcn.00401420
add esp, 8
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call fcn.00401560
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
Function at 0x401420
Capabilities:
Copy file

Disassembly:
mov ecx, dword [esp + 8]
sub esp, 0x110
lea eax, [esp]
push edi
push 0
push eax
push ecx
call sub.LZ32.dll_LZOpenFileA
mov edi, eax
test edi, edi
jge 0x401448
xor eax, eax
pop edi
add esp, 0x110
ret
mov eax, dword [esp + 0x118]
push esi
push ebx
lea edx, [esp + 0x94]
push 0x1000
push edx
push eax
call sub.LZ32.dll_LZOpenFileA
mov esi, eax
push esi
push edi
call sub.LZ32.dll_LZCopy
push edi
mov ebx, eax
call sub.LZ32.dll_LZClose
push esi
call sub.LZ32.dll_LZClose
xor eax, eax
test ebx, ebx
pop ebx
pop esi
setge al
pop edi
add esp, 0x110
ret

Function at 0x401490
Capabilities:
Get common file path

Disassembly:
sub esp, 0x408
lea eax, [esp + 0x104]
push ebx
push esi
push edi
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov eax, dword [0x4084f4]
cmp eax, 3
jbe 0x4014bd
xor eax, eax
mov dword [0x4084f4], eax
mov edi, dword [esp + 0x418]
mov ecx, dword [eax*4 + 0x406020]
push edi
push 0
lea edx, [esp + 0x118]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov esi, eax
neg esi
sbb esi, esi
neg esi
je 0x40153a
mov ebx, dword [esp + 0x41c]
test ebx, ebx
je 0x40153a
lea eax, [esp + 0x314]
lea ecx, [esp + 0x214]
push eax
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 0x14]
push edx
push eax
push edi
call fcn.004017b0
add esp, 0x14
push edi
call fcn.004011d0
add esp, 4
lea ecx, [esp + 0x214]
lea edx, [esp + 0x10]
lea eax, [esp + 0xc]
push ebx
push ecx
push edx
push eax
push edi
call fcn.00401710
add esp, 0x14
mov eax, dword [0x4084f4]
pop edi
inc eax
mov dword [0x4084f4], eax
mov eax, esi
pop esi
pop ebx
add esp, 0x408
ret

Function at 0x401560
Capabilities:
Get common file path

Disassembly:
sub esp, 0x304
lea eax, [esp + 0x104]
lea ecx, [esp + 4]
lea edx, [esp + 0x204]
push esi
push edi
mov edi, dword [esp + 0x310]
push eax
push ecx
lea eax, [esp + 0x10]
push edx
lea ecx, [edi + 0x10c]
push eax
push ecx
call fcn.004017b0
add esp, 0x14
lea esi, [edi + 0x51c]
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov cl, byte [eax + edi + 0x51b]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
dec eax
cmp cl, 0x5c
je 0x4015cc
push 0x406068
push esi
call edi
lea edx, [esp + 0xc]
push edx
push esi
call edi
push str..ini
push esi
call edi
pop edi
pop esi
add esp, 0x304
ret
Function at 0x4015f0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov eax, 0x100c
call fcn.004016e0
mov eax, dword [esp + 0x101c]
push ebx
push 0
push 0x10000000
push 1
push 0
push 2
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, dword [esp + 0x1014]
mov dword [esp + 4], eax
test ebx, ebx
jne 0x401634
xor eax, eax
pop ebx
add esp, 0x100c
ret
mov ecx, dword [esp + 0x1018]
push edi
push 0
push 0
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, dword [esp + 0x1020]
test edi, edi
jbe 0x4016a0
push esi
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
cmp edi, 0x1000
mov esi, 0x1000
ja 0x40166a
mov esi, edi
lea edx, [esp + 0x14]
push 0
push edx
lea eax, [esp + 0x24]
push esi
push eax
push ebx
call ebp
test eax, eax
je 0x40169a
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push 0
push ecx
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x24]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
sub edi, esi
jne 0x40165b
pop ebp
pop esi
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 1
pop ebx
add esp, 0x100c
ret
Function at 0x401930
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4050d8
push 0x402c98
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x408740], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x40873c], ecx
shl ecx, 8
add ecx, edx
mov dword [0x408738], ecx
shr eax, 0x10
mov dword [0x408734], eax
call fcn.00402b60
test eax, eax
jne 0x40199a
push 0x1c
call fcn.00401b00
add esp, 4
mov dword [ebp - 4], 0
call fcn.00402960
call fcn.00402080
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x4089f4], eax
call fcn.00402800
mov dword [0x4084f8], eax
test eax, eax
je 0x4019cd
mov eax, dword [0x4089f4]
test eax, eax
jne 0x4019d7
push 0xffffffffffffffff
call fcn.00402160
add esp, 4
call fcn.00402550
call fcn.00402460
call fcn.00402130
mov esi, dword [0x4089f4]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x401ab6
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x401a1e
test al, al
je 0x401a1e
and eax, 0xff
push eax
call fcn.00402400
add esp, 4
test eax, eax
je 0x4019f8
inc esi
mov dword [ebp - 0x64], esi
jmp 0x4019f8
cmp byte [esi], 0x22
jne 0x401a27
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x401a37
cmp al, 0x20
ja 0x401a37
inc esi
mov dword [ebp - 0x64], esi
jmp 0x401a27
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x401a58
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x401a5d
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x60], eax
push eax
call fcn.00402160
jmp 0x401a9b
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x401a27
inc esi
mov dword [ebp - 0x64], esi
jmp 0x401ab6

Function at 0x401b00
Capabilities:
Terminate process

Disassembly:
cmp dword [0x408500], 1
jne 0x401b0e
call fcn.00402d70
mov eax, dword [esp + 4]
push eax
call fcn.00402db0
add esp, 4
push 0xff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x4021a0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x408770]
push ebx
push ebp
mov ebp, dword [esp + 0xc]
cmp eax, 1
push esi
jne 0x4021bf
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 [0x40876c], 1
mov byte [0x408768], bl
jne 0x402219
mov ecx, dword [0x4089e8]
test ecx, ecx
je 0x402207
mov esi, dword [0x4089e4]
sub esi, 4
cmp esi, ecx
jb 0x402207
mov eax, dword [esi]
test eax, eax
je 0x402200
call eax
mov ecx, dword [0x4089e8]
sub esi, 4
cmp esi, ecx
jae 0x4021f2
push 0x406014
push 0x406010
call fcn.00402250
add esp, 8
push 0x40601c
push 0x406018
call fcn.00402250
add esp, 8
test ebx, ebx
jne 0x402240
push ebp
mov dword [0x408770], 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
pop ebp
pop ebx
ret

Function at 0x402800
Capabilities:
Query environment variable

Disassembly:
mov eax, dword [0x408880]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
push esi
xor esi, esi
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test eax, eax
jne 0x402842
call edi
mov esi, eax
test esi, esi
je 0x40282c
mov eax, 1
jmp 0x40283d
call ebp
mov ebx, eax
test ebx, ebx
je 0x40294f
mov eax, 2
mov dword [0x408880], eax
cmp eax, 1
jne 0x4028e2
test esi, esi
jne 0x40285b
call edi
mov esi, eax
test esi, esi
je 0x40294f
cmp word [esi], 0
mov eax, esi
je 0x402875
add eax, 2
cmp word [eax], 0
jne 0x402863
add eax, 2
cmp word [eax], 0
jne 0x402863
sub eax, esi
push 0
sar eax, 1
inc eax
push 0
mov ebp, eax
push 0
push 0
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
test edi, edi
je 0x4028d4
push edi
call fcn.00403480
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4028d4
push 0
push 0
push edi
push ebx
push ebp
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x4028c6
push ebx
call fcn.00403430
add esp, 4
xor ebx, ebx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
cmp eax, 2
jne 0x40294f
test ebx, ebx
jne 0x4028f3
call ebp
mov ebx, eax
test ebx, ebx
je 0x40294f
mov cl, byte [ebx]
mov eax, ebx
test cl, cl
je 0x40290b
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4028fb
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4028fb
sub eax, ebx
inc eax
mov esi, eax
push esi
call fcn.00403480
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x40292d
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov ecx, esi
mov esi, ebx
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
Function at 0x402db0
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x1a8
mov eax, 0x406218
push ebx
push ebp
push esi
push edi
xor ebp, ebp
cmp ecx, dword [eax]
je 0x402dd4
add eax, 8
inc ebp
cmp eax, 0x4062a8
jb 0x402dc5
cmp ecx, dword [ebp*8 + 0x406218]
jne 0x402f7b
mov eax, dword [0x408500]
cmp eax, 1
je 0x402f3d
test eax, eax
jne 0x402e00
cmp dword [0x406074], 1
je 0x402f3d
cmp ecx, 0xfc
je 0x402f7b
lea eax, [esp + 0xb4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x402e3b
mov ecx, 5
mov esi, str._program_name_unknown_
lea edi, [esp + 0xb4]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0xb4]
repne scasb al, byte es:[edi]
not ecx
cmp ecx, 0x3c
jbe 0x402e84
lea edi, [esp + 0xb4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push 3
mov ebx, ecx
lea ecx, [esp + 0xb8]
sub ecx, 0x3b
push 0x4053b8
add ebx, ecx
push ebx
call fcn.00403330
add esp, 0xc
mov ecx, 6
mov esi, str.Runtime_Error__n_nProgram:
lea edi, [esp + 0x14]
xor eax, eax
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov ebx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, edx
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x14]
and ecx, 3
push 0x12010
rep movsb byte es:[edi], byte [esi]
mov edi, 0x405398
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push str.Microsoft_Visual_C_Runtime_Library
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea edx, [esp + 0x1c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp*8 + 0x40621c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x1c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00403c50
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
mov eax, dword [0x4088e0]
test eax, eax
je 0x402f4e
mov esi, dword [eax + 0x10]
cmp esi, 0xffffffff
jne 0x402f58
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
mov edx, dword [ebp*8 + 0x40621c]
lea ecx, [esp + 0x10]
push 0
push ecx
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1a8
ret
Function at 0x5b9e60
Capabilities:
Accept command line arguments

Disassembly:
push ecx
mov al, byte [0x7d104a]
mov cl, byte [0x7d104d]
mov edx, dword [0x7d1030]
and cl, al
mov eax, dword [0x7d1034]
mov byte [0x7d104d], cl
mov ecx, eax
push esi
shr ecx, 2
sub edx, ecx
xor ecx, ecx
mov cl, byte [0x7d1043]
mov dword [0x7d1030], edx
mov edx, dword [0x7d1038]
push edi
or edx, 7
imul edx, ecx
and eax, edx
mov dword [0x7d1034], eax
call dword [sym.imp.KERNEL32.dll_GetConsoleCP]
mov edi, dword [esp + 0x10]
mov dword [edi], eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea edx, [esp + 8]
push edx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
push 0
mov esi, eax
call dword [sym.imp.SHLWAPI.dll_PathIsUNCA]
test esi, esi
je 0x5b9ee6
mov eax, dword [0x7d4adc]
push 0x7d47f8
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleMode]
mov eax, edi
pop edi
pop esi
pop ecx
ret

Function at 0x68fa7e
Capabilities:
Encode data using xor

Disassembly:
mov bl, 0x98
das
add al, 0x8a
mov eax, dword [0x1e35fdd6]
sub dword [edx], eax
mov word [edi - 0x63480430], fs
sar bl, 1
mov bh, 0x9c
sub eax, dword [eax]
mov fs, word [ebp + 0x6348f9d2]
push esp
jg 0x68fa8c
dec eax
arpl word [edi + edi*2 - 0xf], dx
fisubr dword [ebp + 0x56e1ca86]
push esi
jge 0x68fa96
fsubr dword [edi + 0x50674c84]
jnp 0x68faa0
cmc
fisubr word [ecx + 0x52e5ce82]
push edx
jns 0x68faaa
fsubr qword [ebx - 0x51664d80]
test dword [ebx], ecx
and byte [edi + 0x7c], dl
xor byte [ebx], bl
lodsb al, byte [esi]
xchg dword [ecx], ecx
and dl, byte [ebp + 0x7e]
mov dh, 0x9d
stosb byte es:[edi], al
or dword [edi], 0x34785324
pop ds
test al, 0x83
or eax, 0xcb7a5126
loopne 0x68fab0
cld
jb 0x68fb35
add eax, 0xfed56249
jo 0x68fb3f
sub al, 7
iretd
int 0x54
xor al, 0xad
cmpsd dword ds:[esi], dword es:[edi]
pop es
sahf
lcall [edi]
xchg byte [0xb52c8c], dl
adc eax, 0xb52c8c
cdq
stc
pushal
push 0xffffffffffffffca
push ebx
add al, 0x9d
jge 0x68fb1e
ja 0x68fb2a
dec esi
xlatb
bound edx, qword [ebx - 0xc1b78d8]
mov al, 0x1f
xchg ebx, eax
sub byte [edi + 0x1fb0f3e4], al
mov al, 0x1f
jl 0x68fb43
clc
push edi
xor al, 0x23
pushal
iretd
Function at 0x7c7edd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x7d13c8
cmp edx, dword [eax]
je 0x7c7eff
add eax, 8
inc ecx
cmp eax, 0x7d1458
jl 0x7c7ef0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x7d13c8]
jne 0x7c802d
mov eax, dword [0xbd0d24]
cmp eax, 1
je 0x7c8007
test eax, eax
jne 0x7c7f30
cmp dword [0x7d12f4], 1
je 0x7c8007
cmp edx, 0xfc
je 0x7c802d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x7c7f67
lea eax, [ebp - 0x1a4]
push 0x7cda58
push eax
call fcn.007c88c0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.007c8d50
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x7c7faa
lea eax, [ebp - 0x1a4]
push eax
call fcn.007c8d50
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x7cda54
push edi
call fcn.007cac20
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x7cda38
push eax
call fcn.007c88c0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.007c88d0
lea eax, [ebp - 0xa0]
push 0x7cda34
push eax
call fcn.007c88d0
push dword [esi + 0x7d13cc]
lea eax, [ebp - 0xa0]
push eax
call fcn.007c88d0
push 0x12010
lea eax, [ebp - 0xa0]
push 0x7cda0c
push eax
call fcn.007cab94
add esp, 0x2c
pop edi
jmp 0x7c802d
lea eax, [ebp + 8]
lea esi, [esi + 0x7d13cc]
push 0
push eax
push dword [esi]
call fcn.007c8d50
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 0xc36e94
Capabilities:
Encode data using xor

Disassembly:
xor al, al
mov al, byte [edi]
xor al, bl
mov byte [edi], al
inc edi
cmp edi, ecx
jne fcn.00c36e94
ret
Function at 0x403270
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x441384]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov eax, dword [0x45e938]
and eax, 4
jne 0x403294
xor eax, eax
jmp 0x4034d4
mov dword [ebp - 4], 1
movzx ecx, byte [0x440004]
test ecx, ecx
je 0x40348e
mov edx, dword [0x46a538]
push edx
push 0x400
push 0x442938
push 0x43948a
push str.value_init
push 0x439570
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x442938
call fcn.00403940
add esp, 4
mov eax, dword [0x46a538]
push eax
push 0x64
push 0x4428d0
push 0x43948b
push str.value_end
push 0x439584
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ecx, dword [0x46a538]
push ecx
push 0x1e
push 0x4428ac
push 0x43949b
push str.value_cancel
push 0x43959c
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov edx, dword [0x46a538]
push edx
push 0x64
push 0x442848
push 0x4395a4
push 0x4395a8
push 0x4395b0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0x442848
call fcn.00413f78
add esp, 4
mov dword [0x46a540], eax
cmp dword [0x46a540], 0
je 0x403487
xor ecx, ecx
mov eax, dword [0x46a540]
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004131d6
add esp, 4
mov dword [ebp - 0x41c], eax
mov eax, dword [ebp - 0x41c]
mov dword [0x46a53c], eax
mov dword [ebp - 8], 0
jmp 0x4033a5
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
cmp edx, dword [0x46a540]
jge 0x4033c2
mov eax, dword [ebp - 8]
mov ecx, dword [0x46a53c]
mov dword [ecx + eax*4], 0
jmp 0x40339c
mov dword [ebp - 8], 0
jmp 0x4033d4
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
cmp eax, dword [0x46a540]
jge 0x403487
mov ecx, dword [ebp - 8]
push ecx
push 0x4395b8
push 0xa
lea edx, [ebp - 0x18]
push edx
call fcn.00413e53
add esp, 0x10
mov eax, dword [0x46a538]
push eax
push 0x400
lea ecx, [ebp - 0x418]
push ecx
push 0x4394a7
lea edx, [ebp - 0x18]
push edx
push str.TEXTS
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x418]
push eax
call fcn.00413460
add esp, 4
add eax, 1
push eax
call fcn.004131d6
add esp, 4
mov dword [ebp - 0x420], eax
mov ecx, dword [ebp - 8]
mov edx, dword [0x46a53c]
mov eax, dword [ebp - 0x420]
mov dword [edx + ecx*4], eax
lea ecx, [ebp - 0x418]
push ecx
mov edx, dword [ebp - 8]
mov eax, dword [0x46a53c]
mov ecx, dword [eax + edx*4]
push ecx
call fcn.00413360
add esp, 8
mov edx, dword [ebp - 8]
mov eax, dword [0x46a53c]
mov ecx, dword [eax + edx*4]
push ecx
call fcn.00403940
add esp, 4
jmp 0x4033cb
mov byte [0x440004], 0
xor edx, edx
jne 0x403294
cmp dword [ebp + 0xc], 0
je 0x4034a3
mov eax, 0x4428ac
jmp 0x4034d4
cmp dword [ebp + 8], 0x6f
jne 0x4034b0
mov eax, 0x4428d0
jmp 0x4034d4
cmp dword [ebp + 8], 0
jl 0x4034cf
mov eax, dword [ebp + 8]
cmp eax, dword [0x46a540]
jge 0x4034cf
mov ecx, dword [ebp + 8]
mov edx, dword [0x46a53c]
mov eax, dword [edx + ecx*4]
jmp 0x4034d4
mov eax, 0x442938
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.00413a38
mov esp, ebp
pop ebp
ret