joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412c85
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
mov eax, 0x42b620
call fcn.00429110
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], esi
mov dword [esi + 4], ebx
mov dword [esi], 0x42e11c
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x3c], ebx
lea ecx, [esi + 0x48]
mov byte [ebp - 4], 2
mov byte [esi + 0x45], bl
call fcn.004026e1
lea ecx, [esi + 0x54]
mov byte [ebp - 4], 3
call fcn.004026e1
lea ecx, [esi + 0x64]
mov byte [ebp - 4], 4
mov byte [esi + 0x60], bl
call fcn.004026e1
lea ecx, [esi + 0x70]
mov byte [ebp - 4], 5
call fcn.004026e1
lea eax, [esi + 0x80]
mov byte [esi + 0x7c], 1
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
lea ecx, [esi + 0x8c]
mov byte [ebp - 4], 7
call fcn.004026e1
mov ecx, dword [ebp - 0xc]
mov dword [esi], 0x42e0e0
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x413151
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags

Disassembly:
mov eax, 0x42b716
call fcn.00429110
push ecx
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x10], esi
mov dword [esi + 4], edi
mov dword [esi], 0x42e11c
lea ecx, [esi + 0xc]
mov dword [ebp - 4], edi
mov dword [esi + 8], edi
call fcn.004026e1
lea ecx, [esi + 0x18]
mov byte [ebp - 4], 1
call fcn.004026e1
lea ecx, [esi + 0x24]
mov byte [ebp - 4], 2
call fcn.004026e1
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi], 0x42e18c
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x4131b3
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x42b749
call fcn.00429110
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0x30]
mov dword [ebp - 4], 3
call fcn.00401b4f
push dword [esi + 0x24]
call fcn.004021bf
push dword [esi + 0x18]
call fcn.004021bf
push dword [esi + 0xc]
call fcn.004021bf
mov ecx, dword [ebp - 0xc]
add esp, 0xc
mov dword [esi], 0x42e154
mov dword fs:[0], ecx
pop esi
leave
ret
Function at 0x41463c
Capabilities:
Get file system object information

Disassembly:
mov eax, 0x42b9c8
call fcn.00429110
sub esp, 0x320
push ebx
mov dword [ebp - 0x1c], ecx
push esi
push edi
lea ecx, [ebp - 0x28]
call fcn.004026e1
mov esi, dword [ebp + 0x10]
and dword [ebp - 4], 0
cmp byte [esi], 0
je 0x4146a9
push dword [esi + 0xc]
lea ecx, [ebp - 0x40]
push dword [esi + 8]
call fcn.004144f8
push eax
mov edx, 0xdb0
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 1
call fcn.00414598
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.00402884
push dword [ebp - 0x58]
call fcn.004021bf
push dword [ebp - 0x40]
and byte [ebp - 4], 0
call fcn.004021bf
pop ecx
pop ecx
lea edi, [esi + 0x18]
mov ecx, edi
call fcn.00402b79
lea ebx, [eax + 1]
lea eax, [ebp - 0x4c]
push ebx
push eax
mov ecx, edi
call fcn.00408dfb
mov eax, dword [edi]
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 3
lea eax, [eax + ebx*2]
push eax
call fcn.00402724
mov ebx, dword [ebp - 0x1c]
lea eax, [ebp - 0x4c]
push eax
mov ecx, ebx
mov byte [ebp - 4], 4
call fcn.004145de
lea eax, [ebp - 0x34]
mov ecx, ebx
push eax
call fcn.004145de
lea eax, [ebp - 0x4c]
lea ecx, [ebp - 0x18]
push eax
call fcn.004027b4
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 5
call fcn.004029f6
lea eax, [ebp - 0x34]
lea ecx, [ebp - 0x18]
push eax
call fcn.00402a69
lea ecx, [ebp - 0x18]
call fcn.004029f6
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x18]
push eax
call fcn.00402a69
lea ecx, [ebp - 0x18]
call fcn.004029f6
cmp byte [esi + 1], 0
je 0x414785
mov edx, 0x3f4
lea ecx, [ebp - 0x40]
call fcn.00405980
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 6
call fcn.00402a69
push dword [ebp - 0x40]
mov byte [ebp - 4], 5
call fcn.004021bf
lea ecx, [ebp - 0x18]
mov dword [esp], 0x42e254
call fcn.00402aa5
push 0
lea edx, [ebp - 0x78]
lea ecx, [esi + 0x10]
call fcn.00405934
lea eax, [ebp - 0x78]
lea ecx, [ebp - 0x18]
push eax
call fcn.00402aa5
push dword [ebp + 8]
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push dword [ebx + 4]
call esi
push dword [ebp - 0x18]
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov edi, dword [edi]
push 0x110
lea eax, [ebp - 0x32c]
push 0x2b4
push eax
push 0x80
push edi
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x4147dc
push dword [ebp + 0xc]
push dword [ebx + 4]
call esi
push 0
push dword [ebp - 0x32c]
push 0x170
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push dword [ebp - 0x18]
call fcn.004021bf
push dword [ebp - 0x34]
call fcn.004021bf
push dword [ebp - 0x4c]
call fcn.004021bf
push dword [ebp - 0x28]
call fcn.004021bf
mov ecx, dword [ebp - 0xc]
add esp, 0x10
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4149b3
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Get ntdll base address

