joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10020b26
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x10020b35
pop dword [ebp - 0x50]
mov eax, 0xca87a353
add eax, 0x457a67e2
sub dword [ebp - 0x50], eax
mov dword [ebp - 0x60], 0x3fdeae68
sub dword [ebp - 0x60], 0xf18c691d
mov dword [ebp - 0x5c], 0xe325fc96
add dword [ebp - 0x5c], 0x4f0d4faf
mov dword [ebp - 0x58], 0xea106156
sub dword [ebp - 0x58], 0x9dc41d28
mov dword [ebp - 0x54], 0x18ecd6b9
add dword [ebp - 0x54], 0xe7132947
lea eax, [ebp - 0x60]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x50]
call dword [eax]
mov dword [ebp - 0x60], 0xc7987282
sub dword [ebp - 0x60], 0x5326092c
mov dword [ebp - 0x5c], 0x54ed6c72
sub dword [ebp - 0x5c], 0x13810afd
mov dword [ebp - 0x58], 0xbbe026d1
add dword [ebp - 0x58], 0xa78f459b
mov dword [ebp - 0x54], 0x7d25b664
sub dword [ebp - 0x54], 0x7d25b664
lea ebx, [ebp - 0x60]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x50]
call dword [eax]
push 0x40
push 0x1000
push 0x45fcc
push 0
call eax
mov ecx, 0x7aa950ee
sub ecx, 0x7aa90402
xor edi, edi
add edi, eax
mov edx, 0xe92b16ac
add edx, 0x26d94d54
add edx, dword [ebp - 0x50]
mov esi, 0xce0ea57c
xor dword [ebp - 0x40], 0x683a8c10
mov ebx, dword [edx]
sub dword [ebp - 0x4c], ebx
add ebx, esi
sub dword [ebp - 0x2c], 0xe53bb287
mov dword [edi], ebx
xor dword [ebp - 0x30], 0xb7151b7e
add edi, 0x2f994d52
add edi, 0xd066b2b2
add edx, 0xbe85bfac
add edx, 0x417a4058
loop 0x10020c49
add eax, 0x2fb48d22
add eax, 0xd04c9961
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x26b1f29d
add ecx, 0xe94e0d63
add ecx, dword [ebp - 0x50]
call ebx
leave
ret
Function at 0x10022546
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x440
mov eax, 0x1002dfaf
call fcn.1002b2f9
mov eax, dword [ebp + 8]
mov esi, 0x208
mov dword [ebp - 0x438], eax
xor edi, edi
mov dword [ebp - 0x440], eax
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x43c], eax
mov dword [ebp - 0x444], eax
lea eax, [ebp - 0x424]
push edi
push eax
call sub.VCRUNTIME140.dll_memset
push esi
lea eax, [ebp - 0x21c]
push edi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
mov dword [ebp - 0x434], 0x104
lea eax, [ebp - 0x428]
xorps xmm0, xmm0
movsd qword [ebp - 0x430], xmm0
push eax
push 0x20019
push edi
push 0x1003344c
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10022765
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x434]
mov ebx, edi
push eax
lea eax, [ebp - 0x21c]
push eax
push edi
jmp 0x10022652
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__wtof]
fstp qword [ebp - 0x44c]
movsd xmm0, qword [ebp - 0x44c]
comisd xmm0, xmmword [0x10033728]
pop ecx
jbe 0x1002263e
comisd xmm0, xmmword [ebp - 0x430]
jbe 0x1002263e
lea eax, [ebp - 0x21c]
movsd qword [ebp - 0x430], xmm0
push eax
lea eax, [ebp - 0x424]
push 0x104
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
add esp, 0xc
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x434]
inc ebx
push eax
lea eax, [ebp - 0x21c]
push eax
push ebx
push dword [ebp - 0x428]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov esi, eax
test esi, esi
je 0x100225ea
push dword [ebp - 0x428]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, 0x103
jne 0x10022765
push str.ClientUserInterface
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
mov esi, eax
mov dword [esp], str.SoftwareMicrosoftSoftGrid_
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
xor ecx, ecx
mov dword [ebp - 0x42c], edi
push 2
pop edx
lea ebx, [eax + 0x105]
mov dword [ebp - 4], edi
add ebx, esi
mov eax, ebx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10020b26
mov esi, eax
mov dword [ebp - 0x42c], esi
pop ecx
pop ecx
test esi, esi
je 0x10022765
push ebx
push edi
push esi
call fcn.10020b26
push str.SoftwareMicrosoftSoftGrid_
push ebx
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
lea eax, [ebp - 0x424]
push eax
push ebx
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
push str.ClientUserInterface
push ebx
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
add esp, 0x30
lea eax, [ebp - 0x428]
push eax
push 0x20019
push edi
push esi
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1002275e
push dword [ebp - 0x438]
push str.LaunchCommand
push dword [ebp - 0x428]
call fcn.1002279d
add esp, 0xc
push dword [ebp - 0x43c]
push str.DDELaunchCommand
push dword [ebp - 0x428]
call fcn.1002279d
add esp, 0xc
push dword [ebp - 0x428]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.1002b561
pop ecx
call fcn.1002b246
ret
Function at 0x1002279d
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x14
mov eax, 0x1002dfd9
call fcn.1002b2c2
mov edi, dword [ebp + 0x10]
lea eax, [ebp - 0x14]
xor ebx, ebx
push eax
push ebx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
push eax
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 0x14], ebx
push dword [ebp + 8]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [edi], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100228e2
cmp dword [ebp - 0x18], 1
jne 0x100228e2
mov eax, dword [ebp - 0x14]
xor ecx, ecx
shr eax, 1
inc eax
mov dword [ebp - 4], ebx
push 2
pop edx
mov dword [ebp - 0x14], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10020b26
mov esi, eax
mov dword [ebp - 0x1c], esi
pop ecx
test esi, esi
je 0x100228e2
push dword [ebp - 0x14]
push ebx
push esi
call fcn.10020b26
mov eax, dword [ebp - 0x14]
add esp, 0xc
lea eax, [eax*2 - 2]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push esi
lea eax, [ebp - 0x18]
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x100228d7
cmp dword [ebp - 0x18], 1
jne 0x100228d7
mov eax, dword [ebp - 0x14]
xor ecx, ecx
shr eax, 1
mov dword [ebp - 0x14], eax
inc eax
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10020b26
mov dword [edi], eax
pop ecx
test eax, eax
je 0x100228d7
mov ecx, dword [ebp - 0x14]
inc ecx
push ecx
push ebx
push eax
call fcn.10020b26
lea eax, [ebp - 0x20]
push eax
push 0x10033448
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcstok_s]
mov ebx, eax
add esp, 0x18
test ebx, ebx
je 0x100228bb
push ebx
call fcn.10020b26
pop ecx
test al, al
je 0x100228bb
mov eax, dword [ebp - 0x14]
push ebx
inc eax
push eax
push dword [edi]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
add esp, 0xc
jmp 0x100228d7
push dword [edi]
call fcn.1002b561
and dword [edi], 0
pop ecx
jmp 0x100228d7
test esi, esi
je 0x100228e2
push esi
call fcn.1002b561
pop ecx
call fcn.1002b220
ret

