joyce8/EMBER2024-capa huggingface dataset:
Function at 0x51bab0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x6071d4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x208
lea eax, [ebp - 0x20c]
mov esi, ecx
push 0
push eax
call fcn.0056a470
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x208
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x51bb04
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053b206
mov esp, ebp
pop ebp
ret
cmp word [ebp - 0x20c], 0
jne 0x51bb12
xor ecx, ecx
jmp 0x51bb2f
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x51bb20
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.004a96a0
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x51bb6b
cmp dword [esi + 0x14], 8
jb 0x51bb4f
mov eax, dword [esi]
jmp 0x51bb51
mov eax, esi
movzx eax, word [eax + ecx*2 - 2]
cmp eax, 0x5c
je 0x51bb6b
cmp eax, 0x2f
je 0x51bb6b
push 0x5c
push 1
mov ecx, esi
call fcn.004a97a0
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.0053b206
mov esp, ebp
pop ebp
ret

Function at 0x51bbf0
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1018
call fcn.0053bd50
mov eax, dword [0x6071d4]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x1010]
mov dword [ebp - 0x100c], 0
push eax
push 0x20008
mov word [ebp - 0x1008], 0x500
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x51bc4a
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053b206
mov esp, ebp
pop ebp
ret
push esi
lea eax, [ebp - 0x1018]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push 2
push dword [ebp - 0x1010]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push dword [ebp - 0x1010]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x51bcab
lea eax, [ebp - 0x1014]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x100c]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
invalid
jne 0x51bcbf
mov eax, 1
push edi
xor esi, esi
xor edi, edi
cmp dword [ebp - 0x1004], esi
jbe 0x51bcf7
nop dword [eax]
push dword [ebp + esi*8 - 0x1000]
push dword [ebp - 0x1014]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x51bcf2
inc esi
cmp esi, dword [ebp - 0x1004]
jb 0x51bcd0
jmp 0x51bcf7
mov edi, 1
push dword [ebp - 0x1014]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0053b206
mov esp, ebp
pop ebp
ret
Function at 0x51bd20
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x6071d4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov dword [ebp - 0x14], 0x220
push edi
or edi, 0xffffffff
mov dword [ebp - 0x10], 0x223
mov dword [ebp - 0xc], 0x222
mov dword [ebp - 8], 0x221
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x18], 0x500
mov dword [esi], 0
lea eax, [ebp - 0x24]
push eax
mov eax, dword [esi]
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebp + eax*4 - 0x14]
lea eax, [ebp - 0x1c]
push 0x20
push 2
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x51bdb6
lea eax, [ebp - 0x20]
xor edi, edi
push eax
push dword [ebp - 0x24]
push edi
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 0x24]
neg eax
sbb eax, eax
and dword [ebp - 0x20], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [ebp - 0x20], edi
jne 0x51bdbd
inc dword [esi]
cmp dword [esi], 4
jl 0x51bd66
cmp dword [esi], 0
je 0x51bde3
call fcn.0051bbf0
test eax, eax
je 0x51bde3
pop edi
mov dword [esi], 0
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053b206
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0053b206
mov esp, ebp
pop ebp
ret

