joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001251
Capabilities:
Check mutex on windows

Disassembly:
push str.GM_downloading
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
sete al
ret

Function at 0x100128d
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, dword [0x104de50]
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x10012a8
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
ret

Function at 0x10014ca
Capabilities:
Create process on windows
Delete file
Get common file path

Disassembly:
push 0x27c
mov eax, 0x103954f
call fcn.01021395
cmp dword [ebx + 0x18], 8
mov edi, ecx
jb 0x10014ee
lea esi, [ebx + 4]
mov eax, dword [esi]
mov dword [ebp - 0x220], esi
jmp 0x10014f9
lea eax, [ebx + 4]
mov dword [ebp - 0x220], eax
mov esi, eax
push eax
push 0x103db94
call fcn.0100220f
pop ecx
pop ecx
call fcn.01001251
test al, al
je 0x1001529
cmp dword [ebx + 0x18], 8
jb 0x1001517
mov esi, dword [esi]
push esi
push str.ck_W_vN
call fcn.0100220f
pop ecx
pop ecx
jmp 0x1001640
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x218]
push eax
push 0
push str.kuai8
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
lea eax, [ebp - 0x218]
push eax
lea esi, [ebp - 0x23c]
call fcn.01001646
and dword [ebp - 4], 0
call fcn.010011f3
mov byte [ebp - 0x219], al
or dword [ebp - 4], 0xffffffff
xor edi, edi
push edi
push 1
call fcn.01001696
cmp byte [ebp - 0x219], 0
mov eax, dword [ebp - 0x220]
je 0x1001619
cmp dword [ebx + 0x18], 8
jb 0x100159a
mov eax, dword [eax]
push eax
push 0x103dbb0
call fcn.0100220f
push 0x44
pop esi
push esi
lea eax, [ebp - 0x288]
push edi
push eax
call fcn.01024780
add esp, 0x14
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x288]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x218]
push eax
push edi
mov dword [ebp - 0x288], esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x10015f3
lea eax, [ebp - 0x218]
push eax
push 0x103dbc0
jmp 0x1001627
push 0xffffffffffffffff
push dword [ebp - 0x230]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x22c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x230]
call esi
jmp 0x100162e
cmp dword [ebx + 0x18], 8
jb 0x1001621
mov eax, dword [eax]
push eax
push 0x103dbd8
call fcn.0100220f
pop ecx
pop ecx
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.0100126f
call fcn.01021418
ret
Function at 0x1001a6a
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x104b584]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [esi + 8], eax
push 0x100
lea eax, [ebp - 0x104]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x104]
push eax
call fcn.01029e6c
add esp, 4
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi], eax
je 0x1001ad2
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 4], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, esi
call fcn.0101daa8
leave
ret 4

Function at 0x100220f
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x104b584]
xor eax, ebp
mov dword [ebp - 4], eax
and word [ebp - 0x804], 0
push 0x7fe
lea eax, [ebp - 0x802]
push 0
push eax
call fcn.01024780
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x804]
push 0x400
push eax
call fcn.0101e20a
add esp, 0x1c
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0101daa8
leave
ret