Function at 0x10023089
Capabilities:
Print debug messages

Disassembly:
push esi
push 0x100331a4
xor esi, esi
call fcn.10020b26
pop ecx
test eax, eax
jne 0x100230aa
push 0x100331bc
call fcn.10020b26
pop ecx
test eax, eax
je 0x100230ad
xor esi, esi
inc esi
cmp byte [0x1003ce0b], 0
jne 0x100230bf
cmp byte [0x1003ce0a], 0
je 0x100230f5
push edi
push esi
push str._BrowserIntegrationWin__IsLoadedInProcByAcrobat__d
mov edi, 0x1003d650
push edi
call fcn.10020b26
add esp, 0xc
cmp byte [0x1003ce0a], 0
je 0x100230e4
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x1003ce0b], 0
je 0x100230f4
push edi
call fcn.10005ee0
pop ecx
pop edi
mov eax, esi
pop esi
ret
Function at 0x1002549d
Capabilities:
Print debug messages

Disassembly:
push esi
push str.sftldr.dll
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
test eax, eax
jne 0x1002551b
push str.sftldr_wow64.dll
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
test eax, eax
jne 0x1002551b
push ebx
push str.AppVEntSubsystems32.dll
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
test eax, eax
setne bl
cmp byte [0x1003ce0b], 0
jne 0x100254df
cmp byte [0x1003ce0a], 0
je 0x10025516
movzx eax, bl
mov esi, 0x1003e1b8
push eax
push str._ACTWinBrowser__IsRunningInAppV_isAppV5___d
push esi
call fcn.10020b26
add esp, 0xc
cmp byte [0x1003ce0a], 0
je 0x10025506
push esi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x1003ce0b], 0
je 0x10025516
push esi
call fcn.10005ee0
pop ecx
mov al, bl
pop ebx
pop esi
ret
cmp byte [0x1003ce0b], 0
jne 0x1002552d
cmp byte [0x1003ce0a], 0
je 0x1002555f
push str._ACTWinBrowser__IsRunningInAppV_isAppV4OrEarlier
mov esi, 0x1003e1b8
push esi
call fcn.10020b26
cmp byte [0x1003ce0a], 0
pop ecx
pop ecx
je 0x1002554f
push esi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x1003ce0b], 0
je 0x1002555f
push esi
call fcn.10005ee0
pop ecx
mov al, 1
pop esi
ret
Function at 0x10028ddc
Capabilities:
Print debug messages

