joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1010f160
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
imul esi, ecx, 0x2c
push edi
add esi, dword [0x101adf90]
mov al, byte [esi + 0x14]
mov edi, dword [esi]
and al, 1
je 0x1010f17c
sub edi, 5
movzx eax, al
lea ebx, [eax*2 + 5]
lea eax, [ebp - 4]
push eax
push 0x40
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1010f1a4
pop edi
pop esi
mov eax, 0xa
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [edi], 0xe9
mov eax, dword [esi + 4]
sub eax, edi
sub eax, 5
mov dword [edi + 1], eax
test byte [esi + 0x14], 1
je 0x1010f1bf
mov eax, dword [esi]
mov word [eax], 0xf9eb
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
or byte [esi + 0x14], 6
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1010f1f0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [0x101adf98]
push ebx
push esi
xor ebx, ebx
xor esi, esi
mov dword [ebp - 4], ebx
test ecx, ecx
je 0x1010f2cd
mov eax, dword [0x101adf90]
add eax, 0x14
test byte [eax], 2
je 0x1010f22a
inc esi
add eax, 0x2c
cmp esi, ecx
jb 0x1010f215
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, 0xffffffff
je 0x1010f2cd
push edi
push 1
or edx, 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.1010efc0
mov ecx, dword [0x101adf98]
add esp, 4
cmp esi, ecx
jae 0x1010f27b
imul edi, esi, 0x2c
mov eax, dword [0x101adf90]
test byte [edi + eax + 0x14], 2
jne 0x1010f270
mov ecx, esi
call fcn.1010f160
mov ebx, eax
test ebx, ebx
jne 0x1010f278
mov ecx, dword [0x101adf98]
inc esi
add edi, 0x2c
cmp esi, ecx
jb 0x1010f251
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x1010f2cc
xor esi, esi
cmp dword [ebp - 8], esi
jbe 0x1010f2bd
mov ebx, eax
jmp 0x1010f290
push dword [ebx + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0x1010f2b1
push edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [ebp - 8]
jb 0x1010f290
mov ebx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
push eax
push 0
push dword [0x101aca94]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10129bd1
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10129891

Function at 0x430f40
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x22000]
push edi
jmp 0x430f5a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x430f61
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x430f50
mov eax, 1
add ebx, ebx
jne 0x430f73
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x430f68
jne 0x430f84
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x430f68
xor ecx, ecx
sub eax, 3
jb 0x430f98
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x43100a
mov ebp, eax
add ebx, ebx
jne 0x430fa3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x430fb0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x430fd4
inc ecx
add ebx, ebx
jne 0x430fc0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x430fb5
jne 0x430fd1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x430fb5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x430ff4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x430fe5
jmp 0x430f56
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x430ff4
add edi, ecx
jmp 0x430f56
pop esi
mov edi, esi
mov ecx, 0x35f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x431012
cmp byte [edi], 6
jne 0x431012
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x431017
lea edi, [esi + 0x2e000]
mov eax, dword [edi]
or eax, eax
je 0x43108f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x31fcc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x32008]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x431044
mov ecx, edi
jns 0x431073
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x32010]
or eax, eax
je 0x431089
mov dword [ebx], eax
add ebx, 4
jmp 0x431061
call dword [esi + 0x3200c]
mov ebp, dword [esi + 0x32014]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1d7]
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 0x4310c3
sub esp, 0xffffff80
jmp 0x403670
Function at 0x401000
Capabilities:
Hash data with md5

