joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4012eb
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [0x72d64c], 1
mov dword [0x72d650], 1
mov dword [0x72d654], 1
mov dword [ebp - 4], 0x400000
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x40132c
mov eax, 0
jmp 0x4013c6
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x40134f
mov eax, 0
jmp 0x4013c6
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
movzx eax, ax
cmp eax, 0x10b
je 0x401371
cmp eax, 0x20b
je 0x401396
jmp 0x4013c1
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x5c]
cmp eax, 0xe
ja 0x401383
mov eax, 0
jmp 0x4013c6
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x4013c6
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x6c]
cmp eax, 0xe
ja 0x4013ae
mov eax, 0
jmp 0x4013c6
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x4013c6
mov eax, 0
leave
ret
Function at 0x401590
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [0x726048]
mov ebx, dword [esp + 0x20]
test eax, eax
je 0x4015b0
add esp, 0x14
pop ebx
pop esi
ret
mov dword [esp + 8], 0
mov dword [esp + 4], str.sentinel
mov dword [esp], 0x1b
call dword [sym.imp.python38.dll_PyCapsule_New]
mov dword [esp], str.version_info
mov dword [0x726048], eax
call dword [sym.imp.python38.dll_PySys_GetObject]
mov dword [esp], ebx
mov dword [esp + 8], 0x6f005a
mov dword [esp + 4], 0x726060
mov dword [0x726040], eax
call fcn.006d2a10
mov eax, dword [0x7261c8]
mov dword [esp], eax
call fcn.0067fb10
mov dword [esp], str.executable
mov dword [esp + 4], eax
call dword [sym.imp.python38.dll_PySys_SetObject]
mov dword [esp + 4], 0x6ec088
mov dword [esp], 0x7261e0
call dword [sym.imp.python38.dll_PyStructSequence_InitType]
mov dword [esp], 0x7261e0
call dword [sym.imp.python38.dll_PyStructSequence_New]
mov esi, dword [sym.imp.python38.dll_PyLong_FromLong]
mov dword [esp], 2
mov ebx, eax
mov dword [0x726044], eax
call esi
mov dword [ebx + 0xc], eax
mov ebx, dword [0x726044]
mov dword [esp], 1
call esi
mov dword [ebx + 0x10], eax
mov ebx, dword [0x726044]
mov dword [esp], 5
call esi
mov dword [ebx + 0x14], eax
mov ebx, dword [0x726044]
mov dword [esp], str.release
call dword [sym.imp.python38.dll_PyUnicode_FromString]
mov dword [ebx + 0x18], eax
mov dword [esp], 0
call fcn.00694540
mov edx, eax
mov eax, dword [0x726044]
mov dword [eax + 0x1c], edx
mov edx, dword [sym.imp.python38.dll__Py_TrueStruct]
mov dword [eax + 0x20], edx
mov dword [eax + 0x24], edx
mov edx, dword [sym.imp.python38.dll__Py_FalseStruct]
mov dword [eax + 0x28], edx
mov dword [eax + 0x2c], edx
mov dword [eax + 0x30], edx
mov dword [eax + 0x34], edx
mov dword [eax + 0x38], edx
mov eax, dword [0x726064]
mov dword [0x726274], 0
mov dword [0x72627c], 0
mov dword [esp + 0x20], eax
add esp, 0x14
pop ebx
pop esi
jmp 0x6d3980
mov eax, dword [esp + 4]
mov dword [0x72d3ac], eax
ret
Function at 0x67d7b0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov eax, 0x1007c
push edi
push esi
push ebx
call fcn.006dbffc
xor edx, edx
sub esp, eax
xor eax, eax
mov word [esp + 0x70], ax
mov eax, dword [esp + 0x10090]
lea edi, [esp + 0x20]
mov word [esp + 0x20], dx
movzx ebp, byte [eax]
mov eax, ebp
test al, al
je 0x67d85e
xor eax, eax
mov esi, ebp
mov ebp, eax
lea esi, [esi]
nop
mov eax, 0x28
lea ebx, [edi + ebp*2]
sub eax, ebp
cmp word [edi + ebp*2], 0
je 0x67d814
lea esi, [esi]
add ebx, 2
sub eax, 1
cmp word [ebx], 0
jne 0x67d808
test eax, eax
je 0x6eb553
mov dword [esp], ebx
add ebp, 1
call sub.msvcrt.dll_wcslen
lea edx, [esp + 0x1e]
mov ecx, esi
mov byte [esp + 0x1f], 0
lea eax, [ebx + eax*2]
mov dword [esp + 8], 2
mov dword [esp + 4], edx
mov dword [esp], eax
mov byte [esp + 0x1e], cl
call sub.msvcrt.dll_mbstowcs
mov eax, dword [esp + 0x10090]
movzx esi, byte [eax + ebp]
mov eax, esi
test al, al
jne 0x67d7f0
lea ebx, [esp + 0x70]
mov dword [esp + 8], 0x10000
mov dword [esp + 4], ebx
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [eax - 1]
sub esp, 0xc
xor eax, eax
cmp edx, 0xffff
ja 0x67d88f
mov dword [esp], ebx
call sub.msvcrt.dll__wcsdup
add esp, 0x1007c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x67d8a0
Capabilities:
Set environment variable