Disassembly:
mov eax, 0x42ba00
call fcn.00429110
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
or eax, 0xffffffff
mov dword [ebp - 0x10], esi
mov dword [esi + 8], eax
mov dword [esi + 0x10], ebx
mov dword [esi + 0x18], eax
mov dword [esi + 0x20], ebx
mov dword [esi + 0x28], eax
mov dword [esi + 0x30], eax
lea ecx, [esi + 0x38]
mov byte [esi], bl
mov byte [esi + 1], bl
mov byte [esi + 2], 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x14], ebx
mov dword [esi + 0x1c], eax
mov dword [esi + 0x24], ebx
mov dword [esi + 0x2c], eax
mov dword [esi + 0x34], eax
call fcn.004026e1
lea ecx, [esi + 0x44]
mov dword [ebp - 4], ebx
call fcn.004026e1
lea ecx, [esi + 0x50]
mov byte [ebp - 4], 1
call fcn.004026e1
mov byte [esi + 0x5c], bl
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x68], ebx
lea ecx, [esi + 0x6c]
mov byte [ebp - 4], 3
call fcn.00414a49
lea ecx, [esi + 0x9c]
call fcn.00427eb0
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x416486
Capabilities:
Hide graphical window

Disassembly:
mov eax, 0x42bcb0
call fcn.00429110
sub esp, 0x44
push ebx
push esi
push edi
mov esi, ecx
push 0
call fcn.00415055
push 1
mov ecx, esi
call fcn.004159d4
mov edx, 0x198
lea ecx, [ebp - 0x20]
call fcn.00411886
mov eax, dword [eax]
lea edi, [esi + 4]
push eax
push 2
push dword [edi]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
push dword [ebp - 0x20]
call fcn.004021bf
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
pop ecx
push 2
push dword [edi]
call ebx
push 1
push 1
push 0xf4
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
push 0x1bc
push dword [edi]
call ebx
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x1be
push dword [edi]
call ebx
xor ebx, ebx
push ebx
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x38]
lea ecx, [ebp - 0x50]
call fcn.0041661c
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], ebx
call fcn.0041661c
lea eax, [esi + 0x204]
mov dword [ebp - 4], 1
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x1cc], ebx
lea ebx, [esi + 0x1d4]
push ebx
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 2
setne byte [ebp - 0xd]
call fcn.0041664d
add ebx, 0x18
lea ecx, [ebp - 0x38]
push ebx
call fcn.0041664d
push dword [ebp - 0x14]
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor ebx, ebx
cmp dword [ebp - 0x40], ebx
je 0x4165a0
cmp dword [ebp - 0x4c], ebx
mov byte [esi + 0x223], 1
jne 0x416596
push 0x42e37c
lea ecx, [ebp - 0x50]
call fcn.00402982
push 0x10
push dword [ebp - 0x50]
push dword [ebp - 0x44]
jmp 0x4165cb
cmp byte [ebp - 0xd], 0
jne 0x4165e1
cmp dword [ebp - 0x28], ebx
mov byte [esi + 0x223], 1
je 0x4165fa
cmp dword [ebp - 0x34], ebx
jne 0x4165c4
push 0x42e37c
lea ecx, [ebp - 0x38]
call fcn.00402982
push ebx
push dword [ebp - 0x38]
push dword [ebp - 0x2c]
mov eax, esi
neg eax
sbb eax, eax
and eax, edi
push dword [eax]
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp byte [ebp - 0xd], 0
je 0x4165fa
cmp byte [esi + 0x156], 0
jne 0x4165fa
mov ecx, esi
mov byte [esi + 0x155], 1
call fcn.00416a24
jmp 0x416603
push ebx
push dword [edi]
call dword [sym.imp.USER32.dll_EndDialog]
lea ecx, [ebp - 0x50]
call fcn.00414ef3
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov al, 1
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x4171e3
Capabilities:
Get file system object information

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
push edx
push ecx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
ret 0xc
Function at 0x422170
Capabilities:
Check os version
Get common file path

