joyce8/EMBER2024-capa huggingface dataset:
Function at 0xaa6058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00aa61a8
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 0xaa607e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xaa606a
add dl, dl
jne 0xaa6089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xaa60dc
xor eax, eax
add dl, dl
jne 0xaa6096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xaa617d
add dl, dl
jne 0xaa60a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xaa60b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xaa60bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xaa60c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xaa60d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xaa6075
mov eax, 1
add dl, dl
jne 0xaa60ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xaa60f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xaa60e1
sub eax, ebx
mov ebx, 1
jne 0xaa6128
mov ecx, 1
add dl, dl
jne 0xaa610e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xaa6119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xaa6105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xaa6075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xaa613f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xaa614a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xaa6136
cmp eax, 0x7d00
jae 0xaa616d
cmp eax, 0x500
jb 0xaa6168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xaa6075
cmp eax, 0x7f
ja 0xaa6170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xaa6075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xaa619e
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 0xaa6075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x401770
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x404118
push 0x402a38
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x407758], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x407754], ecx
shl ecx, 8
add ecx, edx
mov dword [0x407750], ecx
shr eax, 0x10
mov dword [0x40774c], eax
call fcn.00402900
test eax, eax
jne 0x4017da
push 0x1c
call fcn.00401940
add esp, 4
mov dword [ebp - 4], 0
call fcn.00402700
call fcn.004026f0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x407d54], eax
call fcn.004020b0
mov dword [0x407734], eax
test eax, eax
je 0x40180d
mov eax, dword [0x407d54]
test eax, eax
jne 0x401817
push 0xffffffffffffffff
call fcn.00401a10
add esp, 4
call fcn.00401e00
call fcn.00401d10
call fcn.004019e0
mov esi, dword [0x407d54]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x4018f6
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x40185e
test al, al
je 0x40185e
and eax, 0xff
push eax
call fcn.00401cb0
add esp, 4
test eax, eax
je 0x401838
inc esi
mov dword [ebp - 0x64], esi
jmp 0x401838
cmp byte [esi], 0x22
jne 0x401867
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x401877
cmp al, 0x20
ja 0x401877
inc esi
mov dword [ebp - 0x64], esi
jmp 0x401867
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x401898
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x40189d
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x60], eax
push eax
call fcn.00401a10
jmp 0x4018db
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x401867
inc esi
mov dword [ebp - 0x64], esi
jmp 0x4018f6

Function at 0x401940
Capabilities:
Terminate process

Disassembly:
cmp dword [0x40773c], 1
jne 0x40194e
call fcn.00402b10
mov eax, dword [esp + 4]
push eax
call fcn.00402b50
add esp, 4
push 0xff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x100097b4
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
mov eax, dword [0x1003b2b4]
xor eax, esp
mov dword [esp + 0x218], eax
mov eax, dword [ebp + 8]
mov edx, 0x104
push ebx
push esi
push edi
push ecx
push ecx
xor edi, edi
mov dword [esp + 0x1c], eax
push ecx
lea ecx, [esp + 0x24]
mov dword [eax], edi
mov dword [eax + 4], edi
call fcn.10007cfb
push 0x100054e4
lea ecx, [esp + 0x1c]
call fcn.10007c51
lea eax, [esp + 0x18]
push eax
push edi
push 0x1f0003
call dword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenSemaphoreW]
mov esi, eax
test esi, esi
jne 0x10009834
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 2
je 0x1000985a
push ecx
mov ecx, dword [ebp + 4]
mov edx, 0xc9
call fcn.10008fe1
mov edi, eax
jmp 0x1000985a
lea edx, [esp + 0x10]
mov dword [esp + 0x10], edi
mov ecx, esi
call fcn.10009699
mov ebx, eax
test ebx, ebx
jns 0x10009860
push ebx
push ecx
mov ecx, dword [ebp + 4]
mov edx, 0xcf
call fcn.10008f95
mov edi, ebx
test esi, esi
je 0x10009874
jmp 0x1000986e
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
cdq
mov dword [ecx], eax
mov dword [ecx + 4], edx
push esi
call fcn.10009503
mov ecx, dword [esp + 0x224]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100342d0
mov esp, ebp
pop ebp
ret 8
Function at 0x1000eba0
Capabilities:
Inspect section memory permissions

