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

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
push edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0x4c6060]
mov edi, eax
add esp, 4
test edi, edi
jne 0x475db7
pop edi
pop esi
pop ecx
ret
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
push ebx
mov ebx, dword [esp + 0x1c]
mov dword [edi + 8], eax
push ebp
cmp ebx, dword [esi + 0x10]
jbe 0x475dff
mov eax, dword [esi]
push ecx
call eax
mov eax, dword [esi + 4]
push ebx
push dword [esp + 0x24]
push dword [edi + 4]
call eax
mov ebp, dword [edi + 8]
push dword [edi + 4]
add ebp, dword [esi + 0xc]
mov eax, dword [esi + 8]
push ebp
call eax
mov ebx, dword [esi + 0x14]
add esp, 0x18
mov dword [esp + 0x20], ebx
jmp 0x475e03
mov ebp, dword [esp + 0x1c]
push dword [edi + 4]
mov eax, dword [esi]
call eax
push dword [edi + 8]
mov eax, dword [esi]
call eax
mov eax, dword [esp + 0x28]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x475e65
mov dword [esp + 0x10], eax
mov ebx, eax
movzx eax, byte [ebp]
xor al, 0x36
mov byte [esp + 0x18], al
lea eax, [esp + 0x18]
push 1
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
movzx eax, byte [ebp]
lea ebp, [ebp + 1]
xor al, 0x5c
mov byte [esp + 0x24], al
lea eax, [esp + 0x24]
push 1
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
call eax
add esp, 0x18
sub ebx, 1
jne 0x475e24
mov ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0x10]
jae 0x475e97
nop word [eax + eax]
mov eax, dword [esi + 4]
push 1
push 0x4ad0fe
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x4ad0ff
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x475e70
pop ebp
pop ebx
mov eax, edi
pop edi
pop esi
pop ecx
ret

Function at 0x49076d
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004905e3
Function at 0x413200
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.EYZtqSKO
lea edi, [esi - 0xc000]
push edi
or ebp, 0xffffffff
jmp 0x413222
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x413229
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x413218
mov eax, 1
add ebx, ebx
jne 0x41323b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x413230
jne 0x41324c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x413230
xor ecx, ecx
sub eax, 3
jb 0x413260
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4132d2
mov ebp, eax
add ebx, ebx
jne 0x41326b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x413278
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41329c
inc ecx
add ebx, ebx
jne 0x413288
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41327d
jne 0x413299
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41327d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4132bc
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4132ad
jmp 0x41321e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4132bc
add edi, ecx
jmp 0x41321e
pop esi
lea edi, [esi + 0x11000]
mov eax, dword [edi]
or eax, eax
je 0x41331b
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x130b0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1311c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4132d9
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x13124]
or eax, eax
je 0x413315
mov dword [ebx], eax
add ebx, 4
jmp 0x4132f6
call dword [esi + 0x13120]
mov ebp, dword [esi + 0x13128]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x41334f
sub esp, 0xffffff80
jmp section.WZqkObwJ

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

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x408ecc
mov ecx, 0x400004f9
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..rsrc
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x389b7d44
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x401e40
Capabilities:
Terminate process

Disassembly:
inc ebp
or eax, 0xb2d158b
or eax, dword [eax]
mov ecx, dword [ebp - 0x14]
cmp edx, ecx
jae 0x401de1
cmp eax, dword [0x40d0f1]
psadbw mm2, qword [edx]
invalid
mov edx, dword [ecx]
adc al, 0xd0
inc eax
add dl, dh
scasb al, byte es:[edi]
je 0x401e05
push eax
mov eax, dword [0x904040c8]
add eax, 0x40
push 0x40b480
push eax
call dword [0x6400f80]
add esp, 0xc
jmp 0x401e13
push str...done_n
call dword [0xd440c164]
add esp, 4
mov eax, dword [0x410283]
test eax, eax
je 0x401e28
call fcn.00403200
pop edi
movsb byte es:[edi], byte [esi]
pop ebx
mov esp, ebp
pop ebp
ret
push 0
call 0xef20ac
add esp, 4
pop edi
push cs
pop ebx
mov esp, ebp
pop ebp
ret
push ebp
mov ebp, esp
jl 0x401dc6
js 0x401e9d
mov esi, dword [ebp + 0xc]
push esi
lea eax, [ebp - 0x78]
push 0x78
push eax
push esi
call fcn.0040b5e0
mov ecx, dword [ebp - 0x1a]
jns 0x401e7a
enter 0x40c0, 0
push eax
push ecx
add edx, 0x40
push 0x2240d4c2
aaa
call dword [0x92d580]
mov eax, dword [0x4102ac]
add esp, 0x14
test eax, eax
je 0x401e8c
sal byte [edi + ecx + 0x50], 0x68
push esp
sar byte [ebp + edi*2 + 0x10641528], cl
inc eax
add byte [ebx - 0xa9f73c], al
adc eax, sym.imp.MSVCRT.dll_exit
push eax
push 0x7dbcd254
sub byte [0x401064], dl
add esp, 8
push esi
call dword [sym.imp.MSVCRT.dll_exit]
mov al, byte [0x9090e580]
nop
nop
enter 0x490, 0xffffffffffffff90
nop
nop
nop

