joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403740
Capabilities:
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x484
push ebx
push esi
push edi
push 8
xor ebx, ebx
push ebx
lea eax, [ebp - 8]
push eax
call fcn.0040be9d
lea eax, [ebp - 0x70]
push eax
mov edx, str.SOFTWAREFlashFXP3
call fcn.00405511
pop ecx
lea eax, [ebp - 0x30]
push eax
mov edx, str.datafolder
call fcn.00405511
pop ecx
mov esi, 0x104
push esi
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x70]
push eax
lea edi, [ebp - 0x278]
mov eax, 0x80000002
call fcn.0040848f
add esp, 0xc
cmp eax, 0xffffffff
je 0x4037c5
cmp eax, ebx
jbe 0x4037c5
push esi
lea eax, [ebp - 0x480]
push eax
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x480]
push eax
call fcn.004034a8
pop ecx
pop ecx
cmp dword [ebp - 4], ebx
jne 0x40383a
lea eax, [ebp - 0x48]
push eax
mov edx, str.flashfxp
call fcn.00405511
lea eax, [ebp - 0x48]
pop ecx
mov dword [ebp - 0x18], 0x23
mov dword [ebp - 0x14], 0x1a
mov dword [ebp - 0x10], 0x26
mov dword [ebp - 0xc], eax
xor esi, esi
lea eax, [ebp - 0x278]
push eax
push ebx
push ebx
push dword [ebp + esi*4 - 0x18]
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x403831
push ebx
push ebx
push ebx
lea eax, [ebp - 8]
push eax
push 0x40350f
push 2
push 1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x278]
push eax
call fcn.00408248
add esp, 0x24
inc esi
cmp esi, 3
jb 0x4037f6
cmp dword [ebp - 4], ebx
jbe 0x403846
mov esi, dword [ebp - 8]
call fcn.004033a0
jmp 0x40384f
push dword [ebp - 8]
call fcn.0040be3a
pop ecx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x403854
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov eax, dword [ecx]
imul eax, eax, 0x8088405
push 0x20
push 0
push dword [esp + 0xc]
inc eax
push 0
push eax
mov dword [ecx], eax
call fcn.004085d0
push edx
push eax
call fcn.004085a1
ret

Function at 0x403877
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
sub esp, 0x108
push ebx
push esi
push edi
jmp loc.00429000
Function at 0x43b63d
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0x43b3c1
mov ebx, 0x56d89631
or ebx, eax
call fcn.0043b671
dec ebx
xor dword [ecx], esi
sub eax, ebx
add ebx, ebx
sub ebx, 0x299c71fc
inc ecx
or eax, eax
cmp ecx, edi
jne fcn.0043b63d
mov ebx, 0x759c89e4
and eax, eax
ret
Function at 0x1001d4e5
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x88]
test esi, esi
je 0x1001d51a
mov eax, dword [ebp + 0x14]
push 8
push 0
mov dword [eax], esi
mov eax, dword [esi + 0x10]
mov dword [edi + 0x88], eax
push dword [esi + 8]
and dword [esi + 0x10], 0
call fcn.1005ddd0
add esp, 0xc
jmp 0x1001d579
movzx eax, word [edi + 0x8c]
add eax, 0x28
push 0
push eax
call fcn.1003565c
pop ecx
pop ecx
mov ecx, dword [ebp + 0x14]
mov esi, eax
mov dword [ecx], esi
test esi, esi
jne 0x1001d562
push dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov eax, dword [edi + 0x98]
dec ecx
push esi
cdq
push ecx
push edx
push eax
call fcn.1005ee10
push edx
push eax
push dword [edi + 0x3c]
call fcn.10035fbc
add esp, 0x10
push 7
pop eax
jmp 0x1001d58a
lea eax, [esi + 0x28]
mov dword [esi + 0x14], edi
mov dword [esi + 8], eax
push 0x20
pop eax
mov word [esi + 0x1c], ax
xor eax, eax
inc eax
mov word [esi + 0x1e], ax
mov eax, dword [ebp + 0xc]
mov dword [esi + 0x18], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 4], eax
inc dword [edi + 0x78]
xor eax, eax
pop edi
pop esi
pop ebp
ret

