joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4010a8
Capabilities:
Contain obfuscated stackstrings
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
push edi
lea esi, [ebp - 0xc]
call fcn.004017d8
push 0x402120
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
mov eax, dword [edi + 0x3c]
lea ebx, [eax + edi + 0x78]
mov esi, dword [ebx]
lea eax, [ebp - 0x2c]
push eax
add esi, edi
push esi
push ebx
push edi
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x2c], 0x74726956
mov dword [ebp - 0x28], 0x416c6175
mov dword [ebp - 0x24], 0x636f6c6c
mov byte [ebp - 0x20], 0
call fcn.00401745
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x2c]
push eax
push esi
push ebx
push edi
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x2c], 0x74726956
mov dword [ebp - 0x28], 0x466c6175
mov dword [ebp - 0x24], 0x656572
call fcn.00401745
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, 0x1200
push esi
push 0
push eax
mov dword [ebp - 0x10], eax
call edi
mov ebx, eax
mov eax, dword [ebp + 8]
mov ecx, ebx
sub eax, ebx
mov dword [ebp + 8], esi
mov dl, byte [eax + ecx]
mov byte [ecx], dl
inc ecx
dec dword [ebp + 8]
jne 0x401149
mov edx, esi
mov ecx, ebx
call fcn.0040106d
push 0x200
push 0
push dword [ebp - 0x10]
mov dword [0x403028], ebx
mov dword [0x40302c], esi
call edi
push 0x100
push eax
push dword [0x403034]
mov dword [0x403030], eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, dword [ebx + 0x3c]
add edi, ebx
push 0x40
lea eax, [edi + 0x18]
mov dword [ebp - 8], eax
mov eax, dword [eax + 0x38]
push 0x3000
push eax
push 0
call dword [ebp - 0x14]
mov esi, eax
mov dword [ebp + 8], esi
test esi, esi
je 0x401280
push ebx
push 0x40
pop eax
call fcn.004018d0
mov eax, esi
mov esi, dword [eax + 0x3c]
add esi, eax
movzx eax, word [edi + 0x14]
push edi
call fcn.004018d0
movzx eax, word [edi + 0x14]
movzx ecx, word [edi + 6]
add eax, dword [ebp - 8]
movzx edx, word [esi + 0x14]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
lea esi, [edx + esi + 0x18]
test ecx, ecx
je 0x401231
mov edi, eax
sub edi, esi
mov dword [ebp - 0x10], ecx
lea eax, [edi + esi]
push eax
push 0x28
pop eax
call fcn.004018d0
add esi, 0x28
dec dword [ebp - 0x10]
jne 0x4011f2
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x14]
test ecx, ecx
je 0x401231
lea edi, [eax + 0x14]
mov dword [ebp - 0x10], ecx
mov eax, dword [edi]
mov esi, dword [edi - 8]
add esi, dword [ebp + 8]
add eax, ebx
push eax
mov eax, dword [edi - 4]
call fcn.004018d0
add edi, 0x28
dec dword [ebp - 0x10]
jne 0x401216
mov eax, dword [ebp - 8]
mov ebx, dword [ebp + 8]
add eax, 0x68
cmp dword [eax], 0
je 0x401245
push ebx
call fcn.004016bc
mov ecx, dword [ebp - 8]
lea esi, [ecx + 0x88]
cmp dword [esi], 0
je 0x401259
push ebx
call fcn.0040163f
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x10]
mov eax, dword [ebp - 0xc]
mov dword [eax + 8], ebx
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
add ecx, ebx
mov dword [eax + 0x18], ebx
mov dword [eax + 0x1c], ecx
call ecx
push 0x8000
push 0
push ebx
call dword [ebp - 0x1c]
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x40699c
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf8
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemDirectoryW
mov edx, ebx
mov eax, esp
call fcn.00406988
add esp, 0x208
pop ebx
ret

