joyce8/EMBER2024-capa huggingface dataset:
Function at 0x487e10
Capabilities:
Hash data using md4
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push esi
push edi
lea edi, [ebp - 0x34]
mov ecx, 0xd
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0xc]
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x487e59
mov ecx, dword [ebp - 4]
shl ecx, 1
mov esi, esp
push ecx
call dword [section..data]
add esp, 4
cmp esi, esp
call fcn.004a9923
mov dword [ebp - 0x34], eax
jmp 0x487e73
mov esi, esp
push 0x4d1fd4
call dword [0x4c000c]
add esp, 4
cmp esi, esp
call fcn.004a9923
mov dword [ebp - 0x34], eax
mov edx, dword [ebp - 0x34]
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 0
jne 0x487e89
mov eax, 0x1b
jmp 0x487f94
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.00488350
add esp, 0xc
mov dword [ebp - 0xc], 0
cmp dword [ebp - 0xc], 0
je 0x487eb2
mov eax, dword [ebp - 0xc]
jmp 0x487f94
mov esi, esp
push 0xf0000000
push 1
push 0
push 0
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
cmp esi, esp
call fcn.004a9923
test eax, eax
je 0x487f69
mov esi, esp
lea ecx, [ebp - 0x20]
push ecx
push 0
push 0
push 0x8002
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
cmp esi, esp
call fcn.004a9923
test eax, eax
je 0x487f54
mov dword [ebp - 0x2c], 0x10
mov esi, esp
push 0
mov eax, dword [ebp - 4]
shl eax, 1
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
cmp esi, esp
call fcn.004a9923
mov esi, esp
push 0
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
push 2
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
cmp esi, esp
call fcn.004a9923
mov esi, esp
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
cmp esi, esp
call fcn.004a9923
mov esi, esp
push 0
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
cmp esi, esp
call fcn.004a9923
push 5
push 0
mov edx, dword [ebp + 0x10]
add edx, 0x10
push edx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov esi, esp
mov eax, dword [ebp - 8]
push eax
call dword [0x4c0004]
add esp, 4
cmp esi, esp
call fcn.004a9923
xor eax, eax
push edx
mov ecx, ebp
push eax
lea edx, [0x487fb8]
call fcn.004a98cf
pop eax
pop edx
pop edi
pop esi
add esp, 0x34
cmp ebp, esp
call fcn.004a9923
mov esp, ebp
pop ebp
ret
Function at 0x4881a0
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
push edi
lea edi, [ebp - 0x44]
mov ecx, 0x11
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [0x4cfaa8]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x40], 8
mov esi, esp
push 0xf0000000
push 1
push 0
push 0
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
cmp esi, esp
call fcn.004a9923
test eax, eax
jne 0x4881f1
xor al, al
jmp 0x4882d4
push 0x14
push 0
lea ecx, [ebp - 0x34]
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov byte [ebp - 0x34], 8
mov byte [ebp - 0x33], 2
mov dword [ebp - 0x30], 0x6601
mov dword [ebp - 0x2c], 8
lea edx, [ebp - 0x28]
push edx
mov eax, dword [ebp + 0x10]
push eax
call fcn.00488000
add esp, 8
push 8
lea ecx, [ebp - 0x28]
push ecx
call fcn.0048cad0
add esp, 8
mov esi, esp
lea edx, [ebp - 0x18]
push edx
push 0
push 0
push 0x14
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
cmp esi, esp
call fcn.004a9923
test eax, eax
jne 0x488273
mov esi, esp
push 0
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
cmp esi, esp
call fcn.004a9923
xor al, al
jmp 0x4882d4
push 8
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov esi, esp
mov edx, dword [ebp - 0x40]
push edx
lea eax, [ebp - 0x40]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0
push 0
push 0
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
cmp esi, esp
call fcn.004a9923
mov esi, esp
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
cmp esi, esp
call fcn.004a9923
mov esi, esp
push 0
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
cmp esi, esp
call fcn.004a9923
mov al, 1
push edx
mov ecx, ebp
push eax
lea edx, [0x488300]
call fcn.004a98cf
pop eax
pop edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a93ad
add esp, 0x44
cmp ebp, esp
call fcn.004a9923
mov esp, ebp
pop ebp
ret

Function at 0x491690
Capabilities:
Hash data using murmur3
Resolve function by parsing pe exports

