joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403206
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, 0xffff0000
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
jne 0x403226
cmp dword [edi + 0x54], 0
jne 0x403226
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0040511d
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [esp + 0x18]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.004031cd
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
ret 8

Function at 0x40a1f7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x40a23a
call fcn.0040511d
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x40a23a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x40a255
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.00409dae
test ebx, ebx
mov esi, eax
je 0x40a253
test edi, edi
je 0x40a253
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x40b7e8
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x40b816
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x40b834
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0040b752
jmp 0x40b834
mov eax, dword [esi + 0x14]
test eax, eax
je 0x40b834
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.0040b752
test edi, edi
mov eax, edi
jne 0x40b81e
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x430a30]
test ecx, ecx
je 0x40b8f7
jmp 0x40b7e7
ret 8

Function at 0x40e454
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42dbf8]
jne 0x40e45e
repz ret
jmp fcn.0041222a
Function at 0x41c594
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00412391
xor ebx, ebx
cmp dword [0x4317ac], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x41c669
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x41c5d4
xor eax, eax
jmp 0x41c72d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x427cd0
push edi
call esi
cmp eax, ebx
je 0x41c5cd
push eax
call fcn.0041232e
mov dword [esp], 0x427cc0
push edi
mov dword [0x4317ac], eax
call esi
push eax
call fcn.0041232e
mov dword [esp], 0x427cac
push edi
mov dword [0x4317b0], eax
call esi
push eax
call fcn.0041232e
mov dword [0x4317b4], eax
lea eax, [ebp - 8]
push eax
call fcn.0040f759
test eax, eax
pop ecx
pop ecx
je 0x41c637
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0041362b
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x41c669
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0041232e
cmp eax, ebx
pop ecx
mov dword [0x4317bc], eax
je 0x41c669
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041232e
pop ecx
mov dword [0x4317b8], eax
mov eax, dword [0x4317b8]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x41c6e2
cmp dword [0x4317bc], esi
je 0x41c6e2
push eax
call fcn.0041239a
pop ecx
call eax
cmp eax, ebx
je 0x41c6af
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x4317bc]
call fcn.0041239a
pop ecx
call eax
test eax, eax
je 0x41c6af
test byte [ebp - 0x18], 1
jne 0x41c6e2
lea eax, [ebp - 0xc]
push eax
call fcn.0040f790
test eax, eax
pop ecx
je 0x41c6ca
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0041362b
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x41c6d9
or dword [ebp + 0x10], 0x200000
jmp 0x41c713
or dword [ebp + 0x10], 0x40000
jmp 0x41c713
mov eax, dword [0x4317b0]
cmp eax, esi
je 0x41c713
push eax
call fcn.0041239a
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x41c713
mov eax, dword [0x4317b4]
cmp eax, esi
je 0x41c713
push dword [ebp - 4]
push eax
call fcn.0041239a
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x4317ac]
call fcn.0041239a
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x421090
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x42dbf8]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.00421025
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.0040fb80
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x4210df
cmp dword [ebp - 0x1c], 5
jb 0x4210f7
jmp 0x4210f3
cmp dword [ebp - 0x10], 1
jne 0x4210f7
cmp dword [ebp - 0x1c], 4
ja 0x4210f3
jne 0x4210f7
cmp dword [ebp - 0x18], 0
jbe 0x4210f7
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x42868c
call fcn.00420ef9
test eax, eax
jge 0x421118
mov byte [0x4318fc], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040e454
add ebp, 0x78
leave
ret