Function at 0x40b5e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
add edi, eax
nop
dec ecx
jne 0x40b5b4
jmp 0x40b5f4
nop
push edx
nop
push edi
mov edx, dword [edx + 0x10]
jmp 0x40b607
mov eax, dword [edx + 0x3c]
add eax, edx
nop
jmp 0x40b61d
mov eax, dword [eax + 0x78]
nop
jmp 0x40b62d
test eax, eax
nop
jmp 0x40b63f
je 0x40b840
nop
add eax, edx
jmp 0x40b655
mov ecx, dword [eax + 0x18]
push eax
mov ebx, dword [eax + 0x20]
jmp 0x40b66b
add ebx, edx
jmp 0x40b678
nop
jmp 0x40b68a
test ecx, ecx
je 0x40b82d
nop
xor edi, edi
nop
dec ecx
jmp 0x40b6a2
mov esi, dword [ebx + ecx*4]
jmp 0x40b6b1
add esi, edx
nop
nop
jmp 0x40b6c5
xor eax, eax
nop
jmp 0x40b6d4
ror edi, 0xd
nop
lodsb al, byte [esi]
nop
add edi, eax
cmp al, ah
nop
jmp 0x40b6ee
jne 0x40b6b4
nop
jmp 0x40b6ff
add edi, dword [ebp - 8]
jmp 0x40b70e
cmp edi, dword [ebp + 0x24]
jmp 0x40b720
jne 0x40b678
jmp 0x40b737
nop
pop eax
nop
jmp 0x40b746
mov ebx, dword [eax + 0x24]
jmp 0x40b75d
add ebx, edx
nop
jmp 0x40b772
mov cx, word [ebx + ecx*2]
nop
jmp 0x40b78a
mov ebx, dword [eax + 0x1c]
nop
add ebx, edx
nop
jmp 0x40b7a1
mov eax, dword [ebx + ecx*4]
nop
add eax, edx
nop
jmp 0x40b7b8
mov dword [esp + 0x24], eax
jmp 0x40b7cf
pop ebx
pop ebx
jmp 0x40b7e4
popal
nop
pop ecx
nop
jmp 0x40b7f9
pop edx
nop
jmp 0x40b80a
push ecx
nop
jmp 0x40b81b
invalid
jmp eax
nop
jmp 0x40b83f
pop eax
nop
jmp 0x40b854
pop edi
nop
jmp 0x40b867
pop edx
nop
mov edx, dword [edx]
nop
invalid
invalid
add byte [eax], al
Function at 0x407010
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 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x408970
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0x4085d8
call fcn.0040898b
xor dword [edx], ecx
and eax, eax
add edx, 1
cmp edx, edi
jne fcn.00408970
ret
Function at 0x40138e
Capabilities:
Terminate process

Disassembly:
jmp 0x40e9c8
cmp dword [esp + 4], 0
mov edx, str.error_unpacking_archive
cmovne edx, dword [esp + 4]
cmp byte [edx], 0x40
lea eax, [edx + 1]
cmovne eax, edx
push eax
push 0x4258e0
push dword [ecx + 0x68]
call fcn.0040146a
add esp, 0xc
push 0xffffffffffffffff
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x401497
Capabilities:
Parse pe header

Disassembly:
jmp 0x41b004
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x41b044
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41b044
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41b044
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x41b044
cmp dword [ecx + 0x74], 0xe
jbe 0x41b044
cmp dword [ecx + 0xe8], 0
je 0x41b044
mov al, 1
ret
xor al, al
ret