Function at 0x1002271
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x104b584]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
push 0
push dword [esi + 8]
push dword [esi]
call edi
cmp eax, 0xffffffff
jne 0x10022ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.01029e6c
add esp, 4
jmp 0x10022b8
lea eax, [ebp - 0x48]
push eax
push 0x40
push esi
call fcn.01001b31
cmp word [ebp - 0x48], 0x5a4d
je 0x10022c4
xor eax, eax
jmp 0x100230a
mov eax, dword [esi + 8]
add eax, dword [ebp - 0xc]
push 0
push 0
push eax
push dword [esi]
call edi
cmp eax, 0xffffffff
jne 0x10022e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.01029e6c
add esp, 4
jmp 0x10022fb
lea eax, [ebp - 0x140]
push eax
push 0xf8
push esi
call fcn.01001b31
xor eax, eax
cmp dword [ebp - 0x140], 0x4550
sete al
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0101daa8
leave
ret
Function at 0x100271a
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, str.MSVBVM60.DLL
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
test esi, esi
jne 0x100279e
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [0x104e5d0]
cmp esi, dword [0x104e5d4]
jbe 0x1002758
call fcn.0101dd3f
mov ebx, dword [0x104e5d4]
cmp dword [0x104e5d0], ebx
mov dword [ebp - 0x10], 0x104e5cc
mov dword [ebp - 0xc], esi
jbe 0x1002775
call fcn.0101dd3f
cmp esi, ebx
je 0x100278d
lea esi, [ebp - 0x10]
call fcn.01006b89
push dword [eax]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x10027ee
lea ebx, [ebp - 4]
call fcn.01002e52
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
mov eax, dword [esi + 0x3c]
add eax, esi
mov ecx, dword [eax + 0x80]
test ecx, ecx
je 0x1002789
and dword [ebp - 8], 0
lea edi, [ecx + esi]
lea ecx, [ebp - 8]
push ecx
push 0x40
push dword [eax + 0x50]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x10027d9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.01029e6c
add esp, 4
jmp 0x1002789
push esi
mov eax, edi
call fcn.010025a0
test eax, eax
pop ecx
jne 0x10027eb
call fcn.01029e6c
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1002921
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
lea eax, [ebp - 4]
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x1002942
xor al, al
leave
ret
push ebx
lea eax, [ebp - 0xc]
push eax
push str.SeDebugPrivilege
xor ebx, ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x1002967
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop ebx
leave
ret
mov eax, dword [ebp - 0xc]
push ebx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
push ebx
push 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x1c]
push eax
push ebx
push dword [ebp - 4]
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x10], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x10029a4
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
jmp 0x1002964
mov bl, 1
jmp 0x1002997
Function at 0x1002c67
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
call fcn.01002921
movzx eax, al
test eax, eax
jne 0x1002c83
call fcn.01029e6c
xor al, al
jmp 0x1002cf4
call fcn.01029e6c
cmp dword [0x105000c], 6
jne 0x1002c98
call fcn.010029a8
jmp 0x1002cf4
call fcn.010027f3
test eax, eax
je 0x1002ca8
call fcn.01029e6c
jmp 0x1002cb1
call fcn.01029e6c
xor al, al
jmp 0x1002cf4
call fcn.01001d28
movzx eax, byte [0x1050010]
test eax, eax
je 0x1002ce7
and dword [ebp - 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov esi, dword [eax + 0xc]
add esi, 0xc
mov eax, dword [esi]
add eax, 0x18
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov ecx, dword [0x104de54]
mov dword [eax], ecx
mov eax, dword [0x104de5c]
add eax, dword [0x104de54]
jmp eax
pop esi
leave
ret

Function at 0x1005659
Capabilities:
Get common file path
Get startup folder

Disassembly:
push 0x214
mov eax, 0x1039f07
call fcn.01021395
mov dword [ebp - 0x220], esi
mov dword [esi], vtable.CHomePageUtil.0
xor ebx, ebx
mov dword [ebp - 4], ebx
lea eax, [esi + 4]
push 7
mov dword [esi], vtable.CSougouHomePageUtil.0
pop ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x14], ebx
mov word [eax + 4], bx
mov byte [ebp - 4], 1
lea edi, [esi + 0x24]
mov dword [edi + 0x18], ecx
mov dword [edi + 0x14], ebx
mov word [edi + 4], bx
mov byte [ebp - 4], 2
push 0x103e480
push eax
call fcn.0100166f
lea eax, [ebp - 0x21c]
push eax
push ebx
push ebx
push 0x1a
push ebx
mov dword [esi + 0x20], 2
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp - 0x21c]
push eax
push edi
call fcn.0100166f
push str.SogouExplorerconfig.xml
push edi
call fcn.0100671f
mov ecx, esi
call fcn.01005759
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.01021418
ret
Function at 0x1005759
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1039ec5
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push esi
push edi
mov eax, dword [0x104b584]
xor eax, esp
push eax
lea eax, [esp + 0x60]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x3c], 8
jb 0x1005792
mov eax, dword [ebx + 0x28]
jmp 0x1005795
lea eax, [ebx + 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10057ac
mov dword [ebx + 0x20], 1
jmp 0x100593b
lea eax, [esp + 0x24]
push eax
call fcn.01003e17
xor edi, edi
mov dword [esp + 0x68], edi
cmp dword [ebx + 0x3c], 8
jb 0x10057c7
mov eax, dword [ebx + 0x28]
jmp 0x10057ca
lea eax, [ebx + 0x28]
push ecx
mov ecx, esp
lea esi, [esp + 0x28]
mov dword [esp + 0x20], esp
mov dword [ecx], eax
call fcn.0100bf63
test al, al
jne 0x10057ec
mov dword [ebx + 0x20], 1
jmp 0x100592c
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x48], edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x44], edi
call fcn.0100692c
mov byte [esp + 0x68], 1
lea eax, [esp + 0x14]
push eax
call fcn.0100692c
mov byte [esp + 0x68], 2
push ecx
mov eax, esp
mov dword [eax], str.Item
lea eax, [esp + 0x28]
mov dword [esp + 0x24], esp
call fcn.0100c25f
test al, al
je 0x100590e
push ecx
mov eax, esp
mov dword [eax], str.homepage
lea eax, [esp + 0x1c]
mov dword [esp + 0x24], esp
push eax
lea ecx, [esp + 0x2c]
call fcn.01003e59
mov byte [esp + 0x68], 3
lea edi, [esp + 0x10]
call fcn.01006980
mov byte [esp + 0x68], 2
lea eax, [esp + 0x18]
push eax
call fcn.0100695b
push ecx
mov eax, esp
mov dword [eax], str.homepagetype
lea eax, [esp + 0x20]
mov dword [esp + 0x24], esp
push eax
lea ecx, [esp + 0x2c]
call fcn.01003e59
mov byte [esp + 0x68], 4
lea edi, [esp + 0x14]
call fcn.01006980
mov byte [esp + 0x68], 2
lea eax, [esp + 0x1c]
push eax
call fcn.0100695b
mov eax, dword [esp + 0x10]
cmp dword [eax - 4], 1
jle 0x10058cf
push dword [eax - 0xc]
lea eax, [esp + 0x14]
push eax
call fcn.01007980
mov eax, dword [esp + 0x10]
push eax
lea eax, [ebx + 4]
push eax
call fcn.0100166f
mov eax, dword [esp + 0x10]
call fcn.01007969
lea edx, [esp + 0x10]
call fcn.010079e6
lea eax, [esp + 0x14]
push eax
mov ecx, 0x103fbf0
call fcn.01007902
test eax, eax
je 0x1005826
mov dword [ebx + 0x20], 3
jmp 0x1005826
mov byte [esp + 0x68], 1
lea eax, [esp + 0x14]
push eax
call fcn.0100695b
mov byte [esp + 0x68], 0
lea eax, [esp + 0x10]
push eax
call fcn.0100695b
or dword [esp + 0x68], 0xffffffff
lea eax, [esp + 0x24]
push eax
call fcn.0100be94
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1005c4b
Capabilities:
Check if file exists
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x104b584]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, ecx
lea esi, [ebx + 0x20]
cmp dword [esi + 0x18], 8
push edi
jb 0x1005c71
mov eax, dword [esi + 4]
jmp 0x1005c74
lea eax, [esi + 4]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call edi
test eax, eax
jne 0x1005ccb
lea eax, [ebp - 0x20c]
push eax
xor eax, eax
push eax
push eax
push 0x1a
push eax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp - 0x20c]
push eax
push esi
call fcn.0100166f
push str.TheWorldTheWorld.ini
push esi
call fcn.0100671f
cmp dword [esi + 0x18], 8
jb 0x1005cb8
mov eax, dword [esi + 4]
jmp 0x1005cbb
lea eax, [esi + 4]
push eax
call edi
test eax, eax
jne 0x1005ccb
mov dword [ebx + 0x3c], 1
jmp 0x1005d0b
cmp dword [esi + 0x18], 8
jb 0x1005cd6
mov esi, dword [esi + 4]
jmp 0x1005cd9
add esi, 4
push esi
push 0x104
lea eax, [ebp - 0x414]
push eax
push 0x103e480
push str.HomePage
push str.Option
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x414]
push eax
add ebx, 4
push ebx
call fcn.0100166f
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0101daa8
leave
ret