Function at 0x4215b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0
jne 0x4215de
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
push eax
call fcn.004014fe
add esp, 4
mov ecx, dword [ebp - 0x10]
mov dword [ecx], 0
push 0
push 0
push 2
push 0
push 0
push 0x40000000
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x421606
cmp dword [ebp - 4], 0
jne 0x42160a
xor al, al
jmp 0x421645
push 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x14]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x421639
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x421645
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov esp, ebp
pop ebp
ret 4
Function at 0x4216c0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov dword [eax + 4], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
movzx edx, word [ecx]
cmp edx, 0x5a4d
je 0x4216ea
xor al, al
jmp 0x42176f
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
mov edx, dword [ebp - 4]
mov eax, dword [edx]
add eax, dword [ecx + 0x3c]
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
cmp dword [eax], 0x4550
je 0x421710
xor al, al
jmp 0x42176f
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
movzx eax, word [ecx + 0x14]
mov ecx, dword [edx + 0x3c]
add ecx, eax
mov edx, dword [ebp - 4]
mov eax, dword [edx]
lea ecx, [ecx + eax + 0x18]
mov edx, dword [ebp - 4]
mov dword [edx + 0xc], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
movzx edx, word [ecx + 6]
cmp edx, 1
jl 0x421755
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
movzx edx, word [ecx + 6]
cmp edx, 0x100
jle 0x421759
xor al, al
jmp 0x42176f
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp - 4]
mov eax, dword [edx]
add eax, dword [ecx + 0x14]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], eax
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x421bf0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 0x1c]
cmp dword [eax], 0
jne 0x421c1e
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
push eax
call fcn.004014fe
add esp, 4
mov ecx, dword [ebp - 0x1c]
mov dword [ecx], 0
mov edx, dword [ebp - 0x1c]
mov dword [edx + 0x14], 0
push 0
push 0
push 3
push 0
push 0
push 0x80000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
je 0x421c50
cmp dword [ebp - 4], 0
jne 0x421c57
xor al, al
jmp 0x421cf6
push 0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xc], eax
mov edx, dword [ebp - 0xc]
push edx
call fcn.00401503
add esp, 4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
mov dword [eax], ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
mov dword [edx + 0x14], eax
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx], 0
jne 0x421c92
xor al, al
jmp 0x421cf6
push 0
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x421cbf
mov ecx, dword [ebp - 0x1c]
call fcn.004216c0
movzx ecx, al
test ecx, ecx
jne 0x421cea
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
push ecx
call fcn.004014fe
add esp, 4
mov edx, dword [ebp - 0x1c]
mov dword [edx], 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x421cf6
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov esp, ebp
pop ebp
ret 4

Function at 0x422420
Capabilities:
Hash data using rshash

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0xc], 0x5c6b7
mov dword [ebp - 4], 0xf8c9
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], 0
mov dword [ebp - 8], 0
jmp 0x422460
mov eax, dword [ebp + 8]
add eax, 1
mov dword [ebp + 8], eax
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 8]
movsx eax, byte [edx]
test eax, eax
je 0x422488
mov ecx, dword [ebp - 0x10]
imul ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
movsx eax, byte [edx]
add ecx, eax
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 4]
imul ecx, dword [ebp - 0xc]
mov dword [ebp - 4], ecx
jmp 0x42244e
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret 4
Function at 0x422a00
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x14]
push eax
call fcn.0040e610
add esp, 4
push eax
mov ecx, dword [ebp + 0x14]
push ecx
push 1
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 8], eax
mov esp, ebp
pop ebp
ret 0x10