Disassembly:
push esi
push 8
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov esi, eax
pop ecx
test esi, esi
je 0x10028df9
push 8
push 0
push esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp byte [0x1003ce0b], 0
jne 0x10028e0f
cmp byte [0x1003ce0a], 0
je 0x10028f4e
push edi
push 0x64
push str.sizeof__t_ASMBlock____d
mov edi, 0x1003e608
push edi
call fcn.10020b26
add esp, 0xc
cmp byte [0x1003ce0a], 0
je 0x10028e35
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x1003ce0b], 0
je 0x10028e4e
push edi
call fcn.10005ee0
cmp byte [0x1003ce0b], 0
pop ecx
jne 0x10028e57
cmp byte [0x1003ce0a], 0
je 0x10028e77
push 4
push str.sizeof_Uns32____d
push edi
call fcn.10020b26
add esp, 0xc
cmp byte [0x1003ce0a], 0
je 0x10028e77
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x1003ce0b], 0
je 0x10028e90
push edi
call fcn.10005ee0
cmp byte [0x1003ce0b], 0
pop ecx
jne 0x10028e99
cmp byte [0x1003ce0a], 0
je 0x10028eb9
push 4
push str.sizeof_HANDLE____d
push edi
call fcn.10020b26
add esp, 0xc
cmp byte [0x1003ce0a], 0
je 0x10028eb9
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x1003ce0b], 0
je 0x10028ed2
push edi
call fcn.10005ee0
cmp byte [0x1003ce0b], 0
pop ecx
jne 0x10028edb
cmp byte [0x1003ce0a], 0
je 0x10028efb
push 4
push str.sizeof_Handle32____d
push edi
call fcn.10020b26
add esp, 0xc
cmp byte [0x1003ce0a], 0
je 0x10028efb
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x1003ce0b], 0
je 0x10028f14
push edi
call fcn.10005ee0
cmp byte [0x1003ce0b], 0
pop ecx
jne 0x10028f1d
cmp byte [0x1003ce0a], 0
je 0x10028f3d
push 4
push str.sizeof_void____d
push edi
call fcn.10020b26
add esp, 0xc
cmp byte [0x1003ce0a], 0
je 0x10028f3d
push edi
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x1003ce0b], 0
je 0x10028f4d
push edi
call fcn.10005ee0
pop ecx
pop edi
mov eax, esi
pop esi
ret