Function at 0x408eb4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x408eed
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00404dd4
jmp 0x408ef6
mov eax, ebx
mov edx, esi
call fcn.00404c98
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x408f00
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x408f22
movzx eax, word [esp]
jmp 0x408f24
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x4096ac
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x4097d1
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.004094c0
mov esi, eax
mov eax, dword [0x412c44]
cmp byte [eax], 0
je 0x409779
mov eax, dword [0x412b80]
call fcn.0040317c
call fcn.00402f6c
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x409688]
call fcn.00405ad8
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x4097ec
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x4097b5
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x412b60]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x415b48]
call fcn.00405b90
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4097d8
lea eax, [ebp - 4]
mov edx, dword [0x409688]
call fcn.00405ae4
ret
Function at 0x70b014c0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x38
mov esi, dword [ecx]
mov edi, dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], 0
call edi
sub esp, 0x18
mov ebx, eax
test byte [0x70b03018], 8
jne 0x70b015c0
test ebx, ebx
je 0x70b015a8
lea eax, [ebx + ebx]
mov dword [esp + 4], 0
mov ecx, dword fs:[0x18]
mov dword [esp + 8], eax
mov eax, dword [ecx + 0x30]
mov dword [ebp - 0x1c], ecx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov dword [esp + 0x14], ebx
mov ebx, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], 0
call edi
mov edi, ebx
sub esp, 0x18
mov dword [esp], ebx
call sym.faultrep.dll_AddERExcludedApplicationW
mov ecx, dword [ebp - 0x1c]
sub esp, 4
mov ebx, eax
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov eax, dword [ecx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
lea esp, [ebp - 0x10]
mov eax, ebx
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 4
mov eax, esi
call sym._wine_dbgstr_an.constprop.0
mov dword [esp + 0xc], str.__s__n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.AddERExcludedApplicationA
mov dword [esp + 4], 0x70b03018
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x70b0151b
Function at 0x70b01600
Capabilities:
Set registry value

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push esi
push ebx
push ecx
sub esp, 0x3c
mov dword [ebp - 0x20], 1
mov ebx, dword [ecx]
test byte [0x70b03018], 8
jne 0x70b016a0
mov dword [esp], ebx
mov dword [esp + 4], 0x5c
call dword [sym.imp.ucrtbase.dll_wcsrchr]
test eax, eax
lea edx, [eax + 2]
cmovne ebx, edx
cmp word [ebx], 0
jne 0x70b01660
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0x57
lea esp, [ebp - 0xc]
xor eax, eax
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret 4
lea eax, [ebp - 0x1c]
mov dword [esp + 4], str.SoftwareMicrosoftPCHealthErrorReportingExclusionList
mov dword [esp + 8], eax
mov dword [esp], 0x80000002
call dword [sym.imp.advapi32.dll_RegCreateKeyW]
sub esp, 0xc
mov esi, eax
test eax, eax
je 0x70b016d8
xor eax, eax
test esi, esi
sete al
lea esp, [ebp - 0xc]
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret 4
mov eax, ebx
call sym._wine_dbgstr_wn.constprop.0
mov dword [esp + 0xc], str.__s__n
mov dword [esp + 0x10], eax
mov dword [esp + 8], str.AddERExcludedApplicationW
mov dword [esp + 4], 0x70b03018
mov dword [esp], 3
call sym._wine_dbg_log.constprop.0
jmp 0x70b01625
lea eax, [ebp - 0x20]
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegSetValueExW]
mov eax, dword [ebp - 0x1c]
sub esp, 0x18
mov dword [esp], eax
call dword [sym.imp.advapi32.dll_RegCloseKey]
sub esp, 4
jmp 0x70b01685
Function at 0x70b021f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x70b0224b
cmp byte [esi + ebx - 1], 0xa
je 0x70b0221f
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x70b03118], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x406315
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40ba88
cmp edx, dword [eax]
je 0x406337
add eax, 8
inc ecx
cmp eax, 0x40bb18
jl 0x406328
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40ba88]
jne 0x406465
mov eax, dword [0x40bfd4]
cmp eax, 1
je 0x40643f
test eax, eax
jne 0x406368
cmp dword [0x40b734], 1
je 0x40643f
cmp edx, 0xfc
je 0x406465
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40639f
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004037e0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004038d0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4063e2
lea eax, [ebp - 0x1a4]
push eax
call fcn.004038d0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x409584
push edi
call fcn.004077e0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004037e0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004037f0
lea eax, [ebp - 0xa0]
push 0x409564
push eax
call fcn.004037f0
push dword [esi + 0x40ba8c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004037f0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00407756
add esp, 0x2c
pop edi
jmp 0x406465
lea eax, [ebp + 8]
lea esi, [esi + 0x40ba8c]
push 0
push eax
push dword [esi]
call fcn.004038d0
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]
pop esi
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
nop
mov ecx, 0x7d34278c
nop
nop
nop
test eax, eax
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
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
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x433024
nop
mov eax, section..data
nop
nop
mov ebx, 0x4304d8
mov ecx, 0x78f96501
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x433084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
jne 0x43306c
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x10448210
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.10448360
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x10448236
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10448222
add dl, dl
jne 0x10448241
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10448294
xor eax, eax
add dl, dl
jne 0x1044824e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10448335
add dl, dl
jne 0x1044825d
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10448268
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10448273
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1044827e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x1044828a
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x1044822d
mov eax, 1
add dl, dl
jne 0x104482a2
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x104482ad
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10448299
sub eax, ebx
mov ebx, 1
jne 0x104482e0
mov ecx, 1
add dl, dl
jne 0x104482c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x104482d1
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x104482bd
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1044822d
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x104482f7
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x10448302
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x104482ee
cmp eax, 0x7d00
jae 0x10448325
cmp eax, 0x500
jb 0x10448320
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1044822d
cmp eax, 0x7f
ja 0x10448328
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1044822d
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x10448356
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x1044822d
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x100239d0
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Packed with generic packer

Disassembly:
xor edi, edi
je 0x100239da
popal
jmp 0x40528724
mov edx, 0x4c
cmp byte [esp + 8], 1
jne 0x10023bc8
pushal
mov esi, section..rdata
xor edi, edi
je 0x100239fa
popal
jmp 0x40528744
lea edi, [esi - 0xe000]
xor ecx, ecx
je 0x10023a0a
popal
jmp 0x40528754
mov eax, 0x7d
cmp edx, eax
mov eax, 0x4c
not eax
jne 0x10023a59
mov eax, dword fs:[0x30]
test eax, eax
js 0x10023a47
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0xc]
mov dword [eax + 0x20], 0x1000
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
movzx eax, byte [eax + 2]
test eax, eax
jne 0x10023a58
jmp 0x10023a59
xor eax, eax
mov al, byte fs:[0x20]
test eax, eax
jne 0x10023a58
jmp 0x10023a59
popal
push edi
or ebp, 0xffffffff
jmp 0x10023a6a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x10023a71
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x10023a60
mov eax, 1
add ebx, ebx
jne 0x10023a83
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x10023a78
jne 0x10023a94
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x10023a78
xor ecx, ecx
sub eax, 3
jb 0x10023aa8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x10023b1a
mov ebp, eax
add ebx, ebx
jne 0x10023ab3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x10023ac0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x10023ae4
inc ecx
add ebx, ebx
jne 0x10023ad0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x10023ac5
jne 0x10023ae1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x10023ac5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x10023b04
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x10023af5
jmp 0x10023a66
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x10023b04
add edi, ecx
jmp 0x10023a66
pop esi
mov edi, esi
mov ecx, 0x15f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x10023b22
cmp byte [edi], 0xa
jne 0x10023b22
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 eax, ebx
loop 0x10023b27
lea edi, [esi + 0x21000]
mov eax, dword [edi]
or eax, eax
je 0x10023b96
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x23000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x23028]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x10023b54
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2302c]
or eax, eax
je 0x10023b90
mov dword [ebx], eax
add ebx, 4
jmp 0x10023b71
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x10023bc7
cmp al, 0xef
ja 0x10023bba
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x10023b9c
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x10023ba9
popal
jmp fcn.100038f8
Function at 0x100014bb
Capabilities:
Hash data using crc32b

Disassembly:
push ebp
mov ebp, esp
pop ebp
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
xor edx, edx
lea esp, [esp]
xor eax, eax
test dl, 1
je 0x100014db
mov eax, 0x80
mov ecx, edx
shr ecx, 1
test cl, 1
je 0x100014e7
or eax, 0x40
shr ecx, 1
test cl, 1
je 0x100014f1
or eax, 0x20
shr ecx, 1
test cl, 1
je 0x100014fb
or eax, 0x10
shr ecx, 1
test cl, 1
je 0x10001505
or eax, 8
shr ecx, 1
test cl, 1
je 0x1000150f
or eax, 4
shr ecx, 1
test cl, 1
je 0x10001519
or eax, 2
test cl, 2
je 0x10001521
or eax, 1
shl eax, 0x18
mov ecx, eax
and eax, 0x80000000
neg eax
sbb eax, eax
add ecx, ecx
and eax, 0x4c11db7
xor eax, ecx
mov ecx, eax
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
and ecx, 0x4c11db7
add eax, eax
xor ecx, eax
mov eax, ecx
and eax, 0x80000000
neg eax
sbb eax, eax
add ecx, ecx
and eax, 0x4c11db7
xor eax, ecx
mov ecx, eax
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
and ecx, 0x4c11db7
add eax, eax
xor ecx, eax
mov eax, ecx
and eax, 0x80000000
neg eax
sbb eax, eax
add ecx, ecx
and eax, 0x4c11db7
xor eax, ecx
mov ecx, eax
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
and ecx, 0x4c11db7
add eax, eax
xor ecx, eax
mov eax, ecx
and eax, 0x80000000
neg eax
sbb eax, eax
add ecx, ecx
and eax, 0x4c11db7
xor eax, ecx
mov ecx, eax
and ecx, 0x80000000
neg ecx
sbb ecx, ecx
and ecx, 0x4c11db7
add eax, eax
xor ecx, eax
xor edi, edi
mov dword [esi + edx*4], ecx
mov eax, ecx
lea ecx, [edi + 0x1f]
test al, 1
je 0x100015e3
mov ebx, 1
shl ebx, cl
or edi, ebx
dec ecx
shr eax, 1
cmp ecx, 0xffffffff
jg 0x100015d6
mov dword [esi + edx*4], edi
inc edx
cmp edx, 0xff
jle 0x100014cf
pop edi
pop esi
pop ebx
ret 4

