joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e6362
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x74
push 0x520f18
call fcn.004e6764
xor edi, edi
mov dword [ebp - 0x20], edi
push edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call ebx
cmp word [eax], 0x5a4d
jne 0x4e63a2
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4e63a2
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x4e63ba
cmp eax, 0x20b
je 0x4e63a7
mov dword [ebp - 0x1c], edi
jmp 0x4e63ce
cmp dword [ecx + 0x84], 0xe
jbe 0x4e63a2
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x4e63c8
cmp dword [ecx + 0x74], 0xe
jbe 0x4e63a2
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 2
call dword [sym.imp.MSVCR71.dll___set_app_type]
pop ecx
or dword [0x55285c], 0xffffffff
or dword [0x552860], 0xffffffff
call dword [sym.imp.MSVCR71.dll___p__fmode]
mov ecx, dword [0x5527c4]
mov dword [eax], ecx
call dword [sym.imp.MSVCR71.dll___p__commode]
mov ecx, dword [0x5527c0]
mov dword [eax], ecx
mov eax, dword [sym.imp.MSVCR71.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x552858], eax
call fcn.004e6c70
call fcn.004d2ec1
cmp dword [0x54f4a4], edi
jne 0x4e642e
push fcn.004d2ec1
call dword [sym.imp.MSVCR71.dll___setusermatherr]
pop ecx
call fcn.004e6cfe
push 0x54d18c
push 0x54d188
call sub.MSVCR71.dll__initterm
push 0x4e6cb4
call fcn.004e66dc
mov eax, dword [0x5527bc]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x5527b8]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [sym.imp.MSVCR71.dll___wgetmainargs]
add esp, 0x20
mov dword [ebp - 0x3c], eax
cmp eax, edi
jge 0x4e6482
push 8
call sub.MSVCR71.dll__amsg_exit
pop ecx
push 0x54d184
push section..data
call sub.MSVCR71.dll__initterm
pop ecx
pop ecx
mov eax, dword [sym.imp.MSVCR71.dll__wcmdln]
mov esi, dword [eax]
cmp esi, edi
jne 0x4e64ac
or dword [ebp - 4], 0xffffffff
mov eax, 0xff
jmp 0x4e6566
mov dword [ebp - 0x24], esi
mov ax, word [esi]
cmp ax, 0x20
ja 0x4e651b
cmp ax, di
je 0x4e64c2
cmp dword [ebp - 0x20], edi
jne 0x4e651b
mov ax, word [esi]
cmp ax, di
je 0x4e64d7
cmp ax, 0x20
ja 0x4e64d7
inc esi
inc esi
mov dword [ebp - 0x24], esi
jmp 0x4e64c2
mov dword [ebp - 0x58], edi
lea eax, [ebp - 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
test byte [ebp - 0x58], 1
je 0x4e64f3
movzx eax, word [ebp - 0x54]
jmp 0x4e64f6
push 0xa
pop eax
push eax
push esi
push edi
push edi
call ebx
push eax
call fcn.004e71c4
mov esi, eax
mov dword [ebp - 0x40], esi
cmp dword [ebp - 0x1c], edi
jne 0x4e6513
push esi
call dword [sym.imp.MSVCR71.dll_exit]
call dword [sym.imp.MSVCR71.dll__cexit]
jmp 0x4e6560
cmp ax, 0x22
jne 0x4e652c
xor eax, eax
cmp dword [ebp - 0x20], edi
sete al
mov dword [ebp - 0x20], eax
inc esi
inc esi
jmp 0x4e64ac
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.004e679f
ret
Function at 0x102ec78
Capabilities:
Create directory

Disassembly:
mov eax, 0x107cc8b
call fcn.01032938
sub esp, 0x20
push esi
xor esi, esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
cmp byte [ebp + 0xc], 0
mov dword [ebp - 4], esi
je 0x102ece8
mov ecx, dword [ebp + 8]
push 1
push 0xffffffffffffffff
lea eax, [ebp + 0xc]
push eax
mov dword [ebp + 0xc], 0x5c
call fcn.0102dc69
cmp eax, 0xffffffff
je 0x102ed81
mov ecx, dword [ebp + 8]
push eax
push esi
lea eax, [ebp - 0x2c]
push eax
call fcn.0102ebc6
push 0xffffffffffffffff
push esi
push eax
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.0102e56f
push 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
call fcn.01025782
jmp 0x102ecf6
push 0xffffffffffffffff
push esi
push dword [ebp + 8]
lea ecx, [ebp - 0x1c]
call fcn.0102e56f
mov eax, dword [ebp - 0x18]
cmp eax, esi
jne 0x102ed02
mov eax, 0x1003ac8
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push edi
push esi
push eax
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call edi
cmp esi, 1
je 0x102ed7d
cmp eax, 0xb7
je 0x102ed7d
cmp eax, 3
je 0x102ed39
test eax, eax
jle 0x102ed67
and eax, 0xffff
or eax, 0x80070000
jmp 0x102ed67
push 1
lea eax, [ebp - 0x1c]
push eax
call fcn.0102ec78
mov esi, eax
test esi, esi
jl 0x102ed7f
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x102ed56
mov eax, 0x1003ac8
push 0
push eax
call ebx
test eax, eax
jne 0x102ed7d
call edi
test eax, eax
jg 0x102ed6b
call edi
mov esi, eax
jmp 0x102ed7f
call edi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x102ed7f
xor esi, esi
pop edi
pop ebx
push 1
lea ecx, [ebp - 0x1c]
call fcn.01025782
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 8

Function at 0x102f909
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 0x14]
xor ebx, ebx
mov dword [eax], ebx
mov eax, dword [ebp + 0x18]
mov dword [esi], ebx
push edi
mov byte [eax], bl
lea eax, [ebp + 0x17]
push eax
mov edi, ecx
call fcn.0102f8a7
cmp eax, ebx
jl 0x102f997
cmp byte [ebp + 0x17], bl
je 0x102f995
push dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push ebx
push dword [ebp + 8]
push dword [edi + 8]
call esi
cmp eax, ebx
je 0x102f963
cmp eax, 2
je 0x102f995
cmp eax, ebx
jle 0x102f997
and eax, 0xffff
or eax, 0x80070000
jmp 0x102f997
mov eax, dword [ebp + 0x10]
push dword [eax]
mov ecx, dword [ebp + 0xc]
push ebx
call fcn.010324a9
cmp eax, ebx
jl 0x102f997
push dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
call fcn.0103238a
push eax
push ebx
push ebx
push dword [ebp + 8]
push dword [edi + 8]
call esi
cmp eax, ebx
jne 0x102f955
mov eax, dword [ebp + 0x18]
mov byte [eax], 1
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x1031eee
Capabilities:
Copy file
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp byte [ebp + 0x10], 0
je 0x1031f07
push 0x80
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
cmp byte [ebp + 0x10], al
push esi
sete al
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x1031f3f
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x1031f31
call esi
jmp 0x1031f41
call esi
and eax, 0xffff
or eax, 0x80070000
jmp 0x1031f41
xor eax, eax
pop esi
pop ebp
ret 0x10

