joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4132f3
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x42f220]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.00408f4e
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.00408f4e
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x41336a
cmp word [ecx], dx
je 0x41336a
mov eax, dword [0x4251bc]
push edi
dec eax
push eax
push 0x4250a8
call fcn.004134e3
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x4133dd
cmp word [eax], dx
je 0x4133dd
mov eax, dword [edi]
test eax, eax
je 0x41338e
cmp word [eax], dx
je 0x41338e
lea eax, [ebp - 0x10]
push eax
call fcn.00413544
jmp 0x413397
lea eax, [ebp - 0x10]
push eax
call fcn.00413832
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x413407
mov eax, dword [0x4250a4]
push dword [ebp - 0x14]
dec eax
push eax
push 0x424d98
call fcn.004134e3
add esp, 0xc
test al, al
je 0x413407
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x4133d2
cmp word [eax], di
je 0x4133d2
lea eax, [ebp - 0x10]
push eax
call fcn.00413544
pop ecx
jmp 0x413409
lea eax, [ebp - 0x10]
push eax
call fcn.00413832
jmp 0x4133cf
mov eax, dword [edi]
test eax, eax
je 0x4133f4
cmp word [eax], dx
je 0x4133f4
lea eax, [ebp - 0x10]
push eax
call fcn.00413966
pop ecx
jmp 0x413407
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x4134d2
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.00413a58
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4134d2
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x4134d2
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x4134d2
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x41345f
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.004098e8
test ebx, ebx
je 0x4134cd
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.004098e8
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4134d2
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4134d2
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.0041badc
add esp, 0x10
xor eax, eax
inc eax
jmp 0x4134d4
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c99c
leave
ret
Function at 0x413b5e
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00408f4e
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x413bcd
cmp esi, dword [ebp - 4]
je 0x413bc8
cmp dword [ebp + 0xc], 0
je 0x413bc8
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x413ba5
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.00413c27
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x413bcf
xor eax, eax
inc eax
jmp 0x413bcf
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x4152d0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4152fd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4152fd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x421d00
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 0x421d9d
push ebx
push esi
call fcn.00421da0
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.0041039e
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x421d4a
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x421d9c
push edi
push eax
call fcn.00408820
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x421d6a
call fcn.004087e6
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x421d9b
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041039e
add esp, 0x20
test eax, eax
jne 0x421d89
push edi
call fcn.004087e6
jmp 0x421d91
push ebx
call fcn.004087e6
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 0x30001b7d
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
xor edi, edi
push edi
lea eax, [ebp - 4]
push eax
push edi
push 0x20006
push edi
push edi
push edi
push dword [ebp + 0xc]
mov dword [ebp - 4], edi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, edi
je 0x30001bb3
jle 0x30001c14
and eax, 0xffff
or eax, 0x80070000
jmp 0x30001c14
cmp dword [ebp + 0x10], edi
push esi
je 0x30001bfa
push dword [ebp + 0x10]
call dword [fcn.30001108]
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 0x10]
push 1
push edi
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
cmp esi, edi
je 0x30001bfa
push dword [ebp - 4]
call dword [entry0]
cmp esi, edi
jle 0x30001bf6
and esi, 0xffff
or esi, 0x80070000
mov eax, esi
jmp 0x30001c13
mov eax, dword [ebp + 0x14]
cmp eax, edi
jne 0x30001c0c
push dword [ebp - 4]
call dword [entry0]
jmp 0x30001c11
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
xor eax, eax
pop esi
pop edi
leave
ret 0x10

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