Function at 0x51be00
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x6071d4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 1
push 0
push 0x5ed4f8
mov esi, ecx
call fcn.004a9580
cmp eax, 0xffffffff
je 0x51be81
cmp dword [esi + 0x14], 8
jb 0x51be33
mov eax, dword [esi]
jmp 0x51be35
mov eax, esi
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x51be81
cmp word [ebp - 0x20c], 0
jne 0x51be5a
xor ecx, ecx
jmp 0x51be72
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x51be63
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.004a96a0
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop esi
call fcn.0053b206
mov esp, ebp
pop ebp
ret
Function at 0x51bea0
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x6071d4]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0x11c
xorps xmm0, xmm0
mov dword [ebp - 0x124], 0
lea eax, [ebp - 0x120]
mov edi, ecx
push 0
push eax
movups xmmword [ebp - 0x144], xmm0
movups xmmword [ebp - 0x134], xmm0
call fcn.0056a470
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x51bf14
or eax, 0xffffffff
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053b206
mov esp, ebp
pop ebp
ret
push esi
push 0x5d39b4
push 0x5ed4fc
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
lea eax, [ebp - 0x144]
push eax
test esi, esi
je 0x51bf45
mov ecx, esi
call dword [0x5a143c]
call esi
jmp 0x51bf4b
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ax, word [ebp - 0x144]
pop esi
cmp ax, 9
je 0x51bf73
cmp ax, 6
je 0x51bf73
mov byte [edi], 0
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053b206
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
mov byte [edi], 1
xor ecx, ebp
pop edi
call fcn.0053b206
mov esp, ebp
pop ebp
ret
Function at 0x51bf90
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x6071d4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], 0x11c
push eax
mov edi, edx
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp eax, 1
jne 0x51c13f
movzx eax, word [ebp - 0xc]
mov dword [edi], eax
mov eax, dword [ebp - 0x11c]
cmp eax, 4
jne 0x51c01c
cmp dword [ebp - 0x118], 0
jne 0x51c004
cmp dword [ebp - 0x110], 2
jne 0x51c004
pop edi
mov dword [esi], 1
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053b206
mov esp, ebp
pop ebp
ret
pop edi
mov dword [esi], 0
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053b206
mov esp, ebp
pop ebp
ret
cmp eax, 5
jne 0x51c087
mov eax, dword [ebp - 0x118]
test eax, eax
jne 0x51c041
pop edi
mov dword [esi], 2
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053b206
mov esp, ebp
pop ebp
ret
cmp eax, 1
jne 0x51c05e
pop edi
mov dword [esi], 3
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053b206
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x51c12d
xor eax, eax
cmp byte [ebp - 6], 1
pop edi
setne al
add eax, 3
mov dword [esi], eax
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053b206
mov esp, ebp
pop ebp
ret
cmp eax, 6
jne 0x51c127
cmp byte [ebp - 6], 1
jne 0x51c0e1
mov ecx, dword [ebp - 0x118]
cmp ecx, 2
je 0x51c0c9
cmp ecx, 3
je 0x51c0c9
xor eax, eax
cmp ecx, 1
pop edi
sete al
lea eax, [eax*2 + 5]
mov dword [esi], eax
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053b206
mov esp, ebp
pop ebp
ret
pop edi
mov dword [esi], 9
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053b206
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x118]
cmp eax, 1
jne 0x51c10a
mov dword [esi], 8
pop edi
mov dword [esi], 6
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053b206
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x51c0f2
pop edi
mov dword [esi], 0xa
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053b206
mov esp, ebp
pop ebp
ret
mov dword [esi], 0xffffffff
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053b206
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 0xffffffe5
pop edi
xor ecx, ebp
pop esi
call fcn.0053b206
mov esp, ebp
pop ebp
ret
Function at 0x51f910
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x6071d4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x208
lea eax, [ebp - 0x414]
mov esi, ecx
push 0
push eax
call fcn.0056a470
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0056a470
add esp, 0x18
mov dword [ebp - 0x420], 0
mov dword [ebp - 0x41c], 0x104
test esi, esi
je 0x51fa44
lea eax, [ebp - 0x418]
push eax
push 1
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsSCANNER.EXE
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x51fa44
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x420]
push eax
push 0
push str.Path
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x51fa44
push ecx
lea eax, [ebp - 0x20c]
mov edx, 0x104
push eax
push ecx
lea ecx, [ebp - 0x414]
call fcn.0051df30
test eax, eax
js 0x51fa38
push str.SCANAPI.DLL
lea ecx, [ebp - 0x20c]
call fcn.0051de10
test eax, eax
js 0x51fa38
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0057f357
add esp, 8
test eax, eax
jne 0x51fa38
lea eax, [ebp - 0x414]
mov edx, 0x104
push eax
mov ecx, esi
call fcn.0051ddd0
push dword [ebp - 0x418]
test eax, eax
js 0x51fa3e
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0053b206
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop esi
call fcn.0053b206
mov esp, ebp
pop ebp
ret
Function at 0x536d70
Capabilities:
Check mutex on windows

Disassembly:
push esi
xor ecx, ecx
mov esi, 0x60e410
xor eax, eax
lock cmpxchg dword [esi], ecx
test eax, eax
jne 0x536da0
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edx, eax
xor eax, eax
mov ecx, edx
lock cmpxchg dword [esi], ecx
test eax, eax
je 0x536da0
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push 0xffffffffffffffff
push dword [0x60e410]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edi, dword [esp + 0xc]
mov esi, dword [edi - 8]
lea eax, [edi - 8]
sub dword [0x60e41c], esi
mov ecx, eax
sub ecx, dword [eax + 4]
cmp dword [ecx], 0
jne 0x536dd7
add dword [ecx + 0x10], esi
lea edx, [ecx + 0x10]
mov eax, dword [edx]
mov dword [eax + ecx + 4], eax
jmp 0x536dff
lea edx, [eax + 0x10]
mov ecx, eax
mov dword [edx], esi
mov esi, dword [0x60e418]
mov dword [eax], 0
mov dword [edi], esi
mov dword [eax + 0xc], 0
test esi, esi
je 0x536dfa
mov dword [esi + 0xc], eax
mov dword [0x60e418], eax
mov edi, dword [edx]
cmp dword [edi + ecx], 0
lea esi, [edi + ecx]
jne 0x536e3c
mov eax, dword [esi + 0x10]
add eax, edi
mov dword [edx], eax
mov edi, dword [esi + 8]
test edi, edi
je 0x536e21
mov eax, dword [esi + 0xc]
mov dword [edi + 0xc], eax
mov edi, dword [esi + 8]
mov eax, dword [esi + 0xc]
test eax, eax
je 0x536e2d
mov dword [eax + 8], edi
jmp 0x536e33
mov dword [0x60e418], edi
mov eax, dword [edx]
mov dword [eax + ecx + 4], eax
lea esi, [eax + ecx]
cmp dword [ecx + 4], 0
pop edi
jne 0x536e94
cmp dword [esi], 1
jne 0x536e94
mov eax, dword [0x60e41c]
mov esi, dword [0x60e420]
sub esi, dword [edx]
lea eax, [eax + eax*2]
shr eax, 1
cmp esi, eax
jbe 0x536e94
mov edx, dword [ecx + 8]
mov dword [0x60e420], esi
test edx, edx
je 0x536e74
mov eax, dword [ecx + 0xc]
mov dword [edx + 0xc], eax
mov edx, dword [ecx + 8]
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x536e80
mov dword [eax + 8], edx
jmp 0x536e86
mov dword [0x60e418], edx
push 0x8000
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push dword [0x60e410]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
pop esi
ret

Function at 0x554874
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x5865d5
Capabilities:
Read file on windows

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

Function at 0x5865e0
Capabilities:
Read file on windows

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

Function at 0x588c85
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005887d8
Function at 0x4077b0
Capabilities:
Authenticate hmac
Encode data using base64
Parse credit card information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
push ebx
mov ebx, dword [ecx]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, edx
mov edi, dword [edi]
mov edx, dword [eax]
mov dword [ebp - 0x118], ecx
xor ecx, ecx
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0xa8], 0
mov dword [ebp - 0x8c], 0
mov dword [ebp - 8], edx
mov dword [ebp - 0xb0], edx
mov dword [ebp - 0xb8], edx
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x9c], 0
mov dword [ebp - 4], edi
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x88], ecx
mov dword [ebp - 0x40], ecx
test ebx, 0x800
je 0x40875e
mov dword [ebp - 0x24], 1
test ebx, 0x200
jne 0x408766
xor eax, eax
mov dword [ebp - 0xa0], eax
xor eax, 1
mov dword [ebp - 0xe4], eax
movsx eax, bl
and eax, 1
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x68], 0xfffffffe
mov dword [ebp - 0x74], 0xfffffffe
mov dword [ebp - 0x58], 0xfffffffe
mov dword [ebp - 0x30], 0xfffffffe
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x24], ecx
jmp 0x40783f
mov eax, 1
jmp 0x40784d

Function at 0x408922
Capabilities:
Resolve function by parsing pe exports