Function at 0x1031f4b
Capabilities:
Check if file exists
Delete file
Move file
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp byte [ebp + 0xc], 0
je 0x1031f64
push 0x80
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1031fb9
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 2
je 0x1031fb9
cmp eax, 3
je 0x1031fb9
cmp byte [ebp + 0x10], 0
je 0x1031fb3
push 4
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x1031fb9
call esi
test eax, eax
jg 0x1031fa5
call esi
jmp 0x1031fbb
call esi
and eax, 0xffff
or eax, 0x80070000
jmp 0x1031fbb
test eax, eax
jle 0x1031fbb
jmp 0x1031fa7
xor eax, eax
pop esi
pop ebp
ret 0xc
Function at 0x1046e89
Capabilities:
Encode data using xor

Disassembly:
and eax, 0xcec93f6d
imul esi, dword [ecx], 0x5a
stosb byte es:[edi], al
mov dword [ecx], esi
or ebp, esp
xor al, 0xa1
pushal
dec ecx
push ds
jb 0x1046e2e
ret 0x4591
das
add ecx, dword [ecx + 0x2b]
lds eax, [eax]
xchg ebx, eax
retf 0xe58d
jnp 0x1046e29
scasd eax, dword es:[edi]
push edi
mov ecx, 0x9e7bf5ea
scasd eax, dword es:[edi]
push edi
mov ecx, 0x9e7bf5ea
scasd eax, dword es:[edi]
push edi
mov ecx, 0x9e7bf5ea
scasd eax, dword es:[edi]
push edi
mov ecx, 0x9e7bf5ea
scasd eax, dword es:[edi]
push edi
mov ecx, 0x9e7bf5ea
scasd eax, dword es:[edi]
push edi
mov ecx, 0x9e7bf5ea
scasd eax, dword es:[edi]
push edi
mov ecx, 0x9e7bf5ea
scasd eax, dword es:[edi]
push edi
mov ecx, 0x9e7bf5ea
scasd eax, dword es:[edi]
push edi
mov ecx, 0xff7ff5ea
rcr edi, 1
jecxz 0x1046e6c
scasd eax, dword es:[edi]
push edi
mov ecx, 0x9e7bf5ea
scasd eax, dword es:[edi]
push edi
mov ecx, 0x9e7bf5ea
scasd eax, dword es:[edi]
push edi
mov ecx, 0x9e7bf5ea
scasd eax, dword es:[edi]
push edi
mov ecx, 0x9e7bf5ea
scasd eax, dword es:[edi]
push edi
mov ecx, 0x9e7bf5ea
scasd eax, dword es:[edi]
push edi
mov ecx, 0x9e7bf5ea
scasd eax, dword es:[edi]
push edi
mov ecx, 0xe331f5ea
mov ecx, 0xd8ca0283
dec esp
fdiv st(6)
lodsw ax, word [esi]
or dword [edi], 0xffffffa1
cmpsb byte [esi], byte es:[edi]
push edx
aam 0x54
retf 0x4591
Function at 0x106aab4
Capabilities:
Encode data using xor

