joyce8/EMBER2024-capa huggingface dataset:
Function at 0xe3b250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0xe4f808
push 0xe3f288
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 0xe3b329
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 0xe3b329
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.00e3e1d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0xe3b329
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 0xe3b329
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 0xe3b32c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.00e3b351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0xe3bd20
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 0xe3bd58
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 0xe3bd60
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 0xe3bd94
mov eax, dword [esp + 0x14]
test eax, eax
je 0xe3bd94
push eax
push esi
call fcn.00e3e20b
add esp, 8
pop esi
ret 0x10

Function at 0xe3bda0
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 0xe3be22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0xe3be15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0xe54320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00e3ddff
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 0xe3bdda
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 0xe3be30
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 0xe3bec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0xe3beb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0xe54320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00e3ddff
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 0xe3beab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0xe3be6a
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 0xe3c000
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 0xe3c131
push esi
call fcn.00e3f145
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.00e2e080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0xe3c131
push 0
push ebp
call fcn.00e2e3a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00e2e260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0xe3c08b
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.00e2e2f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0xe3c121
push 0xe54918
push edi
call fcn.00e3d3f0
push eax
push ebx
push esi
call fcn.00e3bf60
push 0xe548f8
push edi
call fcn.00e3d3f0
push eax
push ebx
push esi
call fcn.00e3bf60
push 0xe548d8
push edi
call fcn.00e3d3f0
push eax
push ebx
push esi
call fcn.00e3bf60
push 0xe548c0
push edi
call fcn.00e3d3f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00e3bf60
push 0xe548a0
push edi
call fcn.00e3d3f0
push eax
push ebx
push esi
call fcn.00e3bf60
push 0xe54888
push edi
call fcn.00e3d3f0
push eax
push ebx
push esi
call fcn.00e3bf60
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 0xe3d1b0
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.00e3d140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00e3d140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00e3d140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00e3d140
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 0xe3dbfa
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 0xe3dc50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xe4f87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xe3dc43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xe3dc52
xor eax, eax
pop esi
leave
ret 4
Function at 0x10007de0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test dword [esi + 0x1658], 0x800
jne 0x10007e58
push edi
push dword [esi + 0x1498]
call dword [sym.imp.USER32.dll_OpenClipboard]
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov edi, eax
test edi, edi
je 0x10007e36
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push 1
push 1
push eax
push 1
mov ecx, esi
call fcn.10007280
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebp
ret 4
test byte [esi + 0x1658], 0x20
je 0x10007e51
push 1
push 1
push 0x1006716c
push 1
mov ecx, esi
call fcn.10007280
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebp
ret 4

Function at 0x1000eab0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
push edi
mov eax, dword [edi]
call dword [eax + 0x58]
push 2
push edi
mov esi, eax
call fcn.10034c80
push 1
push edi
call sym.xwui.dll_Plugin_Redraw
cmp esi, 4
jne 0x1000eafc
push 5
push 0
push 0
lea eax, [edi + 0x1510]
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0
push 0
push 0x21
mov ecx, edi
call fcn.10033780
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x1000eb10
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push 5
push 0
push 0
add eax, 0x1510
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop ebp
ret 4