Disassembly:
push ebp
xor eax, eax
push edi
push esi
push ebx
sub esp, 0x7c
mov word [esp + 0x20], ax
mov eax, dword [esp + 0x90]
lea edi, [esp + 0x20]
movzx ebp, byte [eax]
mov eax, ebp
test al, al
je 0x67d93e
xor eax, eax
mov esi, ebp
mov ebp, eax
lea esi, [esi]
nop
mov eax, 0x28
lea ebx, [edi + ebp*2]
sub eax, ebp
cmp word [edi + ebp*2], 0
je 0x67d8f4
lea esi, [esi]
add ebx, 2
sub eax, 1
cmp word [ebx], 0
jne 0x67d8e8
test eax, eax
je 0x6eb558
mov dword [esp], ebx
add ebp, 1
call sub.msvcrt.dll_wcslen
lea ecx, [esp + 0x1e]
mov edx, esi
mov byte [esp + 0x1f], 0
lea eax, [ebx + eax*2]
mov dword [esp + 8], 2
mov dword [esp + 4], ecx
mov dword [esp], eax
mov byte [esp + 0x1e], dl
call sub.msvcrt.dll_mbstowcs
mov eax, dword [esp + 0x90]
movzx esi, byte [eax + ebp]
mov eax, esi
test al, al
jne 0x67d8d0
mov eax, dword [esp + 0x94]
mov dword [esp], edi
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
sub esp, 8
add esp, 0x7c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x694540
Capabilities:
Set environment variable

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x8c
mov dword [esp], str.NUITKA_ONEFILE_BINARY
mov ebx, dword [esp + 0xa0]
call fcn.0067d7b0
test eax, eax
je 0x694688
mov dword [esp], eax
mov edi, 0x4e
lea esi, [esp + 0x30]
mov ebp, 0x28
mov dword [esp + 4], 0xffffffff
call dword [sym.imp.python38.dll_PyUnicode_FromWideChar]
mov ebx, eax
xor eax, eax
mov word [esp + 0x30], ax
mov dword [esp + 0x1c], ebx
mov ebx, edi
mov edi, esi
lea esi, [esi]
cmp word [edi], 0
mov eax, ebp
mov esi, edi
je 0x6945b4
lea esi, [esi]
add esi, 2
sub eax, 1
cmp word [esi], 0
jne 0x6945a8
test eax, eax
je 0x6eb5df
mov dword [esp], esi
add edi, 2
call sub.msvcrt.dll_wcslen
lea edx, [esp + 0x2e]
mov byte [esp + 0x2e], bl
lea eax, [esi + eax*2]
mov dword [esp + 8], 2
mov dword [esp + 4], edx
mov dword [esp], eax
mov byte [esp + 0x2f], 0
call sub.msvcrt.dll_mbstowcs
mov eax, 1
lea ecx, [ebp - 1]
sub eax, ebp
movzx ebx, byte [eax + 0x6f6ffe]
test bl, bl
je 0x694608
mov ebp, ecx
jmp 0x694598
lea eax, [esp + 0x30]
mov dword [esp + 4], 0
mov ebx, dword [esp + 0x1c]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov eax, dword [sym.imp.python38.dll__PyRuntime]
mov esi, dword [0x726140]
sub esp, 8
mov edi, dword [eax + 0x2cc]
mov eax, dword [0x72d36c]
test eax, eax
je 0x6946e0
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.006810b0
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov esi, eax
mov dword [esp], edi
call fcn.00690120
sub dword [esi], 1
jne 0x69467a
mov edx, dword [esi + 4]
mov dword [esp + 0x1c], eax
mov dword [esp], esi
call dword [edx + 0x18]
mov eax, dword [esp + 0x1c]
add esp, 0x8c
pop ebx
pop esi
pop edi
pop ebp
ret
test bl, bl
je 0x6946d4
mov eax, dword [0x72ccac]
mov esi, 0x72ccac
test eax, eax
jne 0x69467a
cmp byte [0x72cec2], 0
jne 0x6946ab
movzx eax, bl
call fcn.00660f10
mov dword [esp + 4], 0xffffffff
mov dword [esp], 0x72ccc0
call dword [sym.imp.python38.dll_PyUnicode_FromWideChar]
mov dword [esi], eax
test eax, eax
je 0x694709
add dword [eax], 1
add esp, 0x8c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [0x72cca8]
mov esi, 0x72cca8
jmp 0x694696
mov eax, dword [0x72d328]
mov ebp, dword [0x726138]
test eax, eax
je 0x694714
mov dword [esp + 8], ebp
mov dword [esp + 4], eax
mov dword [esp], edi
call fcn.006810b0
mov dword [0x72d36c], eax
jmp 0x694642
call dword [sym.imp.python38.dll_PyErr_Print]
call sub.msvcrt.dll_abort
mov dword [esp], 0x6f5242
call dword [sym.imp.python38.dll_PyImport_ImportModule]
mov dword [0x72d328], eax
test eax, eax
je 0x6eb5df
jmp 0x6946ef
Function at 0x6d2a10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
cmp byte [0x72cc9d], 0
mov eax, dword [esp + 0x40]
mov ebp, dword [esp + 0x44]
mov esi, dword [esp + 0x48]
mov dword [esp + 0x1c], eax
je 0x6d2a98
mov dword [esp + 4], 0x6f868e
mov dword [esp], esi
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x6d2b18
mov ebx, dword [0x72cbfc]
jmp 0x6d2a54
lea ebx, [eax + ecx + 4]
mov dword [esp + 4], ebx
mov dword [esp], esi
call sub.msvcrt.dll_strcmp
mov dword [esp], ebx
mov edi, eax
call sub.msvcrt.dll_strlen
lea eax, [ebx + eax + 1]
mov ecx, dword [eax]
test edi, edi
jne 0x6d2a50
lea ecx, [eax + 6]
movzx eax, word [eax + 4]
mov edx, ebp
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x1c]
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.006c23b0
mov dword [esp + 8], 0xa
mov dword [esp + 4], 3
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
sub esp, 0xc
mov dword [esp + 4], eax
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
sub esp, 8
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, dword [eax + 4]
sub esp, 4
mov dword [0x72cbfc], eax
add eax, 8
mov ebx, dword [eax - 8]
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov dword [esp], 0
mov dword [0x72cbfc], eax
call fcn.006d1f60
cmp eax, ebx
jne 0x6d2b93
mov byte [0x72cc9d], 1
jmp 0x6d2a30
cmp byte [0x72cc9c], 0
jne 0x6d2a48
mov ebx, dword [sym.imp.python38.dll_PyDict_New]
mov edi, 0xfffffffb
call ebx
mov dword [0x72d474], eax
call ebx
mov dword [0x72d470], eax
call ebx
mov dword [0x72d46c], eax
call ebx
mov dword [0x72d468], eax
call ebx
mov dword [0x72d464], eax
call ebx
mov dword [0x72d460], eax
call ebx
mov dword [0x72d45c], eax
call ebx
mov ebx, dword [sym.imp.python38.dll_PyLong_FromLong]
mov dword [0x72d458], eax
nop
mov dword [esp], edi
call ebx
mov dword [edi*4 + 0x72c7f4], eax
add edi, 1
cmp edi, 0x101
jne 0x6d2b70
mov byte [0x72cc9c], 1
jmp 0x6d2a48
mov dword [esp], str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
lea esi, [esi]
lea esi, [esi]
nop
Function at 0x6db04c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
lea eax, [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov dword [esp], 2
call fcn.006ea98c
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x1b
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
mov ebx, dword [ebp - 0xc]
mov dword [esp], 2
call fcn.006ea98c
mov dword [esp + 8], ebx
mov edx, dword [ebp + 8]
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort

Function at 0x6dbc20
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp ax, 0x5a4d
je 0x6dbc3f
mov eax, 0
jmp 0x6dbc83
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov eax, dword [eax]
cmp eax, 0x4550
je 0x6dbc62
mov eax, 0
jmp 0x6dbc83
mov eax, dword [ebp - 8]
add eax, 0x18
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
cmp ax, 0x10b
je 0x6dbc7e
mov eax, 0
jmp 0x6dbc83
mov eax, 1
leave
ret

Function at 0x6dbc85
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [ebp + 8]
add eax, edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 0x14]
movzx edx, ax
mov eax, dword [ebp - 0xc]
add eax, edx
add eax, 0x18
mov dword [ebp - 4], eax
jmp 0x6dbce4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
cmp dword [ebp + 0xc], eax
jb 0x6dbcdc
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
add eax, edx
cmp dword [ebp + 0xc], eax
jae 0x6dbcdc
mov eax, dword [ebp - 4]
jmp 0x6dbcf8
add dword [ebp - 8], 1
add dword [ebp - 4], 0x28
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 6]
movzx eax, ax
cmp dword [ebp - 8], eax
jb 0x6dbcb9
mov eax, 0
leave
ret
Function at 0x40dbf0
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4f5d18
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x529748]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov edi, ecx
push 0
lea ebx, [edi + 0x10]
mov dword [esp + 0x18], 0
push 0x50cffc
mov ecx, ebx
call fcn.00416690
push 0
push 0x50cffc
lea ecx, [edi + 0x28]
mov byte [edi + 0x48], 0
call fcn.00416690
mov esi, dword [ebp + 0xc]
mov ecx, edi
push esi
call fcn.0040ea10
push esi
mov ecx, edi
call fcn.0040dd10
push esi
mov ecx, edi
call fcn.0040eb30
mov edx, 0x507418
lea ecx, [esp + 0x18]
call fcn.00416440
mov dword [esp + 0x30], 0
mov edx, dword [eax]
mov eax, dword [eax + 4]
sub eax, edx
jne 0x40dc8e
push str.invalid_vector_T__subscript
call fcn.004bc548
cmp byte [edx], 0
jne 0x40dc97
xor eax, eax
jmp 0x40dca9
mov eax, edx
lea esi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40dca0
sub eax, esi
push eax
push edx
mov ecx, ebx
call fcn.00414f50
mov dword [esp + 0x30], 0xffffffff
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40dccb
push eax
call fcn.004191e0
add esp, 4
mov esi, dword [ebp + 8]
mov ecx, esi
push 0xffffffffffffffff
push 0
push ebx
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
call fcn.00416b40
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4141a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f64ca
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x529748]
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, ecx
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x18], esi
call fcn.004bc9f4
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x414246
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], str.bad_locale_name
push eax
lea ecx, [ebp - 0x24]
call fcn.004be733
push 0x526b90
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], vtable.std::runtime_error.0
push eax
call fcn.004c22fb
push edi
push esi
call fcn.004bc8c7
add esp, 8
mov eax, esi
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.004bd963
mov esp, ebp
pop ebp
ret 4

