joyce8/EMBER2024-capa huggingface dataset:
Function at 0x436dc0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x4cf22c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
push esi
push edi
mov eax, ebx
cmp dword [ebx + 0x14], 0x10
jb 0x436de2
mov eax, dword [ebx]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x436f6d
mov edi, dword [ebx + 0x10]
test edi, edi
je 0x436fb7
xor ecx, ecx
mov dword [ebp - 0x128], ecx
mov esi, 0x4baedc
mov edx, edi
lea eax, [esi + 1]
mov dword [ebp - 0x124], eax
mov al, byte [esi]
inc esi
test al, al
jne 0x436e15
sub esi, dword [ebp - 0x124]
cmp dword [ebx + 0x14], 0x10
mov dword [ebp - 0x124], ebx
jb 0x436e36
mov eax, dword [ebx]
mov dword [ebp - 0x124], eax
test esi, esi
je 0x436eb6
cmp ecx, edx
jae 0x436eb6
push 0x100
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.0047e610
xor edx, edx
lea eax, [esi + 0x4baedc]
add esp, 0xc
mov ecx, 0x4baedc
cmp eax, ecx
cmovb esi, edx
test esi, esi
je 0x436e83
nop word [eax + eax]
movzx eax, byte [ecx]
lea ecx, [ecx + 1]
inc edx
mov byte [ebp + eax - 0x120], 1
cmp edx, esi
jne 0x436e70
mov esi, dword [ebp - 0x124]
mov eax, dword [ebp - 0x128]
add eax, esi
lea edx, [esi + edi]
cmp eax, edx
jae 0x436eb6
nop dword [eax + eax]
movzx ecx, byte [eax]
cmp byte [ebp + ecx - 0x120], 0
jne 0x436f80
inc eax
cmp eax, edx
jb 0x436ea0
or eax, 0xffffffff
cmp eax, 0xffffffff
mov dword [ebp - 0xc], 0
mov esi, edi
mov dword [ebp - 8], 0xf
cmovne esi, eax
mov byte [ebp - 0x1c], 0
cmp edi, esi
mov eax, esi
mov ecx, ebx
cmovb eax, edi
cmp dword [ebx + 0x14], 0x10
jb 0x436ee4
mov ecx, dword [ebx]
push eax
push ecx
lea ecx, [ebp - 0x1c]
call fcn.0040b740
cmp dword [ebp - 0xc], 0
je 0x436f23
cmp dword [ebp - 8], 0x10
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x436f23
cmp dword [ebp - 8], 0x10
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push eax
call fcn.00489b74
add esp, 4
test eax, eax
jne 0x436f87
mov edx, dword [ebp - 8]
lea ecx, [esi + 1]
mov dword [ebp - 0x128], ecx
cmp edx, 0x10
jb 0x436f62
mov ecx, dword [ebp - 0x1c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x436f52
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x436fca
push edx
push ecx
call fcn.00466e3f
mov ecx, dword [ebp - 0x128]
add esp, 8
mov edi, dword [ebx + 0x10]
cmp ecx, edi
jb 0x436e05
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004667cd
mov esp, ebp
pop ebp
ret
sub eax, esi
jmp 0x436eb9
mov edx, dword [ebp - 8]
cmp edx, 0x10
jb 0x436fb7
mov ecx, dword [ebp - 0x1c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x436fad
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x436fca
push edx
push ecx
call fcn.00466e3f
add esp, 8
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004667cd
mov esp, ebp
pop ebp
ret
call fcn.004852a9
int3
Function at 0x4376b0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a3e48
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x4cf22c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 8]
mov edx, eax
mov dword [ebp - 0x20], eax
cmp dword [eax + 0x14], 0x10
mov edi, dword [eax + 0x10]
jb 0x4376f0
mov edx, dword [eax]
lea ecx, [edx + edi]
xor esi, esi
cmp edx, ecx
mov eax, 0x811c9dc5
cmova edi, esi
test edi, edi
je 0x437716
movzx ecx, byte [edx]
lea edx, [edx + 1]
xor ecx, eax
inc esi
imul eax, ecx, 0x1000193
cmp esi, edi
jne 0x437703
mov ecx, dword [ebx + 0xa8]
mov edi, dword [ebx + 0x9c]
and ecx, eax
mov eax, dword [ebx + 0x94]
mov ebx, dword [ebp - 0x20]
mov dword [ebp - 0x28], edi
mov edx, dword [edi + ecx*8]
mov esi, edx
lea ecx, [ecx*8 + 4]
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], eax
cmp edx, eax
je 0x43774e
mov eax, dword [ecx + edi]
mov eax, dword [eax]
cmp esi, eax
je 0x4377fa
cmp dword [ebx + 0x14], 0x10
mov edx, ebx
jb 0x437760
mov edx, dword [ebx]
cmp dword [esi + 0x1c], 0x10
lea ecx, [esi + 8]
jb 0x43776c
mov ecx, dword [esi + 8]
mov edi, dword [esi + 0x18]
cmp edi, dword [ebx + 0x10]
jne 0x4377d0
sub edi, 4
jb 0x437791
nop dword [eax]
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x437796
add ecx, 4
add edx, 4
sub edi, 4
jae 0x437780
cmp edi, 0xfffffffc
je 0x4377ca
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x4377c3
cmp edi, 0xfffffffd
je 0x4377ca
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x4377c3
cmp edi, 0xfffffffe
je 0x4377ca
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x4377c3
cmp edi, 0xffffffff
je 0x4377ca
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
je 0x4377ca
sbb eax, eax
or eax, 1
jmp 0x4377cc
xor eax, eax
test eax, eax
je 0x4377e3
mov esi, dword [esi]
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x24]
mov edi, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x1c]
jmp 0x437745
lea eax, [esi + 8]
push eax
push ebx
call fcn.0040cb60
mov ecx, dword [ebp - 0x18]
test al, al
cmove ecx, esi
cmp ecx, dword [ebp - 0x18]
jne 0x437818
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004667cd
mov esp, ebp
pop ebp
ret 4
push ebx
lea ecx, [ebp - 0x40]
call fcn.00439120
sub esp, 0x14
mov dword [ebp - 4], 0
mov ecx, esp
mov edx, eax
push str._already_exists
call fcn.00429110
add esp, 4
call fcn.00436d40
int3
Function at 0x438fa0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a4020
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x4cf22c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x1c], edi
mov ecx, dword [edi + 4]
mov esi, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x18], edx
cmp esi, dword [ecx]
jne 0x43903f
cmp eax, ecx
jne 0x43903f
lea ecx, [edi + 4]
mov dword [ebp - 4], 0
call fcn.0040b350
mov eax, dword [edi + 0x14]
sub eax, dword [edi + 0xc]
sar eax, 2
cmp eax, 0x10
jae 0x43900e
push 0x10
lea ecx, [edi + 0xc]
call fcn.0040d090
mov eax, dword [edi + 4]
lea ecx, [edi + 0xc]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0x10
call fcn.0040c8f0
mov eax, dword [ebp - 0x18]
mov dword [edi + 0x18], 7
mov dword [edi + 0x1c], 8
mov ecx, dword [edi + 4]
mov ecx, dword [ecx]
mov dword [eax], ecx
jmp 0x4390f9
cmp esi, eax
je 0x4390f5
mov eax, dword [esi]
lea ecx, [esi + 8]
mov dword [ebp + 0xc], eax
cmp dword [esi + 0x1c], 0x10
mov ebx, dword [esi + 0x18]
jb 0x43905b
mov ecx, dword [esi + 8]
xor edi, edi
lea edx, [ecx + ebx]
cmp ecx, edx
mov eax, 0x811c9dc5
cmova ebx, edi
test ebx, ebx
je 0x439083
nop
movzx edx, byte [ecx]
lea ecx, [ecx + 1]
xor edx, eax
inc edi
imul eax, edx, 0x1000193
cmp edi, ebx
jne 0x439070
mov edi, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x18]
and ecx, eax
lea edx, [ecx*8]
mov ecx, dword [edi + 0xc]
add ecx, edx
cmp dword [ecx + 4], esi
jne 0x4390b9
cmp dword [ecx], esi
jne 0x4390b1
mov eax, dword [edi + 4]
mov dword [ecx], eax
mov ecx, dword [edi + 0xc]
mov eax, dword [edi + 4]
mov dword [edx + ecx + 4], eax
jmp 0x4390c1
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
jmp 0x4390c1
cmp dword [ecx], esi
jne 0x4390c1
mov eax, dword [esi]
mov dword [ecx], eax
mov edx, dword [esi + 4]
lea ecx, [esi + 8]
mov eax, dword [esi]
mov dword [edx], eax
mov edx, dword [esi]
mov eax, dword [esi + 4]
mov dword [edx + 4], eax
dec dword [edi + 8]
call fcn.004118a0
push 0x28
push esi
call fcn.00466e3f
mov esi, dword [ebp + 0xc]
add esp, 8
cmp esi, dword [ebp + 0x10]
jne 0x439047
mov edx, dword [ebp - 0x18]
mov dword [edx], esi
mov eax, edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004667cd
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4394b0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, ecx
mov dword [ebp - 0xc], ebx
mov edx, edi
mov dword [ebp - 0x10], eax
cmp dword [edi + 0x14], 0x10
mov ecx, dword [edi + 0x10]
jb 0x4394d4
mov edx, dword [edi]
mov edi, dword [edi + 0x10]
xor esi, esi
add ecx, edx
mov eax, 0x811c9dc5
cmp edx, ecx
cmova edi, esi
test edi, edi
je 0x439503
nop dword [eax]
movzx ecx, byte [edx]
lea edx, [edx + 1]
xor ecx, eax
inc esi
imul eax, ecx, 0x1000193
cmp esi, edi
jne 0x4394f0
mov ecx, dword [ebx + 0x18]
and ecx, eax
mov eax, dword [ebx + 0xc]
mov ebx, dword [ebx + 4]
mov edx, dword [eax + ecx*8]
lea eax, [eax + ecx*8]
add eax, 4
mov dword [ebp - 4], edx
mov esi, edx
mov dword [ebp - 8], eax
nop
cmp edx, ebx
jne 0x439528
mov eax, ebx
jmp 0x43952c
mov eax, dword [eax]
mov eax, dword [eax]
cmp esi, eax
je 0x4395e4
mov eax, dword [ebp + 0xc]
mov edi, eax
cmp dword [eax + 0x14], 0x10
jb 0x439541
mov edi, dword [eax]
cmp dword [esi + 0x1c], 0x10
lea ecx, [esi + 8]
jb 0x43954d
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0x18]
cmp edx, dword [eax + 0x10]
jne 0x4395b0
sub edx, 4
jb 0x439571
nop word [eax + eax]
mov eax, dword [ecx]
cmp eax, dword [edi]
jne 0x439576
add ecx, 4
add edi, 4
sub edx, 4
jae 0x439560
cmp edx, 0xfffffffc
je 0x4395aa
mov al, byte [ecx]
cmp al, byte [edi]
jne 0x4395a3
cmp edx, 0xfffffffd
je 0x4395aa
mov al, byte [ecx + 1]
cmp al, byte [edi + 1]
jne 0x4395a3
cmp edx, 0xfffffffe
je 0x4395aa
mov al, byte [ecx + 2]
cmp al, byte [edi + 2]
jne 0x4395a3
cmp edx, 0xffffffff
je 0x4395aa
mov al, byte [ecx + 3]
cmp al, byte [edi + 3]
je 0x4395aa
sbb eax, eax
or eax, 1
jmp 0x4395ac
xor eax, eax
test eax, eax
je 0x4395bd
mov esi, dword [esi]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
jmp 0x439520
mov edi, dword [ebp + 0xc]
lea eax, [esi + 8]
push eax
push edi
call fcn.0040cb60
test al, al
je 0x4395d7
test al, al
mov ecx, ebx
cmove ebx, esi
jmp 0x4395e9
mov ecx, dword [ebp - 0xc]
test al, al
cmove ebx, esi
mov ecx, dword [ecx + 4]
jmp 0x4395e9
mov edi, dword [ebp + 0xc]
mov ecx, ebx
mov eax, ebx
cmp ebx, ecx
jne 0x439643
mov esi, dword [ecx]
lea eax, [ebp - 8]
push ecx
push eax
push ecx
mov dword [ebp - 8], edi
mov edi, dword [esi + 4]
push edi
push esi
call fcn.0043a630
mov ebx, dword [ebp - 0xc]
mov ecx, eax
mov eax, 0x6666665
mov edx, dword [ebx + 8]
sub eax, edx
cmp eax, 1
jb 0x439657
lea eax, [edx + 1]
mov dword [ebx + 8], eax
mov dword [esi + 4], ecx
mov esi, dword [ebp - 0x10]
mov dword [edi], ecx
mov ecx, ebx
mov edx, dword [ebx + 4]
mov edx, dword [edx]
push edx
add edx, 8
push edx
push esi
call fcn.004198d0
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
mov dword [ecx], eax
mov eax, ecx
mov byte [ecx + 4], 0
mov esp, ebp
pop ebp
ret 8
push str.list_T__too_long
call fcn.00464d76
int3
Function at 0x439710
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a4131
mov eax, dword fs:[0]
push eax
sub esp, 0x140
mov eax, dword [0x4cf22c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x11c]
push 0x10c
push 0
push eax
call fcn.0047e610
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x114], 0
add esp, 0xc
mov dword [ebp - method.fmt::v9::basic_memory_buffer_char__500__class_std::allocator_char__.virtual_0], vtable.fmt::v9::basic_memory_buffer_char__250__class_std::allocator_char__.0
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x110], 0xfa
mov dword [ebp - 4], 0
lea edx, [ebp - 0x11c]
mov ecx, dword [edi + 8]
push edx
push esi
mov eax, dword [ecx]
call dword [eax + 4]
push dword [edi + 0x48]
mov esi, dword [ebp - 0x114]
push esi
push 1
push dword [ebp - 0x118]
call fcn.00489b1c
add esp, 0x10
cmp eax, esi
jne 0x439818
mov ecx, dword [ebp - 0x118]
lea eax, [ebp - 0x10c]
mov dword [ebp - method.fmt::v9::basic_memory_buffer_char__500__class_std::allocator_char__.virtual_0], vtable.fmt::v9::basic_memory_buffer_char__250__class_std::allocator_char__.0
cmp ecx, eax
je 0x4397fb
mov edx, dword [ebp - 0x110]
mov eax, ecx
cmp edx, 0x1000
jb 0x4397f1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x439852
push edx
push ecx
call fcn.00466e3f
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004667cd
mov esp, ebp
pop ebp
ret 4
lea edx, [edi + 0x4c]
lea ecx, [ebp - 0x134]
call fcn.00436da0
push eax
mov edx, str.Failed_writing_to_file
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x14c]
call fcn.00439210
add esp, 4
mov esi, eax
mov byte [ebp - 4], 2
call fcn.00484d99
mov ecx, esi
mov edx, dword [eax]
call fcn.004055b0
call fcn.004852a9
int3
Function at 0x4398e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a41bc
mov eax, dword fs:[0]
push eax
sub esp, 0x144
mov eax, dword [0x4cf22c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov edi, dword [ebp + 8]
lea esi, [ebx + 0xc]
push esi
mov dword [ebp - 0x120], esi
call fcn.00465242
add esp, 4
test eax, eax
je 0x439932
push eax
call fcn.004647e5
add esp, 4
push 0x10c
lea eax, [ebp - 0x11c]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.0047e610
lea eax, [ebp - 0x10c]
mov dword [ebp - 0x114], 0
add esp, 0xc
mov dword [ebp - method.fmt::v9::basic_memory_buffer_char__500__class_std::allocator_char__.virtual_0], vtable.fmt::v9::basic_memory_buffer_char__250__class_std::allocator_char__.0
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x110], 0xfa
mov byte [ebp - 4], 1
lea edx, [ebp - 0x11c]
mov ecx, dword [ebx + 8]
push edx
push edi
mov eax, dword [ecx]
call dword [eax + 4]
push dword [ebx + 0x48]
mov edi, dword [ebp - 0x114]
push edi
push 1
push dword [ebp - 0x118]
call fcn.00489b1c
add esp, 0x10
cmp eax, edi
jne 0x439a32
mov byte [ebp - 4], 0
lea eax, [ebp - 0x10c]
mov ecx, dword [ebp - 0x118]
mov dword [ebp - method.fmt::v9::basic_memory_buffer_char__500__class_std::allocator_char__.virtual_0], vtable.fmt::v9::basic_memory_buffer_char__250__class_std::allocator_char__.0
cmp ecx, eax
je 0x4399f7
mov edx, dword [ebp - 0x110]
mov eax, ecx
cmp edx, 0x1000
jb 0x4399ed
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x439a6c
push edx
push ecx
call fcn.00466e3f
add esp, 8
push esi
mov dword [ebp - 4], 4
call fcn.00465267
add esp, 4
test eax, eax
je 0x439a14
push eax
call fcn.004647e5
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004667cd
mov esp, ebp
pop ebp
ret 4
lea edx, [ebx + 0x4c]
lea ecx, [ebp - 0x138]
call fcn.00436da0
push eax
mov edx, str.Failed_writing_to_file
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x150]
call fcn.00439210
add esp, 4
mov esi, eax
mov byte [ebp - 4], 3
call fcn.00484d99
mov ecx, esi
mov edx, dword [eax]
call fcn.004055b0
call fcn.004852a9
int3