Disassembly:
leave
sal dword [edx + 0x1e], 0xba
ret 0x388a
inc ecx
xor dword [bx + 0x1e72], 0xffffffeb
jbe 0x106aa62
xor bh, byte [eax]
cmpsd dword [esi], dword es:[edi]
pop esp
test eax, 0x67628767
ja 0x106aa10
xor bh, bh
and dword [esi - 0x24], 0xffffffb7
push 0xc8444504
add byte [edx], ch
and esp, dword [ebx + 0x28fb197d]
inc ecx
fcomp qword [bp + si + 0x1e72]
in eax, dx
sti
sahf
sbb byte [ebx - 0x67], ch
add dword [edi + 0x666762b9], esi
ja 0x106aab7
pop esi
xchg dword [ebx], eax
mov eax, dword [0xc6db3d0b]
push ss
mov di, 0xb000
or ah, byte [eax - 0x14f520b4]
inc ecx
cmpsd dword [si], dword es:[di]
cmpsd dword [si], dword es:[di]
sal dword [ecx + 0x1e], 0x47
xchg edx, esi
mov dword [0xf54a0a1d], eax
mov ebp, 0x77666762
mov al, byte [0x1d90de4f]
cmp al, 0x33
push ecx
jne 0x106aa61
cmc
cli
xor esi, dword [esi - 0x7c]
xchg esp, eax
outsb dx, byte [esi]
inc edi
mov eax, 0x67674167
mov al, byte [0x891e7187]
cwde
test byte [edi - 9], bl
popfd
add bh, byte [esi + 0x67]
int 0x24
ja 0x106ab06
inc ebp
pop ss
mov es, word [ebx + 0x3105ef8a]
in eax, dx
jmp 0x106ab34
xchg dh, bl
inc ecx
xor edx, dword [bp + di + 0x70]
push ds
jg 0x106aaaa
out dx, al
js 0x106ab42
invalid
pop ebx
pop edx
jo 0x106ab58
adc al, 0xab
sti
inc ecx
pop es
push ss
xchg edi, eax
invalid
mov ecx, 0x77666762
ror dword [ebp + 0x6e39ae5f], 0x27
jmp 0x106ab40
and al, 0x16
popfd
lodsd eax, dword [esi]
inc ecx
cdq
mov eax, dword [0x98891e70]
jo 0x106ab82
mov dword [eax - 0x4f2a07c], ebx
test byte [edi + 0xd], bl
sti
adc eax, dword [edx + 0x67]
cmc
and dword [edi + 0x66], esp
ja 0x106ab66
jb 0x106abd0
leave
sar dword [ecx + 0x4d], 1
push eax
mov bl, 0xaf
cdq
mov bl, byte [esi - 0x3071fdcc]
sahf
xor al, 2
mov cs, edi
iretd
xor ebp, dword [edx]
add esp, dword [edi + 0x41]
add al, byte [bx + si]
jg 0x106abac
jnp 0x106ab62
lodsb al, byte [esi]
invalid
inc ecx
Function at 0x106fa54
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
call fcn.0106cb1f
push 0
push 1
mov ecx, ebx
call fcn.0106d41e
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
push dword [ebp + 0x1c]
lea edi, [ebx + 0x20]
lea esi, [ebp + 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebx + 0x18], eax
lea eax, [ebp + 8]
push eax
lea ecx, [ebx + 0x30]
movsd dword es:[edi], dword [esi]
call fcn.0102bb09
mov eax, dword [ebp + 8]
xor esi, esi
cmp eax, esi
je 0x106faa4
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push esi
push 1
push esi
push esi
mov byte [ebx + 0x44], 0
mov byte [ebx + 0x38], 0
call edi
cmp eax, esi
mov dword [ebx + 0x3c], eax
je 0x106faea
push esi
push esi
push esi
push esi
call edi
cmp eax, esi
mov dword [ebx + 0x40], eax
je 0x106faea
lea eax, [ebp - 4]
push eax
push esi
push ebx
push 0x106f7b0
push esi
push esi
call dword [sym.imp.msvcrt.dll__beginthreadex]
add esp, 0x18
cmp eax, esi
mov dword [ebx + 0x34], eax
jne 0x106fb0e
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x106fafc
call esi
mov esi, eax
jmp 0x106fb12
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x106fb12
mov byte [ebx + 0x38], 1
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x18

Function at 0x1071ae8
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x1081b6e
call fcn.01032938
sub esp, 0x4c
push ebx
push esi
push edi
lea eax, [ebp + 0xb]
push eax
push dword [ebp + 8]
lea ecx, [ebp - 0x1c]
call fcn.010293e8
push 0xf
pop ecx
xor eax, eax
lea edi, [ebp - 0x58]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x1c]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x58], 0x3c
call fcn.0102e867
xor edi, edi
mov esi, eax
inc edi
cmp esi, ebx
jl 0x1071b9d
mov eax, dword [ebp - 0x18]
cmp eax, ebx
mov dword [ebp - 0x54], 0x400
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], 0x101a9c4
mov dword [ebp - 0x48], 0x1003ac8
je 0x1071b51
mov dword [ebp - 0x48], eax
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x1071b60
cmp word [eax], bx
mov dword [ebp - 0x44], eax
jne 0x1071b63
mov dword [ebp - 0x44], ebx
lea eax, [ebp - 0x58]
push eax
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], edi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x1071b9b
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
jg 0x1071b89
call esi
mov esi, eax
jmp 0x1071b9d
call esi
mov esi, eax
and esi, 0xffff
or esi, 0x80070000
jmp 0x1071b9d
xor esi, esi
cmp dword [ebp - 0x20], ebx
je 0x1071bab
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
lea ecx, [ebp - 0x1c]
call fcn.01025782
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8
Function at 0x1001be4
Capabilities:
Create thread

Disassembly:
push 0x1004224
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x1001c27
push 4
call fcn.01001628
pop ecx
push 0
push 0
push eax
push 0x1001bb4
push 0
push 0
mov dword [eax], 0x493e0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x1001c22
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1001c27
call fcn.0100188c
mov eax, dword [0x1004224]
ret

Function at 0x1002425
Capabilities:
Terminate process

Disassembly:
push 0x5c
push 0x1002ab8
call fcn.010025c4
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x100467c
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x10021e1
cmp eax, esi
jne 0x10021d4
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x10021e4
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10021bb
xor esi, esi
inc esi
mov eax, dword [0x1004678]
cmp eax, esi
jne 0x10021f7
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1002226
mov eax, dword [0x1004678]
test eax, eax
jne 0x1002220
mov dword [0x1004678], esi
push 0x100117c
push 0x1001170
call fcn.0100211d
pop ecx
pop ecx
test eax, eax
je 0x1002226
jmp 0x1002349
mov dword [0x100424c], esi
mov eax, dword [0x1004678]
cmp eax, esi
jne 0x100224a
push 0x100116c
push 0x1001164
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x1004678], 2
cmp dword [ebp - 0x20], ebx
jne 0x1002257
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x1004680], ebx
je 0x1002278
push 0x1004680
call fcn.01002539
pop ecx
test eax, eax
je 0x1002278
push ebx
push 2
push ebx
call dword [0x1004680]
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0x1002349
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp ecx, 0x20
ja 0x10022e1
cmp cx, bx
je 0x100229c
cmp dword [ebp - 0x1c], ebx
jne 0x10022e1
movzx ecx, word [eax]
cmp cx, bx
je 0x10022b1
cmp ecx, 0x20
ja 0x10022b1
add eax, 2
mov dword [ebp - 0x24], eax
jmp 0x100229c
test byte [ebp - 0x40], 1
je 0x10022bd
movzx ecx, word [ebp - 0x3c]
jmp 0x10022c0
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call main
mov dword [0x1004248], eax
cmp dword [0x100423c], ebx
jne 0x1002326
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp ecx, 0x22
jne 0x10022f1
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
add eax, 2
jmp 0x1002287
cmp dword [0x100424c], ebx
jne 0x1002334
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1004248]
jmp 0x1002355
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.01002609
ret
call fcn.0100270c
jmp 0x100217e
Function at 0x401428
Capabilities:
Read file on windows