Function at 0x1005e2c
Capabilities:
Get common file path
Get startup folder

Disassembly:
push 0x214
mov eax, 0x1039f07
call fcn.01021395
mov dword [ebp - 0x220], esi
mov dword [esi], vtable.CHomePageUtil.0
xor ebx, ebx
mov dword [ebp - 4], ebx
lea eax, [esi + 4]
push 7
mov dword [esi], vtable.CGoogleHomePageUtil.0
pop ecx
mov dword [eax + 0x18], ecx
mov dword [eax + 0x14], ebx
mov word [eax + 4], bx
mov byte [ebp - 4], 1
lea edi, [esi + 0x24]
mov dword [edi + 0x18], ecx
mov dword [edi + 0x14], ebx
mov word [edi + 4], bx
mov byte [ebp - 4], 2
push 0x103e480
push eax
mov dword [esi + 0x20], 2
call fcn.0100166f
lea eax, [ebp - 0x21c]
push eax
push ebx
push ebx
push 0x1c
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea eax, [ebp - 0x21c]
push eax
push edi
call fcn.0100166f
push str.GoogleChromeUser_DataDefaultPreferences
push edi
call fcn.0100671f
mov ecx, esi
call fcn.01005f2d
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.01021418
ret
Function at 0x1007c98
Capabilities:
Write file on windows