Function at 0x422be0
Capabilities:
Copy file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
push 0
mov eax, dword [ebp - 0xc]
add eax, 0x178
push eax
mov ecx, dword [ebp - 0xc]
call fcn.00422990
movzx ecx, al
test ecx, ecx
jne 0x422c6a
mov edx, dword [ebp - 0xc]
cmp dword [edx + 0x157c], 0
jle 0x422c6a
push 0
push 0
push 2
push 0
push 0
push 0x40000000
mov eax, dword [ebp - 0xc]
add eax, 0x178
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x422c6a
cmp dword [ebp - 4], 0xffffffff
je 0x422c6a
push 0
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx + 0x157c]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ecx + 0x1578]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
mov edx, dword [ebp - 0xc]
add edx, 0x578
push edx
mov ecx, dword [ebp - 0xc]
call fcn.00422990
movzx eax, al
test eax, eax
jne 0x422ca1
push 1
mov ecx, dword [ebp - 0xc]
add ecx, 0x578
push ecx
mov edx, dword [ebp - 0xc]
add edx, 0x178
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov esp, ebp
pop ebp
ret
Function at 0x423060
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x142c
call fcn.0040fce0
mov eax, dword [0x42dbf8]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x142c], ecx
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0xffffff
mov eax, dword [ebp - 0x142c]
mov byte [eax + 0x1580], 0
lea ecx, [ebp - 0x414]
push ecx
push 0x400
lea edx, [ebp - 0x1418]
push edx
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x4231e5
mov dword [ebp - 0x141c], 0
jmp 0x4230d3
mov eax, dword [ebp - 0x141c]
add eax, 1
mov dword [ebp - 0x141c], eax
mov ecx, dword [ebp - 0x414]
shr ecx, 2
cmp dword [ebp - 0x141c], ecx
jae 0x4231e5
mov edx, dword [ebp - 0x141c]
mov eax, dword [ebp + edx*4 - 0x1418]
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x1420], eax
cmp dword [ebp - 0x1420], 0
je 0x4231d3
lea ecx, [ebp - 0x1428]
push ecx
push 4
lea edx, [ebp - 0x1424]
push edx
mov eax, dword [ebp - 0x1420]
push eax
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x4231d3
push 0x400
lea ecx, [ebp - 0x410]
push ecx
mov edx, dword [ebp - 0x1424]
push edx
mov eax, dword [ebp - 0x1420]
push eax
call sub.PSAPI.DLL_GetModuleFileNameExA
mov dword [ebp - 0x418], 0
lea ecx, [ebp - 0x418]
push ecx
lea edx, [ebp - 0x410]
push edx
mov ecx, dword [ebp - 0x142c]
call fcn.00422990
movzx eax, al
test eax, eax
je 0x4231d3
cmp dword [ebp - 0x418], 0x34000
jne 0x4231d3
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 0x141c]
mov eax, dword [ebp + edx*4 - 0x1418]
cmp eax, dword [ebp - 4]
jae 0x4231ba
mov ecx, dword [ebp - 0x141c]
mov edx, dword [ebp + ecx*4 - 0x1418]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x141c]
mov ecx, dword [ebp + eax*4 - 0x1418]
push ecx
mov ecx, dword [ebp - 0x142c]
call fcn.00422940
mov edx, dword [ebp - 0x1420]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4230c4
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 4], eax
jne 0x4231fd
mov eax, dword [ebp - 0x142c]
mov byte [eax + 0x1580], 1
cmp dword [ebp - 8], 4
jge 0x42320e
mov ecx, dword [ebp - 0x142c]
call fcn.00422cb0
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0040e454
mov esp, ebp
pop ebp
ret
Function at 0x401000
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
xor eax, eax
mov byte [eax + 0x416578], al
add eax, 1
cmp eax, 0x100
jne 0x401002
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
xor esi, esi
xor ecx, ecx
push edi
mov edi, dword [esp + 0x18]
mov dword [0x415f64], esi
mov dword [0x41616c], ecx
mov edi, edi
xor edx, edx
mov eax, ecx
div edi
mov bl, byte [ecx + 0x416578]
add ecx, 1
movzx eax, byte [edx + ebp]
movzx edx, bl
add edx, esi
add eax, edx
and eax, 0xff
cmp ecx, 0x100
mov esi, eax
movzx eax, byte [esi + 0x416578]
mov byte [ecx + 0x416577], al
mov dword [0x415f64], esi
mov byte [0x416174], bl
mov byte [esi + 0x416578], bl
mov dword [0x41616c], ecx
jne 0x401030
pop edi
pop esi
xor eax, eax
pop ebp
mov dword [0x415f64], eax
mov dword [0x41616c], eax
pop ebx
ret 8
Function at 0x4010b0
Capabilities:
Get file size
Read .ini file
Read file on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x200
push 0x416178
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push edi
push edi
push 3
push edi
push 3
push 0x80000000
push 0x416178
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
lea eax, [ebp - 0x14]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push 0xf55c8
push edi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [ebp - 8], eax
mov dword [ebp - 4], edi
cmp dword [ebp - 0x28], 0xe
je 0x401120
cmp dword [ebp - 0x20], 4
jne 0x401125
mov edi, 0x6f
push str.uOmc.txt
push 0xc
push str.qweUIEuIKd
push str.e298_jkr
call esi
cmp dword [ebp - 4], 0x1388
jbe 0x401147
cmp dword [ebp - 0x10], 0
je 0x401150
add dword [ebp - 4], 1
cmp edi, 0x6f
jne 0x401114
mov esi, dword [ebp - 8]
push 0
lea ecx, [ebp - 0xc]
push ecx
push 0xf4240
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [str.EqunFgA__Vsv]
cmp byte [ecx], 0
mov eax, ecx
je 0x40117b
add eax, 1
cmp byte [eax], 0
jne 0x401173
sub eax, ecx
push eax
push ecx
call fcn.00401000
lea ebx, [esi + 0x3000]
mov esi, 0xaae60
nop
mov eax, dword [0x41616c]
add eax, 1
and eax, 0xff
movzx edx, byte [eax + 0x416578]
add edx, dword [0x415f64]
push 0x384
and edx, 0xff
mov dword [0x41616c], eax
mov dword [0x415f64], edx
call sub.MSVCR80.dll_void____cdecl_operator_new___unsigned_int_
add esp, 4
mov edi, eax
lea eax, [ebp - 4]
push eax
push 0xc
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test edi, edi
mov edx, dword [0x41616c]
mov eax, dword [0x415f64]
movzx edx, byte [edx + 0x416578]
mov cl, byte [eax + 0x416578]
mov byte [0x416175], cl
mov byte [eax + 0x416578], dl
je 0x401212
push edi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
mov eax, dword [0x415f64]
mov cl, byte [0x416175]
add esp, 4
mov edx, dword [0x41616c]
mov byte [edx + 0x416578], cl
movzx eax, byte [eax + 0x416578]
movzx ecx, cl
add eax, ecx
and eax, 0x800000ff
jns 0x401238
dec eax
or eax, 0xffffff00
inc eax
mov al, byte [eax + 0x416578]
mov byte [0x416678], al
xor byte [esi + ebx], al
sub esi, 1
test esi, esi
jg 0x401190
mov dword [ebp - 8], ebx
call dword [ebp - 8]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x404227
Capabilities:
Encode data using xor