Function at 0x40160e
Capabilities:
Terminate process

Disassembly:
jmp 0x419793
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x4197d1
push 0x4259e0
push dword [esp + 0xc]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov dword [esi], eax
pop ecx
pop ecx
test eax, eax
jne 0x4197d1
push dword [esp + 8]
mov eax, dword [esi + 0x30]
push str.Error:_Could_not_open_jar_file:__s_n
push dword [eax + 0x68]
call fcn.0040146a
add esp, 0xc
push 3
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
pop esi
ret 4
Function at 0x4017bc
Capabilities:
Terminate process
Write file on windows

Disassembly:
jmp 0x419d06
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, ecx
test esi, esi
jle 0x419d36
push ebx
mov ebx, dword [esp + 0x10]
push dword [edi]
push esi
push 1
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
test eax, eax
jle 0x419d3b
add dword [edi + 0x20], eax
sub esi, eax
add ebx, eax
test esi, esi
jg 0x419d17
pop ebx
pop edi
pop esi
ret 8
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
push dword [eax]
mov eax, dword [edi + 0x30]
push str.Error:_write_on_output_file_failed_err_d_n
push dword [eax + 0x68]
call fcn.0040146a
add esp, 0xc
push 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x401843
Capabilities:
Terminate process

Disassembly:
jmp 0x41a80b
push 0x14
push 0x4264b8
call fcn.004012c1
push 1
call fcn.004012bc
pop ecx
test al, al
je 0x41a723
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.004018b1
mov byte [ebp - 0x24], al
mov eax, dword [0x42878c]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x41a723
test eax, eax
jne 0x41a641
mov dword [0x42878c], ecx
push 0x41d618
push 0x41d30c
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm_e
pop ecx
pop ecx
test eax, eax
je 0x41a624
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x41a713
push 0x41d208
push section..rdata
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
pop ecx
pop ecx
mov dword [0x42878c], 2
jmp 0x41a646
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.0040114a
pop ecx
call fcn.00401415
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x41a677
push esi
call fcn.0040147e
pop ecx
test al, al
je 0x41a677
mov esi, dword [esi]
push edi
push 2
push edi
mov ecx, esi
call dword [section..00cfg]
call esi
call fcn.004015c8
mov esi, eax
cmp dword [esi], edi
je 0x41a695
push esi
call fcn.0040147e
pop ecx
test al, al
je 0x41a695
push dword [esi]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__register_thread_local_exe_atexit_callback
pop ecx
call sub.api_ms_win_crt_runtime_l1_1_0.dll___p___argv
mov edi, dword [eax]
call sub.api_ms_win_crt_runtime_l1_1_0.dll___p___argc
mov esi, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__get_initial_narrow_environment
push eax
push edi
push dword [esi]
call fcn.004016b3
add esp, 0xc
mov esi, eax
call fcn.00401497
test al, al
je 0x41a72a
test bl, bl
jne 0x41a6c8
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
push 0
push 1
call fcn.0040162c
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x41a713
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
push 7
call fcn.004016f9
push esi
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
push dword [ebp - 0x20]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__exit
int3
call fcn.004016db
jmp 0x41a5b7
Function at 0x40dd6b
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push str.UNPACK200_FLAGS
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], ebx
pop ecx
test eax, eax
je 0x40ddc2
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov edi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strtok]
mov dword [esp], 0x42473c
push eax
jmp 0x40ddb8
push 4
lea ecx, [ebp - 0xc]
call fcn.004014b5
push 0x42473c
push ebx
mov dword [eax], esi
call edi
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x40dda6
mov eax, dword [ebp - 8]
or edx, 0xffffffff
mov ebx, dword [ebp + 8]
shr eax, 2
inc eax
add eax, ebx
mov ecx, eax
shl ecx, 2
cmp eax, 0x1fffffff
cmova ecx, edx
push ecx
call fcn.0040141f
mov esi, eax
xor edx, edx
test dword [ebp - 8], 0xfffffffc
pop ecx
mov dword [ebp + 8], esi
jbe 0x40de0b
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx + edx*4]
mov dword [esi], ecx
add esi, 4
mov eax, dword [ebp - 8]
inc edx
shr eax, 2
cmp edx, eax
jl 0x40ddf5
xor edi, edi
inc edi
cmp ebx, edi
jle 0x40de29
mov eax, dword [ebp + 0xc]
push dword [eax + edi*4]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov dword [esi], eax
add esi, 4
inc edi
pop ecx
cmp edi, ebx
jl 0x40de12
and dword [esi], 0
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 8]
pop edi
shr edx, 2
cmp dword [ebp - 4], 0
pop esi
mov dword [ecx], edx
pop ebx
je 0x40de48
lea ecx, [ebp - 0xc]
call fcn.004015eb
mov eax, dword [ebp + 8]
leave
ret