Function at 0x10015140
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ecx + 0x185c]
push edi
mov edi, dword [ecx + 0x1860]
cmp eax, edi
mov dword [ebp - 4], ecx
mov ecx, edi
cmovl ecx, eax
cmovg edi, eax
mov dword [ebp - 8], ecx
cmp edi, ecx
je 0x100151d4
sub edi, ecx
push ebx
add edi, edi
push esi
lea eax, [edi + 2]
push eax
push 0x2002
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [ebp - 4]
mov esi, eax
mov eax, dword [ebp - 8]
push edi
mov ecx, dword [ecx + 0x182c]
lea ecx, [ecx + eax*2]
push ecx
push esi
call fcn.1004b770
add esp, 0xc
xor eax, eax
mov word [edi + esi], ax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 4]
push dword [eax + 0x1498]
call dword [sym.imp.USER32.dll_OpenClipboard]
call dword [sym.imp.USER32.dll_EmptyClipboard]
push ebx
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x10001dd0
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
mov ebx, ecx
mov dword [ebp - 0x10], ebx
push esi
push edi
test ebx, ebx
je 0x10001ebd
mov eax, 0x5a4d
cmp word [ebx], ax
jne 0x10001ebd
mov eax, dword [ebx + 0x3c]
cmp dword [eax + ebx], 0x4550
jne 0x10001ebd
mov eax, dword [eax + ebx + 0x78]
xor edx, edx
add eax, ebx
mov dword [ebp - 8], edx
mov esi, dword [eax + 0x1c]
mov edi, dword [eax + 0x20]
add esi, ebx
mov ecx, dword [eax + 0x24]
add edi, ebx
mov eax, dword [eax + 0x18]
add ecx, ebx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10001ebd
xor ecx, ecx
nop word [eax + eax]
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + ecx*2]
mov eax, dword [esi + eax*4]
mov esi, dword [edi + ecx*4]
add eax, ebx
add esi, ebx
mov dword [ebp - 0x20], eax
xor ecx, ecx
mov edi, 0x12345
mov al, byte [esi]
mov byte [ebp - 1], al
test al, al
je 0x10001e95
mov bl, al
mov eax, ecx
lea esi, [esi + 1]
mov edx, 0x53354
mul edx
mov edx, 0x53354
mov ecx, eax
mov eax, edi
mul edx
mov edi, eax
add ecx, edx
movsx eax, bl
mov bl, byte [esi]
cdq
add edi, eax
adc ecx, edx
test bl, bl
jne 0x10001e66
mov ebx, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
cmp edi, dword [ebp + 8]
jne 0x10001e9f
cmp ecx, dword [ebp + 0xc]
je 0x10001eb3
inc edx
movzx ecx, dx
mov dword [ebp - 8], edx
cmp ecx, dword [ebp - 0x14]
jae 0x10001ebd
mov esi, dword [ebp - 0x18]
mov edi, dword [ebp - 0x1c]
jmp 0x10001e40
mov eax, dword [ebp - 0x20]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10001ed0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x10005004]
xor eax, ebp
mov dword [ebp - 4], eax
movups xmm0, xmmword [str.d4622d83d58775a7b4a6776d403c361c487417a1]
mov al, byte [0x10004258]
push ebx
movups xmmword [ebp - 0x30], xmm0
push esi
movups xmm0, xmmword [0x10004240]
push edi
lea edi, [ebp - 0x30]
mov dword [ebp - 0x144], ecx
movups xmmword [ebp - 0x20], xmm0
lea ecx, [edi + 1]
mov dword [ebp - 0x140], edx
movq xmm0, qword [0x10004250]
movq qword [ebp - 0x10], xmm0
mov byte [ebp - 8], al
mov al, byte [edi]
inc edi
test al, al
jne 0x10001f23
sub edi, ecx
mov edx, pe_nt_image_headers32
xor eax, eax
lea ecx, [ebp - 0x134]
nop dword [eax]
mov byte [ecx], al
inc eax
inc ecx
cmp ax, dx
jl 0x10001f40
xor dl, dl
mov word [ebp - 0x34], 0
xor cl, cl
mov dword [ebp - 0x13c], pe_nt_image_headers32
lea ebx, [ebp - 0x134]
movzx esi, dl
mov dl, byte [ebx]
movzx eax, byte [ebp + esi - 0x30]
add al, dl
add cl, al
movzx eax, cl
mov byte [ebp - 0x135], cl
lea ecx, [ebp - 0x134]
add ecx, eax
movzx eax, byte [ecx]
mov byte [ebx], al
lea eax, [esi + 1]
mov byte [ecx], dl
inc ebx
mov cl, byte [ebp - 0x135]
cdq
idiv edi
sub dword [ebp - 0x13c], 1
jne 0x10001f63
mov edi, dword [ebp - 0x140]
xor esi, esi
mov bh, byte [ebp - 0x34]
mov cl, byte [ebp - 0x33]
test edi, edi
je 0x10001ffe
inc bh
lea edx, [ebp - 0x134]
movzx eax, bh
add edx, eax
mov bl, byte [edx]
add cl, bl
movzx eax, cl
mov byte [ebp - 0x135], cl
lea ecx, [ebp - 0x134]
add ecx, eax
movzx eax, byte [ecx]
mov byte [edx], al
mov byte [ecx], bl
movzx eax, byte [edx]
mov ecx, dword [ebp - 0x144]
add al, bl
movzx eax, al
movzx eax, byte [ebp + eax - 0x134]
xor byte [esi + ecx], al
inc esi
mov cl, byte [ebp - 0x135]
cmp esi, edi
jb 0x10001fb1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100025bb
mov esp, ebp
pop ebp
ret

Function at 0x432004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..reloc
nop
mov ebx, 0x40c7d0
nop
nop
mov ecx, 0x49d230c6
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
jne 0x432024
nop
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f314
nop
mov ecx, 0x17b66e4b
nop
nop
nop
test eax, eax
nop
nop
je 0x432084
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x406550
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x10], 0
mov edi, edx
mov dword [ebp - 8], 0
xor esi, esi
mov dword [ebp - 0xc], edi
mov byte [ebp - 1], 1
test ebx, ebx
je 0x408c17
mov ecx, dword [ebp + 8]
call fcn.004068b0
test al, al
jne 0x408c17
cmp dword [ebp + 0xc], esi
je 0x408c17
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0x10]
push eax
push esi
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x408be4
cmp dword [ebp - 0x10], 1
jne 0x408c1e
mov edi, dword [ebp - 8]
test edi, edi
je 0x406627
shr edi, 1
xor ecx, ecx
mov edx, 2
lea eax, [edi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call dword [sym.imp.msvcrt.dll____U_YAPAXI_Z]
mov esi, eax
add esp, 4
test esi, esi
je 0x408c17
xor eax, eax
mov word [esi + edi*2], ax
lea eax, [ebp - 8]
mov edi, dword [ebp - 0xc]
push eax
push esi
push 0
push 0
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x408c4c
cmp ax, word [esi]
je 0x408c35
mov al, byte [ebp - 1]
mov ebx, dword [ebp + 0xc]
pop edi
mov dword [ebx], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edi, dword [ebp - 0xc]
jmp 0x408c35
lea edx, [ebp - 0xc]
mov dword [ebp - 0xc], esi
mov ecx, eax
call fcn.004098f2
test eax, eax
je 0x408c17
mov ebx, dword [ebp - 0xc]
push ebx
push edi
push dword [ebp + 8]
push 0x16
push 0
call fcn.0040948b
add esp, 0x14
test ebx, ebx
je 0x408c17
push ebx
call dword [sym.imp.msvcrt.dll____V_YAXPAX_Z]
add esp, 4
xor al, al
jmp 0x406619
push edi
push dword [ebp + 8]
push 0x18
push 0
call fcn.0040948b
add esp, 0x10
xor al, al
jmp 0x406619
push edi
push dword [ebp + 8]
push 0xe
push 0
call fcn.0040948b
add esp, 0x10
xor al, al
jmp 0x406619
lea edx, [ebp - 0xc]
mov dword [ebp - 0xc], 0
mov ecx, eax
call fcn.004098f2
test eax, eax
je 0x408c83
mov ebx, dword [ebp - 0xc]
push ebx
push edi
push dword [ebp + 8]
push 0x16
push 0
call fcn.0040948b
add esp, 0x14
test ebx, ebx
je 0x408c83
push ebx
call dword [sym.imp.msvcrt.dll____V_YAXPAX_Z]
add esp, 4
push esi
call dword [sym.imp.msvcrt.dll____V_YAXPAX_Z]
add esp, 4
xor esi, esi
xor al, al
jmp 0x406619
Function at 0x407970
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x40b218
call fcn.00407e8c
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, ebx
mov edx, 0x40c428
mov ecx, esi
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x4077ed
cmp eax, esi
jne 0x4077e0
xor esi, esi
inc esi
mov edi, esi
jmp 0x4077f0
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4077c4
xor esi, esi
inc esi
cmp dword [0x40c42c], esi
jne 0x407802
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x40783c
cmp dword [0x40c42c], ebx
jne 0x407836
mov dword [0x40c42c], esi
push 0x401018
push 0x40100c
call fcn.0040791c
pop ecx
pop ecx
test eax, eax
je 0x40783c
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x407911
mov dword [0x40c0cc], esi
cmp dword [0x40c42c], esi
jne 0x40785f
push 0x401008
push section..text
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x40c42c], 2
test edi, edi
jne 0x40786c
xor eax, eax
mov ecx, 0x40c428
xchg dword [ecx], eax
cmp dword [0x40c430], 0
je 0x407898
push 0x40c430
call fcn.00407cb0
pop ecx
test eax, eax
je 0x407898
push ebx
push 2
push ebx
mov esi, dword [0x40c430]
mov ecx, esi
call dword [0x40d1c0]
call esi
push dword [0x40c0d8]
push dword [0x40c0d4]
push dword [0x40c0d0]
call fcn.00405370
add esp, 0xc
mov dword [0x40c0c8], eax
cmp dword [0x40c0e0], 0
jne 0x4078f6
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx]
mov eax, dword [eax]
mov dword [ebp - 0x20], eax
push ecx
push eax
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x40c0cc], 0
jne 0x40790a
call dword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x40c0c8]
mov dword [ebp - 4], 0xfffffffe
call fcn.00407ed4
ret
call fcn.00407db8
jmp 0x4077a8