Disassembly:
push 0x28
mov eax, 0x46433b
call fcn.00448a8f
mov ebx, dword [ebp + 8]
xor esi, esi
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], esi
lea eax, [ebp + 0xc]
push eax
xor edi, edi
lea eax, [ebp - 0x2c]
inc edi
push eax
mov dword [ebp - 4], edi
call fcn.00404082
pop ecx
pop ecx
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.00403935
mov dword [ebp - 0x30], edi
cmp dword [ebp - 0x18], esi
jbe 0x40428c
push esi
lea ecx, [ebp - 0x2c]
call fcn.004034b9
xor byte [eax], 0x61
push esi
lea ecx, [ebp - 0x2c]
call fcn.004034b9
movzx eax, byte [eax]
push eax
mov ecx, ebx
call fcn.00403a65
inc esi
cmp esi, dword [ebp - 0x18]
jb 0x404266
push 0
push edi
lea ecx, [ebp - 0x2c]
call fcn.004018df
push 0
push edi
lea ecx, [ebp + 0xc]
call fcn.004018df
mov eax, ebx
call fcn.00448b12
ret

Function at 0x4042bc
Capabilities:
Delete directory

Disassembly:
push 8
mov eax, 0x464378
call fcn.00448a26
and dword [ebp - 4], 0
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x10]
call fcn.00403949
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x14], esp
push str.PUtPSw
mov byte [ebp - 4], 1
call fcn.004023b7
lea eax, [ebp - 0x14]
push eax
call fcn.00404227
add esp, 0x20
mov eax, dword [eax]
push dword [eax - 0xc]
lea ecx, [ebp - 0x10]
push eax
mov byte [ebp - 4], 2
call fcn.00403e7b
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
mov byte [ebp - 4], 1
call fcn.0040127b
push ecx
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], esp
mov ecx, esp
push eax
call fcn.00403949
call fcn.00403afc
pop ecx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040127b
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0040127b
call fcn.00448afe
ret
Function at 0x404355
Capabilities:
Check os version

