joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4795c6
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 0x4795f7
call fcn.0047e531
mov dword [eax], esi
call fcn.0047e51e
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00476169
add esp, 0x14
push 0x16
pop eax
jmp 0x47964c
test dword [ebp + 0xc], 0xfffffff9
jne 0x4795d3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x479624
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0047e544
pop ecx
call fcn.0047e51e
mov eax, dword [eax]
jmp 0x47964c
test al, 0x10
jne 0x47964a
test al, 1
je 0x47964a
test byte [ebp + 0xc], 2
je 0x47964a
call fcn.0047e531
mov dword [eax], 5
call fcn.0047e51e
mov dword [eax], 0xd
jmp 0x47961b
xor eax, eax
pop esi
pop ebp
ret

Function at 0x4939b4
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00481d61
and dword [ebp - 4], 0
cmp dword [0x4d0eac], 0
mov ebx, eax
jne 0x493a65
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x493b16
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x493b16
push eax
call fcn.00481cef
mov dword [esp], 0x4b1aa8
push edi
mov dword [0x4d0eac], eax
call esi
push eax
call fcn.00481cef
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4d0eb0], eax
call esi
push eax
call fcn.00481cef
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4d0eb4], eax
call esi
push eax
call fcn.00481cef
pop ecx
mov dword [0x4d0ebc], eax
test eax, eax
je 0x493a65
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00481cef
pop ecx
mov dword [0x4d0eb8], eax
mov eax, dword [0x4d0eb8]
cmp eax, ebx
je 0x493abd
cmp dword [0x4d0ebc], ebx
je 0x493abd
push eax
call fcn.00481d6a
push dword [0x4d0ebc]
mov esi, eax
call fcn.00481d6a
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x493abd
test edi, edi
je 0x493abd
call esi
test eax, eax
je 0x493ab4
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x493ab4
test byte [ebp - 0xc], 1
jne 0x493abd
or dword [ebp + 0x10], 0x200000
jmp 0x493af6
mov eax, dword [0x4d0eb0]
cmp eax, ebx
je 0x493af6
push eax
call fcn.00481d6a
pop ecx
test eax, eax
je 0x493af6
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x493af6
mov eax, dword [0x4d0eb4]
cmp eax, ebx
je 0x493af6
push eax
call fcn.00481d6a
pop ecx
test eax, eax
je 0x493af6
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4d0eac]
call fcn.00481d6a
pop ecx
test eax, eax
je 0x493b16
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x493b18
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x49968d
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
mov eax, dword [0x4c2f90]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.0045a31e
xor ebx, ebx
push 0x63
lea eax, [ebp - 0x7b]
push ebx
push eax
mov byte [ebp - 0x7c], bl
call fcn.004764d0
add esp, 0xc
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x80]
push eax
push 0x64
lea eax, [ebp - 0x7c]
push eax
push 0x4b1e60
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x4996e1
xor al, al
jmp 0x499723
mov ecx, dword [ebp - 0x80]
push ebx
push ebx
mov eax, ecx
shr eax, 0x18
push eax
mov edx, ecx
shr edx, 0x10
mov eax, 0xff
and edx, eax
push edx
mov edx, ecx
shr edx, 8
and edx, eax
movzx eax, cl
push edx
push eax
lea eax, [ebp - 0x18]
push str._02X_02X_02X_02X_02X_02X
push eax
call fcn.0047aeef
add esp, 0x20
lea eax, [ebp - 0x18]
push eax
mov ecx, esi
call fcn.00402406
mov al, 1
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0047654a
leave
ret 4
Function at 0x49a9de
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x4c2f90]
xor eax, ebp
mov dword [ebp + 0x8c], eax
mov eax, dword [ebp + 0x98]
push ebx
push esi
push edi
xor esi, esi
push 0x103
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x77]
push esi
push eax
mov dword [ebp - 0x80], esi
mov byte [ebp - 0x78], 0
call fcn.004764d0
add esp, 0xc
push 1
push 0x23
lea eax, [ebp - 0x78]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x49aa42
push str.c:windows_temp
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp dword [ebp + 0x9c], esi
je 0x49aa68
lea eax, [ebp - 0x78]
push eax
call edi
cmp eax, 0xffffffff
jne 0x49aa68
push esi
lea eax, [ebp - 0x78]
push eax
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push str.Thunder_Network
lea eax, [ebp - 0x78]
push eax
call esi
cmp dword [ebp + 0x9c], 0
je 0x49aa95
lea eax, [ebp - 0x78]
push eax
call edi
cmp eax, 0xffffffff
jne 0x49aa95
push 0
lea eax, [ebp - 0x78]
push eax
call ebx
push str.DownloadLib
lea eax, [ebp - 0x78]
push eax
call esi
cmp dword [ebp + 0x9c], 0
je 0x49aabc
lea eax, [ebp - 0x78]
push eax
call edi
cmp eax, 0xffffffff
jne 0x49aabc
push 0
lea eax, [ebp - 0x78]
push eax
call ebx
mov ecx, dword [ebp - 0x7c]
lea eax, [ebp - 0x78]
push eax
call fcn.00402429
mov ecx, dword [ebp + 0x8c]
mov eax, dword [ebp - 0x7c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047654a
add ebp, 0x90
leave
ret
Function at 0x49efa5
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a21e5
mov eax, dword fs:[0]
push eax
mov eax, 0x28d8
call fcn.00479650
mov eax, dword [0x4c2f90]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x28c8], ecx
call fcn.0045a31e
lea ecx, [ebp - 0x28e4]
call fcn.004162e9
lea eax, [ebp - 0x28e4]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.0049eab5
pop ecx
lea eax, [ebp - 0x28cc]
push eax
lea esi, [ebp - 0x28c0]
mov eax, esi
push eax
mov dword [ebp - 0x28cc], 0x2880
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
jne 0x49f13c
mov dword [ebp - 0x28c4], ebx
movzx eax, byte [esi + 0x199]
push eax
movzx eax, byte [esi + 0x198]
push eax
movzx eax, byte [esi + 0x197]
push eax
movzx eax, byte [esi + 0x196]
push eax
movzx eax, byte [esi + 0x195]
push eax
movzx eax, byte [esi + 0x194]
push eax
lea eax, [ebp - 0x24]
push str._02X_02X_02X_02X_02X_02X
push eax
call fcn.0047aeef
add esp, 0x20
lea eax, [esi + 0x10c]
push eax
lea ecx, [ebp - 0x40]
call fcn.00402429
push ebx
push 0x4b2174
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.0049e9d8
cmp eax, 0xffffffff
jne 0x49f0f7
push ebx
push str.VMare
lea ecx, [ebp - 0x40]
call fcn.0049e9d8
cmp eax, 0xffffffff
jne 0x49f0f7
push ebx
push str.Virtual
lea ecx, [ebp - 0x40]
call fcn.0049e9d8
cmp eax, 0xffffffff
jne 0x49f0f7
push ebx
push str.SLIP
lea ecx, [ebp - 0x40]
call fcn.0049e9d8
cmp eax, 0xffffffff
jne 0x49f0f7
push ebx
push str.P.P.P
lea ecx, [ebp - 0x40]
call fcn.0049e9d8
cmp eax, 0xffffffff
jne 0x49f0f7
lea eax, [ebp - 0x28e4]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.0049e967
pop ecx
pop ecx
test al, al
je 0x49f120
mov esi, dword [esi]
push ebx
lea ecx, [ebp - 0x40]
push 1
cmp esi, ebx
je 0x49f16e
mov byte [ebp - 4], bl
call fcn.004027fd
inc dword [ebp - 0x28c4]
cmp dword [ebp - 0x28c4], 0x10
jb 0x49f02e
jmp 0x49f13c
mov ecx, dword [ebp - 0x28c8]
lea eax, [ebp - 0x24]
push eax
call fcn.00402406
push ebx
push 1
lea ecx, [ebp - 0x40]
call fcn.004027fd
mov bl, 1
lea ecx, [ebp - 0x28e4]
call fcn.00416401
push dword [ebp - 0x28e4]
call fcn.00476027
pop ecx
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0047654a
leave
ret
call fcn.004027fd
jmp 0x49f13c
Function at 0x49f61e
Capabilities:
Get storage device properties