Disassembly:
sub esp, 0x3e4
push ebp
lea eax, [esp + 4]
push esi
push eax
mov dword [esp + 0xc], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x42219e
cmp dword [esp + 0xc], 6
jne 0x42219e
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4221c8
push str.SetDefaultDllDirectories
push 0x42d71c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4221c8
push 0xc00
call eax
test eax, eax
jne 0x42227e
lea ecx, [esp + 0x11c]
push 0x106
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x42227e
cmp eax, 0x104
ja 0x42227e
lea edx, [esp + 0x11c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebp, eax
cmp word [esp + ebp*2 + 0x11a], 0x5c
je 0x422214
mov word [esp + ebp*2 + 0x11c], 0x5c
inc ebp
mov esi, dword [str.UXTHEME]
cmp byte [esi], 0
je 0x42227e
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
mov al, byte [esi]
xor cx, cx
inc esi
mov cl, al
test al, al
mov word [esp + ebp*2 + 0x124], cx
je 0x42225a
lea ecx, [esp + ebp*2 + 0x126]
mov al, byte [esi]
xor dx, dx
mov dl, al
inc esi
mov word [ecx], dx
add ecx, 2
test al, al
jne 0x422248
lea eax, [esp + 0x124]
push str..dll
push eax
call edi
lea ecx, [esp + 0x124]
push 8
push 0
push ecx
call ebx
cmp byte [esi], 0
jne 0x42222d
pop edi
pop ebx
pop esi
pop ebp
add esp, 0x3e4
ret
Function at 0x425a82
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
mov eax, 1
push edi
mov dword [esi + 0x30], eax
mov dword [esi + 0x44], eax
or eax, 0xffffffff
xor edi, edi
mov dword [esi + 0x90], eax
mov dword [esi + 0x94], eax
mov eax, dword [esi + 4]
mov dword [esi + 0x78], edi
mov dword [esi + 0x68], edi
cmp eax, 0x20
mov dword [esi + 0x7c], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x70], edi
mov dword [esi + 0x88], edi
mov dword [esi + 0x6c], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
mov dword [esi + 0x50], edi
mov dword [esi + 0x60], edi
mov dword [esi + 0x64], edi
mov dword [esi + 0x80], edi
mov dword [esi + 0x84], edi
jbe 0x425aeb
mov eax, 0x20
mov ecx, dword [esi + 0x20]
mov dword [esi + 0x54], eax
mov eax, dword [esi]
mov dword [esi + 0x58], edi
cmp eax, ecx
je 0x425b2c
lea ebx, [esi + 0xc8]
mov ebp, 0x20
cmp dword [ebx + 8], edi
je 0x425b11
mov ecx, ebx
call fcn.00425770
add ebx, 0x28
dec ebp
jne 0x425b05
mov edx, dword [esi + 0x5c]
cmp edx, edi
je 0x425b27
mov ecx, dword [esi + 0x14]
call dword [ecx + 4]
mov dword [esi + 0x5c], edi
mov ecx, dword [esi]
mov dword [esi + 0x20], ecx
mov edx, dword [esi + 0x10]
lea ecx, [esi + 0x98]
call fcn.004256a0
mov eax, dword [esi + 0x58]
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
lea edx, [eax + eax*4 + 0x19]
inc eax
mov dword [esi + 0x58], eax
lea ebp, [esi + edx*8]
mov ecx, ebp
call fcn.00425bd0
mov ebx, eax
cmp ebx, edi
jne 0x425b8f
lea ecx, [ebp + 0x20]
call fcn.00427d50
mov ebx, eax
cmp ebx, edi
jne 0x425b8f
lea ecx, [ebp + 0x1c]
call fcn.00427d50
mov ebx, eax
cmp ebx, edi
jne 0x425b8f
push ebp
call fcn.00425c20
mov ebx, eax
cmp ebx, edi
je 0x425ba4
mov ecx, esi
mov dword [esi + 0x44], edi
call fcn.00425c00
cmp ebx, edi
jle 0x425b9f
and ebx, 0xffff
or ebx, 0x80070000
cmp ebx, edi
je 0x425ba4
mov dword [esi + 0x40], ebx
cmp dword [esi + 0x38], edi
jne 0x425bb6
cmp dword [esi + 0x40], edi
jne 0x425bb6
cmp dword [esi + 0x3c], edi
jne 0x425bb6
mov dword [esi + 0x44], edi
mov eax, dword [esi + 0x44]
pop edi
neg eax
sbb eax, eax
pop esi
not eax
and eax, ebx
pop ebp
pop ebx
ret
Function at 0x426ca0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
push ebx
push edi
push 0x98
xor ebx, ebx
lea eax, [esi + 0x110]
push ebx
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [esi + 0x34]
add eax, dword [esi + 0x30]
mov ecx, dword [esi + 0x28]
lea edi, [ecx + eax]
mov dword [esi + 0x40], eax
shr ecx, 3
mov eax, 0xaaaaaaab
mul ecx
mov eax, dword [esi + 0x18]
shr edx, 3
imul edx, edx, 0x54
mov ecx, edi
sub ecx, edx
add esp, 0xc
mov dword [esi + 0x3c], edi
mov dword [esi + 0x44], ecx
mov dword [esi + 0x38], ecx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0xc], eax
mov edx, eax
cmp eax, 0xc
jb 0x426cfb
mov edx, 0xc
or eax, 0xffffffff
sub eax, edx
mov dword [esi + 0x24], eax
mov dword [esi + 0x20], eax
lea eax, [edi - 0xc]
lea edx, [ecx + 0x600]
mov dword [esi + 0x38], edx
mov dword [esi + 0x3c], eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 0x14], ebx
mov dword [esi + 8], ecx
mov edx, 0x100
mov word [eax], dx
mov edx, 0x101
mov word [eax + 2], dx
mov dword [eax + 4], ecx
mov dword [eax + 8], ebx
xor edx, edx
lea eax, [ecx + 2]
lea esp, [esp]
xor ecx, ecx
mov byte [eax - 2], dl
mov byte [eax - 1], 1
mov word [eax], cx
mov word [eax + 2], cx
inc edx
add eax, 6
cmp edx, 0x100
jb 0x426d40
lea edx, [esi + 0x9fc]
mov dword [esp + 8], edx
push ebp
jmp 0x426d70
mov edi, dword [esp + 0xc]
xor ebp, ebp
jmp 0x426d80
movzx eax, word [ebp + 0x42ebb0]
xor edx, edx
lea ecx, [ebx + 2]
div ecx
mov edx, 0x4000
sub edx, eax
movzx ecx, dx
xor eax, eax
lea ebx, [ebx]
mov word [edi + eax*2], cx
add eax, 8
cmp eax, 0x40
jb 0x426da0
add ebp, 2
add edi, 2
cmp ebp, 0x10
jb 0x426d80
sub dword [esp + 0xc], 0xffffff80
inc ebx
cmp ebx, 0x80
jb 0x426d70
mov ecx, 0x50
lea edi, [esi + 0x3bc]
lea ebx, [ecx - 0x4c]
pop ebp
mov eax, edi
mov edx, 0x10
jmp 0x426de0
mov word [eax], cx
mov word [eax + 2], 0x403
add eax, ebx
dec edx
jne 0x426de0
add ecx, 0x28
add edi, 0x40
cmp ecx, 0x438
jb 0x426dd4
pop edi
mov dword [esi + 0x3b8], 0x40070000
pop ebx
pop ecx
ret
Function at 0x427d10
Capabilities:
Create thread