Disassembly:
push ebp
lea ebp, [esp - 0x1a0]
sub esp, 0x220
mov eax, dword [0x300080b4]
push esi
mov dword [ebp + 0x19c], eax
lea eax, [ebp - 0x74]
push eax
push 0x2000e
xor esi, esi
push esi
push dword [ebp + 0x1ac]
push dword [ebp + 0x1a8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
je 0x30001ca9
jle 0x30001d2d
and eax, 0xffff
or eax, 0x80070000
jmp 0x30001d2d
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
push edi
jmp 0x30001cc5
lea eax, [ebp - 0x70]
push eax
push dword [ebp - 0x74]
call fcn.30001c58
mov edi, eax
cmp edi, esi
jne 0x30001d10
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x70]
push eax
push esi
push dword [ebp - 0x74]
mov dword [ebp - 0x78], 0x105
call ebx
test eax, eax
je 0x30001cb3
push dword [ebp - 0x74]
call dword [entry0]
push dword [ebp + 0x1ac]
push dword [ebp + 0x1a8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
cmp eax, esi
jle 0x30001d2b
and eax, 0xffff
or eax, 0x80070000
jmp 0x30001d2b
push dword [ebp - 0x74]
call dword [entry0]
cmp edi, esi
jle 0x30001d29
and edi, 0xffff
or edi, 0x80070000
mov eax, edi
pop edi
pop ebx
mov ecx, dword [ebp + 0x19c]
pop esi
call fcn.3000607d
add ebp, 0x1a0
leave
ret 8

Function at 0x30002211
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp + 0xc]
push eax
push 0x20019
push 0
push dword [ebp + 0xc]
xor esi, esi
push dword [ebp + 8]
inc esi
mov dword [ebp - 4], 4
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x3000223f
xor eax, eax
jmp 0x30002267
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x14]
push 0
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x3000225c
xor esi, esi
push dword [ebp + 0xc]
call dword [entry0]
mov eax, esi
pop esi
leave
ret 0x10
Function at 0x30002312
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x300080b4]
push esi
push edi
xor edi, edi
cmp dword [ebp + 8], edi
mov dword [ebp - 4], eax
mov esi, 0x104
lea eax, [ebp - 0x20c]
je 0x3000234f
push esi
push eax
call dword [0x300010f0]
cmp eax, edi
je 0x30002347
cmp eax, esi
jbe 0x30002363
call dword [fcn.300010f4]
jmp 0x3000235f
push 1
push 0x1c
push eax
push edi
call dword [0x300011d8]
test eax, eax
jne 0x30002363
xor eax, eax
jmp 0x300023c4
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x30001448
call fcn.30004b95
cmp dword [ebp + 8], edi
jne 0x30002392
push 0x30001470
lea eax, [ebp - 0x20c]
push eax
call fcn.30002283
test eax, eax
je 0x30002392
xor edi, edi
inc edi
push 0x30001484
lea eax, [ebp - 0x20c]
push eax
call fcn.30002283
test eax, eax
je 0x300023aa
or edi, 2
push 0x30001498
lea eax, [ebp - 0x20c]
push eax
call fcn.30002283
test eax, eax
je 0x300023c2
or edi, 4
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.3000607d
leave
ret 4