Disassembly:
push ebp
lea ebp, [esp - 0x2ac0]
mov eax, 0x2b3c
call fcn.00479650
mov eax, dword [0x4c2f90]
xor eax, ebp
mov dword [ebp + 0x2abc], eax
push ebx
push esi
mov esi, dword [ebp + 0x2ac8]
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 3
push ebx
push str..PhysicalDrive0
mov byte [ebp - 0x49], bl
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x50], eax
cmp eax, 0xffffffff
je 0x49f776
push edi
push 0xc
lea eax, [ebp - 0x48]
push ebx
push eax
call fcn.004764d0
mov edi, 0x2710
push edi
lea eax, [ebp - 0x3c]
push ebx
push eax
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
call fcn.004764d0
add esp, 0x18
push ebx
lea eax, [ebp - 0x5c]
push eax
push edi
lea eax, [ebp - 0x3c]
push eax
push 0xc
lea eax, [ebp - 0x48]
push eax
push 0x2d1400
push dword [ebp - 0x50]
mov dword [ebp - 0x5c], ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x49f76c
lea eax, [ebp + 0x26d4]
push eax
push 1
push dword [ebp - 0x24]
lea eax, [ebp - 0x3c]
push eax
call fcn.0049f31a
movsx eax, byte [ebp + 0x26d4]
push eax
call fcn.0047de16
add esp, 0x14
test eax, eax
jne 0x49f6f3
movsx eax, byte [ebp + 0x26e7]
push eax
call fcn.0047de16
pop ecx
test eax, eax
je 0x49f76c
lea eax, [ebp + 0x26d4]
push eax
mov ecx, esi
call fcn.00402406
lea eax, [ebp - 0x64]
push eax
mov ecx, esi
mov byte [ebp - 0x4a], 0x20
call fcn.0045a265
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x74]
mov dword [ebp - 0x58], ecx
push eax
mov ecx, esi
call fcn.0045a265
mov edi, eax
lea eax, [ebp - 0x6c]
push eax
mov ecx, esi
call fcn.0045a245
lea ecx, [ebp - 0x4a]
push ecx
push dword [edi + 4]
push dword [edi]
push dword [eax + 4]
push dword [eax]
lea eax, [ebp - 0x7c]
push eax
call fcn.0049f5a0
add esp, 0x18
push dword [ebp - 0x54]
mov ecx, esi
push dword [ebp - 0x58]
push dword [eax + 4]
push dword [eax]
lea eax, [ebp - 0x58]
push eax
call fcn.0045a2ba
cmp dword [esi + 0x14], ebx
je 0x49f76c
mov byte [ebp - 0x49], 1
push dword [ebp - 0x50]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov ecx, dword [ebp + 0x2abc]
mov al, byte [ebp - 0x49]
pop esi
xor ecx, ebp
pop ebx
call fcn.0047654a
add ebp, 0x2ac0
leave
ret
Function at 0x100029ff
Capabilities:
Terminate process

