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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x100424af
pop dword [ebp - 0x1c]
mov eax, 0xf2d2fd55
add eax, 0x1d31275a
sub dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], 0x3f34fcdc
sub dword [ebp - 0x2c], 0xf0e2b791
mov dword [ebp - 0x28], 0x7a59ec7b
add dword [ebp - 0x28], 0xb7d95fca
mov dword [ebp - 0x24], 0xf5a86c24
add dword [ebp - 0x24], 0x56a3d80a
mov dword [ebp - 0x20], 0xa63ef773
sub dword [ebp - 0x20], 0xa63ef773
lea eax, [ebp - 0x2c]
push eax
mov eax, 0xd17cd7dd
add eax, 0x3e8b9857
add eax, dword [ebp - 0x1c]
call dword [eax]
mov dword [ebp - 0x2c], 0x982fa96e
add dword [ebp - 0x2c], 0xdc42bfe8
mov dword [ebp - 0x28], 0x1ca3a78b
sub dword [ebp - 0x28], 0xdb374616
mov dword [ebp - 0x24], 0x951ef47e
add dword [ebp - 0x24], 0xce5077ee
mov dword [ebp - 0x20], 0x4e563c8b
sub dword [ebp - 0x20], 0x4e563c8b
lea ebx, [ebp - 0x2c]
push ebx
push eax
mov eax, 0x40942779
sub eax, 0x308bb755
add eax, dword [ebp - 0x1c]
call dword [eax]
push 0x40
push 0x1000
push 0x3ef4a
push 0
call eax
mov ecx, 0x4dad
xor ebx, ebx
add ebx, eax
mov edi, 0x94cf2937
add edi, 0x7b3c66c9
add edi, dword [ebp - 0x1c]
mov edx, 0x6c2f3eae
xor dword [ebp - 0x18], 0x89e09d22
mov esi, dword [edi]
mov dword [ebp - 0x18], 0xf4ed9534
sub esi, edx
mov dword [ebx], esi
sub dword [ebp - 8], edx
add ebx, 0x56664ce0
sub ebx, 0x56664cdc
add edi, 0x8bbb6b8e
sub edi, 0x8bbb6b8a
loop 0x100425c7
add eax, 0x2499a2e2
add eax, 0xdb6786a5
mov ebx, eax
add eax, 0x6625bebd
sub eax, 0x6625beb8
mov ecx, 0x72ee8d6a
add ecx, 0x9d117296
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret
Function at 0x4011b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x14
push ebx
push ebp
push esi
push edi
push 0xc
lea eax, [esp + 0x1c]
mov dword [esp + 0x24], 0
push eax
push dword [esp + 0x30]
xorps xmm0, xmm0
movq qword [esp + 0x24], xmm0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call sub.KERNEL32.dll_K32GetModuleInformation
mov ecx, dword [esp + 0x18]
xor esi, esi
mov eax, dword [ecx + 0x3c]
mov edi, dword [eax + ecx + 0x78]
mov eax, dword [edi + ecx + 0x1c]
add edi, ecx
add eax, ecx
mov dword [esp + 0x14], eax
mov ebp, dword [edi + 0x20]
mov eax, dword [edi + 0x24]
add ebp, ecx
add eax, ecx
mov dword [esp + 0x10], eax
cmp dword [edi + 0x18], esi
jbe 0x40124b
mov ebx, dword [esp + 0x2c]
nop
mov eax, dword [ebp + esi*4]
add eax, ecx
push ebx
push eax
call fcn.004047ab
add esp, 8
test eax, eax
je 0x401230
inc esi
cmp esi, dword [edi + 0x18]
jae 0x40124b
mov ecx, dword [esp + 0x18]
jmp 0x401210
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
pop edi
movzx eax, word [eax + esi*2]
pop esi
pop ebp
pop ebx
mov eax, dword [ecx + eax*4]
add eax, dword [esp + 8]
add esp, 0x14
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret

Function at 0x401540
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub esp, 0x154
movaps xmm0, xmmword [0x41a2a0]
movups xmmword [esp + 4], xmm0
push str.Enter_ID:
movaps xmm0, xmmword [0x41a2f0]
movups xmmword [esp + 0x18], xmm0
mov dword [esp + 0x148], 0x54520021
movaps xmm0, xmmword [0x41a2c0]
movups xmmword [esp + 0x28], xmm0
mov dword [esp + 0x14c], 0x4d203a4f
movaps xmm0, xmmword [0x41a370]
movups xmmword [esp + 0x38], xmm0
mov dword [esp + 0x150], 0x65446c61
movaps xmm0, xmmword [0x41a290]
movups xmmword [esp + 0x48], xmm0
mov word [esp + 0x154], 0x76
movaps xmm0, xmmword [0x41a360]
movups xmmword [esp + 0x58], xmm0
movaps xmm0, xmmword [0x41a2b0]
movups xmmword [esp + 0x68], xmm0
movaps xmm0, xmmword [0x41a2d0]
movups xmmword [esp + 0x78], xmm0
movaps xmm0, xmmword [0x41a330]
movups xmmword [esp + 0x88], xmm0
movaps xmm0, xmmword [0x41a340]
movups xmmword [esp + 0x98], xmm0
movaps xmm0, xmmword [0x41a280]
movups xmmword [esp + 0xa8], xmm0
movaps xmm0, xmmword [0x41a300]
movups xmmword [esp + 0xb8], xmm0
movaps xmm0, xmmword [str.YZAXAYAZH]
movups xmmword [esp + 0xc8], xmm0
movaps xmm0, xmmword [str.XAYZ_H]
movups xmmword [esp + 0xd8], xmm0
movaps xmm0, xmmword [0x41a350]
movups xmmword [esp + 0xe8], xmm0
movaps xmm0, xmmword [0x41a3a0]
movups xmmword [esp + 0xf8], xmm0
movaps xmm0, xmmword [0x41a380]
movups xmmword [esp + 0x108], xmm0
movaps xmm0, xmmword [0x41a310]
movups xmmword [esp + 0x118], xmm0
movaps xmm0, xmmword [0x41a2e0]
movups xmmword [esp + 0x128], xmm0
movaps xmm0, xmmword [0x41a320]
movups xmmword [esp + 0x138], xmm0
call fcn.004016e0
lea eax, [esp + 4]
push eax
push 0x41a270
call fcn.00401710
push 0x14e
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x14]
call fcn.00401260
xor eax, eax
add esp, 0x16c
ret
Function at 0x401e05
Capabilities:
Parse pe header

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

Function at 0x40d759
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41c8d8
push 0x41c8d0
push str.FlsAlloc
push 0x1f
call fcn.0040d618
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40d78d
push dword [ebp + 8]
mov ecx, esi
call dword [0x41a134]
call esi
jmp 0x40d793
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40d7d7
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41c8e8
push 0x41c8e0
push str.FlsGetValue
push 0x21
call fcn.0040d618
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40d80e
push dword [ebp + 8]
mov ecx, esi
call dword [0x41a134]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x40d816
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41c8f0
push 0x41c8e8
push str.FlsSetValue
push 0x22
call fcn.0040d618
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40d850
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x41a134]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x4108ad
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x41094a
push ebx
push esi
call fcn.00410876
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0041080a
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4108f7
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x410949
push edi
push eax
call fcn.0040d43a
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x410917
call fcn.0040d400
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x410948
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041080a
add esp, 0x20
test eax, eax
jne 0x410936
push edi
call fcn.0040d400
jmp 0x41093e
push ebx
call fcn.0040d400
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x416417
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
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 + 0x421ff0]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x416457
cmp byte [ebx], 0xa
jne 0x416457
or byte [edi + eax + 0x28], 4
jmp 0x41645c
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x41655b
mov dl, byte [eax]
cmp dl, 0x1a
je 0x41653e
inc eax
cmp dl, 0xd
je 0x416488
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x4164ae
cmp eax, ecx
jae 0x4164bc
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x416470
jmp 0x41655b
push 0
lea eax, [ebp - 0x10]
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 0x416539
cmp dword [ebp - 0x10], 0
je 0x416539
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x421ff0]
test byte [eax + edi + 0x28], 0x48
je 0x416513
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4164fe
mov byte [esi], dl
jmp 0x41650f
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x421ff0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x41655b
cmp byte [ebp - 1], 0xa
jne 0x416522
cmp esi, ebx
jne 0x416522
mov byte [esi], 0xa
jmp 0x41655a
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00416387
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x41655b
mov byte [esi], 0xd
jmp 0x41655a
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x421ff0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x416558
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41655b
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x416564
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x421ff0]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4165aa
cmp word [ebx], dx
jne 0x4165aa
or byte [eax + edi + 0x28], 4
jmp 0x4165af
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x416712
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x4166f2
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x4165f0
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x416626
cmp eax, edx
jae 0x416634
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
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 - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x4165cb
jmp 0x416712
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4166ed
cmp dword [ebp - 0x18], 0
je 0x4166ed
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x421ff0]
test byte [eax + edi + 0x28], 0x48
je 0x4166c3
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x416687
mov word [esi], cx
jmp 0x4166be
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x421ff0]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x421ff0]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x421ff0]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x416712
pop eax
cmp word [ebp - 4], ax
jne 0x4166d3
cmp esi, ebx
jne 0x4166d3
mov word [esi], ax
jmp 0x41670f
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00416387
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x416712
push 0xd
pop eax
jmp 0x4166ce
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x421ff0]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x41670c
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x416712
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4190b0
Capabilities:
Parse pe header

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
pushal
call 0x1000367f
pop dword [ebp - 0x18]
mov eax, 0x1000367f
sub dword [ebp - 0x18], eax
push 0x40
push 0x1000
push 0x38bb8
push 0
mov eax, 0x8d540685
add eax, 0x82ac4983
add eax, dword [ebp - 0x18]
call dword [eax]
mov ecx, 0xd4ad9934
sub ecx, 0xd4ad4852
xor ebx, ebx
add ebx, eax
mov esi, 0x1ae28edd
add esi, 0xf51de523
add esi, dword [ebp - 0x18]
mov edi, 0x4bb1ac98
xor dword [ebp - 0x14], 0xc60ce4fe
mov edx, dword [esi]
sub dword [ebp - 4], 0x23035e15
sub edx, edi
add dword [ebp - 0xc], edi
mov dword [ebx], edx
add dword [ebp - 8], edi
add ebx, 0x7dcb5e8
sub ebx, 0x7dcb5e4
add esi, 0x2bd628b9
sub esi, 0x2bd628b5
loop 0x100036d5
add eax, 0x3e413aaf
sub eax, 0x3e400454
mov ebx, eax
add eax, 5
mov ecx, 0xf20c7458
sub ecx, 0xe20c7458
add ecx, dword [ebp - 0x18]
call ebx
leave
ret