Function at 0x300023f6
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x300080b4]
push ebx
xor ebx, ebx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
cmp eax, ebx
mov dword [ebp - 0x10], eax
je 0x3000245b
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push ebx
call sub.ADVAPI32.dll_CheckTokenMembership
test eax, eax
jne 0x30002452
mov dword [ebp - 0x10], ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
pop ebx
call fcn.3000607d
leave
ret
Function at 0x300030af
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
mov esi, dword [ebp + 0xc]
shl esi, 2
push esi
lea eax, [ebp - 0xc]
push eax
call fcn.30003643
test eax, eax
je 0x3000324b
mov ecx, esi
mov edx, ecx
push ebx
shr ecx, 2
push edi
mov edi, dword [ebp - 0xc]
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
xor ebx, ebx
xor esi, esi
cmp dword [ebp + 0xc], ebx
rep stosb byte es:[edi], al
mov dword [ebp - 0x14], esi
jle 0x30003241
mov edi, dword [ebp + 8]
add edi, 0x10
mov dword [ebp - 0x10], edi
cmp dword [edi - 0x10], ebx
jne 0x3000322e
mov eax, dword [ebp - 0xc]
cmp dword [eax + esi*4], ebx
jne 0x3000322e
mov eax, dword [edi]
cmp byte [eax], 0
jne 0x30003122
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
jmp 0x3000313d
lea ecx, [ebp - 8]
push ecx
push 0x20019
push ebx
push eax
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x3000313d
mov dword [ebp - 8], ebx
cmp esi, dword [ebp + 0xc]
mov dword [ebp - 4], esi
jge 0x3000321b
lea esi, [edi - 8]
push dword [edi]
push dword [esi + 8]
call fcn.30002c35
test eax, eax
jne 0x30003203
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
xor edi, edi
inc edi
mov dword [eax + ecx*4], edi
cmp dword [esi - 8], ebx
jne 0x30003203
mov ecx, dword [ebp - 8]
cmp ecx, ebx
je 0x30003203
mov eax, dword [esi + 4]
sub eax, ebx
je 0x30003269
dec eax
je 0x30003266
dec eax
je 0x30003250
dec eax
jne 0x30003203
push edi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp + 8]
push eax
push dword [esi + 0xc]
mov dword [ebp + 8], ebx
push ecx
call fcn.30002ba5
test eax, eax
je 0x30003203
push ebx
push ebx
push 0xffffffffffffffff
push dword [ebp + 8]
push ebx
push ebx
call dword [0x300010cc]
mov ebx, eax
push 0x106
lea edi, [ebx + ebx]
push edi
call fcn.300048c4
test eax, eax
mov dword [esi - 4], eax
je 0x300031f3
push ebx
push eax
push 0xffffffffffffffff
push dword [ebp + 8]
push 0
push 0
call dword [0x300010cc]
mov dword [esi], edi
mov dword [esi - 8], 1
cmp dword [ebp + 8], 0
je 0x30003201
push dword [ebp + 8]
call fcn.300047d9
xor ebx, ebx
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
mov edi, dword [ebp - 0x10]
add esi, 0x18
cmp eax, dword [ebp + 0xc]
jl 0x3000314c
mov esi, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0x10]
je 0x3000322e
cmp eax, ebx
je 0x3000322e
push eax
call dword [entry0]
inc esi
add edi, 0x18
cmp esi, dword [ebp + 0xc]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], edi
jl 0x300030fe
push dword [ebp - 0xc]
call fcn.30003741
pop edi
pop ebx
pop esi
leave
ret 0xc
push 3
push esi
lea eax, [esi - 4]
push eax
push dword [esi + 0xc]
push ecx
call fcn.30002ba5
test eax, eax
je 0x30003203
jmp 0x3000328c
push edi
jmp 0x30003252
lea eax, [ebp - 0x18]
push eax
lea eax, [esi - 4]
push eax
push ebx
push ebx
push dword [esi + 0xc]
mov dword [ebp - 0x18], 4
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x30003203
mov dword [esi - 8], edi
jmp 0x30003203
Function at 0x300033ca
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call fcn.30003294
test eax, eax
je 0x3000343b
lea eax, [ebp + 8]
push eax
push 0x20019
push 0
push dword [ebp - 4]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x3000343b
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
add eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 0x10]
push eax
push 0
push 0x30001750
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x30003431
cmp dword [ebp - 0x10], 1
je 0x30003431
and word [esi], ax
push dword [ebp + 8]
call dword [entry0]
pop esi
leave
ret 0xc

Function at 0x3000389f
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
movzx eax, word [esi]
add eax, esi
push edi
mov dword [esp + 0x18], esi
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
xor edi, edi
cmp eax, esi
mov ebp, esi
je 0x3000391a
mov edx, dword [0x300200e8]
cmp eax, ebp
jne 0x300038d6
movzx ecx, byte [pe_dos_header]
test ecx, ecx
je 0x3000391a
test dl, 1
je 0x300038f0
mov ecx, eax
and cl, 7
neg cl
mov ebx, edx
sbb ecx, ecx
add ecx, 1
and ebx, 2
xor ecx, ebx
je 0x300038fa
movzx ecx, word [eax + 2]
cmp ecx, dword [esp + 0x1c]
jge 0x3000394c
mov dword [esp + 0x18], eax
movzx eax, word [eax]
xor ecx, ecx
add eax, esi
test edi, edi
sete cl
mov edi, ecx
test edi, edi
je 0x30003916
movzx ebp, word [ebp]
add ebp, esi
cmp eax, esi
jne 0x300038c7
mov ax, word [esi + 6]
cmp ax, 0xfffe
je 0x30003943
movzx eax, ax
cmp word [eax*2 + 0x300080e0], 5
jne 0x30003943
push eax
call fcn.300051df
add esp, 4
test eax, eax
jne 0x300038b5
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x30003a4f
Capabilities:
Encrypt data using rc4 prga

Disassembly:
test byte [0x300200e8], 1
mov edx, dword [esp + 8]
mov eax, dword [esp + 4]
jne 0x30003a7e
mov cx, word [eax]
test cx, cx
je 0x30003a7e
movzx ecx, cx
add ecx, eax
movzx ecx, word [ecx + 2]
push esi
lea esi, [edx + 4]
cmp ecx, esi
pop esi
jae 0x30003a8b
cmp ecx, edx
je 0x30003a8b
mov dword [esp + 8], edx
mov dword [esp + 4], eax
jmp fcn.3000389f
ret
Function at 0x300049be
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
test eax, 3
je 0x300049f2
cmp byte [eax], 0
je 0x30004a36
lea eax, [eax + 1]
test eax, 3
je 0x300049f2
cmp byte [eax], 0
je 0x30004a36
lea eax, [eax + 1]
test eax, 3
je 0x300049f2
cmp byte [eax], 0
je 0x30004a36
lea eax, [eax + 1]
mov edx, dword [eax]
lea eax, [eax + 4]
mov ecx, edx
sub edx, 0x1010101
xor edx, ecx
and edx, 0x80808080
je 0x300049f2
test cl, cl
lea eax, [eax - 4]
je 0x30004a36
test ecx, 0xff00
lea eax, [eax + 1]
je 0x30004a36
test ecx, 0xff0000
lea eax, [eax + 1]
je 0x30004a36
test ecx, 0xff000000
lea eax, [eax + 1]
je 0x30004a36
lea eax, [eax + 1]
jmp 0x300049f2
sub eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4

Function at 0x30004a45
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
test eax, 3
je 0x30004a6c
cmp word [eax], 0
je 0x30004a65
lea eax, [eax + 2]
test eax, 3
je 0x30004a6c
jmp 0x30004a53
sub eax, dword [ebp + 8]
shr eax, 1
jmp 0x30004aa7
mov edx, dword [eax]
lea eax, [eax + 4]
mov ecx, edx
sub edx, 0x10001
xor edx, ecx
and edx, 0x80008000
je 0x30004a6c
sub eax, dword [ebp + 8]
shr eax, 1
test cx, cx
lea eax, [eax - 2]
je 0x30004aa7
test ecx, 0xffff0000
lea eax, [eax + 1]
je 0x30004aa7
lea eax, [eax*2 + 2]
add eax, dword [ebp + 8]
jmp 0x30004a6c
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 4
Function at 0x431006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..3ean
nop
nop
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x431072
nop
nop
nop
mov ebx, 0x40915c
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x5fc073c2
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x431060
mov eax, section..7LWLf
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4310d2
mov ebx, 0x42f3f8
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0xd250846
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x4310c0
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0xaddbac
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
mov eax, 0xc
push esi
push edi
cmp dword [ecx + 8], eax
jae 0xaddbce
mov edx, dword [ebp + 8]
mov dword [edx + 0x1c], eax
mov eax, 0xc0000023
pop edi
pop esi
pop ebx
pop ebp
ret 4
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0xc]
cmp dword [esi + 4], 0
jne 0xaddbfc
mov ecx, dword [esi]
cmp word [ecx], 0x5a4d
jne 0xaddbfc
movzx eax, byte [ecx + 0x3c]
cmp word [eax + ecx], 0x4550
jne 0xaddbfc
mov edx, dword [eax + ecx + 0x50]
sub edx, 0x4000
mov dword [esi + 4], edx
mov eax, dword [esi + 4]
test eax, eax
jne 0xaddc0f
mov eax, 0xc000000d
pop edi
pop esi
pop ebx
pop ebp
ret 4
mov ecx, dword [esi]
mov ebx, dword [0x404054]
add ecx, eax
push ecx
call ebx
test al, al
jne 0xaddc3e
mov edi, 0xfffffffc
lea esp, [esp]
add dword [esi + 4], edi
mov edx, dword [esi]
add edx, dword [esi + 4]
push edx
call ebx
test al, al
je 0xaddc2c
mov edi, dword [ebp + 8]
movzx ebx, byte [esi + 8]
mov ecx, dword [esi + 4]
lea eax, [esi + 9]
push eax
mov eax, dword [esi]
call fcn.00add79c
test eax, eax
je 0xaddc8b
mov ebx, cr0
push ebx
and ebx, 0xfffeffff
mov cr0, ebx
movzx ecx, byte [esi + 8]
push ecx
add esi, 0x49
push esi
push eax
call fcn.00adf7be
add esp, 0xc
pop ebx
mov cr0, ebx
wbinvd
mov edx, dword [edi + 0xc]
mov dword [edx], 1
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 4
mov eax, dword [edi + 0xc]
pop edi
pop esi
mov dword [eax], 0
mov eax, 0xc0000225
pop ebx
pop ebp
ret 4