Disassembly:
jmp 0x100256ee
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x100256ff
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.10004228
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x10002ab8
Capabilities:
Query environment variable

Disassembly:
jmp 0x1005e252
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x1005e263
pop esi
ret
push ebx
push edi
push esi
call fcn.1005e139
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.10003102
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x1005e28b
push ebx
push esi
push edi
call fcn.100040b1
add esp, 0xc
push 0
call fcn.1000484f
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0x100277fb
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1002783a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1002783a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1002783a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x1002783a
cmp dword [ecx + 0x74], 0xe
jbe 0x1002783a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1005c704
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x1008d500]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x1005c74f
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.1005cb79
test al, al
jne 0x1005c749
sub edx, 2
cmp edx, edi
jne 0x1005c72f
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x1005c771
lea eax, [edi + 2]
cmp edx, eax
je 0x1005c771
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.1005c2fd
add esp, 0x10
jmp 0x1005c86b
push esi
lea ecx, [ebp - 0x255]
call fcn.1005cb79
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1005c7b4
push dword [ebp - 0x25c]
jmp 0x1005c761
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x1005c7f1
cmp word [ebp - 0x226], 0
je 0x1005c812
cmp word [ebp - 0x226], ax
jne 0x1005c7f1
cmp word [ebp - 0x224], 0
je 0x1005c812
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.1005c2fd
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x1005c85e
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x1005c7cb
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x1005c846
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x1005c86b
push 0x1005bce5
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.10003f99
add esp, 0x10
jmp 0x1005c83b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000262b
leave
ret