Function at 0x469537
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x4973b9
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00497079
Function at 0x41b089
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x41b098
pop dword [ebp - 0x40]
mov eax, 0x4027cc7d
add eax, 0xc019e41b
sub dword [ebp - 0x40], eax
push 0x40
push 0x1000
push 0x54544
push 0
mov eax, 0x38e1500
sub eax, 0x3496250
add eax, dword [ebp - 0x40]
call dword [eax]
mov ecx, 0x58de
xor edi, edi
add edi, eax
mov esi, 0x488e00
add esi, dword [ebp - 0x40]
mov ebx, 0x52c8bbfb
add ebx, 0xe664b2da
mov dword [ebp - 4], 0x6a036df6
mov edx, dword [esi]
xor dword [ebp - 0x28], edi
sub edx, ebx
xor dword [ebp - 0x34], ecx
mov dword [edi], edx
sub dword [ebp - 0x18], 0xd4a89479
add edi, 0xf3652c3f
sub edi, 0xf3652c3b
add esi, 0x2f6d4552
sub esi, 0x2f6d454e
loop 0x41b0ed
add eax, 0x324adc16
sub eax, 0x324985cb
xor ebx, ebx
add ebx, eax
add eax, 0xd973d1fa
add eax, 0x268c2e0b
mov ecx, 0x400000
add ecx, dword [ebp - 0x40]
call ebx
leave
ret

Function at 0x4400c9
Capabilities:
Encrypt data using dpapi

Disassembly:
push esi
push edi
push 0x46c6d0
push str.AdvApi32.dll
call main
mov edi, dword [sym.imp.kernel32.dll_GetProcAddress]
mov esi, eax
test esi, esi
js 0x44010c
push str.SystemFunction040
push dword [0x46c6d0]
call edi
push str.SystemFunction041
push dword [0x46c6d0]
mov dword [0x46c6c0], eax
call edi
mov dword [0x46c6c4], eax
jmp 0x440111
mov eax, dword [0x46c6c4]
cmp dword [0x46c6c0], 0
je 0x440122
test eax, eax
jne 0x4401c9
push 0x46c6d4
push str.Crypt32.dll
call main
mov esi, eax
test esi, esi
js 0x4401d3
push str.CryptProtectMemory
push dword [0x46c6d4]
call edi
cmp dword [0x46c6c0], 0
mov dword [0x46c6c8], eax
jne 0x440187
test eax, eax
jne 0x440187
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x440171
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x440178
mov esi, 0x80004005
push esi
push 0x28
push str.c:_agent_work138_s_srclibsdutilcryputil.cpp
call fcn.004038f5
jmp 0x4401d3
push str.CryptUnprotectMemory
push dword [0x46c6d4]
call edi
cmp dword [0x46c6c4], 0
mov dword [0x46c6cc], eax
jne 0x4401c9
test eax, eax
jne 0x4401c9
call dword [sym.imp.kernel32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x4401bd
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x4401c4
mov esi, 0x80004005
push esi
push 0x2d
jmp 0x44017b
mov dword [0x46c6d8], 1
pop edi
mov eax, esi
pop esi
ret
Function at 0x643df0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x23e000]
push edi
jmp 0x643e0a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x643e11
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x643e00
mov eax, 1
add ebx, ebx
jne 0x643e23
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x643e34
jne 0x643e53
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x643e53
dec eax
add ebx, ebx
jne 0x643e40
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x643e18
add ebx, ebx
jne 0x643e4f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x643ea5
xor ecx, ecx
sub eax, 3
jb 0x643e6b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x643eda
sar eax, 1
mov ebp, eax
jmp 0x643e76
add ebx, ebx
jne 0x643e76
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x643e44
inc ecx
add ebx, ebx
jne 0x643e84
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x643e44
add ebx, ebx
jne 0x643e91
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x643e86
jne 0x643ea2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x643e86
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x643ec4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x643eb6
jmp 0x643e06
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x643ec4
add edi, ecx
jmp 0x643e06
pop esi
mov edi, esi
mov ecx, 0x255
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x643ee2
cmp byte [edi], 1
jne 0x643ee2
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 0x643ee7
lea edi, [esi + 0x241000]
mov eax, dword [edi]
or eax, eax
je 0x643f5f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x26674c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x266800]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x643f14
mov ecx, edi
jns 0x643f43
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 + 0x266804]
or eax, eax
je 0x643f59
mov dword [ebx], eax
add ebx, 4
jmp 0x643f31
call dword [esi + 0x266814]
mov ebp, dword [esi + 0x266808]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
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 0x643f93
sub esp, 0xffffff80
jmp 0x40354b
Function at 0x432003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..wixburn
nop
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x432072
nop
mov ebx, 0x40c7d0
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x4dd6683a
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x432060
nop
nop
nop
mov eax, section..pdata
nop
nop
nop
cmp eax, 0
nop
je 0x4320d2
nop
nop
nop
nop
mov ebx, 0x42f314
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x18821f58
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4320c0
nop
nop
nop
nop
popal
nop
jmp 0x431219

Function at 0x503b67
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, ebp
push ebp
mov ebp, esp
mov dword [0x505076], ecx
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
mov dword [0x505298], eax
mov dword [0x505220], 0x5032dd
mov dword [0x50521c], 2
jmp 0x503b97
mov dword [0x505224], 0
mov dword [0x505228], 0
mov dword [0x505218], 0x30
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov dword [0x50522c], eax
mov dword [0x505240], 0x504088
mov dword [0x505238], 0xf
mov dword [0x50506e], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x505230], eax
mov dword [0x505244], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x505234], eax
push 0x505218
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x50506e]
push 0
push 0
push 0x1e5
push 0x21e
push 0xffffe52a
push 0xfffff588
push 0x40000
push str.wait
push str.aroka
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x505290], eax
push 5
push dword [0x505290]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x505290]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x503c6a
push 0
push 0
push 0
push 0x505248
call dword [sym.imp.user32.dll_GetMessageA]
or eax, eax
je 0x503c97
push 0x505248
call dword [sym.imp.user32.dll_TranslateMessage]
push 0x505248
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x503c6a
mov eax, dword [0x505250]
jmp 0x503ca4
call 0x502b16
ret