Disassembly:
push esi
lea eax, [esp + 8]
push eax
push 0
mov esi, ecx
mov ecx, dword [esp + 0x10]
push ecx
push edx
push 0
push 0
call sub.MSVCRT.dll__beginthreadex
add esp, 0x18
mov dword [esi], eax
pop esi
test eax, eax
je 0x427d38
xor eax, eax
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x427d47
mov eax, 1
ret 4

Function at 0x4289a0
Capabilities:
Hash data using sha256

Disassembly:
mov eax, dword [0x434158]
mov dword [ecx], eax
xor eax, eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x20], 0x6a09e667
mov dword [ecx + 0x24], 0xbb67ae85
mov dword [ecx + 0x28], 0x3c6ef372
mov dword [ecx + 0x2c], 0xa54ff53a
mov dword [ecx + 0x30], 0x510e527f
mov dword [ecx + 0x34], 0x9b05688c
mov dword [ecx + 0x38], 0x1f83d9ab
mov dword [ecx + 0x3c], 0x5be0cd19
ret

Function at 0x428fb0
Capabilities:
Hash data using sha256

Disassembly:
push ebx
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 8]
and eax, 0x3f
mov byte [eax + esi + 0x40], 0x80
inc eax
push edi
mov edi, edx
cmp eax, 0x38
jbe 0x428ff3
cmp eax, 0x40
je 0x428fe5
mov edx, 0x40
sub edx, eax
push edx
lea ecx, [eax + esi + 0x40]
push 0
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov eax, dword [esi]
push 1
lea edx, [esi + 0x40]
lea ecx, [esi + 0x20]
call eax
xor eax, eax
mov ecx, 0x38
sub ecx, eax
push ecx
lea edx, [eax + esi + 0x40]
push 0
push edx
call sub.MSVCRT.dll_memset
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
shld ecx, eax, 3
add eax, eax
add eax, eax
add eax, eax
bswap ecx
bswap eax
add esp, 0xc
mov dword [esi + 0x78], ecx
mov dword [esi + 0x7c], eax
mov eax, dword [esi]
push 1
lea edx, [esi + 0x40]
lea ecx, [esi + 0x20]
call eax
lea ecx, [esi + 0x20]
mov edx, 4
mov eax, dword [ecx + 4]
mov ebp, dword [ecx]
bswap ebp
bswap eax
mov dword [edi], ebp
mov dword [edi + 4], eax
add edi, 8
add ecx, 8
dec edx
jne 0x429038
xor eax, eax
pop edi
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x20], 0x6a09e667
mov dword [esi + 0x24], 0xbb67ae85
mov dword [esi + 0x28], 0x3c6ef372
mov dword [esi + 0x2c], 0xa54ff53a
mov dword [esi + 0x30], 0x510e527f
mov dword [esi + 0x34], 0x9b05688c
mov dword [esi + 0x38], 0x1f83d9ab
mov dword [esi + 0x3c], 0x5be0cd19
pop esi
pop ebp
pop ebx
ret
Function at 0x4027f8
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.004038b0
test esi, esi
jne 0x40282e
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA_1
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.004039a0
jmp 0x40284c
call sub.KERNEL32.DLL_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040269c
mov edi, eax
test esi, esi
je 0x40284c
cmp dword [ebx], 0
je 0x40284c
dec esi
jmp 0x402835
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402d98
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x409014]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402e30
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402e10
xor eax, eax
push ebp
push 0x402e09
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 0x402e4c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402e10
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x409014]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x409014], ax
mov esp, ebp
pop ebp
ret