Disassembly:
push 0x54
mov eax, 0x1038413
call fcn.01021395
mov ebx, ecx
cmp dword [ebx + 0x3c], 0
mov dword [ebp - 0x34], ebx
je 0x1007db7
cmp byte [ebx + 0x41], 0
je 0x1007db7
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 4]
cmp eax, 0xffffffff
jne 0x1007cd0
xor al, al
jmp 0x1007db9
push 0
push 8
pop edi
lea esi, [ebp - 0x30]
call fcn.010075f8
and dword [ebp - 4], 0
add ebx, 0x44
mov dword [ebp - 0x38], ebx
mov eax, dword [ebp - 0x1c]
lea ebx, [ebp - 0x48]
lea esi, [ebp - 0x30]
mov dword [ebp - 0x40], eax
call fcn.0100767f
mov esi, eax
call fcn.01007ecc
mov edi, eax
add edi, dword [ebp - 0x40]
lea ebx, [ebp - 0x60]
lea esi, [ebp - 0x30]
call fcn.0100767f
mov esi, eax
call fcn.01007ecc
mov esi, dword [ebp - 0x34]
mov ecx, dword [esi + 0x3c]
mov edx, dword [ecx]
lea ebx, [ebp - 0x3c]
push ebx
push edi
push eax
push dword [ebp - 0x38]
call dword [edx + 0x18]
xor ebx, ebx
sub eax, ebx
je 0x1007d3b
dec eax
je 0x1007d3e
dec eax
dec eax
jne 0x1007da3
mov bl, 1
jmp 0x1007da3
mov byte [esi + 0x41], bl
lea ebx, [ebp - 0x58]
lea esi, [ebp - 0x30]
call fcn.0100767f
mov esi, eax
call fcn.01007ecc
mov edi, dword [ebp - 0x3c]
sub edi, eax
je 0x1007d7f
mov eax, dword [ebp - 0x34]
push dword [eax + 0x4c]
lea ebx, [ebp - 0x50]
push edi
push 1
lea esi, [ebp - 0x30]
call fcn.0100767f
mov esi, eax
call fcn.01007ecc
push eax
call fcn.0101e444
add esp, 0x10
cmp edi, eax
jne 0x1007da1
mov eax, dword [ebp - 0x34]
cmp byte [eax + 0x41], 0
je 0x1007d37
test edi, edi
jne 0x1007ce7
push edi
push 8
pop ebx
lea edi, [ebp - 0x30]
call fcn.0100763b
jmp 0x1007ce7
xor bl, bl
or dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x30]
call fcn.01002f64
mov al, bl
jmp 0x1007db9
mov al, 1
call fcn.01021418
ret