Disassembly:
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x1000ebf2
mov edx, edi

Function at 0x1000ebb4
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x1000eb76
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x1000eb94
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x1000ebd9
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x1000ebe2
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x1000ebec
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x1000ebce
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x1000eb58
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x1000ec3f
dec eax
je 0x1000ec36
sub eax, 3
je 0x1000ec2d
mov dword [ebp - 4], 0x40
jmp 0x1000ec5c
mov dword [ebp - 4], 4
jmp 0x1000ec42
mov dword [ebp - 4], 0x20
jmp 0x1000ec42
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x1000ec8e
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x1000ec0e
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.1000e49f
test eax, 0xffb392db
jne 0x1000ec99
push 1
push esi
call edi
mov eax, esi
jmp 0x1000ec9a
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
rcr byte [edi + 0x5e], 0x5b
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000ebdf
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x1000eb76
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x1000eb94
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x1000ebd9
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x1000ebe2
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x1000ebec
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x1000ebce
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x1000eb58
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x1000ec3f
dec eax
je 0x1000ec36
sub eax, 3
je 0x1000ec2d
mov dword [ebp - 4], 0x40
jmp 0x1000ec5c
mov dword [ebp - 4], 4
jmp 0x1000ec42
mov dword [ebp - 4], 0x20
jmp 0x1000ec42
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x1000ec8e
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x1000ec0e
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.1000e49f
test eax, 0xffb392db
jne 0x1000ec99
push 1
push esi
call edi
mov eax, esi
jmp 0x1000ec9a
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
rcr byte [edi + 0x5e], 0x5b
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1000ed0e
Capabilities:
Contain obfuscated stackstrings

Disassembly:
test dword [ecx + 0x56fffffc], edi
mov byte [ebp - 0x346], 0x6d
mov byte [ebp - 0x345], 0x40
mov byte [ebp - 0x344], 0x44
mov byte [ebp - 0x343], 0x55
mov byte [ebp - 0x342], 0x25
lea eax, [ebp - 0x354]
push eax
call fcn.1000e4af
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.1000e464
add esp, 0xc
mov dword [ebp - 0x68c], eax
call dword [ebp - 0x68c]
mov dword [ebp - 0x674], eax
mov dword [ebp - 0x384], 4
and byte [ebp - 0x334], 0
push 0x40
pop ecx
xor eax, eax
invalid
invalid
invalid

Function at 0x1000f13f
Capabilities:
Contain obfuscated stackstrings

Disassembly:
invalid
jge 0x1000f123
invalid
add esp, 0xc
mov dword [ebp - 0x33c], eax
call fcn.1000e49f
push esi
inc ecx
jae 0x1000f12e
push 0x104
lea eax, [ebp - 0x334]
push eax
push dword [ebp + 8]
call dword [ebp - 0x538]
mov dword [ebp - 0x398], eax
mov byte [ebp - 0x544], 1
cmp dword [ebp - 0x398], 0
je 0x1000f193
cmp dword [ebp - 0x398], 0
je 0x1000f35d
cmp dword [ebp + 0xc], 1
je 0x1000f35d
cmp dword [ebp + 0xc], 8
jne 0x1000f325
invalid
movsd dword es:[edi], dword [esi]
dec eax
stc
invalid
invalid
Function at 0x1001729d
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
xor eax, eax
mov dword [ebp - 8], edx
push edi
mov edi, ecx
cmp word [edx], ax
jne 0x100172b8
mov eax, edi
jmp 0x1001733e
movzx eax, word [edi]
push ebx
push esi
test ax, ax
je 0x1001733a
mov esi, edi
mov ebx, edx
test ax, ax
je 0x1001731d
movzx eax, word [ebx]
test ax, ax
je 0x10017341
movzx ecx, word [esi]
sub ecx, eax
jne 0x1001731d
push esi
call dword [sym.imp.api_ms_win_core_string_l2_1_0.dll_CharNextW]
push ebx
mov dword [ebp - 4], eax
call dword [sym.imp.api_ms_win_core_string_l2_1_0.dll_CharNextW]
mov edx, dword [ebp - 4]
mov ecx, eax
mov eax, edx
sub ecx, ebx
sub eax, esi
xor ecx, eax
test ecx, 0xfffffffe
jne 0x1001731d
jmp 0x10017312
add esi, 2
add ebx, 2
movzx eax, word [ebx]
movzx ecx, word [esi]
sub ecx, eax
je 0x10017316
cmp esi, edx
jb 0x10017302
xor eax, eax
cmp word [esi], ax
jne 0x100172cb
xor edx, edx
cmp word [ebx], dx
je 0x10017341
push edi
call dword [sym.imp.api_ms_win_core_string_l2_1_0.dll_CharNextW]
mov edx, dword [ebp - 8]
mov edi, eax
movzx ecx, word [edi]
mov eax, ecx
test cx, cx
jne 0x100172c2
xor eax, eax
pop esi
pop ebx
pop edi
leave
ret
mov eax, edi
jmp 0x1001733c
Function at 0x100177b6
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x1003b2b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 4
pop eax
call fcn.10035090
mov eax, esp
lea ecx, [ebp - 0x28]
push 0x1c
push ecx
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_VirtualQuery]
test eax, eax
je 0x1001786d
mov esi, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetSystemInfo]
mov ebx, dword [ebp - 0x48]
lea eax, [esi + 0x2000]
mov edi, ebx
neg edi
and edi, dword [ebp - 8]
sub edi, ebx
mov dword [ebp - 8], eax
cmp edi, eax
jb 0x1001786d
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_VirtualQuery]
test eax, eax
je 0x1001786d
add esi, dword [ebp - 0x1c]
mov ecx, 0x1000
test dword [ebp - 0x18], ecx
je 0x10017813
test dword [ebp - 0x14], 0x100
mov esi, dword [ebp - 0x28]
je 0x10017842
xor eax, eax
inc eax
jmp 0x1001786f
cmp edi, esi
jb 0x1001786d
mov eax, dword [ebp - 8]
cmp esi, eax
jae 0x1001784f
mov esi, eax
push 4
push ecx
push ebx
push esi
call dword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_VirtualAlloc]
lea eax, [ebp - 0xc]
push eax
push 0x104
push ebx
push esi
call dword [sym.imp.api_ms_win_core_memory_l1_1_0.dll_VirtualProtect]
jmp 0x1001786f
xor eax, eax
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100342d0
leave
ret
Function at 0x100185b7
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x1c
mov eax, 0x10036129
call fcn.10034980
xor ebx, ebx
mov esi, ebx
mov dword [ebp - 0x18], esi
push 2
push ebx
push dword [ebp + 8]
mov dword [ebp - 4], ebx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], ebx
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x20], edi
test edi, edi
jne 0x10018606
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x10018749
movzx ebx, bx
or ebx, 0x80070000
jmp 0x10018749
push ebx
push 0x3ec
push dword [ebp + 0x10]
push edi
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_FindResourceExW]
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x1001863b
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
test ebx, ebx
jle 0x1001872e
movzx ebx, bx
or ebx, 0x80070000
jmp 0x1001872e
push eax
push edi
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadResource]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x1001861d
push dword [ebp - 0x14]
push edi
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_SizeofResource]
mov ecx, eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], ecx
mov edi, eax
cmp byte [ecx + eax], 0
je 0x100186b8
lea edi, [ecx + 1]
cmp edi, 0x400
ja 0x10018685
mov ecx, edi
call fcn.10017887
test al, al
je 0x10018685
mov eax, edi
call fcn.100350d0
mov edi, esp
jmp 0x10018693
push edi
lea ecx, [ebp - 0x18]
call fcn.100178f0
mov esi, dword [ebp - 0x18]
mov edi, eax
test edi, edi
jne 0x100186a1
mov ebx, 0x8007000e
jmp 0x1001872b
mov eax, dword [ebp - 0x14]
inc eax
push eax
push dword [ebp - 0x1c]
push edi
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0x14]
add esp, 0xc
mov byte [edi + eax], bl
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100186bd
sub ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0x1c], eax
add eax, eax
mov dword [ebp - 0x14], eax
cmp eax, 0x400
ja 0x100186ef
mov ecx, eax
call fcn.10017887
test al, al
mov eax, dword [ebp - 0x14]
je 0x100186ef
call fcn.100350d0
mov eax, esp
jmp 0x100186fb
push eax
lea ecx, [ebp - 0x18]
call fcn.100178f0
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1001871d
push dword [ebp - 0x1c]
xor ecx, ecx
push eax
push 0xffffffffffffffff
push edi
push ebx
push ebx
mov word [eax], cx
call dword [sym.imp.api_ms_win_core_string_l1_1_0.dll_MultiByteToWideChar]
neg eax
sbb ebx, ebx
and ebx, dword [ebp - 0x14]
push dword [ebp + 0x14]
lea ecx, [ebp - 0x28]
push ebx
call fcn.10018499
mov ebx, eax
mov edi, dword [ebp - 0x20]
push edi
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_FreeLibrary]
test esi, esi
je 0x10018749
mov edi, dword [esi]
push esi
mov esi, edi
call dword [sym.imp.msvcrt.dll_free]
pop ecx
test edi, edi
jne 0x10018739
mov eax, ebx
lea esp, [ebp - 0x38]
call fcn.10034932
ret 0x10
Function at 0x100242a9
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x1003b2b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x414], ebx
mov byte [ebp - 8], bl
or dword [esi], 0xffffffff
lea eax, [esi + 4]
push eax
push 0x10005edc
push 0x10005e54
lea eax, [ebp - 0x408]
mov dword [esi + 0x38], ebx
push 0x400
push eax
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov dword [esi + 0x48], ebx
call fcn.100241bb
add esp, 0x14
lea eax, [ebp - 0x414]
push eax
push 0x20019
push ebx
lea eax, [ebp - 0x408]
push eax
push 0x80000002
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExA]
test eax, eax
jne 0x10024418
push edi
push 4
pop edi
lea eax, [ebp - 0x410]
mov dword [ebp - 0x410], edi
push eax
lea eax, [ebp - 0x40c]
mov dword [ebp - 0x40c], ebx
push eax
push ebx
push ebx
push 0x10005ef8
push dword [ebp - 0x414]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExA]
test eax, eax
jne 0x10024369
cmp dword [ebp - 0x40c], eax
setne al
mov dword [esi + 0x38], eax
lea eax, [ebp - 0x410]
mov dword [ebp - 0x410], edi
push eax
lea eax, [ebp - 0x40c]
push eax
push ebx
push ebx
push 0x10005eb0
push dword [ebp - 0x414]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExA]
test eax, eax
jne 0x100243a0
cmp dword [ebp - 0x40c], eax
setne al
mov dword [esi + 0x3c], eax
lea eax, [ebp - 0x410]
mov dword [ebp - 0x410], edi
push eax
lea eax, [ebp - 0x40c]
push eax
push ebx
push ebx
push 0x10005f10
push dword [ebp - 0x414]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExA]
test eax, eax
jne 0x100243d7
cmp dword [ebp - 0x40c], eax
setne al
mov dword [esi + 0x40], eax
lea eax, [ebp - 0x410]
mov dword [ebp - 0x410], edi
push eax
lea eax, [ebp - 0x40c]
push eax
push ebx
push ebx
push 0x10005ec8
push dword [ebp - 0x414]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExA]
pop edi
test eax, eax
jne 0x1002440c
mov eax, dword [ebp - 0x40c]
mov dword [esi + 0x48], eax
push dword [ebp - 0x414]
call dword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
cmp dword [esi + 0x38], ebx
jne 0x10024427
cmp dword [esi + 0x3c], ebx
jne 0x10024427
cmp dword [esi + 0x40], ebx
je 0x1002442a
xor ebx, ebx
inc ebx
mov ecx, dword [ebp - 4]
mov dword [esi + 0x44], ebx
xor ecx, ebp
pop esi
pop ebx
call fcn.100342d0
leave
ret
Function at 0x1002446e
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28c
mov eax, dword [0x1003b2b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push esi
push edi
mov dword [ebp - 0x28c], eax
mov ebx, ecx
mov eax, dword [ebp + 0x18]
push 0x201
mov dword [ebp - 0x288], eax
lea eax, [ebp - 0x274]
push 0
push eax
call sub.msvcrt.dll_memset
push 0x51
lea eax, [ebp - 0x70]
push 0
push eax
call sub.msvcrt.dll_memset
mov esi, dword [ebp + 8]
lea edi, [ebp - 0x1c]
xor eax, eax
add esp, 0x18
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosb byte es:[edi], al
cmp esi, 0x10000
je 0x10024507
cmp esi, 0x100000
je 0x10024500
cmp esi, 0x1000000
je 0x100244f9
cmp esi, 0x10000000
je 0x100244f2
mov edi, 0x10005e7c
jmp 0x1002450c
mov edi, 0x10005e5c
jmp 0x1002450c
mov edi, 0x10005e64
jmp 0x1002450c
mov edi, 0x10005e6c
jmp 0x1002450c
mov edi, 0x10005e74
lea eax, [ebp - 0x284]
push eax
call dword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetLocalTime]
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentThreadId]
push eax
movzx eax, word [ebp - 0x276]
push eax
movzx eax, word [ebp - 0x278]
push eax
movzx eax, word [ebp - 0x27a]
push eax
movzx eax, word [ebp - 0x27c]
push eax
push edi
lea eax, [ebp - 0x70]
mov edi, 0x200
push eax
lea eax, [ebx + 4]
push eax
push 0x10005e84
lea eax, [ebp - 0x274]
push edi
push eax
call fcn.100241bb
lea ecx, [ebp - 0x274]
add esp, 0x30
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10024570
push dword [ebp - 0x288]
sub ecx, edx
lea eax, [ebp - 0x274]
push dword [ebp - 0x28c]
sub edi, ecx
add eax, ecx
push edi
push eax
call dword [sym.imp.msvcrt.dll_sprintf_s]
add esp, 0xc
lea ecx, [ebp - 0x274]
call fcn.10024135
xor edi, edi
cmp dword [ebx + 0x38], edi
je 0x100245b9
lea eax, [ebp - 0x274]
push eax
call dword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_OutputDebugStringA]
cmp dword [ebx + 0x3c], edi
jne 0x100245c3
cmp dword [ebx + 0x40], edi
je 0x100245db
cmp dword [ebx], 0xffffffff
je 0x100245db
lea eax, [ebp - 0x274]
or esi, 1
push eax
push esi
push dword [ebx]
call dword [sym.imp.rtutils.dll_TracePutsExA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100342d0
leave
ret 0x14

Function at 0x10031064
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, edi
push esi
mov esi, ecx
lea ecx, [esi + 0x10]
call fcn.1000eba0
mov ecx, esi
pop esi
jmp fcn.1000eba0
Function at 0x10034a30
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x10034a6e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x10034a66
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x10034a70
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x10034a56
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x10034b50
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10034b7f
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10034b7f
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x408ecc
nop
nop
mov ecx, 0x29a4404e
nop
nop
nop
nop
test eax, eax
je 0x43004e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x430024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x79cb7ffe
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219