Disassembly:
dec esp
and al, 0x24
push ebp
mov ebp, esp
sub esp, 0x10
movzx eax, word [ecx]
push ebx
movzx eax, byte [eax + 0x49e560]
push esi
push edi
mov edi, edx
xor edx, edx
lea ecx, [ecx + eax*2]
inc edx
mov dword [ebp - 4], edi
call fcn.00408b14
mov esi, eax
cmp esi, edi
jae case.0x408a2d.119
add byte [eax], al
invalid
push 0x77
pop ebx
movzx edi, word [esi]
push 0x10
xor edx, edx
pop ecx
cmp edi, 0x7d
je 0x4825ee
cmp edi, 0x75
je 0x482606
mov eax, 0x92
cmp di, ax
je 0x4827f2
inc eax
dec esp
and al, 0x58
mov eax, 0x830f81
mov word [ecx], ax
lea eax, [esi + 4]
sub eax, ecx
mov ecx, dword [esp + 0x68]
popfd
aam 0xc
sar eax, 1
mov word [ecx], ax
push 0x78
pop ecx
mov word [esi + 4], cx
mov ecx, dword [esp + 0xc]
mov word [esi + 6], ax
add esi, 8
add ecx, 4
jmp 0x407706
Function at 0x4019e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
mov dword [edi], 0
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x401a51
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x401a1f
cmp eax, 2
jne 0x401a3b
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x401a4b
test ecx, ecx
je 0x401a46
test cl, 1
jne 0x401a3b
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x401a4b
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
mov dword [edi], ecx
xor eax, eax
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x402000
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4aa748
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x4d4e88]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 1
lea eax, [ebp - 0x71]
push eax
push ecx
lea ecx, [ebp - 0x40]
call fcn.00402ce0
lea ecx, [ebp - 0x70]
mov dword [ebp - 4], 0
call fcn.00401ca0
add eax, 4
cmp dword [eax + 0x14], 8
jb 0x402053
mov eax, dword [eax]
push 0
push 0x80
push 4
push 0
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov eax, dword [ebp - 0x48]
lea edi, [ebp - 0x48]
mov eax, dword [eax + 4]
add edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push dword [ebp - 0x54]
call fcn.0045973a
mov edi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
add esp, 4
push dword [ebp - 0x4c]
call edi
cmp dword [ebp - 0x58], 8
jb 0x4020a2
push dword [ebp - 0x6c]
call edi
xor eax, eax
mov word [ebp - 0x6c], ax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x58], 7
mov dword [ebp - 0x5c], 0
mov eax, dword [eax + 4]
push dword [ebp + eax - 0x70]
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp byte [0x4d7b09], 0
mov eax, dword [sym.imp.KERNEL32.dll_SetFilePointer]
jne 0x40214d
push 0
push 0
push 0
push esi
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x7c], 0
call eax
push 0
lea eax, [ebp - 0x7c]
push eax
push 2
lea eax, [ebp - 0x78]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40211b
cmp dword [ebp - 0x7c], 2
jne 0x40211b
mov eax, 0xfeff
cmp word [ebp - 0x78], ax
sete al
mov byte [0x4d7b09], al
jmp 0x402120
mov al, byte [0x4d7b09]
test al, al
jne 0x402141
push 0
lea eax, [ebp - 0x84]
push eax
push 2
lea eax, [ebp - 0x80]
push eax
push esi
mov dword [ebp - 0x80], 0xfeff
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov byte [0x4d7b09], 1
push 2
push 0
push 0
push esi
call eax
cmp dword [ebp - 0x28], 8
push 0
lea eax, [ebp - 0x84]
push eax
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x3c]
cmovae ecx, dword [ebp - 0x3c]
add eax, eax
push eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test esi, esi
je 0x402188
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x402188
push esi
call eax
mov eax, dword [ebp - 0x18]
lea esi, [ebp - 0x18]
mov eax, dword [eax + 4]
add esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
push dword [ebp - 0x24]
call fcn.0045973a
add esp, 4
push dword [ebp - 0x1c]
call edi
cmp dword [ebp - 0x28], 8
jb 0x4021b6
push dword [ebp - 0x3c]
call edi
xor eax, eax
mov word [ebp - 0x3c], ax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x28], 7
mov dword [ebp - 0x2c], 0
mov eax, dword [eax + 4]
push dword [ebp + eax - 0x40]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004591d7
mov esp, ebp
pop ebp
ret
Function at 0x40ab61
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 0x10]
mov esi, ecx
push dword [ebp + 0xc]
xor ebx, ebx
push dword [ebp + 8]
mov dword [esi + 8], ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x40abd7
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
jne 0x40ab99
push 0
push 0
jmp 0x40abd9
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esi + 4], eax
test eax, eax
je 0x40ab93
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esi], eax
test eax, eax
je 0x40ab93
push dword [esi + 4]
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push dword [esi]
call fcn.00459810
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
push ebx
push ebx
call fcn.004591e6
int3
Function at 0x40b1da
Capabilities:
Delete file
Get common file path