Function at 0x10003ae0
Capabilities:
Enumerate pe sections

Disassembly:
push esi
mov esi, dword [esp + 0xc]
mov ecx, dword [esi + 4]
sub ecx, 1
js 0x10003b0b
mov eax, dword [esi + 8]
lea edx, [eax + ecx*4]
mov eax, dword [edx]
movzx eax, word [eax + 6]
cmp eax, 4
je 0x10003b1e
cmp eax, 0xd
je 0x10003b1e
sub edx, 4
sub ecx, 1
jns 0x10003af3
mov eax, dword [esi]
sub eax, 1
je 0x10003b2c
sub eax, 2
je 0x10003b25
mov eax, 2
pop esi
ret
mov eax, 1
pop esi
ret
mov edx, 0x100040e0
jmp 0x10003b31
mov edx, 0x10004020
mov ecx, dword [esp + 8]
mov eax, dword [esp + 0x18]
sub edx, eax
sub edx, 0xa
mov dword [ecx + 1], eax
mov eax, dword [esp + 0x10]
mov byte [ecx], 0xb8
mov byte [ecx + 5], 0xe9
mov dword [ecx + 6], edx
mov dword [ecx + 0x10], eax
mov eax, dword [esp + 0x14]
mov dword [ecx + 0xc], esi
mov dword [ecx + 0x14], eax
xor eax, eax
pop esi
ret
Function at 0x401434
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x401443
pop dword [ebp - 0x40]
mov eax, 0xa2ef1e0
add eax, 0xf6112263
sub dword [ebp - 0x40], eax
mov dword [ebp - 0x50], 0x7258c04b
add dword [ebp - 0x50], 0xdbf98500
mov dword [ebp - 0x4c], 0x9231e4d9
add dword [ebp - 0x4c], 0xa001676c
mov dword [ebp - 0x48], 0xde2342b2
add dword [ebp - 0x48], 0x6e29017c
mov dword [ebp - 0x44], 0x9ca12293
add dword [ebp - 0x44], 0x635edd6d
lea eax, [ebp - 0x50]
push eax
mov eax, 0x4ef4ad19
add eax, 0xb14bd3eb
add eax, dword [ebp - 0x40]
call dword [eax]
mov dword [ebp - 0x50], 0xb1020c78
sub dword [ebp - 0x50], 0x3c8fa322
mov dword [ebp - 0x4c], 0x8301428
add dword [ebp - 0x4c], 0x393c4d4d
mov dword [ebp - 0x48], 0xb545bf35
add dword [ebp - 0x48], 0xae29ad37
mov dword [ebp - 0x44], 0x2301e469
add dword [ebp - 0x44], 0xdcfe1b97
lea ebx, [ebp - 0x50]
push ebx
push eax
mov eax, 0x59b500d0
sub eax, 0x59747fd0
add eax, dword [ebp - 0x40]
call dword [eax]
push 0x40
push 0x1000
push 0x342a2
push 0
call eax
mov ecx, 0x1dbcaba2
sub ecx, 0x1dbc7423
mov edx, eax
mov ebx, 0x46e400
add ebx, dword [ebp - 0x40]
mov esi, 0x1619e34c
add esi, 0x4633e27b
sub dword [ebp - 0xc], 0x57c7d7a5
mov edi, dword [ebx]
add dword [ebp - 0x34], edi
sub edi, esi
xor dword [ebp - 0x18], 0x44f04698
mov dword [edx], edi
sub dword [ebp - 0xc], edx
add edx, 0x39c36623
sub edx, 0x39c3661f
add ebx, 0x3709a39e
add ebx, 0xc8f65c66
loop 0x40155f
add eax, 0xd6bce7e
add eax, 0xf2950251
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x2e7771b0
add ecx, 0xd1c88e50
add ecx, dword [ebp - 0x40]
call ebx
leave
ret