Disassembly:
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x401b01
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x74
mov eax, dword [0x4a0d38]
xor eax, esp
mov dword [esp + 0x70], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor esi, esi
push esi
push 0x80
push 3
push esi
push 1
push SysReAllocString
push eax
mov dword [esp + 0x38], ecx
mov byte [esp + 0x2b], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
je 0x401bd3
lea eax, [esp + 0x20]
call fcn.00401000
mov ebx, 0xa000
push ebx
call fcn.0044a56c
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
pop ecx
push esi
lea ecx, [esp + 0x14]
push ecx
push ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], esi
push eax
jmp 0x401b9e
mov eax, dword [esp + 0x10]
test eax, eax
je 0x401baa
push dword [esp + 0x14]
lea esi, [esp + 0x24]
call fcn.00401030
and dword [esp + 0x14], 0
pop ecx
push 0
lea eax, [esp + 0x14]
push eax
push ebx
push dword [esp + 0x20]
push dword [esp + 0x28]
call edi
test eax, eax
jne 0x401b77
jmp 0x401baf
mov byte [esp + 0xf], 1
push dword [esp + 0x14]
call fcn.0044ba70
mov ebx, dword [esp + 0x20]
push 0x10
lea ecx, [esp + 0x28]
call fcn.004010e0
pop ecx
pop ecx
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x7c]
mov al, byte [esp + 0xf]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0044a7da
mov esp, ebp
pop ebp
ret

