joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4011d0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4195a0
push 0x406250
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x41b010]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
push 0x94
push 0
lea eax, [ebp - 0xb0]
push eax
call fcn.004061d0
add esp, 0xc
mov dword [ebp - 0xb0], 0x94
lea ecx, [ebp - 0xb0]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [ebp - 0xac]
cmp eax, 5
ja 0x40124c
jne 0x4012aa
cmp dword [ebp - 0xa8], 1
jb 0x4012aa
push str.kernel32
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
push str.ReleaseActCtx
push esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call edi
mov ebx, eax
push str.DeactivateActCtx
push esi
call edi
test ebx, ebx
je 0x4012aa
test eax, eax
je 0x4012aa
mov dword [ebp - 4], 0
mov edx, dword [0x41c020]
push edx
push 0
call eax
mov eax, dword [section..data]
cmp eax, 0xffffffff
je 0x4012a3
push eax
call ebx
jmp 0x4012a3
mov dword [ebp - 4], 0xfffffffe
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004061bd
mov esp, ebp
pop ebp
ret

Function at 0x4013d0
Capabilities:
Accept command line arguments
Create process on windows
Create process suspended

Disassembly:
sub esp, 0x64
push esi
push 1
xor esi, esi
push 0x16
mov dword [esp + 0xc], esi
call fcn.00406a61
push 1
push 2
call fcn.00406a61
push 1
push 0xf
call fcn.00406a61
push 1
push 0x15
call fcn.00406a61
add esp, 0x20
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0xc], 0xc
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], 1
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov ecx, 1
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x50], 0x101
mov word [esp + 0x54], cx
call fcn.004067ae
push eax
call fcn.0040dbee
push eax
call fcn.004064e6
mov dword [esp + 0x64], eax
call fcn.004067ae
add eax, 0x20
push eax
call fcn.0040dbee
push eax
call fcn.004064e6
mov dword [esp + 0x70], eax
call fcn.004067ae
add eax, 0x40
push eax
call fcn.0040dbee
push eax
call fcn.004064e6
add esp, 0x18
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x68], eax
lea eax, [esp + 0x28]
push eax
push esi
push esi
push esi
push 1
push esi
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edx, dword [esp + 0x8c]
push eax
push edx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
pop esi
test eax, eax
je 0x4014d8
mov eax, dword [esp + 0x10]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0x10]
lea ecx, [esp]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [esp]
add esp, 0x64
ret
push str.Error_creating_child_process__n
call fcn.00401860
add esp, 4
or eax, 0xffffffff
add esp, 0x64
ret
Function at 0x401940
Capabilities:
Get common file path

Disassembly:
sub esp, 0x14
mov eax, dword [0x41b010]
xor eax, esp
mov dword [esp + 0x10], eax
push ebx
push esi
push edi
mov edi, dword [esp + 0x24]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
call sub.KERNEL32.dll_GetCurrentProcessId
push eax
lea eax, [esp + 0x10]
push str._MEI_d
push eax
call fcn.00407be6
add esp, 0xc
xor ebx, ebx
jmp 0x401980
lea ecx, [esp + 0xc]
push ecx
push edi
call fcn.0040797b
mov esi, eax
push esi
call fcn.0041354e
add esp, 0xc
test eax, eax
je 0x4019bd
push esi
call fcn.00406e44
inc ebx
add esp, 4
cmp ebx, 5
jl 0x401980
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x10]
xor ecx, esp
call fcn.004061bd
add esp, 0x14
ret
mov edx, edi
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4019c3
dec edi
mov edi, edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4019d0
mov dx, word [0x4142ec]
push esi
mov word [edi], dx
call fcn.00406e44
mov ecx, dword [esp + 0x20]
add esp, 4
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.004061bd
add esp, 0x14
ret

Function at 0x401af0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 8]
push esi
mov esi, dword [esp + 8]
mov ecx, dword [esi]
push 0
add eax, 0xffffffe8
push eax
push ecx
call fcn.0040801b
add esp, 0xc
test eax, eax
je 0x401b13
or eax, 0xffffffff
pop esi
ret
mov edx, dword [esi]
push edi
push edx
push 1
lea edi, [esi + 0x10]
push 0x18
push edi
call fcn.00407f74
add esp, 0x10
cmp eax, 1
jae 0x401b32
pop edi
or eax, 0xffffffff
pop esi
ret
push 8
push str.MEI_f_v_n_v
push edi
call fcn.00407c6a
add esp, 0xc
neg eax
pop edi
sbb eax, eax
pop esi
ret

Function at 0x401b50
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push esi
mov esi, dword [esp + 0x10]
mov eax, dword [esi]
push 0
push 0
push eax
mov dword [esp + 0x14], 0
call fcn.0040801b
mov ecx, dword [esi]
push ecx
push 2
lea edx, [esp + 0x18]
push 1
push edx
call fcn.00407f74
mov ax, word [esp + 0x20]
add esp, 0x1c
cmp al, 0x4d
jne 0x401c23
cmp ah, 0x5a
jne 0x401c23
mov eax, dword [esi]
push 0
push 0x3c
push eax
call fcn.0040801b
mov ecx, dword [esi]
push ecx
push 1
lea edx, [esp + 0x1c]
push 4
push edx
call fcn.00407f74
mov eax, dword [esp + 0x24]
mov ecx, dword [esi]
push 0
add eax, 0x18
push eax
push ecx
call fcn.0040801b
mov edx, dword [esi]
push edx
push 1
lea eax, [esp + 0x34]
push 2
push eax
call fcn.00407f74
mov ax, word [esp + 0x3c]
add esp, 0x38
cmp al, 0xb
jne 0x401c23
cmp ah, 1
jne 0x401bee
mov eax, 0x98
jmp 0x401bf8
cmp ah, 2
jne 0x401c23
mov eax, 0xa8
add eax, dword [esp + 8]
mov edx, dword [esi]
push 0
push eax
push edx
call fcn.0040801b
mov eax, dword [esi]
push eax
push 1
lea ecx, [esp + 0x1c]
push 4
push ecx
call fcn.00407f74
mov eax, dword [esp + 0x24]
add esp, 0x1c
test eax, eax
jne 0x401c26
or eax, 0xffffffff
pop esi
add esp, 8
ret
Function at 0x401c30
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
lea eax, [esi + 0x28]
push 0x414354
push eax
call fcn.00408430
add esp, 8
mov dword [esi], eax
test eax, eax
jne 0x401c51
or eax, 0xffffffff
pop esi
ret
push edi
push 2
push 0
push eax
call fcn.0040801b
mov ecx, dword [esi]
push ecx
call fcn.0040830f
mov edi, eax
push edi
push esi
call fcn.00401af0
add esp, 0x18
test eax, eax
jns 0x401caf
push esi
call fcn.00401b50
mov edi, eax
add esp, 4
cmp edi, 1
jl 0x401d61
push ebx
xor ebx, ebx
jmp 0x401c90
push edi
push esi
call fcn.00401af0
add esp, 8
test eax, eax
jns 0x401ca5
inc ebx
dec edi
cmp ebx, 8
jl 0x401c90
cmp ebx, 8
pop ebx
je 0x401d61
mov edx, dword [esi + 0x18]
push edx
call sub.WS2_32.dll_ntohl
sub edi, eax
mov eax, dword [esi + 0x1c]
push 0
push eax
mov dword [esi + 4], edi
call sub.WS2_32.dll_ntohl
add eax, dword [esi + 4]
mov ecx, dword [esi]
push eax
push ecx
call fcn.0040801b
mov edx, dword [esi + 0x20]
add esp, 0xc
push edx
call sub.WS2_32.dll_ntohl
push eax
call fcn.004080e7
add esp, 4
mov dword [esi + 8], eax
test eax, eax
jne 0x401d03
push str.Could_not_allocate_buffer_for_TOC.
call fcn.00401860
add esp, 4
pop edi
or eax, 0xffffffff
pop esi
ret
mov eax, dword [esi]
mov ecx, dword [esi + 0x20]
push eax
push 1
push ecx
call sub.WS2_32.dll_ntohl
mov edx, dword [esi + 8]
push eax
push edx
call fcn.00407f74
add esp, 0x10
cmp eax, 1
jae 0x401d36
push str.Could_not_read_from_file.
call fcn.00401860
add esp, 4
pop edi
or eax, 0xffffffff
pop esi
ret
mov eax, dword [esi + 0x20]
push eax
call sub.WS2_32.dll_ntohl
add eax, dword [esi + 8]
mov ecx, dword [esi]
push ecx
mov dword [esi + 0xc], eax
call fcn.004080bf
add esp, 4
test eax, eax
je 0x401d67
push str.Error_on_file
call fcn.00401860
add esp, 4
pop edi
or eax, 0xffffffff
pop esi
ret
pop edi
xor eax, eax
pop esi
ret
Function at 0x402a00
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
mov eax, dword [ebp + 4]
push esi
push edi
push 0
push eax
call sub.WS2_32.dll_ntohl
mov edi, dword [esp + 0x14]
add eax, dword [edi + 4]
mov ecx, dword [edi]
push eax
push ecx
call fcn.0040801b
mov edx, dword [ebp + 8]
add esp, 0xc
push edx
call sub.WS2_32.dll_ntohl
push eax
call fcn.004080e7
mov esi, eax
add esp, 4
test esi, esi
jne 0x402a50
push str.Could_not_allocate_read_buffer_n
call fcn.004018d0
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebp
ret
mov eax, dword [edi]
mov ecx, dword [ebp + 8]
push eax
push 1
push ecx
call sub.WS2_32.dll_ntohl
push eax
push esi
call fcn.00407f74
add esp, 0x10
cmp eax, 1
jae 0x402a80
push str.Could_not_read_from_file_n
call fcn.004018d0
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebp
ret
cmp byte [ebp + 0x10], 2
jne 0x402b70
mov eax, dword [0x41c2d8]
test eax, eax
jne 0x402aa6
push 0x414e3c
call dword [0x41c270]
add esp, 4
mov dword [0x41c2d8], eax
push ebx
push eax
call dword [0x41c298]
mov edi, eax
push 0x414e38
push edi
call dword [0x41c29c]
push str.block_size
push edi
mov dword [esp + 0x28], eax
call dword [0x41c29c]
push eax
call dword [0x41c2d0]
mov ebx, eax
push ebx
call fcn.004080e7
push ebx
push 0
push eax
mov dword [esp + 0x40], eax
call fcn.004061d0
mov edx, dword [esp + 0x40]
add esp, 0x28
push ebx
push edx
push str.MODE_CFB
push edi
call dword [0x41c29c]
add esp, 8
push eax
mov eax, dword [esp + 0x20]
push 0x20
push esi
push str.sOs
push eax
call dword [0x41c294]
mov ecx, dword [ebp + 8]
add esp, 0x1c
push ecx
mov edi, eax
call sub.WS2_32.dll_ntohl
sub eax, 0x20
push eax
lea edx, [esi + 0x20]
push edx
push 0x414e14
push str.decrypt
push edi
call dword [0x41c2b0]
mov ebx, eax
mov eax, dword [ebp + 8]
add esp, 0x14
push eax
call sub.WS2_32.dll_ntohl
sub eax, 0x20
push eax
push ebx
call dword [0x41c290]
add esp, 4
push eax
push esi
call fcn.00408620
push edi
call dword [0x41c25c]
push ebx
call dword [0x41c25c]
add esp, 0x14
pop ebx
mov al, byte [ebp + 0x10]
cmp al, 1
je 0x402b7b
cmp al, 2
jne 0x402baa
push ebp
push esi
call fcn.00402910
push esi
mov edi, eax
call fcn.00406e44
add esp, 0xc
mov esi, edi
test edi, edi
jne 0x402baa
add ebp, 0x12
push ebp
push str.Error_decompressing__s_n
call fcn.004018d0
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebp
ret
pop edi
mov eax, esi
pop esi
pop ebp
ret
Function at 0x402d80
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x10]
push ebx
push edi
call fcn.00402a00
add esp, 8
mov dword [esp + 8], eax
call fcn.00402d10
cmp eax, 0xffffffff
jne 0x402da9
pop edi
or eax, eax
pop ebx
pop ecx
ret
push ebp
push esi
lea ebp, [ebx + 0x12]
push ebp
add edi, 0x232
push edi
call fcn.00402bb0
mov esi, eax
add esp, 8
test esi, esi
jne 0x402ddb
push ebp
push str._s_could_not_be_extracted__n
call fcn.00401860
add esp, 8
pop esi
pop ebp
pop edi
or eax, 0xffffffff
pop ebx
pop ecx
ret
mov eax, dword [ebx + 0xc]
push esi
push 1
push eax
call sub.WS2_32.dll_ntohl
mov edi, dword [esp + 0x18]
push eax
push edi
call fcn.00408c76
push esi
call fcn.00408aab
push edi
call fcn.00406e44
add esp, 0x18
pop esi
pop ebp
pop edi
xor eax, eax
pop ebx
pop ecx
ret

Function at 0x402ec0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov eax, 0x1004
call fcn.00408da0
mov eax, dword [0x41b010]
xor eax, esp
mov dword [esp + 0x1000], eax
mov eax, dword [esp + 0x1008]
push ebx
push esi
push edi
push 0x414354
push eax
mov edi, ecx
mov ebx, edx
call fcn.00408430
push ebx
push edi
mov esi, eax
call fcn.00402bb0
add esp, 0x10
xor ebx, ebx
mov edi, eax
test esi, esi
je 0x402fad
test edi, edi
je 0x402fad
push esi
call fcn.00408097
add esp, 4
test eax, eax
jne 0x402f84
mov edi, edi
push esi
push 1
lea eax, [esp + 0x14]
push 0x1000
push eax
call fcn.00407f74
add esp, 0x10
cmp eax, 0xffffffff
jne 0x402f4a
push esi
call fcn.004080bf
add esp, 4
test eax, eax
je 0x402f69
push esi
jmp 0x402f79
push edi
push 1
lea ecx, [esp + 0x14]
push 0x1000
push ecx
call fcn.00408c76
push edi
call fcn.004080bf
add esp, 0x14
test eax, eax
jne 0x402f78
push esi
call fcn.00408097
add esp, 4
test eax, eax
je 0x402f20
jmp 0x402f84
push edi
call fcn.00408d94
add esp, 4
or ebx, 0xffffffff
push esi
call fcn.00408aab
push edi
call fcn.00408aab
add esp, 8
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [esp + 0x1000]
xor ecx, esp
call fcn.004061bd
add esp, 0x1004
ret
mov ecx, dword [esp + 0x100c]
pop edi
pop esi
pop ebx
xor ecx, esp
or eax, 0xffffffff
call fcn.004061bd
add esp, 0x1004
ret
Function at 0x4061bd
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41b010]
jne 0x4061c7
repz ret
jmp fcn.004093bb

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x40d3c7
call fcn.00409891
mov dword [eax], esi
call fcn.0040987e
push 0x16
pop esi
mov dword [eax], esi
call fcn.00409c96
mov eax, esi
jmp 0x40d41c
test dword [ebp + 0xc], 0xfffffff9
jne 0x40d3ad
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40d3f4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004098a4
pop ecx
call fcn.0040987e
mov eax, dword [eax]
jmp 0x40d41c
test al, 0x10
jne 0x40d41a
test al, 1
je 0x40d41a
test byte [ebp + 0xc], 2
je 0x40d41a
call fcn.00409891
mov dword [eax], 5
call fcn.0040987e
mov dword [eax], 0xd
jmp 0x40d3eb
xor eax, eax
pop esi
pop ebp
ret
Function at 0x4104da
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41b010]
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.0040a219
and dword [ebp - 0x14], 0
cmp dword [0x41cf34], 0
mov dword [ebp - 0x18], eax
jne 0x41058d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x410635
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x410635
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x41cf34], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x41cf38], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x41cf3c], eax
call edi
push eax
call esi
mov dword [0x41cf44], eax
test eax, eax
je 0x41058d
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x41cf40], eax
mov eax, dword [0x41cf40]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x4105e6
cmp dword [0x41cf44], ecx
je 0x4105e6
push eax
call esi
push dword [0x41cf44]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x4105e6
test ebx, ebx
je 0x4105e6
call edi
test eax, eax
je 0x4105dd
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x4105dd
test byte [ebp - 8], 1
jne 0x4105e6
or dword [ebp + 0x10], 0x200000
jmp 0x410619
mov eax, dword [0x41cf38]
cmp eax, dword [ebp - 0x18]
je 0x410619
push eax
call esi
test eax, eax
je 0x410619
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x410619
mov eax, dword [0x41cf3c]
cmp eax, dword [ebp - 0x18]
je 0x410619
push eax
call esi
test eax, eax
je 0x410619
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x41cf34]
call esi
test eax, eax
je 0x410635
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x410637
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004061bd
leave
ret
Function at 0x401464
Capabilities:
Allocate or change rwx memory