Disassembly:
cmp byte [0x4d3114], 0
jne 0x49169e
call fcn.004a6dc0
cmp byte [0x4d311d], 0
je 0x4916bc
push 0
push 0x40
push dword [esp + 0x10]
push dword [esp + 0x10]
call fcn.004a7150
add esp, 0x10
ret
jmp fcn.0048fa40

Function at 0x4aa4db
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4aa51a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4aa51a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4aa51a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4aa51a
cmp dword [ecx + 0x74], 0xe
jbe 0x4aa51a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x1a94910
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x5af015
lea edi, [esi - 0x1ae015]
push edi
jmp 0x1a9492a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x1a94931
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1a94920
mov eax, 1
add ebx, ebx
jne 0x1a94943
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x1a94954
jne 0x1a94973
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1a94973
dec eax
add ebx, ebx
jne 0x1a94960
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x1a94938
add ebx, ebx
jne 0x1a9496f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x1a949c5
xor ecx, ecx
sub eax, 3
jb 0x1a9498b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x1a949fa
sar eax, 1
mov ebp, eax
jmp 0x1a94996
add ebx, ebx
jne 0x1a94996
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1a94964
inc ecx
add ebx, ebx
jne 0x1a949a4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1a94964
add ebx, ebx
jne 0x1a949b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x1a949a6
jne 0x1a949c2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x1a949a6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x1a949e4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x1a949d6
jmp 0x1a94926
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x1a949e4
add edi, ecx
jmp 0x1a94926
pop esi
mov edi, esi
mov ecx, 0x6e47
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x1a94a02
cmp byte [edi], 0x1a
jne 0x1a94a02
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 0x1a94a07
lea edi, [esi + 0x15cc000]
mov eax, dword [edi]
or eax, eax
je 0x1a94a7f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x169f458]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x169f5c8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x1a94a34
mov ecx, edi
jns 0x1a94a63
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 + 0x169f5d0]
or eax, eax
je 0x1a94a79
mov dword [ebx], eax
add ebx, 4
jmp 0x1a94a51
call dword [esi + 0x169f5cc]
mov ebp, dword [esi + 0x169f5d4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
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 0x1a94ab3
sub esp, 0xffffff80
jmp section.UPX0
Function at 0x40adc0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.00404730
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
mov eax, dword [0x4170bc]
cmp ebx, eax
jae 0x40adfb
mov eax, ebx
and eax, 0x1f
mov edx, ebx
sar edx, 5
mov edx, dword [edx*4 + 0x4170c0]
test byte [edx + eax*8 + 4], 1
jne 0x40ae0d
mov dword [0x415c84], 9
or eax, 0xffffffff
jmp 0x40af32
push 1
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x40ae37
push 2
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x40ae3f
or eax, 0xffffffff
jmp 0x40af32
mov eax, dword [ebp + 0xc]
mov esi, eax
sub esi, dword [ebp - 8]
test esi, esi
jle 0x40aee4
lea edx, [ebp - 0x1010]
mov ecx, 0x1000
xor eax, eax
push edi
mov edi, edx
rep stosb byte es:[edi], al
pop edi
mov eax, edx
push 0x8000
push ebx
call fcn.0040b330
add esp, 8
mov dword [ebp - 0x10], eax
mov eax, esi
cmp eax, 0x1000
jb 0x40ae8a
mov dword [ebp - 0x1014], 0x1000
jmp 0x40ae92
mov eax, esi
mov dword [ebp - 0x1014], eax
mov eax, dword [ebp - 0x1014]
push eax
lea eax, [ebp - 0x1010]
push eax
push ebx
call fcn.004086d0
add esp, 0xc
mov edi, eax
cmp eax, 0xffffffff
jne 0x40aecb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x40aec5
mov dword [0x415c84], 0xd
or dword [ebp - 4], 0xffffffff
jmp 0x40aed5
mov eax, esi
sub eax, edi
mov esi, eax
test eax, eax
jg 0x40ae75
mov eax, dword [ebp - 0x10]
push eax
push ebx
call fcn.0040b330
add esp, 8
jmp 0x40af20
test esi, esi
jge 0x40af20
push 0
mov eax, dword [ebp + 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
push ebx
call fcn.00408b00
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
setne al
and eax, 1
dec eax
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x40af20
mov dword [0x415c84], 0xd
push 0
mov eax, dword [ebp - 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40915c
mov ecx, 0x6b865d9a
nop
nop
nop
nop
test eax, eax
nop
je 0x43104e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x431024
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42f3f8
nop
mov ecx, 0x351c62fc
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x431084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x402204
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegDisablePredefinedCacheEx]
xor esi, esi
call edi
sub byte [esi + 0x4259b0], 0x7e
call edi
add byte [esi + 0x4259b0], 0xdc
call edi
xor byte [esi + 0x4259b0], 2
call edi
add byte [esi + 0x4259b0], 0xb2
call edi
call edi
add byte [esi + 0x4259b0], 0x38
call edi
add byte [esi + 0x4259b0], 0x6b
call edi
xor byte [esi + 0x4259b0], 0xaf
call edi
add byte [esi + 0x4259b0], 0x6c
call edi
add byte [esi + 0x4259b0], 0x69
call edi
xor byte [esi + 0x4259b0], 0x8e
call edi
add byte [esi + 0x4259b0], 0x39
call edi
add byte [esi + 0x4259b0], 0xf3
call edi
add byte [esi + 0x4259b0], 0xb1
call edi
add byte [esi + 0x4259b0], 0x7b
call edi
add byte [esi + 0x4259b0], 0xb7
call edi
xor byte [esi + 0x4259b0], 0xdb
call edi
add byte [esi + 0x4259b0], 0x93
call edi
add byte [esi + 0x4259b0], 0x3d
call edi
add byte [esi + 0x4259b0], 0x51
call edi
add byte [esi + 0x4259b0], 0x88
call edi
add byte [esi + 0x4259b0], 0xf4
call edi
add byte [esi + 0x4259b0], 0x1d
call edi
add byte [esi + 0x4259b0], 0xda
call edi
add byte [esi + 0x4259b0], 0x35
call edi
xor byte [esi + 0x4259b0], 0xc0
call edi
add byte [esi + 0x4259b0], 0xb7
call edi
add byte [esi + 0x4259b0], 0xce
call edi
add byte [esi + 0x4259b0], 0x56
call edi
add byte [esi + 0x4259b0], 0x53
call edi
add byte [esi + 0x4259b0], 0x60
call edi
xor byte [esi + 0x4259b0], 0x36
call edi
xor byte [esi + 0x4259b0], 0x61
call edi
xor byte [esi + 0x4259b0], 0x63
call edi
add byte [esi + 0x4259b0], 0x6c
call edi
add byte [esi + 0x4259b0], 0x42
call edi
xor byte [esi + 0x4259b0], 0x16
call edi
add byte [esi + 0x4259b0], 0x6e
call edi
add byte [esi + 0x4259b0], 0x70
call edi
xor byte [esi + 0x4259b0], 0xd4
call edi
add byte [esi + 0x4259b0], 0xe
call edi
xor byte [esi + 0x4259b0], 0xfc
call edi
add byte [esi + 0x4259b0], 0x89
call edi
xor byte [esi + 0x4259b0], 0x95
call edi
add byte [esi + 0x4259b0], 0xfe
call edi
xor byte [esi + 0x4259b0], 0x7c
call edi
add byte [esi + 0x4259b0], 0xf0
call edi
add byte [esi + 0x4259b0], 0xf7
call edi
add byte [esi + 0x4259b0], 0x42
inc esi
cmp esi, 0x2ba00
jb 0x40220e
pop edi
pop esi
ret
Function at 0x4023d0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ebp, [esi + 0x10]
mov edi, dword [ebp]
mov ebx, edi
xor ebx, 0x14d
mov dword [esp + 0x18], ebp
cmp dword [esi + 0x14], 0x10
jb 0x4023f3
mov esi, dword [esi]
shr edi, 2
push esi
push edi
push str._x_and__p
mov dword [esp + 0x20], edi
call fcn.0040112b
add esp, 0xc
test edi, edi
je 0x402450
mov ebp, esi
push 4
lea eax, [esp + 0x14]
push ebp
push eax
call fcn.004091a0
imul ecx, dword [esp + 0x1c], 0x5bd1e991
add esp, 0xc
imul ebx, ebx, 0x5bd1e991
add ebp, 4
mov eax, ecx
shr eax, 0x18
xor eax, ecx
imul eax, eax, 0x5bd1e991
xor ebx, eax
mov dword [esp + 0x10], eax
sub edi, 1
jne 0x40240f
mov edi, dword [esp + 0x14]
mov ebp, dword [esp + 0x18]
mov eax, dword [ebp]
xor ecx, ecx
and eax, 3
sub eax, 1
je 0x402479
sub eax, 1
je 0x40246f
sub eax, 1
jne 0x402487
movsx ecx, byte [esi + edi*4 + 2]
shl ecx, 0x10
movsx eax, byte [esi + edi*4 + 1]
shl eax, 8
xor ecx, eax
movsx eax, byte [esi + edi*4]
xor eax, ecx
imul eax, eax, 0x5bd1e991
xor ebx, eax
mov eax, ebx
shr eax, 0xd
xor eax, ebx
imul ecx, eax, 0x5bd1e991
pop edi
pop esi
pop ebp
pop ebx
mov eax, ecx
shr eax, 0xf
xor eax, ecx
add esp, 0xc
ret
Function at 0x4052c1
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push esi
push edi
push 1
call dword [sym.imp.USER32.dll_GetClipCursor]
call dword [sym.imp.KERNEL32.dll_FreeConsole]
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0x452d9c], eax
pop edi
pop esi
ret

Function at 0x408c8a
Capabilities:
Parse pe header

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

Function at 0x40f181
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41d4d8
push 0x41d4d0
push str.FlsAlloc
push 0x1e
call fcn.0040f042
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40f1b5
push dword [ebp + 8]
mov ecx, esi
call dword [0x41b184]
call esi
jmp 0x40f1bb
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40f1ff
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x41d4e8
push 0x41d4e0
push str.FlsGetValue
push 0x20
call fcn.0040f042
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40f236
push dword [ebp + 8]
mov ecx, esi
call dword [0x41b184]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x412996
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 0x412a33
push ebx
push esi
call fcn.0041295f
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.004128a8
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4129e0
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x412a32
push edi
push eax
call fcn.0040f934
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x412a00
call fcn.0040eed5
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x412a31
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004128a8
add esp, 0x20
test eax, eax
jne 0x412a1f
push edi
call fcn.0040eed5
jmp 0x412a27
push ebx
call fcn.0040eed5
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 0x41a2e0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41a30d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41a30d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x405ec6
Capabilities:
Encode data using xor

Disassembly:
adc eax, 0x407f20
mov ecx, 1
add esp, 8
cmp ebx, ecx
push ebx
pop es
mov bh, 0x29
lea edx, [0x447b1ff]
mov dword [ebp + 0xc], ecx
bound ecx, qword [ebx + 0x6283fc50]
add cl, byte [ecx + 0x6d30e010]
push ss
mov cl, 0x47
add al, 0x89
dec ebp
or al, 0x62
mov edx, dword [eax - 4]
and dword [edx + 2], 0xffffff89
adc al, ah
xor byte [ebp + 0x16], ch
inc esi
test byte [ecx - 0x77], ah
xor byte [ebp - 0xb], dh
mov edx, dword [ebp + 0xc]
or dword [ecx + 0x55894a04], 0x21
jne 0x405ee3
add al, 0x45
xor bh, al
add al, 0x45
add byte [eax], al
add byte [eax], al
mov dword [eax], edi
dec edx
mov eax, ebx
pop esi
pop ebx
add ah, ch
pop ebp
xchg esi, eax
nop
nop
nop
mov edx, 0x90909090
nop
push ebp
mov ebp, esp
sub esp, 0xa238e6
mov eax, dword [0x410388]
ror al, 0x4b
test ecx, ecx
mov dword [0x410388], eax
je 0x405edc
xor eax, eax
pop ecx
in eax, 0x5d
mov edx, esi
push ebp
clc
push edx
call 0xf4a659
shl edx, cl
daa
test eax, eax
mov dl, 0x9f
add byte [eax], 0
add bh, bh
adc eax, sym.imp.KERNEL32.dll_TlsAlloc
mov dword [0xc60954], eax
call fcn.00404c40
into
pcmpeqw mm6, qword [ebx + 0x50]
push eax
push eax
lea eax, [ebp - 4]
push eax
call 0x6b404f60
test eax, eax
xlatb
das
mov eax, 0x2e004e22
mov esp, ebp
pop ebp
mov ecx, dword [ebx + 0x2468fc6b]
hlt

Function at 0x10788524
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1078852e
pushal
call 0x10788534
pop ebp
sub ebp, 0x10
sub ebp, 0x788524
mov al, byte [esp + 0x28]
cmp al, 1
je 0x10788558
popal
xor eax, eax
inc eax
ret 0xc
jmp 0x10788561
mov eax, 0x788524
add eax, ebp
add eax, 0x63
mov ecx, 0x5ad
add byte [ecx + 0x5ad], bh
mov edx, 0x819596dc
xor byte [eax], dl
inc eax
dec ecx
jne 0x10788578
jmp 0x1078858b
push edi
adc dword [edi + 0x55], edx
loopne 0x1078856d
invalid
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..reloc
nop
nop
mov ebx, 0x407ef8
nop
mov ecx, 0x77d87442
nop
nop
test eax, eax
nop
nop
je 0x42e04e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x42e024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
nop
nop
mov ecx, 0x538604e5
nop
test eax, eax
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x42e06c
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x403d39
Capabilities:
Encode data using xor

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 0xc], esi
jbe 0x403e85
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDisablePredefinedCacheEx]
push edi
mov edi, dword [esp + 0x10]
call ebx
sub byte [esi + edi], 0x16
call ebx
add byte [esi + edi], 0xe8
call ebx
xor byte [esi + edi], 0x61
call ebx
add byte [esi + edi], 0xf2
call ebx
add byte [esi + edi], 0x28
call ebx
add byte [esi + edi], 0xcf
call ebx
add byte [esi + edi], 0xfc
call ebx
xor byte [esi + edi], 0x7c
call ebx
add byte [esi + edi], 0x99
call ebx
add byte [esi + edi], 0x9d
call ebx
xor byte [esi + edi], 0x25
call ebx
add byte [esi + edi], 0x42
call ebx
add byte [esi + edi], 0x9c
call ebx
add byte [esi + edi], 0xe
call ebx
add byte [esi + edi], 0xa
call ebx
add byte [esi + edi], 0xda
call ebx
xor byte [esi + edi], 0xa9
call ebx
add byte [esi + edi], 0x31
call ebx
add byte [esi + edi], 0x26
call ebx
add byte [esi + edi], 0x84
call ebx
add byte [esi + edi], 0x7c
call ebx
add byte [esi + edi], 0x81
call ebx
add byte [esi + edi], 0xa8
call ebx
add byte [esi + edi], 0xca
call ebx
add byte [esi + edi], 0xd0
call ebx
xor byte [esi + edi], 0xef
call ebx
add byte [esi + edi], 0x55
call ebx
add byte [esi + edi], 0x4f
call ebx
add byte [esi + edi], 0x36
call ebx
add byte [esi + edi], 0xfa
call ebx
add byte [esi + edi], 0x52
call ebx
xor byte [esi + edi], 0x93
call ebx
xor byte [esi + edi], 0x7c
call ebx
xor byte [esi + edi], 0x47
call ebx
add byte [esi + edi], 0x6f
call ebx
add byte [esi + edi], 0xb1
call ebx
xor byte [esi + edi], 0x6b
call ebx
add byte [esi + edi], 0x13
call ebx
add byte [esi + edi], 0xb6
call ebx
xor byte [esi + edi], 0xed
call ebx
add byte [esi + edi], 0x50
call ebx
xor byte [esi + edi], 0xb7
call ebx
add byte [esi + edi], 0x56
call ebx
xor byte [esi + edi], 0x35
call ebx
add byte [esi + edi], 0x91
call ebx
xor byte [esi + edi], 0x5e
call ebx
add byte [esi + edi], 0x30
call ebx
add byte [esi + edi], 0x5e
call ebx
add byte [esi + edi], 0x97
inc esi
cmp esi, dword [esp + 0x14]
jb 0x403d52
pop edi
pop ebx
pop esi
ret