Function at 0x10021f5c
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0x10]
mov esi, str.sqlite_master
push dword [ebp + 0xc]
push esi
push dword [ebp + 0xc]
push str.SELECT_1_FROM___w_._s_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name___d_NULL
push dword [ebp + 8]
call fcn.10035a7b
add esp, 0x18
cmp dword [ebp + 0x10], 0
jne 0x10021f99
push dword [ebp + 0xc]
push esi
push str.SELECT_1_FROM_temp._s_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name__1_NULL
push dword [ebp + 8]
call fcn.10035a7b
add esp, 0x10
pop esi
pop ebp
ret
Function at 0x1003e07d
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
push 0
push 0x14
and dword [edi], 0
call fcn.10035531
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x1003e09e
push 7
pop eax
jmp 0x1003e114
cmp dword [0x1007b8cc], 0
push ebx
mov ebx, dword [ebp + 0x10]
je 0x1003e0eb
mov eax, dword [0x1007b9cc]
test eax, eax
je 0x1003e0be
push 0xc8
call eax
pop ecx
jmp 0x1003e0c0
xor eax, eax
test eax, eax
jne 0x1003e0eb
mov eax, dword [ebp + 0xc]
mov dword [esi + 8], eax
lea eax, [esi + 4]
push eax
push 0
push esi
push 0x1003e16f
push 0
push 0
mov dword [esi + 0xc], ebx
call fcn.1005ea51
add esp, 0x18
mov dword [esi], eax
test eax, eax
jne 0x1003e0f8
push 0x14
push 0
push esi
call fcn.1005ddd0
add esp, 0xc
cmp dword [esi + 8], 0
jne 0x1003e10f
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push ebx
mov dword [esi + 4], eax
call dword [ebp + 0xc]
pop ecx
mov dword [esi + 0x10], eax
mov dword [edi], esi
xor eax, eax
pop ebx
pop edi
pop esi
pop ebp
ret
Function at 0x100598f6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x10]
xor ebx, ebx
mov esi, dword [edx + 8]
test edi, edi
jle 0x10059924
mov eax, dword [ebp + 0xc]
mov ecx, dword [edx]
mov al, byte [ebx + eax]
xor byte [ecx + esi], al
inc esi
xor eax, eax
cmp esi, dword [edx + 4]
cmovge esi, eax
inc ebx
cmp ebx, edi
jl 0x1005990b
add dword [edx + 0xc], edi
pop edi
mov dword [edx + 8], esi
pop esi
pop ebx
pop ebp
ret
Function at 0x1002f50
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push 0x20019
xor esi, esi
push esi
push 0x1001624
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1002fa5
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push esi
push 0x10000002
push 0x1001610
push esi
push dword [ebp + 0xc]
call dword [sym.imp.SHLWAPI.dll_SHRegGetValueA]
test eax, eax
jne 0x1002f9c
inc esi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
neg eax
sbb eax, eax
and eax, 0x7fff0001
add eax, 0x8000ffff
pop esi
leave
ret 8

Function at 0x1003722
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
push 0xfa7
push dword [ecx]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
xor ebx, ebx
push ebx
push ebx
push 0x1004
push eax
mov dword [ebp - 4], eax
call esi
cmp eax, ebx
mov dword [ebp - 8], eax
jle 0x100378c
push edi
push 0xd
pop ecx
xor eax, eax
lea edi, [ebp - 0x3c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x3c]
push eax
push 0
push 0x104b
push dword [ebp - 4]
mov dword [ebp - 0x3c], 4
mov dword [ebp - 0x38], ebx
call esi
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1003785
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
inc ebx
cmp ebx, dword [ebp - 8]
jl 0x1003754
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
leave
ret

Function at 0x1003800
Capabilities:
Get graphical window text

Disassembly:
push ebp
lea ebp, [esp - 0x200]
sub esp, 0x280
mov eax, dword [0x10171b0]
push ebx
push esi
push edi
push 0xd
mov dword [ebp + 0x1fc], eax
mov esi, ecx
pop ecx
xor eax, eax
lea edi, [ebp - 0x4c]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x208]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x4c]
push eax
push 0
push 0x104b
push 0xfa7
push dword [esi]
mov dword [ebp - 0x14], 0x105
mov dword [ebp - 0x4c], 4
call edi
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push eax
call ebx
cmp dword [ebp - 0x48], 0xffffffff
je 0x10038ae
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax]
push 0
push dword [esi]
mov dword [ebp - 0x18], eax
push eax
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax]
lea edx, [ebp - 0x10]
push edx
lea edx, [ebp - 0x14]
push edx
push eax
call dword [ecx + 0x1c]
and dword [ebp - 0x78], 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x80]
push eax
push dword [ebp + 0x208]
push 0x1074
push 0xfa7
push dword [esi]
call edi
push eax
call ebx
mov ecx, dword [ebp + 0x1fc]
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
call fcn.0101207f
add ebp, 0x200
leave
ret 4
Function at 0x1003af1
Capabilities:
Get graphical window text

