joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42e435
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x43c494]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x43c938]
je 0x42e46a
inc eax
cmp eax, 0x13
jb 0x42e45b
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x43c938]
jne 0x42e590
mov eax, dword [0x43e468]
cmp eax, 1
je 0x42e568
cmp eax, edx
jne 0x42e49a
cmp dword [0x43c44c], 1
je 0x42e568
cmp ecx, 0xfc
je 0x42e590
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x42e4d0
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.00429380
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00429480
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x42e504
mov eax, edi
push eax
call fcn.00429480
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x4395b0
push edi
call fcn.00424490
add esp, 0x10
push edi
call fcn.00429480
push dword [esi + 0x43c93c]
mov ebx, eax
call fcn.00429480
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00424ea0
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.00429380
push edi
push ebx
call fcn.00429390
push 0x439590
push ebx
call fcn.00429390
push dword [esi + 0x43c93c]
push ebx
call fcn.00429390
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0043115a
add esp, 0x2c
jmp 0x42e590
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x43c93c]
push dword [esi]
call fcn.00429480
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.0042ddfb
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x430f31
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x430f5f
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x430f66
cmp ebx, dword [eax + 4]
jae 0x430f66
xor eax, eax
jmp 0x431156
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x430f77
xor eax, eax
inc eax
jmp 0x431155
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x430f8d
cmp ecx, edx
jae 0x4310d2
cmp dword [eax + 4], 0
je 0x430f96
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x430f7e
cmp dword [ebp + 8], 0
je 0x430fb8
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x4310d2
cmp eax, esi
jae 0x4310d2
mov eax, dword [0x43e6f0]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x430fdd
cmp dword [esi*4 + 0x43e6f8], edi
je 0x4310d6
inc esi
cmp esi, eax
jl 0x430fcb
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x431152
cmp dword [ebp - 8], 0x1000000
jne 0x431152
test byte [ebp - 0xc], 0xcc
je 0x43105b
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x431152
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x431152
cmp word [eax + 0x18], 0x10b
jne 0x431152
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x431152
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x43105b
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x43105b
test byte [ecx + 0x27], 0x80
jne 0x4310d2
push 1
push 0x43e738
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x430f6f
mov ecx, dword [0x43e6f0]
test ecx, ecx
mov edx, ecx
jle 0x43108f
lea eax, [ecx*4 + 0x43e6f4]
cmp dword [eax], edi
je 0x43108f
dec edx
sub eax, 4
test edx, edx
jg 0x431083
test edx, edx
jne 0x4310c0
push 0xf
pop ebx
cmp ecx, ebx
jg 0x43109c
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x4310b4
lea eax, [edx*4 + 0x43e6f8]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x4310a2
cmp ecx, 0x10
jge 0x4310c0
inc ecx
mov dword [0x43e6f0], ecx
push 0
push 0x43e738
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x430f6f
xor eax, eax
jmp 0x431155
test esi, esi
jle 0x430f6f
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x43e738
call ebx
test eax, eax
jne 0x430f6f
cmp dword [esi*4 + 0x43e6f8], edi
je 0x43112c
mov eax, dword [0x43e6f0]
lea esi, [eax - 1]
test esi, esi
jl 0x43111a
cmp dword [esi*4 + 0x43e6f8], edi
je 0x431116
dec esi
jns 0x43110a
test esi, esi
jge 0x43112a
cmp eax, 0x10
jge 0x431125
inc eax
mov dword [0x43e6f0], eax
lea esi, [eax - 1]
jmp 0x43112c
je 0x431144
xor ecx, ecx
test esi, esi
jl 0x431144
lea eax, [ecx*4 + 0x43e6f8]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x431132
push 0
push 0x43e738
call ebx
jmp 0x430f6f
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43115a
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x43e73c], ebx
push esi
push edi
jne 0x4311da
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x431215
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4399c4
push edi
call esi
test eax, eax
mov dword [0x43e73c], eax
je 0x431215
push 0x4399b4
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x43e740], eax
call esi
cmp dword [0x43e478], 2
mov dword [0x43e744], eax
jne 0x4311da
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x43e74c], eax
je 0x4311da
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x43e748], eax
mov eax, dword [0x43e748]
test eax, eax
je 0x43121f
call eax
test eax, eax
je 0x431206
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x43e74c]
test eax, eax
je 0x431206
test byte [ebp - 8], 1
jne 0x43121f
cmp dword [0x43e484], 4
jb 0x431219
or byte [ebp + 0x12], 0x20
jmp 0x43123e
xor eax, eax
jmp 0x43124e
or byte [ebp + 0x12], 4
jmp 0x43123e
mov eax, dword [0x43e740]
test eax, eax
je 0x43123e
call eax
mov ebx, eax
test ebx, ebx
je 0x43123e
mov eax, dword [0x43e744]
test eax, eax
je 0x43123e
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x43e73c]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4312ef
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.00424ea0
mov eax, dword [0x43c494]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp ebx, dword [0x43fa88]
mov dword [ebp - 4], eax
jae 0x431432
mov eax, ebx
sar eax, 5
mov eax, dword [eax*4 + 0x43faa0]
mov ecx, ebx
and ecx, 0x1f
test byte [eax + ecx*8 + 4], 1
je 0x431432
push 1
push esi
push ebx
call fcn.004261ef
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp - 0x1008], eax
je 0x43143c
push 2
push esi
push ebx
call fcn.004261ef
add esp, 0xc
cmp eax, 0xffffffff
je 0x43143c
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x4313dc
push 0x1000
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.0042c350
push 0x8000
push ebx
call fcn.00431fd1
add esp, 0x14
mov dword [ebp + 8], eax
mov eax, 0x1000
cmp edi, eax
jge 0x43139b
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push ebx
call fcn.0042877f
add esp, 0xc
cmp eax, 0xffffffff
je 0x4313b9
sub edi, eax
test edi, edi
jg 0x431390
jmp 0x4313cf
cmp dword [0x43e470], 5
jne 0x4313cc
mov dword [0x43e46c], 0xd
or esi, 0xffffffff
push dword [ebp + 8]
push ebx
call fcn.00431fd1
pop ecx
pop ecx
jmp 0x43141c
jge 0x43141c
push 0
push dword [ebp + 0xc]
push ebx
call fcn.004261ef
push ebx
call fcn.0042edc0
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, 0xffffffff
jne 0x43141c
mov dword [0x43e46c], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x43e470], eax
push 0
push dword [ebp - 0x1008]
push ebx
call fcn.004261ef
add esp, 0xc
mov eax, esi
pop edi
jmp 0x43143f
mov dword [0x43e46c], 9
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0042ddfb
leave
ret
Function at 0x431cab
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x439a00
call fcn.0042e2e0
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x43e768], edi
jne 0x431cef
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x431cda
mov dword [0x43e768], ebx
jmp 0x431cef
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x431cef
mov dword [0x43e768], 2
mov eax, dword [0x43e768]
cmp eax, ebx
jne 0x431d0f
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x431dd2
cmp eax, 2
je 0x431d18
cmp eax, edi
jne 0x431d40
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x431d2b
mov eax, dword [0x43e4d8]
mov dword [ebp + 0x18], eax
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [ebp - 0x20], eax
cmp eax, edi
jne 0x431d47
xor eax, eax
jmp 0x431dd2
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.00424ea0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x431d7a
cmp esi, edi
jne 0x431d90
push dword [ebp - 0x20]
call fcn.0042372d
pop ecx
mov esi, eax
cmp esi, edi
je 0x431d40
mov dword [ebp - 0x24], ebx
push dword [ebp - 0x20]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x431dc3
cmp dword [ebp + 0x14], edi
jne 0x431dad
push edi
push edi
jmp 0x431db3
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push esi
push ebx
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x24], edi
je 0x431dcf
push esi
call fcn.00423779
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.0042e31b
ret
Function at 0x431ddb
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x439a10
call fcn.0042e2e0
xor esi, esi
cmp dword [0x43e76c], esi
jne 0x431e1f
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x431e0a
mov dword [0x43e76c], edi
jmp 0x431e1f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x431e1f
mov dword [0x43e76c], 2
mov eax, dword [0x43e76c]
cmp eax, 2
je 0x431f00
cmp eax, esi
je 0x431f00
cmp eax, 1
jne 0x431e64
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x431e4d
mov eax, dword [0x43e4d8]
mov dword [ebp + 0x18], eax
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, esi
jne 0x431e6b
xor eax, eax
jmp 0x431f12
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.00424ea0
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x431ea1
cmp edi, esi
jne 0x431ebc
lea eax, [ebx + ebx]
push eax
call fcn.0042372d
pop ecx
mov edi, eax
cmp edi, esi
je 0x431e64
mov dword [ebp - 0x20], 1
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x431eef
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x431ed9
push esi
push esi
jmp 0x431edf
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push edi
push esi
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], esi
je 0x431efb
push edi
call fcn.00423779
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x431f12
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea esp, [ebp - 0x34]
call fcn.0042e31b
ret
Function at 0x1033370
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 0x103338e
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 0x105c074
push ecx
mov edi, eax
call fcn.01047198
mov esi, eax
add esp, 8
test esi, esi
jne 0x10333cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.0104702e
push esi
call fcn.01046fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x1036850
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 0x10368ae
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 0x1061720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x10368ba
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.010471e1
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 0x10368ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x1061720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x103692a
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.01048082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x1036957
mov word [eax], si
add eax, 2
push eax
call fcn.01048030
add esp, 4
jmp 0x1036959
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 0x10368ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x10368b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0x1036ff0
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 0x1037080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x10370c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x105c458
push ecx
call fcn.010471e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.010471e1
add esp, 0x10
jmp 0x10370d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.0104720b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.01046dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.01037050
mov eax, dword [0x1061728]
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 0x103713b
push esi
call fcn.01036fb0
add esp, 4
mov dword [0x1061728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x103714c
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.01036ff0
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 0x103a440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x103a4b7
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 0x103a48e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x103a471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x103a47e
add edx, ecx
cmp ebx, edx
jb 0x103a48a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x103a467
xor ecx, ecx
jmp 0x103a4a2
test eax, eax
jne 0x103a492
xor ecx, ecx
jmp 0x103a4a2
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.0103a3c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x103a8f0
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 0x103a921
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 0x103a946
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 0x103a96e
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 0x103a993
push ecx
push esi
call fcn.0103a4c0
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
Function at 0x103bc00
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
xor ecx, ecx
mov cx, word [eax + 0x14]
xor esi, esi
mov si, word [eax + 6]
push edi
xor edi, edi
lea ecx, [ecx + eax + 0x18]
test esi, esi
jbe 0x103bc4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0x103bc2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0x103bc38
add edx, eax
cmp ebx, edx
jb 0x103bc46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0x103bc21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0x103bc50
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov eax, dword [ecx + 0x14]
mov esi, dword [ecx + 0xc]
mov ecx, dword [esp + 0x18]
sub eax, esi
add eax, ebx
pop edi
pop esi
add eax, ecx
pop ebx
ret

Function at 0x103bc70
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
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 0x103bcb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x103bc9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x103bca8
add edx, ecx
cmp ebx, edx
jb 0x103bcb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0x103bc91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x103bf60
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x210
push ebp
push esi
push edi
mov edi, dword [esp + 0x224]
push 0
push 0
mov ebp, dword [esp + 0x228]
push 0
push 0
push edi
push 0
push 0
push 0
push 0
push 0
push 0
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [edi]
shl eax, 2
push eax
call fcn.01048145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x103bffb
push ebx
mov ebx, eax
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push 0
lea edx, [esp + 0x28]
push ecx
push edx
push esi
push ebp
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x103bfdd
lea eax, [esp + 0x18]
push eax
jmp 0x103bfe2
push 0x1061720
call fcn.01047fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x103bfb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x103bf40
push 4
push ecx
push eax
call fcn.0104843f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0x103c310
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x210
push ebp
push esi
push edi
mov edi, dword [esp + 0x224]
push 0
push 0
mov ebp, dword [esp + 0x228]
push 0
push 0
push 0
push 0
push 0
push edi
push 0
push 0
push 0
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [edi]
shl eax, 2
push eax
call fcn.01048145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x103c3ab
push ebx
mov ebx, eax
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push 0
lea edx, [esp + 0x28]
push ecx
push edx
push esi
push ebp
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x103c38d
lea eax, [esp + 0x18]
push eax
jmp 0x103c392
push 0x1061720
call fcn.01047fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x103c360
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x103bf40
push 4
push ecx
push eax
call fcn.0104843f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0x103df20
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 0x103dfd7
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 0x103dfcf
push ebx
push edi
push 0x1061770
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
je 0x103dfae
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push 0x1061770
push esi
call ebx
test eax, eax
je 0x103dfae
mov ebp, 3
cmp dword [0x1061774], ebp
jne 0x103dfaa
push 0x3e8
call edi
push 0x1061770
push esi
call ebx
test eax, eax
jne 0x103df8f
mov ebp, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call ebx
test eax, eax
jne 0x103dfc6
push 0x64
call edi
push esi
call ebx
test eax, eax
je 0x103dfbb
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