Function at 0x407b9f
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x40b238
call fcn.00407f28
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x407bff
cmp eax, 0xffffffff
je 0x407bff
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x407bf8
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x407bf8
cmp edx, 0x10000000
jae 0x407bf8
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x407bf5
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
call fcn.00407f6d
ret 4

Function at 0x407c60
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x407c9e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407c96
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407ca0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407c86
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x407d80
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x407d96
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x407db1
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret

Function at 0x40938e
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x40c004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x20c]
mov esi, 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x4093bf
xor al, al
jmp 0x409431
cmp eax, esi
ja 0x4093bb
lea eax, [ebp - 0x210]
mov edx, SysReAllocString
push eax
lea ecx, [ebp - 0x20c]
call fcn.0040a1f7
test eax, eax
jne 0x4093bb
push 0x25
push eax
call fcn.0040948b
push 0x26
push 0
call fcn.0040948b
add esp, 0x10
mov edx, 0x401720
xor cl, cl
push 1
call fcn.0040a3df
push 3
mov edx, 0x4017f0
xor cl, cl
call fcn.0040a3df
push dword [ebp - 0x210]
lea edx, [ebp - 0x20c]
xor cl, cl
call fcn.0040a3df
push 2
mov edx, 0x4017f8
xor cl, cl
call fcn.0040a3df
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00407980
mov esp, ebp
pop ebp
ret
Function at 0x4098db
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne al
ret

Function at 0x4099ac
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [0x40c644]
push edi
mov edi, edx
test edi, edi
je 0x4099fb
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x4099fa
and dword [ebp - 4], 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileType]
and eax, 0xffff7fff
cmp eax, 2
lea eax, [ebp - 4]
push 0
push eax
jne 0x4099ee
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
jmp 0x4099fa
lea eax, [esi + esi]
push eax
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40a57b
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x40c004]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
cmp ax, word [0x40c418]
jne 0x40a617
push edi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 6
push eax
push 1
xor edi, edi
push edi
push 0x401e70
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40a616
push esi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push edi
push 0x401f50
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x10]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x40a616
push 3
push dword [edi*8 + 0x401f60]
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
test eax, eax
je 0x40a608
inc edi
cmp edi, 0x1c
jb 0x40a5e6
jmp 0x40a616
mov ax, word [edi*8 + 0x401f64]
mov word [0x40c418], ax
pop edi
mov ecx, dword [ebp - 4]
mov ax, word [0x40c418]
xor ecx, ebp
call fcn.00407980
mov esp, ebp
pop ebp
ret