Function at 0xaeea8e
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42c574], 0
push esi
jne 0xaeeac5
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0xaeea9f
mov dword [ecx*4 + 0x42c570], eax
inc ecx
cmp ecx, 0x100
jl 0xaeea9a
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0xaeeaf6
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x42c570]
xor eax, esi
inc ecx
dec edx
jne 0xaeead8
pop edi
not eax
pop esi
ret 0xc
Function at 0xb03b5c
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5026b8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x58e2fc]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
mov eax, dword [0x58e2fc]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x4c]
mov esi, ecx
mov ecx, dword [esp + 8]
push ecx
push edx
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], 0
mov byte [esp + 0x1c], 0
call fcn.00b0335c
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x44]
push edx
push eax
push ecx
mov ecx, esi
mov dword [esp + 0x48], 0
call fcn.00b0365c
cmp dword [esp + 0x24], 0x10
jb 0xb03bf6
mov edx, dword [esp + 0x10]
push edx
call fcn.00bd897e
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00bd9175
add esp, 0x30
ret 0x1c
Function at 0xb0831c
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x502c58
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x58e2fc]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov dword [esi], 0x51b398
mov dword [esi + 8], 0x51b360
lea edi, [esi + 0x4c]
mov ecx, edi
mov dword [esp + 0x18], 0
call fcn.00b0dc8c
mov eax, dword [edi]
push eax
call fcn.00bd897e
lea edi, [esi + 0x30]
add esp, 4
mov ecx, edi
call fcn.00b0266c
mov ecx, dword [edi + 0x14]
push ecx
call fcn.00bd897e
mov edx, dword [edi]
push edx
mov dword [edi + 0x14], 0
call fcn.00bd897e
add esp, 8
lea ecx, [esi + 0xc]
call fcn.00b0605c
mov dword [esi], 0x510354
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret

Function at 0xb1291c
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x5037eb
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x58e2fc]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
lea ecx, [esi + 0x10]
mov dword [esi], 0x520398
xor eax, eax
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], eax
mov byte [ecx + 4], al
mov edi, dword [esp + 0x28]
mov dword [esp + 0x20], eax
mov ax, word [edi]
mov word [esi + 4], ax
movzx edx, word [edi + 2]
mov word [esi + 6], dx
mov eax, dword [edi + 4]
mov dword [esi + 8], eax
movzx edx, byte [edi + 8]
mov byte [esi + 0xc], dl
movzx eax, byte [edi + 9]
mov byte [esi + 0xd], al
movzx edx, byte [edi + 0xa]
mov byte [esi + 0x2c], dl
movzx eax, byte [edi + 0xb]
mov byte [esi + 0x2d], al
movzx edx, byte [edi + 0xc]
mov byte [esi + 0x2e], dl
movzx eax, byte [edi + 0xd]
mov byte [esi + 0x2f], al
movzx edx, word [edi + 0xe]
mov word [esi + 0x30], dx
movzx eax, byte [edi + 0x10]
mov byte [esi + 0x32], al
mov ebp, dword [edi + 0x14]
mov eax, ebp
lea ebx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0xb129bd
sub eax, ebx
push eax
push ebp
call fcn.00af9a2c
mov cl, byte [edi + 0x11]
mov byte [esi + 0x33], cl
mov dl, byte [edi + 0x12]
mov byte [esi + 0x34], dl
mov al, byte [edi + 0x13]
mov byte [esi + 0x35], al
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4