Function at 0x401cc9
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
and dword [ebp - 0x10], 0
push esi
push edi
lea eax, [ebp - 0x10]
push eax
mov esi, 0x493ce0
push esi
mov byte [ebp - 1], 0
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
jne 0x401cf6
xor al, al
jmp 0x401d7b
push edi
call fcn.0044c2ad
pop ecx
mov dword [ebp - 0xc], eax
test eax, eax
je 0x401d4b
push eax
push edi
push 0
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x401d4b
and dword [ebp - 0x14], 0
and dword [ebp - 8], 0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
push 0x488ae0
push dword [ebp - 0xc]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x401d4b
mov esi, dword [ebp - 8]
push 0xd
pop ecx
lea edi, [ebp - 0x48]
rep movsd dword es:[edi], dword [esi]
cmp dword [ebp - 0x48], 0xfeef04bd
sete byte [ebp - 1]
push dword [ebp - 0xc]
call fcn.0044c187
cmp byte [ebp - 1], 0
pop ecx
je 0x401cef
mov eax, dword [ebp - 0x40]
shr eax, 0x10
mov dword [ebx], eax
movzx eax, word [ebp - 0x40]
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x3c]
shr eax, 0x10
mov dword [ebx + 8], eax
movzx eax, word [ebp - 0x3c]
mov dword [ebx + 0xc], eax
mov al, 1
pop edi
pop esi
leave
ret
Function at 0x4021cc
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4a0d38]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 1
push esi
call fcn.00401dc5
pop ecx
pop ecx
test al, al
je 0x4021f5
mov al, 1
jmp 0x402378
mov edx, esi
lea ecx, [ebp - 0x20]
call fcn.00401f00
cmp dword [ebp - 0x10], 2
jae 0x402218
push 0
push 1
lea ecx, [ebp - 0x20]
call fcn.0040363d
xor al, al
jmp 0x402378
mov eax, dword [ebp - 0x20]
push 8
pop esi
cmp dword [ebp - 0xc], esi
jae 0x402226
lea eax, [ebp - 0x20]
push edi
push 0x5c
pop edi
cmp word [eax], di
jne 0x402244
mov eax, dword [ebp - 0x20]
cmp dword [ebp - 0xc], esi
jae 0x40223a
lea eax, [ebp - 0x20]
cmp word [eax + 2], di
jne 0x402244
push 2
jmp 0x4022ab
mov eax, dword [ebp - 0x20]
cmp dword [ebp - 0xc], esi
jae 0x40224f
lea eax, [ebp - 0x20]
push 2
add eax, 2
push 0x488aec
push eax
call fcn.0044b9d2
add esp, 0xc
test eax, eax
jne 0x4022ae
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x20]
cmp ecx, esi
jae 0x402273
lea eax, [ebp - 0x20]
cmp word [eax], 0x61
jb 0x402289
mov eax, dword [ebp - 0x20]
cmp ecx, esi
jae 0x402283
lea eax, [ebp - 0x20]
cmp word [eax], 0x7a
jbe 0x4022a9
mov eax, dword [ebp - 0x20]
cmp ecx, esi
jae 0x402293
lea eax, [ebp - 0x20]
cmp word [eax], 0x41
jb 0x4022ae
mov eax, dword [ebp - 0x20]
cmp ecx, esi
jae 0x4022a3
lea eax, [ebp - 0x20]
cmp word [eax], 0x5a
ja 0x4022ae
push 3
pop eax
jmp 0x4022b0
xor eax, eax
push ebx
push 1
push eax
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x24], edi
call fcn.0040286d
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0xffffffff
je 0x402337
mov dword [ebp - 0x24], 0x5c
cmp dword [ebp - 0xc], 8
mov eax, dword [ebp - 0x20]
jae 0x4022e9
lea eax, [ebp - 0x20]
xor ecx, ecx
mov word [eax + esi*2], cx
cmp dword [ebp - 0xc], 8
mov eax, dword [ebp - 0x20]
jae 0x4022fb
lea eax, [ebp - 0x20]
push 0
push eax
call edi
test eax, eax
jne 0x40230d
call ebx
cmp eax, 0xb7
jne 0x402368
cmp dword [ebp - 0xc], 8
mov eax, dword [ebp - 0x20]
jae 0x402319
lea eax, [ebp - 0x20]
push 0x5c
pop ecx
mov word [eax + esi*2], cx
push 1
inc esi
push esi
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x20]
call fcn.0040286d
mov esi, eax
cmp esi, 0xffffffff
jne 0x4022dd
cmp dword [ebp - 0xc], 8
mov eax, dword [ebp - 0x20]
jae 0x402343
lea eax, [ebp - 0x20]
xor esi, esi
push esi
push eax
call edi
test eax, eax
jne 0x402359
call ebx
cmp eax, 0xb7
je 0x402359
push esi
jmp 0x40236a
push esi
push 1
lea ecx, [ebp - 0x20]
call fcn.0040363d
mov al, 1
jmp 0x402376
push 0
push 1
lea ecx, [ebp - 0x20]
call fcn.0040363d
xor al, al
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0044a7da
leave
ret
Function at 0x402385
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
mov eax, dword [0x4a0d38]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push edi
lea ecx, [ebp - 0x254]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x402456
mov ecx, 0x488af4
lea eax, [ebp - 0x228]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4023e6
test dx, dx
je 0x4023e2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4023e6
add eax, 4
add ecx, 4
test dx, dx
jne 0x4023c0
xor eax, eax
jmp 0x4023eb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x402439
mov ecx, 0x488af8
lea eax, [ebp - 0x228]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x402420
test dx, dx
je 0x40241c
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x402420
add eax, 4
add ecx, 4
test dx, dx
jne 0x4023fa
xor eax, eax
jmp 0x402425
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x402439
mov eax, dword [ebx]
lea ecx, [ebp - 0x254]
push ecx
push eax
push ebx
call fcn.004029f1
lea eax, [ebp - 0x254]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4023b5
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0044a7da
leave
ret

Function at 0x402663
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4026a5
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 4], eax
cmp eax, 0x6400000
jb 0x4026ac
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
add eax, 0xa
push eax
call fcn.0044a56c
mov esi, eax
pop ecx
cmp esi, ebx
je 0x40269e
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
mov byte [esi + eax], bl
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x4026e5
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
mov eax, esi
jmp 0x4026a7