Function at 0x10028fdd
Capabilities:
Print debug messages

Disassembly:
push 0x1c
mov eax, 0x1002e2c3
call fcn.1002b28b
cmp byte [0x1003ce0b], 0
mov ebx, 0x1003e608
mov edi, dword [ebp + 8]
jne 0x10029008
mov al, byte [0x1003ce0a]
test al, al
jne 0x10029008
lea esi, [edi + 4]
jmp 0x1002901f
lea esi, [edi + 4]
push esi
push str.ASM_Release__s
push ebx
call fcn.10020b26
mov al, byte [0x1003ce0a]
add esp, 0xc
test al, al
je 0x1002902a
push ebx
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x1003ce0b], 0
je 0x1002903a
push ebx
call fcn.10005ee0
pop ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.10020b26
push dword [edi + 0x48]
and dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
call fcn.100028bc
mov ebx, eax
pop ecx
pop ecx
test ebx, ebx
je 0x1002906d
mov ecx, dword [ebx]
push 1
mov esi, dword [ecx]
mov ecx, esi
call dword [0x1002f5c8]
mov ecx, ebx
call esi
lea ecx, [ebp - 0x28]
call fcn.10003172
and dword [edi + 0x4c], 0
and dword [edi + 0x44], 0
call fcn.1002b235
ret
Function at 0x10029083
Capabilities:
Print debug messages

Disassembly:
push 0x24
mov eax, 0x1002e2f7
call fcn.1002b28b
cmp byte [0x1003ce0b], 0
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], esi
jne 0x100290b0
cmp byte [0x1003ce0a], 0
je 0x100290ff
call fcn.10020b26
test al, al
mov edx, 0x1002fbdc
mov ecx, str._in_AppContaner
cmove ecx, edx
push ecx
push str.ASM_Retrieve_retrieving_shared_memory_in_Plug_in_s
push 0x1003e608
call fcn.10020b26
add esp, 0xc
cmp byte [0x1003ce0a], 0
je 0x100290eb
push 0x1003e608
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x1003ce0b], 0
je 0x100290ff
push 0x1003e608
call fcn.10005ee0
pop ecx
and dword [esi], 0
lea eax, [edi + 4]
and dword [ebx], 0
lea ecx, [ebp - 0x28]
push eax
call fcn.10020b26
push dword [edi + 0x48]
and dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push eax
call fcn.100028bc
or dword [ebp - 4], 0xffffffff
mov ebx, eax
pop ecx
pop ecx
lea ecx, [ebp - 0x28]
call fcn.10003172
test ebx, ebx
jne 0x1002917d
cmp byte [0x1003ce0b], bl
jne 0x10029149
cmp byte [0x1003ce0a], bl
je 0x100291f1
push str.ASM_Retrieve_ERROR__finding_memory_mapped_file_
mov ebx, 0x1003e608
push ebx
call fcn.10020b26
cmp byte [0x1003ce0a], 0
pop ecx
pop ecx
je 0x1002916b
push ebx
call dword [sym.imp.kernel32.dll_OutputDebugStringA]
cmp byte [0x1003ce0b], 0
je 0x100291f1
push ebx
call fcn.10005ee0
pop ecx
jmp 0x100291f1
mov eax, dword [ebx]
mov esi, dword [eax + 0x20]
mov ecx, esi
call dword [0x1002f5c8]
mov ecx, ebx
call esi
mov dword [edi + 0x44], eax
test eax, eax
jne 0x100291ac
cmp byte [0x1003ce0b], al
jne 0x100291a5
cmp byte [0x1003ce0a], al
je 0x100291f1
push str.ASM_Retrieve_ERROR__getting_memory_mapped_file_handle_
jmp 0x1002914e
mov eax, dword [ebx]
push dword [edi + 0x48]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x1002f5c8]
mov ecx, ebx
call esi
mov dword [edi + 0x4c], eax
test eax, eax
jne 0x100291e1
cmp byte [0x1003ce0b], al
jne 0x100291d7
cmp byte [0x1003ce0a], al
je 0x100291f1
push str.ASM_Retrieve_ERROR__mapping_for_writing_
jmp 0x1002914e
mov ecx, dword [ebp - 0x2c]
mov eax, dword [edi + 0x48]
mov dword [ecx], eax
mov ecx, dword [ebp - 0x30]
mov eax, dword [edi + 0x4c]
mov dword [ecx], eax
call fcn.1002b235
ret
Function at 0x40323c
Capabilities:
Encode data using xor