Disassembly:
push 0x3c4
mov eax, 0x49eb0f
call fcn.0045a829
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x218]
push eax
xor ebx, ebx
push 0x104
mov dword [ebp - 0x3d0], ebx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x40b226
lea ecx, [ebp - 0x234]
call fcn.0040b6f4
push 0x4c4f08
lea eax, [ebp - 0x234]
push eax
call fcn.004591e6
push 0x110
lea eax, [ebp - 0x3c4]
push ebx
push eax
call fcn.00459250
add esp, 0xc
lea eax, [ebp - 0x3c8]
push eax
mov dword [ebp - 0x3c8], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov edi, 0x4ac964
test eax, eax
je 0x40b386
cmp dword [ebp - 0x3b8], 1
jne 0x40b386
push ebx
lea eax, [ebp - 0x3c9]
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x248], edi
mov dword [ebp - 0x220], 0x4ac96c
call fcn.00408f6d
push str.123.tmp
lea ecx, [ebp - 0x248]
mov dword [ebp - 4], ebx
call fcn.0040b8c0
cmp dword [ebp - 0x230], 8
push ebx
push 0x80
push 2
push ebx
push ebx
lea eax, [ebp - 0x244]
cmovae eax, dword [ebp - 0x244]
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x40b355
lea eax, [ebp - 0x278]
push ebx
push eax
call fcn.0040b3ec
pop ecx
pop ecx
lea ecx, [ebp - 0x2b4]
push ecx
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.0040da99
push eax
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 2
call fcn.004095e2
lea ecx, [ebp - 0x2b4]
call fcn.00401b80
lea ecx, [ebp - 0x278]
mov byte [ebp - 4], bl
call fcn.00401b80
push str.temp
lea ecx, [ebp - 0x248]
call fcn.0040b8c0
push ebx
lea eax, [ebp - 0x248]
push eax
mov ecx, esi
mov dword [esi], edi
mov dword [esi + 0x28], 0x4ac96c
call fcn.00408e82
lea ecx, [ebp - 0x248]
jmp 0x40b3df
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x230], 8
lea eax, [ebp - 0x244]
cmovae eax, dword [ebp - 0x244]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x248]
call fcn.00401b80
push ebx
lea eax, [ebp - 0x3c9]
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x278]
mov dword [ebp - 0x278], edi
mov dword [ebp - 0x250], 0x4ac96c
call fcn.00408f6d
push 0x4ac888
lea ecx, [ebp - 0x278]
mov dword [ebp - 4], 3
call fcn.0040b8c0
push ebx
push eax
mov ecx, esi
mov dword [esi], edi
mov dword [esi + 0x28], 0x4ac96c
call fcn.00408e82
lea ecx, [ebp - 0x278]
call fcn.00401b80
mov eax, esi
call fcn.0045a7d8
ret

Function at 0x40d58f
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4d4e88]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], 0x74736e49
mov dword [ebp - 0x18], 0x536c6c61
mov dword [ebp - 0x14], 0x6c656968
mov word [ebp - 0x10], 0x64
cmp byte [ebp + 0xc], al
je 0x40d5d6
mov dword [ebp - 0xf], 0x7a695720
mov dword [ebp - 0xb], 0x647261
push 1
lea eax, [ebp - 0x1d]
push eax
lea eax, [ebp - 0x1c]
push eax
mov ecx, esi
call fcn.004090b1
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004591d7
leave
ret 8