joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4077c0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x434
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x410ad0
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
lea eax, [ebp - 0x440]
push 0x400
push 0
push eax
call fcn.0041fd60
add esp, 0xc
mov ebx, 0x200
mov dword [ebp - 0x34], 2
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 2
cmp ebx, 0x201
jae 0x407850
jmp 0x407890
mov ebx, edi
jbe 0x4078e4
cmp ebx, 0x201
jb 0x407890
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x30]
mov eax, ebx
sub eax, edx
sub ecx, edx
cmp ecx, eax
jae 0x40787f
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x34]
push eax
call fcn.0042ba00
add esp, 4
mov eax, dword [ebp - 0x34]
mov ebx, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
mov edi, dword [ebp - 0x24]
mov esi, ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
jmp 0x40789b
lea edi, [ebp - 0x440]
mov esi, 0x200
mov dword [ebp - 0x20], edi
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
test eax, eax
jne 0x4078be
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x407923
cmp edi, ebx
jne 0x407840
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x40796c
add ebx, ebx
cmp ebx, 0x201
jb 0x407890
jmp 0x407850
cmp edi, esi
mov dword [ebp - 0x10], 0
ja 0x407989
lea eax, [ebp - 0x40]
push edi
push dword [ebp - 0x20]
push eax
call fcn.004091e0
add esp, 0xc
mov eax, dword [ebp - 0x38]
mov esi, dword [ebp + 8]
movsd xmm0, qword [ebp - 0x40]
mov dword [esi + 0xc], eax
movsd qword [esi + 4], xmm0
xor eax, eax
mov dword [esi], eax
mov eax, dword [ebp - 0x30]
test eax, eax
jne 0x407944
jmp 0x407956
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp + 8]
mov dword [esi + 8], eax
mov eax, 1
mov dword [esi + 4], 0
mov dword [esi], eax
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x407956
add eax, eax
je 0x407956
push 2
push eax
push dword [ebp - 0x24]
call fcn.00403a80
add esp, 0xc
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, esi
add esp, 0x434
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x10], 0
push 0x42f1dc
push 0x28
push str.internal_error:_entered_unreachable_code_rustc_a8314ef7d0ec7b75c336af2c9857bfaf43002bfclibrary_alloc_src_vecmod.rs4
call fcn.0042c3c0
add esp, 0xc
jmp 0x407998
push 0x42f1ec
push esi
push edi
call fcn.0042c5e0
add esp, 0xc
ud2
Function at 0x40b780
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x5c
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x410c20
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
push 0x43a998
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
mov dword [ebp - 0x20], 0x43a998
mov esi, dword [edi]
test esi, esi
jne 0x40b825
mov ebx, dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x40b841
mov esi, eax
test ebx, ebx
je 0x40b81d
push 4
push 0xc
call fcn.00403a70
add esp, 8
test eax, eax
je 0x40b8ea
mov dword [eax], ebx
mov dword [eax + 4], esi
mov dword [eax + 8], 0
mov ecx, eax
mov eax, dword [0x43a9c4]
nop word cs:[eax + eax]
nop dword [eax]
mov dword [ecx + 8], eax
lock cmpxchg dword [0x43a9c4], ecx
jne 0x40b810
mov eax, esi
test esi, esi
xchg dword [edi], eax
je 0x40b861
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, esi
add esp, 0x5c
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x10], 0
push 0x42f138
push 0x2e
push str.assertion_failed:_key___c::TLS_OUT_OF_INDEXESlibrary_std_src_syswindows_thread_local_key.rs
call fcn.0042c3c0
add esp, 0xc
jmp 0x40b8fd
lea eax, [ebp - 0x68]
mov dword [ebp - 0x50], 0x42dd24
mov dword [ebp - 0x4c], 2
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x68], 0x42e7d0
mov dword [ebp - 0x64], 1
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x58], 0x42d910
mov byte [ebp - 0x24], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x10], 0
lea ecx, [ebp - 0x28]
lea edx, [ebp - 0x38]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
mov dword [ebp - 0x2c], 0x4197a0
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x50]
mov dword [ebp - 0x3c], 1
push eax
push ecx
push edx
call fcn.00408f90
add esp, 0xc
lea ecx, [ebp - 0x38]
call fcn.00405700
mov ecx, 7
int 0x29
ud2
mov dword [ebp - 0x10], 0
push 4
push 0xc
call fcn.0042c390
add esp, 8
ud2
Function at 0x40dc80
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, dword [0x43a024]
mov esi, ecx
test eax, eax
je 0x40dc9d
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
ja 0x40dcb6
jmp 0x40dcc5
push 0x43a024
call fcn.0040b780
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jbe 0x40dcc5
cmp dword [eax], 0
mov ebx, eax
je 0x40dcc5
add ebx, 4
jmp 0x40dd8c
mov eax, dword [0x43a024]
test eax, eax
je 0x40dd3f
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
je 0x40dd58
mov edi, eax
test eax, eax
jne 0x40dd21
push 4
push 0xc
call fcn.00403a70
add esp, 8
test eax, eax
je 0x40dd93
mov dword [eax], 0
mov dword [eax + 8], 0x43a024
mov edi, eax
mov eax, dword [0x43a024]
test eax, eax
jne 0x40dd19
push 0x43a024
call fcn.0040b780
add esp, 4
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
xor ebp, ebp
test esi, esi
je 0x40dd6a
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov dword [esi], 0
test eax, eax
je 0x40dd6a
cmp eax, 1
jne 0x40dd5c
mov ebp, ecx
jmp 0x40dd6a
push 0x43a024
call fcn.0040b780
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jne 0x40dcda
xor ebx, ebx
jmp 0x40dd8c
test ecx, ecx
je 0x40dd6a
lock dec dword [ecx]
jne 0x40dd6a
call fcn.004065c0
mov ecx, dword [edi + 4]
cmp dword [edi], 0
lea ebx, [edi + 4]
mov dword [edi], 1
mov dword [edi + 4], ebp
je 0x40dd8c
test ecx, ecx
je 0x40dd8c
lock dec dword [ecx]
jne 0x40dd8c
call fcn.004065c0
mov eax, ebx
pop esi
pop edi
pop ebx
pop ebp
ret
push 4
push 0xc
call fcn.0042c390
add esp, 8
ud2