Disassembly:
push ebp
lea ebp, [esp - 0xa00]
sub esp, 0xa80
mov eax, dword [0x10171b0]
mov dword [ebp + 0x9fc], eax
push esi
mov esi, ecx
xor eax, eax
cmp dword [esi + 8], eax
mov dword [ebp - 0x48], 0x105
je 0x1003cc0
push ebx
push edi
push 0xd
pop ecx
lea edi, [ebp - 0x80]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0xa08]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x80]
push eax
push 0
push 0x104b
push 0xfa7
push dword [esi]
mov dword [ebp - 0x80], 4
call edi
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push eax
call ebx
cmp dword [ebp - 0x7c], 0xffffffff
je 0x1003c68
mov eax, dword [ebp - 0x60]
test eax, eax
mov dword [ebp - 0x4c], eax
je 0x1003c68
mov ecx, dword [eax]
lea edx, [ebp + 0x5d4]
push edx
lea edx, [ebp - 0x48]
push edx
push eax
call dword [ecx + 0x1c]
test eax, eax
je 0x1003b93
and word [ebp + 0x7e0], 0
jmp 0x1003bb3
lea eax, [ebp + 0x5d4]
push eax
push 0x105
lea eax, [ebp + 0x7e0]
push eax
call fcn.0100364c
test eax, eax
jl 0x1003c68
push 0x104
lea eax, [ebp - 0x44]
push eax
push 0x11f8
push dword [0x1017260]
call dword [sym.imp.USER32.dll_LoadStringW]
push 0x104
lea eax, [ebp + 0x3cc]
push eax
push 0x11f9
push dword [0x1017260]
call dword [sym.imp.USER32.dll_LoadStringW]
lea eax, [ebp + 0x7e0]
push eax
lea eax, [ebp + 0x3cc]
push eax
lea eax, [ebp + 0x1c4]
push 0x104
push eax
call fcn.010038e0
add esp, 0x10
push 0x24
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp + 0x1c4]
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 7
je 0x1003c68
mov ecx, dword [ebp - 0x4c]
lea eax, [ebp + 0x7e0]
push eax
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 0x48], 0x105
call fcn.0100c413
test eax, eax
jl 0x1003c68
and word [ebp + 0x82c], 0
lea eax, [ebp + 0x7e0]
push eax
push 0x105
lea eax, [ebp + 0x5d4]
push eax
call fcn.0100364c
test eax, eax
jge 0x1003c6c
xor eax, eax
jmp 0x1003cbe
lea eax, [ebp + 0x9ec]
push eax
lea eax, [ebp + 0x5d4]
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi + 8]
mov ecx, dword [eax]
lea edx, [ebp + 0x9ec]
push edx
push eax
call dword [ecx + 0x18]
push 0xfa7
push dword [esi]
call edi
push 0
push dword [ebp + 0xa08]
mov esi, eax
push 0x1008
push esi
call ebx
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
xor eax, eax
inc eax
pop edi
pop ebx
mov ecx, dword [ebp + 0x9fc]
pop esi
call fcn.0101207f
add ebp, 0xa00
leave
ret 4
Function at 0x1003b0a
Capabilities:
Get graphical window text