Function at 0x4148a0
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4f65e8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push esi
mov eax, dword [0x529748]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
sub esp, 0x18
mov ecx, esp
push 0xffffffffffffffff
push 0
push dword [ebp + 0x10]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
mov byte [ecx], 0
call fcn.00416b40
push dword [ebp + 0xc]
lea eax, [esp + 0x28]
push dword [ebp + 8]
push eax
call fcn.004147d0
add esp, 0x24
mov dword [esp + 0x30], 0
cmp dword [eax + 0x14], 0x10
jb 0x414911
mov eax, dword [eax]
mov dword [esp + 8], eax
mov ecx, esi
lea eax, [esp + 8]
push eax
call fcn.004be733
cmp dword [esp + 0x20], 0x10
mov dword [esi], vtable.std::runtime_error.0
jb 0x41493a
push dword [esp + 0xc]
call fcn.004191e0
add esp, 4
mov eax, dword [ebp + 8]
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x10], eax
mov eax, esi
mov dword [esi], vtable.std::_System_error.0
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4158e0
Capabilities:
Decode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f66d8
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x529748]
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, ecx
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
test eax, eax
je 0x41598c
mov edi, dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
lea ecx, [ebp - 0x14]
push 0
push 0
push ecx
push 0
push 1
push eax
push dword [ebp + 8]
call edi
test eax, eax
jne 0x415948
mov eax, dword [esi]
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x41598e
push dword [ebp - 0x14]
mov ecx, esi
call fcn.00415880
mov eax, dword [esi + 4]
mov ecx, dword [esi]
sub eax, ecx
jne 0x415965
push str.invalid_vector_T__subscript
call fcn.004bc548
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x14]
push 0
push 0
push edx
push ecx
push 1
push dword [eax - 0xc]
push eax
call edi
test eax, eax
jne 0x41598c
mov eax, dword [esi]
mov dword [esi + 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x41598e
xor esi, esi
mov dword [ebp - 4], 0xffffffff
or ecx, 0xffffffff
mov edi, dword [ebp + 8]
add edi, 0xfffffff0
lea eax, [edi + 0xc]
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x4159b2
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
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.004bd963
mov esp, ebp
pop ebp
ret

Function at 0x415d60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x415d79
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x415db4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x415db0
lea ebx, [ebx]
cmp esi, edx
jae 0x415db4
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x415da0
cmp esi, edx
jb 0x415dbb
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x41da80
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, edx
xor esi, esi
mov ebx, ecx
test edi, edi
jle 0x41daad
lea ecx, [ecx]
movzx eax, byte [ebx]
lea ecx, [esi*8]
dec edi
lea ebx, [ebx + 1]
movzx edx, byte [eax + 0x5082e0]
xor edx, ecx
xor esi, edx
test edi, edi
jg 0x41da90
pop edi
mov eax, esi
pop esi
pop ebx
ret

Function at 0x41db30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, edx
mov ebx, ecx
mov ecx, 0x80
mov dword [ebp - 4], ebx
push edi
lea eax, [esi*8]
cmp eax, 0x400
cmova esi, ecx
cmp esi, dword [ebx]
jne 0x41db61
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x52ff58]
test eax, eax
je 0x41db6c
call eax
lea eax, [esi*8]
push eax
call fcn.00419960
mov ecx, dword [0x52ff5c]
add esp, 4
mov esi, eax
mov dword [ebp - 0xc], esi
test ecx, ecx
je 0x41db8d
call ecx
test esi, esi
je 0x41db58
push dword [ebx + 0xc]
call fcn.00419c60
add esp, 4
mov dword [ebx + 0xc], esi
push esi
call dword [0x52b548]
shr eax, 3
add esp, 4
mov dword [ebp - 8], eax
mov dword [ebx], eax
lea ecx, [eax*8]
push ecx
push 0
push esi
call fcn.004c1b90
mov ecx, dword [ebx + 8]
add esp, 0xc
mov dword [ebx + 8], 0
test ecx, ecx
je 0x41dc70
mov esi, dword [ecx + 0x10]
xor edi, edi
mov ebx, dword [ecx + 0xc]
test esi, esi
jle 0x41dbff
movzx eax, byte [ebx]
lea ebx, [ebx + 1]
dec esi
movzx edx, byte [eax + 0x5082e0]
lea eax, [edi*8]
xor edx, eax
xor edi, edx
test esi, esi
jg 0x41dbe2
xor edx, edx
mov ebx, dword [ecx]
mov eax, edi
div dword [ebp - 8]
mov eax, dword [ebp - 0xc]
lea esi, [eax + edx*8]
test esi, esi
je 0x41dc4a
mov eax, dword [esi]
test eax, eax
je 0x41dc1d
mov edx, dword [esi + 4]
jmp 0x41dc1f
xor edx, edx
inc eax
mov dword [esi + 4], ecx
mov dword [esi], eax
test edx, edx
je 0x41dc4a
mov dword [ecx], edx
mov eax, dword [edx + 4]
mov dword [ecx + 4], eax
mov eax, dword [edx + 4]
test eax, eax
je 0x41dc3f
mov dword [eax], ecx
mov dword [edx + 4], ecx
jmp 0x41dc66
mov eax, dword [ebp - 4]
mov dword [eax + 8], ecx
mov dword [edx + 4], ecx
jmp 0x41dc66
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
mov dword [ecx], eax
mov eax, dword [edx + 8]
test eax, eax
je 0x41dc5c
mov dword [eax + 4], ecx
mov dword [ecx + 4], 0
mov dword [edx + 8], ecx
mov ecx, ebx
test ebx, ebx
jne 0x41dbd6
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41dd90
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, ecx
mov dword [ebp - 8], edx
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [eax + 0xc], 0
je 0x41dde4
push ebx
push esi
xor esi, esi
mov ebx, edx
push edi
mov edi, ecx
test ecx, ecx
jle 0x41ddd4
movzx eax, byte [ebx]
lea ecx, [esi*8]
dec edi
lea ebx, [ebx + 1]
movzx edx, byte [eax + 0x5082e0]
xor edx, ecx
xor esi, edx
test edi, edi
jg 0x41ddb4
mov ecx, dword [ebp + 8]
mov eax, esi
xor edx, edx
mov esi, dword [ebp - 4]
pop edi
div dword [esi]
mov eax, esi
pop esi
pop ebx
jmp 0x41dde6
xor edx, edx
push edx
mov edx, dword [ebp - 8]
push ecx
mov ecx, eax
call fcn.0041dc80
add esp, 8
test eax, eax
je 0x41de00
mov eax, dword [eax + 8]
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x41de10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
mov edi, edx
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], edi
cmp dword [esi], 0
je 0x41de65
mov eax, dword [ebp + 8]
xor edi, edi
mov ebx, eax
test eax, eax
jle 0x41de55
mov esi, edx
movzx eax, byte [esi]
lea ecx, [edi*8]
dec ebx
lea esi, [esi + 1]
movzx edx, byte [eax + 0x5082e0]
xor edx, ecx
xor edi, edx
test ebx, ebx
jg 0x41de35
mov esi, dword [ebp - 0xc]
mov eax, edi
xor edx, edx
div dword [esi]
mov edi, dword [ebp - 8]
mov ebx, edx
mov dword [ebp - 4], edx
jmp 0x41de6a
xor ebx, ebx
mov dword [ebp - 4], ebx
push ebx
push dword [ebp + 8]
mov edx, edi
mov ecx, esi
call fcn.0041dc80
add esp, 8
test eax, eax
je 0x41deb2
mov ecx, dword [eax + 8]
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x41dea2
push ebx
mov edx, eax
mov ecx, esi
call fcn.0041dd30
mov eax, dword [ebp - 0xc]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edi
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x41df50
push 0x14
call fcn.00419960
mov edi, eax
add esp, 4
test edi, edi
jne 0x41ded6
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 8]
mov dword [edi + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [edi + 0x10], eax
mov dword [edi + 8], ebx
inc dword [esi + 4]
mov edx, dword [esi + 4]
cmp edx, 0xa
jb 0x41df16
mov eax, dword [esi]
add eax, eax
cmp edx, eax
jbe 0x41df16
add edx, edx
mov ecx, esi
call fcn.0041db30
test eax, eax
je 0x41df16
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 8]
call fcn.0041da80
xor edx, edx
div dword [esi]
jmp 0x41df19
mov edx, dword [ebp - 4]
mov eax, dword [esi + 0xc]
test eax, eax
je 0x41df37
push edi
lea edx, [eax + edx*8]
mov ecx, esi
call fcn.0041dac0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 8]
mov dword [edi], eax
mov eax, dword [esi + 8]
test eax, eax
je 0x41df46
mov dword [eax + 4], edi
mov dword [edi + 4], 0
mov dword [esi + 8], edi
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret