joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b9b0
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov eax, dword [0x43300c]
mov ebx, dword [ebp + 8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
call fcn.00416b42
add esp, 4
test eax, eax
je 0x40bb9d
mov edi, eax
movzx eax, word [ebx + eax*2 - 2]
cmp ax, 0x5c
je 0x40b9ea
cmp ax, 0x2f
jne 0x40b9eb
dec edi
lea eax, [edi + 2]
mov ecx, 0xffffffff
add eax, eax
cmovae ecx, eax
push ecx
call fcn.0040da41
add esp, 4
mov esi, eax
lea eax, [edi + edi + 4]
push eax
push 0
push esi
call fcn.00410040
add esp, 0xc
lea eax, [edi + 1]
push eax
push ebx
push esi
call fcn.00416fbb
add esp, 0xc
push esi
call fcn.00414f63
add esp, 4
lea ebx, [ebp - 0x14]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
push 0xf0000000
push 1
push 0
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x40bb0c
lea eax, [ebp - 0x18]
push eax
push 0
push 0
push 0x8003
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x40bb33
add edi, edi
push 0
push edi
push esi
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x40bb33
mov dword [ebp - 0x1c], 4
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x20]
push 0
push eax
push ecx
push 4
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
xor edi, edi
test eax, eax
je 0x40bbb3
mov edi, dword [ebp - 0x20]
push edi
call fcn.0040da41
add esp, 4
mov ebx, eax
push edi
push 0
push eax
call fcn.00410040
add esp, 0xc
push 0
lea eax, [ebp - 0x20]
push eax
push ebx
push 2
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x40bb33
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x40baf5
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [ebp - 0x14]
mov edi, 1
test eax, eax
je 0x40bb35
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x40bb35
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x40bb33
push 0xf0000008
push 1
push 0
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x40ba5c
xor edi, edi
push esi
call fcn.0040da4a
add esp, 4
test edi, edi
je 0x40bb9d
mov esi, dword [ebp + 0xc]
push 0x104
push str.SOFTWAREMozillaMaintenanceService_
push esi
call fcn.00416fbb
add esp, 0xc
cmp dword [ebp - 0x20], 0
mov edi, ebx
je 0x40bb8d
add esi, 0x48
xor ebx, ebx
nop word cs:[eax + eax]
nop
movzx eax, byte [edi + ebx]
push eax
push str._.2x
push esi
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
inc ebx
add esi, 4
cmp ebx, dword [ebp - 0x20]
jb 0x40bb70
push edi
call fcn.0040da4a
add esp, 4
mov esi, 1
jmp 0x40bb9f
xor esi, esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040e271
mov eax, esi
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
jmp 0x40bb35
Function at 0x40c890
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov eax, dword [0x43300c]
mov esi, dword [ebp + 8]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp dword [esi], 0
je 0x40c8f5
lea eax, [ebp + 0x10]
mov dword [ebp - 0x14], eax
push dword [esi]
push 1
push 0xd
push str._Warning:
call fcn.00416586
add esp, 0x10
mov ebx, dword [ebp - 0x14]
mov edi, dword [esi]
call fcn.00402090
push ebx
push 0
push dword [ebp + 0xc]
push edi
push dword [eax + 4]
push dword [eax]
call fcn.004109d0
add esp, 0x18
push dword [esi]
push 1
push 4
push str._n
call fcn.00416586
add esp, 0x10
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040e271
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40c910
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x220
mov eax, dword [0x43300c]
mov esi, dword [ebp + 8]
lea edi, [ebp - 0x21a]
xor eax, ebp
mov dword [ebp - 0x10], eax
push 0x20a
push 0
push edi
call fcn.00410040
add esp, 0xc
push 0x104
push esi
push edi
call fcn.00416fbb
add esp, 0xc
lea ebx, [ebp - 0x220]
mov dword [ebp - 0x220], 0
push ebx
push 0x42df52
push edi
call fcn.0041704c
add esp, 0xc
test eax, eax
je 0x40caf6
mov esi, eax
mov dword [ebp - 0x228], eax
jmp 0x40c9aa
test ecx, ecx
jne 0x40cb00
push ebx
push 0x42df52
push 0
call fcn.0041704c
add esp, 0xc
mov edi, eax
push eax
push esi
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
test edi, edi
je 0x40caf6
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test eax, 0x400
je 0x40c988
push 0
push 0x2200000
push 3
push 0
push 7
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp eax, 0xffffffff
je 0x40ca45
push 0x4000
call fcn.0040da41
add esp, 4
mov ebx, eax
push 0x4000
push 0
push eax
call fcn.00410040
add esp, 0xc
mov dword [ebp - 0x224], 0
push 0
lea eax, [ebp - 0x224]
push eax
push 0x4000
push ebx
push 0
push 0
push 0x900a8
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x40ca58
mov eax, dword [ebx]
cmp eax, 0xa000000c
je 0x40ca66
cmp eax, 0xa0000003
jne 0x40ca58
cmp word [ebx + 0xa], 5
jb 0x40ca6d
movzx eax, word [ebx + 8]
and eax, 0xfffffffe
lea eax, [ebx + eax + 0x10]
jmp 0x40ca8e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
mov ecx, 1
setne al
jmp 0x40cad4
mov dword [ebp - 0x22c], 1
mov al, 1
jmp 0x40cab3
cmp word [ebx + 0xa], 5
jae 0x40ca83
mov dword [ebp - 0x22c], 1
mov dword [ebp - 0x228], 0
jmp 0x40cab9
movzx eax, word [ebx + 8]
and eax, 0xfffffffe
lea eax, [ebx + eax + 0x14]
push 4
push str.___
push eax
call fcn.00416f81
add esp, 0xc
xor ecx, ecx
test eax, eax
mov eax, dword [ebp - 0x228]
setne cl
mov dword [ebp - 0x22c], ecx
or al, cl
mov dword [ebp - 0x228], eax
push ebx
call fcn.0040da4a
add esp, 4
mov ecx, dword [ebp - 0x22c]
lea ebx, [ebp - 0x220]
mov eax, dword [ebp - 0x228]
mov dword [ebp - 0x228], eax
mov eax, edi
inc eax
cmp eax, 2
jb 0x40c980
push edi
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, edi
jmp 0x40c980
mov dword [ebp - 0x228], 0
mov ebx, dword [ebp - 0x228]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
and bl, 1
call fcn.0040e271
mov eax, ebx
add esp, 0x220
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40cc00
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov eax, dword [0x43300c]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x14]
push eax
push 0
push 0x8000
push section..rdata
call sub.SHELL32.dll_SHGetKnownFolderPath
xor esi, esi
test eax, eax
js 0x40cc48
mov ebx, dword [ebp - 0x14]
push ebx
call fcn.00416b42
add esp, 4
cmp eax, 0x105
jb 0x40cc5c
push ebx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040e271
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret
mov edi, dword [ebp + 8]
push 0x105
push ebx
push edi
call fcn.00416fbb
add esp, 0xc
push dword [ebp - 0x14]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push str.Mozilla_Maintenance_Service
push edi
call fcn.0040d840
add esp, 8
test eax, eax
je 0x40cc48
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40cca3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40cc48
push str.UpdateLogs
push edi
call fcn.0040d840
add esp, 8
test eax, eax
je 0x40cc48
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40ccd3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x40cc48
mov esi, 1
jmp 0x40cc48
Function at 0x40d320
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x30
mov eax, dword [0x43300c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push 5
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
test eax, eax
je 0x40d3f6
mov esi, eax
push 4
push dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
je 0x40d419
mov ecx, dword [ebp + 0xc]
mov edi, eax
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x30], 0xcf
imul ebx, ecx, 0x3e8
test ebx, ebx
je 0x40d43e
xor esi, esi
jmp 0x40d39d
cmp dword [ebp - 0x30], 1
je 0x40d45e
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
add esi, 0x32
cmp esi, ebx
jae 0x40d445
lea eax, [ebp - 0x38]
push eax
push 0x24
lea eax, [ebp - 0x34]
push eax
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x40d380
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7b
jle 0x40d49a
lea ecx, [eax - 0x41c]
cmp ecx, 0xa
ja 0x40d3d8
mov edx, 0x601
bt edx, ecx
jb 0x40d38a
cmp eax, 0x7c
je 0x40d4db
cmp eax, 0x45b
jne 0x40d4e8
mov ebx, 0xde
mov dword [ebp - 0x30], ebx
jmp 0x40d463
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0x429
mov ebx, 0xfd
sete cl
xor ecx, 0xff
cmp eax, 5
cmovne ebx, ecx
jmp 0x40d471
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp edi, 0x7a
jg 0x40d44a
cmp edi, 5
je 0x40d485
cmp edi, 6
jne 0x40d493
mov ebx, 0xec
jmp 0x40d471
mov ebx, 0xcf
jmp 0x40d463
mov ebx, dword [ebp - 0x30]
jmp 0x40d463
cmp edi, 0x7b
je 0x40d48c
cmp edi, 0x424
jne 0x40d493
mov ebx, 0xee
jmp 0x40d471
mov ebx, 1
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call esi
push dword [ebp - 0x3c]
call esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040e271
mov eax, ebx
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret
mov ebx, 0xeb
jmp 0x40d471
mov ebx, 0xed
jmp 0x40d471
mov ebx, 0xef
jmp 0x40d471
cmp eax, 0x56
jg 0x40d4b3
cmp eax, 5
je 0x40d4c7
cmp eax, 6
jne 0x40d4e8
mov ebx, 0xd9
mov dword [ebp - 0x30], ebx
jmp 0x40d463
cmp eax, 0x57
je 0x40d4d1
cmp eax, 0x7a
jne 0x40d4e8
mov ebx, 0xdb
mov dword [ebp - 0x30], ebx
jmp 0x40d463
mov ebx, 0xda
mov dword [ebp - 0x30], ebx
jmp 0x40d463
mov ebx, 0xdc
mov dword [ebp - 0x30], ebx
jmp 0x40d463
mov ebx, 0xdd
mov dword [ebp - 0x30], ebx
jmp 0x40d463
mov ebx, 0xdf
mov dword [ebp - 0x30], ebx
jmp 0x40d463
Function at 0x40d500
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x41c
mov eax, dword [0x43300c]
lea edi, [ebp - 0x424]
xor eax, ebp
mov dword [ebp - 0x10], eax
push 0x20a
push 0
push edi
call fcn.00410040
add esp, 0xc
push edi
call fcn.0040cc00
add esp, 4
xor esi, esi
test eax, eax
je 0x40d566
lea ebx, [ebp - 0x21a]
push 0x20a
push 0
push ebx
call fcn.00410040
add esp, 0xc
push ebx
push str..status
push dword [ebp + 8]
call fcn.0040cce0
add esp, 0xc
test eax, eax
jne 0x40d57d
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040e271
mov eax, esi
add esp, 0x41c
pop esi
pop edi
pop ebx
pop ebp
ret
push ebx
push edi
call fcn.0040d840
add esp, 8
test eax, eax
je 0x40d566
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x40d566
mov edi, eax
push dword [ebp + 0xc]
push str.failed:__d
push ebx
call fcn.0040d600
add esp, 0xc
push ebx
call fcn.004168f0
add esp, 4
mov esi, eax
lea eax, [ebp - 0x428]
push 0
push eax
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
setne al
cmp dword [ebp - 0x428], esi
sete cl
and cl, al
movzx esi, cl
jmp 0x40d566