Function at 0x1009170
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x1009187
pop esi
ret
push edi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x10091bc
push dword [esp + 0x10]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, edi
and esi, 0xf
jbe 0x10091b8
cmp edi, eax
jae 0x10091bc
dec esi
movzx ecx, word [edi]
lea edi, [edi + ecx*2 + 2]
jne 0x10091aa
cmp edi, eax
jb 0x10091c0
xor eax, eax
jmp 0x10091ca
mov ax, word [edi]
neg ax
sbb eax, eax
and eax, edi
pop edi
pop esi
ret
Function at 0x100ac19
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, eax
push dword [esi]
push 1
push dword [esi + 8]
push edi
call fcn.0101fb75
mov ecx, dword [esi + 8]
mov ebx, eax
add esp, 0x10
dec ebx
neg ebx
mov eax, ecx
sbb bl, bl
cdq
idiv dword [esi + 0x18]
inc bl
test bl, bl
mov byte [ebp - 1], bl
mov dword [esi + 0x1c], eax
je 0x100ad73
add dword [esi + 0x14], ecx
push 0xffffffffffffffff
push eax
push 0x18
push ecx
mov ecx, dword [esi + 0x24]
mov eax, esp
mov dword [eax], ecx
push ecx
mov eax, esp
mov dword [eax], str.read
lea eax, [esi + 0x20]
push eax
mov dword [ebp - 0xc], eax
call fcn.0100939f
mov eax, dword [esi + 0x18]
mov ebx, dword [esi + 0x1c]
xor ecx, ecx
add esp, 0x18
cmp eax, 1
sete byte [ebp - 2]
test ebx, ebx
mov dword [ebp - 8], ecx
je 0x100ad23
xor edx, edx
dec ebx
cmp byte [ebp - 2], dl
je 0x100aca5
cmp byte [edi], dl
jmp 0x100aca9
cmp word [edi], 0
sete dl
test edx, edx
je 0x100acd6
test ecx, ecx
je 0x100accd
cmp edi, ecx
je 0x100accd
imul eax, dword [ebp - 8]
mov edx, edi
sub edx, ecx
push edx
push ecx
sub ecx, eax
push ecx
call fcn.0101eee0
add esp, 0xc
mov eax, dword [esi + 0x18]
inc dword [ebp - 8]
lea ecx, [eax + edi]
add edi, eax
test ebx, ebx
jne 0x100ac99
test ecx, ecx
je 0x100acfa
cmp edi, ecx
je 0x100acfa
mov eax, dword [esi + 0x18]
imul eax, dword [ebp - 8]
sub edi, ecx
push edi
push ecx
sub ecx, eax
push ecx
call fcn.0101eee0
add esp, 0xc
mov edi, dword [ebp - 8]
test edi, edi
je 0x100ad23
push 0xffffffffffffffff
push edi
push 1
push ecx
mov eax, esp
and dword [eax], 0
push ecx
mov eax, esp
push dword [ebp - 0xc]
mov dword [eax], str.nulls_removed
call fcn.0100939f
add esp, 0x18
sub dword [esi + 0x1c], edi
cmp dword [esi + 0x18], 1
jle 0x100ad67
test byte [esi + 4], 0x80
je 0x100ad67
mov esi, dword [esi + 0x1c]
jmp 0x100ad45
mov eax, dword [ebp + 8]
dec esi
lea ecx, [eax + esi*2]
movzx eax, word [ecx]
rol ax, 8
mov word [ecx], ax
test esi, esi
jne 0x100ad34
push 0xffffffffffffffff
push 0xffffffffffffffff
push esi
push ecx
mov eax, esp
and dword [eax], esi
push ecx
mov eax, esp
push dword [ebp - 0xc]
mov dword [eax], str.endian_swap
call fcn.0100939f
add esp, 0x18
mov bl, byte [ebp - 1]
pop edi
pop esi
mov al, bl
pop ebx
leave
ret 4
push esi
call fcn.0100a776
jmp 0x100ad6a
Function at 0x100b0a3
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, eax
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
imul ecx, eax
cmp dword [ebp + 8], 0
push edi
mov dword [esi + 8], ecx
jne 0x100b0c0
mov dword [ebp + 8], edx
mov ecx, dword [esi + 4]
xor edi, edi
test cl, cl
jns 0x100b12f
test edx, edx
jne 0x100b0fa
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0101d7fe
mov edi, eax
mov eax, dword [esi + 0x1c]
add eax, eax
push eax
push dword [ebp + 8]
push edi
call fcn.01023840
add esp, 0x10
mov edx, edi
mov dword [ebp + 8], edi
mov ecx, dword [esi + 0x1c]
jmp 0x100b10c
dec ecx
movzx eax, word [edx + ecx*2]
rol ax, 8
mov word [edx + ecx*2], ax
test ecx, ecx
jne 0x100b0ff
push 0xffffffffffffffff
push 0xffffffffffffffff
push ecx
push ecx
mov eax, esp
and dword [eax], ecx
push ecx
mov eax, esp
mov dword [eax], str.endian_swap
lea eax, [esi + 0x20]
push eax
call fcn.0100939f
add esp, 0x18
push dword [esi]
push 1
push dword [esi + 8]
push dword [ebp + 8]
call fcn.0101e444
add esp, 0x10
mov ebx, eax
dec ebx
neg ebx
sbb bl, bl
inc bl
test edi, edi
je 0x100b155
push edi
call fcn.0101e2b6
pop ecx
test bl, bl
je 0x100b185
mov eax, dword [esi + 8]
add dword [esi + 0x14], eax
push 0xffffffffffffffff
push dword [esi + 0x1c]
add esi, 0x20
push 0x18
push ecx
mov ecx, dword [esi + 4]
mov eax, esp
push ecx
mov dword [eax], ecx
mov eax, esp
push esi
mov dword [eax], str.write
call fcn.0100939f
add esp, 0x18
jmp 0x100b18b
push esi
call fcn.0100a776
pop edi
pop esi
mov al, bl
pop ebx
pop ebp
ret 4
Function at 0x100ea60
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
push 0x400
mov edi, eax
mov esi, ecx
mov dword [esp + 0x18], 1
xor bl, bl
call fcn.010200be
push 0x400
mov ebp, eax
push 0
push ebp
call fcn.01024780
mov edx, dword [esp + 0x2c]
add esp, 0x10
lea eax, [esp + 0x10]
push eax
mov eax, dword [esi]
push ebp
lea ecx, [esp + 0x1c]
push ecx
push 0
push edx
push eax
mov dword [esp + 0x28], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x100eaf2
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1044bc0
call fcn.01020181
add eax, 0x20
push eax
call fcn.0101ff20
add esp, 0xc
call fcn.0100ef20
push ebp
call fcn.0101e957
add esp, 4
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 8
ret 4
mov eax, ebp
mov bl, 1
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100eb00
sub eax, edx
sar eax, 1
mov ecx, ebp
mov esi, edi
call fcn.010016eb
jmp 0x100eadd
Function at 0x100f650
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x1046f18
push 0x1024ef0
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x104b584]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, edx
push 0x1c
lea eax, [ebp - 0x34]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x30]
cmp word [ecx], 0x5a4d
jne 0x100f6ef
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x100f6ef
mov edx, dword [eax + 0xd8]
lea edi, [edx + ecx]
cmp esi, edi
jb 0x100f6ef
mov eax, dword [eax + 0xdc]
add eax, edx
add eax, ecx
cmp esi, eax
jae 0x100f6ef
mov dword [ebp - 4], 0xfffffffe
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xfffffffe
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100f7a0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ecx
push esi
mov esi, dword [0x104e28c]
test esi, esi
je 0x100f7ca
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, [esp + 8]
push eax
push 0x40
push 0x10000
push esi
call edi
mov esi, dword [esi + 4]
test esi, esi
jne 0x100f7b3
pop edi
pop esi
pop ecx
ret

Function at 0x100f820
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
sub esp, 0x1c
push ebx
push esi
mov esi, eax
movzx eax, si
test eax, eax
push edi
je 0x100f836
lea esi, [eax + esi - 0x10000]
cmp esi, dword [esp + 0x2c]
jae 0x100f8df
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
lea esp, [esp]
lea eax, [esi - 0x50000000]
cmp eax, 0x30000000
ja 0x100f864
mov esi, 0x80010000
jmp 0x100f8d5
xor eax, eax
push 0x1c
lea ecx, [esp + 0x10]
push ecx
push esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
call ebx
test eax, eax
je 0x100f8df
cmp dword [esp + 0x1c], 0x10000
mov eax, dword [esp + 0x18]
jne 0x100f8c0
cmp eax, 0x10000
jb 0x100f8c0
push 0x40
push 0x3000
push 0x10000
push esi
call edi
test eax, eax
jne 0x100f8e1
add esi, 0x10000
jmp 0x100f8d5
mov edx, dword [esp + 0xc]
lea esi, [edx + eax]
movzx eax, si
test eax, eax
je 0x100f8d5
lea esi, [esi + eax - 0x10000]
cmp esi, dword [esp + 0x2c]
jb 0x100f850
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x1c
ret