Function at 0x418f4b
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x427db0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
push esi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
pop ecx
cmp eax, dword [ebp + 8]
jbe 0x418fb2
lea eax, [ebp - 0x108]
push esi
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strcpy
lea eax, [ebp - 0x108]
push 0x2f
push eax
call sub.VCRUNTIME140.dll_strrchr
add esp, 0x10
test eax, eax
je 0x418fb2
mov byte [eax], 0
lea eax, [ebp - 0x108]
push eax
push dword [ebp + 8]
call fcn.00401550
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__mkdir]
add esp, 0xc
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004014fb
leave
ret
Function at 0x4070d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xfc004b54
mov ecx, dword [ebp + 0xc]
push ebx
or al, 0x53
push esi
xor eax, edx
mov ebp, dword [ebx]
mov edx, dword [ecx - 0x18]
add dword [ebp - 0xc], 0xe10fc8b
lahf
jne 0x4070db
mov al, byte [eax]
hlt
Function at 0x538370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x53838e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0x561074
push ecx
mov edi, eax
call fcn.0054c198
mov esi, eax
add esp, 8
test esi, esi
jne 0x5383cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.0054c02e
push esi
call fcn.0054bfb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x53b850
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call edi
test eax, eax
jne 0x53b8ae
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0x566720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x53b8ba
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x1c]
push str.DefaultIcon
push ecx
call fcn.0054c1e1
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0x53b8ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x566720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x53b92a
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x218
ret
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.0054d082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x53b957
mov word [eax], si
add eax, 2
push eax
call fcn.0054d030
add esp, 4
jmp 0x53b959
xor eax, eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0x53b8ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x53b8b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0x53bff0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x53c080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x53c0c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x561458
push ecx
call fcn.0054c1e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.0054c1e1
add esp, 0x10
jmp 0x53c0d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.0054c20b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.0054bdff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.0053c050
mov eax, dword [0x566728]
xor esi, esi
add esp, 0x14
lea edx, [esp + 0x20]
cmp eax, esi
mov dword [esp + 8], 0x18
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], 0x40
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
jne 0x53c13b
push esi
call fcn.0053bfb0
add esp, 4
mov dword [0x566728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x53c14c
mov ecx, 1
mov edx, dword [esp + 0x458]
push esi
push esi
push 0x20
push ecx
mov ecx, dword [esp + 0x45c]
push ecx
push edx
lea ecx, [esp + 0x40]
push esi
push ecx
mov ecx, dword [esp + 0x468]
lea edx, [esp + 0x28]
or ecx, 0x100000
push edx
lea edx, [esp + 0x28]
push ecx
push edx
push eax
call fcn.0053bff0
mov ecx, dword [esp + 0x34]
add esp, 0x30
neg eax
sbb eax, eax
pop esi
not eax
and eax, ecx
add esp, 0x43c
ret

Function at 0x53f440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x53f4b7
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0x53f48e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x53f471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x53f47e
add edx, ecx
cmp ebx, edx
jb 0x53f48a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x53f467
xor ecx, ecx
jmp 0x53f4a2
test eax, eax
jne 0x53f492
xor ecx, ecx
jmp 0x53f4a2
mov ecx, dword [eax + 0x14]
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
sub ecx, esi
add ecx, ebx
add ecx, eax
mov edx, dword [esp + 0x18]
push edx
push 0
push 0
push ecx
push ecx
call fcn.0053f3c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x53f8f0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebx
mov eax, dword [esp + 8]
push ebp
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x53f921
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebp, eax
test ebp, ebp
jne 0x53f946
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0x53f96e
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x18]
mov dword [ecx], esi
mov dword [ecx + 4], eax
cmp word [esi], 0x5a4d
jne 0x53f993
push ecx
push esi
call fcn.0053f4c0
add esp, 8
mov bl, al
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
ret