Function at 0x4026e9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x402742
mov eax, dword [ebp + 0x10]
test eax, eax
jg 0x402726
mov eax, dword [ebp + 0xc]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40271d
sub eax, edx
push 0
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x402744
xor al, al
pop esi
leave
ret
Function at 0x4038c1
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 4], ebx
je 0x4038d5
xor eax, eax
jmp 0x403933
mov eax, dword [ebp + 8]
push edi
mov dword [esi + 0xc], eax
xor eax, eax
lea edi, [ebp - 4]
stosd dword es:[edi], eax
mov eax, dword [esi + 0x10]
mov dword [ebp - 4], eax
lea eax, [esi + 8]
push eax
push ebx
lea eax, [ebp - 8]
push eax
push 0x403951
push ebx
push ebx
mov dword [ebp - 8], esi
call fcn.0044fcb6
add esp, 0x18
xor edi, edi
mov dword [esi + 4], eax
cmp eax, ebx
je 0x40391f
cmp dword [ebp - 4], ebx
je 0x40391c
push 0xffffffffffffffff
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor edi, edi
inc edi
cmp dword [ebp - 4], ebx
je 0x403930
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x10], ebx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40399c
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [esi + 4]
test eax, eax
je 0x4039cf
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4039c2
push 0
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi + 4], 0
pop ebp
ret 4
Function at 0x403aed
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x834
mov eax, 0x47504e
call fcn.0044b825
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 0x14]
mov ebx, dword [ebp + 8]
lea edx, [ebp - 0x838]
push edx
push 1
xor esi, esi
push esi
push ecx
mov dword [ebp - 0x834], esi
push eax
mov dword [ebp - 0x840], edi
mov dword [ebp - 0x838], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
xor eax, eax
cmp dword [ebp - 0x838], esi
jne 0x403b4a
mov dword [ebx + 0x14], 7
mov dword [ebx + 0x10], esi
mov word [ebx], ax
jmp 0x403c7a
push 0x7fe
mov word [ebp - 0x810], ax
lea eax, [ebp - 0x80e]
push esi
push eax
mov dword [ebp - 0x830], esi
call fcn.0044bcb0
xor eax, eax
add esp, 0xc
mov dword [ebp - 0x818], 7
mov dword [ebp - 0x81c], esi
mov word [ebp - 0x82c], ax
lea eax, [ebp - 0x834]
push eax
push esi
lea eax, [ebp - 0x83c]
push eax
push esi
mov dword [ebp - 4], esi
push edi
push dword [ebp - 0x838]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x83c], esi
mov dword [ebp - 0x834], esi
call edi
test eax, eax
jne 0x403c30
cmp dword [ebp - 0x83c], 1
je 0x403bd2
cmp dword [ebp - 0x83c], 2
je 0x403bd2
cmp dword [ebp - 0x83c], 7
jne 0x403c30
cmp dword [ebp - 0x834], 0x800
jae 0x403be6
lea eax, [ebp - 0x810]
jmp 0x403bf2
push dword [ebp - 0x834]
call fcn.0044a56c
pop ecx
mov dword [ebp - 0x830], eax
lea eax, [ebp - 0x834]
push eax
push dword [ebp - 0x830]
lea eax, [ebp - 0x83c]
push eax
push esi
push dword [ebp - 0x840]
push dword [ebp - 0x838]
call edi
test eax, eax
jne 0x403c30
push dword [ebp - 0x830]
lea ecx, [ebp - 0x82c]
call fcn.004032e2
push dword [ebp - 0x838]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x830], esi
je 0x403c5e
lea eax, [ebp - 0x810]
cmp dword [ebp - 0x830], eax
je 0x403c5e
push dword [ebp - 0x830]
call fcn.0044a602
pop ecx
lea eax, [ebp - 0x82c]
push eax
mov ecx, ebx
call fcn.004033d0
push esi
push 1
lea ecx, [ebp - 0x82c]
call fcn.0040363d
mov eax, ebx
call fcn.0044b8a8
ret

Function at 0x403c82
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
mov esi, eax
lea eax, [ebp - 4]
push eax
push 1
xor edi, edi
push edi
push dword [ebp + 8]
mov dword [ebp - 4], edi
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [ebp - 4], edi
jne 0x403caf
mov eax, esi
jmp 0x403d06
lea eax, [ebp - 0xc]
push eax
push edi
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp + 0xc]
mov dword [ebp - 0x10], esi
push dword [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
call esi
test eax, eax
jne 0x403cfa
push 4
pop eax
cmp dword [ebp - 8], eax
je 0x403ce2
cmp dword [ebp - 8], 5
jne 0x403cfa
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
pop edi
pop esi
leave
ret
Function at 0x403d28
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
lea eax, [ebp - 8]
push eax
push 1
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 8], ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [ebp - 8], ebx
jne 0x403d50
xor al, al
jmp 0x403dae
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0xc]
push eax
push ebx
lea eax, [ebp - 0x10]
push eax
push ebx
push dword [ebp + 0x10]
mov byte [ebp - 1], bl
push dword [ebp - 8]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
call esi
test eax, eax
jne 0x403da1
push dword [ebp - 0xc]
call fcn.0044a56c
pop ecx
mov ecx, dword [ebp - 0xc]
mov dword [edi], eax
mov eax, dword [ebp + 0x14]
push eax
mov dword [eax], ecx
push dword [edi]
lea eax, [ebp - 0x10]
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp - 8]
call esi
test eax, eax
jne 0x403da1
mov byte [ebp - 1], 1
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 1]
pop esi
pop ebx
leave
ret

Function at 0x4041bd
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
lea eax, [ebp - 4]
push eax
push 2
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, 2
jne 0x4041ef
push dword [ebp + 0xc]
lea esi, [ebp - 4]
push dword [ebp + 8]
call fcn.00404382
pop ecx
pop ecx
cmp dword [ebp - 4], 0
jne 0x4041f9
xor al, al
jmp 0x404222
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
leave
ret

Function at 0x404424
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
lea eax, [ebp - 4]
push eax
push 1
xor esi, esi
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [ebp - 4], esi
jne 0x40444c
xor al, al
jmp 0x40447c
push edi
lea eax, [ebp - 8]
push eax
push esi
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0x10]
mov dword [ebp - 0xc], esi
push dword [ebp - 4]
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp edi, esi
sete al
pop edi
pop esi
leave
ret

Function at 0x4045bf
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 2
push 0
push dword [ebp + 8]
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp dword [ebp - 4], 0
je 0x404605
push esi
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
leave
ret
xor al, al
leave
ret
Function at 0x40a69d
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
and dword [ebp - 0xc], 0
cmp dword [eax + 0x24], 0
push esi
mov esi, dword [eax + 4]
push edi
mov edi, dword [eax + 0x14]
jle 0x40a71f
mov ecx, dword [eax + 0x20]
and dword [ebp - 8], 0
test ecx, ecx
jle 0x40a714
mov al, byte [esi]
mov dl, byte [edi + 1]
mov cl, byte [edi]
mov byte [ebp - 3], al
mov al, byte [esi + 1]
sub cl, byte [ebp - 3]
mov byte [ebp - 2], al
mov al, byte [esi + 2]
sub dl, byte [ebp - 2]
mov byte [ebp - 1], al
mov al, byte [edi + 2]
sub al, byte [ebp - 1]
movzx edx, dl
movzx eax, al
movzx ecx, cl
add eax, edx
add eax, ecx
cdq
push 3
pop ecx
idiv ecx
or cl, 0xff
add esi, 4
add edi, 4
sub cl, al
mov eax, dword [ebp + 8]
inc dword [ebp - 8]
mov byte [esi - 1], cl
mov ecx, dword [eax + 0x20]
cmp dword [ebp - 8], ecx
jl 0x40a6c3
inc dword [ebp - 0xc]
mov edx, dword [ebp - 0xc]
cmp edx, dword [eax + 0x24]
jl 0x40a6bb
pop edi
pop esi
leave
ret 4

Function at 0x40b5d1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 0xc]
push esi
push edi
push dword [ebp + 0x10]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x40b61e
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x40b61e
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x40b61e
mov edx, edi
pop edi
mov ecx, eax
pop esi
pop ebp
jmp fcn.0040b44b
pop edi
xor eax, eax
pop esi
pop ebp
ret