Disassembly:
push 0
push 0
push 3
push 0
push 0
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov edi, eax
push 0
push 0x4030d0
push 0x40000
push 0x40a8cb
push edi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp dword [0x40a8cb], 0x38464947
jne 0x401627
cmp word [0x40a8cf], 0x6137
jne 0x401627
mov al, byte [0x40a8d5]
and al, 0x87
cmp al, 0x87
jne 0x401627
add dword [0x4030d0], 0x40a8cb
mov esi, 0x40abd8
mov edi, esi
xor eax, eax
cmp esi, dword [0x4030d0]
jae 0x401627
lodsb al, byte [esi]
cmp al, 0x2c
je 0x4014c3
cmp al, 0x21
jne 0x401627
inc esi
lodsb al, byte [esi]
add esi, eax
or al, al
jne 0x4014ba
jmp 0x4014a0
add esi, 4
xor eax, eax
lodsw ax, word [esi]
mov ebx, eax
lodsw ax, word [esi]
inc esi
cmp byte [esi], 8
jne 0x401627
inc esi
mov dword [0x40304c], 0x6c
mov dword [0x403050], 0x10007
mov dword [0x4030b4], 0x840
mov dword [0x403058], ebx
mov dword [0x403054], eax
movzx eax, byte [0x40a8d6]
mov dword [0x40308c], eax
mov dword [0x403090], eax
push 0
push 0x4030c8
push 0x40304c
mov eax, dword [0x4030bc]
push eax
mov eax, dword [eax]
call dword [eax + 0x18]
or eax, eax
jne 0x401627
push 0
push 1
push 0x40304c
push 0
mov eax, dword [0x4030c8]
push eax
mov eax, dword [eax]
call dword [eax + 0x64]
mov edi, dword [0x403070]
mov ebx, esi
movzx ebp, byte [ebx]
inc ebx
add ebp, ebx
mov byte [0x4030da], 0
xor edx, edx
mov ch, 9
cmp edx, 0x7f0
jbe 0x40157f
mov ch, 0xa
cmp edx, 0x17f0
jbe 0x40157f
mov ch, 0xb
cmp edx, 0x37f0
jbe 0x40157f
mov ch, 0xc
mov cl, 8
sub cl, byte [0x4030da]
mov al, byte [ebx]
cmp ebx, ebp
jne 0x401595
movzx ebp, al
inc ebx
mov al, byte [ebx]
add ebp, ebx
inc ebx
ror eax, 8
sub cl, ch
je 0x4015a9
ja 0x4015a6
add cl, ch
add cl, 8
jmp 0x401587
dec ebx
shl eax, cl
neg cl
and cl, 7
mov byte [0x4030da], cl
mov cl, ch
rol eax, cl
and eax, 0xfff
cmp eax, 0x100
jb 0x4015f7
je 0x40155d
sub eax, 0x102
jb 0x401610
shl eax, 3
cmp eax, edx
ja 0x401627
mov ecx, dword [eax + 0x4030db]
mov esi, dword [eax + 0x4030df]
mov dword [edx + 0x4030df], edi
rep movsb byte es:[edi], byte [esi]
mov eax, dword [eax + 0x4030db]
inc eax
mov dword [edx + 0x4030db], eax
jmp 0x401608
mov dword [edx + 0x4030db], 2
mov dword [edx + 0x4030df], edi
stosb byte es:[edi], al
add edx, 8
jmp 0x40155f
push 0
mov eax, dword [0x4030c8]
push eax
mov eax, dword [eax]
call dword [eax + pe_nt_image_headers32]
mov eax, dword [0x4030c8]
clc
ret
stc
ret
Function at 0x401629
Capabilities:
Read file on windows

Disassembly:
push 0
push 0
push 3
push 0
push 0
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov edi, eax
push 0
push 0x4030d0
push 0x30d
push 0x40a8cb
push edi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
cmp dword [0x4030d0], 0x30d
jne 0x401627
push edi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp dword [0x40a8cb], 0x38464947
jne 0x401627
cmp word [0x40a8cf], 0x6137
jne 0x401627
mov al, byte [0x40a8d5]
and al, 7
cmp al, 7
jne 0x401627
mov esi, 0x40a8d8
mov edi, 0x40accb
mov ecx, 0x100
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
xor al, al
stosb byte es:[edi], al
loop 0x40169d
push 0
push 0x4030cc
push 0x40accb
push 0x44
mov eax, dword [0x4030bc]
push eax
mov eax, dword [eax]
call dword [eax + 0x14]
or eax, eax
jne 0x401627
clc
ret
Function at 0x42c2ab
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x456130]
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.00429d42
and dword [ebp - 0x14], 0
cmp dword [0x457d9c], 0
mov dword [ebp - 0x18], eax
jne 0x42c35e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x42c406
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x450b3c
push ebx
call edi
test eax, eax
je 0x42c406
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x457d9c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x457da0], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x457da4], eax
call edi
push eax
call esi
mov dword [0x457dac], eax
test eax, eax
je 0x42c35e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x457da8], eax
mov eax, dword [0x457da8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x42c3b7
cmp dword [0x457dac], ecx
je 0x42c3b7
push eax
call esi
push dword [0x457dac]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x42c3b7
test ebx, ebx
je 0x42c3b7
call edi
test eax, eax
je 0x42c3ae
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x42c3ae
test byte [ebp - 8], 1
jne 0x42c3b7
or dword [ebp + 0x10], 0x200000
jmp 0x42c3ea
mov eax, dword [0x457da0]
cmp eax, dword [ebp - 0x18]
je 0x42c3ea
push eax
call esi
test eax, eax
je 0x42c3ea
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x42c3ea
mov eax, dword [0x457da4]
cmp eax, dword [ebp - 0x18]
je 0x42c3ea
push eax
call esi
test eax, eax
je 0x42c3ea
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x457d9c]
call esi
test eax, eax
je 0x42c406
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x42c408
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042854a
leave
ret
Function at 0x402000
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [0x403010], 0x400000
push 0x7f02
push 0
call dword [sym.imp.user32.dll_LoadIconA]
sub esp, 8
mov dword [0x403014], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
sub esp, 8
mov dword [0x403018], eax
mov eax, section..data_1
mov dword [esp], eax
call dword [sym.imp.user32.dll_RegisterClassA]
sub esp, 4
test eax, eax
je 0x402111
mov dword [esp], 0
mov dword [esp + 4], 0x403059
mov dword [esp + 8], 0x40305e
mov dword [esp + 0xc], 0x10080000
mov dword [esp + 0x10], pe_nt_image_headers32
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x18], 0x100
mov dword [esp + 0x1c], 0xc0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov eax, dword [0x403010]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], 0
call dword [sym.imp.user32.dll_CreateWindowExA]
sub esp, 0x30
test eax, eax
je 0x402111
mov dword [esp], 0x403028
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call dword [sym.imp.user32.dll_GetMessageA]
sub esp, 0x10
cmp eax, 1
jb 0x402111
jne 0x4020c0
mov dword [esp], 0x403028
call dword [sym.imp.user32.dll_TranslateMessage]
sub esp, 4
mov dword [esp], 0x403028
call dword [sym.imp.user32.dll_DispatchMessageA]
sub esp, 4
jmp 0x4020c0
leave
mov eax, dword [0x403030]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ExitProcess]

Function at 0x40215d
Capabilities:
Query environment variable
Set environment variable
Terminate process

Disassembly:
mov byte [0x403063], al
push 0x403063
push 0x40305e
call dword [sym.imp.kernel32.dll_SetEnvironmentVariableA]
call fcn.004026a6
push 0
push 2
push 0x403080
push 0x403044
call dword [0x40568e]
cmp eax, 0x122
jne 0x4021b8
call fcn.00402120
pop eax
xor ebx, ebx
push edx
push 2
push 0x403065
push 0x40305e
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableA]
mov bl, byte [0x403065]
pop edx
add edx, ebx
call edx
push 0
call dword [sym.imp.kernel32.dll_ExitProcess]

Function at 0x402689
Capabilities:
Allocate or change rwx memory

Disassembly:
push esi
push 0x40
push ebx
push eax
call dword [sym.imp.kernel32.dll_VirtualProtect]
ret