Disassembly:
jno 0x403241
movsx ebp, cx
xchg bl, bl
lea ebx, [0x7df59367]
xor al, 0x8b
jmp 0x403252
xor al, 0x6c
xchg eax, edx
xor ebp, ebp
add eax, esi
dec eax
add ebp, ecx
mov ebp, 0x2987f901
adc eax, 0x479140ea
jmp 0x403277
inc cl
imul edi, ebp
test ah, ch
call 0x403311
dec edx
imul ebx, ebp
imul ebp, ebp, 0x7f5de34d
sbb bl, 0x74
mov dl, 0x50
movzx edi, ch
xor ecx, edi
test edi, esi
jno 0x4032a2
mov dl, 0xe3
test esi, eax
dec edi
movsx edx, dx
xchg dh, cl
imul edx, ebp
add ecx, 0x41c01ef7
jmp 0x4032b8
push 0x93259
xchg edx, ebx
cmp edi, ebp
pop eax
imul ebx, eax
xor ch, bl
xor eax, 0x931e9
cmp esi, 0x4224c758
movzx esi, ch
cmp edi, eax
or bh, dh
test edx, esi
xor ebx, 0x523de8dd
sub eax, 0xfff12ae0
dec cl
sub eax, 0xed521
lea edx, [0x9cc4da94]
mov ebx, ebx
mov bl, 0xdb
imul edx, ebx
mov ecx, esi
mov ebp, 0x1d573f5f
dec ebp
mov bl, 0x2d
cmp eax, 0x45
ja 0x4032cc
pop ebx
mov ebp, 0x81a61c49
mov dh, 0xa
test esi, 0x5ea9e086
or dl, al
lea eax, [0x489577a]
mov cl, 0xa7
imul edi, edx, 0xaae52284
xchg eax, eax
xor eax, 0x65f0f013
mov dl, cl
xor edi, edi
inc edi
inc eax
cmp ebp, 0x4b7b5d8a
or ah, al
add dh, ch
test cl, 0xdd
test bl, 0x6b
mov ecx, 0x4a506633
cmp edi, 0x3cc
jbe 0x40333c
test ebx, edx
jbe 0x403371
test ecx, 0xbd96e3cf
sbb ebp, edx
mov ecx, 0xfaf8a5c2
push 0x292ebe
push 0x948dfd
xchg edx, ebp
mov dh, 0x42
test esi, 0x207ebfe2
lea esi, [0xc81a9449]
xchg ch, cl
mov ecx, 0x78c1985a
imul esi, esi, 0x4456a866
mov ecx, 0x7841a46c
sub edi, 0xce0048f0
cmp dh, dl
test eax, 0xbd658cc0
or ebp, edx
inc edi
push 0x2f296
sub edx, 0x5d468dfb
xchg esi, edi
pop eax
imul ebp, ecx, 0xfcc9c166
sub eax, 0x8ad
mov dl, ah
xadd ebx, eax
cmp dl, 0x23
test ah, 0x8c
dec ch
sub ebx, 0x7fb
movsx esi, dl
mov esi, edx
and dl, al
xor al, 0xd9
add eax, edx
xchg edi, edx
jo 0x4033f1
lea ecx, [0xdbc59875]
push 0x9656df
cmp eax, 0x347d821a
adc esi, 0xe456a11e
push ebx
adc dl, al
add esi, ecx
ret

Function at 0x4053c6
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x4224a8], 0x44
push eax
xor eax, eax
push 0x4224a8
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x405401
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4
Function at 0x41e1a7
Capabilities:
Check os version