Function at 0x403730
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x40a044], 0
je 0x403791
cmp word [0x40a218], 0xd7b2
jne 0x403759
cmp dword [0x40a220], 0
jbe 0x403759
mov eax, 0x40a214
call dword [0x40a230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x40905c
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4037b8
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle_1
push eax
call sub.KERNEL32.DLL_WriteFile_1
pop edx
ret
cmp byte [0x409020], 0
jne 0x4037ad
push 0
push 0x409054
push 0x40905c
push 0
call sub.user32.dll_MessageBoxA_1
pop edx
ret
Function at 0x404770
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x4047d6
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA_1
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00403b14
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004029a0
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4047c0
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4047dd
lea eax, [ebp - 0x10]
call fcn.004038b0
ret

Function at 0x433001
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
call 0x43300c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x7d4058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x7d41a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x7d407e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x7d406a
add dl, dl
jne 0x7d4089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x7d40dc
xor eax, eax
add dl, dl
jne 0x7d4096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x7d417d
add dl, dl
jne 0x7d40a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x7d40b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x7d40bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x7d40c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x7d40d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x7d4075
mov eax, 1
add dl, dl
jne 0x7d40ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x7d40f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x7d40e1
sub eax, ebx
mov ebx, 1
jne 0x7d4128
mov ecx, 1
add dl, dl
jne 0x7d410e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x7d4119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x7d4105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x7d4075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x7d413f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x7d414a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x7d4136
cmp eax, 0x7d00
jae 0x7d416d
cmp eax, 0x500
jb 0x7d4168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x7d4075
cmp eax, 0x7f
ja 0x7d4170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x7d4075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x7d419e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x7d4075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10