Disassembly:
push ebp
sub esp, 0x94
lea ebp, [esp - 4]
mov eax, dword [0x489170]
xor eax, ebp
mov dword [ebp + 0x94], eax
push 0xc
mov eax, 0x4643cc
call fcn.00448a26
mov ebx, dword [ebp + 0xa0]
sub esp, 0x1c
xor esi, esi
mov dword [ebp - 0x14], esi
mov ecx, esp
mov dword [ebp - 0x10], esp
push str.NA8KDw4WDw
mov dword [ebp - 4], esi
mov dword [ebp - 0x18], ebx
call fcn.004023b7
push ebx
call fcn.00404227
mov dword [ebp - 4], esi
mov esi, 0x94
push esi
xor edi, edi
lea eax, [ebp]
push 0
inc edi
push eax
mov dword [ebp - 0x14], edi
call fcn.00448370
add esp, 0x2c
lea eax, [ebp]
push eax
mov dword [ebp], esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp + 4], 5
jne 0x40442c
cmp dword [ebp + 8], edi
jne 0x4043fd
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x10], esp
push str.NggPOTE
call fcn.004023b7
lea eax, [ebp - 0x10]
push eax
call fcn.00404227
add esp, 0x20
mov dword [ebp - 4], edi
jmp 0x404489
push 2
pop esi
cmp dword [ebp + 8], esi
jne 0x40449c
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x10], esp
push str.NggPOTEV1U
call fcn.004023b7
lea eax, [ebp - 0x10]
push eax
call fcn.00404227
add esp, 0x20
mov dword [ebp - 4], esi
jmp 0x404489
cmp dword [ebp + 4], 6
jne 0x40449c
cmp dword [ebp + 8], 0
jne 0x40445f
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x10], esp
push str.NggPNwgSFQA
call fcn.004023b7
lea eax, [ebp - 0x10]
push eax
call fcn.00404227
add esp, 0x20
mov dword [ebp - 4], 3
jmp 0x404489
cmp dword [ebp + 8], edi
jne 0x40449c
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x10], esp
push str.NggPVg
call fcn.004023b7
lea eax, [ebp - 0x10]
push eax
call fcn.00404227
add esp, 0x20
mov dword [ebp - 4], 4
push eax
mov ecx, ebx
call fcn.00403f82
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040127b
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x94]
xor ecx, ebp
call fcn.00448a17
add ebp, 0x98
leave
ret

Function at 0x404585
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x489170]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x110], 0
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x105
push esi
lea eax, [ebp - 0x10c]
push 0
push eax
call fcn.00448370
add esp, 0xc
lea eax, [ebp - 0x10c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x10c]
push eax
mov ecx, edi
call fcn.004044c1
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.00448a17
leave
ret
Function at 0x4046d4
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x318
lea ebp, [esp - 4]
mov eax, dword [0x489170]
xor eax, ebp
mov dword [ebp + 0x318], eax
push 0x10
mov eax, 0x464415
call fcn.00448a26
mov eax, dword [ebp + 0x328]
and dword [ebp - 4], 0
mov edi, dword [ebp + 0x324]
and dword [ebp - 0x14], 0
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x1c], edi
call fcn.00404696
mov esi, 0x105
push esi
xor ebx, ebx
lea eax, [ebp + 0x108]
push 0
inc ebx
push eax
mov dword [ebp - 4], ebx
call fcn.00448370
add esp, 0x10
push esi
lea eax, [ebp + 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push esi
lea eax, [ebp]
push 0
push eax
call fcn.00448370
add esp, 0xc
push esi
lea eax, [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push esi
lea eax, [ebp + 0x210]
push 0
push eax
call fcn.00448370
add esp, 0xc
lea eax, [ebp + 0x210]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push dword [ebp - 0x18]
mov ecx, edi
call fcn.004044c1
push dword [ebp - 0x10]
mov ecx, edi
push str.APPPATH
mov dword [ebp - 0x14], ebx
call fcn.00403be9
lea eax, [ebp + 0x108]
push eax
push str.SYSTEMPATH
mov ecx, edi
call fcn.00403be9
lea eax, [ebp]
push eax
push str.WINDOWSPATH
mov ecx, edi
call fcn.00403be9
lea eax, [ebp + 0x210]
push eax
push str.TEMPPATH
mov ecx, edi
call fcn.00403be9
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0040127b
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x318]
xor ecx, ebp
call fcn.00448a17
add ebp, 0x31c
leave
ret