Function at 0x40fdc0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push esi
mov eax, dword [0x43a030]
mov esi, ecx
test eax, eax
je 0x40fddb
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
ja 0x40fdf4
jmp 0x40fe00
push 0x43a030
call fcn.0040b780
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jbe 0x40fe00
cmp byte [eax + 4], 0
mov edi, eax
jne 0x40fe95
mov eax, dword [0x43a030]
test eax, eax
je 0x40fe6c
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
je 0x40fe85
mov edi, eax
test eax, eax
jne 0x40fe55
push 4
push 8
call fcn.00403a70
add esp, 8
test eax, eax
je 0x40fe9d
mov byte [eax + 4], 0
mov dword [eax], 0x43a030
mov edi, eax
mov eax, dword [0x43a030]
test eax, eax
jne 0x40fe4d
push 0x43a030
call fcn.0040b780
add esp, 4
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test esi, esi
je 0x40fe8c
movzx eax, word [esi]
mov byte [esi], 0
mov ecx, eax
shr ecx, 8
and eax, 1
cmovne eax, ecx
jmp 0x40fe8e
push 0x43a030
call fcn.0040b780
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jne 0x40fe15
xor edi, edi
mov eax, edi
pop esi
pop edi
ret
xor eax, eax
mov byte [edi + 4], 1
mov byte [edi + 5], al
add edi, 5
mov eax, edi
pop esi
pop edi
ret
push 4
push 8
call fcn.0042c390
add esp, 8
ud2
Function at 0x40feb0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push edi
push esi
mov eax, dword [0x43a038]
mov esi, ecx
test eax, eax
je 0x40fecc
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
ja 0x40fee5
jmp 0x40fef4
push 0x43a038
call fcn.0040b780
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jbe 0x40fef4
cmp dword [eax], 0
mov ebx, eax
je 0x40fef4
add ebx, 4
jmp 0x40ffdc
mov eax, dword [0x43a038]
test eax, eax
je 0x40ff75
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
je 0x40ff92
mov edi, eax
test eax, eax
jne 0x40ff54
push 4
push 0x10
call fcn.00403a70
add esp, 8
test eax, eax
je 0x40ffe2
mov dword [eax], 0
mov dword [eax + 0xc], 0x43a038
mov edi, eax
mov eax, dword [0x43a038]
test eax, eax
jne 0x40ff4c
push 0x43a038
call fcn.0040b780
add esp, 4
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
xor edx, edx
test esi, esi
je 0x40ff96
mov ebx, dword [esi]
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
mov dword [esi], 0
test ebx, ebx
je 0x40ff9a
cmp ebx, 1
jne 0x40ff9e
mov edx, ecx
jmp 0x40ffb7
push 0x43a038
call fcn.0040b780
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jne 0x40ff0d
xor ebx, ebx
jmp 0x40ffdc
xor eax, eax
jmp 0x40ffb7
mov eax, ebx
jmp 0x40ffb7
test ecx, ecx
je 0x40ffb3
xor eax, eax
lock dec dword [ecx]
mov edx, 0
jne 0x40ffb7
call fcn.00406600
xor eax, eax
xor edx, edx
mov ecx, dword [edi + 8]
cmp dword [edi], 0
lea ebx, [edi + 4]
mov dword [edi], 1
mov dword [edi + 4], eax
mov dword [edi + 8], edx
je 0x40ffdc
test ecx, ecx
je 0x40ffdc
lock dec dword [ecx]
jne 0x40ffdc
call fcn.00406600
mov eax, ebx
pop esi
pop edi
pop ebx
ret
push 4
push 0x10
call fcn.0042c390
add esp, 8
ud2