Function at 0x10063124
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.10003364
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10063193
cmp esi, dword [ebp - 4]
je 0x1006318e
cmp dword [ebp + 0xc], 0
je 0x1006318e
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x1006316b
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.10062b4c
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x10063195
xor eax, eax
inc eax
jmp 0x10063195
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x1006f79f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x1008f598]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1006f7df
cmp byte [ebx], 0xa
jne 0x1006f7df
or byte [edi + eax + 0x28], 4
jmp 0x1006f7e4
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x1006f8e3
mov dl, byte [eax]
cmp dl, 0x1a
je 0x1006f8c6
inc eax
cmp dl, 0xd
je 0x1006f810
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1006f836
cmp eax, ecx
jae 0x1006f844
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x1006f7f8
jmp 0x1006f8e3
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1006f8c1
cmp dword [ebp - 0x10], 0
je 0x1006f8c1
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x1008f598]
test byte [eax + edi + 0x28], 0x48
je 0x1006f89b
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1006f886
mov byte [esi], dl
jmp 0x1006f897
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x1008f598]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1006f8e3
cmp byte [ebp - 1], 0xa
jne 0x1006f8aa
cmp esi, ebx
jne 0x1006f8aa
mov byte [esi], 0xa
jmp 0x1006f8e2
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1000163b
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1006f8e3
mov byte [esi], 0xd
jmp 0x1006f8e2
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x1008f598]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1006f8e0
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1006f8e3
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1006f93f
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x1008f598]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1006f985
cmp word [ebx], dx
jne 0x1006f985
or byte [eax + edi + 0x28], 4
jmp 0x1006f98a
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x1006faed
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x1006facd
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1006f9cb
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1006fa01
cmp eax, edx
jae 0x1006fa0f
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x1006f9a6
jmp 0x1006faed
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1006fac8
cmp dword [ebp - 0x18], 0
je 0x1006fac8
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x1008f598]
test byte [eax + edi + 0x28], 0x48
je 0x1006fa9e
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x1006fa62
mov word [esi], cx
jmp 0x1006fa99
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x1008f598]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x1008f598]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x1008f598]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x1006faed
pop eax
cmp word [ebp - 4], ax
jne 0x1006faae
cmp esi, ebx
jne 0x1006faae
mov word [esi], ax
jmp 0x1006faea
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1000163b
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1006faed
push 0xd
pop eax
jmp 0x1006faa9
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x1008f598]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x1006fae7
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x1006faed
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
nop
push 4
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x433072
nop
nop
nop
mov ebx, 0x40de38
nop
nop
nop
nop
mov ecx, ebx
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
mov esi, 0x22403ae1
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x433060
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x4330d2
nop
mov ebx, 0x4304d8
nop
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x49d41d8f
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53

Function at 0x40984b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x410284]
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.00404b63
and dword [ebp - 0x14], 0
cmp dword [0x411b3c], 0
mov dword [ebp - 0x18], eax
jne 0x4098fe
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4099a6
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4099a6
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x411b3c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x411b40], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x411b44], eax
call edi
push eax
call esi
mov dword [0x411b4c], eax
test eax, eax
je 0x4098fe
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x411b48], eax
mov eax, dword [0x411b48]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x409957
cmp dword [0x411b4c], ecx
je 0x409957
push eax
call esi
push dword [0x411b4c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x409957
test ebx, ebx
je 0x409957
call edi
test eax, eax
je 0x40994e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40994e
test byte [ebp - 8], 1
jne 0x409957
or dword [ebp + 0x10], 0x200000
jmp 0x40998a
mov eax, dword [0x411b40]
cmp eax, dword [ebp - 0x18]
je 0x40998a
push eax
call esi
test eax, eax
je 0x40998a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40998a
mov eax, dword [0x411b44]
cmp eax, dword [ebp - 0x18]
je 0x40998a
push eax
call esi
test eax, eax
je 0x40998a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x411b3c]
call esi
test eax, eax
je 0x4099a6
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4099a8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401ea2
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx