joyce8/EMBER2024-capa huggingface dataset:
Function at 0x455190
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [0x5c5164]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x455326
sub esp, 0x28
movzx eax, byte [esp + 0x2c]
movzx ebx, al
add ebx, dword [edx + 4]
movzx ebp, byte [ebx]
movzx esi, byte [ebx + 1]
mov edi, esi
shl esi, 8
or ebp, esi
shr edi, 0x18
movzx esi, byte [ebx + 2]
mov ecx, esi
shr esi, 0x10
or esi, edi
shl ecx, 0x10
or ecx, ebp
movzx ebp, byte [ebx + 3]
mov edi, ebp
shr ebp, 8
or ebp, esi
shl edi, 0x18
movzx esi, byte [ebx + 4]
or esi, ebp
movzx ebp, byte [ebx + 5]
shl ebp, 8
or esi, ebp
movzx ebp, byte [ebx + 6]
shl ebp, 0x10
or esi, ebp
movzx ebx, byte [ebx + 7]
shl ebx, 0x18
or edi, ecx
or ebx, esi
movzx ebp, byte [esp + 0x2d]
xchg ebp, eax
cmp al, 8
xchg ebp, eax
jae 0x4552b3
mov dword [esp + 0x24], edx
mov dword [esp + 0x1c], edi
shl ebp, 3
lea ecx, [ebp - 0x40]
neg ecx
mov byte [esp + 9], cl
shl ebx, cl
mov esi, edi
shl esi, cl
add ebp, 0xffffffe0
xchg ebp, eax
mov byte [esp + 0xb], al
xchg ebp, eax
mov ecx, ebp
shr edi, cl
mov dword [esp + 0x18], edi
neg ecx
mov byte [esp + 0xa], cl
mov eax, dword [esp + 0x1c]
shl eax, cl
movzx edx, byte [esp + 9]
cmp dl, 0x20
sbb edi, edi
mov dword [esp + 0x1c], edi
and ebx, edi
and esi, edi
mov ecx, edx
shr esi, cl
and esi, edi
mov dword [esp + 0x14], esi
movzx esi, byte [esp + 0xa]
xchg esi, eax
cmp al, 0x20
xchg esi, eax
sbb edi, edi
and eax, edi
xchg ebp, eax
cmp al, 0x20
xchg ebp, eax
sbb ebp, ebp
mov edx, dword [esp + 0x18]
and edx, ebp
or ebx, edx
or ebx, eax
mov eax, ecx
mov ecx, esi
mov edx, ebx
shr edx, cl
and edi, edx
mov ecx, eax
mov eax, ebx
shr eax, cl
movzx ecx, byte [esp + 0xb]
shl ebx, cl
and ebx, ebp
mov edx, dword [esp + 0x14]
or ebx, edx
mov edx, dword [esp + 0x1c]
and eax, edx
or edi, ebx
mov edx, dword [esp + 0x24]
mov ebx, eax
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], ebx
mov eax, dword [edx + 8]
mov dword [esp + 0x20], eax
call sym.runtime.printlock
mov eax, dword [esp + 0x10]
mov dword [esp + 4], eax
mov eax, dword [esp + 0xc]
mov dword [esp], eax
call sym.runtime.printhex
call sym.runtime.printunlock
mov edx, dword [esp + 0x20]
mov eax, dword [edx]
movzx ecx, byte [esp + 0x2c]
mov byte [esp], cl
movzx ecx, byte [esp + 0x2e]
mov byte [esp + 1], cl
call eax
movzx eax, byte [esp + 4]
test al, al
jne 0x455322
call sym.runtime.printlock
lea eax, [0x513b10]
mov dword [esp], eax
mov dword [esp + 4], 1
call sym.runtime.printstring
call sym.runtime.printunlock
add esp, 0x28
ret
call sym.runtime.morestack
jmp sym.runtime.printArgs.func2
Function at 0x456a70
Capabilities:
Access peb ldr_data

Disassembly:
mov ecx, dword [0x5c5164]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x456b0b
sub esp, 0x30
lea ecx, [esp + 0x34]
mov dword [esp + 4], ecx
mov edx, dword [0x5c5164]
mov edx, dword fs:[edx]
mov edx, dword [edx]
mov dword [esp + 8], 0
lea edi, [esp + 0xc]
xor eax, eax
call fcn.0045fb37
lea ecx, [sym.runtime.callers.func1]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 4]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
lea ecx, [esp + 8]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0xc]
mov dword [esp], ecx
call sym.runtime.systemstack
mov ecx, dword [esp + 8]
mov dword [esp + 0x44], ecx
add esp, 0x30
ret
call sym.runtime.morestack_noctxt
jmp sym.runtime.callers
Function at 0x45c320
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword [0x5c5164]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x45c480
sub esp, 0x1c
mov eax, dword [esp + 0x20]
test byte [eax], al
lea ecx, [eax + 0x18]
mov dword [esp + 0x18], ecx
nop
mov dword [esp], ecx
call sym.runtime.lock2
mov eax, dword [esp + 0x20]
movzx ecx, byte [eax + 0x1c]
test cl, cl
jne 0x45c469
mov byte [eax + 0x1c], 1
inc dword [eax + 0x24]
inc dword [eax + 0x60]
mov dword [esp], eax
call sym.runtime._pollDesc_.publishInfo
mov eax, dword [esp + 0x20]
mov dword [esp], eax
mov dword [esp + 4], 0x72
mov byte [esp + 8], 0
call sym.runtime.netpollunblock
mov eax, dword [esp + 0xc]
mov dword [esp + 0x14], eax
mov ecx, dword [esp + 0x20]
mov dword [esp], ecx
mov dword [esp + 4], 0x77
mov byte [esp + 8], 0
call sym.runtime.netpollunblock
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x3c]
mov edx, dword [esp + 0xc]
mov dword [esp + 0x10], edx
test ecx, ecx
je 0x45c3f0
lea ecx, [eax + 0x28]
mov dword [esp], ecx
call sym.runtime.deltimer
mov eax, dword [0x5c5260]
test eax, eax
jne 0x45c3d7
mov eax, dword [esp + 0x20]
jmp 0x45c3e5
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x3c]
call sym.runtime.gcWriteBarrier1
mov dword [edi], ecx
mov dword [eax + 0x3c], 0
mov edx, dword [esp + 0x10]
mov ecx, dword [eax + 0x78]
test ecx, ecx
je 0x45c427
lea ecx, [eax + 0x64]
mov dword [esp], ecx
call sym.runtime.deltimer
mov eax, dword [0x5c5260]
test eax, eax
jne 0x45c412
mov eax, dword [esp + 0x20]
jmp 0x45c420
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x78]
call sym.runtime.gcWriteBarrier1
mov dword [edi], ecx
mov dword [eax + 0x78], 0
nop
nop
mov eax, dword [esp + 0x18]
mov dword [esp], eax
call sym.runtime.unlock2
mov eax, dword [esp + 0x14]
test eax, eax
je 0x45c44d
mov dword [esp], eax
mov dword [esp + 4], 3
call sym.runtime.netpollgoready
mov eax, dword [esp + 0x10]
test eax, eax
je 0x45c465
mov dword [esp], eax
mov dword [esp + 4], 3
call sym.runtime.netpollgoready
add esp, 0x1c
ret
lea eax, [0x4f4ee9]
mov dword [esp], eax
mov dword [esp + 4], 0x24
call sym.runtime.throw
nop
call sym.runtime.morestack_noctxt
jmp sym.internal_poll.runtime_pollUnblock
Function at 0x45f760
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp byte [0x5c5046], 0
je 0x45f77a
mov eax, dword [esp + 4]
mov ebx, dword [esp + 0xc]
lea edx, [esp + 0x10]
jmp sym.aeshashbody
jmp sym.runtime.memhashFallback

Function at 0x45f780
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp byte [0x5c5046], 0
je 0x45f79b
mov eax, dword [esp + 4]
mov ebx, dword [eax + 4]
mov eax, dword [eax]
lea edx, [esp + 0xc]
jmp sym.aeshashbody
jmp sym.runtime.strhashFallback

Function at 0x4606d0
Capabilities:
Allocate thread local storage

Disassembly:
mov ebp, esp
mov eax, dword [sym.imp.kernel32.dll_TlsAlloc]
call eax
mov esp, ebp
mov ecx, eax
cmp ecx, 0x40
jb 0x4606ea
mov ecx, 0x14
jmp 0x4606f3
shl ecx, 2
add ecx, 0xe10
mov dword [0x5c5164], ecx
ret
Function at 0x486e10
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [0x5c5164]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x486ffa
sub esp, 0x48
mov eax, dword [0x59bd74]
mov ecx, dword [esp + 0x50]
movzx edx, word [ecx + 0xa]
movzx ebx, word [ecx + 0xc]
movzx ebp, word [ecx + 2]
movzx esi, word [ecx + 8]
mov edi, dword [esp + 0x4c]
mov dword [esp], edi
mov dword [esp + 4], ebp
mov dword [esp + 8], 1
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], eax
call sym.time.Date
lea edi, [esp + 0x34]
lea esi, [esp + 0x20]
call fcn.0046001e
lea edi, [esp]
lea esi, [esp + 0x34]
call fcn.0046001e
call sym.time.Time.abs
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
add eax, 0x15180
adc ecx, 0
mov dword [esp + 4], ecx
mov dword [esp], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x93a80
call sym.runtime.uint64mod
mov eax, dword [esp + 0x50]
movzx ecx, word [eax + 4]
mov edx, dword [esp + 0x10]
mov ebx, eax
mov eax, 0xc22e4507
mov ebp, edx
imul edx
lea eax, [ebp + edx]
sar eax, 0x10
sar ebp, 0x1f
sub eax, ebp
sub ecx, eax
test ecx, ecx
jge 0x486ee7
add ecx, 7
movzx edx, word [ebx + 6]
lea ebp, [edx - 1]
cmp ebp, 4
jge 0x486f01
lea ebx, [edx + edx*2]
lea edx, [edx + ebx*2]
lea ecx, [ecx + edx - 6]
mov edx, ecx
jmp 0x486f78
movzx eax, word [ebx + 2]
cmp eax, 2
jne 0x486f4e
mov edx, dword [esp + 0x4c]
test edx, 3
jne 0x486f4a
mov ebx, edx
sar edx, 0x1f
mov ebp, eax
mov eax, 0x51eb851f
mov esi, edx
imul ebx
mov edi, edx
sar edx, 5
sub edx, esi
imul edx, edx, 0x64
cmp ebx, edx
jne 0x486f43
sar edi, 7
sub edi, esi
imul edx, edi, 0x190
cmp ebx, edx
jne 0x486f50
mov ebx, 0x1d
jmp 0x486f6e
mov ebp, eax
jmp 0x486f50
mov ebp, eax
cmp ebp, 0xd
jae 0x486fed
lea eax, [ebp - 1]
lea edx, [0x596680]
mov ebx, dword [edx + ebp*4]
cmp eax, 0xd
jae 0x486fe3
sub ebx, dword [edx + ebp*4 - 4]
lea edx, [ecx + 0x1d]
cmp ebx, edx
jge 0x486f78
lea edx, [ecx + 0x16]
mov ecx, dword [esp + 0x38]
test ecx, 0x80000000
je 0x486faa
mov ebx, dword [esp + 0x34]
shl ecx, 1
mov ebp, ebx
shl ebx, 1
shr ebp, 0x1f
or ebp, ecx
mov ecx, ebp
shl ebp, 1
shr ecx, 0x1f
shr ebx, 0x1f
or ebp, ebx
add ebp, 0xd7b17f80
adc ecx, 0xd
jmp 0x486fb2
mov ebp, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
lea eax, [edx - 1]
mov edx, eax
sar edx, 0x1f
mov ebx, 0x15180
mov esi, edx
mul ebx
imul ebx, esi, 0x15180
add edx, ebx
add eax, ebp
adc edx, ecx
add eax, 0x886e0900
adc edx, 0xfffffff1
mov dword [esp + 0x58], edx
mov dword [esp + 0x54], eax
add esp, 0x48
ret
mov ecx, 0xd
call sym.runtime.panicIndex
mov eax, ebp
mov ecx, 0xd
call sym.runtime.panicIndex
nop
call sym.runtime.morestack_noctxt
jmp sym.time.pseudoUnix
Function at 0x4978f0
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [0x5c5164]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x497991
sub esp, 0x10
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov edx, dword [esp + 0x18]
cmp dword [edx], ecx
jne 0x497987
movzx ecx, byte [eax + 4]
cmp byte [edx + 4], cl
jne 0x497987
movzx ecx, byte [eax + 5]
cmp byte [edx + 5], cl
jne 0x497987
movzx ecx, byte [eax + 6]
cmp byte [edx + 6], cl
jne 0x497987
movzx ecx, byte [eax + 7]
cmp byte [edx + 7], cl
jne 0x497987
movzx ecx, byte [eax + 8]
cmp byte [edx + 8], cl
jne 0x497987
movzx ecx, byte [eax + 9]
cmp byte [edx + 9], cl
jne 0x497987
movzx ecx, byte [eax + 0xa]
cmp byte [edx + 0xa], cl
jne 0x497987
movzx ecx, byte [eax + 0xb]
cmp byte [edx + 0xb], cl
jne 0x497987
movzx ecx, byte [eax + 0xc]
cmp byte [edx + 0xc], cl
jne 0x497987
add eax, 0x10
mov dword [esp], eax
lea eax, [edx + 0x10]
mov dword [esp + 4], eax
mov dword [esp + 8], 0x4c
call sym.runtime.memequal
movzx eax, byte [esp + 0xc]
jmp 0x497989
xor eax, eax
mov byte [esp + 0x1c], al
add esp, 0x10
ret
call sym.runtime.morestack_noctxt
jmp sym.type:.eq.fmt.fmt
Function at 0x4a8de0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword [0x5c5164]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4a8f7a
sub esp, 0x38
lea edi, [esp + 0x54]
xor eax, eax
call fcn.0045fb38
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x4c]
cmp ecx, edx
jbe 0x4a8f72
mov ebx, dword [esp + 0x40]
movzx ebp, byte [ebx + edx]
xchg ebp, eax
test al, al
xchg ebp, eax
jne 0x4a8efe
lea eax, [0x4db200]
mov dword [esp], eax
call sym.runtime.newobject
mov eax, dword [esp + 4]
mov dword [esp + 0x14], eax
mov dword [eax + 4], 0x25
lea ecx, [0x4f549e]
mov dword [eax], ecx
lea ecx, [0x5149c8]
cmp dword [0x59be78], ecx
jne 0x4a8e82
mov edx, dword [0x59be7c]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov dword [esp + 8], edx
call sym.runtime.ifaceeq
movzx eax, byte [esp + 0xc]
test al, al
je 0x4a8e82
lea ecx, [0x5149c8]
mov eax, dword [esp + 0x14]
jmp 0x4a8edd
lea eax, [0x4de980]
mov dword [esp], eax
call sym.runtime.newobject
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x3c]
mov edx, dword [ecx + 0x14]
mov ecx, dword [ecx + 0x18]
mov ebx, dword [esp + 0x4c]
mov ebp, ebx
sar ebx, 0x1f
add edx, ebp
mov dword [eax], edx
adc ecx, ebx
mov dword [eax + 4], ecx
lea ecx, [0x5149c8]
mov dword [eax + 8], ecx
mov ecx, dword [0x5c5260]
test ecx, ecx
jne 0x4a8ec9
mov ecx, dword [esp + 0x14]
jmp 0x4a8ed4
call sym.runtime.gcWriteBarrier1
mov ecx, dword [esp + 0x14]
mov dword [edi], ecx
mov dword [eax + 0xc], ecx
lea ecx, [0x514c0c]
mov dword [esp + 0x10], ecx
lea edi, [esp + 0x54]
mov edx, eax
xor eax, eax
call fcn.0045fb38
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], edx
add esp, 0x38
ret
xchg ebp, eax
movzx esi, al
xchg ebp, eax
xchg ebp, eax
movzx eax, al
xchg ebp, eax
mov edi, edx
lea edx, [0x4f806c]
movzx edx, byte [edx + ebp]
dec edx
nop
mov ebp, edi
lea edi, [esp + 0x18]
call fcn.0045fb38
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ebx
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ebp
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], edx
lea edi, [esp + 0x54]
lea esi, [esp + 0x18]
call fcn.00460000
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
add esp, 0x38
ret
mov eax, edx
call sym.runtime.panicIndex
nop
call sym.runtime.morestack_noctxt
jmp sym.internal_zstd._Reader_.makeReverseBitReader
Function at 0x4bf4f0
Capabilities:
Hash data using sha256

Disassembly:
mov ecx, dword [0x5c5164]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4bf551
mov eax, dword [esp + 4]
mov dword [eax], 0x6a09e667
mov dword [eax + 4], 0xbb67ae85
mov dword [eax + 8], 0x3c6ef372
mov dword [eax + 0xc], 0xa54ff53a
mov dword [eax + 0x10], 0x510e527f
mov dword [eax + 0x14], 0x9b05688c
mov dword [eax + 0x18], 0x1f83d9ab
mov dword [eax + 0x1c], 0x5be0cd19
mov dword [eax + 0x60], 0
mov dword [eax + 0x64], 0
mov dword [eax + 0x68], 0
ret
call sym.runtime.morestack_noctxt
jmp sym.cmd_internal_notsha256._digest_.Reset
Function at 0x4c34e0
Capabilities:
Hash data using sha224
Hash data using sha256

Disassembly:
mov ecx, dword [0x5c5164]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4c3586
mov eax, dword [esp + 4]
movzx ecx, byte [eax + 0x6c]
test cl, cl
je 0x4c3539
mov dword [eax], 0xc1059ed8
mov dword [eax + 4], 0x367cd507
mov dword [eax + 8], 0x3070dd17
mov dword [eax + 0xc], 0xf70e5939
mov dword [eax + 0x10], 0xffc00b31
mov dword [eax + 0x14], 0x68581511
mov dword [eax + 0x18], 0x64f98fa7
mov dword [eax + 0x1c], 0xbefa4fa4
jmp 0x4c3570
mov dword [eax], 0x6a09e667
mov dword [eax + 4], 0xbb67ae85
mov dword [eax + 8], 0x3c6ef372
mov dword [eax + 0xc], 0xa54ff53a
mov dword [eax + 0x10], 0x510e527f
mov dword [eax + 0x14], 0x9b05688c
mov dword [eax + 0x18], 0x1f83d9ab
mov dword [eax + 0x1c], 0x5be0cd19
mov dword [eax + 0x60], 0
mov dword [eax + 0x64], 0
mov dword [eax + 0x68], 0
ret
call sym.runtime.morestack_noctxt
jmp sym.crypto_sha256._digest_.Reset
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40de38
mov ecx, 0x230111a6
nop
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x433024
nop
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x3c885159
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x433084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43306c
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x42e003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
call 0x42e00c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x403ac5
sub eax, 0x403a6b
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x42e030
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x42e01e
nop
nop
nop
popal
nop
nop
nop
jmp loc.00401219
Function at 0x402ab0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
lea eax, [esp + 8]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x402af9
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
lea eax, [esp + 8]
mov dword [esp + 8], 0x104
push eax
push ecx
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
ret
Function at 0x406560
Capabilities:
Create directory

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov ebp, dword [sym.imp.MSVCRT.dll_calloc]
push 1
not ecx
add ecx, 3
mov dword [esp + 0x14], 0
push ecx
call ebp
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x40659c
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
pop ecx
ret
mov edx, ebx
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4065a2
push 0x5c
push ebx
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 8
test eax, eax
je 0x4065c0
mov byte [eax + 1], 0
cmp byte [ebx], 0x5c
jne 0x4065ea
cmp byte [ebx + 1], 0x5c
jne 0x4065ea
mov edi, dword [sym.imp.MSVCRT.dll_strchr]
lea eax, [ebx + 2]
push 0x5c
push eax
call edi
mov esi, eax
add esp, 8
test esi, esi
je 0x40660c
inc esi
push 0x5c
push esi
call edi
jmp 0x406607
cmp byte [ebx + 1], 0x3a
jne 0x4065fe
cmp byte [ebx + 2], 0x5c
jne 0x4065fe
lea ecx, [ebx + 3]
push 0x5c
push ecx
jmp 0x406601
push 0x5c
push ebx
call dword [sym.imp.MSVCRT.dll_strchr]
add esp, 8
mov esi, eax
push 1
push 0x104
call ebp
mov edi, eax
add esp, 8
test edi, edi
jne 0x406631
push ebx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
test esi, esi
je 0x406693
mov ebp, ebx
mov edx, esi
sub edx, ebp
push edx
push ebp
push edi
call dword [sym.imp.MSVCRT.dll_strncat]
mov ebp, dword [sym.imp.MSVCRT.dll__chdir]
push edi
call ebp
add esp, 0x10
test eax, eax
je 0x406674
push edi
call dword [sym.imp.MSVCRT.dll__mkdir]
add esp, 4
test eax, eax
jne 0x40666c
push edi
call ebp
add esp, 4
test eax, eax
je 0x406674
mov dword [esp + 0x10], 1
mov ebp, esi
inc esi
push 0x5c
push esi
call dword [sym.imp.MSVCRT.dll_strchr]
mov esi, eax
add esp, 8
test esi, esi
je 0x4066d9
mov eax, dword [esp + 0x10]
test eax, eax
je 0x406637
jmp 0x4066d9
mov edx, edi
mov eax, ebx
sub edx, ebx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x406699
push edi
call fcn.00417560
mov esi, dword [sym.imp.MSVCRT.dll__chdir]
push edi
call esi
add esp, 8
test eax, eax
je 0x4066d9
push edi
call dword [sym.imp.MSVCRT.dll__mkdir]
add esp, 4
test eax, eax
jne 0x4066d1
push edi
call esi
add esp, 4
test eax, eax
je 0x4066d9
mov dword [esp + 0x10], 1
mov esi, dword [sym.imp.MSVCRT.dll_free]
push edi
call esi
push ebx
call esi
mov eax, dword [esp + 0x18]
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x406790
Capabilities:
Read file on windows

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x10]
push 0
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4067c5
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x26
pop esi
neg eax
sbb eax, eax
add eax, 0x40000002
ret
mov eax, dword [esp + 0x10]
cmp eax, 0xffffffff
jne 0x4067d5
mov eax, 0x40000001
pop esi
ret
sub eax, esi
pop esi
neg eax
sbb eax, eax
and eax, 0x40000002
ret
Function at 0x4067f0
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x10]
push 0
push eax
push esi
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x406825
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x70
pop esi
neg eax
sbb eax, eax
add eax, 0x40000004
ret
mov eax, dword [esp + 0x10]
sub eax, esi
pop esi
neg eax
sbb eax, eax
and eax, 0x40000004
ret

Function at 0x406970
Capabilities:
Create directory
Delete file

Disassembly:
mov eax, dword [0x453850]
push esi
xor esi, esi
push eax
push esi
push 0x4500f0
call fcn.0042ecc0
mov eax, dword [0x453850]
add esp, 0xc
cmp byte [eax], 0
je 0x4069c0
push eax
call dword [sym.imp.MSVCRT.dll_remove]
mov ecx, dword [0x453850]
add esp, 4
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x4069c0
mov edx, dword [0x453850]
push edx
call fcn.00417520
add esp, 4
mov eax, esi
pop esi
ret
mov eax, 0x67
pop esi
ret
Function at 0x406f20
Capabilities:
Delete directory
Delete file
Set current directory

Disassembly:
mov eax, dword [0x453860]
test eax, eax
je 0x406f3a
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x453860], 0
mov eax, dword [0x45385c]
push ebx
push ebp
push esi
test eax, eax
push edi
je 0x406f7c
push 0x5c
push eax
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 8
test eax, eax
je 0x406f7c
mov esi, dword [0x45385c]
mov ecx, eax
sub ecx, esi
cmp ecx, 3
jae 0x406f6c
mov byte [eax + 1], 0
jmp 0x406f6f
mov byte [eax], 0
mov edx, dword [0x45385c]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov ebp, dword [0x453854]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
test ebp, ebp
je 0x407048
cmp byte [ebp], 0
je 0x40703a
xor esi, esi
push ebp
call dword [sym.imp.MSVCRT.dll_remove]
add esp, 4
test eax, eax
je 0x406fc4
call dword [sym.imp.MSVCRT.dll__errno]
cmp dword [eax], 2
je 0x406fc4
push 0x3e8
call ebx
inc esi
cmp esi, 0xa
jl 0x406f9c
jmp 0x407018
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
push ecx
call dword [sym.imp.MSVCRT.dll_calloc]
mov esi, eax
add esp, 8
test esi, esi
je 0x407018
mov edx, esi
mov eax, ebp
sub edx, ebp
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x406fe7
push 0x5c
push esi
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 8
test eax, eax
je 0x40700e
push esi
mov byte [eax], 0
call dword [sym.imp.MSVCRT.dll__rmdir]
add esp, 4
push esi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov al, byte [ecx + ebp + 1]
lea ebp, [ecx + ebp + 1]
test al, al
jne 0x406f9a
mov ebp, dword [0x453854]
mov edi, dword [sym.imp.MSVCRT.dll_free]
push ebp
call edi
add esp, 4
jmp 0x40704e
mov edi, dword [sym.imp.MSVCRT.dll_free]
mov eax, dword [0x453850]
test eax, eax
je 0x407090
xor esi, esi
mov eax, dword [0x453850]
push eax
call fcn.00417560
mov ecx, dword [0x453850]
push ecx
call dword [sym.imp.MSVCRT.dll__rmdir]
add esp, 8
test eax, eax
je 0x407090
call dword [sym.imp.MSVCRT.dll__errno]
cmp dword [eax], 2
je 0x407090
push 0x3e8
call ebx
inc esi
cmp esi, 0xa
jl 0x407059
mov edx, dword [0x453850]
push edx
call edi
mov eax, dword [0x45385c]
xor esi, esi
push eax
mov dword [0x453850], esi
call edi
add esp, 8
mov dword [0x45385c], esi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4071c0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x224]
test eax, eax
je 0x40725b
push 1
call fcn.00407410
mov eax, dword [esi + 0x204]
mov ecx, dword [esi + 0x20c]
mov byte [eax + ecx], 0
mov edx, dword [esi + 0x20c]
mov eax, dword [esi + 0x220]
inc edx
test eax, eax
mov dword [esi + 0x20c], edx
je 0x40725b
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x40725b
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
lea edx, [esp + 0xc]
push 0
push edx
lea eax, [esi + 0x21c]
push 2
push eax
push edi
call ebx
mov edx, dword [esi + 0x20c]
mov eax, dword [esi + 0x204]
lea ecx, [esp + 0xc]
push 0
push ecx
push edx
push eax
push edi
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
mov eax, dword [esi + 0x220]
mov edi, dword [sym.imp.MSVCRT.dll_free]
test eax, eax
je 0x407271
push eax
call edi
add esp, 4
mov esi, dword [esi + 0x204]
test esi, esi
je 0x407281
push esi
call edi
add esp, 4
pop edi
pop esi
pop ecx
ret