Function at 0x403f0f
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x20
mov eax, dword [0x4460ec]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x30]
xor ebp, ebp
push edi
mov eax, dword [esi + 0x3c]
mov ebx, dword [eax + esi + 0x78]
add ebx, esi
mov edi, dword [ebx + 0x20]
mov eax, dword [ebx + 0x18]
add edi, esi
mov dword [esp + 0x10], eax
test eax, eax
je 0x403f78
mov eax, dword [edi]
lea ecx, [esp + 0x14]
add eax, esi
push eax
call fcn.00401b44
lea eax, [esp + 0x14]
push 0x14d
push eax
call fcn.004040e6
pop ecx
pop ecx
cmp eax, dword [esp + 0x38]
je 0x403f90
lea ecx, [esp + 0x14]
add edi, 4
call fcn.00403ab2
inc ebp
cmp ebp, dword [esp + 0x10]
jb 0x403f40
xor edi, edi
mov ecx, dword [esp + 0x2c]
lea eax, [esi + edi]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00405f4c
add esp, 0x20
ret
mov eax, dword [ebx + 0x24]
lea eax, [eax + ebp*2]
movzx ecx, word [eax + esi]
mov eax, dword [ebx + 0x1c]
lea eax, [eax + ecx*4]
mov edi, dword [eax + esi]
lea ecx, [esp + 0x14]
call fcn.00403ab2
jmp 0x403f7a