Function at 0x40d660
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x230
mov edi, dword [ebp + 8]
mov eax, dword [0x43300c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
cmp eax, 0xffffffff
je 0x40d6d6
mov esi, eax
lea eax, [ebp - 0x23c]
mov dword [ebp - 0x23c], 0x22c
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x40d6f0
lea ebx, [ebp - 0x218]
nop word [eax + eax]
push ebx
push edi
call fcn.00414df8
add esp, 8
test eax, eax
je 0x40d6fa
lea eax, [ebp - 0x23c]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40d6b0
mov edi, 0x490
jmp 0x40d6fc
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040e271
add esp, 0x230
pop esi
pop edi
pop ebx
pop ebp
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x40d6fc
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040e271
mov eax, edi
add esp, 0x230
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40d780
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push esi
sub esp, 0x254
mov eax, dword [0x43300c]
mov esi, dword [ebp + 8]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x40d7ec
lea ecx, [ebp - 0x258]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x40d822
lea eax, [ebp - 0x22c]
push 0x105
push eax
push 0x4347a4
call fcn.00416fbb
add esp, 0xc
mov esi, 0x4347a4
mov word [0x4349ac], 0
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0040e271
mov eax, esi
add esp, 0x254
pop esi
pop ebp
ret
lea ecx, [ebp - 0x258]
lea eax, [esi + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x40d7b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.0041423c
cmp esi, 2
mov ecx, 9
cmove ecx, esi
xor esi, esi
mov dword [eax], ecx
jmp 0x40d7d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp eax, 0x12
je 0x40d7d7
call fcn.0041423c
mov dword [eax], 2
jmp 0x40d7d7

Function at 0x41d9a9
Capabilities:
Set environment variable

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

Function at 0x4203b0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004203bb
Function at 0x4400c9
Capabilities:
Encrypt data using dpapi

Disassembly:
push esi
push edi
push 0x46c6d0
push str.AdvApi32.dll
call main
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
mov esi, eax
test esi, esi
js 0x44010c
push str.SystemFunction040
push dword [0x46c6d0]
call edi
push str.SystemFunction041
push dword [0x46c6d0]
mov dword [0x46c6c0], eax
call edi
mov dword [0x46c6c4], eax
jmp 0x440111
mov eax, dword [0x46c6c4]
cmp dword [0x46c6c0], 0
je 0x440122
test eax, eax
jne 0x4401c9
push 0x46c6d4
push str.Crypt32.dll
call main
mov esi, eax
test esi, esi
js 0x4401d3
push str.CryptProtectMemory
push dword [0x46c6d4]
call edi
cmp dword [0x46c6c0], 0
mov dword [0x46c6c8], eax
jne 0x440187
test eax, eax
jne 0x440187
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x440171
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x440178
mov esi, 0x80004005
push esi
push 0x28
push str.c:_agent_work138_s_srclibsdutilcryputil.cpp
call fcn.004038f5
jmp 0x4401d3
push str.CryptUnprotectMemory
push dword [0x46c6d4]
call edi
cmp dword [0x46c6c4], 0
mov dword [0x46c6cc], eax
jne 0x4401c9
test eax, eax
jne 0x4401c9
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4401bd
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x4401c4
mov esi, 0x80004005
push esi
push 0x2d
jmp 0x44017b
mov dword [0x46c6d8], 1
pop edi
mov eax, esi
pop esi
ret

Function at 0x4488a5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x4488b4
pop dword [ebp - 0x40]
mov eax, 0x42cb43dd
add eax, 0xbd7944d7
sub dword [ebp - 0x40], eax
push 0x40
push 0x1000
push 0x50303
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x40]
call dword [eax]
mov ecx, 0x4854
xor edi, edi
add edi, eax
mov edx, 0x475e00
add edx, dword [ebp - 0x40]
mov esi, 0xfb3ae2ae
sub esi, 0x88c6c49c
xor dword [ebp - 0x30], esi
mov ebx, dword [edx]
add dword [ebp - 0x2c], esi
xor ebx, esi
mov dword [ebp - 0x24], 0xd275ed4e
mov dword [edi], ebx
add dword [ebp - 0xc], 0x1433cfd5
add edi, 0x6fe43ac0
add edi, 0x901bc544
add edx, 0x6d800d63
add edx, 0x927ff2a1
loop 0x448904
add eax, 0x6f6dda16
add eax, 0x90933a0d
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x7ef713c0
sub ecx, 0x7eb713c0
add ecx, dword [ebp - 0x40]
call ebx
leave
ret
Function at 0x407760
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x30
lea eax, [esp + 0x2c]
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], eax
lea eax, [esp + 0x28]
mov dword [esp + 8], eax
lea eax, [esp + 0x24]
mov dword [esp + 4], eax
lea eax, [esp + 0x20]
mov dword [esp], eax
mov dword [esp + 0x2c], 0
call sub.msvcrt.dll___getmainargs
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
add eax, 1
mov dword [esp], eax
call sub.msvcrt.dll___set_app_type
mov eax, dword [esp + 0x28]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call fcn.00408100
mov dword [esp], eax
call sub.msvcrt.dll_exit
nop
nop
nop
nop
nop
nop
nop
nop
nop
push ebp
mov ebp, esp
and esp, 0xfffffff0
call sub.msvcrt.dll___iob_func
mov edx, dword [ebp + 8]
leave
shl edx, 5
add eax, edx
ret
Function at 0xe30370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0xe3038e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0xe59074
push ecx
mov edi, eax
call fcn.00e44198
mov esi, eax
add esp, 8
test esi, esi
jne 0xe303cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.00e4402e
push esi
call fcn.00e43fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0xe33850
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call edi
test eax, eax
jne 0xe338ae
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0xe5e720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xe338ba
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x1c]
push str.DefaultIcon
push ecx
call fcn.00e441e1
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0xe338ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0xe5e720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xe3392a
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x218
ret
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.00e45082
xor esi, esi
add esp, 8
cmp eax, esi
je 0xe33957
mov word [eax], si
add eax, 2
push eax
call fcn.00e45030
add esp, 4
jmp 0xe33959
xor eax, eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0xe338ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0xe338b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0xe33ff0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0xe34080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0xe340c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0xe59458
push ecx
call fcn.00e441e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.00e441e1
add esp, 0x10
jmp 0xe340d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.00e4420b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00e43dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00e34050
mov eax, dword [0xe5e728]
xor esi, esi
add esp, 0x14
lea edx, [esp + 0x20]
cmp eax, esi
mov dword [esp + 8], 0x18
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], 0x40
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
jne 0xe3413b
push esi
call fcn.00e33fb0
add esp, 4
mov dword [0xe5e728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0xe3414c
mov ecx, 1
mov edx, dword [esp + 0x458]
push esi
push esi
push 0x20
push ecx
mov ecx, dword [esp + 0x45c]
push ecx
push edx
lea ecx, [esp + 0x40]
push esi
push ecx
mov ecx, dword [esp + 0x468]
lea edx, [esp + 0x28]
or ecx, 0x100000
push edx
lea edx, [esp + 0x28]
push ecx
push edx
push eax
call fcn.00e33ff0
mov ecx, dword [esp + 0x34]
add esp, 0x30
neg eax
sbb eax, eax
pop esi
not eax
and eax, ecx
add esp, 0x43c
ret

Function at 0xe37440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0xe374b7
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0xe3748e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xe37471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xe3747e
add edx, ecx
cmp ebx, edx
jb 0xe3748a
inc edi
add eax, 0x28
cmp edi, esi
jb 0xe37467
xor ecx, ecx
jmp 0xe374a2
test eax, eax
jne 0xe37492
xor ecx, ecx
jmp 0xe374a2
mov ecx, dword [eax + 0x14]
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
sub ecx, esi
add ecx, ebx
add ecx, eax
mov edx, dword [esp + 0x18]
push edx
push 0
push 0
push ecx
push ecx
call fcn.00e373c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0xe378f0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebx
mov eax, dword [esp + 8]
push ebp
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0xe37921
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebp, eax
test ebp, ebp
jne 0xe37946
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0xe3796e
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x18]
mov dword [ecx], esi
mov dword [ecx + 4], eax
cmp word [esi], 0x5a4d
jne 0xe37993
push ecx
push esi
call fcn.00e374c0
add esp, 8
mov bl, al
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
ret