Function at 0x10001607
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
push 0xa
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
nop
nop
nop
nop
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x10001695
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
nop
nop
nop
nop
mov ebx, dword [ebp + 0x10]
mov dword [ebx], eax
mov ebx, dword [ebp + 0x10]
cmp dword [ebx], 0
je 0x10001695
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
nop
nop
nop
nop
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x10001695
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LockResource]
nop
nop
nop
nop
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
jmp 0x1000169d
mov esp, ebp
pop ebp
ret 0xc

Function at 0x100016ba
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
pop ebp
push esi
mov esi, dword [esp + 0x10]
test esi, esi
je 0x100016f4
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0xc]
push ebx
push ebp
push edi
mov edi, dword [esp + 0x14]
mov eax, dword [edx]
movzx ebp, byte [ecx]
mov ebx, eax
and ebx, 0xff
xor ebx, ebp
shr eax, 8
xor eax, dword [edi + ebx*4]
inc ecx
dec esi
mov dword [edx], eax
jne 0x100016d6
pop edi
pop ebp
pop ebx
pop esi
ret 0x10
Function at 0x10001759
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
push edi
xor edi, edi
mov dword [ebp - 8], edi
cmp dword [ebp + 0xc], edi
jle 0x10001806
push ebx
push esi
movzx ecx, cl
movzx esi, dl
lea esp, [esp]
inc ecx
and ecx, 0x800000ff
jns 0x1000179a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [ebp - 1], cl
movzx ecx, cl
movzx edx, byte [ecx + eax]
add edx, esi
and edx, 0x800000ff
jns 0x100017b6
dec edx
or edx, 0xffffff00
inc edx
movzx esi, dl
movzx ebx, byte [esi + eax]
mov byte [ebp - 2], dl
mov dl, byte [ecx + eax]
mov byte [ecx + eax], bl
mov byte [esi + eax], dl
movzx ebx, byte [ecx + eax]
movzx edx, dl
add edx, ebx
and edx, 0x800000ff
jns 0x100017e2
dec edx
or edx, 0xffffff00
inc edx
movzx edx, dl
movzx ebx, byte [edx + eax]
mov edx, dword [ebp + 8]
xor byte [edi + edx], bl
mov edx, dword [ebp - 8]
inc edx
movsx edi, dx
mov dword [ebp - 8], edx
cmp edi, dword [ebp + 0xc]
jl 0x10001789
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop esi
pop ebx
mov byte [eax + 0x101], dl
mov byte [eax + 0x100], cl
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x10001818
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor ecx, ecx
xor eax, eax
mov esi, edi
lea esp, [esp]
mov byte [esi], al
inc eax
mov edx, 0x100
inc esi
cmp ax, dx
jl 0x10001828
mov word [edi + 0x100], cx
xor dl, dl
mov esi, edi
mov dword [ebp - 4], 0x100
movzx ebx, byte [esi]
movzx eax, dl
mov edx, dword [ebp + 8]
movzx edx, byte [eax + edx]
add ecx, edx
add ecx, ebx
and ecx, 0x800000ff
jns 0x10001869
dec ecx
or ecx, 0xffffff00
inc ecx
mov dl, byte [esi]
movzx ecx, cl
mov bl, byte [ecx + edi]
inc eax
mov byte [esi], bl
mov byte [ecx + edi], dl
cdq
idiv dword [ebp + 0xc]
inc esi
dec dword [ebp - 4]
jne 0x10001848
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100039ce
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push 0x1001e2b3
mov ebx, dword [ebp + 8]
push dword [ebx]
push 0x1001e2b3
mov ecx, 3
call fcn.10003972
add esp, 0xc
mov dword [ebp - 4], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.10019e30
add esp, 0x10
mov dword [ebp - 8], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.10019e30
add esp, 0x10
mov dword [ebp - 0xc], eax
push 1
push dword [ebp - 0xc]
push dword [ebp - 8]
push dword [ebp - 4]
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
nop
nop
nop
nop
mov dword [ebp - 0x10], eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x10003a6d
push ebx
call fcn.100189cb
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x10003a7d
push ebx
call fcn.100189cb
add esp, 4
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x10003a8d
push ebx
call fcn.100189cb
add esp, 4
cmp dword [ebp - 0x10], 0x20
mov eax, 0
setg al
jmp 0x10003a9e
mov esp, ebp
pop ebp
ret 4