Function at 0x402c93
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x42a2f0]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x402d27
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov edi, 0x105
jmp 0x402ce4
cmp dword [ebp + 0x10], ebx
jne 0x402d1b
lea eax, [ebp - 0x210]
push ebx
push eax
push dword [ebp - 4]
call fcn.00401434
test eax, eax
jne 0x402cf6
lea eax, [ebp - 0x210]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x402ccb
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 3
call fcn.004065ec
cmp eax, ebx
je 0x402d2e
push ebx
push dword [0x42a2f0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402d27
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
cmp dword [0x42a2f0], ebx
jne 0x402d24
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x402d24
jmp 0x402d27
Function at 0x403894
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x47e020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x40392c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40390c
xor eax, eax
push ebp
push 0x403905
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403964
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40390c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x47e020]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x47e020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404a14
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x480050], 0
je 0x404a75
cmp word [0x48032c], 0xd7b2
jne 0x404a3d
cmp dword [0x480334], 0
jbe 0x404a3d
mov eax, 0x480328
call dword [0x480344]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x404aa0
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x47e02c], 0
jne 0x404a91
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404bf4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x47e030], 0
je 0x404c1a
mov edx, esi
mov eax, ebx
call dword [0x47e030]
jmp 0x404c29
mov eax, 8
call fcn.00402f9c
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x480051], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404bbc
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x408a60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x482b2c
push 0xa
push 0x408af4
mov eax, dword [0x482b1c]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x408a84
call fcn.004105c4
push ebx
mov eax, dword [0x482b1c]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x408a9b
call fcn.004105c4
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x408aad
call fcn.004105c4
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x482b30], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x482b34], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x482b38], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x482b3c], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x482b40], ecx
add edx, dword [eax + 0x14]
mov dword [0x482b44], edx
pop esi
pop ebx
ret

Function at 0x40a114
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x40a1bd
test eax, edx
je 0x40a1c0
push 0
push 0
cmp word [eax - 0xa], 2
je 0x40a13d
push edx
mov edx, eax
mov eax, esp
call fcn.004055d4
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x40a153
push eax
lea eax, [esp + 8]
call fcn.004055d4
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x40a162
movzx eax, word [eax]
sub eax, ecx
jmp 0x40a189
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x40a1a3
add ecx, 4
js 0x40a17a
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x40a1a0
push eax
mov eax, ecx
mov edx, 2
call fcn.00404c94
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x40a187
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x40a189
xor eax, eax
ret
test eax, eax
je 0x40a1d0
test edx, edx
jne 0x40a124
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x40e0d8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x40e111
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.0040553c
jmp 0x40e11a
mov eax, ebx
mov edx, esi
call fcn.00405400
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40e124
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x40e146
movzx eax, word [esp]
jmp 0x40e148
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret