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

Disassembly:
push edi
push 1
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x431287
push esi
push 0x10024
push 0x464ad8
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x43127f
push 0x46f4c4
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x431271
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x3e8
call ebx
push 0x46f4c4
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x431270
nop
cmp dword [0x46f4c8], 3
jne 0x431270
push 0x3e8
call ebx
push 0x46f4c4
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x431250
pop ebx
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
pop edi
ret

Function at 0x431290
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebx
push esi
push edi
push 0x53c
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4313e9
push 0x53c
push 0
push esi
call fcn.0043a360
add esp, 0xc
mov dword [esi + 0x41c], 0x11c
lea ecx, [esi + 0x41c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4313e9
call fcn.00433490
mov word [esi + 0x538], ax
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
push esi
push 0x430f50
push 0x464ad8
mov word [esi + 0x53a], ax
call dword [sym.imp.ADVAPI32.dll_RegisterServiceCtrlHandlerExW]
mov dword [esi + 0x414], eax
test eax, eax
je 0x4313e9
mov eax, dword [0x46d8d8]
mov dword [0x46f4d8], eax
inc eax
push 0x46f4c4
mov dword [0x46f4c4], 0x10
mov dword [0x46f4d4], 0
mov dword [0x46f4cc], 0
mov dword [0x46f4c8], 2
mov dword [0x46f4d0], 0
mov dword [0x46f4dc], 0xbb8
push dword [esi + 0x414]
mov dword [0x46d8d8], eax
call dword [sym.imp.ADVAPI32.dll_SetServiceStatus]
test eax, eax
je 0x4313e9
mov edi, dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push esi
push 0
push 0
push 0x23
push 0
call edi
test eax, eax
js 0x4313e9
mov ebx, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.CanonIJPLM
push esi
call ebx
test eax, eax
je 0x4313e9
mov ecx, esi
call fcn.00433410
test eax, eax
je 0x4313e9
lea eax, [esi + 0x20a]
push eax
push 0
push 0
push 0x26
push 0
call edi
test eax, eax
js 0x4313e9
push str.CanonIJPLMIJPLMUI.EXE
lea eax, [esi + 0x20a]
push eax
call ebx
test eax, eax
je 0x4313e9
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x418], eax
test eax, eax
je 0x4313e9
pop edi
mov eax, esi
pop esi
pop ebx
ret
mov ecx, esi
call fcn.00431400
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x4317b0
Capabilities:
Check mutex on windows
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x424
mov eax, dword [0x46d070]
xor eax, esp
mov dword [esp + 0x420], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
push ecx
push 0
push 0x1f0001
mov esi, 1
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov edi, eax
test edi, edi
je 0x4317fe
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4318ab
mov eax, dword [0x464d94]
mov dword [esp + 0x18], eax
mov eax, dword [0x464d98]
push 0x200
mov dword [esp + 0x20], eax
lea eax, [esp + 0x24]
push 0
push eax
call fcn.0043a360
add esp, 0xc
cmp dword [ebp + 8], 0
je 0x431841
push 0x464d9c
lea eax, [esp + 0x1c]
push 0x104
push eax
call fcn.00441ab2
add esp, 0xc
push 0x208
lea eax, [esp + 0x224]
push 0
push eax
call fcn.0043a360
add esp, 0xc
lea eax, [esp + 0x220]
push eax
push 0
push 0
push 0x26
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x431885
push str.CanonIJPLMIJPLMAGR.EXE
lea eax, [esp + 0x224]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0
push eax
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x224]
call fcn.004315a0
mov esi, eax
add esp, 4
test esi, esi
je 0x431928
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0
call fcn.004278a0
cmp dword [esp + 0xc], 0
mov dword [esp + 0x10], str.ANALYSIS
je 0x4318ff
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
push 0xf003f
call dword [sym.imp.ADVAPI32.dll_RegOpenCurrentUser]
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x18]
call fcn.004276c0
push dword [esp + 0x14]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x43190b
lea eax, [esp + 0x10]
push eax
call fcn.00427730
mov edi, eax
test ebx, ebx
je 0x431911
mov dword [ebx], edi
cmp dword [esp + 0xc], 0
je 0x431928
call dword [sym.imp.ADVAPI32.dll_RevertToSelf]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x42c]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0043598e
mov esp, ebp
pop ebp
ret 0xc

Function at 0x431b80
Capabilities:
Access the windows event log

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 4], 0
je 0x431bdc
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, esi
call fcn.00432700
mov eax, dword [esi + 8]
test eax, eax
je 0x431bc7
push 0
push 0
push 0
push 0
push 0
push 0x40000002
push 0
push 4
push eax
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push dword [esi + 8]
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov dword [esi + 8], 0
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x431bd3
call fcn.00431400
lea ecx, [esi + 0x50]
pop esi
jmp fcn.00416a40
pop esi
ret
Function at 0x432ba0
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x455ca9
mov eax, dword fs:[0]
push eax
sub esp, 0xe4
mov eax, dword [0x46d070]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
push ecx
mov ecx, esi
call fcn.00401220
cmp eax, 1
je 0x432d52
cmp word [0x46f4e0], 0
jne 0x432c15
push 0x46f4e0
push 0
push 0
push 0x26
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x432c15
push str.CanonIJPLMIJPLMENQ.EXE
push 0x46f4e0
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
sub esp, 8
lea ecx, [ebp - 0xf0]
call fcn.004027b0
mov edx, 0x464f38
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xe0]
call fcn.004098a0
mov edx, esi
mov ecx, eax
call fcn.00409350
mov edx, 0x464f34
mov ecx, eax
call fcn.004098a0
mov edx, str.___type
mov ecx, eax
call fcn.004098a0
mov edx, edi
mov ecx, eax
call fcn.00409350
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0xf0]
call fcn.004026a0
xorps xmm0, xmm0
movups xmmword [ebp - 0x3c], xmm0
mov byte [ebp - 4], 2
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x2c], 0
jb 0x432c8f
mov ecx, dword [eax]
jmp 0x432c91
mov ecx, eax
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x3c]
call fcn.00421070
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x432cb6
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.0040d960
mov edx, dword [ebp - 0x3c]
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
test edx, edx
jne 0x432cfb
push 0x46383c
lea ecx, [ebp - 0x38]
call fcn.0040f770
mov eax, dword [ebp - 0x34]
mov esi, dword [ebp - 0x38]
sub eax, esi
sar eax, 1
jne 0x432cf4
push str.invalid_vector_T__subscript
call fcn.00433cd3
mov edx, esi
mov dword [ebp - 0x3c], edx
jmp 0x432cfe
mov esi, dword [ebp - 0x38]
push dword [ebp + 0x10]
mov ecx, 0x46f4e0
call fcn.00431480
add esp, 4
mov edi, eax
test esi, esi
je 0x432d25
mov ecx, dword [ebp - 0x30]
sub ecx, esi
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x38]
call fcn.0040d960
lea ecx, [ebp - 0x88]
call fcn.004026c0
lea eax, [ebp - 0x88]
mov dword [ebp - 4], 5
push eax
mov dword [ebp - 0x88], vtable.std::ios_base.0
call fcn.00433d45
add esp, 4
jmp 0x432d57
mov edi, 1
test edi, edi
setne al
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.0043598e
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4dc6ea
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4fa580]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.004daada
mov dword [ebp - 0x14], eax
cmp dword [0x4fbd0c], edi
jne 0x4dc7db
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x4dc768
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4dc8bb
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x4dc8bb
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4dc8bb
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x4fbd0c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x4fbd10], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x4fbd14], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4fbd1c], eax
test eax, eax
je 0x4dc7d8
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4fbd18], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4dc800
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4dc7f3
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x4dc815
push 4
pop eax
jmp 0x4dc8bd
cmp dword [ebp - 0x14], edi
je 0x4dc815
push dword [0x4fbd0c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4dc7fa
mov eax, dword [0x4fbd18]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x4dc873
cmp dword [0x4fbd1c], esi
je 0x4dc873
push eax
call ebx
push dword [0x4fbd1c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4dc873
test eax, eax
je 0x4dc873
call ecx
test eax, eax
je 0x4dc868
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4dc868
test byte [ebp - 8], 1
jne 0x4dc873
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x4dc8a3
mov eax, dword [0x4fbd10]
cmp eax, esi
je 0x4dc8a0
push eax
call ebx
test eax, eax
je 0x4dc8a0
call eax
mov edi, eax
test edi, edi
je 0x4dc8a0
mov eax, dword [0x4fbd14]
cmp eax, esi
je 0x4dc8a0
push eax
call ebx
test eax, eax
je 0x4dc8a0
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x4fbd0c]
call ebx
test eax, eax
je 0x4dc8bb
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x4dc8bd
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004dc8cc
leave
ret
Function at 0x701218
Capabilities:
Encode data using xor

Disassembly:
call 0x700d72
mov edi, dword [esi + 8]
lea ebx, [ebp - 0x20]
push 0x29
push 0xb423a5f5
or edx, esp
push 0x8b208643
xor byte [0xe800b089], al
invalid
pop edi
add dword [edx + 0x33047f42], ecx
inc edx
jg 0x70121f
xor ebx, edx
invalid
inc ecx
ja 0x7011da
mov dword [ebp - 0x28], eax
jo 0x70125c
inc ecx
cld
test byte [ecx - 0x3c], dl
jbe 0x701266
push 0x24
call 0xeefe360b
or byte [edx], ah
test dword [ebx + 0x2fd2068], 0xbbd00378
mov al, byte [0x3458e882]
adc byte [edi - 0x40], cl
imul ecx, dword [eax], 0x190e3c10
mov al, byte [0x7a06e20d]
add bh, byte [eax + 3]
sar byte [ebx + 0x58e882a0], 1
xor al, 0x10
dec edi
shr byte [ecx + 8], 0x10
cmp al, 0xe
sbb dword [eax + 0x7a06e20d], esp
xor byte [edx + 0x74e49e20], al
lea ebx, [ebp - 0x79]
stosd dword es:[edi], eax
aaa
sbb dword [eax + 0x26], esp
push ebx
call 0xa9683b4e
test eax, 0x47742767
inc edi
test al, 0xa9
daa
je 0x7012b3
inc edi
inc edi
and byte [ecx + 0x46e132e7], cl
and al, 0xbf
stosb byte es:[edi], al
push 0x2fa9f62a
loope 0x70123b
mov eax, dword [esi + 0x70]
cli
outsd dx, dword [esi]
and al, 0xe8
mov ecx, 0x89000f85
int1
call 0xeb5154d0
jge 0x701214
adc edi, dword [edi - 0x7a]
pop ebx
mov ecx, ebx
call 0x40886400
sub al, 0x46
in al, 0x76
clc
fcom qword [eax]
adc ah, 0xc
in al, 0xc
pop es
push esi
inc eax
and ebx, dword [eax]
iretd
rol byte [ebx], 1
mov esi, dword [ecx + 8]
call [edi + edi*8]
xlatb
test byte [esi + 0x23], dh
sar bh, 0xc0
je 0x7012e3
pop ds
mov byte [ebx + 0x24], 1
mov esi, dword [ebx + 4]
xchg dword [0x1bf18958], ebx
test eax, 0xd4e9b100
fcomp qword [esi + 0x7fa80843]
push edi
add byte [eax + 0x73], bh
xor byte [ebx + 0x7d8d2cc3], al
aam 0xde
add eax, 0xfd07a6b8
xchg dword [esi - 0x27], edx
push edi
call 0x5d3e729
loopne 0x701303
ret
jp 0x7012c3
daa
adc byte [eax], cl
test byte [0x3c229ae0], bl
invalid
and bh, byte [esi + eax*8]
btc eax, edi
adc byte [ecx], dl
les esp, [eax]
and esi, dword [esi]
xor esp, eax
fdivrp st(1)
or eax, 0x70104641
clc
push cs
invalid

Function at 0x7d0f7f
Capabilities:
Encode data using xor

Disassembly:
inc eax
mov ah, 0x1a
adc al, 0xb5
fdiv dword [eax + 0x351519b3]
mov eax, 0xe436141a
insb byte es:[edi], dx
invalid
Function at 0x921b80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x67000d
lea edi, [esi - 0x26f00d]
push edi
or ebp, 0xffffffff
jmp 0x921ba2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x921ba9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x921b98
mov eax, 1
add ebx, ebx
jne 0x921bbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x921bb0
jne 0x921bcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x921bb0
xor ecx, ecx
sub eax, 3
jb 0x921be0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x921c52
mov ebp, eax
add ebx, ebx
jne 0x921beb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x921bf8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x921c1c
inc ecx
add ebx, ebx
jne 0x921c08
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x921bfd
jne 0x921c19
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x921bfd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x921c3c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x921c2d
jmp 0x921b9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x921c3c
add edi, ecx
jmp 0x921b9e
pop esi
mov edi, esi
mov ecx, 0x1883
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x921c5a
cmp byte [edi], 0x11
jne 0x921c5a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x921c5f
lea edi, [esi + 0x51d000]
mov eax, dword [edi]
or eax, eax
je 0x921cce
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x529164]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x5291bc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x921c8c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x5291c4]
or eax, eax
je 0x921cc8
mov dword [ebx], eax
add ebx, 4
jmp 0x921ca9
call dword [esi + 0x5291c0]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x921cff
cmp al, 0xef
ja 0x921cf2
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x921cd4
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x921ce1
mov ebp, dword [esi + 0x5291c8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x197]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x921d33
sub esp, 0xffffff80
jmp 0x40e9dc
Function at 0x401e90
Capabilities:
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41c030
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x429a98]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
movzx eax, word [ebp + 8]
push eax
mov dword [ebp - 4], 0
call fcn.00401d90
add esp, 4
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push 0
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
lea eax, [ebp - 0x21c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x42a920
push 0
push str.dfss
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push 0x42a920
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
mov esi, eax
lea eax, [ebp - 0x224]
push eax
push edi
push ebx
push esi
mov dword [ebp - 0x224], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
mov ecx, esp
push str.SOFTWAREMicrosoftNET_Framework_SetupNDP_v4
call fcn.004011b0
call fcn.00402c60
add esp, 4
push eax
call fcn.00401950
add esp, 4
push 0x42032c
push ecx
mov ecx, esp
push 0x420484
test al, al
je 0x402055
mov byte [ebp - 4], 1
call fcn.004011b0
call fcn.00402c60
add esp, 4
push eax
push ecx
mov ecx, esp
push str.RemoteProcess.Program
call fcn.004011b0
call fcn.00402c60
add esp, 4
push eax
push 0x42a920
push ecx
mov ecx, esp
push str.v4.0.30319
call fcn.004011b0
call fcn.00402c60
add esp, 4
push eax
call fcn.00401af0
add esp, 0x14
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00404afb
mov esp, ebp
pop ebp
ret
mov byte [ebp - 4], 3
call fcn.004011b0
call fcn.00402c60
add esp, 4
push eax
push ecx
mov ecx, esp
push str.RemoteProcess.Program
call fcn.004011b0
call fcn.00402c60
add esp, 4
push eax
push 0x42a920
push ecx
mov ecx, esp
push 0x4204e4
call fcn.004011b0
call fcn.00402c60
add esp, 4
push eax
call fcn.00401af0
add esp, 0x14
jmp 0x401fdf

Function at 0x402540
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402555
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402594
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x402590
lea ebx, [ebx]
cmp esi, edx
jae 0x402594
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x402580
cmp esi, edx
jb 0x402599
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret
Function at 0x409e86
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x429a98]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.004097ff
mov dword [ebp - 0x14], eax
cmp dword [0x42b8a0], edi
jne 0x409f77
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x409f04
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40a057
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x40a057
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40a057
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x42b8a0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x42b8a4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x42b8a8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x42b8b0], eax
test eax, eax
je 0x409f74
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x42b8ac], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x409f9c
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x409f8f
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x409fb1
push 4
pop eax
jmp 0x40a059
cmp dword [ebp - 0x14], edi
je 0x409fb1
push dword [0x42b8a0]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x409f96
mov eax, dword [0x42b8ac]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x40a00f
cmp dword [0x42b8b0], esi
je 0x40a00f
push eax
call ebx
push dword [0x42b8b0]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40a00f
test eax, eax
je 0x40a00f
call ecx
test eax, eax
je 0x40a004
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40a004
test byte [ebp - 8], 1
jne 0x40a00f
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x40a03f
mov eax, dword [0x42b8a4]
cmp eax, esi
je 0x40a03c
push eax
call ebx
test eax, eax
je 0x40a03c
call eax
mov edi, eax
test edi, edi
je 0x40a03c
mov eax, dword [0x42b8a8]
cmp eax, esi
je 0x40a03c
push eax
call ebx
test eax, eax
je 0x40a03c
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x42b8a0]
call ebx
test eax, eax
je 0x40a057
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x40a059
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404afb
leave
ret
Function at 0x41a88a
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00407372
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x41a8c2
xor eax, eax
jmp 0x41a8ee
cmp esi, dword [ebp - 4]
je 0x41a8eb
cmp dword [ebp + 0xc], 0
je 0x41a8eb
push dword [edi + 0x9c]
call fcn.0041a498
push dword [edi + 0x9c]
mov esi, eax
call fcn.00409daf
pop ecx
pop ecx
cmp esi, eax
je 0x41a8be
xor eax, eax
inc eax
pop edi
pop esi
leave
ret