Disassembly:
sub esp, 0x350
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0x114
xor ebx, ebx
mov esi, 0xc8
and dword [esp + 0x10], ebx
xor edi, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x41e31d
mov eax, dword [esp + 0x24]
dec eax
je 0x41e300
dec eax
jne 0x41e31d
lea eax, [esp + 0x128]
xor ebp, ebp
push eax
call fcn.0041e160
pop ecx
test eax, eax
je 0x41e25e
mov ebx, dword [esp + 0x12c]
mov edi, dword [esp + 0x130]
mov eax, dword [esp + 0x134]
cmp byte [esp + 0x242], 1
jne 0x41e221
xor ebp, ebp
inc ebp
sub ebx, 3
je 0x41e2fc
dec ebx
je 0x41e2f8
dec ebx
je 0x41e2d7
dec ebx
je 0x41e291
sub ebx, 4
jne 0x41e31d
test edi, edi
jne 0x41e31d
cmp eax, 0x55f0
sbb esi, esi
and esi, 0xfffffff6
add esi, 0x78
jmp 0x41e31d
lea eax, [esp + 0x244]
mov dword [esp + 0x244], 0x11c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, dword [esp + 0x10]
je 0x41e221
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
cmp byte [esp + 0x35e], 1
jmp 0x41e21c
sub edi, 0
je 0x41e2c9
dec edi
je 0x41e2bb
dec edi
je 0x41e2ad
dec edi
jne 0x41e31d
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x69
jmp 0x41e31d
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x5f
jmp 0x41e31d
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x55
jmp 0x41e31d
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x4b
jmp 0x41e31d
sub edi, 0
je 0x41e2f4
dec edi
je 0x41e2f0
dec edi
jne 0x41e31d
mov esi, ebp
neg esi
sbb esi, esi
and esi, 0xfffffffb
add esi, 0x41
jmp 0x41e31d
push 0x3c
jmp 0x41e31c
push 0x32
jmp 0x41e31c
push 0x14
jmp 0x41e31c
push 5
jmp 0x41e31c
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x41e31a
cmp eax, 0xa
je 0x41e316
cmp eax, 0x5a
jne 0x41e31d
push 0x28
jmp 0x41e31c
push 0x1e
jmp 0x41e31c
push 0xa
pop esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 0x350
ret
Function at 0x420c10
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov dword [esp + 4], 0
cmp dword [esi + 0x14], 0
jne 0x420c4c
push 0
lea eax, [esp + 8]
push eax
mov eax, dword [esi + 8]
sub eax, dword [esi + 0xc]
push eax
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 8]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 4]
pop esi
pop ecx
ret 4
xor eax, eax
pop esi
pop ecx
ret 4

Function at 0x423e80
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x423eb2
push 0
lea ecx, [esp + 0x10]
push ecx
push esi
push dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x423ead
cmp dword [esp + 0xc], esi
je 0x423ec9
pop edi
xor eax, eax
pop esi
ret
mov eax, dword [edi + 4]
add eax, dword [edi + 8]
push esi
push dword [esp + 0x14]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
add dword [edi + 8], esi
pop edi
mov eax, 1
pop esi
ret