Disassembly:
push ebp
lea ebp, [esp - 0xa00]
sub esp, 0xa80
mov eax, dword [0x10171b0]
mov dword [ebp + 0x9fc], eax
push esi
mov esi, ecx
xor eax, eax
cmp dword [esi + 8], eax
mov dword [ebp - 0x48], 0x105
je 0x1003cc0
push ebx
push edi
push 0xd
pop ecx
lea edi, [ebp - 0x80]
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0xa08]
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x80]
push eax
push 0
push 0x104b
push 0xfa7
push dword [esi]
mov dword [ebp - 0x80], 4
call edi
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push eax
call ebx
cmp dword [ebp - 0x7c], 0xffffffff
je 0x1003c68
mov eax, dword [ebp - 0x60]
test eax, eax
mov dword [ebp - 0x4c], eax
je 0x1003c68
mov ecx, dword [eax]
lea edx, [ebp + 0x5d4]
push edx
lea edx, [ebp - 0x48]
push edx
push eax
call dword [ecx + 0x1c]
test eax, eax
je 0x1003b93
and word [ebp + 0x7e0], 0
jmp 0x1003bb3
lea eax, [ebp + 0x5d4]
push eax
push 0x105
lea eax, [ebp + 0x7e0]
push eax
call fcn.0100364c
test eax, eax
jl 0x1003c68
push 0x104
lea eax, [ebp - 0x44]
push eax
push 0x11f8
push dword [0x1017260]
call dword [sym.imp.USER32.dll_LoadStringW]
push 0x104
lea eax, [ebp + 0x3cc]
push eax
push 0x11f9
push dword [0x1017260]
call dword [sym.imp.USER32.dll_LoadStringW]
lea eax, [ebp + 0x7e0]
push eax
lea eax, [ebp + 0x3cc]
push eax
lea eax, [ebp + 0x1c4]
push 0x104
push eax
call fcn.010038e0
add esp, 0x10
push 0x24
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp + 0x1c4]
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 7
je 0x1003c68
mov ecx, dword [ebp - 0x4c]
lea eax, [ebp + 0x7e0]
push eax
lea eax, [ebp - 0x48]
push eax
mov dword [ebp - 0x48], 0x105
call fcn.0100c413
test eax, eax
jl 0x1003c68
and word [ebp + 0x82c], 0
lea eax, [ebp + 0x7e0]
push eax
push 0x105
lea eax, [ebp + 0x5d4]
push eax
call fcn.0100364c
test eax, eax
jge 0x1003c6c
xor eax, eax
jmp 0x1003cbe
lea eax, [ebp + 0x9ec]
push eax
lea eax, [ebp + 0x5d4]
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi + 8]
mov ecx, dword [eax]
lea edx, [ebp + 0x9ec]
push edx
push eax
call dword [ecx + 0x18]
push 0xfa7
push dword [esi]
call edi
push 0
push dword [ebp + 0xa08]
mov esi, eax
push 0x1008
push esi
call ebx
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
xor eax, eax
inc eax
pop edi
pop ebx
mov ecx, dword [ebp + 0x9fc]
pop esi
call fcn.0101207f
add ebp, 0xa00
leave
ret 4
Function at 0x1005701
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, 0x1013794
call fcn.01013660
sub esp, 0xc
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x2c], ebx
je 0x1005726
xor eax, eax
cmp dword [esi + 0x30], ebx
sete al
jmp 0x1005838
push edi
lea eax, [esi + 4]
push eax
lea ecx, [ebp - 0x18]
call fcn.010053df
push dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
inc dword [ebp - 0x18]
mov dword [ebp - 4], ebx
call fcn.010134e6
cmp dword [esi + 0x2c], ebx
jne 0x100580f
push 0x100175c
mov dword [esi + 0x30], ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [esi + 0x30], eax
je 0x10057db
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1001778
push eax
call edi
push 0x100178c
push dword [esi + 0x30]
mov dword [esi + 0x34], eax
call edi
push 0x10017a0
push dword [esi + 0x30]
mov dword [esi + 0x38], eax
call edi
push 0x10017b0
push dword [esi + 0x30]
mov dword [esi + 0x3c], eax
call edi
push 0x10017c0
push dword [esi + 0x30]
mov dword [esi + 0x40], eax
call edi
push 0x10017d8
push dword [esi + 0x30]
mov dword [esi + 0x44], eax
call edi
push 0x10017ec
push dword [esi + 0x30]
mov dword [esi + 0x48], eax
call edi
push 0x1001800
push dword [esi + 0x30]
mov dword [esi + 0x4c], eax
call edi
push 0x1001818
push dword [esi + 0x30]
mov dword [esi + 0x50], eax
call edi
mov dword [esi + 0x54], eax
mov eax, dword [esi + 0x30]
cmp eax, ebx
je 0x1005803
cmp dword [esi + 0x38], ebx
je 0x10057f5
cmp dword [esi + 0x4c], ebx
je 0x10057f5
cmp dword [esi + 0x3c], ebx
je 0x10057f5
xor edi, edi
jmp 0x1005806
cmp eax, ebx
je 0x1005803
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi + 0x30], ebx
xor edi, edi
inc edi
mov dword [esi + 0x2c], 1
jmp 0x1005819
xor eax, eax
cmp dword [esi + 0x30], ebx
sete al
mov edi, eax
cmp dword [ebp - 0x18], ebx
jbe 0x1005829
mov ecx, dword [ebp - 0x14]
dec dword [ebp - 0x18]
call fcn.010134fb
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.010053fb
mov eax, edi
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x1005846
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, 0x1013794
call fcn.01013660
sub esp, 0xc
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x100586b
xor eax, eax
cmp dword [esi + 0x5c], ebx
sete al
jmp 0x100596f
push edi
lea eax, [esi + 4]
push eax
lea ecx, [ebp - 0x18]
call fcn.010053df
push dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
inc dword [ebp - 0x18]
mov dword [ebp - 4], ebx
call fcn.010134e6
cmp dword [esi + 0x58], ebx
jne 0x1005946
push 0x1001830
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [esi + 0x5c], eax
je 0x1005903
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1001848
push eax
call edi
push 0x1001858
push dword [esi + 0x5c]
mov dword [esi + 0x60], eax
call edi
push 0x1001868
push dword [esi + 0x5c]
mov dword [esi + 0x64], eax
call edi
push 0x1001878
push dword [esi + 0x5c]
mov dword [esi + 0x68], eax
call edi
push 0x100188c
push dword [esi + 0x5c]
mov dword [esi + 0x6c], eax
call edi
push 0x10018a4
push dword [esi + 0x5c]
mov dword [esi + 0x70], eax
call edi
push 0x10018bc
push dword [esi + 0x5c]
mov dword [esi + 0x74], eax
call edi
mov dword [esi + 0x78], eax
mov eax, dword [esi + 0x5c]
cmp eax, ebx
je 0x100593a
cmp dword [esi + 0x60], ebx
je 0x100592c
cmp dword [esi + 0x68], ebx
je 0x100592c
cmp dword [esi + 0x6c], ebx
je 0x100592c
cmp dword [esi + 0x70], ebx
je 0x100592c
cmp dword [esi + 0x74], ebx
je 0x100592c
cmp dword [esi + 0x78], ebx
je 0x100592c
xor edi, edi
jmp 0x100593d
cmp eax, ebx
je 0x100593a
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi + 0x5c], ebx
xor edi, edi
inc edi
mov dword [esi + 0x58], 1
jmp 0x1005950
xor eax, eax
cmp dword [esi + 0x5c], ebx
sete al
mov edi, eax
cmp dword [ebp - 0x18], ebx
jbe 0x1005960
mov ecx, dword [ebp - 0x14]
dec dword [ebp - 0x18]
call fcn.010134fb
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.010053fb
mov eax, edi
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x1005a9a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push 0x10019a8
push SysReAllocString
mov dword [ebp - 4], 0x80004005
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x1005b52
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 4
pop ebx
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push esi
push 0x1001984
push dword [ebp - 0x10]
mov dword [ebp - 8], ebx
call edi
mov esi, eax
xor eax, eax
cmp esi, eax
jne 0x1005b33
cmp dword [ebp - 0xc], eax
je 0x1005b33
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push eax
push 0x1001968
push dword [ebp - 0x10]
mov dword [ebp - 8], ebx
call edi
mov esi, eax
test esi, esi
jne 0x1005b24
cmp dword [ebp - 0xc], eax
jne 0x1005b3f
mov eax, dword [ebp + 8]
and dword [ebp - 4], 0
mov dword [eax], 2
jmp 0x1005b3f
mov ecx, dword [ebp + 8]
mov dword [ecx], 1
mov dword [ebp - 4], eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], 0
pop edi
pop ebx
je 0x1005b63
test esi, esi
jle 0x1005b60
and esi, 0xffff
or esi, 0x80070000
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop esi
leave
ret 4