Disassembly:
mov eax, 0x403054
mov edx, edi
call fcn.00401338
lea edx, [ebp - 4]
push edx
mov edx, esi
or dl, 0x40
mov edi, 0x402e90
push edx
sub edi, fcn.0040265b
push edi
xor eax, eax
push fcn.0040265b
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
cmp dword [ebp - 4], 0
jmp 0x40144d
je 0x40149b
mov eax, fcn.0040265b
mov ebx, esi
mov edx, edi
call fcn.00401338
jmp 0x40148a
push ebx
push ecx
push edx
push esi
push edi
enter 4, 0
mov esi, eax
mov edx, dword [0x403050]
or dl, 1
imul edx, eax
mov edi, dword [0x403050]
mov ebx, eax
sub edi, edx
jmp 0x4013f3
mov edx, 0x1c000
mov eax, 0x403054
mov ebx, esi
call fcn.00401baf
leave

Function at 0x40214f
Capabilities:
Check if file exists
Check mutex on windows
Enumerate files on windows
Get common file path
Initialize winsock library

Disassembly:
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret
push ebx
push ecx
push edx
push esi
push edi
enter 0x78c, 0
sub ebp, 0x82
lea eax, [ebp - 0x70a]
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
mov dword [ebp + 0x72], 6
xor eax, eax
push 0x7f00
mov dword [ebp + 0x56], eax
mov dword [ebp + 0x5a], eax
mov dword [ebp + 0x66], eax
push eax
mov dword [ebp + 0x7a], eax
mov dword [ebp + 0x76], eax
call dword [sym.imp.USER32.DLL_LoadCursorW]
push 0
push 0
mov dword [ebp + 0x6e], eax
call dword [sym.imp.USER32.DLL_FindWindowA]
mov ebx, eax
lea eax, [ebp - 0x372]
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
push 0x104
mov esi, eax
lea eax, [ebp - 0x232]
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
push 0
push 0
push 3
push 0
push 0
push 0x80000000
lea eax, [ebp - 0x70a]
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov edi, eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp + 0x7e], eax
lea eax, [ebp - 0x372]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push ebx
call dword [sym.imp.USER32.DLL_GetDC]
mov edi, eax
lea eax, [ebp - 0x2a]
push eax
push eax
mov byte [ebp - 0x2a], 0
call dword [sym.imp.SHLWAPI.DLL_PathAddExtensionA]
push edi
push ebx
call dword [sym.imp.USER32.DLL_ReleaseDC]
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
lea eax, [ebp - 0x502]
push eax
push 2
call dword [sym.imp.WS2_32.DLL_WSAStartup]
push 0x104
lea eax, [ebp - 0x12e]
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateMutexW]
push 0
call dword [sym.imp.SHLWAPI.DLL_PathFindExtensionA]
lea eax, [ebp - 0x232]
push eax
call dword [sym.imp.SHLWAPI.DLL_PathFileExistsA]
push 0x7f00
push 0
call dword [sym.imp.USER32.DLL_LoadIconW]
mov dword [ebp + 0x6a], eax
lea eax, [ebp + 0x56]
push eax
call dword [sym.imp.USER32.DLL_RegisterClassW]
lea eax, [ebp + 0x16]
push eax
push eax
mov ebx, dword [ebp + 0x7e]
push eax
sub ebx, 3
mov byte [ebp + 0x16], 0
call dword [sym.imp.SHLWAPI.DLL_PathCombineA]
call dword [sym.imp.WS2_32.DLL_WSACleanup]
mov eax, ebx
lea esp, [ebp + 0x82]
pop ebp
jmp 0x40149c
Function at 0x7003d1d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x7003d2c
pop dword [ebp - 0xc]
mov eax, 0x3d80e8d1
sub eax, 0x3680aba5
sub dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0x9707e5ea
add dword [ebp - 0x1c], 0xb74a5f61
mov dword [ebp - 0x18], 0x59ed6fd
add dword [ebp - 0x18], 0x2c947548
mov dword [ebp - 0x14], 0x110a690c
sub dword [ebp - 0x14], 0xc4be24de
mov dword [ebp - 0x10], 0xd9121b12
sub dword [ebp - 0x10], 0xd9121b12
lea eax, [ebp - 0x1c]
push eax
mov eax, 0x745dbc0e
add eax, 0x92a38422
add eax, dword [ebp - 0xc]
call dword [eax]
mov dword [ebp - 0x1c], 0xc6ec9d4a
sub dword [ebp - 0x1c], 0x527a33f4
mov dword [ebp - 0x18], 0xbd0c1678
sub dword [ebp - 0x18], 0x7b9fb503
mov dword [ebp - 0x14], 0x46a334e4
sub dword [ebp - 0x14], 0xe333c878
mov dword [ebp - 0x10], 0xb8c5489e
sub dword [ebp - 0x10], 0xb8c5489e
lea ebx, [ebp - 0x1c]
push ebx
push eax
mov eax, 0xe65d8d15
add eax, 0x20a3b31f
add eax, dword [ebp - 0xc]
call dword [eax]
push 0x40
push 0x1000
push 0x3cd95
push 0
call eax
mov ecx, 0x526d
mov ebx, eax
mov esi, 0x7021400
add esi, dword [ebp - 0xc]
mov edx, 0x208b6c9
add edx, 0xeb758a77
add dword [ebp - 4], 0xb8fed37d
mov edi, dword [esi]
xor dword [ebp - 8], 0xb37b7b33
xor edi, edx
sub dword [ebp - 8], ecx
mov dword [ebx], edi
xor dword [ebp - 4], 0xab6334b5
add ebx, 0xceed110f
sub ebx, 0xceed110b
add esi, 0x446ae630
sub esi, 0x446ae62c
loop 0x7003e42
add eax, 0x45d58f22
add eax, 0xba2bad65
mov ebx, eax
add eax, 0xa0f501a1
sub eax, 0xa0f5019c
mov ecx, 0x7000000
add ecx, dword [ebp - 0xc]
call ebx
leave
ret

Function at 0x700dc1f
Capabilities:
Set current directory

Disassembly:
push 8
mov eax, 0x7012b4c
call fcn.07001ce0
mov edi, ecx
mov dword [ebp - 0x14], edi
mov esi, dword [ebp + 8]
push esi
call fcn.0700de1f
xor ebx, ebx
mov dword [edi], vtable.FileSharedStream.0
mov dword [edi + 0xc], ebx
mov byte [edi + 0x10], bl
mov eax, dword [esi + 0x14]
mov dword [edi + 0x14], eax
lea eax, [edi + 0x18]
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.kernel32.dll_InitializeCriticalSection]
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.0700e7aa
lea ecx, [ebp - 0x10]
call fcn.0700dbbc
mov eax, dword [edi + 0x14]
mov byte [ebp - 4], 2
push dword [eax + 0x14]
call dword [sym.imp.kernel32.dll_SetCurrentDirectoryA]
mov eax, dword [edi + 0x14]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x700dc8c
mov eax, dword [eax + 0x14]
jmp 0x700dc91
mov eax, 0x70148c2
push 0x7016240
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov dword [edi + 0xc], eax
pop ecx
pop ecx
test eax, eax
je 0x700dcbf
mov ecx, edi
call fcn.07007930
lea ecx, [ebp - 0x10]
call fcn.07003d1d
mov eax, edi
call fcn.07001e84
ret 4
push str.file_does_not_exist
push ebx
call fcn.07003d1d
int3
Function at 0x700e880
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi + 0xc]
test eax, eax
je 0x700e8e4
cmp byte [esi + 0x10], 0
je 0x700e8a2
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fflush]
mov eax, dword [esi + 0xc]
pop ecx
mov byte [esi + 0x10], 0
push edi
push eax
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
push dword [esi + 0xc]
mov edi, eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ferror]
add esp, 0x14
test eax, eax
je 0x700e8d2
push dword [esi + 0xc]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_feof]
pop ecx
test eax, eax
je 0x700e8eb
push dword [esi + 0xc]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
pop ecx
mov dword [esi + 8], eax
mov eax, edi
pop edi
jmp 0x700e8e6
xor eax, eax
pop esi
pop ebp
ret 8
push str.stream_read_error
push 0
call fcn.07003d1d
int3

Function at 0x700eb50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi + 4]
cmp byte [eax + 8], 0
jne 0x700eba3
cmp dword [esi + 0xc], 0
je 0x700eb9e
push dword [esi + 0xc]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
push dword [esi + 0xc]
mov byte [esi + 0x10], 1
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ferror]
add esp, 0x14
test eax, eax
je 0x700eb91
push str.stream_write_error
jmp 0x700eba8
push dword [esi + 0xc]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
pop ecx
mov dword [esi + 8], eax
pop esi
pop ebp
ret 8
push str.Attempt_to_write_read_only_stream
push 0
call fcn.07003d1d
int3
Function at 0x13142b98
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x1314a018]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x13142c30
push 0x80000002
call sub.user32.dll_FindWindowA
test eax, eax
jne 0x13142c10
xor eax, eax
push ebp
push 0x13142c09
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x13142c4c
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_GetClassNameA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x13142c10
mov eax, dword [ebp - 4]
push eax
call sub.user32.dll_EnumWindows
ret
mov ax, word [0x1314a018]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x1314a018], ax
mov esp, ebp
pop ebp
ret