Function at 0x427e88
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push dword [0x432f7c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x427ee9
push esi
push dword [0x432f78]
push 8
push dword [0x432438]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
push edi
push dword [0x432f7c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov esi, dword [0x432f74]
jmp 0x427ed9
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x427ed7
mov eax, dword [esi + 8]
add eax, edi
push eax
call ecx
pop ecx
mov esi, dword [esi]
test esi, esi
jne 0x427ec7
push edi
push 0x427e26
call fcn.00429a57
pop esi
mov eax, dword [esp + 8]
add eax, edi
pop edi
ret 4

Function at 0x427ef3
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
mov ecx, esi
push edi
and ecx, 3
je 0x427f09
push 4
pop eax
sub eax, ecx
add esi, eax
mov eax, dword [0x432f78]
mov ebx, dword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x427f40
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push esi
push 8
push dword [0x432438]
mov dword [0x432f7c], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
push dword [0x432f7c]
call ebx
mov eax, dword [0x432f78]
mov edi, eax
add eax, esi
push eax
push dword [0x432f7c]
mov dword [0x432f78], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
push 8
push dword [0x432438]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ebp, eax
push ebp
push dword [0x432f7c]
call ebx
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
test esi, esi
jne 0x427f80
test ebx, ebx
je 0x427fa1
push 0x14
push 0x432f74
call fcn.004287fb
pop ecx
pop ecx
mov dword [eax], edi
mov dword [eax + 4], esi
mov dword [eax + 8], ebx
test esi, esi
je 0x427fa1
lea ecx, [edi + ebp]
push ecx
call esi
pop ecx
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 0xc
Function at 0x10004770
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, ecx
mov eax, ecx
cmp eax, 0x71721f8a
mov eax, ebx
inc eax
cmp eax, 0xefb97f7d
mov eax, ecx
nop
inc eax
cmp eax, 0xfffffff7
inc eax
inc eax
mov eax, 0x49c40f14
mov eax, ebx
mov eax, ecx
cmp eax, 0x6cb081cf
mov eax, ecx
push 3
push 2
push 1
call fcn.1000c200
add esp, 0xc
cmp eax, 0xffffffac
mov eax, ecx
inc eax
nop
nop
mov eax, ebx
mov eax, ebx
mov eax, ebx
cmp eax, 0x17
mov eax, ecx
inc eax
mov eax, ecx
mov eax, ebx
mov eax, 0xc50be0f2
nop
mov eax, ebx
mov eax, ebx
cmp eax, 8
mov eax, 0xb694b023
push 3
push 2
push 1
call fcn.1000c200
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, 0xffffffa8
cmp eax, 0xf28bcf4
nop
cmp eax, 0xffffff99
mov eax, 0x3584827a
mov eax, 0xe7b4c53
inc eax
mov eax, ebx
inc eax
mov eax, ebx
mov eax, 0x67ee47c2
inc eax
inc eax
inc eax
cmp eax, 0xffffffea
mov eax, ecx
nop
push 3
push 2
push 1
call fcn.1000c200
add esp, 0xc
push 0x1002beb4
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
nop
inc eax
mov eax, ebx
mov eax, 0x3a596103
mov eax, ecx
mov eax, ecx
nop
mov eax, ecx
nop
mov eax, ebx
cmp eax, 0xd15f4303
mov eax, ebx
inc eax
mov eax, ecx
nop
mov eax, 0x22d46fc7
mov eax, ebx
cmp eax, 0x26
mov eax, ecx
push 3
push 2
push 1
call fcn.1000c200
add esp, 0xc
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x1003e22c], eax
inc eax
nop
cmp eax, 0xffffffcf
inc eax
cmp eax, 0x7c
inc eax
mov eax, ecx
inc eax
mov eax, ecx
mov eax, 0x8191ba9f
cmp eax, 0xffffff8e
mov eax, ecx
cmp eax, 0xb34a30b4
mov eax, ecx
cmp eax, 0xfafeae48
cmp eax, 0x8471fd87
push 3
push 2
push 1
call fcn.1000c200
add esp, 0xc
cmp dword [0x1003e22c], 0
jne 0x1000491f
push 0x41030
push str.DllWrap
push str.miss
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
mov eax, ecx
mov eax, ecx
mov eax, ecx
cmp eax, 0x18125090
cmp eax, 0xbadd2dd3
inc eax
cmp eax, 0xffffff8a
mov eax, ecx
cmp eax, 0x69
cmp eax, 0x5b
mov eax, ecx
mov eax, ebx
mov eax, ebx
mov eax, ecx
cmp eax, 0xffffffaa
inc eax
mov eax, ecx
push 3
push 2
push 1
call fcn.1000c200
add esp, 0xc
cmp dword [0x1003e22c], 0
je 0x10004931
mov dword [ebp - 4], 1
jmp 0x10004938
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret