joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41f036
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x41f064
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x41f06b
cmp ebx, dword [eax + 4]
jae 0x41f06b
xor eax, eax
jmp 0x41f25b
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x41f07c
xor eax, eax
inc eax
jmp 0x41f25a
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x41f092
cmp ecx, edx
jae 0x41f1d7
cmp dword [eax + 4], 0
je 0x41f09b
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x41f083
cmp dword [ebp + 8], 0
je 0x41f0bd
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x41f1d7
cmp eax, esi
jae 0x41f1d7
mov eax, dword [0x440190]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x41f0e2
cmp dword [esi*4 + 0x440198], edi
je 0x41f1db
inc esi
cmp esi, eax
jl 0x41f0d0
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41f257
cmp dword [ebp - 8], 0x1000000
jne 0x41f257
test byte [ebp - 0xc], 0xcc
je 0x41f160
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x41f257
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x41f257
cmp word [eax + 0x18], 0x10b
jne 0x41f257
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x41f257
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x41f160
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x41f160
test byte [ecx + 0x27], 0x80
jne 0x41f1d7
push 1
push 0x4401d8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x41f074
mov ecx, dword [0x440190]
test ecx, ecx
mov edx, ecx
jle 0x41f194
lea eax, [ecx*4 + 0x440194]
cmp dword [eax], edi
je 0x41f194
dec edx
sub eax, 4
test edx, edx
jg 0x41f188
test edx, edx
jne 0x41f1c5
push 0xf
pop ebx
cmp ecx, ebx
jg 0x41f1a1
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x41f1b9
lea eax, [edx*4 + 0x440198]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x41f1a7
cmp ecx, 0x10
jge 0x41f1c5
inc ecx
mov dword [0x440190], ecx
push 0
push 0x4401d8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x41f074
xor eax, eax
jmp 0x41f25a
test esi, esi
jle 0x41f074
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x4401d8
call ebx
test eax, eax
jne 0x41f074
cmp dword [esi*4 + 0x440198], edi
je 0x41f231
mov eax, dword [0x440190]
lea esi, [eax - 1]
test esi, esi
jl 0x41f21f
cmp dword [esi*4 + 0x440198], edi
je 0x41f21b
dec esi
jns 0x41f20f
test esi, esi
jge 0x41f22f
cmp eax, 0x10
jge 0x41f22a
inc eax
mov dword [0x440190], eax
lea esi, [eax - 1]
jmp 0x41f231
je 0x41f249
xor ecx, ecx
test esi, esi
jl 0x41f249
lea eax, [ecx*4 + 0x440198]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x41f237
push 0
push 0x4401d8
call ebx
jmp 0x41f074
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41f3c3
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x4402b8], ebx
push esi
push edi
jne 0x41f443
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x41f47e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x4402b8], eax
je 0x41f47e
push str.GetActiveWindow
push edi
call esi
push 0x42e150
push edi
mov dword [0x4402bc], eax
call esi
cmp dword [0x43fea8], 2
mov dword [0x4402c0], eax
jne 0x41f443
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x4402c8], eax
je 0x41f443
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x4402c4], eax
mov eax, dword [0x4402c4]
test eax, eax
je 0x41f488
call eax
test eax, eax
je 0x41f46f
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x4402c8]
test eax, eax
je 0x41f46f
test byte [ebp - 8], 1
jne 0x41f488
cmp dword [0x43feb4], 4
jb 0x41f482
or byte [ebp + 0x12], 0x20
jmp 0x41f4a7
xor eax, eax
jmp 0x41f4b7
or byte [ebp + 0x12], 4
jmp 0x41f4a7
mov eax, dword [0x4402bc]
test eax, eax
je 0x41f4a7
call eax
mov ebx, eax
test ebx, ebx
je 0x41f4a7
mov eax, dword [0x4402c0]
test eax, eax
je 0x41f4a7
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x4402b8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41fa5e
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x432ebc]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x41fa8f
xor eax, eax
jmp 0x41fc18
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x440640]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x41facb
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.00422489
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x41fba6
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x41fbe4
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x41fb2f
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x41fb20
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x41fb00
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41fb6f
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x41fb78
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x41faf1
jmp 0x41fb7a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x41fc13
cmp dword [ebp - 0x6c], edi
je 0x41fbe4
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x41fbd9
call fcn.00418a72
mov dword [eax], 9
call fcn.00418a7b
mov dword [eax], esi
jmp 0x41fc0e
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41fbce
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x41fb7a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x41fb7a
push dword [ebp - 0x6c]
call fcn.00418a84
pop ecx
jmp 0x41fc0e
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x41fbfc
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x41fbfc
xor eax, eax
jmp 0x41fc16
call fcn.00418a72
mov dword [eax], 0x1c
call fcn.00418a7b
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x41fc16
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.00416328
add ebp, 0x3a0
leave
ret
Function at 0x421963
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x421b37
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x440640]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x421b37
test cl, 0x48
je 0x4219ce
cmp byte [eax + 5], 0xa
je 0x4219ce
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x421a20
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x421a08
call fcn.00418a72
mov dword [eax], 9
call fcn.00418a7b
mov dword [eax], esi
jmp 0x421a18
cmp eax, 0x6d
je 0x421b37
push eax
call fcn.00418a84
pop ecx
or eax, 0xffffffff
jmp 0x421b39
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x421b32
test eax, eax
je 0x421a47
cmp byte [ebx], 0xa
jne 0x421a47
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x421a50
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x421b2c
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x421b1c
cmp al, 0xd
je 0x421a82
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x421b0e
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x421a9c
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x421a97
add dword [ebp + 0x10], 2
jmp 0x421af0
mov dword [ebp + 0x10], eax
jmp 0x421b0a
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x421ac4
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x421b0a
cmp dword [ebp - 0xc], 0
je 0x421b0a
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x421ae5
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x421af0
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x421b0d
cmp ebx, dword [ebp + 0xc]
jne 0x421af5
cmp byte [ebp - 1], 0xa
jne 0x421af5
mov byte [ebx], 0xa
jmp 0x421b0d
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00420b95
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x421b0e
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x421a66
jmp 0x421b2c
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x421b2c
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x421b39
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42250c
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00416b20
mov eax, dword [0x432ebc]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.00420b95
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x42263f
push 2
push esi
push dword [ebp + 8]
call fcn.00420b95
add esp, 0xc
cmp eax, ebx
je 0x42263f
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x4225df
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.00417eb0
push 0x8000
push dword [ebp + 8]
call fcn.0042382a
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x422595
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.0041fa5e
add esp, 0xc
cmp eax, 0xffffffff
je 0x4225b5
sub edi, eax
test edi, edi
jg 0x42258d
jmp 0x4225cd
call fcn.00418a7b
cmp dword [eax], 5
jne 0x4225ca
call fcn.00418a72
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.0042382a
pop ecx
pop ecx
jmp 0x422627
jge 0x422627
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00420b95
push dword [ebp + 8]
call fcn.0041f7df
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x422627
call fcn.00418a72
mov dword [eax], 0xd
call fcn.00418a7b
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0x1008]
push dword [ebp + 8]
call fcn.00420b95
add esp, 0xc
mov eax, esi
pop edi
jmp 0x422641
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.00416328
leave
ret

Function at 0x4280e6
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x432ebc]
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov esi, eax
mov eax, 0x100
cmp esi, eax
ja 0x428135
push eax
lea eax, [ebp - 0x204]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp eax, esi
jne 0x428135
push dword [ebp + 0xc]
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x428141
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov ecx, dword [ebp - 4]
pop esi
call fcn.00416328
leave
ret 8

Function at 0x428e45
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esp + 0x10]
test edi, edi
jle 0x428e7a
cmp edi, dword [esi + 0xc]
jge 0x428e7a
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x428e7a
cmp edi, dword [eax + 8]
jge 0x428e7a
mov eax, dword [eax + 0xc]
mov edi, dword [eax + edi*4]
jmp 0x428e7c
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
ret 4
Function at 0x428f28
Capabilities:
Allocate thread local storage

Disassembly:
xor eax, eax
push esi
mov esi, ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x18], 4
mov dword [esi + 4], eax
mov dword [esi + 8], 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x428f5c
jmp fcn.00423d36
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x1c]
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
jle 0x4290c6
cmp eax, dword [edi + 0xc]
jge 0x4290c6
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
cmp esi, ebx
je 0x42901e
mov ecx, dword [ebp + 8]
cmp ecx, dword [esi + 8]
jl 0x4290af
cmp dword [ebp + 0xc], ebx
je 0x4290af
jmp 0x429048
push 0x10
call fcn.00428d11
cmp eax, ebx
je 0x429034
mov ecx, eax
call fcn.00428f1f
mov esi, eax
jmp 0x429036
xor esi, esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
mov dword [esi + eax], ecx
mov dword [edi + 0x14], esi
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x42905f
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x42906f
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
cmp eax, ebx
jne 0x429081
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.00423d36
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], eax
mov edx, dword [edi + 0xc]
sub edx, ecx
shl edx, 2
push edx
lea eax, [eax + ecx*4]
push ebx
push eax
call fcn.00417eb0
mov eax, dword [edi + 0xc]
add esp, 0xc
push esi
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x4290c1
cmp ecx, dword [esi + 8]
jge 0x4290c1
mov edx, dword [ebp + 0xc]
mov dword [eax + ecx*4], edx
push dword [ebp - 4]
jmp 0x4290c7
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x403ac5
sub eax, 0x403a6b
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x42e01e
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp int.00401219
Function at 0x40303a
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [0x4168a4]
sub esi, dword [0x40a810]
push edi
add esi, dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ebx, ebx
add eax, 0x1f4
cmp esi, ebx
mov dword [0x42370c], eax
jle 0x4031a4
push dword [0x41e8b4]
call fcn.004031cc
push ebx
push ebx
push dword [0x40a810]
push dword [0x40901c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [0x41e8b0], esi
mov dword [0x4168a0], ebx
mov ebp, 0x40a8a0
mov eax, dword [0x4168a8]
mov edi, 0x4000
sub eax, dword [0x41e8b4]
cmp eax, edi
jg 0x4030af
mov edi, eax
mov esi, 0x4128a0
push edi
push esi
call fcn.004031b6
test eax, eax
je 0x403196
add dword [0x41e8b4], edi
mov dword [0x40a830], esi
mov dword [0x40a834], edi
cmp dword [0x423710], ebx
je 0x403106
cmp dword [0x4237a0], ebx
jne 0x403106
mov eax, dword [0x41e8b0]
push ebx
sub eax, dword [0x4168a4]
sub eax, dword [esp + 0x1c]
add eax, dword [0x40a810]
mov dword [0x4168a0], eax
call fcn.00402bda
pop ecx
mov ecx, 0x40a818
mov dword [0x40a838], ebp
mov dword [0x40a83c], 0x8000
call fcn.0040611c
test eax, eax
jl 0x40319f
mov esi, dword [0x40a838]
sub esi, ebp
je 0x403160
lea eax, [esp + 0x10]
push ebx
push eax
push esi
push ebp
push dword [0x40901c]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40319b
cmp esi, dword [esp + 0x10]
jne 0x40319b
add dword [0x40a810], esi
cmp dword [0x40a834], ebx
jne 0x4030d5
jmp 0x40316c
cmp dword [0x40a834], ebx
jne 0x40319f
cmp edi, ebx
je 0x40319f
mov eax, dword [0x4168a4]
mov ecx, eax
sub ecx, dword [0x40a810]
add ecx, dword [esp + 0x18]
test ecx, ecx
jg 0x403099
push ebx
push ebx
push eax
push dword [0x40901c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x4031a4
or eax, 0xffffffff
jmp 0x4031ae
push 0xfffffffffffffffe
jmp 0x4031a1
push 0xfffffffffffffffd
pop eax
jmp 0x4031ae
push 1
call fcn.00402bda
pop ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4

Function at 0x404fdc
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc dword [eax]
mov byte [ebp - 0x72a], 0xc2
and byte [ebp - 0x729], 0
mov byte [ebp - 0x728], 0x6b
mov byte [ebp - 0x727], 0x54
mov byte [ebp - 0x726], 0x4f
mov byte [ebp - 0x725], 0x49
mov byte [ebp - 0x724], 0x48
mov byte [ebp - 0x723], 0x5c
mov byte [ebp - 0x722], 0x51
mov byte [ebp - 0x721], 0x6d
mov byte [ebp - 0x720], 0x4f
mov byte [ebp - 0x71f], 0x52
mov byte [ebp - 0x71e], 0x49
mov byte [ebp - 0x71d], 0x58
mov byte [ebp - 0x71c], 0x5e
mov byte [ebp - 0x71b], 0x49
mov byte [ebp - 0x71a], 0x3d
call fcn.00403b71
xchg edi, eax
call 0x85cdbc2e
aam 0xf8
invalid
Function at 0x40608e
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x42228c], 0
push esi
jne 0x4060c5
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 0x40609f
mov dword [ecx*4 + 0x422288], eax
inc ecx
cmp ecx, 0x100
jl 0x40609a
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x4060f6
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 + 0x422288]
xor eax, esi
inc ecx
dec edx
jne 0x4060d8
pop edi
not eax
pop esi
ret 0xc

Function at 0x410924
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
pushal
call 0x410933
pop dword [ebp - 0x24]
mov eax, 0xb9a49ced
sub eax, 0xb96393ba
sub dword [ebp - 0x24], eax
push 0x40
push 0x1000
push 0x53aac
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x24]
call dword [eax]
mov ecx, 0x5601
xor edi, edi
add edi, eax
mov ebx, 0x1eee8eaa
add ebx, 0xe158cf56
add ebx, dword [ebp - 0x24]
mov esi, 0xeca14d0a
xor dword [ebp - 4], 0x6b833956
mov edx, dword [ebx]
add dword [ebp - 0xc], esi
add edx, esi
add dword [ebp - 4], 0xb9c4e361
mov dword [edi], edx
sub dword [ebp - 0x10], 0xf55c8488
add edi, 0x500edee4
add edi, 0xaff12120
add ebx, 0xaad6912f
sub ebx, 0xaad6912b
loop 0x410983
add eax, 0x143f1385
sub eax, 0x143dc8ae
mov ebx, eax
add eax, 0x36e9f6a8
add eax, 0xc916095d
mov ecx, 0x400000
add ecx, dword [ebp - 0x24]
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 0x1000cba0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1010a820
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x10137920]
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, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov esi, ecx
cmp dword [esi + 0x10], 0
mov edi, edx
je 0x1000cbf7
cmp dword [esi + 0x14], 8
jb 0x1000cbe5
mov eax, dword [esi]
jmp 0x1000cbe7
mov eax, esi
push eax
call ebx
test eax, eax
setne al
test al, al
jne 0x1000cc82
cmp dword [edi + 0x10], 0
je 0x1000cc15
cmp dword [edi + 0x14], 8
jb 0x1000cc07
mov eax, dword [edi]
jmp 0x1000cc09
mov eax, edi
push eax
call ebx
test eax, eax
setne al
test al, al
jne 0x1000cc82
mov ecx, edi
lea edi, [ebp - 0x48]
call fcn.1000cca0
mov ebx, eax
mov ecx, esi
lea edi, [ebp - 0x2c]
mov dword [ebp - 4], 0
call fcn.1000cca0
push ebx
push eax
mov byte [ebp - 4], 1
call fcn.10003c60
mov esi, 0x10
add esp, 8
mov bl, al
cmp dword [ebp - 0x18], esi
jb 0x1000cc58
mov eax, dword [ebp - 0x2c]
push eax
call fcn.10065453
add esp, 4
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
cmp dword [ebp - 0x34], esi
jb 0x1000cc7b
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.10065453
add esp, 4
test bl, bl
setne al
jmp 0x1000cc84
xor al, al
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.1006656c
mov esp, ebp
pop ebp
ret