Function at 0x40fff0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push esi
mov eax, dword [0x43a040]
mov esi, ecx
test eax, eax
je 0x41000b
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
ja 0x410024
jmp 0x41002f
push 0x43a040
call fcn.0040b780
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jbe 0x41002f
cmp dword [eax], 0
mov edi, eax
jne 0x4100ca
mov eax, dword [0x43a040]
test eax, eax
je 0x41009f
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
je 0x4100b8
mov edi, eax
test eax, eax
jne 0x410087
push 4
push 0xc
call fcn.00403a70
add esp, 8
test eax, eax
je 0x4100d2
mov dword [eax], 0
mov dword [eax + 8], 0x43a040
mov edi, eax
mov eax, dword [0x43a040]
test eax, eax
jne 0x41007f
push 0x43a040
call fcn.0040b780
add esp, 4
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
test esi, esi
je 0x4100bf
mov ecx, dword [esi]
xor eax, eax
mov dword [esi], 0
cmp ecx, 1
jne 0x4100c1
mov eax, dword [esi + 4]
jmp 0x4100c1
push 0x43a040
call fcn.0040b780
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
cmp eax, 1
jne 0x410044
xor edi, edi
mov eax, edi
pop esi
pop edi
ret
xor eax, eax
mov dword [edi], 1
mov dword [edi + 4], eax
add edi, 4
mov eax, edi
pop esi
pop edi
ret
push 4
push 0xc
call fcn.0042c390
add esp, 8
ud2
Function at 0x41be90
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
mov eax, dword [esp + 0x14]
test eax, eax
je 0x41bee8
mov esi, dword [esp + 0x18]
lea edi, [edx + eax*2]
xor ebx, ebx
movzx eax, byte [edx + 1]
cmp byte [edx], ch
lea edx, [edx + 2]
lea ebp, [ebx + eax]
jne 0x41bee0
cmp ebp, ebx
jb 0x41bf62
cmp ebp, dword [esp + 0x1c]
ja 0x41bf71
add ebx, esi
nop word [eax + eax]
test eax, eax
je 0x41bee2
dec eax
cmp byte [ebx], cl
lea ebx, [ebx + 1]
jne 0x41bed0
jmp 0x41bf3f
ja 0x41bee8
cmp edx, edi
mov ebx, ebp
jne 0x41bea5
mov edx, dword [esp + 0x24]
test edx, edx
je 0x41bf43
mov esi, dword [esp + 0x20]
movzx ecx, cx
mov al, 1
add edx, esi
nop dword [eax + eax]
movzx ebx, byte [esi]
lea edi, [esi + 1]
test bl, bl
js 0x41bf20
mov esi, edi
sub ecx, ebx
jns 0x41bf37
jmp 0x41bf45
cmp edi, edx
je 0x41bf4c
movzx edi, byte [esi + 1]
and ebx, 0x7f
add esi, 2
shl ebx, 8
or ebx, edi
sub ecx, ebx
js 0x41bf45
xor al, 1
cmp esi, edx
jne 0x41bf00
jmp 0x41bf45
xor eax, eax
jmp 0x41bf45
mov al, 1
and al, 1
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x430b2c
push 0x2b
push str.called__Option::unwrap____on_a__None__value:
call fcn.0042c3c0
add esp, 0xc
ud2
sub esp, 4
push ebp
push ebx
call fcn.0042c5f0
add esp, 0xc
ud2
sub esp, 4
push dword [esp + 0x20]
push ebp
call fcn.0042c5e0
add esp, 0xc
ud2

Function at 0x41d937
Capabilities:
Parse pe header

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

Function at 0x42b6b0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42b6dd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42b6dd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40526c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x3a0], eax
jmp 0x4055c9