Function at 0x1005b96
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
lea eax, [ebp - 4]
push eax
push 0x2001f
xor edi, edi
push edi
push 0x10019a8
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
cmp esi, edi
jne 0x1005c1e
mov eax, dword [ebp + 8]
dec eax
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
je 0x1005be1
dec eax
push 1
pop ecx
je 0x1005bde
dec eax
dec eax
je 0x1005bdb
push 0x57
pop esi
jmp 0x1005c15
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], ecx
push 4
lea eax, [ebp - 8]
push eax
push 4
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x1001984
push dword [ebp - 4]
call edi
mov esi, eax
test esi, esi
jne 0x1005c15
push 4
lea eax, [ebp - 0xc]
push eax
push 4
push esi
push 0x1001968
push dword [ebp - 4]
call edi
mov esi, eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jle 0x1005c2e
and esi, 0xffff
or esi, 0x80070000
pop edi
mov eax, esi
pop esi
leave
ret 4
Function at 0x1005c80
Capabilities:
Contain obfuscated stackstrings
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x434
mov eax, dword [0x10171b0]
push esi
push 0xf0000000
xor esi, esi
push 0x18
push esi
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x42c]
push eax
mov dword [ebp - 0x434], 0x20
mov dword [ebp - 0x42c], esi
mov dword [ebp - 0x428], esi
mov byte [ebp - 0x24], 0xbc
mov byte [ebp - 0x23], 0xe3
mov byte [ebp - 0x22], 0xcc
mov byte [ebp - 0x21], 0x19
mov byte [ebp - 0x20], 0xa0
mov byte [ebp - 0x1f], 0x35
mov byte [ebp - 0x1e], 0x3a
mov byte [ebp - 0x1d], 0x53
mov byte [ebp - 0x1c], 0x68
mov byte [ebp - 0x1b], 0x10
mov byte [ebp - 0x1a], 0xcb
mov byte [ebp - 0x19], 0x9b
mov byte [ebp - 0x18], 0xc5
mov byte [ebp - 0x17], 0xd3
mov byte [ebp - 0x16], 0xc9
mov byte [ebp - 0x15], 0xfe
mov byte [ebp - 0x14], 0xf
mov byte [ebp - 0x13], 0xae
mov byte [ebp - 0x12], 0xce
mov byte [ebp - 0x11], 0x56
mov byte [ebp - 0x10], 8
mov byte [ebp - 0xf], 0xf1
mov byte [ebp - 0xe], 0x77
mov byte [ebp - 0xd], 0xb2
mov byte [ebp - 0xc], 0xc9
mov byte [ebp - 0xb], 0x8d
mov byte [ebp - 0xa], 0xf9
mov byte [ebp - 9], 0x69
mov byte [ebp - 8], 0x55
mov byte [ebp - 7], 0xe2
mov byte [ebp - 6], 0x46
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x1005e2f
push ebx
push edi
lea eax, [ebp - 0x428]
push eax
push esi
push esi
push 0x800c
push dword [ebp - 0x42c]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x1005d6b
xor edi, edi
jmp 0x1005e1e
mov edi, dword [sym.imp.ADVAPI32.dll_CryptHashData]
push esi
push 0x1f
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x428]
call edi
test eax, eax
jne 0x1005d8b
xor edi, edi
jmp 0x1005e12
push 0x1001a20
push dword [ebp + 8]
mov dword [ebp - 0x430], esi
call dword [sym.imp.msvcrt.dll__wfopen]
mov ebx, eax
cmp ebx, esi
pop ecx
pop ecx
je 0x1005df2
push ebx
push 0x400
lea eax, [ebp - 0x424]
push 1
push eax
call dword [sym.imp.msvcrt.dll_fread]
add esp, 0x10
cmp eax, esi
jbe 0x1005dea
add dword [ebp - 0x430], eax
push esi
push eax
lea eax, [ebp - 0x424]
push eax
push dword [ebp - 0x428]
call edi
test eax, eax
je 0x1005e3c
cmp dword [ebp - 0x430], 0x4000
jb 0x1005da7
push ebx
call dword [sym.imp.msvcrt.dll_fclose]
pop ecx
push esi
lea eax, [ebp - 0x434]
push eax
push dword [ebp + 0xc]
push 2
push dword [ebp - 0x428]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
xor edi, edi
test eax, eax
je 0x1005e12
inc edi
push dword [ebp - 0x428]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push esi
push dword [ebp - 0x42c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, edi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
pop esi
call fcn.0101207f
leave
ret 8
push dword [ebp - 0x428]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push esi
push dword [ebp - 0x42c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push ebx
call dword [sym.imp.msvcrt.dll_fclose]
pop ecx
xor eax, eax
jmp 0x1005e2d