joyce8/EMBER2024-capa huggingface dataset:
Function at 0xbe7f20
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ecx
push ebp
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebp, eax
test ebp, ebp
mov dword [esp + 4], ebp
je 0xbe7fd7
mov eax, dword [esp + 0xc]
push esi
push 0xf01ff
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0xbe7fcf
push ebx
push edi
push 0xc0b770
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
je 0xbe7fae
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push 0xc0b770
push esi
call ebx
test eax, eax
je 0xbe7fae
mov ebp, 3
cmp dword [0xc0b774], ebp
jne 0xbe7faa
push 0x3e8
call edi
push 0xc0b770
push esi
call ebx
test eax, eax
jne 0xbe7f8f
mov ebp, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call ebx
test eax, eax
jne 0xbe7fc6
push 0x64
call edi
push esi
call ebx
test eax, eax
je 0xbe7fbb
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
pop ebp
pop ecx
ret
Function at 0xbebe00
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0xc018f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov ecx, dword [esp + 0x1c]
push esi
mov esi, dword [esp + 0x24]
lea eax, [esp + 4]
push edi
xor edi, edi
push eax
push 0x20019
push edi
push esi
push ecx
mov dword [esp + 0x1c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
je 0xbebed2
lea edx, [esp + 0x24]
push eax
push edx
call fcn.00be87a0
add esp, 8
mov eax, dword [esp + 0x24]
mov dword [esp + 0x1c], edi
cmp eax, edi
je 0xbebe61
mov edx, dword [eax]
jmp 0xbebe63
xor edx, edx
xor ecx, ecx
push edi
xor eax, eax
push edx
push ecx
mov ecx, dword [esp + 0x38]
push eax
lea eax, [esp + 0x1c]
mov edx, dword [ecx + 4]
push eax
push esi
push 2
push edx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
call fcn.00bea050
mov eax, dword [esp + 0x44]
add esp, 0x20
cmp eax, edi
mov dword [esp + 0x1c], 0xffffffff
je 0xbebebf
mov esi, eax
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0xbebebf
cmp esi, edi
je 0xbebebf
mov ecx, esi
call fcn.00be3a00
push esi
call fcn.00bf11c8
add esp, 4
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
push edi
lea eax, [esp + 0x2c]
push edi
push eax
call fcn.00be8990
add esp, 0xc
mov eax, dword [esp + 0x28]
mov dword [esp + 0x1c], 1
cmp eax, edi
je 0xbebef5
mov eax, dword [eax]
jmp 0xbebef7
xor eax, eax
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x2c]
push ebx
push esi
push eax
push ecx
push edx
call fcn.00be7640
add esp, 0x10
mov bl, al
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x2c]
cmp eax, edi
je 0xbebf25
mov eax, dword [eax]
jmp 0xbebf27
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x20], 0xffffffff
cmp esi, edi
je 0xbebf76
lea ecx, [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0xbebf76
cmp esi, edi
je 0xbebf76
mov eax, dword [esi]
cmp eax, edi
je 0xbebf5d
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, edi
je 0xbebf6d
push eax
call fcn.00bf11c8
add esp, 4
push esi
call fcn.00bf11c8
add esp, 4
mov ecx, dword [esp + 0x18]
mov al, bl
pop ebx
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0xbebf90
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x208
lea eax, [esp]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
push ebp
push esi
push edi
xor edi, edi
push 0x104
push eax
push edi
push SysStringLen
call ebx
mov esi, dword [esp + 0x21c]
mov ebp, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0xbebffb
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0xbec035
lea edx, [esp + 0x10]
push esi
push edx
push SysStringLen
call fcn.00bebe00
add esp, 0xc
lea eax, [esp + 0x10]
inc edi
push 0x104
push eax
push edi
push SysStringLen
call ebx
test eax, eax
je 0xbebfc5
mov edi, 0xc068b0
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0xbec035
mov edx, dword [edi]
push esi
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00bebe00
add edi, 4
add esp, 0xc
cmp edi, 0xc068c0
jb 0xbec000
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x208
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x208
ret

Function at 0xbec070
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x250
push esi
push edi
mov edi, dword [esp + 0x25c]
push 0x5c
push edi
call fcn.00bf2082
mov esi, eax
add esp, 8
test esi, esi
je 0xbec107
lea eax, [esp + 8]
mov word [esi], 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0xbec102
push ebx
lea ebx, [esi + 2]
push ebp
lea ecx, [esp + 0x3c]
push ebx
push ecx
call fcn.00bf1946
add esp, 8
test eax, eax
je 0xbec0e3
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea edx, [esp + 0x10]
push edx
push edi
call ebp
test eax, eax
je 0xbec0e8
lea eax, [esp + 0x3c]
push ebx
push eax
call fcn.00bf1946
add esp, 8
test eax, eax
jne 0xbec0c5
mov word [esi], 0x5c
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp word [esi], 0
pop ebp
pop ebx
je 0xbec102
pop edi
mov al, 1
pop esi
add esp, 0x250
ret
mov word [esi], 0x5c
pop edi
xor al, al
pop esi
add esp, 0x250
ret
Function at 0xbecf10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0xc019fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, dword [esp + 0x2c]
xor ebp, ebp
mov dword [esp + 0x10], eax
xor ebx, ebx
mov eax, 1
mov ecx, ebx
shl eax, cl
mov ecx, dword [esp + 0x10]
test ecx, eax
je 0xbed002
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.00bf0dff
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0xbed002
lea edx, [esp + 0x14]
push edx
push str.Mounting__s_n
call fcn.00be86e0
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.00bf120b
push 0x10
call fcn.00bf11d3
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0xbecfc5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.00bdd1c0
jmp 0xbecfc7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.00becb80
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0xbecff0
mov ecx, edi
call fcn.00bdd2c0
push edi
call fcn.00bf11c8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0xbed021
inc ebx
cmp ebx, 0x20
jb 0xbecf3e
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0xbee250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xc02808
push 0xbf2288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 5
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0xbee329
lea edx, [ebp - 0x28]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0xbee329
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00bf11d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0xbee329
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x28]
push edx
call edi
test eax, eax
je 0xbee329
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x24], al
jmp 0xbee32c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.00bee351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0xbeed20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xbeed58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0xbeed60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0xbeed94
mov eax, dword [esp + 0x14]
test eax, eax
je 0xbeed94
push eax
push esi
call fcn.00bf120b
add esp, 8
pop esi
ret 0x10

Function at 0xbeeda0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xbeee22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0xbeee15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0xc07320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00bf0dff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0xbeedda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0xbeee30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0xbeeec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0xbeeeb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0xc07320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00bf0dff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0xbeeeab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0xbeee6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0xbef000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0xbef131
push esi
call fcn.00bf2145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.00be1080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0xbef131
push 0
push ebp
call fcn.00be13a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00be1260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0xbef08b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.00be12f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0xbef121
push 0xc07918
push edi
call fcn.00bf03f0
push eax
push ebx
push esi
call fcn.00beef60
push 0xc078f8
push edi
call fcn.00bf03f0
push eax
push ebx
push esi
call fcn.00beef60
push 0xc078d8
push edi
call fcn.00bf03f0
push eax
push ebx
push esi
call fcn.00beef60
push 0xc078c0
push edi
call fcn.00bf03f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00beef60
push 0xc078a0
push edi
call fcn.00bf03f0
push eax
push ebx
push esi
call fcn.00beef60
push 0xc07888
push edi
call fcn.00bf03f0
push eax
push ebx
push esi
call fcn.00beef60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0xbf01b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.00bf0140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00bf0140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00bf0140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00bf0140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0xbf0bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0xbf0c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xc0287c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xbf0c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xbf0c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x401000
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
add esi, 0x92
rol ebx, 0xf4
rol edi, 0x33
dec eax
imul ebx
neg ebx
mov esi, 0xa4
rcl ebx, 0x73
imul esi
ror esi, 0x59
mov edi, 0xd3
inc edx
dec edx
mov ebx, 0xde
imul edi
not edx
add edi, 0xb2
rcr eax, 0xd0
add esi, 0xf0
sbb eax, 0xb2
ror esi, 0x27
not edx
not ebx
ror edx, 0x16
mov edx, 0xea
rcl eax, 0x64
inc esi
add eax, 0xb5
imul eax
not ebx
add ebx, 7
not esi
rcl ebx, 0xf2
bswap esi
dec ebx
imul ebx
and eax, 0xcb
dec edi
rcl edi, 0xaa
imul edi
and edx, 0x7f
dec edi
neg edx
not eax
and edi, 0xae
neg eax
inc eax
bswap esi
or esi, 0x88
or eax, 0xe4
xor ecx, ecx
xor edi, edi
add ebx, 0xfb
neg edi
not ebx
sbb edi, 0x97
imul eax
dec esi
imul ebx
bswap edx
and eax, 0xc7
dec edi
imul edi
sbb eax, 0xc7
inc edi
add esi, 0x51
sbb edx, 0xda
imul eax
sbb eax, 0x92
imul edi
inc esi
and ebx, 0x60
mov eax, 0xa4
not eax
ror edi, 0x88
dec eax
imul edx
dec eax
sbb ebx, 0x45
mov edi, 0x67
or edx, 0x44
neg eax
not ebx
sub esi, 0xae
not eax
sub edi, 0x40
inc ebx
neg edx
rcl edx, 0xbd
rcr edx, 0x11
inc edx
imul eax
mov eax, 0xc
rcr ebx, 0xea
not eax
not esi
ror edx, 0xac
inc esi
bswap edi
and edx, 0xf9
imul edx
sub edx, 0xf5
mov ecx, dword [ebp + 0xc]
imul ebx
rcl edx, 0x6c
imul eax
not edi
dec edx
neg eax
rcr eax, 0x73
bswap edx
inc esi
neg esi
imul edx
mov ebx, 0xf9
mov edi, 0xa
dec esi
sbb edi, 0x6d
or ebx, 0x80
not eax
rcr eax, 0xb6
bswap esi
add edx, 0x5f
neg esi
not edi
rcr edx, 0xf6
sbb edi, 0x44
ror edi, 0x22
sbb edi, 0x62
imul edi
inc edi
not eax
or ebx, 0x4e
inc edi
not eax
rcl eax, 0x80
imul edx
mov edx, 0x95
rcr eax, 0x38
ror esi, 0x7e
neg edi
dec eax
not edi
not edx
neg edi
inc edi
and eax, 0x52
bswap edx
not edi
sub ebx, 0xb8
inc eax
rcr eax, 0x54
not edi
mov edi, dword [ebp + 8]
mov esi, ebx
mov ebx, eax
xor esi, esi
mov esi, eax
xor eax, ebx
mov esi, eax
xor esi, eax
mov eax, ebx
mov ebx, eax
xor esi, ebx
xor ebx, eax
xor esi, esi
not byte [edi]
mov ebx, eax
mov esi, eax
xor eax, esi
mov ebx, esi
mov esi, esi
xor eax, ebx
xor ebx, ebx
mov eax, esi
xor ebx, ebx
sub byte [edi], 0x49
xor eax, ebx
mov ebx, ebx
xor ebx, esi
xor esi, ebx
mov ebx, ebx
mov esi, ebx
mov esi, ebx
mov esi, esi
xor eax, ebx
add byte [edi], 0x89
mov eax, eax
xor ebx, esi
xor esi, eax
xor esi, esi
mov esi, esi
xor esi, eax
mov ebx, ebx
xor eax, ebx
xor esi, eax
imul byte [edi]
inc edi
loop 0x4011bb
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40bec5
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40bf04
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40bf04
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40bf04
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40bf04
cmp dword [ecx + 0x74], 0xe
jbe 0x40bf04
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x40d5bd
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x40d5de
jl 0x40d5d5
test edi, edi
jne 0x40d5de
xor eax, eax
xor edx, edx
jmp 0x40d69f
cmp dword [ebx + 0x38], 0
je 0x40d5f3
push eax
push edi
push dword [ebp + 8]
call fcn.0040d6a5
jmp 0x40d69f
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x40d63a
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x40d63a
cmp eax, edi
jb 0x40d614
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.0040e610
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x40d640
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x40d694
mov ecx, ebx
call fcn.0040cdd1
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x40d67f
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0041768f
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x40d694
jmp 0x40d652
test edx, edx
je 0x40d694
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0041768f
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x41aa9f
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42f350
push 0x42f348
push str.FlsAlloc
push 0x1e
call fcn.0041a90c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41aad3
push dword [ebp + 8]
mov ecx, esi
call dword [0x42b160]
call esi
jmp 0x41aad9
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41ab1d
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42f360
push 0x42f358
push str.FlsGetValue
push 0x20
call fcn.0041a90c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41ab54
push dword [ebp + 8]
mov ecx, esi
call dword [0x42b160]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x41dc79
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x41dd16
push ebx
push esi
call fcn.0041dc42
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0041db8b
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41dcc3
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41dd15
push edi
push eax
call fcn.0041b93c
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41dce3
call fcn.0041adf5
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41dd14
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041db8b
add esp, 0x20
test eax, eax
jne 0x41dd02
push edi
call fcn.0041adf5
jmp 0x41dd0a
push ebx
call fcn.0041adf5
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x422210
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00422081

Function at 0x42260a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00429cf0
mov eax, dword [0x4844d8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.0041c771
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x42264c
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4227a8
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00429b20
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x485c40]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00423601
mov ecx, dword [esi*4 + 0x485c40]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x4227a1
cmp eax, dword [edi + ecx + 0x24]
jne 0x4227a1
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4227a1
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00423601
add esp, 0x14
test edx, edx
jl 0x4227a1
jg 0x422717
test eax, eax
jb 0x4227a1
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4227a1
jl 0x422731
cmp dword [ebp - 0x1008], eax
ja 0x4227a1
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x42274f
test ebx, ebx
je 0x422788
cmp ecx, edi
jae 0x422788
mov al, byte [ecx]
cmp al, 0xd
jne 0x422769
lea eax, [edi - 1]
cmp ecx, eax
jae 0x422775
cmp byte [ecx + 1], 0xa
jne 0x422775
inc ecx
jmp 0x422775
movzx eax, al
movsx eax, byte [eax + 0x484c78]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x42274f
cmp edx, ebx
jne 0x42274f
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4227a6
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040c358
leave
ret