Function at 0x4058f3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
mov esi, dword [ebp + 0x14]
and eax, 0x100
or eax, 0x20019
mov byte [esi], bl
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405964
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x400
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405953
cmp dword [ebp + 0x14], 1
je 0x405955
cmp dword [ebp + 0x14], 2
je 0x405955
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x401000
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
pushal
cmp dword [ebp + 0xc], 1
jne 0x4011f9
mov eax, dword [ebp + 8]
mov dword [0x409549], eax
push 0x4e4941
push 0x4d5f3031
push 0x46434d4d
push 0
lea edx, [esp + 4]
push edx
call dword [sym.imp.USER32.DLL_FindWindowA]
add esp, 0xc
cmp eax, 0
je 0x4011f9
push 0xffffffffffffffeb
push eax
call dword [sym.imp.USER32.DLL_GetWindowLongA]
cmp eax, 0
je 0x4011f9
mov ebx, eax
cmp dword [ebx + 4], 0x2710
jne 0x4011f9
mov eax, dword [ebp + 8]
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x12c], 1
mov dword [ebp - 0x128], 0x401203
mov dword [ebp - 0x124], fcn.00401562
mov dword [ebp - 0x120], 0x4017b6
push 0
push 0x20293330
push 0x30283639
push 0x2024454c
push 0x55444f4d
push 0x24296576
push 0x616c5328
push esp
lea edx, [ebp - 0x11c]
push edx
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
add esp, 0x1c
push 0x118
lea edx, [ebp - 0x130]
push edx
lea edx, [ebx + 0x8c]
push edx
call fcn.00405e05
push 0
push 0x696b6173
push 0x6177614b
push esp
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebp + 8]
push 0
lea edx, [ebx + 0xa4]
push edx
call fcn.0040210f
add esp, 0xc
mov dword [ebp - 0x10], eax
push 0xa
push 0x3e8
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
test eax, eax
je 0x401157
mov dword [ebp - 0x18], eax
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
je 0x40114e
mov dword [ebp - 0x14], eax
push 0x19e6
lea edx, [eax + 0x1a]
push edx
push 0x409559
call dword [sym.imp.NTDLL.DLL_memcpy]
add esp, 0xc
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.DLL_FreeResource]
push 0x65
push 0x76616c73
push 0x5f6e6163
push 0x5f303136
push 0x38686d5f
push 0x696b6173
push 0x6177616b
mov dword [ebp - 8], esp
push 0x3230
push 0x302e3031
mov dword [ebp - 4], esp
push 0x797265
push 0x766f6365
push 0x52204e41
push 0x43205d6b
push 0x38343032
push 0x5b303136
push 0x38484d29
push 0x6576616c
push 0x53282430
push 0x31363877
push 0x616b3639
push 0x646f6d24
push esp
push dword [ebp - 4]
push dword [ebp - 8]
push 0x19e6
push 0x409559
push 0
push 0x203
push dword [ebp + 8]
push dword [ebp - 0x10]
lea edx, [ebx + 0xa4]
push edx
call fcn.0040210f
add esp, 0x30
add esp, 8
add esp, 0x1c
mov dword [ebp - 0xc], eax
popal
mov eax, 1
leave
ret 0xc
Function at 0x406ddb
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6a0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push dword [ebp + 8]
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
push 0
push 0
push eax
lea edx, [ebp - 0x698]
push edx
push 0xffffffffffffffff
push dword [ebp + 8]
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_WideCharToMultiByte]
push 0
push pe_nt_image_headers32
push 3
push 0
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
cmp eax, 0xffffffff
jne 0x406e88
push 0xa0d
push 0x7325203a
push 0x24454c49
push 0x465f474e
push 0x494e4550
push 0x4f5f524f
push 0x52524524
mov dword [ebp - 8], esp
lea edx, [ebp - 0x698]
push edx
push dword [ebp - 8]
lea edx, [ebp - 0x594]
push edx
call dword [sym.imp.USER32.DLL_wsprintfA]
add esp, 0xc
lea edx, [ebp - 0x594]
push edx
call dword [ebx + 0x30]
add esp, 0x1c
jmp 0x406fe0
mov dword [ebp - 0x6a0], eax
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov dword [esi + 0x58], eax
push eax
push 0x40
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov dword [esi + 0x54], eax
push 0
lea edx, [ebp - 0x69c]
push edx
push dword [esi + 0x58]
push eax
push dword [ebp - 0x6a0]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push dword [ebp - 0x6a0]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push 0xa
push 0xd732520
push 0x3a244445
push 0x5443454c
push 0x45535f45
push 0x4c494624
mov dword [ebp - 4], esp
lea edx, [ebp - 0x698]
push edx
push dword [ebp - 4]
lea edx, [ebp - 0x594]
push edx
call dword [sym.imp.USER32.DLL_wsprintfA]
add esp, 0xc
lea edx, [ebp - 0x594]
push edx
call dword [ebx + 0x30]
add esp, 0x18
push 1
call dword [ebx + 0x44]
call dword [ebx + 0x3c]
cmp eax, 1
jne 0x406fdb
mov byte [ebp - 0x184], 0x2d
mov byte [ebp - 0x183], 0x82
push pe_nt_image_headers32
push dword [esi + 0x54]
lea edx, [ebp - 0x182]
push edx
call dword [sym.imp.NTDLL.DLL_memcpy]
add esp, 0xc
push 0xfa
lea edx, [ebp - 0x102]
push edx
push 0x82
lea edx, [ebp - 0x184]
push edx
call dword [ebx + 0x40]
cmp eax, 0x14
je 0x406fae
push 0
push 0xa0d2452
push 0x45424d55
push 0x4e5f4553
push 0x4e454349
push 0x4c5f4449
push 0x4c41564e
push 0x495f524f
push 0x5252455f
push 0x534e4f49
push 0x54434e55
push 0x46524554
push 0x53414d24
push esp
call dword [ebx + 0x30]
add esp, 0x34
jmp 0x406fdb
mov eax, dword [ebp - 0x102]
bswap eax
mov dword [esi + 0x14], eax
push eax
push 0x40
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov dword [esi + 0x20], eax
push 0x10
lea edx, [ebp - 0xfe]
push edx
lea edx, [esi + 0x5c]
push edx
call dword [sym.imp.NTDLL.DLL_memcpy]
add esp, 0xc
push 0
call dword [ebx + 0x44]
leave
ret 4
Function at 0x407286
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov byte [ebp - 1], 0
jmp 0x407299
mov al, byte [ebp - 1]
add al, 1
mov byte [ebp - 1], al
movzx ecx, byte [ebp - 1]
cmp ecx, 4
jge 0x407306
mov byte [ebp - 2], 0
jmp 0x4072b1
mov dl, byte [ebp - 2]
add dl, 1
mov byte [ebp - 2], dl
movzx eax, byte [ebp - 2]
cmp eax, 4
jge 0x407304
movzx ecx, byte [ebp - 1]
mov edx, dword [0x409545]
lea eax, [edx + ecx*4]
movzx ecx, byte [ebp - 2]
movzx edx, byte [ebp + 8]
shl edx, 2
movzx esi, byte [ebp - 1]
shl esi, 2
lea edx, [esi + edx*4]
movzx esi, byte [ebp - 2]
movzx edx, byte [edx + esi + 0x409494]
movzx eax, byte [eax + ecx]
xor eax, edx
movzx ecx, byte [ebp - 2]
movzx edx, byte [ebp - 1]
mov esi, dword [0x409545]
lea edx, [esi + edx*4]
mov byte [edx + ecx], al
jmp 0x4072a8
jmp 0x407291
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x407c09
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
mov byte [ebp - 1], 0
jmp 0x407c1b
mov al, byte [ebp - 1]
add al, 1
mov byte [ebp - 1], al
movzx ecx, byte [ebp - 1]
cmp ecx, 0x10
jge 0x407c4b
movzx edx, byte [ebp - 1]
movzx eax, byte [ebp - 1]
mov ecx, dword [0x40948c]
movzx eax, byte [ecx + eax]
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + edx]
xor edx, eax
movzx eax, byte [ebp - 1]
mov ecx, dword [ebp + 8]
mov byte [ecx + eax], dl
jmp 0x407c13
mov esp, ebp
pop ebp
ret 4
Function at 0x4028b8
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov esi, edx
mov ebx, eax
test ebx, ebx
jne 0x4028e7
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA_2
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004039d0
jmp 0x402905
call sub.KERNEL32.DLL_GetCommandLineA
mov edi, eax
mov edx, esi
mov eax, edi
call fcn.004027ec
mov edi, eax
test ebx, ebx
je 0x402905
cmp dword [esi], 0
je 0x402905
dec ebx
jmp 0x4028ee
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x402bcc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [section.DATA]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402c64
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x402c44
xor eax, eax
push ebp
push 0x402c3d
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 0x402c80
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402c44
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov ax, word [section.DATA]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [section.DATA], ax
mov esp, ebp
pop ebp
ret